(function( $ ) { $(document).ready(function() { var url = window.location.href; var host = window.location.hostname; var title = $('title').text(); title = escape(title); //clean up unusual characters var tbar = '
'; // Add the share tool bar. $('body').append(tbar); $('#socializethis').css({opacity: 1}); $('#minimbt').css({opacity: 1}); // hover. $('#socializethis').bind('mousedown',function(){ $(this).animate({height:'335px', width:'280px', opacity: 1}, 300); $('#socializethis img').css('display', 'inline'); $('#minimbt').css('display', 'none'); }); //leave $('#socializethis').bind('mouseleave',function(){ $(this).animate({ opacity: 1}, 300); }); // Click minimize $('#socializethis #minimize').click( function() { minshare(); $.cookie('minshare', '1'); }); if($.cookie('minshare') == 1){ minshare(); } function minshare(){ $('#socializethis').animate({height:'37px', width: '280px', opacity: 1}, 300); $('#minimbt').animate({height:'213px', width: '143px', opacity: 1}, 300); //$('#socializethis img').css('display', 'none'); //$('#minimbt').css('display', 'inline'); return false; } minshare(); }); })(jQuery);