
function popupimg(ifile,breite,hoehe,ititle)
        {
 var positionX=((screen.availWidth / 2) - breite / 2); 
 var positionY=((screen.availHeight / 2) - hoehe / 2); 
breite=breite+60;
hoehe=hoehe+160;
 pop=window.open(ifile,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,fullscreen=no,width='+breite+',height='+hoehe+',top=0,left=0'); 
 pop.resizeTo(breite,hoehe); 
 pop.moveTo(positionX,positionY); 
 }




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 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;


