var cntryIcon = [];
var cntrys = { "France": "images/flags/france_small.png" ,
				"Germany": "images/flags/germany_small.png",
				"Switzerland": "images/flags/switzerland_small.png",
				"Italy": "images/flags/italy_small.png",
				"Spain": "images/flags/spain_small.png",
				"Czech Republic": "images/flags/czechrepublic_small.png",
				"Poland": "images/flags/poland_small.png",
				"Romania": "images/flags/romania_small.png",
				"United States": "images/flags/usa_small.png",
				"USA": "images/flags/usa_small.png",
				"US": "images/flags/usa_small.png",
				"Mexico": "images/flags/mexico_small.png",
				"Canada": "images/flags/canada_small.png",
				"United Kingdom": "images/flags/uk_small.png",
				"Netherlands": "images/flags/netherlands_small.png",
				"Portugal": "images/flags/portugal_small.png",
				"Belgium": "images/flags/belgium_small.png",
				"Russia": "images/flags/russia_small.png",
				"Denmark": "images/flags/denmark_small.png",
				"Sweden": "images/flags/sweden_small.png",
				"Finland": "images/flags/finland_small.png",
				"Norway": "images/flags/norway_small.png",
				"Austria": "images/flags/austria_small.png",
				"Hungary": "images/flags/hungary_small.png",
				"Greece": "images/flags/greece_small.png",
				"Bulgaria": "images/flags/bulgaria_small.png",
				"Morocco": "images/flags/morocco_small.png",
				"Ireland": "images/flags/ireland_small.png" };

for (var name in cntrys){
	cntryIcon[name] = new GIcon();
	cntryIcon[name].image = cntrys[name];
	cntryIcon[name].iconSize = new GSize(32,20);
	cntryIcon[name].shadow = "images/flags/flag-shadow.png";
//	cntryIcon[name].shadowSize = new GSize(32, 20);
	cntryIcon[name].shadowSize = new GSize(60, 25);
	cntryIcon[name].iconAnchor = new GPoint(9, 34);
//	cntryIcon[name].infoWindowAnchor = new GPoint(9, 2);
//	cntryIcon[name].infoShadowAnchor = new GPoint(18, 25);
}

var smallIcon;
var baseIcon = [];

// Normal marker icon
baseIcon[0] = new GIcon();
baseIcon[0].image = "http://www.google.com/mapfiles/marker.png";
baseIcon[0].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[0].iconSize = new GSize(20, 34);
baseIcon[0].shadowSize = new GSize(37, 34);
baseIcon[0].iconAnchor = new GPoint(9, 34);
baseIcon[0].infoWindowAnchor = new GPoint(9, 2);
baseIcon[0].infoShadowAnchor = new GPoint(18, 25);
// Base Icon for Small Colored Icons
smallIcon = new GIcon();
smallIcon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
smallIcon.iconSize = new GSize(12, 20);
smallIcon.shadowSize = new GSize(22, 20);
smallIcon.iconAnchor = new GPoint(6, 20);
smallIcon.infoWindowAnchor = new GPoint(5, 1); 

smallIcon2 = new GIcon();
smallIcon2.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
smallIcon2.iconSize = new GSize(20, 20);
smallIcon2.shadowSize = new GSize(22, 20);
smallIcon2.iconAnchor = new GPoint(6, 20);
smallIcon2.infoWindowAnchor = new GPoint(5, 1); 

baseIcon[1] = new GIcon(smallIcon);
//baseIcon[1].image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
//baseIcon[1].image = "images/try3a.gif";
//baseIcon[1].iconSize = new GSize(24, 51);
//baseIcon[1].iconAnchor = new GPoint(24, 51);
//baseIcon[1].image = "images/try4a.gif";
baseIcon[1].image = "images/mapmarkers/try4d.gif";
baseIcon[1].iconSize = new GSize(17, 35);
baseIcon[1].iconAnchor = new GPoint(17, 35);
baseIcon[1].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[1].shadowSize = new GSize(37, 34);

baseIcon[2] = new GIcon(smallIcon);
baseIcon[2].image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";

baseIcon[3] = new GIcon(smallIcon);
baseIcon[3].image = "http://labs.google.com/ridefinder/images/mm_20_purple.png";

baseIcon[4] = new GIcon(smallIcon);
baseIcon[4].image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";

baseIcon[5] = new GIcon(smallIcon);
baseIcon[5].image = "http://labs.google.com/ridefinder/images/mm_20_white.png";

baseIcon[6] = new GIcon(smallIcon);
baseIcon[6].image = "http://labs.google.com/ridefinder/images/mm_20_green.png";

baseIcon[7] = new GIcon(smallIcon);
baseIcon[7].image = "http://labs.google.com/ridefinder/images/mm_20_black.png";

baseIcon[8] = new GIcon(smallIcon);
baseIcon[8].image = "http://labs.google.com/ridefinder/images/mm_20_orange.png";

baseIcon[9] = new GIcon(smallIcon);
//baseIcon[9].image = "http://labs.google.com/ridefinder/images/mm_20_gray.png";
baseIcon[9].image = "images/mapmarkers/activeAMBER.png";
baseIcon[9].iconSize = new GSize(19, 34);
baseIcon[9].iconAnchor = new GPoint(19, 34);

baseIcon[10] = new GIcon(smallIcon);
baseIcon[10].image = "http://labs.google.com/ridefinder/images/mm_20_brown.png";

//baseIcon[100] = new GIcon(smallIcon2);
//baseIcon[100].image = "http://www.free-hotspot.com/freehotspot.ico";
//baseIcon[100].image = "images/freehotspot.gif";
baseIcon[100] = new GIcon(smallIcon);
//baseIcon[100].image = "images/mapmarkers/try4d.gif";
//baseIcon[100].iconSize = new GSize(17, 35);
//baseIcon[100].iconAnchor = new GPoint(17, 35);
//baseIcon[100].image = "images/mapmarkers/active.png";
baseIcon[100].image = "images/mapmarkers/activeGREEN.png";
baseIcon[100].iconSize = new GSize(19, 34);
baseIcon[100].iconAnchor = new GPoint(19, 34);

baseIcon[100].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[100].shadowSize = new GSize(37, 34);

//baseIcon[101] = new GIcon(smallIcon2);
//baseIcon[101].image = "images/telenet.gif";
baseIcon[101] = new GIcon(smallIcon);
//baseIcon[101].image = "images/mapmarkers/active.png";
baseIcon[101].image = "images/mapmarkers/activeGREEN.png";
baseIcon[101].iconSize = new GSize(19, 34);
baseIcon[101].iconAnchor = new GPoint(19, 34);
baseIcon[101].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[101].shadowSize = new GSize(37, 34);


baseIcon[102] = new GIcon(smallIcon);
//baseIcon[102].image = "images/mapmarkers/active.png";
baseIcon[102].image = "images/mapmarkers/activeGREEN.png";
baseIcon[102].iconSize = new GSize(19, 34);
baseIcon[102].iconAnchor = new GPoint(19, 34);
baseIcon[102].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[102].shadowSize = new GSize(37, 34);

baseIcon[103] = new GIcon(smallIcon);
//baseIcon[103].image = "images/mapmarkers/inactive1.png";
baseIcon[103].image = "images/mapmarkers/activeAMBER.png";
baseIcon[103].iconSize = new GSize(19, 34);
baseIcon[103].iconAnchor = new GPoint(19, 34);
baseIcon[103].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[103].shadowSize = new GSize(37, 34);

baseIcon[104] = new GIcon(smallIcon);
baseIcon[104].image = "images/mapmarkers/activeRED.png";
baseIcon[104].iconSize = new GSize(19, 34);
baseIcon[104].iconAnchor = new GPoint(19, 34);
baseIcon[104].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[104].shadowSize = new GSize(37, 34);

baseIcon[105] = new GIcon(smallIcon);
//baseIcon[105].image = "http://www.maps.google.com/mapfiles/kml/pal4/icon8.png";
baseIcon[105].image = "http://www.maps.google.com/mapfiles/kml/pal4/icon21.png";
baseIcon[105].iconSize = new GSize(32, 32);
baseIcon[105].iconAnchor = new GPoint(32, 32);
baseIcon[105].shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon[105].shadowSize = new GSize(37, 34);
