$(document).ready(function() { 
	// xhtml 1.0 strict way of using target _blank 
	$('.sexy-bookmarks a.external').attr("target", "_blank"); 
	// this block sets the auto vertical expand when there are more than 
	// one row of bookmarks. 
	var sexyBaseHeight=$('.sexy-bookmarks').height(); 
	var sexyFullHeight=$('.sexy-bookmarks ul.socials').height(); 
	if (sexyFullHeight>sexyBaseHeight) { 
		$('.sexy-bookmarks-expand').hover( 
		function() { 
			$(this).animate({ 
				height: sexyFullHeight+'px' 
			}, {duration: 400, queue: false}); 
		}, 
		function() { 
			$(this).animate({ 
				height: sexyBaseHeight+'px' 
			}, {duration: 400, queue: false}); 
		} 
	); 
	} 
// autocentering 
if ($('.sexy-bookmarks-center')) { 
	var sexyFullWidth=$('.sexy-bookmarks').width(); 
	var sexyBookmarkWidth=$('.sexy-bookmarks:first ul.socials li').width(); 
	var sexyBookmarkCount=$('.sexy-bookmarks:first ul.socials li').length; 
	var numPerRow=Math.floor(sexyFullWidth/sexyBookmarkWidth); 
	var sexyRowWidth=Math.min(numPerRow, sexyBookmarkCount)*sexyBookmarkWidth; 
	var sexyLeftMargin=(sexyFullWidth-sexyRowWidth)/2; 
	$('.sexy-bookmarks-center').css('margin-left', sexyLeftMargin+'px'); 
	} 
	$('.sexy-digg').hover(
		function () {
        	$(this).css("background-position","-980px top !important");
      	},
		function () {
        	$(this).css("background-position","-980px bottom !important");
      	});
}); 
