/* * Slideshow Functions */ $(window).load(function(){	//this is intended to wait for all the images to load before running the slideshow	init_slideshow()})init_slideshow = function(){	$('#slides').cycle({		fx:'fade',		timeout:10000,		pager:'#slide_navigation',		before:fade_slide_caption,		after:update_slide_caption	})}var firstPass = true;fade_slide_caption = function(next, previous){	caption_container = $('#project_caption');	if(!firstPass){		$("#slideshow_violator").slideUp('1000');	}	caption_container.fadeOut('fast');}update_slide_caption = function(next, previous){	caption_container = $('#project_caption');	caption = $('span.slide_caption', previous);	caption_container.fadeIn('slow');	caption_container.html(caption.html());	if(!firstPass){		$("#slideshow_violator").slideDown('1000');	}	else firstPass = false;}
