jQuery(document).ready(function(){
	$ = jQuery.noConflict();
	var currentImage = 1;
	var totalImages = jQuery('.jesseSlider ul').children('li').size();
	var imageCounter = 1;
	var liWidth = 720;
	var autoScroll = true;
	$(".recent-title").fadeTo(0,0);
	$("#story_post").hide();
	
	$("#bio").fancybox({
		'titlePosition':'inside',
		'transitionIn':'fade',
		'transitionOut':'fade',
		'overlayColor' : '#000',
		'overlayOpacity' : '0.7',
		'autoDimensions' : true,
		'autoScale'	: true
	});
	
	$("#info").click(function(){jQuery("#story_post").toggle('blind',500);});
	$(".title").fadeTo(0,0);
	
	$("#image").hover(
		function(){$(".title").stop(true).fadeTo(500,0.8);}, 
		function(){$(".title").stop(true).fadeTo(500,0);}
		);
		
	$(".photo-large-thumbnail").hover(
		function(){$(".photo-large-thumbnail .title").stop(true).fadeTo(500,0.8);}, 
		function(){$(".photo-large-thumbnail .title").stop(true).fadeTo(500,0);}
		);
	
	$(".photo-thumbnail").hover(
		function(){$(".photo-thumbnail .title").stop(true).fadeTo(500,0.8);}, 
		function(){$(".photo-thumbnail .title").stop(true).fadeTo(500,0);}
		);
		
	$(".photo-thumbnail-small").hover(
		function(){$(this).children(".title").stop(true).fadeTo(500,0.8);}, 
		function(){$(this).children(".title").stop(true).fadeTo(500,0);}
		);
	
	$(".widget").find(".recent-image", this).hover(function(){
		jQuery(this).next().stop(true).fadeTo(500, 1);
	}, function(){
		jQuery(this).next().fadeTo(500, 0);
	});
	
	$(".recent-title", this).hover(function(){
		jQuery(this).stop(true);
	});
	
	$(".pause").click(
		function() {
		if(autoScroll == true) {
			$(this).html('►');
			autoScroll = false;
			}
		else {
			$(this).html('||');
			autoScroll = true;
			}
		}
	);
	
	var refreshId = setInterval(function() {
	if(autoScroll == true){jQuery(".next").click();}
      }, 8000);
	}
	
);
