function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(47.508777,19.071990), 12);


// Apple Center icons
var iconPro = new GIcon();
iconPro.image = "http://www.starking.hu/map/logoPro.png";
iconPro.shadow = "http://www.starking.hu/map/logoShadow.png";
iconPro.iconSize = new GSize(55, 48);
iconPro.iconAnchor = new GPoint(20, 48);
iconPro.infoWindowAnchor = new GPoint(25, 1);

var iconRose = new GIcon();
iconRose.image = "http://www.starking.hu/map/logoRose.png";
iconRose.shadow = "http://www.starking.hu/map/logoShadow.png";
iconRose.iconSize = new GSize(55, 48);
iconRose.iconAnchor = new GPoint(20, 48);
iconRose.infoWindowAnchor = new GPoint(25, 1);

var iconMom = new GIcon();
iconMom.image = "http://www.starking.hu/map/logoMom.png";
iconMom.shadow = "http://www.starking.hu/map/logoShadow.png";
iconMom.iconSize = new GSize(55, 48);
iconMom.iconAnchor = new GPoint(20, 48);
iconMom.infoWindowAnchor = new GPoint(25, 1);

var iconPest = new GIcon();
iconPest.image = "http://www.starking.hu/map/logoPest.png";
iconPest.shadow = "http://www.starking.hu/map/logoShadow2.png";
iconPest.iconSize = new GSize(71, 48);
iconPest.iconAnchor = new GPoint(30, 48);
iconPest.infoWindowAnchor = new GPoint(25, 1);

var iconAllee = new GIcon();
iconAllee.image = "http://www.starking.hu/map/logoAllee.png";
iconAllee.shadow = "http://www.starking.hu/map/logoShadow2.png";
iconAllee.iconSize = new GSize(71, 48);
iconAllee.iconAnchor = new GPoint(30, 48);
iconAllee.infoWindowAnchor = new GPoint(25, 1);


// Creates a marker at the given point with the given number label
function createMarker(point, icon, text) {
var marker = new GMarker(point, icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(text);
});
return marker;
}


//Markerek, ikonok, szövegek megadása
var point = new GLatLng(47.531398,19.037500);	//Bécsi út 77-79. kordinátái
var text = "<DIV align='left'><FONT face='Arial, Helvetica, serif' size='2'><b>StarKing <FONT color='#999999'>PRO</FONT> Apple Authorised Service Partner</b> <br/> 1036 Budapest Bécsi út 77-79. <br/> Tel.: 439-3333 fax: 439-3334 <br/> Nyitva: H-P 9:30-17:30-ig</FONT></DIV>";	
map.addOverlay(createMarker(point, iconPro, text));

var point = new GLatLng(47.522441,19.015240);	//Rózsakert kordinátái
var text = "<DIV align='left'><FONT face='Arial, Helvetica, serif' size='2'><b>StarKing <FONT color='#FFFF00'>ROSE</FONT> Apple Premium Reseller</b> <br/> Rózsakert Bevásárlóközpont <br/> 1026 Budapest Gábor Áron út 74. <br/> Tel./fax: 200-1722 <br/> Nyitva: H-P 10-20, Sz 10-19, V 10-16-ig</FONT></DIV>";	
map.addOverlay(createMarker(point, iconRose, text));	

var point = new GLatLng(47.491005,19.024085);	//MOM Park kordinátái
var text = "<DIV align='left'><FONT face='Arial, Helvetica, serif' size='2'><b>StarKing <FONT color='#FF00FF'>MOM</FONT> Apple Premium Reseller</b> <br/> MOM Park Bevásárlóközpont <br/> 1123 Budapest Alkotás utca 53. <br/> Tel./fax: 201-1257 <br/> Nyitva: H-Sz 10-20, V 10-18-ig</FONT></DIV>";	
map.addOverlay(createMarker(point, iconMom, text));

var point = new GLatLng(47.498005,19.090085);	//Pest kordinátái
var text = "<DIV align='left'><FONT face='Arial, Helvetica, serif' size='2'><b>StarKing <FONT color='#00FFFF'>ARÉNA</FONT> Apple Premium Reseller</b> <br/> Aréna Bevásárlóközpont <br/> 1087 Budapest Kerepesi út 9. <br/> Tel./fax: 215-8352 <br/> Nyitva: H-Sz 10-21, V 10-19-ig</FONT></DIV>";	
map.addOverlay(createMarker(point, iconPest, text));

var point = new GLatLng(47.474005,19.048085);	//Allee kordinátái
var text = "<DIV align='left'><FONT face='Arial, Helvetica, serif' size='2'><b>StarKing <FONT color='#FF0000'>ALLEE</FONT> Apple Authorised Reseller</b> <br/> Allee Bevásárlóközpont <br/> 1117 Budapest Október 23. utca<br/> Tel./fax: 883-8891 <br/> Nyitva: H-Sz 10-21, V 10-19-ig</FONT></DIV>";	
map.addOverlay(createMarker(point, iconAllee, text));
}
}


window.onload=load; 
window.onunload=GUnload;
