var ferienhausIcon = new GIcon();
ferienhausIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/ferienhaus.png";
ferienhausIcon.iconSize = new GSize(22, 32);
ferienhausIcon.iconAnchor = new GPoint(2, 30);
ferienhausIcon.infoWindowAnchor = new GPoint(11, 4);
ferienhausIcon.infoShadowAnchor = new GPoint(11, 4);

var ferienwohnungIcon = new GIcon();
ferienwohnungIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/ferienwohnung.png";
ferienwohnungIcon.iconSize = new GSize(22, 32);
ferienwohnungIcon.iconAnchor = new GPoint(2, 30);
ferienwohnungIcon.infoWindowAnchor = new GPoint(11, 4);
ferienwohnungIcon.infoShadowAnchor = new GPoint(11, 4);

var fincaIcon = new GIcon();
fincaIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/finca.png";
fincaIcon.iconSize = new GSize(22, 32);
fincaIcon.iconAnchor = new GPoint(2, 30);
fincaIcon.infoWindowAnchor = new GPoint(11, 4);
fincaIcon.infoShadowAnchor = new GPoint(11, 4);

var villaIcon = new GIcon();
villaIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/villa.png";
villaIcon.iconSize = new GSize(22, 32);
villaIcon.iconAnchor = new GPoint(2, 30);
villaIcon.infoWindowAnchor = new GPoint(11, 4);
villaIcon.infoShadowAnchor = new GPoint(11, 4);

var chaletIcon = new GIcon();
chaletIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/chalet.png";
chaletIcon.iconSize = new GSize(22, 32);
chaletIcon.iconAnchor = new GPoint(2, 30);
chaletIcon.infoWindowAnchor = new GPoint(11, 4);
chaletIcon.infoShadowAnchor = new GPoint(11, 4);

var bungalowIcon = new GIcon();
bungalowIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/bungalow.png";
bungalowIcon.iconSize = new GSize(22, 32);
bungalowIcon.iconAnchor = new GPoint(2, 30);
bungalowIcon.infoWindowAnchor = new GPoint(11, 4);
bungalowIcon.infoShadowAnchor = new GPoint(11, 4);

var landhausIcon = new GIcon();
landhausIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/landhaus.png";
landhausIcon.iconSize = new GSize(22, 32);
landhausIcon.iconAnchor = new GPoint(2, 30);
landhausIcon.infoWindowAnchor = new GPoint(11, 4);
landhausIcon.infoShadowAnchor = new GPoint(11, 4);

var schlossIcon = new GIcon();
schlossIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/schloss.png";
schlossIcon.iconSize = new GSize(22, 32);
schlossIcon.iconAnchor = new GPoint(2, 30);
schlossIcon.infoWindowAnchor = new GPoint(11, 4);
schlossIcon.infoShadowAnchor = new GPoint(11, 4);

var berghuetteIcon = new GIcon();
berghuetteIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/berghuette.png";
berghuetteIcon.iconSize = new GSize(22, 32);
berghuetteIcon.iconAnchor = new GPoint(2, 30);
berghuetteIcon.infoWindowAnchor = new GPoint(11, 4);
berghuetteIcon.infoShadowAnchor = new GPoint(11, 4);

var skihuetteIcon = new GIcon();
skihuetteIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/skihuette.png";
skihuetteIcon.iconSize = new GSize(22, 32);
skihuetteIcon.iconAnchor = new GPoint(2, 30);
skihuetteIcon.infoWindowAnchor = new GPoint(11, 4);
skihuetteIcon.infoShadowAnchor = new GPoint(11, 4);

var apartmentIcon = new GIcon();
apartmentIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/apartment.png";
apartmentIcon.iconSize = new GSize(22, 32);
apartmentIcon.iconAnchor = new GPoint(2, 30);
apartmentIcon.infoWindowAnchor = new GPoint(11, 4);
apartmentIcon.infoShadowAnchor = new GPoint(11, 4);

var zimmerIcon = new GIcon();
zimmerIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/zimmer.png";
zimmerIcon.iconSize = new GSize(22, 32);
zimmerIcon.iconAnchor = new GPoint(2, 30);
zimmerIcon.infoWindowAnchor = new GPoint(11, 4);
zimmerIcon.infoShadowAnchor = new GPoint(11, 4);

var residenzIcon = new GIcon();
residenzIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/residenz.png";
residenzIcon.iconSize = new GSize(22, 32);
residenzIcon.iconAnchor = new GPoint(2, 30);
residenzIcon.infoWindowAnchor = new GPoint(11, 4);
residenzIcon.infoShadowAnchor = new GPoint(11, 4);

var segelschiffIcon = new GIcon();
segelschiffIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/segelschiff.png";
segelschiffIcon.iconSize = new GSize(22, 32);
segelschiffIcon.iconAnchor = new GPoint(2, 30);
segelschiffIcon.infoWindowAnchor = new GPoint(11, 4);
segelschiffIcon.infoShadowAnchor = new GPoint(11, 4);

var yachtIcon = new GIcon();
yachtIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/yacht.png";
yachtIcon.iconSize = new GSize(22, 32);
yachtIcon.iconAnchor = new GPoint(2, 30);
yachtIcon.infoWindowAnchor = new GPoint(11, 4);
yachtIcon.infoShadowAnchor = new GPoint(11, 4);

var hotelIcon = new GIcon();
hotelIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/hotel.png";
hotelIcon.iconSize = new GSize(22, 32);
hotelIcon.iconAnchor = new GPoint(2, 30);
hotelIcon.infoWindowAnchor = new GPoint(11, 4);
hotelIcon.infoShadowAnchor = new GPoint(11, 4);

var pensionIcon = new GIcon();
pensionIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/pension.png";
pensionIcon.iconSize = new GSize(22, 32);
pensionIcon.iconAnchor = new GPoint(2, 30);
pensionIcon.infoWindowAnchor = new GPoint(11, 4);
pensionIcon.infoShadowAnchor = new GPoint(11, 4);

var bedbreakfastIcon = new GIcon();
bedbreakfastIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/bedbreakfast.png";
bedbreakfastIcon.iconSize = new GSize(22, 32);
bedbreakfastIcon.iconAnchor = new GPoint(2, 30);
bedbreakfastIcon.infoWindowAnchor = new GPoint(11, 4);
bedbreakfastIcon.infoShadowAnchor = new GPoint(11, 4);

var jugendherbergeIcon = new GIcon();
jugendherbergeIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/jugendherberge.png";
jugendherbergeIcon.iconSize = new GSize(22, 32);
jugendherbergeIcon.iconAnchor = new GPoint(2, 30);
jugendherbergeIcon.infoWindowAnchor = new GPoint(11, 4);
jugendherbergeIcon.infoShadowAnchor = new GPoint(11, 4);

var campingplatzIcon = new GIcon();
campingplatzIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/campingplatz.png";
campingplatzIcon.iconSize = new GSize(22, 32);
campingplatzIcon.iconAnchor = new GPoint(2, 30);
campingplatzIcon.infoWindowAnchor = new GPoint(11, 4);
campingplatzIcon.infoShadowAnchor = new GPoint(11, 4);

var bauernhofIcon = new GIcon();
bauernhofIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/bauernhof.png";
bauernhofIcon.iconSize = new GSize(22, 32);
bauernhofIcon.iconAnchor = new GPoint(2, 30);
bauernhofIcon.infoWindowAnchor = new GPoint(11, 4);
bauernhofIcon.infoShadowAnchor = new GPoint(11, 4);

var reiterhofIcon = new GIcon();
reiterhofIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/reiterhof.png";
reiterhofIcon.iconSize = new GSize(22, 32);
reiterhofIcon.iconAnchor = new GPoint(2, 30);
reiterhofIcon.infoWindowAnchor = new GPoint(11, 4);
reiterhofIcon.infoShadowAnchor = new GPoint(11, 4);

var winzerhofIcon = new GIcon();
winzerhofIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/winzerhof.png";
winzerhofIcon.iconSize = new GSize(22, 32);
winzerhofIcon.iconAnchor = new GPoint(2, 30);
winzerhofIcon.infoWindowAnchor = new GPoint(11, 4);
winzerhofIcon.infoShadowAnchor = new GPoint(11, 4);

var gasthofIcon = new GIcon();
gasthofIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/gasthof.png";
gasthofIcon.iconSize = new GSize(22, 32);
gasthofIcon.iconAnchor = new GPoint(2, 30);
gasthofIcon.infoWindowAnchor = new GPoint(11, 4);
gasthofIcon.infoShadowAnchor = new GPoint(11, 4);

var apartmenthausIcon = new GIcon();
apartmenthausIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/apartmenthaus.png";
apartmenthausIcon.iconSize = new GSize(22, 32);
apartmenthausIcon.iconAnchor = new GPoint(2, 30);
apartmenthausIcon.infoWindowAnchor = new GPoint(11, 4);
apartmenthausIcon.infoShadowAnchor = new GPoint(11, 4);

var gaestehausIcon = new GIcon();
gaestehausIcon.image = "http://www.ferienhaus-urlaube.de/images/gmapsicons/gaestehaus.png";
gaestehausIcon.iconSize = new GSize(22, 32);
gaestehausIcon.iconAnchor = new GPoint(2, 30);
gaestehausIcon.infoWindowAnchor = new GPoint(11, 4);
gaestehausIcon.infoShadowAnchor = new GPoint(11, 4);

var icons = [];
icons[1] = ferienhausIcon;
icons[2] = ferienwohnungIcon;
icons[3] = fincaIcon;
icons[4] = villaIcon;
icons[5] = chaletIcon;
icons[6] = bungalowIcon;
icons[7] = landhausIcon;
icons[8] = schlossIcon;
icons[9] = berghuetteIcon;
icons[10] = skihuetteIcon;
icons[11] = apartmentIcon;
icons[12] = zimmerIcon;
icons[13] = residenzIcon;
icons[14] = segelschiffIcon;
icons[15] = yachtIcon;
icons[16] = hotelIcon;
icons[17] = pensionIcon;
icons[18] = bedbreakfastIcon;
icons[19] = jugendherbergeIcon;
icons[20] = campingplatzIcon;
icons[21] = bauernhofIcon;
icons[22] = reiterhofIcon;
icons[23] = winzerhofIcon;
icons[24] = gasthofIcon;
icons[25] = apartmenthausIcon;
icons[26] = gaestehausIcon;

function newMarker(markerLocation, markerId, objektName, objektArt, strasse, plz, ort, bild) {
	var marker=new GMarker(markerLocation, {icon:icons[objektArt], title:objektName, clickable:true});
	GEvent.addListener(marker, 'click', function() {
		if(objektArt==1) url="ferienhaus,";	if(objektArt==2) url="ferienwohnung,"; if(objektArt==3) url="finca,"; if(objektArt==4) url="villa,"; if(objektArt==5) url="chalet,"; if(objektArt==6) url="bungalow,"; if(objektArt==7) url="landhaus,"; if(objektArt==8) url="schloss,"; if(objektArt==9) url="berghuette,"; if(objektArt==10) url="skihuette,"; if(objektArt==11) url="apartment,"; if(objektArt==12) url="zimmer,"; if(objektArt==13) url="residenz,"; if(objektArt==14) url="segelschiff,"; if(objektArt==15) url="yacht,"; if(objektArt==16) url="hotel,"; if(objektArt==17) url="pension,"; if(objektArt==18) url="bed-breakfast,"; if(objektArt==19) url="jugendherberge,"; if(objektArt==20) url="campingplatz,"; if(objektArt==21) url="bauernhof,"; if(objektArt==22) url="reiterhof,"; if(objektArt==23) url="winzerhof,"; if(objektArt==24) url="gasthof,"; if(objektArt==25) url="apartmenthaus,"; if(objektArt==26) url="gaestehaus,";
		marker.openInfoWindowHtml("<table height='100' border='0' cellpadding='0' cellspacing='0' class='inhalt'><tr><td valign='middle'><img src='http://www.ferienhaus-urlaube.de/images/objekte/klein/"+bild+"' style='margin-right:5px;' /></td><td valign='middle'><b>"+objektName+"</b><br />"+strasse+"<br />"+plz+" "+ort+"<br /><br /><img src='http://www.ferienhaus-urlaube.de/images/gmapsicons/icon.gif' style='margin-right:5px;' /><a href='http://www.ferienhaus-urlaube.de/"+url+markerId+".html' class='nolink' style='text-decoration:underline;'>zum Eintrag</a></td><td>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table>");
	});
	return marker;
}