function startShow(mid)
	{ 
	window.status = ('menu open #' + mid);
	}
	
function startHide() {
	MM_showHideLayers('menu1','','hide','menu2','','hide','menu3','','hide','menu4','','hide');
	}
	

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.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 xMM_showHideLayers() {
	return 0;
	}

function openTab(n) {
	
	//otevira zalozku
 	var btn = MM_findObj('st'+ n);
	var mobj = MM_findObj('tab'+ n);
	btn.className = 'tab-btn-a';
	mobj.style.display = 'block';
}


function onMyTab(n) {
	var btn = MM_findObj('st'+ n);
	var btnClass = btn.className;
				
	if(btnClass!='tab-btn-a') {
	  	btn.className='tab-btn-s';
	  	btn.onmouseout = function () {
		  		btn.className='tab-btn';
		  		}
		} else {
		btn.className='tab-btn-a';
	  	btn.onmouseout = function () {
		 		btn.className='tab-btn-a';
		  		}	
		}
	btn.onclick = function () {
		btn.className='tab-btn-a';
		btn.onmouseout = function () {
		 		btn.className='tab-btn-a';
		  		}
				
		for(i=1; i<=3; i++) {
			var btx = MM_findObj('st'+ i);
			var mobj = MM_findObj('tab'+ i);
			if(i!=n) {
		 		mobj.style.display = 'none';
		 		btx.className='tab-btn';
				} else {
					mobj.style.display = 'block';
		 		}
				
			}
		
		}
}


function showM(id) { //v6.0
  var tobj;
  var mbtn;
  for(i=1; i<=9; i++) {
  	 if ((tobj=(MM_findObj('sub0'+i)))!=null) {
	  	mbtn=(MM_findObj('mbtn'+i));
		if(i==id) {
			tobj.style.visibility = 'visible';
			if (mbtn!=null) {mbtn.style.backgroundColor = '#bb0000'; }
	 	} else {
		    tobj.style.visibility = 'hidden';
			if (mbtn!=null) {mbtn.style.backgroundColor = 'transparent'; }
		} 
  	 }
   }
}

function hideM() {
var tobj;
var mbtn;
 for(i=1; i<=9; i++) {
	mbtn=(MM_findObj('mbtn'+i)); 
 	if ((tobj=(MM_findObj('sub0'+i)))!=null) {
	  	tobj.style.visibility = 'hidden'; 
		}
	if (mbtn!=null) {mbtn.style.backgroundColor = 'transparent'; }
 }
}



function hideOnPos()
{
  if (document.layers) getMouseLoc;     //NS
  else if (document.all) getMouseLoc(); //IE
  if(mouseLocation.y <100) { 
  	hideM();
	}
  
  
}


function Point(x,y) {  this.x = x; this.y = y; }
mouseLocation = new Point(-500,-500);

function getMouseLoc(e)
{
  if(!document.all)  //NS
  {
    mouseLocation.x = e.pageX;
    mouseLocation.y = e.pageY;
  }
  else               //IE
  {
    mouseLocation.x = event.x + document.body.scrollLeft;
    mouseLocation.y = event.y + document.body.scrollTop;
  }
  return true;
}

//NS init:
//if(document.layers){ document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = getMouseLoc; }




