/**
 * Social Links Widget
 *
 * This is a jQuery implentation of the sexybookmarks 
 * wordpress plugin (http://sexybookmarks.shareaholic.com/)
 *
 *
 *
 *
 * Author: Chris Whalin (c0deguru@hotmail.com)
 * Created: 08/13/2010
 * Last Updated: 08/14/2010 -cw
 *
 *
 * Usage:
 * -------------------------------
 * All that is required is a single DIV element to act as a container.
 * The plugin will inject all needed CSS into the document.
 *
 * The plugin will look for a CCS Sprite named social-sprite.png in 
 * an images in the sites root directory (/images/)
 * (i considered just embedding this sprite as base64.. but... it went from 31k -> 325k...)
 *
 * When intializing the .sociallinks() you can specify which 
 * social sites to include using the 'socials:' property.
 * This socials array list will also define the order in which each
 * social icon is displayed.
 *
 *
 * <div class='sharelinks'></div>
 *
 * $(".sharelinks").socialwidget({
 * 	 socials : ['delicious','digg','reddit','stumbleupon','mixx','facebook','twitter','newsvine','friendfeed']
 * });
 *
 *
 *
 * Additional Options
 * -------------------------------
 * width : defined width in pixels
 * orientation :  left | center | right
 *
 * $(".sharelinks").socialwidget({
 * 	 socials : ['facebook','twitter'],
 *   width : '200px',
 *   orientation : 'right'
 * });
 *
 * By default, orientation is set to center. The width is calulated by how 
 * many icons there are in the widget (items * 60px)
 *
 *
 *
 * Sources:
 * -------------------------------
 *  newsvine, linkedin, googlebookmarks, googlereader, scriptstyle, mail, comfeed, twitter
 *	technorati, stumbleupon, reddit, myspace, mixx, diigo, digg, designfloat, yahoobuzz
 *	delicious, blinklist, facebook, misterwong, izeby, twittley, tipd, pfbuzz, friendfeed
 *  blogmarks, fwisp, yahoomail, bobrdobr, memoryru, 100zakladok, yandex, moemesto, marrows
 *	identica, hackernews, ning, designbump, printfriendly, fleck, netvibes, netvouz, nujij
 *	globalgrind, wikio, xerpi, sphinn, hotmail, posterous, techmeme, ekudos, pingfm, tomuse
 *	webblend, wykop, blogengage, hyves, pusha, hatena, mylinkvault, slashdot, squidoo, propeller
 *	faqpal, evernote, meneame, bitacoras, jumptags, bebo, n4g, strands, orkut, tumblr, stumpedia
 *	current, blogger, plurk, virb, dzone, kaevur, box, oknotizie, bonzobox, plaxo, springpad
 *	zabox, viadeo, googlebuzz, gmail, bzzster 
 */
 

jQuery.fn.socialwidget = function(options) {
	options=$.extend({
		socials : ['facebook','twitter','digg','delicious','stumbleupon','googlereader','blogger','pfbuzz'],
		width : null,
		orientation : 'center'
	}, options);
	
	var container = $(this);
	container.append('<ul id="socials" class="socials"></ul>');
	var w,o;
	w=(options.width!=null ? options.width : (options.socials.length*60)+'px');
	switch(options.orientation)
	{
		case 'left':
			o='0 auto 0 0';
			break;
		case 'right':
			o='0 0 0 auto';
			break;
		default:
			o='0 auto';
			break;
	}
	container.css({'width':w,'margin':o})
	
	var socialdata = {
	
		scriptstyle : {
			name:'Script &amp; Style',
			title:'Submit this to Script &amp; Style',
			url:'http://scriptandstyle.com/submit?url=PERMALINK&amp;title=TITLE'
		},
	
		blinklist : {
			name:'Blinklist',
			title:'Share this on Blinklist',
			url:'http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=PERMALINK&amp;Title=TITLE'
		},
	
		delicious : {
			name:'Delicious',
			title:'Share this on del.icio.us',
			url:'http://delicious.com/post?url=PERMALINK&amp;title=TITLE'
		},
	
		digg : {
			name:'Digg',
			title:'Digg this!',
			url:'http://digg.com/submit?phase=2&amp;url=PERMALINK&amp;title=TITLE'
		},
	
		diigo : {
			name:'Diigo',
			title:'Post this on Diigo',
			url:'http://www.diigo.com/post?url=PERMALINK&amp;title=TITLE&amp;desc=SEXY_TEASER'
		},
	
		reddit : {
			name:'Reddit',
			title:'Share this on Reddit',
			url:'http://reddit.com/submit?url=PERMALINK&amp;title=TITLE'
		},
	
		yahoobuzz : {
			name:'Yahoo! Buzz',
			title:'Buzz up!',
			url:'http://buzz.yahoo.com/submit/?submitUrl=PERMALINK&amp;submitHeadline=TITLE&amp;submitSummary=YAHOOTEASER&amp;submitCategory=YAHOOCATEGORY&amp;submitAssetType=YAHOOMEDIATYPE'
		},
	
		stumbleupon : {
			name:'Stumbleupon',
			title:'Stumble upon something good? Share it on StumbleUpon',
			url:'http://www.stumbleupon.com/submit?url=PERMALINK&amp;title=TITLE'
		},
	
		technorati : {
			name:'Technorati',
			title:'Share this on Technorati',
			url:'http://technorati.com/faves?add=PERMALINK'
		},
	
		mixx : {
			name:'Mixx',
			title:'Share this on Mixx',
			url:'http://www.mixx.com/submit?page_url=PERMALINK&amp;title=TITLE'
		},
	
		myspace : {
			name:'MySpace',
			title:'Post this to MySpace',
			url:'http://www.myspace.com/Modules/PostTo/Pages/?u=PERMALINK&amp;t=TITLE'
		},
	
		designfloat : {
			name:'DesignFloat',
			title:'Submit this to DesignFloat',
			url:'http://www.designfloat.com/submit.php?url=PERMALINK&amp;title=TITLE'
		},
	
		facebook : {
			name:'Facebook',
			title:'Share this on Facebook',
			url:'http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=PERMALINK&amp;t=TITLE'
		},
	
		twitter : {
			name:'Twitter',
			title:'Tweet This!',
			url:'http://twitter.com/home?status=via vivamedia PERMALINK'
		},
	
		mail : {
			name:"an 'Email to a Friend' link",
			title:'Email this to a friend?',
			url:'mailto:?subject=%22TITLE%22&amp;body=Link: PERMALINK %0D%0A%0D%0A----%0D%0A POST_SUMMARY'
		},
	
		tomuse : {
			name:'ToMuse',
			title:'Suggest this article to ToMuse',
			url:'mailto:tips@tomuse.com?subject='+escape('New tip submitted')+'&amp;body=Link: PERMALINK %0D%0A%0D%0A POST_SUMMARY'
		},
	
		comfeed : {
			name:"a 'Subscribe to Comments' link",
			title:'Subscribe to the comments for this post?',
			url:'PERMALINK'
		},
	
		linkedin : {
			name:'LinkedIn',
			title:'Share this on LinkedIn',
			url:'http://www.linkedin.com/shareArticle?mini=true&amp;url=PERMALINK&amp;title=TITLE&amp;summary=POST_SUMMARY&amp;source=SITE_NAME'
		},
	
		newsvine : {
			name:'Newsvine',
			title:'Seed this on Newsvine',
			url:'http://www.newsvine.com/_tools/seed&amp;save?u=PERMALINK&amp;h=TITLE'
		},
	
		googlebookmarks : {
			name:'Google Bookmarks',
			title:'Add this to Google Bookmarks',
			url:'http://www.google.com/bookmarks/mark?op=add&amp;bkmk=PERMALINK&amp;title=TITLE'
		},
	
		googlereader : {
			name:'Google Reader',
			title:'Add this to Google Reader',
			url:'http://www.google.com/reader/link?url=PERMALINK&amp;title=TITLE&amp;srcUrl=PERMALINK&amp;srcTitle=TITLE&amp;snippet=POST_SUMMARY'
		},
	
		googlebuzz : {
			name:'Google Buzz',
			title:'Post on Google Buzz',
			url:'http://www.google.com/buzz/post?url=PERMALINK&amp;imageurl='
		},
	
		misterwong : {
			name:'Mister Wong',
			title:'Add this to Mister Wong',
			url:'http://www.mister-wong.com/addurl/?bm_url=PERMALINK&amp;bm_description=TITLE'
		},
	
		izeby : {
			name:'Izeby',
			title:'Add this to Izeby',
			url:'http://izeby.com/submit.php?url=PERMALINK'
		},
	
		tipd : {
			name:'Tipd',
			title:'Share this on Tipd',
			url:'http://tipd.com/submit.php?url=PERMALINK'
		},
	
		pfbuzz : {
			name:'PFBuzz',
			title:'Share this on PFBuzz',
			url:'http://pfbuzz.com/submit?url=PERMALINK&amp;title=TITLE'
		},
	
		friendfeed : {
			name:'FriendFeed',
			title:'Share this on FriendFeed',
			url:'http://www.friendfeed.com/share?title=TITLE&amp;link=PERMALINK'
		},
	
		blogmarks : {
			name:'BlogMarks',
			title:'Mark this on BlogMarks',
			url:'http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=PERMALINK&amp;title=TITLE'
		},
	
		twittley : {
			name:'Twittley',
			title:'Submit this to Twittley',
			url:'http://twittley.com/submit/?title=TITLE&amp;url=PERMALINK&amp;desc=POST_SUMMARY&amp;pcat=TWITT_CAT&amp;tags=DEFAULT_TAGS'
		},
	
		fwisp : {
			name:'Fwisp',
			title:'Share this on Fwisp',
			url:'http://fwisp.com/submit?url=PERMALINK'
		},
	
		bobrdobr : {
			name:'BobrDobr (Russian)',
			title:'Share this on BobrDobr',
			url:'http://bobrdobr.ru/addext.html?url=PERMALINK&amp;title=TITLE'
		},
	
		yandex : {
			name:'Yandex.Bookmarks (Russian)',
			title:'Add this to Yandex.Bookmarks',
			url:'http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&amp;lurl=PERMALINK&amp;lname=TITLE'
	
		},
	
		memoryru : {
			name:'Memory.ru (Russian)',
			title:'Add this to Memory.ru',
			url:'http://memori.ru/link/?sm=1&amp;u_data[url]=PERMALINK&amp;u_data[name]=TITLE'
		},
	
		zakladok100 : {
			name:'100 bookmarks (Russian)',
			title:'Add this to 100 bookmarks',
			url:'http://www.100zakladok.ru/save/?bmurl=PERMALINK&amp;bmtitle=TITLE'
		},
	
		moemesto : {
			name:'MyPlace (Russian)',
			title:'Add this to MyPlace',
			url:'http://moemesto.ru/post.php?url=PERMALINK&amp;title=TITLE'
		},
	
		hackernews : {
			name:'Hacker News',
			title:'Submit this to Hacker News',
			url:'http://news.ycombinator.com/submitlink?u=PERMALINK&amp;t=TITLE'
		},
	
		printfriendly : {
			name:'Print Friendly',
			title:'Send this page to Print Friendly',
			url:'http://www.printfriendly.com/print?url=PERMALINK'
		},
	
		designbump : {
			name:'Design Bump',
			title:'Bump this on DesignBump',
			url:'http://designbump.com/submit?url=PERMALINK&amp;title=TITLE&amp;body=POST_SUMMARY'
		},
	
		ning : {
			name:'Ning',
			title:'Add this to Ning',
			url:'http://bookmarks.ning.com/addItem.php?url=PERMALINK&amp;T=TITLE'
		},
	
		identica : {
			name:'Identica',
			title:'Post this to Identica',
			url:'http://identi.ca//index.php?action=newnotice&amp;status_textarea=Reading:+&quot;SHORT_TITLE&quot;+-+from+FETCH_URL'
		},
		
		xerpi : {
			name:'Xerpi',
			title:'Save this to Xerpi',
			url:'http://www.xerpi.com/block/add_link_from_extension?url=PERMALINK&amp;title=TITLE'
	
		},
	
		techmeme : {
			name:'TechMeme',
			title:'Tip this to TechMeme',
			url:'http://twitter.com/home/?status=Tip+@Techmeme+PERMALINK+&quot;TITLE&quot;&amp;source=shareaholic'
		},
	
		sphinn : {
			name:'Sphinn',
			title:'Sphinn this on Sphinn',
			url:'http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=PERMALINK'
		},
	
		posterous : {
			name:'Posterous',
			title:'Post this to Posterous',
			url:'http://posterous.com/share?linkto=PERMALINK&amp;title=TITLE&amp;selection=POST_SUMMARY'
		},
	
		globalgrind : {
			name:'Global Grind',
			title:'Grind this! on Global Grind',
			url:'http://globalgrind.com/submission/submit.aspx?url=PERMALINK&amp;type=Article&amp;title=TITLE'
		},
	
		pingfm : {
			name:'Ping.fm',
			title:'Ping this on Ping.fm',
			url:'http://ping.fm/ref/?link=PERMALINK&amp;title=TITLE&amp;body=POST_SUMMARY'
		},
	
		nujij : {
			name:'NUjij (Dutch)',
			title:'Submit this to NUjij',
			url:'http://nujij.nl/jij.lynkx?t=TITLE&amp;u=PERMALINK&amp;b=POST_SUMMARY'
		},
	
		ekudos : {
			name:'eKudos (Dutch)',
			title:'Submit this to eKudos',
			url:'http://www.ekudos.nl/artikel/nieuw?url=PERMALINK&amp;title=TITLE&amp;desc=POST_SUMMARY'
		},
	
		netvouz : {
			name:'Netvouz',
			title:'Submit this to Netvouz',
			url:'http://www.netvouz.com/action/submitBookmark?url=PERMALINK&amp;title=TITLE&amp;popup=no'
		},
	
		netvibes : {
			name:'Netvibes',
			title:'Submit this to Netvibes',
			url:'http://www.netvibes.com/share?title=TITLE&amp;url=PERMALINK'
		},
	
		webblend : {
			name:'Web Blend',
			title:'Blend this!',
			url:'http://thewebblend.com/submit?url=PERMALINK&amp;title=TITLE&amp;body=POST_SUMMARY'
		},
	
		wykop : {
			name:'Wykop (Polish)',
			title:'Add this to Wykop!',
			url:'http://www.wykop.pl/dodaj?url=PERMALINK&amp;title=TITLE'
		},
	
		blogengage : {
			name:'BlogEngage',
			title:'Engage with this article!',
			url:'http://www.blogengage.com/submit.php?url=PERMALINK'
		},
	
		hyves : {
			name:'Hyves',
			title:'Share this on Hyves',
			url:'http://www.hyves.nl/profilemanage/add/tips/?name=TITLE&amp;text=POST_SUMMARY+-+PERMALINK&amp;rating=5'
		},
	
		pusha : {
			name:'Pusha (Swedish)',
			title:'Push this on Pusha',
			url:'http://www.pusha.se/posta?url=PERMALINK&amp;title=TITLE'
		},
	
		hatena : {
			name:'Hatena Bookmarks (Japanese)',
			title:'Bookmarks this on Hatena Bookmarks',
			url:'http://b.hatena.ne.jp/add?mode=confirm&amp;url=PERMALINK&amp;title=TITLE'
		},
	
		mylinkvault : {
			name:'MyLinkVault',
			title:'Store this link on MyLinkVault',
			url:'http://www.mylinkvault.com/link-page.php?u=PERMALINK&amp;n=TITLE'
		},
	
		slashdot : {
			name:'SlashDot',
			title:'Submit this to SlashDot',
			url:'http://slashdot.org/bookmark.pl?url=PERMALINK&amp;title=TITLE'
		},
	
		squidoo : {
			name:'Squidoo',
			title:'Add to a lense on Squidoo',
			url:'http://www.squidoo.com/lensmaster/bookmark?PERMALINK'
		},
	
		propeller : {
			name:'Propeller',
			title:'Submit this story to Propeller',
			url:'http://www.propeller.com/submit/?url=PERMALINK'
		},
	
		faqpal : {
			name:'FAQpal',
			title:'Submit this to FAQpal',
			url:'http://www.faqpal.com/submit?url=PERMALINK'
		},
	
		evernote : {
			name:'Evernote',
			title:'Clip this to Evernote',
			url:'http://www.evernote.com/clip.action?url=PERMALINK&amp;title=TITLE'
		},
	
		meneame : {
			name:'Meneame (Spanish)',
			title:'Submit this to Meneame',
			url:'http://meneame.net/submit.php?url=PERMALINK'
		},
	
		bitacoras : {
			name:'Bitacoras (Spanish)',
			title:'Submit this to Bitacoras',
			url:'http://bitacoras.com/anotaciones/PERMALINK'
		},
	
		jumptags : {
			name:'JumpTags',
			title:'Submit this link to JumpTags',
			url:'http://www.jumptags.com/add/?url=PERMALINK&amp;title=TITLE'
		},
	
		bebo : {
			name:'Bebo',
			title:'Share this on Bebo',
			url:'http://www.bebo.com/c/share?Url=PERMALINK&amp;Title=TITLE'
		},
	
		n4g : {
			name:'N4G',
			title:'Submit tip to N4G',
			url:'http://www.n4g.com/tips.aspx?url=PERMALINK&amp;title=TITLE'
		},
	
		strands : {
			name:'Strands',
			title:'Submit this to Strands',
			url:'http://www.strands.com/tools/share/webpage?title=TITLE&amp;url=PERMALINK'
		},
	
		orkut : {
			name:'Orkut',
			title:'Promote this on Orkut',
			url:'http://promote.orkut.com/preview?nt=orkut.com&amp;tt=TITLE&amp;du=PERMALINK&amp;cn=POST_SUMMARY'
		},
	
		tumblr : {
			name:'Tumblr',
			title:'Share this on Tumblr',
			url:'http://www.tumblr.com/share?v=3&amp;u=PERMALINK&amp;t=TITLE'
		},
	
		stumpedia : {
			name:'Stumpedia',
			title:'Add this to Stumpedia',
			url:'http://www.stumpedia.com/submit?url=PERMALINK&amp;title=TITLE'
		},
	
		current : {
			name:'Current',
			title:'Post this to Current',
			url:'http://current.com/clipper.htm?url=PERMALINK&amp;title=TITLE'
		},
	
		blogger : {
			name:'Blogger',
			title:'Blog this on Blogger',
			url:'http://www.blogger.com/blog_this.pyra?t&amp;u=PERMALINK&amp;n=TITLE&amp;pli=1'
		},
	
		plurk : {
			name:'Plurk',
			title:'Share this on Plurk',
			url:'http://www.plurk.com/m?content=TITLE+-+PERMALINK&amp;qualifier=shares'
		},
	
		dzone : {
			name:'DZone',
			title:'Add this to DZone',
			url:'http://www.dzone.com/links/add.html?url=PERMALINK&amp;title=TITLE&amp;description=POST_SUMMARY'
		},
	
		kaevur : {
			name:'Kaevur (Estonian)',
			title:'Share this on Kaevur',
			url:'http://kaevur.com/submit.php?url=PERMALINK'
		},
	
		virb : {
			name:'Virb',
			title:'Share this on Virb',
			url:'http://virb.com/share?external&amp;v=2&amp;url=PERMALINK&amp;title=TITLE'
	
		},
	
		box : {
			name:'Box.net',
			title:'Add this link to Box.net',
			url:'https://www.box.net/api/1.0/import?url=PERMALINK&amp;name=TITLE&amp;description=POST_SUMMARY&amp;import_as=link'
		},
	
		oknotizie : {
			name:'OkNotizie (Italian)',
			title:'Share this on OkNotizie',
			url:'http://oknotizie.virgilio.it/post?url=PERMALINK&amp;title=TITLE'
		},
	
		bonzobox : {
			name:'BonzoBox',
			title:'Add this to BonzoBox',
			url:'http://bonzobox.com/toolbar/add?pop=1&amp;u=PERMALINK&amp;t=TITLE&amp;d=POST_SUMMARY'
		},
	
		plaxo : {
			name:'Plaxo',
			title:'Share this on Plaxo',
			url:'http://www.plaxo.com/?share_link=PERMALINK'
		},
	
		springpad : {
			name:'SpringPad',
			title:'Spring this on SpringPad',
			url:'http://springpadit.com/clip.action?body=POST_SUMMARY&amp;url=PERMALINK&amp;format=microclip&amp;title=TITLE&amp;isSelected=true'
		},
	
		zabox : {
			name:'Zabox',
			title:'Box this on Zabox',
			url:'http://www.zabox.net/submit.php?url=PERMALINK'
		},
	
		viadeo : {
			name:'Viadeo',
			title:'Share this on Viadeo',
			url:'http://www.viadeo.com/shareit/share/?url=PERMALINK&amp;title=TITLE&amp;urlaffiliate=31138'
		},
	
		gmail : {
			name:'Gmail',
			title:'Email this via Gmail',
			url:'https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=TITLE&amp;body=Link: PERMALINK %0D%0A%0D%0A----%0D%0A POST_SUMMARY'
		},
	
		hotmail : {
			name:'Hotmail',
			title:'Email this via Hotmail',
			url:'http://mail.live.com/?rru=compose?subject=TITLE&amp;body=Link: PERMALINK %0D%0A%0D%0A----%0D%0A POST_SUMMARY'
		},
	
		yahoomail : {
			name:'Yahoo! Mail',
			title:'Email this via Yahoo! Mail',
			url:'http://compose.mail.yahoo.com/?Subject=TITLE&amp;body=Link: PERMALINK %0D%0A%0D%0A----%0D%0A POST_SUMMARY'
		},
	
		bzzster : {
			name:'Buzzster!',
			title:'Share this via Buzzster!',
			url:"javascript:var%20s=document.createElement('script');s.src='http://www.buzzster.com/javascripts/bzz_adv.js';s.type='text/javascript';void(document.getElementsByTagName('head')[0].appendChild(s));"
	
		}
  };
	
	var injectCSS = function(){
		var css = "<style type='text/css'>"+
							"ul.socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important;background:transparent none !important;border:0 none !important;outline:0 none !important}"+
							"ul.socials li{background-image:url('/images/socials-sprite.png') !important;background-repeat:no-repeat !important;display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}"+
							"ul.socials li:before,ul.socials li:after,ul.socials li a:before,ul.socials li a:after{content:'' !important}"+
							"ul.socials a,ul.socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important;margin:0 !important;padding:0 !important}"+
							"ul.socials a:hover,ul.socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}"+
							"li.newsvine{background-position:left bottom !important}"+
							"li.newsvine:hover{background-position:left top !important}"+
							"li.linkedin{background-position:-70px bottom !important}"+
							"li.linkedin:hover{background-position:-70px top !important}"+
							"li.googlebookmarks{background-position:-140px bottom !important}"+
							"li.googlebookmarks:hover{background-position:-140px top !important}"+
							"li.googlereader{background-position:-210px bottom !important}"+
							"li.googlereader:hover{background-position:-210px top !important}"+
							"li.scriptstyle{background-position:-280px bottom !important}"+
							"li.scriptstyle:hover{background-position:-280px top !important}"+
							"li.mail{background-position:-350px bottom !important}"+
							"li.mail:hover{background-position:-350px top !important}"+
							"li.comfeed{background-position:-420px bottom !important}"+
							"li.comfeed:hover{background-position:-420px top !important}"+
							"li.twitter{background-position:-490px bottom !important}"+
							"li.twitter:hover{background-position:-490px top !important}"+
							"li.technorati{background-position:-560px bottom !important}"+
							"li.technorati:hover{background-position:-560px top !important}"+
							"li.stumbleupon{background-position:-630px bottom !important}"+
							"li.stumbleupon:hover{background-position:-630px top !important}"+
							"li.reddit{background-position:-700px bottom !important}"+
							"li.reddit:hover{background-position:-700px top !important}"+
							"li.myspace{background-position:-770px bottom !important}"+
							"li.myspace:hover{background-position:-770px top !important}"+
							"li.mixx{background-position:-840px bottom !important}"+
							"li.mixx:hover{background-position:-840px top !important}"+
							"li.diigo{background-position:-910px bottom !important}"+
							"li.diigo:hover{background-position:-910px top !important}"+
							"li.digg{background-position:-980px bottom !important}"+
							"li.digg:hover{background-position:-980px top !important}"+
							"li.designfloat{background-position:-1050px bottom !important}"+
							"li.designfloat:hover{background-position:-1050px top !important}"+
							"li.yahoobuzz{background-position:-1120px bottom !important}"+
							"li.yahoobuzz:hover{background-position:-1120px top !important}"+
							"li.delicious{background-position:-1190px bottom !important}"+
							"li.delicious:hover{background-position:-1190px top !important}"+
							"li.blinklist{background-position:-1260px bottom !important}"+
							"li.blinklist:hover{background-position:-1260px top !important}"+
							"li.facebook{background-position:-1330px bottom !important}"+
							"li.facebook:hover{background-position:-1330px top !important}"+
							"li.misterwong{background-position:-1400px bottom !important}"+
							"li.misterwong:hover{background-position:-1400px top !important}"+
							"li.izeby{background-position:-1470px bottom !important}"+
							"li.izeby:hover{background-position:-1470px top !important}"+
							"li.twittley{background-position:-1540px bottom !important}"+
							"li.twittley:hover{background-position:-1540px top !important}"+
							"li.tipd{background-position:-1610px bottom !important}"+
							"li.tipd:hover{background-position:-1610px top !important}"+
							"li.pfbuzz{background-position:-1680px bottom !important}"+
							"li.pfbuzz:hover{background-position:-1680px top !important}"+
							"li.friendfeed{background-position:-1750px bottom !important}"+
							"li.friendfeed:hover{background-position:-1750px top !important}"+
							"li.blogmarks{background-position:-1820px bottom !important}"+
							"li.blogmarks:hover{background-position:-1820px top !important}"+
							"li.fwisp{background-position:-1890px bottom !important}"+
							"li.fwisp:hover{background-position:-1890px top !important}"+
							"li.yahoomail{background-position:-1960px bottom !important}"+
							"li.yahoomail:hover{background-position:-1960px top !important}"+
							"li.bobrdobr{background-position:-2030px bottom !important}"+
							"li.bobrdobr:hover{background-position:-2030px top !important}"+
							"li.memoryru{background-position:-2100px bottom !important}"+
							"li.memoryru:hover{background-position:-2100px top !important}"+
							"li.100zakladok{background-position:-2170px bottom !important}"+
							"li.100zakladok:hover{background-position:-2170px top !important}"+
							"li.yandex{background-position:-2240px bottom !important}"+
							"li.yandex:hover{background-position:-2240px top !important}"+
							"li.moemesto{background-position:-2310px bottom !important}"+
							"li.moemesto:hover{background-position:-2310px top !important}"+
							"li.marrows{background-position:-2380px bottom !important}"+
							"li.marrows:hover{background-position:-2380px top !important}"+
							"li.identica{background-position:-2450px bottom !important}"+
							"li.identica:hover{background-position:-2450px top !important}"+
							"li.hackernews{background-position:-2520px bottom !important}"+
							"li.hackernews:hover{background-position:-2520px top !important}"+
							"li.ning{background-position:-2590px bottom !important}"+
							"li.ning:hover{background-position:-2590px top !important}"+
							"li.designbump{background-position:-2660px bottom !important}"+
							"li.designbump:hover{background-position:-2660px top !important}"+
							"li.printfriendly{background-position:-2730px bottom !important}"+
							"li.printfriendly:hover{background-position:-2730px top !important}"+
							"li.fleck{background-position:-2800px bottom !important}"+
							"li.fleck:hover{background-position:-2800px top !important}"+
							"li.netvibes{background-position:-2870px bottom !important}"+
							"li.netvibes:hover{background-position:-2870px top !important}"+
							"li.netvouz{background-position:-2940px bottom !important}"+
							"li.netvouz:hover{background-position:-2940px top !important}"+
							"li.nujij{background-position:-3010px bottom !important}"+
							"li.nujij:hover{background-position:-3010px top !important}"+
							"li.globalgrind{background-position:-3080px bottom !important}"+
							"li.globalgrind:hover{background-position:-3080px top !important}"+
							"li.wikio{background-position:-3150px bottom !important}"+
							"li.wikio:hover{background-position:-3150px top !important}"+
							"li.xerpi{background-position:-3220px bottom !important}"+
							"li.xerpi:hover{background-position:-3220px top !important}"+
							"li.sphinn{background-position:-3290px bottom !important}"+
							"li.sphinn:hover{background-position:-3290px top !important}"+
							"li.hotmail{background-position:-3360px bottom !important}"+
							"li.hotmail:hover{background-position:-3360px top !important}"+
							"li.posterous{background-position:-3430px bottom !important}"+
							"li.posterous:hover{background-position:-3430px top !important}"+
							"li.techmeme{background-position:-3500px bottom !important}"+
							"li.techmeme:hover{background-position:-3500px top !important}"+
							"li.ekudos{background-position:-3570px bottom !important}"+
							"li.ekudos:hover{background-position:-3570px top !important}"+
							"li.pingfm{background-position:-3640px bottom !important}"+
							"li.pingfm:hover{background-position:-3640px top !important}"+
							"li.tomuse{background-position:-3710px bottom !important}"+
							"li.tomuse:hover{background-position:-3710px top !important}"+
							"li.webblend{background-position:-3780px bottom !important}"+
							"li.webblend:hover{background-position:-3780px top !important}"+
							"li.wykop{background-position:-3850px bottom !important}"+
							"li.wykop:hover{background-position:-3850px top !important}"+
							"li.blogengage{background-position:-3920px bottom !important}"+
							"li.blogengage:hover{background-position:-3920px top !important}"+
							"li.hyves{background-position:-3990px bottom !important}"+
							"li.hyves:hover{background-position:-3990px top !important}"+
							"li.pusha{background-position:-4060px bottom !important}"+
							"li.pusha:hover{background-position:-4060px top !important}"+
							"li.hatena{background-position:-4130px bottom !important}"+
							"li.hatena:hover{background-position:-4130px top !important}"+
							"li.mylinkvault{background-position:-4200px bottom !important}"+
							"li.mylinkvault:hover{background-position:-4200px top !important}"+
							"li.slashdot{background-position:-4270px bottom !important}"+
							"li.slashdot:hover{background-position:-4270px top !important}"+
							"li.squidoo{background-position:-4340px bottom !important}"+
							"li.squidoo:hover{background-position:-4340px top !important}"+
							"li.propeller{background-position:-4410px bottom !important}"+
							"li.propeller:hover{background-position:-4410px top !important}"+
							"li.faqpal{background-position:-4480px bottom !important}"+
							"li.faqpal:hover{background-position:-4480px top !important}"+
							"li.evernote{background-position:-4550px bottom !important}"+
							"li.evernote:hover{background-position:-4550px top !important}"+
							"li.meneame{background-position:-4620px bottom !important}"+
							"li.meneame:hover{background-position:-4620px top !important}"+
							"li.bitacoras{background-position:-4690px bottom !important}"+
							"li.bitacoras:hover{background-position:-4690px top !important}"+
							"li.jumptags{background-position:-4760px bottom !important}"+
							"li.jumptags:hover{background-position:-4760px top !important}"+
							"li.bebo{background-position:-4830px bottom !important}"+
							"li.bebo:hover{background-position:-4830px top !important}"+
							"li.n4g{background-position:-4900px bottom !important}"+
							"li.n4g:hover{background-position:-4900px top !important}"+
							"li.strands{background-position:-4970px bottom !important}"+
							"li.strands:hover{background-position:-4970px top !important}"+
							"li.orkut{background-position:-5040px bottom !important}"+
							"li.orkut:hover{background-position:-5040px top !important}"+
							"li.tumblr{background-position:-5110px bottom !important}"+
							"li.tumblr:hover{background-position:-5110px top !important}"+
							"li.stumpedia{background-position:-5180px bottom !important}"+
							"li.stumpedia:hover{background-position:-5180px top !important}"+
							"li.current{background-position:-5250px bottom !important}"+
							"li.current:hover{background-position:-5250px top !important}"+
							"li.blogger{background-position:-5320px bottom !important}"+
							"li.blogger:hover{background-position:-5320px top !important}"+
							"li.plurk{background-position:-5390px bottom !important}"+
							"li.plurk:hover{background-position:-5390px top !important}"+
							"li.virb{background-position:-5460px bottom !important}"+
							"li.virb:hover{background-position:-5460px top !important}"+
							"li.dzone{background-position:-5530px bottom !important}"+
							"li.dzone:hover{background-position:-5530px top !important}"+
							"li.kaevur{background-position:-5600px bottom !important}"+
							"li.kaevur:hover{background-position:-5600px top !important}"+
							"li.box{background-position:-5670px bottom !important}"+
							"li.box:hover{background-position:-5670px top !important}"+
							"li.oknotizie{background-position:-5740px bottom !important}"+
							"li.oknotizie:hover{background-position:-5740px top !important}"+
							"li.bonzobox{background-position:-5810px bottom !important}"+
							"li.bonzobox:hover{background-position:-5810px top !important}"+
							"li.plaxo{background-position:-5880px bottom !important}"+
							"li.plaxo:hover{background-position:-5880px top !important}"+
							"li.springpad{background-position:-5950px bottom !important}"+
							"li.springpad:hover{background-position:-5950px top !important}"+
							"li.zabox{background-position:-6020px bottom !important}"+
							"li.zabox:hover{background-position:-6020px top !important}"+
							"li.viadeo{background-position:-6090px bottom !important}"+
							"li.viadeo:hover{background-position:-6090px top !important}"+
							"li.googlebuzz{background-position:-6160px bottom !important}"+
							"li.googlebuzz:hover{background-position:-6160px top !important}"+
							"li.gmail{background-position:-6230px bottom !important}"+
							"li.gmail:hover{background-position:-6230px top !important}"+
							"li.bzzster{background-position:-6300px bottom !important}"+
							"li.bzzster:hover{background-position:-6300px top !important}"+
							"</style>";
			$("head").append(css);
	};
	
	injectCSS();
	for (i in options.socials) {
		if (socialdata[options.socials[i]]){
			var sl = socialdata[options.socials[i]]; // social link data
			var ul = $('<li class="'+options.socials[i]+'"></li>');
			// some of the social url's have different strings to match.. still need to go thru these
			// and what we need and remove what we dont.. 
			var slink = sl.url.replace('PERMALINK',document.location.href).replace('TITLE',document.title);
			ul.append('<a rel="nofollow" target="_blank" title="'+sl.title+'" href="'+slink+'">&nbsp;</a>'); 
			$("ul#socials").append(ul);
		}
	}
}
