function popupimg(file,w,h)
        {

      {
        x = screen.availWidth/2-w/2;
        y = screen.availHeight/2-h/2;
        var popupWindow = window.open(file,'','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y);
      }
}
function zoomto(lan,lon,zoom)
{
map.setCenter(new GLatLng(lan,lon ),zoom);
}

function createMarker(point, number,width,height) {
	var marker = new GMarker(point);

        GEvent.addListener(marker, "click",
	        function()
        	  {
	            marker.openInfoWindowHtml("<div style=\" width:"+width+"px; height:"+height+"px\"><img src=\"/grafik.php?id="+ number + "\"></div>");
        	  }
          );


          return marker;
        }
function  GUnload()
{
return true;
}

function onload()
{
return true;
}


function toggleMyKml()
{
	if (toggleState == 1)
	{
	  map.removeOverlay(geoXml);
	  toggleState = 0;
	}
	else
	{
	  map.addOverlay(geoXml);
	  toggleState = 1;
	}
}
if (top.location != location) top.location.href = document.location.href;




function zoomto(lan,lon,zoom)
{
map.setCenter(new GLatLng(lan,lon ),zoom);
}

function createMarker(point, number,width,height) {
        var marker = new GMarker(point);

        GEvent.addListener(marker, "click",
                function()
                  {
                    marker.openInfoWindowHtml("<div style=\" width:"+width+"px; height:"+height+"px\"><img src=\"/grafik.php?id="+ number + "\"></div>");
                  }
          );


          return marker;
        }
function  GUnload()
{
return true;
}

function site_onload()
{
return true;
}


function toggleMyKml()
{
        if (toggleState == 1)
        {
          map.removeOverlay(geoXml);
          toggleState = 0;
        }
        else
        {
          map.addOverlay(geoXml);
          toggleState = 1;
        }
}
if (top.location != location) top.location.href = document.location.href;

