 if (navigator.userAgent.indexOf("Firefox") >= 0){
   xco=1;
   yco=5;
 }else if(navigator.userAgent.indexOf("Opera") >= 0){
   xco=6;
   yco=-9;
 }else{ 
   xco=0;
   yco=0;
 }

   var disap = 'none';
   var dis = 'none';

   function show(id,x,x1,x2){
              if (disap != 'none') {
                document.getElementById('spn_'+disap).style.display = 'none';
                document.getElementById('mnu_'+disap).className='PopUp';
              }
              with (document.getElementById('spn_'+id)){
                l=Math.ceil(document.body.scrollWidth/2) + x;
                if(xco==1)l+=x2;
                else if(xco==6)l+=x1;
                style.left=l;
                style.top = 24;
                style.display = 'block';
              }
              document.getElementById('mnu_'+id).className='mnu';
              disap = id;
   } 

   function vshow(id,y){
//alert(document.body.offsetWidth+' '+document.body.clientWidth+' '+document.body.scrollWidth);return;
              if (dis != 'none') {
                document.getElementById('spn_'+dis).style.display = 'none';
                document.getElementById('mnu_'+dis).className='';
              }
              if(id<0){
                dis = 'none';
                return;
              }
              if(id%2==0){
                document.getElementById('mnu_'+id).className='mnul';
                x=document.body.scrollWidth/2+3;
              }else{
                document.getElementById('mnu_'+id).className='mnur';
                x=document.body.scrollWidth/2-294;
              }
              document.getElementById('spn_'+id).style.left = x+xco; 
              document.getElementById('spn_'+id).style.top=y+yco;; 
              document.getElementById('spn_'+id).style.display = 'block';
              dis = id;    
   }

   function hide(flag){
            if (disap != 'none'){
              if (event.toElement != null){
                if ((event.toElement.className=='PopUp')||(event.toElement.className=='vPopUp')) return;
                document.getElementById('spn_'+disap).style.display = 'none';
                document.getElementById('mnu_'+disap).className='PopUp';
                disap = 'none';
              }
            }
   }

  function TurOp(){
           Str = document.forms['tur'].elements['kuda'].value;
           if (window.navigator.appName == "Netscape")
             Str = escape(Str);
           window.open("namore/namore.php3?search=" + Str,"","top=100,left=100,width=200,height=300,toolbar=no,menubar=no,location=no,directories=no,scrollbars=yes");
  }

