/** * Script pro distribuci map * www.hrady.cz * (c) 2009 Vlky */ var beginzoom = 11; //nastaveno systemem bez moznosti ovlivneni // ninimalni rozmery okna pro mapu var minMapW = 470; var minMapH = 250; //div pro mapu mapHrady = document.getElementById("HradyCzMap"); url = 'http://www.hrady.cz/mapy/wnd_mapa.php?beginx=50.778611&beginy=15.59&beginzoom='+beginzoom+'¢erIcon=true|house|castle|sword|&width='+mapHrady.offsetWidth; if (!mapHrady){ alert ("Error!\nNo map DIV element defined!\nInsert
before script."); }else{ if (mapHrady.offsetWidth < minMapW || mapHrady.offsetHeight < minMapH ){ alert ("Minimum size for DIV element is "+ minMapW + " x "+ minMapH+" pix!"); }else{ mapHrady.innerHTML = '
'; } }