function fn_act()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (2) ;
//    }
   window.open ("http://www.easternadriatic.com/ea1.asp?tb=2&obj=ALL","mainwin") ;
}
function fn_events()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (3) ;
//    }
    window.open ("http://www.easternadriatic.com/ea1.asp?tb=3&obj=ALL","mainwin") ;
}
function fn_mem()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (4) ;
//    }
    window.open ("http://www.easternadriatic.com/ea1.asp?tb=4&obj=ALL","mainwin") ;
}
function fn_docs()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (1) ;
//    }
      window.open ("http://www.easternadriatic.com/ea1.asp?tb=1&obj=ALL","mainwin") }
function fn_contacts()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (5) ;
//    }
   window.open ("http://www.easternadriatic.com/ea1.asp?tb=5&obj=ALL","mainwin") ;
}
function fn_ideas()
{
//window.open ("/ideas.html","mainwin") ;
  window.open ("/showideas.asp","mainwin") ;
}
function fn_ideas2()
{
window.open ("/phpbb2/index.php","_new") ;
}
function fn_stat()
{
     window.open ("http://www.easternadriatic.com/mapstat.asp?res=1&id=12","statpage","resizable=yes,menubar,toolbar,status") ;
//     window.open ("http://www.easternadriatic.com/statpagemap.htm","statpage","menubar,toolbar,status,width="+ow+",height="+oh) ;
//    }
 //  if (myobj.options[myobj.selectedIndex].value == "txt")
  //  {
  //    window.open ("http://www.easternadriatic.com/statpagetxt.htm","statpage","resizable=yes,menubar,toolbar,status,width="+ow+",height="+oh) ;
  //  }
}
function fn_news()
{
window.open ("http://www.easternadriatic.com/ea1.asp?tb=7&obj=ALL","mainwin") ;
}

function fn_home()
{
//   var myobj = document.forms[0].vtype ;
//   if (myobj.options[myobj.selectedIndex].value == "map")
//    {
//      hidelayer (0) ;
//    }
   window.open ("http://www.easternadriatic.com/mainfrm.html","mainwin") ;
}
function switchview(myobj)
{
 if (myobj.options[myobj.selectedIndex].value == "map")
    window.open ("http://www.easternadriatic.com/viewareamap.htm","mainwin") ;
 if (myobj.options[myobj.selectedIndex].value == "txt")
    window.open ("http://www.easternadriatic.com/mainfrm.html","mainwin") ;
}
function getMap()
{
 if (navigator.appName == "Netscape")
   return parent.mainwin.document.map;
  else
   return parent.mainwin.document.forms[0].map;
}
function hidelayer ( lcode )
{
  var ml,i ;
  var map = getMap () ;
  if (map.isBusy())
   {alert ("Sorry, map Viewer is now busy. Try again in a while");
    return ;
   }
  map.setAutoRefresh (false) ;
  for (i=0;i<6;i++)
   {
     ml = map.getMapLayer ("Cases-"+i) ;
     if (i==lcode)
      {
       ml.setVisibility (true) ;
      }
     else
      {
       ml.setVisibility (false) ;
      }
   }
  map.setAutoRefresh (true);
  map.refresh();
}