<!--

// The syntax for using these functions in an HTML document are as follows:
//
// <a href="#" onMouseOver="imgOn('img2')" onMouseOut="imgOff('img2')">
// <img src="file.gif" name="img2" width="60" height="60" border="0"></a>

var loaded=0;


//set an array for the to turn on the appropriate nav button				
var webSections = new Array();
		
webSections[0] = "crystal_ball";
webSections[1] = "description";
webSections[2] = "q_and_a";
webSections[3] = "name_career";
webSections[4] = "feedback";
webSections[5] = "policies";

var currentPage = '';

// loop through the section array to identify the subscript of the section we're in                
for (i=0; i < webSections.length; i++) {
                
	if (webSections[i] == section) {
		i++;
		currentPage = "img" + i;
	}
}

if ((is_nav3up) || (is_ie4up)) br = "good";

else br = "bad";


if (br == "good") {
	
			var pathtoRoot = "/";
			
			//these are for the horizontal inside nav
			img1on = new Image(); img1on.src = pathtoRoot + "images/our_company_horiz_on.gif";
	        img1off = new Image(); img1off.src = pathtoRoot + "images/our_company_horiz_off.gif";
			img2on = new Image(); img2on.src = pathtoRoot + "images/products_horiz_on.gif";
	        img2off = new Image(); img2off.src = pathtoRoot + "images/products_horiz_off.gif";
			img3on = new Image(); img3on.src = pathtoRoot + "images/accessories_horiz_on.gif";
	        img3off = new Image(); img3off.src = pathtoRoot + "images/accessories_horiz_off.gif";
			img4on = new Image(); img4on.src = pathtoRoot + "images/support_horiz_on.gif";
	        img4off = new Image(); img4off.src = pathtoRoot + "images/support_horiz_off.gif";
			img5on = new Image(); img5on.src = pathtoRoot + "images/feedback_horiz_on.gif";
	        img5off = new Image(); img5off.src = pathtoRoot + "images/feedback_horiz_off.gif";
			img6on = new Image(); img6on.src = pathtoRoot + "images/policies_horiz_on.gif";
	        img6off = new Image(); img6off.src = pathtoRoot + "images/policies_horiz_off.gif";
			
			//these are for the vertical home nav
	        img7on = new Image(); img7on.src = pathtoRoot + "images/our_company_on.gif";
	        img7off = new Image(); img7off.src = pathtoRoot + "images/our_company_off.gif";
     		img8on = new Image(); img8on.src = pathtoRoot + "images/cobra_family_on.gif";
	        img8off = new Image(); img8off.src = pathtoRoot + "images/cobra_family_off.gif";
			img9on = new Image(); img9on.src = pathtoRoot + "images/pshot_family_on.gif";
	        img9off = new Image(); img9off.src = pathtoRoot + "images/pshot_family_off.gif";
			img10on = new Image(); img10on.src = pathtoRoot + "images/easyshot_on.gif";
	        img10off = new Image(); img10off.src = pathtoRoot + "images/easyshot_off.gif";
	        img11on = new Image(); img11on.src = pathtoRoot + "images/thermogrip_family_on.gif";
	        img11off = new Image(); img11off.src = pathtoRoot + "images/thermogrip_family_off.gif";
	        img12on = new Image(); img12on.src = pathtoRoot + "images/accessories_on.gif";
	        img12off = new Image(); img12off.src = pathtoRoot + "images/accessories_off.gif";
	        img13on = new Image(); img13on.src = pathtoRoot + "images/support_on.gif";
	        img13off = new Image(); img13off.src = pathtoRoot + "images/support_off.gif";
	        img14on = new Image(); img14on.src = pathtoRoot + "images/feedback_on.gif";
	        img14off = new Image(); img14off.src = pathtoRoot + "images/feedback_off.gif";
	        img15on = new Image(); img15on.src = pathtoRoot + "images/policies_on.gif";
	        img15off = new Image(); img15off.src = pathtoRoot + "images/policies_off.gif";	        
	        
}



function imgOn(imgName) {
        if (br == "good") {
                document[imgName].src = eval(imgName + "on.src");
                //document.hold.src = eval(imgName + "hold.src");
                
                //window.status = eval(imgName + "copy");
       			
       }

}

function imgOff(imgName) {
        if (br == "good") {
                
                if (imgName == currentPage) {
                	document[imgName].src = eval(imgName + "on.src");
	            } else { 
	            	document[imgName].src = eval(imgName + "off.src");
	            }
  				     
        
        }

}

function openWindow(URL,W,H) {
			
	//alert('Width is ' + width + ' and height is ' + height);
	newWindow=window.open(URL,"thenewwindow","toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=" + W + ",height=" + H);
	//newWindow.opener.name= "main";
	//newWindow.focus();
}

//-->

