if( window.jQuery ){

	jQuery(document).ready(function() {
		
		if( jQuery('a[rel*="facebox"]').length ){
			jQuery('a[rel*="facebox"]').facebox({loadingImage: blogInfo.tempDir + '/js/facebox/loading.gif', closeImage: blogInfo.tempDir + '/js/facebox/closelabel.png'});
		}
		/*if( $("#sidebar .widgetized-sidebar") ) {
			var hist = [];
			//var hist = [$(".widgetized-sidebar li ul:first")];
			//$(".widgetized-sidebar li ul:not(:first)").slideToggle('normal');
			//$(".widgetized-sidebar li ul:first").attr("class", "opennav");
			//$('.widgetized-sidebar li h2').css({'cursor' : 'pointer' });
			$("#sidebar .widgetized-sidebar li ul").slideToggle('normal');
			//$("#sidebar .subscribe-sidebar li").css({"paddingTop" : "0.4em", "paddingBottom" : "0.5em" });
			
			$('#sidebar .widgetized-sidebar li h2').mouseover(function() {
				if(!$(this).next().hasClass("opennav")) {
					if(hist[0]) {
						hist[0].slideUp('normal');
						hist[0].removeClass("opennav");
						hist.pop();
					};
					$(this).next().slideToggle('normal');
					$(this).next().attr("class", "opennav");
					hist.push($(this).next());
				};
			});
		};*/
		
		if( jQuery("#sidebar .subscribe-sidebar").length ) {
			var elheight = jQuery("#sidebar .subscribe-sidebar li").height();
			jQuery("#sidebar .subscribe-sidebar li").mouseover(function(e) {
					e.stopPropagation();
					jQuery(this).animate({'height' : '60px' }, {queue: false, duration: 150});
					
			  }).mouseout(function(e) {
					e.stopPropagation();
					jQuery(this).animate({'height' : elheight }, {queue: false, duration: 150});
			  });
		};
		
		if( jQuery("#content .socialshare").length ) {
			jQuery("#content .socialshare li a").mouseover(function(e) {
					e.stopPropagation();
					jQuery(this).parent().css("position","relative");
					jQuery(this).parent().animate({'top' : '-18px' }, {queue: false, duration: 150});
					
			  }).mouseout(function(e) {
					e.stopPropagation();
					jQuery(this).parent().animate({'top' : '0px' }, {queue: false, duration: 150});
			  });
		};
		
	});

};

