function chktop()

{
var a = window.name;
if (a != "genemain")
  {
  top.location.href = "../index.html";
  }

}

function expande(a)

{
var luego, ahora, vardiv;
ahora=document.getElementById(a).style.display;
if (ahora=='none')
  {luego='inline'}
else
  {luego='none'  }
document.getElementById(a).style.display=luego
}


function load() 

{

var StParam = location.search.substring(1,location.search.length); 
var ArrParam = StParam.split(";");  
var t="m";

for (i=0; i<ArrParam.length; i++) 

  {
  var ArrThisParm = ArrParam[i].split("=");
  if (isNaN(parseFloat(ArrThisParm[1])))
    eval(ArrThisParm[0]+"='"+unescape(ArrThisParm[1])+"';");
  else
    eval(ArrThisParm[0]+"="+ArrThisParm[1]+";");

  }
  
if (GBrowserIsCompatible()) 
  {
  var map = new GMap2(document.getElementById("map"));
  var cadena = "<h3>"+l+"</h3>";
  if (t=="m") 
    {
    tipomap = G_NORMAL_MAP;   
    }
  else
    {
    tipomap = G_HYBRID_MAP;
    }
  map.addControl(new GLargeMapControl());
  map.addControl(new GScaleControl());
  map.addControl(new GOverviewMapControl());
  map.addControl(new GMapTypeControl());
  map.setCenter(new GLatLng(x, y), z, tipomap);
  map.openInfoWindowHtml(new GLatLng(x,y), cadena); 
  }
}

