//this highlights the topnav link, which is set in the body tag
var currentpage = "none";
	
	function setPage(pagename){
		if (document.images[currentpage]){
			document.images[currentpage].src = eval(currentpage).src;
		}
			if (pagename != 'none' && document.images[pagename]){
				document.images[pagename].src = eval(pagename+"on").src;
			}
			currentpage = pagename;
		}
		
//this preloads all the images
if (document.images) {
		nav_manufacturing_off= new Image;
     	nav_manufacturing_off.src="images/nav_manufacturing_off.jpg";
		nav_manufacturing_on= new Image;
     	nav_manufacturing_on.src="images/nav_manufacturing_on.jpg";
		
		nav_certifications_off= new Image;
     	nav_certifications_off.src="images/nav_certifications_off.jpg";
		nav_certifications_on= new Image;
     	nav_certifications_on.src="images/nav_certifications_on.jpg";
		
		nav_licenses_off= new Image;
     	nav_licenses_off.src="images/nav_licenses_off.jpg";
		nav_licenses_on= new Image;
     	nav_licenses_on.src="images/nav_licenses_on.jpg";
		
		nav_aboutus_off= new Image;
     	nav_aboutus_off.src="images/nav_aboutus_off.jpg";
		nav_aboutus_on= new Image;
     	nav_aboutus_on.src="images/nav_aboutus_on.jpg";
		
		nav_contactus_off= new Image;
     	nav_contactus_off.src="images/nav_contactus_off.jpg";
		nav_contactus_on= new Image;
     	nav_contactus_on.src="images/nav_contactus_on.jpg";
		
		
		
		nav_pp_off= new Image;
     	nav_pp_off.src="images/nav_pp_off.jpg";
		nav_pp_on= new Image;
     	nav_pp_on.src="images/nav_pp_on.jpg";
		
		nav_orb_off= new Image;
     	nav_orb_off.src="images/nav_orb_off.jpg";
		nav_orb_on= new Image;
     	nav_orb_on.src="images/nav_orb_on.jpg";
		
		nav_tif_off= new Image;
     	nav_tif_off.src="images/nav_tif_off.jpg";
		nav_tif_on= new Image;
     	nav_tif_on.src="images/nav_tif_on.jpg";
		
		
		
		nav_ppsite_off= new Image;
     	nav_ppsite_off.src="images/nav_ppsite_off.jpg";
		nav_ppsite_on= new Image;
     	nav_ppsite_on.src="images/nav_ppsite_on.jpg";
  }
 
 //rollover function for single images
 function rollImage(imagename,imageloc){
		if (currentpage != imageloc){
			document.images[imageloc].src = imagename.src;
		}
	}

function openAWindow( pageToLoad, winName, width, height, center) {  
	xposition=250; yposition=50;

    if ((parseInt(navigator.appVersion) >= 4 ) && (winName=="undefined")){
    xposition=screen.width-400; yposition=screen.height-480;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=0,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open( pageToLoad,winName,args );
	}
	
function openAWindow2( pageToLoad, winName, width, height, center) {  
	xposition=250; yposition=50;

    if ((parseInt(navigator.appVersion) >= 4 ) && (winName=="undefined")){
    xposition=screen.width-400; yposition=screen.height-480;
    }
    args = "width=" + width + "," 
    + "height=" + height + "," 
    + "location=0," 
    + "menubar=0,"
    + "resizable=0,"
    + "scrollbars=1,"
    + "status=0," 
    + "titlebar=0,"
    + "toolbar=0,"
    + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

    window.open( pageToLoad,winName,args );
	}

 
