tmmnu1=null; tmmnu2=null; tmmnu3=null; tmmnu4=null; tmmnu5=null; tmmnu6=null;  tmmnu7=null;
nume = new Array('', 'about', 'products', 'where', 'opportunities', 'support', 'contactus');

function showit(thelayer){
		killrest(thelayer);
		eval ('clearTimeout(tmmnu'+thelayer+')');
		tgbx('mnu'+thelayer, 1);
		eval ('tgbx(\'dmnu'+thelayer+'\', 1)');

		if (thelayer<7) eval ('mn'+thelayer+'.src=\'i/m/'+nume[thelayer]+'-2.gif\'');
}
function hideit(thelayer){
		if (thelayer<7) t='mn'+thelayer+'.src=\'i/m/'+nume[thelayer]+'-1.gif\'';
		else t='';

		eval ('tmmnu'+thelayer+'=setTimeout("tgbx(\'mnu'+thelayer+'\', 0); tgbx(\'dmnu'+thelayer+'\', 0);" + t,500)');
}
function killrest(nu) {
	if (nu!=7)
	for (x=1; x<8; x++)
		if (x!=nu) {
			tgbx('mnu'+x, 0);
			tgbx('dmnu'+x, 0);
			if (x!=7) eval ('mn'+x+'.src=\'i/m/'+nume[x]+'-1.gif\'');
		}
}

function tgbx(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

function stf(link){
	win=window.open(link,'send','width=450, height=320, scrollbars=0, location=0, menubar=0, status=0, toolbar=0, addressbar=0, resizable=0');
	win.moveTo(screen.width/2-225,screen.height/2-160);
	win.focus();
}

function popup(href, w, h, r, s) {
	win=window.open(href,'send','width='+w+', height='+h+', scrollbars='+s+', location=0, menubar=0, status=0, toolbar=0, addressbar=0, resizable='+r);
	win.moveTo(screen.width/2-(w/2),screen.height/2-(h/2));
	win.focus();
}

function show3D(b,id,ptype,w,h){
	var scr1=null;
	var params='scrollbars=no,status=no,innerWidth='+w+',width='+w+',height='+h;
	var scr1=window.open(zepath+'products/3dview.html?id='+id+'&ptype='+ptype,'trideewin'+id+ptype,params);
	scr1.moveTo(0,0);
	if(scr1.innerHeight){
		scr1.resizeTo(w+(scr1.outerWidth-scr1.innerWidth),h+(scr1.outerHeight-scr1.innerHeight));
	}
	scr1.focus();
}

function preload () {
	i1=new Image();   i1.src="i/f/d.gif";
	i2=new Image();   i2.src="i/f/b.gif";
	i3=new Image();   i3.src="i/f/c.gif";
	i4=new Image();   i4.src="i/b.gif";
	i5=new Image();   i5.src="i/m/1-1.gif";
	i6=new Image();   i6.src="i/m/1-2.gif";
	i7=new Image();   i7.src="i/m/1-3.gif";
	i8=new Image();   i8.src="i/m/2-1.gif";
	i9=new Image();   i9.src="i/m/2-2.gif";
	i10=new Image();   i10.src="i/m/2-3.gif";
	i11=new Image();   i11.src="i/m/2-4.gif";
	i12=new Image();   i12.src="i/m/2-5.gif";
	i13=new Image();   i13.src="i/m/3-1.gif";
	i14=new Image();   i14.src="i/m/3-2.gif";
	i15=new Image();   i15.src="i/m/4-1.gif";
	i16=new Image();   i16.src="i/m/4-2.gif";
	i17=new Image();   i17.src="i/m/4-3.gif";
	i18=new Image();   i18.src="i/m/5-1.gif";
	i19=new Image();   i19.src="i/m/5-2.gif";
	i20=new Image();   i20.src="i/m/5-3.gif";
	i21=new Image();   i21.src="i/m/5-4.gif";
	i22=new Image();   i22.src="i/m/5-5.gif";
	i23=new Image();   i23.src="i/m/6-1.gif";
	i24=new Image();   i24.src="i/m/6-2.gif";
	i25=new Image();   i25.src="i/m/about-1.gif";
	i26=new Image();   i26.src="i/m/about-2.gif";
	i27=new Image();   i27.src="i/m/bk.gif";
	i28=new Image();   i28.src="i/m/contactus-1.gif";
	i29=new Image();   i29.src="i/m/contactus-2.gif";
	i30=new Image();   i30.src="i/m/d.gif";
	i31=new Image();   i31.src="i/m/dts.gif";
	i32=new Image();   i32.src="i/m/opportunities-1.gif";
	i33=new Image();   i33.src="i/m/opportunities-2.gif";
	i34=new Image();   i34.src="i/m/products-1.gif";
	i35=new Image();   i35.src="i/m/products-2.gif";
	i36=new Image();   i36.src="i/m/support-1.gif";
	i37=new Image();   i37.src="i/m/support-2.gif";
	i38=new Image();   i38.src="i/m/where-1.gif";
	i39=new Image();   i39.src="i/m/where-2.gif";
}

function swtch(care) {
	if (eval("this.document.all."+care+".style.display")=="none") {
		eval("this.document.all."+care+".style.display=\"block\"");
		eval("this.document.all.pic"+care+".src='i/minus.gif'");
	}
	else {
		eval("this.document.all."+care+".style.display=\"none\"") ;
		eval("this.document.all.pic"+care+".src='i/plus.gif'");
	}
}
function popupWindow(pic, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrloobars=no,resizable=no,titlebar=0'
	win = window.open(zepath+'/data/pic_pop.php?p='+pic,'', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}