function HideMenus() { //v1.0 var childTag; var aInputs = document.body.getElementsByTagName("DIV"); var i,lstrStyle,tag; for(i = 0; i < aInputs.length; i++) { tag = aInputs[i].id; if(tag.substr(0,4) == "mDiv"){ aInputs[i].style.display = "none"; } } } var currentRow = "0100"; function ViewSubMenu(theID,theCat){ var vdiv = "mDiv"+theID; var voldrow = "hRow"+currentRow; var vrow = "hRow"+theID; var theDiv = document.getElementById(vdiv); var theRow = document.getElementById(vrow); var theBGC1 = document.getElementById("BGCOL1"); var theBGC2 = document.getElementById("BGCOL2"); var bgc ; // alert(vdiv+" "+voldrow+" "+vrow); var theOldRow = document.getElementById(voldrow); // var ft = document.getElementById("FAMTYPE"); // ft.src = "images/"+theCat+".jpg"; if(theID > 0){ // theOldRow.style.backgroundColor = '#E8E8E8'; switch(theID){ case '0100': bgc = "#0000cc"; break; case '0200': bgc = "#0033FF"; break; case '0300': bgc = "#0066FF"; break; case '0400': bgc = "#0099ff"; break; case '0500': bgc = "#00ccff"; break; case '0600': bgc = "#33CC99"; break; case '0700': bgc = "#66CC66"; break; case '0800': bgc = "#669933"; break; case '0900': bgc = "#339900"; break; case '1000': bgc = "#006600"; break; case '1100': bgc = "#9999CC"; break; case '1200': bgc = "#DEDEEF"; break; case '1300': bgc = "#0000cc"; break; case '1400': bgc = "#0000cc"; break; case '1500': bgc = "#0000cc"; break; } //alert(theID+" = "+theCat); // alert("here"); //theBGC1.style.backgroundColor = bgc; //theBGC2.style.backgroundColor = bgc; // alert("here"); //theRow.style.backgroundColor = '#AAAAD5'; //theRow.style.fontWeight = 'bold'; //theOldRow.style.fontWeight = 'normal'; currentRow = theID; if(theDiv.style.display == "none"){ HideMenus(); theDiv.style.display = "inline"; }else{ theDiv.style.display = "none"; //theRow.style.backgroundColor = '#E8E8E8'; } expandid = theID; }else{ HideMenus(); } } function LoadSubMenu(theID,theCat){ if(theID !=''){ var vdiv = "mDiv"+theID; var theDiv = document.getElementById(vdiv); currentRow = theID; theDiv.style.display = "inline"; } } var active = false; function resize_MainPanel(){ var sht = screen.availHeight; var top = window.screenTop; var tableht; if(!active){ active = true; ViewSubMenu(expandid,curcat); var maxht = sht - top; if( maxht > 600){ maxht = 600; } /* document.body.style.height = maxht; var ht = maxht - document.getElementById('menubarDiv').offsetHeight; if (document.getElementById('footerDIV')){ht-=document.getElementById('footerDIV').offsetHeight}; if (ht < 50) {ht=50}; document.getElementById('MainContent').style.height = ht; //alert(ht+' '+window.document.body.offsetHeight); }else{ active = false; } */ } } // // function goPage(theCat,theFamily){ //alert('product.php5?PID=0&FAM='+theFamily+'&CAT='+theCat+'&EXID='+expandid); if(theCat == theFamily){ document.location = 'product.php5?PID=0&FAM=none&CAT='+theCat+'&EXID='+expandid; }else{ document.location = 'product.php5?PID=0&FAM='+theFamily+'&CAT='+theCat+'&EXID='+expandid; } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&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