$(document).ready(function(){

	var isEntered = false;
	var isEntered2 = false;
	
	if($('#ProductsOuterIdHome').length > 0){
		
			
	}else{
	
		if($('#crosssellhidden').length > 0 && !isEntered){
			iCPCount = parseInt($('#crosssellhidden').val());
			iClAuto = (($('ul.jCarouselLiteUl').find('li').length > 8)?1000:0);
			iCircular = (($('ul.jCarouselLiteUl').find('li').length > 8)?true:false);
			iVisible = 8 ;
			isEntered = true;
		}else{
			iClAuto = (($('ul.jCarouselLiteUl').find('li').length > 1)?1000:0);
			iCircular = (($('ul.jCarouselLiteUl').find('li').length > 1)?true:false);
			iVisible = 1 ;
		}
	
		if($(".jCarouselLite1").length > 0){
			$(".jCarouselLite1").jCarouselLite({
				btnNext: ".next1",
				btnPrev: ".prev1",
				btnPause: ".pause",
				btnPlay: ".play",
				auto:iClAuto,
				speed:1500,
				btnSpeed:500,
				autoSpeed: 2000,
				autoplay:false,
				easing:'easeinout',
				visible:iVisible,
				circular:iCircular,
				scroll:1,
				pauseOnHover:true
			});
		}
	}
	
	
	
	
});

$(document).ready(function(){

	var isEntered = false;
	var isEntered2 = false;
	
	if($('#ProductsOuterIdHome2').length > 0){
		
			
	}else{
	
		if($('#crosssellhidden2').length > 0 && !isEntered){
			iCPCount = parseInt($('#crosssellhidden2').val());
			iClAuto = (($('ul.jCarouselLite2Ul').find('li').length > 8)?1000:0);
			iCircular = (($('ul.jCarouselLite2Ul').find('li').length > 8)?true:false);
			iVisible = 8 ;
			isEntered = true;
		}else{
			iClAuto = (($('ul.jCarouselLite2Ul').find('li').length > 1)?1000:0);
			iCircular = (($('ul.jCarouselLite2Ul').find('li').length > 1)?true:false);
			iVisible = 1 ;
		}
	
		if($(".jCarouselLite12").length > 0){
			$(".jCarouselLite12").jCarouselLite({
				btnNext: ".next2",
				btnPrev: ".prev2",
				btnPause: ".pause",
				btnPlay: ".play",
				auto:iClAuto,
				speed:2000,
				btnSpeed:500,
				autoSpeed: 2000,
				easing:'easeinout',
				visible:iVisible,
				circular:iCircular,
				scroll:1,
				pauseOnHover:true
			});
		}
	}
	
	
	
	
});

