// JavaScript Document
$(window).load(function()
									{
										//this is intended to wait for all the images to load before running the slideshow
										init_slideshow();
										$("#home_slideshow").css("display","block");
										//skinNav();
										$('#home_slides').cycle('pause');
										if($("#homeFlashDiv").html()=='noFlash'){
											$("#homeFlashDiv").html('');
											$("#homeFlashDiv").hide();
											$("#home_slides").cycle('resume');
											//callNoFlash();
										}
										//$("#home_slides").cycle('resume');
										//$("#feat_swap").hide();
									})
				
									init_slideshow = function()
									{
										$('#home_slides').cycle({
											fx:'fade',
											timeout:5500,
											pager:'#slide_navigation',
											next:'#next_btn',
											prev:'#prev_btn',
											after:update_slide_caption,
											before:fade_slide_caption
										})
									}
		
									fade_slide_caption = function(next, previous)
									{
										caption_container = $('#project_caption')
										caption_container.fadeOut('1')
									}
		
									update_slide_caption = function(next, previous)
									{
										caption_container = $('#project_caption')
	 
										caption = $('span.slide_caption', previous)
										caption_container.fadeIn('1')
										caption_container.html(caption.html())
			
									}	