// JavaScript Document
function overMenu(aMenu){
	var n = document.getElementById("mtop"+[aMenu]);
	n.className="mactive";
	n = null;
}
		
function outMenu(aMenu){
	var n = document.getElementById("mtop"+[aMenu]);
	n.className="";
	n = null;
}

function overBox(aBox){
	var n = document.getElementById("popis_"+aBox);
	n.style.visibility="visible";
	n = null;
}
		
function outBox(aBox){
	var n = document.getElementById("popis_"+aBox);
	n.style.visibility="hidden";
	n = null;
}
function newWin(link,winName){
    var myWin = window.winName;
    if (myWin != null && !myWin.closed){ 
      myWin.focus();
      myWin.location.href = link.href
    } 
    else { 
      myWin = window.open(link.href,winName);
      if (myWin==null || typeof(myWin)=="undefined"){
        return false;    
      }
      myWin.focus(); 
    }
}
function newCar(link,winName){
    var myCar = window.winName;
    if (myCar != null && !myCar.closed){ 
      myCar.focus();
      myCar.location.href = link.href
    } 
    else { 
      myCar = window.open(link.href,winName,'toolbar=no,location=no,scrollbars=yes,resizable=yes,width=725,height=500');
      if (myCar==null || typeof(myCar)=="undefined"){
        return false;    
      }
      myCar.focus(); 
    }
}
function galWin(link,winName){
    var myCar = window.winName;
    if (myCar != null && !myCar.closed){ 
      myCar.focus();
      myCar.location.href = link.href
    } 
    else { 
      myCar = window.open(link.href,winName,'toolbar=no,location=no,scrollbars=yes,resizable=yes,width=640,height=520');
      if (myCar==null || typeof(myCar)=="undefined"){
        return false;    
      }
      myCar.focus(); 
    }
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-w)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-h)-75)):50;}
if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-w)/2:50;TopPosition=(screen.availHeight)?(screen.availHeight-h)/2:50;}
if(pos=="default"){LeftPosition=50;TopPosition=50}
else if((pos!="center" && pos!="random" && pos!="default") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}
}