
function showmap(name)
 { 
  x=400;
	y=200;
  windowprops = "top=0,left=0,resizable=yes,scrollbars=yes" + ",width=" +(x+30)+ ",height=" +(y+70);
//  windowprops = "top=0,left=0,resizable=yes,scrollbars=yes" + ",width=" + (screen.width-10) + ",height=" + (screen.height-30);
//  windowprops = "top=0,left=0,resizable=yes,scrollbars=yes" + ",width=" + "795" + ",height=" + "200";
  win=window.open("picwin.asp?pic=images/"+name,"", windowprops);
//	win.resizeTo(530,430);
	win.moveTo(210,230);

  }



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; }
}

maxmenu=5;
var mm = new Array()
for(i=0;i<maxmenu+1;i++) mm[i]=0
var ID;

function showmenu(menu)
 {
 clearTimeout(ID);
 for(i=1;i<maxmenu+1;i++) mm[i]=0
 mm[menu]=1;
 MM_showHideLayers('m'+menu,'','show');
 if (menu==3) mm[2]=1;
 if (menu==4) mm[5]=1;
 for(i=1;i<maxmenu+1;i++)
  if(mm[i]==0) MM_showHideLayers('m'+i,'','hide')
 
 ID=setTimeout("hidemenu()",3000); 
 }

function hidemenu()
 {  clearTimeout(ID); 
 if(mm[1]==0) MM_showHideLayers('m1','','hide')
 mm[1]=0; 
 if(mm[2]==0&&mm[3]==0) MM_showHideLayers('m2','','hide')
 mm[2]=0;
 if(mm[4]==0&&mm[5]==0) MM_showHideLayers('m5','','hide')
 mm[5]=0;
 if(mm[4]==0) MM_showHideLayers('m4','','hide')
 mm[4]=0;
 if(mm[3]==0) MM_showHideLayers('m3','','hide')
 mm[3]=0;
 ID=setTimeout("hidemenu()",3000); 
 }

function blende_aus()
 {  clearTimeout(ID);
 for(i=1;i<maxmenu+1;i++) mm[i]=0
 ID=setTimeout("hidemenu()",50); 
 }

  
