jQuery(document).ready(function(){
	//for chrome
	if (document.readyState != "complete"){
		setTimeout(arguments.callee, 100);
		return;
	}
	
	var c_width				= jQuery('#width').attr('value')*1;
	var c_height			= jQuery('#height').attr('value')*1;
	var c_animationSpeed    = jQuery('#animationSpeed').attr('value')*1;
	
	
	jQuery('div.manualCarousel').manualCarousel({
		width: c_width,
		height: c_height,
		animationSpeed: c_animationSpeed
	});
	
	//Zoom
	jQuery('.zoom').loupe();
	
	//zoom action
	jQuery('.zoom').click(function(e){
		e.preventDefault();
	});
	jQuery('.loupe').mousedown( function () { 
      jQuery(this).css('display','none');
    });
});
