// JavaScript Document

<!-- contact form use start-->

function errorCheck(email) 
    {
        if (email.indexOf("@") == -1 ||
            email == "" || email.indexOf(".") == -1) {
        alert("Please include a proper email address.");
		document.optout.e.value = "";
		document.optout.e.focus();
        return false;
        } else {
			formaction = "http://offers.e-centives.com/si/rb/hs/us/?e=" + email
			window.opener.location.href= formaction;
			window.close();
		}
     }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value == "contact_form2.shtml") {
  	window.opener.location.href = "contact_form2.shtml";
	window.opener.focus();
  } else {
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  }
  if (restore) selObj.selectedIndex=0;
}



var numPages = 2 // This value may change depending on number of pages (divs).
function showHide (id) {
  for (i=1;i<=numPages;i++) {
	document.getElementById("my_page" + i).style.display = 'none';
  }
document.getElementById("my_page" + id).style.display = '';
}


function NewWindow(winName, url, w, h){
var popup;
  if (popup != null && !popup.closed) {
  	popup.close();
  }
  var width = 535;
  var height = 520;
  if (arguments.length > 2) { width = w; }
  if (arguments.length > 3) { height = h; }
  if (arguments.length == 1) { url = ''; }
  var left = (screen.availWidth / 2) - (width / 2);
  var top = (screen.availHeight / 2) - (height / 2);
  popup = window.open(url, winName,'toolbar=0,scrollbars=1,resizeable=0,width=' +
width + ',height=' + height + ',top=' + top + ',left=' + left);
  popup.focus();
}
<!-- contact form use end -->

<!-- Rotate code: rgiht box -->
var pause=5000;
<!--
  
Know7var = "know7"
Know6var = "know6"
Know5var = "know5"
         function Rotate4(CurrentVar4)  {          
			if (CurrentVar4 == "4") {
					CurrentVar4 = 1
				} 
		                                                      
					switch (CurrentVar4) 
						{
						case 1 :
    					changeObjectVisibility(Know7var, "hidden");
						changeObjectVisibility(Know6var, "hidden");	
    					changeObjectVisibility(Know5var, "visible");
						break;
						case 2 :
						changeObjectVisibility(Know7var, "hidden");
    					changeObjectVisibility(Know6var, "visible");
						changeObjectVisibility(Know5var, "hidden");	
    					break;
						case 3 :
						changeObjectVisibility(Know7var, "visible");
    					changeObjectVisibility(Know6var, "hidden");	
    					changeObjectVisibility(Know5var, "hidden");
						break;
						}
						  
						NewCurrentVar4 = CurrentVar4 + 1;
                       	window.setTimeout('Rotate4(NewCurrentVar4)',pause); 
                       }
//---------------DONE------->


<!--
  
Know10var = "know10"
Know9var = "know9"
Know8var = "know8"
         function Rotate5(CurrentVar5)  {          
			if (CurrentVar5 == "4") {
					CurrentVar5 = 1
				} 
		                                                      
					switch (CurrentVar5) 
						{
						case 1 :
    					changeObjectVisibility(Know10var, "hidden");
						changeObjectVisibility(Know9var, "hidden");	
    					changeObjectVisibility(Know8var, "visible");
						break;
						case 2 :
						changeObjectVisibility(Know10var, "hidden");
    					changeObjectVisibility(Know9var, "visible");
						changeObjectVisibility(Know8var, "hidden");	
    					break;
						case 3 :
						changeObjectVisibility(Know10var, "visible");
    					changeObjectVisibility(Know9var, "hidden");	
    					changeObjectVisibility(Know8var, "hidden");
						break;
						}
						  
						NewCurrentVar5 = CurrentVar5 + 1;
                       	window.setTimeout('Rotate5(NewCurrentVar5)',pause); 
                       }
//---------------DONE------->



<!-- rotate the bottom nav Diagnose problem and Solve problem -->
                                                
Know4var = "know4"    
Know3var = "know3"    
         function Rotate2(CurrentVar2)  {          
			if (CurrentVar2 == "3") {
					CurrentVar2 = 1
				} 
		                                                      
					switch (CurrentVar2) 
						{
						case 1 :
    					changeObjectVisibility(Know4var, "hidden");	
    					changeObjectVisibility(Know3var, "visible");
						break;
						case 2 :
    					changeObjectVisibility(Know3var, "hidden");	
    					changeObjectVisibility(Know4var, "visible");
						break;
						}
						  
						NewCurrentVar2 = CurrentVar2 + 1;
                       	window.setTimeout('Rotate2(NewCurrentVar2)',pause); 
                       }


Know2var = "know2"    
Know1var = "know1"    
         function Rotate(CurrentVar)  {          
			if (CurrentVar == "3") {
					CurrentVar = 1
				} 
		                                                      
					switch (CurrentVar) 
						{
						case 1 :
						changeObjectVisibility(Know1var, "visible");
    					changeObjectVisibility(Know2var, "hidden");	    					
						break;
						case 2 :
    					changeObjectVisibility(Know1var, "hidden");	
    					changeObjectVisibility(Know2var, "visible");
						break;
						}
						  
						NewCurrentVar = CurrentVar + 1;
                       	window.setTimeout('Rotate(NewCurrentVar)',pause); 
                       }

//---------------DONE------->

function gotoWebsite(urlnum){

if(urlnum=="contact") {
this.location.href="/contact.html";
}
if(urlnum=="offers") {
this.location.href="/specialoffers.html";
}
if(urlnum=="news") {
this.location.href="/news.html";
}
if(urlnum=="tvAds") {
this.location.href="/tvad.html";
}

if(urlnum=="noTouch") {
this.location.href="/traps/nvnt.html";
}
if(urlnum=="baitPaste") {
this.location.href="/baits/paste-pouch.html";
}
if(urlnum=="ultra") {
this.location.href="/traps/ultra-set.html";
}
if(urlnum=="glueTraps") {
this.location.href="/traps/glue-traps.html";
}
if(urlnum=="readyMixed") {
this.location.href="/baits/bait-bit-trays.html";
}
if(urlnum=="placePacks") {
this.location.href="/baits/place-packs.html";
} 
if(urlnum=="baitBlocks") {
this.location.href="/baits/bait-blocks.html";
} 

}
