
//Scroll pane over-flow control div
	function setTabVal(val1) {
		$(val1).css({display: "block" });
		$('.scrollbar-typ1 .scroll-pane1').jScrollPane({scrollbarWidth:11, showArrows:false});
		$('.scrollbar-typ1 .scroll-pane1').wrap($("<div></div>")
			.attr({'className':'scroll-pane-overflow'})
		);
		$(val1).css({display: "none" });
		$(val1).filter(':first').show();
	}


// footer VERTICAL SCROLL
		$('.ft-scrollbar-typ1-js .scroll-pane').jScrollPane({scrollbarWidth:11, showArrows:false});
		$('.ft-scrollbar-typ1-js .scroll-pane').wrap($("<div></div>")
			.attr({'className':'scroll-pane-overflow'})
		);
// landing VERTICAL SCROLL
		$('.scrollbar-typ2-js .scroll-pane').jScrollPane({scrollbarWidth:11, showArrows:false});
		$('.scrollbar-typ2-js .scroll-pane').wrap($("<div></div>")
			.attr({'className':'scroll-pane-overflow'})
		);
// search drop down VERTICAL SCROLL
		
	$(".search_popup ul li").hover(			
		function() {$(this).addClass('li-selected');},
		function() {$(this).removeClass('li-selected');}
	);

// RATING SYSTEM
	var r1 = $(".stars .r1");
	r1.hover(
			function () {
				$(".stars .r1").addClass('r-active');
				$(".stars .r2, .stars .r3, .stars .r4, .stars .r5").removeClass('r-active');
		  	}//,
		  //	function () {
		   	//	$(".stars .r1, .stars .r2, .stars .r3, .stars .r4, .stars .r5").removeClass('r-active');
		  //	}
		);
	var r2 = $(".stars .r2");
	r2.hover(
			function() {
				$(".stars .r1, .stars .r2").addClass('r-active');
				$(".stars .r3, .stars .r4, .stars .r5").removeClass('r-active');
			}
		);
	var r3 = $(".stars .r3");
	r3.hover(
			function() {
				$(".stars .r1, .stars .r2, .stars .r3").addClass('r-active');
				$(".stars .r4, .stars .r5").removeClass('r-active');
			}
		);
	var r4 = $(".stars .r4");
	r4.hover(
			function() {
				$(".stars .r1, .stars .r2, .stars .r3, .stars .r4").addClass('r-active');
				$(".stars .r5").removeClass('r-active');
			}
		);
	var r5 = $(".stars .r5");
	r5.hover(
			function() {
				$(".stars .r1, .stars .r2, .stars .r3, .stars .r4, .stars .r5").addClass('r-active');
			}
		);

	$(".ratethisproduct").hover(
		function() {
				$(".add-rating").css({display: "block" });
			},
		function() {
				$(".add-rating").css({display: "block" });
			}
		);
	$(".add-rating").hover(
		function() {
				$(".add-rating").css({display: "block" });
			},
			function() {
				$(".add-rating").css({display: "block" });
			}
		);
	


// SIMPLE POP UP SCRIPT 
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

// DIV FOR OVERLAY
	/*$('.custom-overlay').css({height:pageheight});
	$('.custom-overlay td').css({height:windowheight});*/
	
	
	//Examples of how to assign the ColorBox event to elements
	//$(".share-popw").colorbox({width:"395px", inline:true, overlayClose:false, escKey:false, href:"#share-popup"});

/*$('.feedbackfrm').click(function() {	
	$(".feedbackfrm").colorbox({width:"615px", inline:true, overlayClose:false, escKey:false, href:"#feedback_popup", 
	   onOpen:function(){
		   window.open($(this).attr("href"),'_blank');
		   }
	 });
});*/

	jQuery('.april-fool-lnk').click(function() {			
			var pageheight = jQuery(document).height();
			var windowheight = jQuery(window).height();
			var windowwidth = jQuery(window).width();
			jQuery('.custom-popup-js-apf').css({height:pageheight});
			jQuery('.custom-popup-js-apf .overlaytd').css({height:windowheight});
			jQuery('.custom-popup-js-apf .overlaytd').css({width:windowwidth});
		});

	
	jQuery('.feedbackfrm').click(function() {	
			var pageheight = jQuery(document).height();
			var windowheight = jQuery(window).height();
			var windowwidth = jQuery(window).width();
			jQuery('.custom-popup-js1').css({height:pageheight});
			jQuery('.custom-popup-js1 .overlaytd').css({height:windowheight});
			jQuery('.custom-popup-js1 .overlaytd').css({width:windowwidth});
			jQuery(".custom-popup-js1").css("display","block");
		});

	jQuery('.popupbox .closebtn').click(function() {	
		 jQuery(".custom-overlay2").css("display","none");
	});

	jQuery('.popupbox .thankbtn').click(function() {	
		 jQuery(".custom-overlay2").css("display","none");
	});



	jQuery('.share-popw').click(function() {	
			var pageheight = jQuery(document).height();
			var windowheight = jQuery(window).height();
			var windowwidth = jQuery(window).width();
			/*var poppos = pageheight / 2;
			jQuery('.custom-popup-js3 .overlaytd').css("padding-top",windowheight);*/
			jQuery('.custom-popup-js3').css({height:pageheight});
			jQuery('.custom-popup-js3 .overlaytd').css({height:windowheight});
			jQuery('.custom-popup-js3 .overlaytd').css({width:windowwidth});
			jQuery(".custom-popup-js3").css("display","block");
		});
	jQuery('.closebtn-js').click(function() {	
		 jQuery(".custom-overlay2").css("display","none");
		});
	
	
		jQuery('.country-popw').click(function() {	
			var pageheight = jQuery(document).height();
			var windowheight = jQuery(window).height();
			var windowwidth = jQuery(window).width();
			/*var poppos = pageheight / 2;
			jQuery('.custom-popup-js3 .overlaytd').css("padding-top",windowheight);*/
			jQuery('.custom-popup-js7').css({height:pageheight});
			jQuery('.custom-popup-js7 .overlaytd').css({height:windowheight});
			jQuery('.custom-popup-js7 .overlaytd').css({width:windowwidth});
			jQuery(".custom-popup-js7").css("display","block");
		});
	jQuery('.closebtn-js').click(function() {	
		 jQuery(".custom-overlay2").css("display","none");
		});


	$(".lsb-vr-scroll-js1 .scrollable").scrollable({ vertical: true, mousewheel: true, size:6 });
    
