jQuery(document).ready(function(){  
	
	// Image hover
    jQuery("#srcolThms a").hover(function(){
		var imgHref = $(this).attr('href');  //get the src of the thumbnail
		var imgTitle = $(this).attr("title");  //get the src of the thumbnail
		jQuery("#srcolThms a").removeClass("selected");  //remove .selected class from all other links
		jQuery(this).addClass("selected");  //add .selected class to current link
		jQuery(".big").stop();
		jQuery(".big").stop().fadeTo(700, 0, function() {  //fade image out
			
			jQuery('.big').attr('title',imgTitle);  //give new image a src attribute	
			jQuery('.big').attr('src',imgHref);  //give new image a src attribute		
				
				
		}).fadeTo("slow", 1);  //fade the image in
	},function(){    //for onmouseout not used here
	});
	
	jQuery("#srcolThms a").click(function() { return false; });
	
});

function init_dw_Scroll() {
    var wndo = new dw_scrollObj('scroll', 'mainScroll', 'srcolThms');
   // wndo.setUpScrollControls('scrollLinks');
    wndo.setUpScrollControls('scrolrs');
}

// if code supported, link in the style sheet and call the init function onload
if (dw_scrollObj.isSupported()){
    dw_Event.add( window, 'load', init_dw_Scroll);
}
