//Netscape resize
if (document.layers) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (document.layers) onresize = reDo;



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  re= /\s/gi;
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value.replace(re,'%20')+"'");
  if (restore) selObj.selectedIndex=0;
}


//code for side navigation

function turnOffMenu_test() {
  if (!domStyle){
      display = 'block';
      }
   }

function turnOffMenu() {
  	if (document.all) {
      menu1.style.display = 'none';
      menu1b.style.display = 'block';
      menu2.style.display = 'none';
      menu2b.style.display = 'block';
      menu3.style.display = 'none';
      menu4.style.display = 'none';
      menu4b.style.display = 'block';
      menu5.style.display = 'none';
      menu5b.style.display = 'block';
      menu6.style.display = 'none';
      menu6b.style.display = 'block';
      menu7.style.display = 'none';
      menu8.style.display = 'none';
      menu9.style.display = 'none';
      }
      else {
        document.getElementById('menu1').style.display='none';
        document.getElementById('menu1b').style.display='block';
        document.getElementById('menu2').style.display='none';
        document.getElementById('menu2b').style.display='block';
        document.getElementById('menu3').style.display='none';
        document.getElementById('menu4').style.display='none';
        document.getElementById('menu4b').style.display='block';
        document.getElementById('menu5').style.display='none';
        document.getElementById('menu5b').style.display='block';
        document.getElementById('menu6').style.display='none';
        document.getElementById('menu6b').style.display='block';
        document.getElementById('menu7').style.display='none';
        document.getElementById('menu8').style.display='none';
        document.getElementById('menu9').style.display='none';
       
 
      }     
 } 
  
function subturnOffMenu() {
  if (document.all) {
    menu1b.style.display = 'none';
    menu1c.style.display = 'none';
    menu2b.style.display = 'none';
    menu2c.style.display = 'none';
    menu4b.style.display = 'none';
    menu4c.style.display = 'none';
    menu5b.style.display = 'none';
    menu5c.style.display = 'none';
    menu6b.style.display = 'none';
    menu6c.style.display = 'none';
  }
  else {
        document.getElementById('menu1b').style.display='none';
        document.getElementById('menu1c').style.display='none';
        document.getElementById('menu2b').style.display='none';
        document.getElementById('menu2c').style.display='none';
        document.getElementById('menu4b').style.display='none';
        document.getElementById('menu4c').style.display='none';
        document.getElementById('menu5b').style.display='none';
        document.getElementById('menu5c').style.display='none';
        document.getElementById('menu6b').style.display='none';
        document.getElementById('menu6c').style.display='none';
        
 
      }     
 } 
  



function setMenuOpen(section) {
		section.display='block';
  }

  
function toggleClamShellMenu(objectID) {

if (isAll || isID) {	  
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else {
		  turnOffMenu();
		  domStyle.display='block';
		  }
	}
	else {
		destination = 'products.html';
		self.location = destination;
	}
	return;
}

function subtoggleClamShellMenu(objectID) {

	if (isAll || isID) {	  
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else {
		  subturnOffMenu();
		  domStyle.display='block';
		  }
	}
	else {
		destination = 'products.html';
		self.location = destination;
	}
	return;
}


function toggleClamShellMenu_orig(objectID) {
	if (isAll || isID) {
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block')  domStyle.display='none';
		else domStyle.display='block';
	}
	else {
		destination = objectID + '.html';
		self.location = destination;
	}
	return;
}


//Code for style sheet select
function writeStyle(){
	if (document.all){
		document.write('<link rel="stylesheet" href="/styles/style.css" type="text/css">');
	}
	if (document.layers){
		document.write('<link rel="stylesheet" href="/styles/style_ns.css" type="text/css">');
	}
}



/********************************************************************************
Copyright (C) 1999 Thomas Brattli
This script is made by and copyrighted to Thomas Brattli at www.bratta.com
Visit for more great scripts. This may be used freely as long as this msg is intact!
I will also appriciate any links you could give me.
********************************************************************************/
//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser();

oldDomSMenu = null;

//Shows the div
function showNav(div,nest){
       
          if (oldDomSMenu) { 
               oldDomSMenu.visibility = 'hidden'; 
          } 

        
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='visible';
	oldDomSMenu = obj; 
}



 


