var vmsLoc = Array (); vmsLoc ["VMS2"] = "52.2520142,21.0145283"; vmsLoc ["VMS5"] = "52.1906891,21.0474319"; vmsLoc ["VMS1"] = "52.2795982,20.9924240"; vmsLoc ["VMS3"] = "52.2188148,21.0458717"; vmsLoc ["VMS4"] = "52.1940155,21.0554962"; function getVMS () { _ajax_connL = new XHConn(); _ajax_connL.connect('data/vms.js',"GET",'a=a',parseVMS); } function switchVMS () { var button = document.getElementById ('m_vms'); switchButton (button); if (buttonIsOn(button)){ getVMS(); } else { mapobject.hideLayerByName('vms'); } } function parseVMS (ans) { // hideAllLayers(); vms = ans.responseText.parseJSON(); var icons1 = new Array (); for (var i=0; i < vms.length; i++){ icons1[i] = new MapgoIcon(); d = '
'+vms[i].text+'
'; } } if (vms[i].Graphic1 != null){ d+= '