$(document).ready(function() 
{

	
	
	SetupGallery();
	
	
	
	
/*
	function onCycleBefore(oldImg, newImg)
	{
		
		$((".GalleryImage:visible")).each
		{
			$("#GalleryThumb" + $(oldImg).children().attr('id').substring(12)).parent().removeClass("On");
			$("#GalleryThumb" + $(newImg).children().attr('id').substring(12)).parent().addClass("On");
		}
	}
*/
	
	
	function SetupGallery()
	{
		$('.CycleImage').cycle
		({
			delay:  2000, 
    		speed:  4000
    		/*before: onCycleBefore,*/
    		
    		
    	});
    	
    	
    	/*
    	for (var index=1; index <= $(".GalleryImage").size(); index++)
		{
			$(("#GalleryThumb" + index)).click(function()
			{
				$('.FeatureImage .Image').cycle('pause');
			});
		}*/
		
		
	}
	
});

