cm=null;
hide_delay=100;
tstat=0;

var backcolor;
var fontcolor;
var using;

isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

function switchDiv(objElement,bolVisible){
if(isNS4||isIE4){
     if(!bolVisible) {
       objElement.visibility ="hidden"
     } else {
       objElement.visibility ="visible"
     }     
 } else if (isIE5 || isNS6) {
      if(!bolVisible){
         objElement.style.display = "none";
         
      } else {
        objElement.style.display = "";
        
        }

      }

return 1;
}

function getPos(el,sProp) {
	var iPos = 0;
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos

}

function getelementbyid(myid) {
   if (isNS4){
        objElement = document.layers[myid];
     }else if (isIE4) {
        objElement = document.all[myid];
     }else if (isIE5 || isNS6) {
             objElement = document.getElementById(myid);
     }
return(objElement);
}

function show(el,m) {

 if (cm!=null) {
 switchDiv(cm,false);
 }

 if (m!=null) {
 m=getelementbyid(m);
 m.style.left = getPos(el,"Left")+"px";
 m.style.top =  getPos(el,"Top")+el.offsetHeight+"px";
 switchDiv(m,true);
 cm=m;
 }

}

function hidemenu() {

timer1=setTimeout("show(null,null)",hide_delay);
tstat=1;

using=false;

return 1;
}

function cancelhide() {
 if (tstat==1) {
 clearTimeout(timer1);
 tstat=0;
 }
return 1;
}

function pressed(object)
{
 object.src='images/buttons/exp_down.jpg';
 
 if(using)
 {
  hidemenu();
  using=false;
 }
 else
 {
  show(object, 'menu');
  using=true;
 }
}

function itemFocus(object)
{
 object.style.backgroundColor='#333333';
 object.style.color='#FFFFFF';
 machTip(object.id);
}

function itemUnfocus(object)
{
 object.style.backgroundColor='#CCCCCC';
 object.style.color='#000000';
 UnTip();
}

function out(object)
{
 object.src='images/buttons/exp.jpg';
 hidemenu();
}

function go(id)
{
 var page;

 if(id==1) link='frezer.html';
 else if(id==2) link='schvo.html';
 else if(id==3) link='vibroTR.html';
 else if(id==4) link='vibroPL.html';
 else if(id==5) link='vibroRE.html';
 else if(id==6) link='so170.html';
 else if(id==14) link='so199.html';
 else if(id==7) link='so206.html';
 else if(id==8) link='rt.html';
 else if(id==9) link='so501.html';
 else if(id==10) link='so401.html';
 else if(id==11) link='so301.html';
 else if(id==12) link='rta.html';
 else if(id==13) link='trio.html';
 else if(id==15) link='columbus.html';
 else if(id==16) link='wirbell.html';
 else if(id==17) link='drbstr.html';
 else if(id==19) link='dvrtr.html';

 self.location.href=link;
}