ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

function kvoid() {
}

function MM_findObj(n, d) { //v3.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); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function set_Menu_position() {
  if (ns4) {
    w=window.innerWidth; 
    h=window.innerHeight;
  }
  else if (ie4) {
    w=document.body.clientWidth; 
    h=document.body.clientHeight;
  }
  obj=MM_findObj('Uzlet');
  if (ie4) obj=obj.style;
  if (w>630) obj.left=(w-630)/2+190;
  else obj.left=190;
  
}

function JUliHideMenu() {
var v,top,bottom,left,right,obj,args=JUliHideMenu.arguments;
obj=MM_findObj(args[0]);

if (ns4) {
top=obj.top+2;
bottom=obj.top+obj.clip.bottom-6;
left=obj.left+2;
right=obj.left+obj.clip.right-2;
x=args[1].pageX;
y=args[1].pageY;
}

if (ie4) {
obj=obj.style;
top=parseInt(obj.top)+2;
bottom=top+parseInt(obj.height)-2;
left=parseInt(obj.left)+2;
right=left+parseInt(obj.width)-2;
x=event.clientX;
y=event.clientY;
}

if ( x>=left && x<=right &&
     y>=top  && y<=bottom  ) {
 obj.visibility=(ns4)?'show':'visible' ;
 } 
 else {
 obj.visibility=(ns4)?'hide':'hidden' ;
}

}


