var ctarray = new Array();
ctarray['AF'] = 1;
ctarray['AL'] = 2;
ctarray['DZ'] = 3;
ctarray['AS'] = 4;
ctarray['AD'] = 5;
ctarray['AO'] = 6;
ctarray['AI'] = 7;
ctarray['AG'] = 9;
ctarray['AR'] = 10;
ctarray['AM'] = 11;
ctarray['AW'] = 12;
ctarray['AZ'] = 13;
ctarray['AU'] = 14;
ctarray['EG'] = 15;
ctarray['GQ'] = 16;
ctarray['ET'] = 17;
ctarray['AT'] = 18;
ctarray['BS'] = 19;
ctarray['BH'] = 20;
ctarray['BD'] = 22;
ctarray['BB'] = 23;
ctarray['BE'] = 24;
ctarray['BZ'] = 25;
ctarray['BJ'] = 26;
ctarray['BM'] = 27;
ctarray['BT'] = 28;
ctarray['BO'] = 29;
ctarray['BA'] = 30;
ctarray['BW'] = 31;
ctarray['BV'] = 32;
ctarray['BR'] = 33;
ctarray['BN'] = 36;
ctarray['BG'] = 37;
ctarray['BF'] = 38;
ctarray['BI'] = 39;
ctarray['KY'] = 40;
ctarray['CL'] = 41;
ctarray['CN'] = 42;
ctarray['CC'] = 43;
ctarray['CK'] = 44;
ctarray['CR'] = 45;
ctarray['DK'] = 46;
ctarray['DE'] = 47;
ctarray['DM'] = 48;
ctarray['DO'] = 49;
ctarray['DJ'] = 50;
ctarray['EC'] = 51;
ctarray['SV'] = 52;
ctarray['CI'] = 53;
ctarray['ER'] = 54;
ctarray['EE'] = 55;
ctarray['FK'] = 56;
ctarray['FJ'] = 58;
ctarray['FI'] = 59;
ctarray['FR'] = 60;
ctarray['NZ'] = 61;
ctarray['GF'] = 62;
ctarray['PF'] = 63;
ctarray['GA'] = 64;
ctarray['GM'] = 65;
ctarray['GE'] = 66;
ctarray['GH'] = 67;
ctarray['GI'] = 68;
ctarray['TF'] = 69;
ctarray['GL'] = 70;
ctarray['GD'] = 71;
ctarray['GR'] = 72;
ctarray['GB'] = 73;
ctarray['GP'] = 74;
ctarray['GU'] = 75;
ctarray['GT'] = 76;
ctarray['GN'] = 78;
ctarray['GW'] = 79;
ctarray['GY'] = 80;
ctarray['HT'] = 81;
ctarray['HN'] = 83;
ctarray['TH'] = 84;
ctarray['IN'] = 86;
ctarray['ID'] = 87;
ctarray['IQ'] = 88;
ctarray['MT'] = 89;
ctarray['IE'] = 90;
ctarray['IS'] = 91;
ctarray['IM'] = 92;
ctarray['IL'] = 93;
ctarray['IT'] = 94;
ctarray['JM'] = 95;
ctarray['SJ'] = 96;
ctarray['JP'] = 97;
ctarray['CA'] = 98;
ctarray['YE'] = 99;
ctarray['UM'] = 101;
ctarray['JO'] = 102;
ctarray['TF'] = 103;
ctarray['KH'] = 105;
ctarray['CM'] = 106;
ctarray['CA'] = 107;
ctarray['CV'] = 109;
ctarray['KZ'] = 110;
ctarray['QA'] = 111;
ctarray['KE'] = 112;
ctarray['KG'] = 113;
ctarray['KI'] = 114;
ctarray['CO'] = 115;
ctarray['KM'] = 116;
ctarray['CG'] = 117;
ctarray['CD'] = 118;
ctarray['HR'] = 119;
ctarray['CU'] = 120;
ctarray['KW'] = 121;
ctarray['LA'] = 122;
ctarray['LS'] = 123;
ctarray['LV'] = 124;
ctarray['LB'] = 125;
ctarray['LR'] = 126;
ctarray['LY'] = 127;
ctarray['LI'] = 128;
ctarray['LT'] = 129;
ctarray['LU'] = 130;
ctarray['MO'] = 131;
ctarray['MG'] = 132;
ctarray['MW'] = 133;
ctarray['MY'] = 134;
ctarray['MV'] = 135;
ctarray['ML'] = 136;
ctarray['MT'] = 137;
ctarray['MA'] = 138;
ctarray['MH'] = 139;
ctarray['MQ'] = 140;
ctarray['MR'] = 141;
ctarray['MU'] = 142;
ctarray['YT'] = 143;
ctarray['MK'] = 144;
ctarray['MX'] = 145;
ctarray['UM'] = 146;
ctarray['MD'] = 148;
ctarray['MC'] = 149;
ctarray['MN'] = 150;
ctarray['ME'] = 151;
ctarray['MS'] = 152;
ctarray['MZ'] = 153;
ctarray['MM'] = 154;
ctarray['NA'] = 155;
ctarray['NR'] = 156;
ctarray['MP'] = 157;
ctarray['NP'] = 158;
ctarray['NC'] = 159;
ctarray['NZ'] = 160;
ctarray['NI'] = 161;
ctarray['NL'] = 162;
ctarray['AN'] = 163;
ctarray['NE'] = 164;
ctarray['NG'] = 165;
ctarray['NU'] = 166;
ctarray['KP'] = 167;
ctarray['NF'] = 168;
ctarray['NO'] = 169;
ctarray['OM'] = 170;
ctarray['PK'] = 172;
ctarray['PW'] = 173;
ctarray['PA'] = 174;
ctarray['PG'] = 175;
ctarray['CN'] = 176;
ctarray['PY'] = 177;
ctarray['PE'] = 178;
ctarray['PH'] = 179;
ctarray['PN'] = 180;
ctarray['PL'] = 181;
ctarray['PT'] = 182;
ctarray['PR'] = 183;
ctarray['RE'] = 184;
ctarray['RW'] = 185;
ctarray['RU'] = 186;
ctarray['RO'] = 187;
ctarray['ZM'] = 188;
ctarray['WS'] = 189;
ctarray['SM'] = 190;
ctarray['ST'] = 191;
ctarray['SA'] = 192;
ctarray['ZA'] = 193;
ctarray['KR'] = 195;
ctarray['SE'] = 196;
ctarray['CH'] = 197;
ctarray['SN'] = 198;
ctarray['RS'] = 199;
ctarray['SC'] = 200;
ctarray['SL'] = 201;
ctarray['ZW'] = 202;
ctarray['SG'] = 203;
ctarray['SK'] = 204;
ctarray['SI'] = 205;
ctarray['SB'] = 206;
ctarray['SO'] = 207;
ctarray['ES'] = 208;
ctarray['LK'] = 211;
ctarray['SH'] = 212;
ctarray['KN'] = 213;
ctarray['LC'] = 214;
ctarray['PM'] = 215;
ctarray['GD'] = 216;
ctarray['SD'] = 217;
ctarray['SR'] = 218;
ctarray['SV'] = 219;
ctarray['SZ'] = 220;
ctarray['SY'] = 221;
ctarray['TJ'] = 222;
ctarray['TW'] = 223;
ctarray['TZ'] = 224;
ctarray['TR'] = 225;
ctarray['TH'] = 226;
ctarray['TG'] = 227;
ctarray['TK'] = 228;
ctarray['TO'] = 229;
ctarray['TT'] = 230;
ctarray['TD'] = 231;
ctarray['CZ'] = 232;
ctarray['TN'] = 233;
ctarray['TM'] = 234;
ctarray['TC'] = 235;
ctarray['TV'] = 236;
ctarray['UG'] = 237;
ctarray['UA'] = 238;
ctarray['HU'] = 239;
ctarray['UY'] = 240;
ctarray['US'] = 241;
ctarray['UZ'] = 242;
ctarray['VU'] = 243;
ctarray['VE'] = 245;
ctarray['AE'] = 246;
ctarray['VN'] = 247;
ctarray['UM'] = 248;
ctarray['WF'] = 249;
ctarray['BY'] = 250;
ctarray['CX'] = 251;
ctarray['EH'] = 252;
ctarray['EH'] = 253;
ctarray['CF'] = 254;
ctarray['CY'] = 255;
var pid = ''
var cid = ''
var icon = new GIcon();
icon.image = "http://maps.google.com/mapfiles/ms/micons/red.png";
icon.iconSize = new GSize(28, 32);
icon.iconAnchor = new GPoint(14, 28);
icon.infoWindowAnchor = new GPoint(5, 1);
var icon2 = new GIcon();
icon2.image = "http://maps.google.com/mapfiles/ms/micons/red.png";
icon2.iconSize = new GSize(32, 32);
icon2.iconAnchor = new GPoint(15, 15);
icon2.infoWindowAnchor = new GPoint(5, 1);
iconrestaurant = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restaurant.png");
iconpizzeria = new GIcon(icon, "http://www.mappedplanet.com/reise/img/pizzeria.png");
iconmcdonalds = new GIcon(icon, "http://www.mappedplanet.com/reise/img/mcdonalds.png");
iconrestjapan = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restjapan.png");
iconrestthai = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restthai.png");
iconreststeak = new GIcon(icon, "http://www.mappedplanet.com/reise/img/reststeak.png");
iconrestindien = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restindien.png");
iconrestarab = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restarab.png");
iconguest = new GIcon(icon, "http://www.mappedplanet.com/reise/img/gaststaette.png");
iconcafe = new GIcon(icon, "http://www.mappedplanet.com/reise/img/cafe.png");
iconpub = new GIcon(icon, "http://www.mappedplanet.com/reise/img/bar.png");
icondisco = new GIcon(icon, "http://www.mappedplanet.com/reise/img/disco.png");
iconhotel = new GIcon(icon, "http://www.mappedplanet.com/reise/img/hotel.png");
iconhostel = new GIcon(icon, "http://www.mappedplanet.com/reise/img/hostel.png");
iconpension = new GIcon(icon, "http://www.mappedplanet.com/reise/img/pension.png");
iconcamping = new GIcon(icon, "http://www.mappedplanet.com/reise/img/camp.png");
icontheater = new GIcon(icon, "http://www.mappedplanet.com/reise/img/theater.png");
iconmuseum = new GIcon(icon, "http://www.mappedplanet.com/reise/img/museum.png");
iconkino = new GIcon(icon, "http://www.mappedplanet.com/reise/img/cinema.png");
iconinfo = new GIcon(icon, "http://www.mappedplanet.com/reise/img/info.png");
icontour = new GIcon(icon, "http://www.mappedplanet.com/reise/img/beautiful.png");
iconlang = new GIcon(icon, "http://www.mappedplanet.com/reise/img/administration.png");
iconuni = new GIcon(icon, "http://www.mappedplanet.com/reise/img/universitaet.png");
iconhospital = new GIcon(icon, "http://www.mappedplanet.com/reise/img/hospital.png");
icondentist = new GIcon(icon, "http://www.mappedplanet.com/reise/img/dentist.png");
icondrug = new GIcon(icon, "http://www.mappedplanet.com/reise/img/drugs.png");
iconshopping = new GIcon(icon, "http://www.mappedplanet.com/reise/img/supermarket.png");
iconbank = new GIcon(icon, "http://www.mappedplanet.com/reise/img/bank.png");
iconatm = new GIcon(icon, "http://www.mappedplanet.com/reise/img/atm.png");
iconpark = new GIcon(icon, "http://www.mappedplanet.com/reise/img/park.png");
iconinternet = new GIcon(icon, "http://www.mappedplanet.com/reise/img/internet.png");
iconwlan = new GIcon(icon, "http://www.mappedplanet.com/reise/img/wlan.png");
iconpool = new GIcon(icon, "http://www.mappedplanet.com/reise/img/pool.png");
icongolf = new GIcon(icon, "http://www.mappedplanet.com/reise/img/golf.png");
iconcasino = new GIcon(icon, "http://www.mappedplanet.com/reise/img/casino.png");
iconrestchina = new GIcon(icon, "http://www.mappedplanet.com/reise/img/restchina.png");
icondive = new GIcon(icon, " http://www.mappedplanet.com/reise/img/tauchen.png");
iconmotel = new GIcon(icon, " http://www.mappedplanet.com/reise/img/motel.png");
fpark = new GIcon(icon, " http://www.mappedplanet.com/reise/img/fpark.png");
icontempel = new GIcon(icon, "http://www.mappedplanet.com/reise/img/tempel.png");
Icongpark = new GIcon(icon, "http://www.mappedplanet.com/reise/img/gpark.png");
iconblue = new GIcon(icon,"http://maps.google.com/mapfiles/ms/micons/blue.png");
iconred = new GIcon(icon,"http://maps.google.com/mapfiles/ms/micons/red.png");
icongreen = new GIcon(icon,"http://maps.google.com/mapfiles/ms/micons/green.png");
iconyellow = new GIcon(icon,"http://maps.google.com/mapfiles/ms/micons/yellow.png");
iconstadt = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_stadt.png");
iconerholung = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_erholung.png");
iconbeach = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_strand.png");
iconculture = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_kultur.png");
iconwellness = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_wellness.png");
icongeo = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_geo.png");
iconnature = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_natur.png");
iconadventure = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_adventure.png");
iconeco = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_eco.png");
iconagro = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_agro.png");
iconberge = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/p_geo.png");
iconski = new GIcon(icon,"http://www.mappedplanet.com/reise/img/p_berge.png");
iconbauwerk = new GIcon(icon,"http://maps.google.com/mapfiles/kml/pal3/icon21.png");
icontrain = new GIcon(icon,"http://www.mappedplanet.com/reise/img/train.png");
iconbus = new GIcon(icon,"http://www.mappedplanet.com/reise/img/bus.png");
iconair = new GIcon(icon,"http://www.mappedplanet.com/reise/img/airport.png");
iconiair = new GIcon(icon,"http://maps.google.com/mapfiles/ms/micons/plane.png");
iconevent = new GIcon(icon,"http://www.mappedplanet.com/reise/img/event_24.png");
iconlandmark = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon46.png");
iconcity = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon56.png");
iconwaterbody = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon45.png");
iconmountain = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon29.png");
iconwikipedia = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon4.png");
iconchurch = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon11.png");
iconsport = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon57.png");
icontraffic = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon6.png");
iconsgreen = new GIcon(icon,"http://www.mappedplanet.com/reise/img/icon12.png");
iconsnature = new GIcon(icon,"http://www.mappedplanet.com/reise/img/tree.png");
iconarts = new GIcon(icon,"http://www.mappedplanet.com/reise/img/arts.png");
iconsgeo = new GIcon(icon,"http://www.mappedplanet.com/reise/img/volcano.png");
iconwine = new GIcon(icon,"http://www.mappedplanet.com/reise/img/wine.png");
iconhike = new GIcon(icon,"http://www.mappedplanet.com/reise/img/hiker.png");
iconsski = new GIcon(icon,"http://www.mappedplanet.com/reise/img/ski.png");
iconarch = new GIcon(icon,"http://www.mappedplanet.com/reise/img/architektur.png");
iconburg = new GIcon(icon,"http://www.mappedplanet.com/reise/img/burg.png");
iconethno = new GIcon(icon,"http://www.mappedplanet.com/reise/img/ethno.png");
iconhoehle = new GIcon(icon,"http://www.mappedplanet.com/reise/img/hoehle.png");
iconwasserfall = new GIcon(icon,"http://www.mappedplanet.com/reise/img/waterfalls.png");
iconftransport = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_trans.png");
iconfsights = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_sights.png");
iconstrand = new GIcon(icon,"http://www.mappedplanet.com/reise/img/sunny.png");
iconfadmin = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_admin.png");
iconfallg = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_allg.png");
iconftransport2 = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_trans2.png");
iconfsights2 = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_sights2.png");
iconfadmin2 = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_admin2.png");
iconfallg2 = new GIcon(icon2,"http://www.mappedplanet.com/reise/img/f_allg2.png");
function decod(string) {
var s;
s = string.replace(/\\u003/g, "=");
s = s.replace(/\\u0026/g, "&");
s = s.replace(/=cb=e/g, "");
s = s.replace(/=c\/b=e/g, "");
s = s.replace(/=d/g, "=");
return s;
}
function change_right(rid) {
document.getElementById('s_Wikipedia').style.display='none';
document.getElementById('s_Hotel').style.display='none';
document.getElementById('s_Hostel').style.display='none';
document.getElementById('s_Restaurant').style.display='none';
document.getElementById('s_Sonstiges').style.display='none';
document.getElementById(rid).style.display='block';
}
function moveEnd()
{
getTree();
if (mapfirsttime == 0) getads();
if (mapscroll == 1) {
var params = '';
if (maptype == 1) {
if (document.getElementById('interest').checked) params = params + '&wikipedia=1';
if (document.getElementById('flughafen').checked) params = params + '&flughafen=1';
if (document.getElementById('bahnhof').checked) params = params + '&bahnhof=1';
if (document.getElementById('busbahnhof').checked) params = params + '&busbahnhof=1';
if (document.getElementById('straende').checked) params = params + '&straende=1';
//if (document.getElementById('wetter').checked) params = params + '&wetter=1';
if (document.getElementById('restaurant').checked) params = params + '&restaurant=1';
if (document.getElementById('pizzeria').checked) params = params + '&pizzeria=1';
if (document.getElementById('mcdonalds').checked) params = params + '&mcdonalds=1';
if (document.getElementById('restjapan').checked) params = params + '&restjapan=1';
if (document.getElementById('restthai').checked) params = params + '&restthai=1';
if (document.getElementById('reststeak').checked) params = params + '&reststeak=1';
if (document.getElementById('restindien').checked) params = params + '&restindien=1';
if (document.getElementById('restarab').checked) params = params + '&restarab=1';
if (document.getElementById('gaststaette').checked) params = params + '&gaststaette=1';
if (document.getElementById('cafe').checked) params = params + '&cafe=1';
if (document.getElementById('pub').checked) params = params + '&pub=1';
if (document.getElementById('disco').checked) params = params + '&disco=1';
if (document.getElementById('hotel').checked) params = params + '&hotel=1';
if (document.getElementById('hostel').checked) params = params + '&hostel=1';
if (document.getElementById('pension').checked) params = params + '&pension=1';
if (document.getElementById('campingplatz').checked) params = params + '&campingplatz=1';
if (document.getElementById('theater').checked) params = params + '&theater=1';
if (document.getElementById('museum').checked) params = params + '&museum=1';
if (document.getElementById('kino').checked) params = params + '&kino=1';
if (document.getElementById('touristinfo').checked) params = params + '&touristinfo=1';
if (document.getElementById('touroperator').checked) params = params + '&touroperator=1';
if (document.getElementById('sprachschule').checked) params = params + '&sprachschule=1';
if (document.getElementById('uni').checked) params = params + '&uni=1';
if (document.getElementById('krankenhaus').checked) params = params + '&krankenhaus=1';
if (document.getElementById('zahnarzt').checked) params = params + '&zahnarzt=1';
if (document.getElementById('apotheke').checked) params = params + '&apotheke=1';
if (document.getElementById('shopping').checked) params = params + '&shopping=1';
if (document.getElementById('bank').checked) params = params + '&bank=1';
if (document.getElementById('atm').checked) params = params + '&atm=1';
if (document.getElementById('park').checked) params = params + '&park=1';
if (document.getElementById('internet').checked) params = params + '&internet=1';
if (document.getElementById('wlan').checked) params = params + '&wlan=1';
if (document.getElementById('pool').checked) params = params + '&pool=1';
if (document.getElementById('golf').checked) params = params + '&golf=1';
if (document.getElementById('casino').checked) params = params + '&casino=1';
if (document.getElementById('restchina').checked) params = params + '&restchina=1';
if (document.getElementById('tauchen').checked) params = params + '&tauchen=1';
if (document.getElementById('motel').checked) params = params + '&motel=1';
if (document.getElementById('fpark').checked) params = params + '&fpark=1';
if (document.getElementById('tempel').checked) params = params + '&tempel=1';
if (document.getElementById('gpark').checked) params = params + '&gpark=1';
if (params != '') getXMLData("gxml.neu.php", params + '&mapfirsttime=' + mapfirsttime + '&pid=' + pid + '&cid=' + cid);
if (document.getElementById('wetter').checked) getJSONBound('weather');
} else if (maptype == 0) {
getXMLData("pxml.php", params);
} else {
if (document.getElementById('monat1').checked) params = params + '&klima=1';
if (document.getElementById('monat2').checked) params = params + '&klima=2';
if (document.getElementById('monat3').checked) params = params + '&klima=3';
if (document.getElementById('monat4').checked) params = params + '&klima=4';
if (document.getElementById('monat5').checked) params = params + '&klima=5';
if (document.getElementById('monat6').checked) params = params + '&klima=6';
if (document.getElementById('monat7').checked) params = params + '&klima=7';
if (document.getElementById('monat8').checked) params = params + '&klima=8';
if (document.getElementById('monat9').checked) params = params + '&klima=9';
if (document.getElementById('monat10').checked) params = params + '&klima=10';
if (document.getElementById('monat11').checked) params = params + '&klima=11';
if (document.getElementById('monat12').checked) params = params + '&klima=12';
getXMLData("kxml.php", params);
}
}
mapscroll = 1;
mapfirsttime = 0;
}
function printpage()
{
var params = '';
if (maptype == 1) {
if (document.getElementById('interest').checked) params = params + '&wikipedia=1';
if (document.getElementById('flughafen').checked) params = params + '&flughafen=1';
if (document.getElementById('bahnhof').checked) params = params + '&bahnhof=1';
if (document.getElementById('busbahnhof').checked) params = params + '&busbahnhof=1';
if (document.getElementById('straende').checked) params = params + '&straende=1';
//if (document.getElementById('wetter').checked) params = params + '&wetter=1';
if (document.getElementById('restaurant').checked) params = params + '&restaurant=1';
if (document.getElementById('pizzeria').checked) params = params + '&pizzeria=1';
if (document.getElementById('mcdonalds').checked) params = params + '&mcdonalds=1';
if (document.getElementById('restjapan').checked) params = params + '&restjapan=1';
if (document.getElementById('restthai').checked) params = params + '&restthai=1';
if (document.getElementById('reststeak').checked) params = params + '&reststeak=1';
if (document.getElementById('restindien').checked) params = params + '&restindien=1';
if (document.getElementById('restarab').checked) params = params + '&restarab=1';
if (document.getElementById('gaststaette').checked) params = params + '&gaststaette=1';
if (document.getElementById('cafe').checked) params = params + '&cafe=1';
if (document.getElementById('pub').checked) params = params + '&pub=1';
if (document.getElementById('disco').checked) params = params + '&disco=1';
if (document.getElementById('hotel').checked) params = params + '&hotel=1';
if (document.getElementById('hostel').checked) params = params + '&hostel=1';
if (document.getElementById('pension').checked) params = params + '&pension=1';
if (document.getElementById('campingplatz').checked) params = params + '&campingplatz=1';
if (document.getElementById('theater').checked) params = params + '&theater=1';
if (document.getElementById('museum').checked) params = params + '&museum=1';
if (document.getElementById('kino').checked) params = params + '&kino=1';
if (document.getElementById('touristinfo').checked) params = params + '&touristinfo=1';
if (document.getElementById('touroperator').checked) params = params + '&touroperator=1';
if (document.getElementById('sprachschule').checked) params = params + '&sprachschule=1';
if (document.getElementById('uni').checked) params = params + '&uni=1';
if (document.getElementById('krankenhaus').checked) params = params + '&krankenhaus=1';
if (document.getElementById('zahnarzt').checked) params = params + '&zahnarzt=1';
if (document.getElementById('apotheke').checked) params = params + '&apotheke=1';
if (document.getElementById('shopping').checked) params = params + '&shopping=1';
if (document.getElementById('bank').checked) params = params + '&bank=1';
if (document.getElementById('atm').checked) params = params + '&atm=1';
if (document.getElementById('park').checked) params = params + '&park=1';
if (document.getElementById('internet').checked) params = params + '&internet=1';
if (document.getElementById('wlan').checked) params = params + '&wlan=1';
if (document.getElementById('pool').checked) params = params + '&pool=1';
if (document.getElementById('golf').checked) params = params + '&golf=1';
if (document.getElementById('casino').checked) params = params + '&casino=1';
if (document.getElementById('restchina').checked) params = params + '&restchina=1';
if (document.getElementById('tauchen').checked) params = params + '&tauchen=1';
if (document.getElementById('motel').checked) params = params + '&motel=1';
if (document.getElementById('fpark').checked) params = params + '&fpark=1';
if (document.getElementById('tempel').checked) params = params + '&tempel=1';
if (document.getElementById('gpark').checked) params = params + '&gpark=1';
window.open("gxml_static.php?west="+map.getBounds().getSouthWest().lng()+"&east="+map.getBounds().getNorthEast().lng()+"&north="+map.getBounds().getNorthEast().lat()+"&south="+map.getBounds().getSouthWest().lat()+'&zoom='+map.getZoom()+params);
} else alert('Die Druckansicht steht für diese Ansicht nicht für Verfügung. Wählen Sie einen Reiseort und eine hohe Zoomstufe!');
}
function output()
{
function pMarker(point,name,html,icon,link,mid,book) {
if (book == 0 && maptype == 1) icon.iconSize = new GSize(23, 27); else icon.iconSize = new GSize(28, 32);
if (maptype == 0) {
if (book == 10) icon.iconSize = new GSize(30, 30);
else if (book == 9) icon.iconSize = new GSize(29, 29);
else if (book == 8) icon.iconSize = new GSize(28, 28);
else if (book == 7) icon.iconSize = new GSize(27, 27);
else if (book == 6) icon.iconSize = new GSize(26, 26);
else if (book == 5) icon.iconSize = new GSize(25, 25);
else if (book == 4) icon.iconSize = new GSize(24, 24);
else if (book == 3) icon.iconSize = new GSize(23, 23);
else if (book == 2) icon.iconSize = new GSize(22, 22);
else if (book == 1) icon.iconSize = new GSize(21, 21);
else if (book == 0) icon.iconSize = new GSize(20, 20);
}
function addData(panoData) {
if (panoData.code == 200) html = "
" + html;
}
var marker = new GMarker(point, {icon:icon,title:name});
marker.id = mid;
panoClient = new GStreetviewClient();
panoClient.getNearestPanorama(marker.getLatLng(), addData);
GEvent.addListener(marker, "click", function() {
mapscroll = 0;
marker.openInfoWindow(html + "
");
});
GEvent.addListener(marker, "mouseover", function() {
document.getElementById('mapinfo').innerHTML = html;
});
return marker;
}
function lMarker(point,name,html,icon,link,mid) {
var labt = ""+mid+"";
opts = {
"icon": icon,
"clickable": true,
"title": name,
"labelText": labt,
"labelOffset": new GSize(-3, -5)
};
var marker = new LabeledMarker(point, opts);
GEvent.addListener(marker, "click", function() {
if (link != '') window.open(decod(link));
});
GEvent.addListener(marker, "mouseover", function() {
document.getElementById('mapinfo').innerHTML = html;
});
return marker;
}
if (httpreq.readyState == 4) {
var infotext = '';
if (maptype == 0 && mapinfobox == 1) {
document.getElementById('poiinfo').innerHTML = 'Reiseziele
';
}
document.getElementById('linkdiv').style.display = 'none';
if (maptype == 1) {
document.getElementById('poiinfo').innerHTML = 'Kartensymbole
';
document.getElementById('s_Wikipedia').innerHTML = '';
document.getElementById('s_Restaurant').innerHTML = '';
document.getElementById('s_Hotel').innerHTML = '';
document.getElementById('s_Hostel').innerHTML = '';
document.getElementById('s_Sonstiges').innerHTML = '';
document.getElementById('folders').innerHTML = '';
if (document.getElementById('hotel').checked || document.getElementById('hostel').checked) {
document.getElementById('linkdiv').style.display = 'block';
document.getElementById('linker').href = 'findhotel.php?west='+map.getBounds().getSouthWest().lng()+"&east="+map.getBounds().getNorthEast().lng()+"&north="+map.getBounds().getNorthEast().lat()+"&south="+map.getBounds().getSouthWest().lat()+'&id=';
}
if (document.getElementById('interest').checked) document.getElementById('folders').innerHTML = document.getElementById('folders').innerHTML + '
';
if (document.getElementById('hotel').checked) document.getElementById('folders').innerHTML = document.getElementById('folders').innerHTML + '';
if (document.getElementById('hostel').checked) document.getElementById('folders').innerHTML = document.getElementById('folders').innerHTML + '';
if (document.getElementById('restaurant').checked || document.getElementById('pizzeria').checked || document.getElementById('mcdonalds').checked || document.getElementById('restchina').checked || document.getElementById('restjapan').checked || document.getElementById('restindien').checked || document.getElementById('restarab').checked || document.getElementById('restthai').checked || document.getElementById('reststeak').checked) document.getElementById('folders').innerHTML = document.getElementById('folders').innerHTML + '';
document.getElementById('folders').innerHTML = document.getElementById('folders').innerHTML + '';
if (document.getElementById('s_Sonstiges') && document.getElementById('flughafen').checked) document.getElementById('s_Sonstiges').style.display = "block";
}
var lasttyp = '';
gmarkersA = [];
gmarkersB = [];
gmarkersC = [];
gmarkersD = [];
gmarkersE = [];
var markers = httpreq.responseXML.getElementsByTagName('marker');
//if (maptype == 1 && markers.length > 0) document.getElementById('info').innerHTML = '';
for (var i = 0; i < markers.length; i++) {
var lat = parseFloat(markers[i].getAttribute("lat"));
var lng = parseFloat(markers[i].getAttribute("lng"));
var point = new GLatLng(lat,lng);
var town = markers[i].getAttribute("name");
var id = markers[i].getAttribute("id");
var hid = markers[i].getAttribute("hid");
var show = markers[i].getAttribute("show");
var rank = markers[i].getAttribute("rank");
var preis = markers[i].getAttribute("preis");
var link = markers[i].getAttribute("link");
var pic = markers[i].getAttribute("imageurl");
var symb = markers[i].getAttribute("symbol");
var transport = markers[i].getAttribute("transport");
var adr = markers[i].getAttribute("adr");
var typ = markers[i].getAttribute("typ");
var book = markers[i].getAttribute("book");
if (pic) pic = '
';
var infot = '';
if (show == 4) infot = '
';
if (show == 3 && book == 1) infot = '
';
var bookt = '';
if (book == 1) {
var bookt = '
';
document.getElementById('linker').href = document.getElementById('linker').href + typ + hid + "|";
}
if (book == 2) {
var bookt = '
';
}
if (transport == 13 || transport == 87 || transport == 209) var ticon = '
'; else ticon = '';
var col = '';
if (i % 2 == 1) col = 'background-color:#dddddd;';
if (link != '') var link2 = ''+decod(town)+'';
else var link2 = decod(town);
if (show == 0)
var subtext = ''+ link2 + '
'+typ+' '+bookt+ticon+'
'+adr+'
' + pic + '
';
else if (show == 1)
var subtext = ''+ link2 + '
'+typ+ticon+'

Beliebtheit (0-10): '+rank+'
';
else if (show == 2)
var subtext = ''+ link2 + '
'+typ+ticon+'
'+rank+'
';
else if (show == 3)
var subtext = ''+ link2 + '
'+typ+' '+bookt+ticon+infot+'
'+adr+'
'+'Bewertung (0-100): '+rank+'
' + pic + '
';
else if (show == 4)
var subtext = ''+ link2 + '
'+typ+' '+bookt+ticon+infot+'
'+adr+'
'+'Preisspanne: '+preis+'
' + pic + '
';
else if (show == 5)
var subtext = ''+ link2 + '
'+adr+'
'+'Preis: '+preis+'
' + pic + '
';
if (maptype == 0) {
if (typ == 'Strand') var marker = pMarker(point,town,subtext,iconbeach,link,id,rank);
else if (typ == 'Stadt') var marker = pMarker(point,town,subtext,iconstadt,link,id,rank);
else if (typ == 'Erholungsort') var marker = pMarker(point,town,subtext,iconerholung,link,id,rank);
else if (typ == 'Regional') var marker = pMarker(point,town,subtext,iconerholung,link,id,rank);
else if (typ == 'Berge') var marker = pMarker(point,town,subtext,iconski,link,id,rank);
else if (typ == 'Kultur') var marker = pMarker(point,town,subtext,iconculture,link,id,rank);
else if (typ == 'Natur') var marker = pMarker(point,town,subtext,iconnature,link,id,rank);
else if (typ == 'Wellness') var marker = pMarker(point,town,subtext,iconwellness,link,id,rank);
else if (typ == 'Geografie') var marker = pMarker(point,town,subtext,icongeo,link,id,rank);
else if (typ == 'Öko') var marker = pMarker(point,town,subtext,iconeco,link,id,rank);
else if (typ == 'Agro/Dorf') var marker = pMarker(point,town,subtext,iconagro,link,id,rank);
else if (typ == 'Adventure') var marker = pMarker(point,town,subtext,iconadventure,link,id,rank);
else if (typ == 'Sport') var marker = pMarker(point,town,subtext,iconadventure,link,id,rank);
else var marker = pMarker(point,town,subtext,iconyellow,link,rank,rank);
} else if (maptype == 1) {
if (typ == 'Wikipedia') var marker = pMarker(point,town,subtext,iconwikipedia,link,id,book);
else if (typ == 'Landmark') var marker = pMarker(point,town,subtext,iconlandmark,link,id,book);
else if (typ == 'City') var marker = pMarker(point,town,subtext,iconcity,link,id,book);
else if (typ == 'Waterbody') var marker = pMarker(point,town,subtext,iconwaterbody,link,id,book);
else if (typ == 'Mountain') var marker = pMarker(point,town,subtext,iconmountain,link,id,book);
else if (typ == 'Church') var marker = pMarker(point,town,subtext,iconchurch,link,id,book);
else if (typ == 'Sport') var marker = pMarker(point,town,subtext,iconsport,link,id,book);
else if (typ == 'Traffic') var marker = pMarker(point,town,subtext,icontraffic,link,id,book);
else if (typ == 'Arts') var marker = pMarker(point,town,subtext,iconarts,link,id,book);
else if (typ == 'Green') var marker = pMarker(point,town,subtext,iconsgreen,link,id,book);
else if (typ == 'Nature') var marker = pMarker(point,town,subtext,iconsnature,link,id,book);
else if (typ == 'Wine') var marker = pMarker(point,town,subtext,iconwine,link,id,book);
else if (typ == 'Geologie') var marker = pMarker(point,town,subtext,iconsgeo,link,id,book);
else if (typ == 'Hiking') var marker = pMarker(point,town,subtext,iconhike,link,id,book);
else if (typ == 'Ski') var marker = pMarker(point,town,subtext,iconsski,link,id,book);
else if (typ == 'Hoehle') var marker = pMarker(point,town,subtext,iconhoehle,link,id,book);
else if (typ == 'Wasserfall') var marker = pMarker(point,town,subtext,iconwasserfall,link,id,book);
else if (typ == 'Architektur') var marker = pMarker(point,town,subtext,iconarch,link,id,book);
else if (typ == 'Burg') var marker = pMarker(point,town,subtext,iconburg,link,id,book);
else if (typ == 'Ethno') var marker = pMarker(point,town,subtext,iconethno,link,id,book);
else if (typ == 'Bahnhof') var marker = pMarker(point,town,subtext,icontrain,link,id,book);
else if (typ == 'Busbahnhof') var marker = pMarker(point,town,subtext,iconbus,link,id,book);
else if (typ == 'Flughafen') var marker = pMarker(point,town,subtext,iconair,link,id,book);
else if (typ == 'Flughafenint') var marker = pMarker(point,town,subtext,iconiair,link,id,book);
else if (typ == 'Straende') var marker = pMarker(point,town,subtext,iconstrand,link,id,book);
else if (typ == 'Restaurant') var marker = pMarker(point,town,subtext,iconrestaurant,link,id,book);
else if (typ == 'Restaurant') var marker = pMarker(point,town,subtext,iconrestaurant,link,id,book);
else if (typ == 'Pizzeria') var marker = pMarker(point,town,subtext,iconpizzeria,link,id,book);
else if (typ == 'Pizza') var marker = pMarker(point,town,subtext,iconpizzeria,link,id,book);
else if (typ == 'Mcdonalds') var marker = pMarker(point,town,subtext,iconmcdonalds,link,id,book);
else if (typ == 'Mcdonalds') var marker = pMarker(point,town,subtext,iconmcdonalds,link,id,book);
else if (typ == 'Restaurant japanisch') var marker = pMarker(point,town,subtext,iconrestjapan,link,id,book);
else if (typ == 'Restaurant japanese') var marker = pMarker(point,town,subtext,iconrestjapan,link,id,book);
else if (typ == 'Restaurant thailändisch') var marker = pMarker(point,town,subtext,iconrestthai,link,id,book);
else if (typ == 'Restaurant thai') var marker = pMarker(point,town,subtext,iconrestthai,link,id,book);
else if (typ == 'Steakhaus') var marker = pMarker(point,town,subtext,iconreststeak,link,id,book);
else if (typ == 'Steakhouse') var marker = pMarker(point,town,subtext,iconreststeak,link,id,book);
else if (typ == 'Restaurant indisch') var marker = pMarker(point,town,subtext,iconrestindien,link,id,book);
else if (typ == 'Restaurant India') var marker = pMarker(point,town,subtext,iconrestindien,link,id,book);
else if (typ == 'Restaurant arabisch') var marker = pMarker(point,town,subtext,iconrestarab,link,id,book);
else if (typ == 'Restaurant Arab') var marker = pMarker(point,town,subtext,iconrestarab,link,id,book);
else if (typ == 'Gaststätte') var marker = pMarker(point,town,subtext,iconguest,link,id,book);
else if (typ == 'Inn') var marker = pMarker(point,town,subtext,iconguest,link,id,book);
else if (typ == 'Cafe') var marker = pMarker(point,town,subtext,iconcafe,link,id,book);
else if (typ == 'Cafe') var marker = pMarker(point,town,subtext,iconcafe,link,id,book);
else if (typ == 'Pub') var marker = pMarker(point,town,subtext,iconpub,link,id,book);
else if (typ == 'Pub') var marker = pMarker(point,town,subtext,iconpub,link,id,book);
else if (typ == 'Disco') var marker = pMarker(point,town,subtext,icondisco,link,id,book);
else if (typ == 'Disco') var marker = pMarker(point,town,subtext,icondisco,link,id,book);
else if (typ == 'Hotel') var marker = pMarker(point,town,subtext,iconhotel,link,id,book);
else if (typ == 'Hotel') var marker = pMarker(point,town,subtext,iconhotel,link,id,book);
else if (typ == 'Hostel') var marker = pMarker(point,town,subtext,iconhostel,link,id,book);
else if (typ == 'Hostel') var marker = pMarker(point,town,subtext,iconhostel,link,id,book);
else if (typ == 'Bed and Breakfast') var marker = pMarker(point,town,subtext,iconpension,link,id,book);
else if (typ == 'Bed and Breakfast') var marker = pMarker(point,town,subtext,iconpension,link,id,book);
else if (typ == 'Campingplatz') var marker = pMarker(point,town,subtext,iconcamping,link,id,book);
else if (typ == 'Camping') var marker = pMarker(point,town,subtext,iconcamping,link,id,book);
else if (typ == 'Theater') var marker = pMarker(point,town,subtext,icontheater,link,id,book);
else if (typ == 'Theatre') var marker = pMarker(point,town,subtext,icontheater,link,id,book);
else if (typ == 'Museum') var marker = pMarker(point,town,subtext,iconmuseum,link,id,book);
else if (typ == 'Museum') var marker = pMarker(point,town,subtext,iconmuseum,link,id,book);
else if (typ == 'Kino') var marker = pMarker(point,town,subtext,iconkino,link,id,book);
else if (typ == 'Cinema') var marker = pMarker(point,town,subtext,iconkino,link,id,book);
else if (typ == 'Tourist Info') var marker = pMarker(point,town,subtext,iconinfo,link,id,book);
else if (typ == 'Tourist Info') var marker = pMarker(point,town,subtext,iconinfo,link,id,book);
else if (typ == 'Tour') var marker = pMarker(point,town,subtext,icontour,link,id,book);
else if (typ == 'Tour Operator') var marker = pMarker(point,town,subtext,icontour,link,id,book);
else if (typ == 'Sprachschule') var marker = pMarker(point,town,subtext,iconlang,link,id,book);
else if (typ == 'Language school') var marker = pMarker(point,town,subtext,iconlang,link,id,book);
else if (typ == 'Universität') var marker = pMarker(point,town,subtext,iconuni,link,id,book);
else if (typ == 'University') var marker = pMarker(point,town,subtext,iconuni,link,id,book);
else if (typ == 'Krankenhaus') var marker = pMarker(point,town,subtext,iconhospital,link,id,book);
else if (typ == 'Hospital') var marker = pMarker(point,town,subtext,iconhospital,link,id,book);
else if (typ == 'Zahnarzt') var marker = pMarker(point,town,subtext,icondentist,link,id,book);
else if (typ == 'Dentist') var marker = pMarker(point,town,subtext,icondentist,link,id,book);
else if (typ == 'Apotheke') var marker = pMarker(point,town,subtext,icondrug,link,id,book);
else if (typ == 'Pharmacy') var marker = pMarker(point,town,subtext,icondrug,link,id,book);
else if (typ == 'Supermarkt') var marker = pMarker(point,town,subtext,iconshopping,link,id,book);
else if (typ == 'Shopping') var marker = pMarker(point,town,subtext,iconshopping,link,id,book);
else if (typ == 'Bank') var marker = pMarker(point,town,subtext,iconbank,link,id,book);
else if (typ == 'Bank') var marker = pMarker(point,town,subtext,iconbank,link,id,book);
else if (typ == 'Bankautomat') var marker = pMarker(point,town,subtext,iconatm,link,id,book);
else if (typ == 'ATM') var marker = pMarker(point,town,subtext,iconatm,link,id,book);
else if (typ == 'Park') var marker = pMarker(point,town,subtext,iconpark,link,id,book);
else if (typ == 'Park') var marker = pMarker(point,town,subtext,iconpark,link,id,book);
else if (typ == 'Internetcafe') var marker = pMarker(point,town,subtext,iconinternet,link,id,book);
else if (typ == 'Internetcafe') var marker = pMarker(point,town,subtext,iconinternet,link,id,book);
else if (typ == 'WLAN Hotspot') var marker = pMarker(point,town,subtext,iconwlan,link,id,book);
else if (typ == 'WLAN Hotspot') var marker = pMarker(point,town,subtext,iconwlan,link,id,book);
else if (typ == 'Schwimmbad') var marker = pMarker(point,town,subtext,iconpool,link,id,book);
else if (typ == 'Swimming Pool') var marker = pMarker(point,town,subtext,iconpool,link,id,book);
else if (typ == 'Golf') var marker = pMarker(point,town,subtext,icongolf,link,id,book);
else if (typ == 'Golf') var marker = pMarker(point,town,subtext,icongolf,link,id,book);
else if (typ == 'Casino') var marker = pMarker(point,town,subtext,iconcasino,link,id,book);
else if (typ == 'Casino') var marker = pMarker(point,town,subtext,iconcasino,link,id,book);
else if (typ == 'Restaurant chinesisch') var marker = pMarker(point,town,subtext,iconrestchina,link,id,book);
else if (typ == 'Restaurant chinese') var marker = pMarker(point,town,subtext,iconrestchina,link,id,book);
else if (typ == 'Tauchschule') var marker = pMarker(point,town,subtext,icondive,link,id,book);
else if (typ == 'Diving school') var marker = pMarker(point,town,subtext,icondive,link,id,book);
else if (typ == 'Motel') var marker = pMarker(point,town,subtext,iconmotel,link,id,book);
else if (typ == 'Motel') var marker = pMarker(point,town,subtext,iconmotel,link,id,book);
else if (typ == 'Freizeitpark') var marker = pMarker(point,town,subtext,fpark,link,id,book);
else if (typ == 'Fun Park') var marker = pMarker(point,town,subtext,fpark,link,id,book);
else if (typ == 'Tempel') var marker = pMarker(point,town,subtext,icontempel,link,id,book);
else if (typ == 'Temple') var marker = pMarker(point,town,subtext,icontempel,link,id,book);
else if (typ == 'Game reserve') var marker = pMarker(point,town,subtext,Icongpark,link,id,book);
else if (typ == 'Game reserve') var marker = pMarker(point,town,subtext,Icongpark,link,id,book);
else var marker = pMarker(point,town,subtext,iconred,link,id,book);
} else if (maptype == 2) {
var marker = pMarker(point,town,subtext,iconyellow,link,id,book);
} else {
if (rank == 1) var marker = pMarker(point,town,subtext,iconred,link,id,book);
else var marker = pMarker(point,town,subtext,icongreen,link,id,book);
}
gmarkersA.push(marker);
if (rank <= 1) gmarkersB.push(point);
if (rank == 2) gmarkersC.push(point);
if (rank == 3) gmarkersD.push(point);
if (rank == 4) gmarkersE.push(point);
if (lat != 0 && lng != 0) map.addOverlay(marker);
if (maptype == 0 && mapinfobox == 1) {
document.getElementById('poiinfo').innerHTML = document.getElementById('poiinfo').innerHTML + subtext;
}
if (maptype == 1) {
var typ2;
if (typ == "Wikipedia" || typ == "Landmark" || typ == "City" || typ == "Waterbody" || typ == "Mountain" || typ == "Church" || typ == "Sport" || typ == "Arts" || typ == "Green" || typ == "Traffic" || typ == "Nature" || typ == "Geologie" || typ == "Wine" || typ == "Hiking" || typ == "Burg" || typ == "Architektur" || typ == "Ski" || typ == "Hoehle" || typ == "Wasserfall" || typ == "Ethno") typ2 = "Wikipedia";
else if (typ == "Restaurant" || typ == "Restaurant chinesisch" || typ == "Restaurant japanisch" || typ == "Restaurant thailändisch" || typ == "Restaurant arabisch" || typ == "Restaurant indisch" || typ == "Steakhaus" || typ == "Pizzeria" || typ == "Mcdonals") typ2 = "Restaurant";
else if (typ == "Hotel") typ2 = "Hotel";
else if (typ == "Hostel") typ2 = "Hostel";
else typ2 = "Sonstiges";
if (rank != 0) {
if (rank <= 20) var rankt = '
';
else if (rank <= 40) var rankt = '
';
else if (rank <= 60) var rankt = '
';
else if (rank <= 80) var rankt = '
';
else var rankt = '
';
} else var rankt = '';
if (preis!=null && preis != '') preis = '('+preis+')'; else preis = '';
if (lat != 0 && lng != 0) {
if (book == 2) infotext = '';
else { if (book == 1 && rankt != '') infotext = '';
else infotext = ''; }
} else
infotext = '';
if (book == 0)
document.getElementById('s_'+typ2).innerHTML = document.getElementById('s_'+typ2).innerHTML + infotext;
else
document.getElementById('s_'+typ2).innerHTML = infotext + document.getElementById('s_'+typ2).innerHTML;
}
}
if (maptype == 3) {
poly = new GPolygon(gmarkersB, "#00ffff", 3, .8, "#335599", 0);
map.addOverlay(poly);
maptype = 1;
}
var zoom = map.getZoom();
GEvent.addListener(map, "click", function(marker, center) {});
if (document.getElementById('ProgressBar')) document.getElementById('ProgressBar').style.display = 'none';
mapinfobox = 1;
}
}
function openStreetview() {
var point = map.fromContainerPixelToLatLng(clickedPixel);
contextmenu.style.visibility="hidden";
window.open('punktinfo.php?lat='+point.lat()+'&lng='+point.lng(), 'Detailinfos', 'status=no, dependent=1, top=0, left=0, height=500, width=700, resizable=no, scrollbars=yes','');
}
function distance0() {
distancestart = map.fromContainerPixelToLatLng(clickedPixel);
var newmarker = new GMarker(distancestart,{});
map.addOverlay(newmarker);
contextmenu.style.visibility="hidden";
}
function distance1() {
distanceend = map.fromContainerPixelToLatLng(clickedPixel);
if (distancestart) {
var newmarker = new GMarker(distanceend,{});
map.addOverlay(newmarker);
var laenge = geodistance(distancestart.lat(), distancestart.lng(), distanceend.lat(), distanceend.lng());
document.getElementById('mapinfo').innerHTML = 'Entfernung: '+laenge+' km'
alert(laenge+' km');
}
contextmenu.style.visibility="hidden";
}
function routing0() {
directionsstart = map.fromContainerPixelToLatLng(clickedPixel);
var newmarker = new GMarker(directionsstart,{});
map.addOverlay(newmarker);
contextmenu.style.visibility="hidden";
}
function routing1() {
directionsend = map.fromContainerPixelToLatLng(clickedPixel);
if (directionsstart) {
var newmarker = new GMarker(directionsend,{});
map.addOverlay(newmarker);
document.getElementById('poiinfo').innerHTML = 'Route
';
mapscroll = 0;
directionsPanel = document.getElementById("poiinfo");
directions = new GDirections(map, directionsPanel);
directions.load("from: "+directionsstart.lat()+","+directionsstart.lng()+" to: "+directionsend.lat()+","+directionsend.lng());
}
contextmenu.style.visibility="hidden";
}
function poientry()
{
var marker = map.fromContainerPixelToLatLng(clickedPixel);
var newmarker = new GMarker(marker,{});
map.addOverlay(newmarker);
contextmenu.style.visibility="hidden";
document.getElementById('pointform1').style.display = 'block';
document.getElementById('pointform1').style.position = 'absolute';
document.getElementById('pointform1').style.top = '150';
document.getElementById('pointform1').style.left = '250';
document.getElementById('xkoor').value = marker.lng();
document.getElementById('ykoor').value = marker.lat();
}
function forentry()
{
var marker = map.fromContainerPixelToLatLng(clickedPixel);
document.getElementById('info').innerHTML = '';
new Effect.Highlight('poiinfo', { startcolor: '#000000'});
contextmenu.style.visibility="hidden";
callAJAX('forentry.php?lat='+marker.lat()+'&lng='+marker.lng(), 'poiinfo', '', '');
}
function InfoWindow(latlng) {
if (contextmenu) contextmenu.style.visibility="hidden";
//map.openInfoWindow(latlng, "X: " + latlng.x + " / Y: " + latlng.y);
}
function getTree() {
}
function getads() {
//callAJAX('ads.html', 'google', 'loading...', 'Error');
var inc = '<' + 'script type="text/javascript" src="http://ivw.4trips.de/get?referrer=' + location.href + '"><' + '/' + 'script' + '>';
var inc2 = '';
document.getElementById('trip').innerHTML = inc + inc2;
}
function loadJSON(result) {
function crMarker(point, text, thumbnail, alb, nummer) {
if (thumbnail != '') var img = '
'; else var img = '';
var baseIcon = new GIcon();
baseIcon.iconSize=new GSize(32,32);
baseIcon.shadowSize=new GSize(56,32);
var icon = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal"+alb+"/icon"+nummer+".png", null, "http://maps.google.com/mapfiles/kml/pal"+alb+"/icon"+nummer+"s.png");
icon.shadowSize=new GSize(56,24);
icon.iconAnchor = new GPoint(24, 24);
icon.infoWindowAnchor = new GPoint(24, 24);
icon.iconSize = new GSize(24, 24);
var marker = new GMarker(point, {icon: icon });
GEvent.addListener(marker, "click", function() {
//movemarker = false;
marker.openInfoWindowHtml(text + img +'
');
});
GEvent.addListener(marker, "mouseover", function() {
document.getElementById('mapinfo').innerHTML = text;
});
return marker;
}
var ausgabe = '';
if (result) for (var i=0; i";
alb = 3;
num = 44;
if (feature == 'landmark') { feature = 'Sehenswürdigkeit'; alb = 4; num = 46; }
else if (feature == 'city') { feature = 'Stadt'; alb = 4; num = 56; }
else if (feature == 'waterbody') { feature = 'Gewässer'; alb = 4; num = 45; }
else if (feature == 'mountain') { feature = 'Berg/Gebirge'; alb = 3; num = 29; }
else if (feature == 'adm1st') feature = 'Region';
else if (feature == 'adm2nd') feature = 'Bezirk';
else if (feature == 'adm3rd') feature = 'Gemeinde';
else if (feature == 'country') feature = 'Land';
var pop = result.geonames[i].population + 0;
var img = result.geonames[i].thumbnailImg;
if (pop != 0) var ptext = 'Pop: ' + pop + '
'; else var ptext = '';
linktext = '' + tit +'
' + summary + '
Typ: ' + feature + '
' + ptext + '';
ausgabe = ausgabe + '' + tit +' 
';
if (map != null) {
var pt = new GLatLng(lat, lon);
if (map.getCenter()) map.addOverlay(crMarker(pt, linktext, img, alb, num));
}
}
}
function loadJSONBounds(result) {
function weatherMarker(point, nr, text, label) {
var baseIcon = new GIcon();
baseIcon.iconSize=new GSize(32,32);
baseIcon.shadowSize=new GSize(56,32);
var icon = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal4/icon"+nr+".png", null, "http://maps.google.com/mapfiles/kml/pal4/icon"+nr+"s.png");
icon.shadowSize=new GSize(56,24);
icon.iconAnchor = new GPoint(24, 24);
icon.infoWindowAnchor = new GPoint(24, 24);
icon.iconSize = new GSize(24, 24);
var marker = new GMarker(point, {icon: icon });
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(text);
});
return marker;
}
if (result) for (var i=0; i' + condition + '
' + clouds, temp));
}
}
}
function mappan(lat, lon, i) {
mapscroll = 0;
GEvent.trigger(gmarkersA[i], "click");
map.panTo(new GLatLng(lat,lon));
}
function linien(p) {
maptype = 3;
getXMLData("axml.php", "&p="+p);
}
function settype1() {
document.getElementById('mtyp2').checked=true;
if (maptype != 1) {
new Effect.Opacity('poitable', { from: 0.2, to: 1.0, duration: 0.5 });
new Effect.Opacity('rzieltable', { from: 1.0, to: 0.2, duration: 0.5 });
new Effect.Opacity('communitytable', { from: 1.0, to: 0.2, duration: 0.5 });
}
new Effect.Shake('Aktualisieren');
new Effect.Highlight('Aktualisieren', {});
maptype = 1;
}
function settype0() {
document.getElementById('mtyp1').checked=true;
if (maptype != 0) {
new Effect.Opacity('rzieltable', { from: 0.2, to: 1.0, duration: 0.5 });
new Effect.Opacity('poitable', { from: 1.0, to: 0.2, duration: 0.5 });
new Effect.Opacity('communitytable', { from: 1.0, to: 0.2, duration: 0.5 });
}
maptype = 0;
}
function settype2() {
document.getElementById('mtyp3').checked=true;
if (maptype != 2) {
new Effect.Opacity('communitytable', { from: 0.2, to: 1.0, duration: 0.5 });
new Effect.Opacity('rzieltable', { from: 1.0, to: 0.2, duration: 0.5 });
new Effect.Opacity('poitable', { from: 1.0, to: 0.2, duration: 0.5 });
}
maptype = 2;
}
var figuremode = 0;
var pointimages = [
"http://maps.google.com/mapfiles/kml/pal3/icon28.png",
"http://maps.google.com/mapfiles/ms/micons/grn-pushpin.png",
"http://maps.google.com/mapfiles/ms/micons/red-pushpin.png",
"http://maps.google.com/mapfiles/dd-start.png",
"http://maps.google.com/mapfiles/dd-end.png",
"http://maps.google.com/mapfiles/ms/micons/POI.png"
];
var directionsPanel;
var directions;
var distancestart;
var distanceend;
var directionsstart;
var directionsend;
function geodistance(ya, xa, yb, xb)
{
var pi180 = 0.01745329252;
var bya = ya * pi180;
var byb = yb * pi180;
var cosd = Math.sin(bya) * Math.sin(byb) + Math.cos(bya) * Math.cos(byb) * Math.cos((xa-xb)* pi180);
var l = Math.acos(cosd) * 6370;
return l;
}
function follow(imageInd){
var marker;
var dog = true;
var noMore = false;
function dirError(){
alert("Es wurde keine Route gefunden.");
}
if (figuremode == 1) alert('Es ist bereits eine Figur ausgewählt. Setze die Figur auf die Karte, um eine weitere wählen zu können!');
figuremode = 1;
var mouseMove = GEvent.addListener(map, 'mousemove', function(cursorPoint){
if(!noMore){
marker = new GMarker(cursorPoint,{draggable:true, autoPan:false});
map.addOverlay(marker);
marker.setImage(pointimages[imageInd]);
noMore = true;
// This function deletes the marker when dragged outside map
GEvent.addListener(marker, 'drag', function(markerPoint){
if(!map.getBounds().containsLatLng(markerPoint)){
map.removeOverlay(marker);
}
});
}
if(dog){
marker.setLatLng(cursorPoint);
}
});
var mapClick = GEvent.addListener(map, 'click', function(){
dog = false;
if (imageInd == 0) window.open('punktinfo.php?lat='+marker.getLatLng().lat()+'&lng='+marker.getLatLng().lng(), 'Detailinfos', 'status=no, dependent=1, top=0, left=0, height=500, width=700, resizable=no, scrollbars=yes','');
else if (imageInd == 1) distancestart = marker.getLatLng();
else if (imageInd == 2) {
distanceend = marker.getLatLng();
if (distancestart) {
var laenge = geodistance(distancestart.lat(), distancestart.lng(), distanceend.lat(), distanceend.lng());
document.getElementById('mapinfo').innerHTML = 'Entfernung: '+laenge+' km'
alert(laenge+' km');
}
}
else if (imageInd == 3) directionsstart = marker.getLatLng();
else if (imageInd == 4) {
directionsend = marker.getLatLng();
if (directionsstart) {
document.getElementById('poiinfo').innerHTML = 'Route
';
mapscroll = 0;
directionsPanel = document.getElementById("poiinfo");
directions = new GDirections(map, directionsPanel);
GEvent.addListener(directions, "error", dirError);
directions.load("from: "+directionsstart.lat()+","+directionsstart.lng()+" to: "+directionsend.lat()+","+directionsend.lng());
}
}
else if (imageInd == 5) {
if (map.getZoom() < 12) alert('Zum Eintragen eines Punktes ist mindestens Zoomstufe 12 erforderlich. Bitte zoome näher in die Karte hinein.');
else {
if (geocoder) {
geocoder.getLocations(marker.getLatLng(), function(addresses) {
var address = addresses.Placemark[0];
var land = address.AddressDetails.Country.CountryNameCode;
if (document.pointsform.countries) document.pointsform.countries.selectedIndex = ctarray[land];
});
}
document.getElementById('info').innerHTML = '';
new Effect.Highlight('poiinfo', { startcolor: '#000000'});
callAJAX('poientry.php?lat='+marker.getLatLng().lat()+'&lng='+marker.getLatLng().lng(), 'poiinfo', '', '');
}
}
figuremode = 0;
GEvent.removeListener(mouseMove);
GEvent.removeListener(mapClick);
});
contextmenu.style.visibility="hidden";
}
function poiedit(pid)
{
callAJAX('poiedit.php?lat='+lastclicky+'&lng='+lastclickx+'&id='+pid, 'poiinfo', '', '');
}
function registerstart()
{
if (map.getZoom() < 8) alert('Die Zoomstufe ist zu niedrig. Es sind zu viele Flughäfen im Ausschnitt. Bitte zoome näher heran.');
else {
document.getElementById('auto1').value = 'Ausschnitt';
callAJAX("addtarget.php?start=1&west="+map.getBounds().getSouthWest().lng()+"&east="+map.getBounds().getNorthEast().lng()+"&north="+map.getBounds().getNorthEast().lat()+"&south="+map.getBounds().getSouthWest().lat(), 'poiinfo', '', '');
}
}
function registerstop()
{
if (map.getZoom() < 8) alert('Die Zoomstufe ist zu niedrig. Es sind zu viele Flughäfen im Ausschnitt. Bitte zoome näher heran.');
else {
document.getElementById('auto2').value = 'Ausschnitt';
callAJAX("addtarget.php?stop=1&west="+map.getBounds().getSouthWest().lng()+"&east="+map.getBounds().getNorthEast().lng()+"&north="+map.getBounds().getNorthEast().lat()+"&south="+map.getBounds().getSouthWest().lat(), 'poiinfo', '', '');
}
}
function CheckPOI()
{
stop = 0;
if ((document.pointsform.name.value == "") && (stop==0))
{
alert('Kein Ortsname eingetragen!');
document.pointsform.name.focus();
stop = 1;
}
if ((document.pointsform.countries.value == "") && (stop==0))
{
alert('Kein Land gewählt!');
document.pointsform.countries.focus();
stop = 1;
}
if ((document.pointsform.type.value == "") && (stop==0))
{
alert('Keine Kategorie gewählt!');
document.pointsform.type.focus();
stop = 1;
}
if (stop==0)
{
Effect.Shrink('pointform1');
document.pointsform.submit();
}
}