$(document).ready(function(){
		$('#bannerimg').cycle('fade');
		$('.bestproduct_image').jCarouselLite({
			btnNext: ".next",
			btnPrev: ".prev",
			visible: 5,
			mouseWheel:true,
			easing: "easeinout"
		});
		
		$(document).bind("contextmenu",function(e){
              return false;
       }); 
	   
	   $().bind("contextmenu",function(){return !1;});
	   
		$('.statcounter img').attr('alt','');
		
		$('.imgslide').click(function(){
			$('#loading').show();
			$('#leftbanner a img').attr('src',$(this).attr('href'));
			$('#leftbanner a').attr('href',$(this).attr('title'));
			$('#loading').hide();
			return false;
		});
		
		disableSelection(document.body);
		
		$('.thumb a').click(function(){
			$(this).parent('.thumb').parent('.ourfactorysingle').find('.img a').attr('href',$(this).attr('title'));
			$(this).parent('.thumb').parent('.ourfactorysingle').find('.img a img').attr('src',$(this).attr('title'));
			return false;
		});
		
		$('.thumb2 a').click(function(){
			$(this).parent('.thumb2').parent('.ourfactorysingle').find('.img2 a').attr('href',$(this).attr('title'));
			$(this).parent('.thumb2').parent('.ourfactorysingle').find('.img2 a img').attr('src',$(this).attr('title'));
			return false;
		});
		
	});
	
	function disableSelection(target){
		if (typeof target.onselectstart!="undefined") //IE route
			target.onselectstart=function(){return false}
		else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
			target.style.MozUserSelect="none"
		else //All other route (ie: Opera)
			target.onmousedown=function(){return false}
		target.style.cursor = "default"
	}
