String.prototype.leftTrim=function(){return(this.replace(/^\s+/,""));};String.prototype.rightTrim=function(){return(this.replace(/\s+$/,""));
};String.prototype.trim=function(){return(this.replace(/\s+$/,"").replace(/^\s+/,""));
};String.prototype.superTrim=function(){return(this.replace(/\s+/g," ").replace(/\s+$/,"").replace(/^\s+/,""));
};String.prototype.removeWhiteSpaces=function(){return(this.replace(/\s+/g,""));};
String.prototype.startsWith=function(A){return this.indexOf(A)===0;};String.prototype.endsWith=function(A){return this.match(A+"$")==A;
};function getQueryString(B){var C=parent.location.search;if(C.length>1){C=C.substring(1,C.length);
for(var A=0;A<C.split("&").length;A++){subQuery=C.split("&")[A];subQueryKey=subQuery.split("=")[0];
subQueryValue=subQuery.split("=")[1];if(subQueryKey.toLowerCase()==B.toLowerCase()){return decodeURI(subQueryValue);
}}}else{return null;}return null;}function HtmlDecode(s){var out="";if(s==null){return;
}var l=s.length;for(var i=0;i<l;i++){var ch=s.charAt(i);if(ch=="&"){var semicolonIndex=s.indexOf(";",i+1);
if(semicolonIndex>0){var entity=s.substring(i+1,semicolonIndex);if(entity.length>1&&entity.charAt(0)=="#"){if(entity.charAt(1)=="x"||entity.charAt(1)=="X"){ch=String.fromCharCode(eval("0"+entity.substring(1)));
}else{ch=String.fromCharCode(eval(entity.substring(1)));}}else{switch(entity){case"quot":ch=String.fromCharCode(34);
break;case"amp":ch=String.fromCharCode(38);break;case"lt":ch=String.fromCharCode(60);
break;case"gt":ch=String.fromCharCode(62);break;case"nbsp":ch=String.fromCharCode(160);
break;case"iexcl":ch=String.fromCharCode(161);break;case"cent":ch=String.fromCharCode(162);
break;case"pound":ch=String.fromCharCode(163);break;case"curren":ch=String.fromCharCode(164);
break;case"yen":ch=String.fromCharCode(165);break;case"brvbar":ch=String.fromCharCode(166);
break;case"sect":ch=String.fromCharCode(167);break;case"uml":ch=String.fromCharCode(168);
break;case"copy":ch=String.fromCharCode(169);break;case"ordf":ch=String.fromCharCode(170);
break;case"laquo":ch=String.fromCharCode(171);break;case"not":ch=String.fromCharCode(172);
break;case"shy":ch=String.fromCharCode(173);break;case"reg":ch=String.fromCharCode(174);
break;case"macr":ch=String.fromCharCode(175);break;case"deg":ch=String.fromCharCode(176);
break;case"plusmn":ch=String.fromCharCode(177);break;case"sup2":ch=String.fromCharCode(178);
break;case"sup3":ch=String.fromCharCode(179);break;case"acute":ch=String.fromCharCode(180);
break;case"micro":ch=String.fromCharCode(181);break;case"para":ch=String.fromCharCode(182);
break;case"middot":ch=String.fromCharCode(183);break;case"cedil":ch=String.fromCharCode(184);
break;case"sup1":ch=String.fromCharCode(185);break;case"ordm":ch=String.fromCharCode(186);
break;case"raquo":ch=String.fromCharCode(187);break;case"frac14":ch=String.fromCharCode(188);
break;case"frac12":ch=String.fromCharCode(189);break;case"frac34":ch=String.fromCharCode(190);
break;case"iquest":ch=String.fromCharCode(191);break;case"Agrave":ch=String.fromCharCode(192);
break;case"Aacute":ch=String.fromCharCode(193);break;case"Acirc":ch=String.fromCharCode(194);
break;case"Atilde":ch=String.fromCharCode(195);break;case"Auml":ch=String.fromCharCode(196);
break;case"Aring":ch=String.fromCharCode(197);break;case"AElig":ch=String.fromCharCode(198);
break;case"Ccedil":ch=String.fromCharCode(199);break;case"Egrave":ch=String.fromCharCode(200);
break;case"Eacute":ch=String.fromCharCode(201);break;case"Ecirc":ch=String.fromCharCode(202);
break;case"Euml":ch=String.fromCharCode(203);break;case"Igrave":ch=String.fromCharCode(204);
break;case"Iacute":ch=String.fromCharCode(205);break;case"Icirc":ch=String.fromCharCode(206);
break;case"Iuml":ch=String.fromCharCode(207);break;case"ETH":ch=String.fromCharCode(208);
break;case"Ntilde":ch=String.fromCharCode(209);break;case"Ograve":ch=String.fromCharCode(210);
break;case"Oacute":ch=String.fromCharCode(211);break;case"Ocirc":ch=String.fromCharCode(212);
break;case"Otilde":ch=String.fromCharCode(213);break;case"Ouml":ch=String.fromCharCode(214);
break;case"times":ch=String.fromCharCode(215);break;case"Oslash":ch=String.fromCharCode(216);
break;case"Ugrave":ch=String.fromCharCode(217);break;case"Uacute":ch=String.fromCharCode(218);
break;case"Ucirc":ch=String.fromCharCode(219);break;case"Uuml":ch=String.fromCharCode(220);
break;case"Yacute":ch=String.fromCharCode(221);break;case"THORN":ch=String.fromCharCode(222);
break;case"szlig":ch=String.fromCharCode(223);break;case"agrave":ch=String.fromCharCode(224);
break;case"aacute":ch=String.fromCharCode(225);break;case"acirc":ch=String.fromCharCode(226);
break;case"atilde":ch=String.fromCharCode(227);break;case"auml":ch=String.fromCharCode(228);
break;case"aring":ch=String.fromCharCode(229);break;case"aelig":ch=String.fromCharCode(230);
break;case"ccedil":ch=String.fromCharCode(231);break;case"egrave":ch=String.fromCharCode(232);
break;case"eacute":ch=String.fromCharCode(233);break;case"ecirc":ch=String.fromCharCode(234);
break;case"euml":ch=String.fromCharCode(235);break;case"igrave":ch=String.fromCharCode(236);
break;case"iacute":ch=String.fromCharCode(237);break;case"icirc":ch=String.fromCharCode(238);
break;case"iuml":ch=String.fromCharCode(239);break;case"eth":ch=String.fromCharCode(240);
break;case"ntilde":ch=String.fromCharCode(241);break;case"ograve":ch=String.fromCharCode(242);
break;case"oacute":ch=String.fromCharCode(243);break;case"ocirc":ch=String.fromCharCode(244);
break;case"otilde":ch=String.fromCharCode(245);break;case"ouml":ch=String.fromCharCode(246);
break;case"divide":ch=String.fromCharCode(247);break;case"oslash":ch=String.fromCharCode(248);
break;case"ugrave":ch=String.fromCharCode(249);break;case"uacute":ch=String.fromCharCode(250);
break;case"ucirc":ch=String.fromCharCode(251);break;case"uuml":ch=String.fromCharCode(252);
break;case"yacute":ch=String.fromCharCode(253);break;case"thorn":ch=String.fromCharCode(254);
break;case"yuml":ch=String.fromCharCode(255);break;case"OElig":ch=String.fromCharCode(338);
break;case"oelig":ch=String.fromCharCode(339);break;case"Scaron":ch=String.fromCharCode(352);
break;case"scaron":ch=String.fromCharCode(353);break;case"Yuml":ch=String.fromCharCode(376);
break;case"fnof":ch=String.fromCharCode(402);break;case"circ":ch=String.fromCharCode(710);
break;case"tilde":ch=String.fromCharCode(732);break;case"Alpha":ch=String.fromCharCode(913);
break;case"Beta":ch=String.fromCharCode(914);break;case"Gamma":ch=String.fromCharCode(915);
break;case"Delta":ch=String.fromCharCode(916);break;case"Epsilon":ch=String.fromCharCode(917);
break;case"Zeta":ch=String.fromCharCode(918);break;case"Eta":ch=String.fromCharCode(919);
break;case"Theta":ch=String.fromCharCode(920);break;case"Iota":ch=String.fromCharCode(921);
break;case"Kappa":ch=String.fromCharCode(922);break;case"Lambda":ch=String.fromCharCode(923);
break;case"Mu":ch=String.fromCharCode(924);break;case"Nu":ch=String.fromCharCode(925);
break;case"Xi":ch=String.fromCharCode(926);break;case"Omicron":ch=String.fromCharCode(927);
break;case"Pi":ch=String.fromCharCode(928);break;case" Rho ":ch=String.fromCharCode(929);
break;case"Sigma":ch=String.fromCharCode(931);break;case"Tau":ch=String.fromCharCode(932);
break;case"Upsilon":ch=String.fromCharCode(933);break;case"Phi":ch=String.fromCharCode(934);
break;case"Chi":ch=String.fromCharCode(935);break;case"Psi":ch=String.fromCharCode(936);
break;case"Omega":ch=String.fromCharCode(937);break;case"alpha":ch=String.fromCharCode(945);
break;case"beta":ch=String.fromCharCode(946);break;case"gamma":ch=String.fromCharCode(947);
break;case"delta":ch=String.fromCharCode(948);break;case"epsilon":ch=String.fromCharCode(949);
break;case"zeta":ch=String.fromCharCode(950);break;case"eta":ch=String.fromCharCode(951);
break;case"theta":ch=String.fromCharCode(952);break;case"iota":ch=String.fromCharCode(953);
break;case"kappa":ch=String.fromCharCode(954);break;case"lambda":ch=String.fromCharCode(955);
break;case"mu":ch=String.fromCharCode(956);break;case"nu":ch=String.fromCharCode(957);
break;case"xi":ch=String.fromCharCode(958);break;case"omicron":ch=String.fromCharCode(959);
break;case"pi":ch=String.fromCharCode(960);break;case"rho":ch=String.fromCharCode(961);
break;case"sigmaf":ch=String.fromCharCode(962);break;case"sigma":ch=String.fromCharCode(963);
break;case"tau":ch=String.fromCharCode(964);break;case"upsilon":ch=String.fromCharCode(965);
break;case"phi":ch=String.fromCharCode(966);break;case"chi":ch=String.fromCharCode(967);
break;case"psi":ch=String.fromCharCode(968);break;case"omega":ch=String.fromCharCode(969);
break;case"thetasym":ch=String.fromCharCode(977);break;case"upsih":ch=String.fromCharCode(978);
break;case"piv":ch=String.fromCharCode(982);break;case"ensp":ch=String.fromCharCode(8194);
break;case"emsp":ch=String.fromCharCode(8195);break;case"thinsp":ch=String.fromCharCode(8201);
break;case"zwnj":ch=String.fromCharCode(8204);break;case"zwj":ch=String.fromCharCode(8205);
break;case"lrm":ch=String.fromCharCode(8206);break;case"rlm":ch=String.fromCharCode(8207);
break;case"ndash":ch=String.fromCharCode(8211);break;case"mdash":ch=String.fromCharCode(8212);
break;case"lsquo":ch=String.fromCharCode(8216);break;case"rsquo":ch=String.fromCharCode(8217);
break;case"sbquo":ch=String.fromCharCode(8218);break;case"ldquo":ch=String.fromCharCode(8220);
break;case"rdquo":ch=String.fromCharCode(8221);break;case"bdquo":ch=String.fromCharCode(8222);
break;case"dagger":ch=String.fromCharCode(8224);break;case"Dagger":ch=String.fromCharCode(8225);
break;case"bull":ch=String.fromCharCode(8226);break;case"hellip":ch=String.fromCharCode(8230);
break;case"permil":ch=String.fromCharCode(8240);break;case"prime":ch=String.fromCharCode(8242);
break;case"Prime":ch=String.fromCharCode(8243);break;case"lsaquo":ch=String.fromCharCode(8249);
break;case"rsaquo":ch=String.fromCharCode(8250);break;case"oline":ch=String.fromCharCode(8254);
break;case"frasl":ch=String.fromCharCode(8260);break;case"euro":ch=String.fromCharCode(8364);
break;case"image":ch=String.fromCharCode(8465);break;case"weierp":ch=String.fromCharCode(8472);
break;case"real":ch=String.fromCharCode(8476);break;case"trade":ch=String.fromCharCode(8482);
break;case"alefsym":ch=String.fromCharCode(8501);break;case"larr":ch=String.fromCharCode(8592);
break;case"uarr":ch=String.fromCharCode(8593);break;case"rarr":ch=String.fromCharCode(8594);
break;case"darr":ch=String.fromCharCode(8595);break;case"harr":ch=String.fromCharCode(8596);
break;case"crarr":ch=String.fromCharCode(8629);break;case"lArr":ch=String.fromCharCode(8656);
break;case"uArr":ch=String.fromCharCode(8657);break;case"rArr":ch=String.fromCharCode(8658);
break;case"dArr":ch=String.fromCharCode(8659);break;case"hArr":ch=String.fromCharCode(8660);
break;case"forall":ch=String.fromCharCode(8704);break;case"part":ch=String.fromCharCode(8706);
break;case"exist":ch=String.fromCharCode(8707);break;case"empty":ch=String.fromCharCode(8709);
break;case"nabla":ch=String.fromCharCode(8711);break;case"isin":ch=String.fromCharCode(8712);
break;case"notin":ch=String.fromCharCode(8713);break;case"ni":ch=String.fromCharCode(8715);
break;case"prod":ch=String.fromCharCode(8719);break;case"sum":ch=String.fromCharCode(8721);
break;case"minus":ch=String.fromCharCode(8722);break;case"lowast":ch=String.fromCharCode(8727);
break;case"radic":ch=String.fromCharCode(8730);break;case"prop":ch=String.fromCharCode(8733);
break;case"infin":ch=String.fromCharCode(8734);break;case"ang":ch=String.fromCharCode(8736);
break;case"and":ch=String.fromCharCode(8743);break;case"or":ch=String.fromCharCode(8744);
break;case"cap":ch=String.fromCharCode(8745);break;case"cup":ch=String.fromCharCode(8746);
break;case"int":ch=String.fromCharCode(8747);break;case"there4":ch=String.fromCharCode(8756);
break;case"sim":ch=String.fromCharCode(8764);break;case"cong":ch=String.fromCharCode(8773);
break;case"asymp":ch=String.fromCharCode(8776);break;case"ne":ch=String.fromCharCode(8800);
break;case"equiv":ch=String.fromCharCode(8801);break;case"le":ch=String.fromCharCode(8804);
break;case"ge":ch=String.fromCharCode(8805);break;case"sub":ch=String.fromCharCode(8834);
break;case"sup":ch=String.fromCharCode(8835);break;case"nsub":ch=String.fromCharCode(8836);
break;case"sube":ch=String.fromCharCode(8838);break;case"supe":ch=String.fromCharCode(8839);
break;case"oplus":ch=String.fromCharCode(8853);break;case"otimes":ch=String.fromCharCode(8855);
break;case"perp":ch=String.fromCharCode(8869);break;case"sdot":ch=String.fromCharCode(8901);
break;case"lceil":ch=String.fromCharCode(8968);break;case"rceil":ch=String.fromCharCode(8969);
break;case"lfloor":ch=String.fromCharCode(8970);break;case"rfloor":ch=String.fromCharCode(8971);
break;case"lang":ch=String.fromCharCode(9001);break;case"rang":ch=String.fromCharCode(9002);
break;case"loz":ch=String.fromCharCode(9674);break;case"spades":ch=String.fromCharCode(9824);
break;case"clubs":ch=String.fromCharCode(9827);break;case"hearts":ch=String.fromCharCode(9829);
break;case"diams":ch=String.fromCharCode(9830);break;default:ch="";break;}}i=semicolonIndex;
}}out+=ch;}return out;}function Helper(){this.loadXml=function(C){var B=null;var A=navigator.userAgent;
if(A.indexOf("MSIE")>=0){B=new ActiveXObject("Microsoft.XMLDOM");B.async="false";
B.loadXML(C);}else{parser=new DOMParser();B=parser.parseFromString(C,"text/xml");
}return B;};this.postBackDone=false;this.destinationSet=false;this.lastListeIndexSelected="";
this.routinglastListeIndexSelected="";this.historyRectChanged=false;this.historyChangedEvendDone=false;
this.historyChangedEvendDoneForTabs=false;this.eventListenerDone=false;this.getRubricFromRubricString=function(){var H;
var F=$("rubricstring");var A=F.value;if(A=="!"){H="";return H;}if(A.length>0){var B=A.split("!");
if(B.length==1){var E=A.split("=");H=E[0].split("#");}else{var G=B.length;var D=false;
for(i=0,len=G;i<len;i++){if(!D){var I=B[i].match("1");if(I!=null){var C=B[i].split("=");
H=C[0].split("#");D=true;}}}}return H[0];}else{return"";}};this.getUrlPOIFromRubricString=function(A){var G;
if(A.length>0){var B=A.split("!");if(B.length==1){var E=A.split("=");return E[1];
}else{var F=B.length;for(i=0,len=F;i<len;i++){var H=B[i].match("=");if(H!=null){var C=B[i].split("=");
if(i==0){G=C[1]+"!";}else{G+=C[1]+"!";}}else{var D=B[i].split("#");if(i==0){G=D[0]+"!";
}else{G+=D[0]+"!";}}}return G;}return G[0];}else{return"";}};}var HELPER=new Helper();
function StartConfiguration(){this.stateID=1;this.layer=0;this.startTab="";this.checked="";
this.startTab="";this.startString;this.destinationString;this.start;this.destination="";
this.mode=0;this.startRectangle="";if(typeof g_StartConfiguration=="undefined"||g_StartConfiguration==null){return;
}var D=g_StartConfiguration.split("^");var A=D[0].split("#");this.startRectangle=D[1];
this.stateID=parseInt(A[0]);this.layer=parseInt(A[1]);this.mode=parseInt(A[2]);this.startTab=A[3];
this.checked=A[4].split("|");if(A[5]!=""){A[5]=decodeURI(A[5]);var C=A[5].split("|");
switch(C.length){case 3:this.startString="||"+A[5]+"|||False";break;case 12:this.startString=A[5];
break;default:this.startString="||"+A[5]+"|False";break;}this.start=C[0];}if(A[6]!=""){A[6]=decodeURI(A[6]);
var C=A[6].split("|");switch(C.length){case 3:this.destinationString="||"+A[6]+"|||False";
break;case 12:this.destinationString=A[6];break;default:this.destinationString="||"+A[6]+"|False";
break;}this.destination=C[0];}var B=A[7].split("|");this.getRubric=function(E){if(!B){return"";
}var F=0;while(F<B.length){if(B[F]==E){return B[F+1];}F+=2;}};this.getGeocodeMode=function(E){switch(E){case 1:return"world";
default:return"europa";}};this.evaluateUrlKoordParams=function(){return false;};this.getSmartUnitGeocodedDestination=function(){var E=this.destinationString.split("|");
var G={x:parseFloat(E[3]),y:parseFloat(E[4])};sm1=AMAMAPS.AMAMercator_2_SmartUnits(G);
if(E[5]!=""&&E[6]!=""){var F={x:parseFloat(E[5]),y:parseFloat(E[5])};sm2=AMAMAPS.AMAMercator_2_SmartUnits(F);
return E[0]+"|"+E[1]+"|"+E[2]+sm1.x+"|"+sm1.y+"|"+sm2.x+"|"+sm2.y+"|False";}return E[0]+"|"+E[1]+"|"+E[2]+"|"+sm1.x+"|"+sm1.y+"|||False";
};}var startConfig=new StartConfiguration();var jx={getHTTPObject:function(){var B=false;
if(typeof ActiveXObject!="undefined"){try{B=new ActiveXObject("Msxml2.XMLHTTP");}catch(A){try{B=new ActiveXObject("Microsoft.XMLHTTP");
}catch(C){B=false;}}}else{if(window.XMLHttpRequest){try{B=new XMLHttpRequest();}catch(A){B=false;
}}}return B;},load:function(url,callback,error,format,method,opt){var http=this.init();
if(!http||!url){return;}if(http.overrideMimeType){http.overrideMimeType("text/xml");
}if(!method){method="GET";}if(!format){format="text";}if(!opt){opt={};}format=format.toLowerCase();
method=method.toUpperCase();var now="uid="+new Date().getTime();url+=(url.indexOf("?")+1)?"&":"?";
url+=now;var parameters=null;if(method=="POST"){var parts=url.split("?");url=parts[0];
parameters=parts[1];}http.open(method,url,true);if(method=="POST"){http.setRequestHeader("Content-type","application/x-www-form-urlencoded");
http.setRequestHeader("Content-length",parameters.length);http.setRequestHeader("Connection","close");
}var ths=this;if(opt.handler){http.onreadystatechange=function(){opt.handler(http);
};}else{http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var result="";
if(http.responseText){result=http.responseText;}if(format.charAt(0)=="j"){result=result.replace(/[\n\r]/g,"");
result=eval("("+result+")");}else{if(format.charAt(0)=="x"){result=http.responseXML;
}}if(callback){callback(result);}}else{if(opt.loadingIndicator){document.getElementsByTagName("body")[0].removeChild(opt.loadingIndicator);
}if(opt.loading){document.getElementById(opt.loading).style.display="none";}if(error){error(http.status);
}}}};}http.send(parameters);},bind:function(C){var B={"url":"","onSuccess":false,"onError":false,"format":"text","method":"GET","update":"","loading":"","loadingIndicator":""};
for(var D in B){if(C[D]){B[D]=C[D];}}if(!B.url){return;}var A=false;if(B.loadingIndicator){A=document.createElement("div");
A.setAttribute("style","position:absolute;top:0px;left:0px;");A.setAttribute("class","loading-indicator");
A.innerHTML=B.loadingIndicator;document.getElementsByTagName("body")[0].appendChild(A);
this.opt.loadingIndicator=A;}if(B.loading){document.getElementById(B.loading).style.display="block";
}this.load(B.url,function(E){if(B.onSuccess){B.onSuccess(E);}if(B.update){document.getElementById(B.update).innerHTML=E;
}if(A){document.getElementsByTagName("body")[0].removeChild(A);}if(B.loading){document.getElementById(B.loading).style.display="none";
}},B.onError,B.format,B.method,B);},init:function(){return this.getHTTPObject();}};
if(typeof g_PTVBackgroundServerUrl1=="undefined"||g_PTVBackgroundServerUrl1==""){var g_PTVBackgroundServerUrl1=null;
}if(typeof g_PTVBackgroundServerUrl2=="undefined"||g_PTVBackgroundServerUrl2==""){var g_PTVBackgroundServerUrl2=null;
}if(typeof g_PTVBackgroundServerUrl3=="undefined"||g_PTVBackgroundServerUrl3==""){var g_PTVBackgroundServerUrl3=null;
}if(typeof g_PTVBackgroundServerUrl4=="undefined"||g_PTVBackgroundServerUrl4==""){var g_PTVBackgroundServerUrl4=null;
}if(typeof g_layerUrl=="undefined"||g_layerUrl==""){var g_layerUrl="";}if(typeof g_MapsWebUrl=="undefined"||g_MapsWebUrl==""){var g_MapsWebUrl="http://maps.adac.de/";
}if(typeof g_WebTrekkUrl=="undefined"||g_WebTrekkUrl==""){var g_WebTrekkUrl="http://www.adac.de/WebStatistik/Filter.aspx";
}if(typeof g_StartConfiguration=="undefined"||g_StartConfiguration==""){var g_StartConfiguration=null;
}if(typeof g_LoginPage=="undefined"||g_LoginPage==""){var g_LoginPage="https://www.adac.de/mein-adac/LoginByPartnerIFrame.aspx?partner=MapsADAC&role=1&targeturl=";
}if(typeof g_LogoutPage=="undefined"||g_LogoutPage==""){var g_LogoutPage="https://www.adac.de/default.aspx?logout=true";
}if(typeof g_RoutingMaxStation=="undefined"||g_RoutingMaxStation==""){var g_RoutingMaxStation="12";
}function GetRenderedId(A){for(loopy=0;loopy<OriginalId.length;loopy++){if(OriginalId[loopy]==A){return RenderedId[loopy];
break;}}}function presetScreen(B){if(!isPreset){return;}if(startConfig.layer==0){MAPSGUI.Tabnav.hideNav();
}else{MAPSGUI.Tabnav.showNav();MAPSGUI.Tabnav.showTab(startConfig.layer);if(startConfig.layer==2){$(GetRenderedId("Search")).focus();
}}if(startConfig.mode==1){$(GetRenderedId("Selworld2")).checked=true;}switch(startConfig.stateID){case 5:triggerGeocoding(startConfig.destination);
break;case 6:case 7:GEOCODING.setDestination(startConfig.getSmartUnitGeocodedDestination());
presetPOIs();break;case 8:setRadioButtonMap(getQueryString("map"));jQuery("#station_stop_a").val(startConfig.start);
jQuery("#station_stop_b").val(startConfig.destination);presetPOIs();break;case 9:var A=getQueryString("map");
if(A!=undefined){A=A.toUpperCase();setRadioButtonMap(A);MAPSGUI.Route.switchContinent(A);
}jQuery("#station_stop_b").val(startConfig.destination);MAPSGUI.Route.sendGeocodeRequest();
presetPOIs();break;case 10:var A=getQueryString("map");if(A!=undefined){A=A.toUpperCase();
setRadioButtonMap(A);MAPSGUI.Route.switchContinent(A);}GEOCODING.handleGeocodeResponse(startConfig.destinationString,"b","station_stop_b");
presetPOIs();break;case 11:var A=getQueryString("map");if(A!=undefined){A=A.toUpperCase();
setRadioButtonMap(A);MAPSGUI.Route.switchContinent(A);}GEOCODING.handleGeocodeResponse(startConfig.startString,"a","station_stop_a");
presetPOIs();break;case 15:var A=getQueryString("map");if(A!=undefined){A=A.toUpperCase();
setRadioButtonMap(A);MAPSGUI.Route.switchContinent(A);}var C=getQueryString("fzgtyp");
if(C!=undefined&&C.trim()!=""){jQuery("#route_options_transporting_type").val(C.toLowerCase());
}C=getQueryString("datum");if(C!=undefined&&C.trim().length==8){jQuery("#configTimeYear").val(C.substr(0,4));
jQuery("#configTimeMonth").val(C.substr(4,2));jQuery("#configTimeDay").val(C.substr(6,2));
MAPSGUI.Route.departureDateControling();}C=getQueryString("art");if(C!=undefined&&C.trim()=="1"){jQuery("#route_options_route_type").val("kuerzeste");
}C=getQueryString("maut");if(C!=undefined&&C.trim()=="1"){$("route_options_avoiding_maut").checked=true;
}C=getQueryString("vignette");if(C!=undefined&&C.trim()=="1"){$("route_options_avoiding_vignettenpflicht").checked=true;
}C=getQueryString("ab");if(C!=undefined&&C.trim()=="1"){$("route_options_avoiding_autobahn").checked=true;
}GEOCODING.handleGeocodeResponse(startConfig.startString,"a","station_stop_a");GEOCODING.handleGeocodeResponse(startConfig.destinationString,"b","station_stop_b");
presetPOIs();$("UcTabsNaviTop_UcRouting_butCalcRouting1").click();break;case 16:var A=getQueryString("map");
if(A!=undefined){A=A.toUpperCase();setRadioButtonMap(A);MAPSGUI.Route.switchContinent(A);
}jQuery("#station_stop_a").val(startConfig.start);jQuery("#station_stop_b").val(startConfig.destination);
MAPSGUI.Route.sendGeocodeRequest();presetPOIs();$("box_reset_routesearch_default").className="box-active";
$("station_stop_b").focus();break;default:presetPOIs();window.setTimeout("presetLocations()",1000);
break;}}function setRadioButtonMap(A){if(A!=undefined&&A.trim()!=""){$("continent_"+A.toLowerCase()).checked=true;
}}function presetPOIs(){var B=false;AMAMAPS.AMAgetRect();for(var A=0;A<startConfig.checked.length;
A++){var E=startConfig.getRubric(startConfig.checked[A]);if(E==null){continue;}var C=$(E);
if(!C){continue;}B=true;C.click();}if(!B){for(var A=0;A<startConfig.checked.length;
A++){var D=startConfig.getRubric(startConfig.checked[A]);if(D==null){continue;}var F=D.split("_");
if(F.length!=0){D=F[F.length-1];}var C=$("filter_"+D);if(!C){continue;}C.click();
}}}function initMapOnResponse(A,C,B,D,F){AMAMAPS.MapDivName=F;AMAMAPS.createMap(F);
var E=AMAMAPS.armap.length-1;AMAMAPS.armap[E].setAnimate(true);AMAMAPS.armap[E].setInverseWheelZoom(false);
AMAMAPS.armap[E].adjustingCenterFinished=true;AMAMAPS.armap[E].setRect(A,C,B,D);}var AMAMAPS=new AMAMaps();function AMAMaps(){this.armap;this.mapHeight;this.mapWidth;
this.MapDivName;this.AMAinit=function(A,D,G,L,J){this.MapDivName=J;this.createMap(J);
var C=this.AMAgetAJAXMapReference();if(C!=null){C.setAnimate(true);C.setInverseWheelZoom(false);
C.adjustingCenterFinished=true;if(L==null){this.AMAsetCenter(A,D);this.AMAsetZoom(G);
}else{this.AMAsetRect(A,D,G,L);}if(window.custom==null||window.custom.GlobalHoverArea==null){var E=C.getLayer("vector");
com.ptvag.webcomponent.util.EventUtils.getMouseButton=function(N){var P=com.ptvag.webcomponent.util.EventUtils;
if(qxp.sys.Client.getInstance().isMshtml()){var O=N.buttons;if(O){if(O&P.MOUSE_BUTTON_LEFT){return P.MOUSE_BUTTON_LEFT;
}if(O&P.MOUSE_BUTTON_RIGHT){return P.MOUSE_BUTTON_RIGHT;}if(O&P.MOUSE_BUTTON_MIDDLE){return P.MOUSE_BUTTON_MIDDLE;
}return -1;}return N.button;}switch(N.which){case 0:return 0;case 1:return P.MOUSE_BUTTON_LEFT;
case 2:return P.MOUSE_BUTTON_MIDDLE;case 3:return P.MOUSE_BUTTON_RIGHT;default:return -1;
}};qxp.OO.defineClass("custom.GlobalHoverArea",com.ptvag.webcomponent.map.vector.HoverArea,function(){var N=this;
com.ptvag.webcomponent.map.vector.HoverArea.apply(N,arguments);N.origGetSquareDistance=N.getSquareDistance;
N.getSquareDistance=function(){return -1;};});var I=null;var B=[];var K={};var H=E.addElement;
E.addElement=function(O){var N=H.apply(E,arguments);if(O instanceof custom.GlobalHoverArea){B.push(O);
K[N]=O;}return N;};var F=E.removeElement;E.removeElement=function(Q){F.apply(E,arguments);
var N=K[Q];if(N!=null){delete K[Q];var O=B.length;for(var P=0;P<O;++P){if(B[P]==N){B.splice(P,1);
break;}}}};var M=E.onMouseHover;E.onMouseHover=function(Q){if(I!=null){if(I.testUnhover(Q)){I.onUnhover(Q);
I=null;}}var P=B.length;var N=-1;var S=null;for(var R=0;R<P;++R){var O=B[R];var T=O.origGetSquareDistance(Q);
if(T!=-1){if(N==-1||T<N){S=O;N=T;}}}if(S!=null){if(I!=S){if(I!=null){I.onUnhover(Q);
}I=S;I.onHover(Q);}}return M.apply(E,arguments);};}return C;}};this.AMAallowMouseWheel=function(A,C){var B=this.AMAgetAJAXMapReference();
if(B!=null){B.setAllowMouseWheelZoom(C);}};this.createMap=function(B){var C="single";
var D=com.ptvag.webcomponent.map.CoordUtil;D.ZOOM_LEVEL_FACTOR=1.65;D.ZOOM_LOG_LEVEL_FACTOR=Math.log(D.ZOOM_LEVEL_FACTOR);
D.TILE_WIDTHS=[];for(var F=0;F<D.ZOOM_LEVEL_COUNT;++F){D.TILE_WIDTHS.push(D.getTileWidth(F));
}com.ptvag.webcomponent.map.RequestBuilder.SERVER1=g_PTVBackgroundServerUrl1;com.ptvag.webcomponent.map.RequestBuilder.SERVER2=g_PTVBackgroundServerUrl2;
com.ptvag.webcomponent.map.RequestBuilder.SERVER3=g_PTVBackgroundServerUrl3;com.ptvag.webcomponent.map.RequestBuilder.SERVER4=g_PTVBackgroundServerUrl4;
this.armap=[];var A=new adac.Map(document.getElementById(B));var E=this.armap.length;
this.armap[E]=A;this.armap[E].MapDivName=B;this.armap[E].setZoom(10000);return this.armap[E];
};this.AMAgetAJAXMapReference=function(){if(typeof(this.armap)!=="undefined"){for(var A=0;
A<this.armap.length;A++){if(this.armap[A].MapDivName==this.MapDivName){return this.armap[A];
}}}else{return null;}};this.AMAdestroy=function(){var A=this.AMAgetAJAXMapReference();
if(A!=null){A.dispose();A=null;}};this.AMARemoveToolbarElement=function(C){var A=this.AMAgetAJAXMapReference();
if(A!=null){var B=A.getLayer("toolbar");B.removeElement(C);}};this.AMARemoveOptionsMenue=function(){var B=this.AMAgetAJAXMapReference();
if(B!=null){var E=B.getLayer("adac_options");if(E!=null){B.removeLayer("adac_options");
var C=B.getLayer("toolbar");var A=B.getLayer("adac_mapsettings");if(A!=null){var D=A.getComputedAreaWidth();
A.setAreaRight(46);C.setAreaRight(46+D+1);}else{C.setAreaRight(46);}}}};this.AMARemoveMapMenue=function(){var B=this.AMAgetAJAXMapReference();
if(B!=null){var C=B.getLayer("adac_mapsettings");if(C!=null){B.removeLayer("adac_mapsettings");
var D=B.getLayer("toolbar");var E=B.getLayer("adac_options");if(E!=null){var A=E.getComputedAreaWidth();
E.setAreaRight(46);D.setAreaRight(46+A+1);}else{D.setAreaRight(46);}}}};this.AMAMercator_2_SmartUnits=function(A){var B=com.ptvag.webcomponent.map.CoordUtil.mercator2SmartUnit(A);
return B;};this.AMASmartUnits_2_Mercator=function(B){var A=com.ptvag.webcomponent.map.CoordUtil.smartUnit2Mercator(B);
return A;};this.AMAGeodecimal_2_SmartUnits=function(B){var A=com.ptvag.webcomponent.map.CoordUtil.geoDecimal2SmartUnit(B);
return B;};this.AMASmartUnits_2_Geodecimal=function(B){var A=com.ptvag.webcomponent.map.CoordUtil.smartUnit2GeoDecimal(B);
return A;};this.AMASmartUnits_2_Pixel=function(A,B){var C=this.AMAgetAJAXMapReference();
if(C!=null){return com.ptvag.webcomponent.map.CoordUtil.smartUnit2Pixel({x:A,y:B},C.getZoom());
}};this.AMAsetRect=function(A,D,C,E,B){var F=this.AMAgetAJAXMapReference();if(F!=null){F.setRect(A,D,C,E);
}};this.AMAgetRect=function(D){var F=this.AMAgetAJAXMapReference();if(F!=null){var H=F.getRect();
var A=document.getElementById("SmartKoord");A.value=H.left+"|"+H.top+"|"+H.right+"|"+H.bottom;
var I={x:H.left,y:H.top};var B={x:H.right,y:H.bottom};var G=this.AMASmartUnits_2_Mercator(I);
var C=this.AMASmartUnits_2_Mercator(B);var E=document.getElementById("MercatorKoord");
E.value=G.x+"|"+G.y+"|"+C.x+"|"+C.y;}};this.AMAsetCenter=function(A,C){var B=this.AMAgetAJAXMapReference();
if(B!=null){B.setCenter({x:A,y:C});}};this.AMAsetZoom=function(A){var B=this.AMAgetAJAXMapReference();
if(B!=null){B.setZoom(parseInt(A));}};this.SetMapProfile=function(B){var D=this.AMAgetAJAXMapReference();
var C=document.getElementById("IsUmweltzoneSelected");if(C!=null&&C!="undefined"){C=$("IsUmweltzoneSelected").value;
}else{C="";}if(D!=null){if(C=="true"){if(B!=null&&B!="undefined"){var A=B+"_UWZ";
D.setProfileGroup(A);}else{D.setProfileGroup("default_UWZ");var E=navigator.userAgent;
if(E.indexOf("MSIE 6.0")>=0){D.setProfileGroup("default_UWZ");}}}else{D.setProfileGroup(B);
}}WEBTREKK.writeKartenprofilechange(B);};this.aMAHandleResizeRunning=false;this.AMAhandleResize=function(C){if(this.aMAHandleResizeRunning){return;
}this.aMAHandleResizeRunning=true;statusupdown="";offsetWidth=MAPSGUI.getOffsetWidth();
if(document.getElementById("mappos")!=null){mappos=document.getElementById("mappos").value;
if(mappos==1){offsetHeight=spacemapClosedStart;}else{if(mappos==2){offsetHeight=spacemapOpenStart;
}else{if(mappos==3){offsetHeight=spacemapClosed;}else{if(mappos==4){offsetHeight=spacemapOpen;
}else{if(mappos==5){offsetHeight=10;offsetWidth+=150;}}}}}this.mapHeight=document.getHeight()-offsetHeight;
this.mapWidth=document.getWidth()-offsetWidth;presserTop=this.mapHeight-5;presserLeft=Math.round((this.mapWidth/2)-20);
var B=document.getElementById(C);B.style.height=this.mapHeight+"px";B.style.width=this.mapWidth+"px";
if(B.children){B.children[0].style.height=this.mapHeight+"px";B.children[0].style.height="100%";
}var A=this.AMAgetAJAXMapReference();if(A==null){this.aMAHandleResizeRunning=false;
return;}A.updateSize();}this.aMAHandleResizeRunning=false;};this.setMenuVisible=function(A,F,G,E){if(E!=null){G=E;
}var B=A.getParentElement().getElementsByTagName("img")[0];if(!B.id){B=null;}if(G){F.setEnabled(true);
A.setAreaOpacity(1);var H=F.getParentElement().getElementsByTagName("input");var D=this.AMAgetAJAXMapReference();
if(D!=null){var C=D.getProfileGroup();if(C!=null&&C!="undefined"){if(C.indexOf("UWZ")>0){C=C.replace(/_UWZ/,"");
}if(C==="default"){H[0].checked=true;}if(C==="terrain"){H[1].checked=true;}if(C==="lessdetail"){H[2].checked=true;
}}else{H[0].checked=true;}}if(B){B.src=g_MapsWebUrl+"images/mapsicons/pfeil_hoch.gif";
}}else{F.setEnabled(false);A.setAreaOpacity(A.getBlendingOpacityOver());if(B){B.src=g_MapsWebUrl+"images/mapsicons/pfeil_runter.gif";
}}};this.restartHideTimer=function(){if(AMAMAPS.hideTimer!=null){window.clearTimeout(AMAMAPS.hideTimer);
}AMAMAPS.hideTimer=window.setTimeout(function(){if(AMAMAPS.hideTimer==null){return;
}AMAMAPS.hideTimer=null;if(AMAMAPS.currentMenu!=null){AMAMAPS.showCardOptionen(AMAMAPS.currentMenu,false);
}},1500);};this.showCardOptionen=function(D,G){AMAMAPS.currentMenu=D;if(AMAMAPS.hideTimer){window.clearTimeout(AMAMAPS.hideTimer);
AMAMAPS.hideTimer=null;}var F=this.AMAgetAJAXMapReference();if(F!=null){var K=F.getLayer("adac_options");
var E=F.getLayer("adac_optionsmenu");var J=F.getLayer("adac_mapsettings");var H=F.getLayer("adac_mapsettingsmenu");
var I=F.getLayer("toolbar");var C=F.getLayer("adac_measurementdisplay");var A=F.getLayer("adac_measurement");
if(D==="optionen"){F.removeLayer("adac_contextmenu");if(document.getElementById("ReisezielLayerZoomCoords")!=null){A.setEnabled(false);
this.setMenuVisible(I,C,false);I.setButtonPressed("measurement",false);}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,false);
}if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,!E.getEnabled(),G);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){CloseShortInfo();hideLayer("clusterlayer");
}}else{if(D==="card"){F.removeLayer("adac_contextmenu");if(document.getElementById("ReisezielLayerZoomCoords")!=null){A.setEnabled(false);
this.setMenuVisible(I,C,false);I.setButtonPressed("measurement",false);}if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,false);
}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,!H.getEnabled(),G);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){CloseShortInfo();hideLayer("clusterlayer");
}}else{if(D=="measurement"){F.removeLayer("adac_contextmenu");if(document.getElementById("ReisezielLayerZoomCoords")!=null){var B=!A.getEnabled();
A.setEnabled(B);this.setMenuVisible(I,C,B);I.setButtonPressed("measurement",B);}if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,false);
}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,false);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){hideLayer("clusterlayer");
CloseShortInfo();}}else{if(D=="contextmenu"){F.removeLayer("adac_contextmenu");if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,false,G);
}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,false);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){hideLayer("clusterlayer");
}}else{if(D=="reset"){F.removeLayer("adac_contextmenu");if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,false);
}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,false);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){CloseShortInfo();hideLayer("clusterlayer");
}}else{if(D=="resetall"){F.removeLayer("adac_contextmenu");if(document.getElementById("ReisezielLayerZoomCoords")!=null){A.setEnabled(false);
this.setMenuVisible(I,C,false);I.setButtonPressed("measurement",false);}if(K!=null&&K!="undefined"&&E!=null&&E!="undefined"){this.setMenuVisible(K,E,false);
}if(J!=null&&J!="undefined"&&H!=null&&H!="undefined"){this.setMenuVisible(J,H,false);
}if(document.getElementById("ReisezielLayerZoomCoords")!=null){hideLayer("clusterlayer");
}}}}}}}}};}var lastActiveInfoBox;var TabLoaded="";var poiHoverAreas=[];var poiData=[];var activePOI;
var hoverOverPOI=function(D){var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){var E=parseInt(D.id);
var C=poiData[E];B.setCursor("hand");var F=C.description.startsWith("62|");if(F==true){if(C.description.indexOf("#")>-1){C.description=C.description.substr(0,C.description.indexOf("#")-1);
}if(activePOI!=C.description){showPOIOnMap(C);activePOI=C.description;F=null;}}var A=C.description.startsWith("109|");
if(A==true){if(C.description.indexOf("#")>-1){C.description=C.description.substr(0,C.description.indexOf("#")-1);
}if(activePOI!=C.description){showPOIOnMap(C);activePOI=C.description;A=null;}}}};
var hoverFinished=function(A){var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){B.setCursor(null);
}};function showPOIOnMap(W){var Z=AMAMAPS.armap[AMAMAPS.armap.length-1].getServerDrawnObjectManager();
Z.setDefaultStaticPOITooltips(false);var T=AMAMAPS.AMAgetAJAXMapReference();if(T!=null){var O=T.getLayer("vector");
O.hideElement(lastActiveInfoBox);}MAPSGUI.Tabnav.hideNav();AMAMAPS.showCardOptionen("reset");
var K,R;var H;var U=true;var M=false;var L=false;if(W.origin.indexOf("visegmente")==0){L=true;
}try{var N=W.x;var J=W.y;var Y=T.getZoom();if(W.description.indexOf("[Touren]")>=0){var R=W.description.split("#");
K=R[1].substr(0,R[1].length-8);var E=T.getController();var D=E.getLastMousePositon();
var a=T.getVisibleZoom();var f=com.ptvag.webcomponent.map.CoordUtil.smartUnit2Pixel(T.getVisibleCenter(),a);
var b={x:f.x+D.x-T.getWidth()/2,y:f.y-(D.y-T.getHeight()/2)};var P=com.ptvag.webcomponent.map.CoordUtil.pixel2SmartUnit(b,a);
W.x=P.x;W.y=P.y;U=false;}else{$("TourId").value="";if((W.description.indexOf("#")>=0)&&!L){var R=W.description.split("#");
if(R[0].indexOf("~")>=0){var I=R[0].split("~");var V=I[0].indexOf("(");var B=I[0].substr(V+1,I[0].length-V-2);
if(B.indexOf("|")>0){var g=B.split("|");K=B+"~"+g[1];U=false;}else{if(B>10){U=false;
if(B>1000){M=true;}}K=W.description;}}else{H=R[0].split(";");var G;var S=H.length;
for(var Q=0;Q<H.length;++Q){G=H[Q].split("|");if(G[1]>10){U=false;if(G[1]>1000){M=true;
}}}K=R[1]+R[2];}}else{K=W.description;if(L){K=K.substring(2);}extractTourIdIfContained(W.description);
U=false;}}}catch(X){K="Error";}if(U){var C=$(GetRenderedId("HfClusterclickText"));
C.value=K;var C=$("HfClickText");C.value="";drawPOILayer("AjaxKarteDiv");var d=$(GetRenderedId("ButGetClusterInfo"));
if(d!=null){var A=d.name;__doPostBack(A,"");}}else{var c=$("HfPinX");var F=$("HfPinY");
c.value=W.x;F.value=W.y;var C=$("HfClickText");C.value=K+"!"+N+"!"+J+"!"+Y+"!"+M;
drawPOILayer("AjaxKarteDiv");var d=$(GetRenderedId("ButGetShortInfo"));if(d!=null){var A=d.name;
__doPostBack(A,"");}}}function extractTourIdIfContained(C){var E=C.indexOf("62|");
if(E===0){var D=C.split("|");var B=D[1].split("$");if(B.length>1){$("TourId").value=B[1];
}else{$("TourId").value=B[0];}}var A=C.indexOf("109|");if(A===0){var D=C.split("|");
var B=D[1].split("$");if(B.length>1){$("TourId").value=B[1];}else{$("TourId").value=B[0];
}}}function historyChanged(){var H=AMAMAPS.armap[0].getRect();GetMapKeyByRect(H.left,H.top,H.right,H.bottom);
TabLoaded="";HELPER.eventListenerDone=false;var G=HELPER.getRubricFromRubricString();
if(G!=""){if(arrayContains(G,MAPSGUI.withoutTable)===false){var C=$get("SmartKoord");
var D=C.value;var A=AMAMAPS.armap[0].getRect();var F=A.left+"|"+A.top+"|"+A.right+"|"+A.bottom;
if(D!=""){if(D!=F){HELPER.historyRectChanged=true;HELPER.LastListeIndexSelected="";
C.value=A.left+"|"+A.top+"|"+A.right+"|"+A.bottom;if(!HELPER.postBackDone&&MAPSGUI.Routecalculating!=true){var E=$get(GetRenderedId("tabdiv_"+G));
if(E!=null){var B=E.name;__doPostBack(B,G);HELPER.postBackDone=true;HELPER.historyChangedEvendDone=true;
}}else{HELPER.postBackDone=false;}}}}}WEBTREKK.writeKarteBewegung();}function eventListener(P){var H=$get(GetRenderedId("Action"));
GEOCODING.checkShowAllLink();var D=document.getElementById("MoveStatisticKoord");
var F=AMAMAPS.AMAgetAJAXMapReference();if(F!=null){var J=F.getLayer("vector");var K=poiHoverAreas.length;
for(var S=0;S<K;++S){J.removeElement(poiHoverAreas[S].getId());}poiHoverAreas=[];
poiData=[];if(!MAPSGUI.listTabClosed){if(P!=null){var R=P.getData();K=R.length;for(var S=0;
S<K;++S){var T=R[S];var Q=S+"_serverpoi";poiHoverAreas[S]=new custom.GlobalHoverArea(T.x,T.y,null,16,hoverOverPOI,hoverFinished,null,Q);
J.addElement(poiHoverAreas[S]);poiData[S]=T;}}}if(MAPSGUI.refreshActiveTab!=true){MAPSGUI.refreshActiveTab=true;
return;}var N=D.value;var L=F.getRect();var B=L.left+"|"+L.top+"|"+L.right+"|"+L.bottom;
D.value=L.left+"|"+L.top+"|"+L.right+"|"+L.bottom;var M=HELPER.rubricOld;var U=$get("rubricstring").value;
var C=HELPER.getRubricFromRubricString();if(C!=""){var O=$get("SmartKoord");var E=O.value;
var G=F.getRect();var V=G.left+"|"+G.top+"|"+G.right+"|"+G.bottom;if(!HELPER.historyChangedEvendDone||HELPER.destinationSet){if(!HELPER.eventListenerDone||MAPSGUI.switchtab){if(!HELPER.postBackDone||MAPSGUI.switchtab){HELPER.postBackDone=false;
if(MAPSGUI.tableResultsClosedManually===false){if(MAPSGUI.listTabClosed){if(arrayContains(C,MAPSGUI.withoutTable)!==true){if(C==="route"){$("pnl_tabdiv_route").style.display="block";
}else{postbackeventlistener(C,V);var I="pnl_tabdiv_"+C;if(I!="pnl_tabdiv_"){var A=$(I);
A.style.cssText="DISPLAY:block";}}}MAPSGUI.listTabClosed=false;return;}O.value=G.left+"|"+G.top+"|"+G.right+"|"+G.bottom;
postbackeventlistener(C,V);}}}if(GEOCODING.destination==""){HELPER.destinationSet=false;
}}}HELPER.historyChangedEvendDone=false;}}function postbackeventlistener(A,B){var D=$(GetRenderedId("tabdiv_"+A));
if(D!=null){var C=D.name;if(HELPER.destinationSet){__doPostBack(C,A+"|Destination=true");
HELPER.historyChangedEvendDone=false;HELPER.destinationSet=false;}else{$("SmartKoord").value=B;
__doPostBack(C,A);}MAPSGUI.switchtab=false;HELPER.eventListenerDone=true;MAPSGUI.Navi[A].listLoaded=true;
TabLoaded+=A+";";}}function ListTabClick(){var F=AMAMAPS.AMAgetAJAXMapReference();
if(F!=null){var I=HELPER.getRubricFromRubricString();if(I!=""){var D=$get("SmartKoord");
var C=D.value;var A=F.getRect();var H=A.left+"|"+A.top+"|"+A.right+"|"+A.bottom;if(TabLoaded.match(I)&&MAPSGUI.listTabClicked&&MAPSGUI.Navi[I].listLoaded){MAPSGUI.listTabClicked=false;
HELPER.historyRectChanged=false;HELPER.historyChangedEvendDone=true;}else{if(arrayContains(I,MAPSGUI.withoutTable)!==true){if(I==="route"){$("pnl_tabdiv_route").style.cssText="DISPLAY:block";
}else{var B="pnl_tabdiv_"+I;if(B!="pnl_tabdiv_"){var E=$(B);E.style.cssText="DISPLAY:none";
}}}var G;eventListener(G);if(MAPSGUI.isOpen(I)&&TabLoaded.match(I)){HELPER.historyRectChanged=false;
}}}else{MAPSGUI.listTabClosed=false;}}}function SetLogicalMap(A){AMAMAPS.armap[0].setBackendServer(A);
}function GetMapKeyByRect(B,A,F,C){var D=F+((B-F)/2),E=C+((A-C)/2);if(isInEurope(D,E)){if(isInEurope(B,A)||isInEurope(F,C)){SetLogicalMap("EU");
}else{if(isInNAM(D,E)){if(isInNAM(B,A)||isInNAM(F,C)){SetLogicalMap("NAM");}}else{SetLogicalMap("WORLD");
}}}else{if(isInNAM(D,E)){if(isInNAM(B,A)||isInNAM(F,C)){SetLogicalMap("NAM");}else{SetLogicalMap("WORLD");
}}else{SetLogicalMap("WORLD");}}}function isInNAM(E,F){var C=73831.5025828439,A=6232591.26830036,D=4215184.18753937,B=2946155.33375928;
if((C<E)&&(A>F)&&(B>E)&&(D<F)){return true;}else{return false;}}function isInEurope(B,C){var F=3905129.22212423;
var E=6558840.0403805;var D=5151326.77787577;var A=5021440.9596195;if((F<B)&&(E>C)&&(D>B)&&(A<C)){if(!isInAfrika(B,C)){return true;
}else{return false;}}else{return false;}}function isInAfrika(G,H){var D=4152022.22212423;
var E=5100320.22212423;var B=4430873.22212423;var C=4891311.22212423;var A=3509811.22212423;
var I=5053840.22212423;var J=4162022.22212423;var F=5002797.22212423;if((D<G)&&(E>H)&&(B>G)&&(C<H)){return true;
}if((A<G)&&(I>H)&&(J>G)&&(F<H)){return true;}return false;}function MapsADACInit(J,A,F,G,D){AMAMAPS.AMAhandleResize(D);
AMAMAPS.AMAinit(J,A,F,G,D);var E=AMAMAPS.AMAgetAJAXMapReference();$(GetRenderedId("hfDestinationKey")).value="";
var C=$(GetRenderedId("ButDestinationSet"));__doPostBack(C.name,HELPER.getRubricFromRubricString());
if(E!=null){var I=E.getServerDrawnObjectManager();I.setClickTolerance(16);I.setHoverTolerance(16);
I.addEventListener(com.ptvag.webcomponent.map.ServerDrawnObjectManager.STATIC_POIS_AVAILABLE,eventListener);
I.addEventListener(com.ptvag.webcomponent.map.ServerDrawnObjectManager.STATIC_POI_CLICKED,clickOnPOIOnMap);
E.addEventListener("historyChanged",historyChanged);E.addEventListener("changeVisibleCenter",generalClickHandler);
var B=com.ptvag.webcomponent.map;I.setStaticPOIFormatter(function(O){var K=O;if(K.indexOf("#")>=0){var N=K.split("#");
if(N[0].indexOf("~")>=0){K=N[0];}else{K=N[1];}}if(K.indexOf("[")>=0){if(K.indexOf("[Wetter]")==0){var M=K.split("!");
K=M[2];}else{K=K.substr(0,K.indexOf("["));}}var P=K.split("|");K=P[P.length-1];if(K.indexOf("~")>=0){var L=K.split("~");
K=L[0];}K=noHTML(K);return"<b>"+K+"</b>";});var H=E.getLayer("vector");H.addClickArea(null,null,null,null,generalClickHandler);
H.onMouseDblClick=function(K){var M=(K.srcElement?K.srcElement:K.target);var L=false;
while(M){L=M._ignoreMouseDown;if(L){break;}M=M.parentNode;}return(L?true:false);};
AMAMAPS.AMAallowMouseWheel("container",false);}}function noHTML(A){A=A.replace(/&amp;/g,"&");
A=A.replace(/&apos;/g,"'");return A;}function AMAdrawPOILayer(A,K,D,H){if(D!=null){var B=document.getElementById("MapHeight");
var E=document.getElementById("MapHeightOldValue");var G=document.getElementById("MapWidth");
var L=document.getElementById("MapWidthOldValue");var C=D.getRectInPixel();var J=C.bottom-C.top;
var I=C.right-C.left;B.value=J;E.value=J;G.value=I;L.value=I;var M="&Height="+B.value+"&Width="+G.value+"@@@bbox=COORDWIN&mapSize=IMGSIZE";
var F=g_layerUrl+"?caller=MAPS&POITypes="+A+M;H.addPOICategory("xmapLayers",F);D.setAllowMouseWheelZoom(false);
}}function AMAhidePOILayer(A,K,D,E){if(D!=null){var C=D.getRectInPixel();var J=C.bottom-C.top;
var I=C.right-C.left;var B=document.getElementById("MapHeight");var H=document.getElementById("MapHeightOldValue");
var F=document.getElementById("MapWidth");var L=document.getElementById("MapWidthOldValue");
B.value=J;F.value=I;var M="&Height="+H.value+"&Width="+L.value+"@@@bbox=COORDWIN&mapSize=IMGSIZE";
var G=g_layerUrl+"?caller=MAPS&POITypes="+A+M;E.removePOICategory("xmapLayers",G);
L.value=I;H.value=J;D.setAllowMouseWheelZoom(true);}}function drawPOILayer(D){var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){var I=E.getServerDrawnObjectManager();var J=E.getController();J.setActiveLayer(E.getLayer("label"));
var C=document.getElementById("rubricstringOldValue");var G=C.value;if(G.length>0){var B=G.split("&RouteId=");
var F=B[0].split("&TourId=");if(F[0].length>1){G=F[0];}else{G="";}if(G.match("=")){G=HELPER.getUrlPOIFromRubricString(G);
}G=G.replace(/0=/g,"1=");G=G.replace(/#/g,"!");G=G.replace(/:/g,"!");G=G.replace(/=/g,"!");
if(F.length>1){G=G+"&TourId="+F[1];}if(B.length>1){G=G+"&RouteId="+B[1];}AMAhidePOILayer(G,D,E,I);
}var A=$("rubricstring").value;C.value=A;var H=$("corridor_rubricstring").value;if(A.match("=")){A=HELPER.getUrlPOIFromRubricString(A);
}A=A.replace(/0=/g,"1=");A=A.replace(/#/g,"!");A=A.replace(/:/g,"!");A=A.replace(/=/g,"!");
if($("TourId").value!=""){A+="&TourId="+$("TourId").value;C.value=A;}if($("RouteId").value!=""){A+="&RouteId="+$("RouteId").value+"&ShowRouteStationFlags=true&ShowRouteStationNames=true&CorridorLayersMaps="+H.replace("&corridor!","").replace(/#/g,"~").replace(/:/g,"~");
C.value=A;}AMAdrawPOILayer(A,D,E,I);J.setActiveLayer(null);if(!isPreset){E.getLayer("label").onViewChanged({clipRectChanged:true});
}handleDestinationAndResetBox();}}function hidePOILayer(D){var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){var J=E.getServerDrawnObjectManager();var K=E.getController();K.setActiveLayer(E.getLayer("label"));
var C=document.getElementById("rubricstringOldValue");var H=C.value;if(H.length>0){var B=H.split("&RouteId=");
var F=B[0].split("&TourId=");if(F[0].length>1){H=F[0];}else{H="";}if(H.match("=")){H=HELPER.getUrlPOIFromRubricString(H);
}H=H.replace(/0=/g,"1=");H=H.replace(/#/g,"!");H=H.replace(/:/g,"!");H=H.replace(/=/g,"!");
if(F.length>1){H=H+"&TourId="+F[1];}if(B.length>1){H=H+"&RouteId="+B[1];}AMAhidePOILayer(H,D,E,J);
}var A=document.getElementById("rubricstring");var I=A.value;var G=$("corridor_rubricstring").value;
if(I.length>0){C.value=I;if(I.match("=")){I=HELPER.getUrlPOIFromRubricString(I);}I=I.replace(/0=/g,"1=");
I=I.replace(/#/g,"!");I=I.replace(/:/g,"!");I=I.replace(/=/g,"!");if($("RouteId").value!=""){I+="&RouteId="+$("RouteId").value+"&ShowRouteStationFlags=true&ShowRouteStationNames=true&CorridorLayersMaps="+G.replace("&corridor!","").replace(/#/g,"~").replace(/:/g,"~");
AMAhidePOILayer(I,D,E,J);I="&RouteId="+$("RouteId").value+"&ShowRouteStationFlags=true&ShowRouteStationNames=true&CorridorLayersMaps="+G.replace("&corridor!","").replace(/#/g,"~").replace(/:/g,"~");
C.value=I;AMAdrawPOILayer(I,D,E,J);}else{if($("TourId").value!=""){I+="&TourId="+$("TourId").value;
AMAhidePOILayer(I,D,E,J);I="&TourId="+$("TourId").value;C.value=I;AMAdrawPOILayer(I,D,E,J);
}else{AMAhidePOILayer(I,D,E,J);}}}else{if($("RouteId").value!=""){I+="&RouteId="+$("RouteId").value+"&ShowRouteStationFlags=true&ShowRouteStationNames=true&CorridorLayersMaps="+G.replace("&corridor!","").replace(/#/g,"~").replace(/:/g,"~");
AMAhidePOILayer(I,D,E,J);I="&RouteId="+$("RouteId").value+"&ShowRouteStationFlags=true&ShowRouteStationNames=true&CorridorLayersMaps="+G.replace("&corridor!","").replace(/#/g,"~").replace(/:/g,"~");
C.value=I;AMAdrawPOILayer(I,D,E,J);}else{if($("TourId").value!=""){I+="&TourId="+$("TourId").value;
AMAhidePOILayer(I,D,E,J);I="&TourId="+$("TourId").value;C.value=I;AMAdrawPOILayer(I,D,E,J);
}else{AMAhidePOILayer(I,D,E,J);}}}K.setActiveLayer(null);E.getLayer("label").onViewChanged({clipRectChanged:true});
handleDestinationAndResetBox();}}function generalClickHandler(F){AMAMAPS.AMAallowMouseWheel("container",true);
var D=AMAMAPS.AMAgetAJAXMapReference();if(D!=null){var A=D.getLayer("vector");A.hideElement(lastActiveInfoBox);
var J=D.getServerDrawnObjectManager();J.setDefaultStaticPOITooltips(true);if(F.ctrlKey&&F.shiftKey){var C=AMAMAPS.AMASmartUnits_2_Mercator({x:F.clickX,y:F.clickY});
var E=Math.round(C.x)+","+Math.round(C.y);try{var H="C:\\temp";var G=new ActiveXObject("Scripting.FileSystemObject");
if(!G.FolderExists(H)){G.CreateFolder(H);}var B=G.CreateTextFile(H+"\\toikoord.dat",true);
B.WriteLine(E);B.Close();alert(E+' exported to file "'+H+'\\toikoord.dat"');}catch(I){alert(E);
}}}AMAMAPS.showCardOptionen("reset");}var setXYTextfields=function(A,B){var C=parseInt(A);
var D=parseInt(B);document.getElementById("inx").value=C;document.getElementById("iny").value=D;
};function drawIcon(K,A){var D=AMAMAPS.AMAgetAJAXMapReference();if(D!=null){var B=document.getElementById("inicon").value;
var I=document.getElementById("inx").value;var J=document.getElementById("iny").value;
var C=com.ptvag.webcomponent.map.CoordUtil;var E=C.geoDecimal2SmartUnit({x:I,y:J});
var F=D.getLayer("vector");var G=parseInt(I);var H=parseInt(J);F.showImageMarker(G,H,B,66,25000,4711);
F.showTooltip(G,H,100,50,"<a href='http://www.adac.de' target='_blank'>Test</a> <span style='color:red;font-weight:bold'>Test 2</span>",66,26000,4712);
F.addClickArea(G,H,null,null,function(L){alert("selected icon");},5);}}function showHideText(C,B,F,I,E,D){var G=AMAMAPS.AMAgetAJAXMapReference();
if(G!=null){var H=G.getLayer("vector");var A="text_"+E;if(H.elementExists(A)){H.hideElement(A);
}else{H.showText(C,B,I,12,66,F,null,A);}}}function showHideHTML(C,B,F,I,D){var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){var G=E.getLayer("vector");var A="html_"+I;if(G.elementExists(lastActiveInfoBox)){G.hideElement(lastActiveInfoBox);
}var H=new com.ptvag.webcomponent.map.vector.HTML(C,B,66,F,null,A);G.addElement(H);
}}function SetPinHtml(I,B,J,D,A){var F=AMAMAPS.AMAgetAJAXMapReference();if(F!=null){var H=F.getLayer("vector");
var E="pin_"+J;var C="ToolTip_"+J;var G="Area_"+J;if(H.elementExists(E)){H.hideElement(E);
H.hideElement(C);H.hideElement(G);}else{H.showImageMarker(I,B,"images/mapitems/fahne_gross.gif",66,25000,E);
H.showTooltip(I,B,200,50,'<a style="margin:0;padding:0" href=\'#'+refid+"'>"+J+"</a>",66,26000,C);
H.addClickArea(I,B,null,null,function(K){alert("selected icon");},5,G);}}}function ChangeListLineColor(A){gridViewCtl=null;
if(null==gridViewCtl){var B=HELPER.getRubricFromRubricString();if(B!=""){if(HELPER.LastListeIndexSelected!=""&&typeof HELPER.LastListeIndexSelected!="undefined"){var C=HELPER.LastListeIndexSelected.split("|");
if(C[0]==MAPSGUI.activeTab){if(A!=HELPER.LastListeIndexSelected){var D=document.getElementById(HELPER.LastListeIndexSelected);
if(D!=null){switch(isEven(C[2])){case true:D.style.backgroundColor="#efefef";break;
case false:D.style.backgroundColor="white";break;}}}}}HELPER.LastListeIndexSelected=A;
gridViewCtl=$(A);gridViewCtl.style.backgroundColor="#ffeda6";}}}function ListeSetPinHtml(G,L,B,F,K,J){var D=AMAMAPS.AMAgetAJAXMapReference();
if(D!=null){var I=D.getLayer("vector");I.hideElement(lastActiveInfoBox);AMAMAPS.showCardOptionen("reset");
var N=$("HfPinX");var M=$("HfPinY");N.value=G;M.value=L;var E=D.getZoom();var C=$("rubricstring").value;
C=C.replace(/0=/g,"1=");C=C.replace(/#/g,"!");C=C.replace(/:/g,"!");C=C.replace(/=/g,"!");
var H=$("HfClickText");H.value=B+"#"+G+"#"+L+"#"+E+"#"+false+"$"+J;var O=$(GetRenderedId("ButGetShortInfo"));
if(O!=null){var A=O.name;__doPostBack(A,"");}}}function isEven(A){if(A%2==0){return true;
}else{return false;}}function drawPOI(H,B,F,I,A){var C=AMAMAPS.AMAgetAJAXMapReference();
if(C!=null){var G=C.getLayer("vector");var D=AMAMAPS.AMAMercator_2_SmartUnits({x:H,y:B});
var E=new com.ptvag.webcomponent.map.vector.POI(D.x,D.y,F,66,I,null,null,A);G.addElement(E);
return E;}}function clickOnPOIOnMap(A){var B=A.getData();showPOIOnMap(B);}function CloseShortInfo(){var C=AMAMAPS.AMAgetAJAXMapReference();
if(C!=null){var B=C.getServerDrawnObjectManager();B.setDefaultStaticPOITooltips(true);
var A=C.getLayer("vector");if(A.elementExists(lastActiveInfoBox)){A.hideElement(lastActiveInfoBox);
}}}function GetDetail(H,E,J,F){var C=AMAMAPS.AMAgetAJAXMapReference();if(C!=null){var G=$("HfClickText");
var D=C.getZoom();G.value=H+"#"+E+"#"+J+"#"+D+"#"+false+"$"+F;var A=C.getLayer("vector");
A.hideElement(lastActiveInfoBox);var B=$(GetRenderedId("ButGetDetailInfo"));if(B!=null){var I=B.name;
__doPostBack(I,"");}}}function showHideInfoBox(C,B,G,H,D){var A=AMAMAPS.AMAgetAJAXMapReference();
if(A!=null){useStandardBoxes();var F=A.getLayer("vector");var J="infobox_"+H;lastActiveInfoBox=J;
var E=new com.ptvag.webcomponent.map.vector.InfoBox(C,B,G,null,null,J);E.setShowCloseWidget(D);
var I=A.getServerDrawnObjectManager();I.setDefaultStaticPOITooltips(false);E.setCloseWidgetHandler(function(L){I.setDefaultStaticPOITooltips(true);
var K=AMAMAPS.armap[0].getLayer("vector");if(K.elementExists(lastActiveInfoBox)){K.hideElement(lastActiveInfoBox);
}});F.addElement(E);}}var useStandardBoxes=function(){var A=com.ptvag.webcomponent.map.vector.InfoBoxElementFactoryDefault.getInstance();
com.ptvag.webcomponent.map.vector.InfoBoxElementFactory=A;};var useRoundBoxes=function(){var A=com.ptvag.webcomponent.map.vector.InfoBoxElementFactoryRound.getInstance();
com.ptvag.webcomponent.map.vector.InfoBoxElementFactory=A;};function hideLayer(){var A=AMAMAPS.AMAgetAJAXMapReference();
if(A!=null){A.removeLayer("adac_contextmenu");}}function closeAllInfoLayer(){hideLayer("shortinfo");
}function hidePOILayerForReset(A){hidePOILayer(A);document.getElementById("rubricstring").value="";
document.getElementById("rubricstringOldValue").value="";document.getElementById("optionsString").value="";
document.getElementById("optionsOldString").value="";document.getElementById("PreviousSelectedOption").value="";
}function handleDestinationAndResetBox(){var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){var C=navigator.userAgent;
if($("RouteId").value!=""&&GEOCODING.destination!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){showHeaderLayer();
var A=B.getLayer("adac_resetToolBarLayer");A.setAreaRight(326);A.setEnabled(true);
}else{if($("RouteId").value!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){showHeaderLayer();
var A=B.getLayer("adac_resetToolBarLayer");A.setAreaRight(326);A.setEnabled(true);
}else{if($("RouteId").value!=""&&GEOCODING.destination!=""){showHeaderLayer();var A=B.getLayer("adac_resetToolBarLayer");
A.setAreaRight(326);A.setEnabled(true);}else{if($("RouteId").value!=""){showHeaderLayer();
var A=B.getLayer("adac_resetToolBarLayer");A.setAreaRight(326);A.setEnabled(true);
}else{if(GEOCODING.destination!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){var A=B.getLayer("adac_resetToolBarLayer");
A.setAreaRight(326);A.setEnabled(true);}else{if($("rubricstring").value!=""||$("optionsString").value!=""){var A=B.getLayer("adac_resetToolBarLayer");
A.setAreaRight(326);A.setEnabled(true);$("RouteMulti").className="box-status none";
$("Route").className="box-statuss none";$("RouteShort").className="box-status none";
$("Geokodierung").className="box-status none";}else{if(GEOCODING.destination!=""){var A=B.getLayer("adac_resetToolBarLayer");
A.setAreaRight(326);A.setEnabled(true);}else{$("RouteMulti").className="box-status none";
$("Route").className="box-status none";$("RouteShort").className="box-status none";
$("Geokodierung").className="box-status none";var A=B.getLayer("adac_resetToolBarLayer");
A.setAreaRight(326);A.setEnabled(false);}}}}}}}}}function showHeaderLayer(){if(ROUTING.ReiseRoute.match("Ihre Route:")){var A=ROUTING.stations.split("|");
if(GEOCODING.destination==""){if(MAPSGUI.Route._allStops.length>3){$("RouteMulti").className="box-status clearfix";
$("RouteShort").className="box-status none";$("Route").className="box-status none";
$("Geokodierung").className="box-status none";$("RouteMultiStart").innerHTML=A[0];
$("RouteMultiZiel").innerHTML=A[MAPSGUI.Route._allStops.length-1];}else{if(MAPSGUI.Route._allStops.length==2){$("RouteMulti").className="box-status none";
$("RouteShort").className="box-status clearfix";$("Route").className="box-status none";
$("Geokodierung").className="box-status none";$("RouteShortStart").innerHTML=A[0];
$("RouteShortZiel").innerHTML=A[1];}else{$("RouteMulti").className="box-status none";
$("RouteShort").className="box-status none";$("Route").className="box-status clearfix";
$("Geokodierung").className="box-status none";$("RouteStart").innerHTML=A[0];$("RouteStation").innerHTML=A[1];
$("RouteZiel").innerHTML=A[2];}}}else{if(MAPSGUI.Route._allStops.length>3){$("RouteMulti").className="box-status clearfix";
$("RouteShort").className="box-status none";$("Route").className="box-status none";
$("Geokodierung").className="box-status clearfix";$("RouteMultiStart").innerHTML=A[0];
$("RouteMultiZiel").innerHTML=A[MAPSGUI.Route._allStops.length-1];}else{if(MAPSGUI.Route._allStops.length==2){$("RouteMulti").className="box-status none";
$("RouteShort").className="box-status clearfix";$("Route").className="box-status none";
$("Geokodierung").className="box-status clearfix";$("RouteShortStart").innerHTML=A[0];
$("RouteShortZiel").innerHTML=A[1];}else{$("RouteMulti").className="box-status none";
$("RouteShort").className="box-status none";$("Route").className="box-status clearfix";
$("Geokodierung").className="box-status clearfix";$("RouteStart").innerHTML=A[0];
$("RouteStation").innerHTML=A[1];$("RouteZiel").innerHTML=A[2];}}}}else{$("RouteMulti").className="box-status none";
$("RouteShort").className="box-status none";$("Route").className="box-status none";
$("Geokodierung").className="box-status clearfix";}}function selectAndShowResetLayer(){if($("RouteId").value!=""&&GEOCODING.destination!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){if(ROUTING.ReiseRoute.match("Ihre Route:")){MAPSGUI.showOpacityLayer("ResetRoutediv");
}else{MAPSGUI.showOpacityLayer("resetAlldiv");}}else{if($("RouteId").value!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){MAPSGUI.showOpacityLayer("ResetRoutediv");
}else{if($("RouteId").value!=""&&GEOCODING.destination!=""){if(ROUTING.ReiseRoute.match("Ihre Route:")){MAPSGUI.showOpacityLayer("ResetOnlyRoutediv");
}else{MAPSGUI.showOpacityLayer("ResetZielRoutediv");}}else{if($("RouteId").value!=""&&ROUTING.ReiseRoute.match("Ihre Route:")){MAPSGUI.showOpacityLayer("ResetOnlyRoutediv");
}else{if(GEOCODING.destination!=""&&($("rubricstring").value!=""||$("optionsString").value!="")){MAPSGUI.showOpacityLayer("ResetZieldiv");
}else{if($("rubricstring").value!=""||$("optionsString").value!=""){MAPSGUI.showOpacityLayer("resetdiv");
}else{if(GEOCODING.destination!=""){MAPSGUI.showOpacityLayer("ResetDestinationdiv");
}}}}}}}}var WEBTREKK=new Webtrekk();function Webtrekk(){this.NaviWebTrek=function(D,F,A,G){if(MAPSGUI.Routecalculating!=true){var C=g_WebTrekkUrl+"?p=212,maps."+F+"."+A+"."+D+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps."+F+"."+A+"."+D;
var B=$(D).checked;if(B===true){var E=new Image();E.src=C;}}};this.CheckboxesforPrintandGPX=function(B,A){var D=g_WebTrekkUrl+"?p=212,maps."+B+"."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps."+B+"."+A;
var C=new Image();C.src=D;};this.writeCalculateRoute=function(){var A;if(MAPSGUI.Routecalculating==true){var C=$("corridor_rubricstring").value;
C=C.replace("&corridor!","");C=C.replace(/!/g,"_Route.");if(C.length>0){A=g_WebTrekkUrl+"?p=212,maps.calculateroute."+C+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.calculateroute";
}else{A=g_WebTrekkUrl+"?p=212,maps.calculateroute&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.calculateroute";
}}else{A=g_WebTrekkUrl+"?p=212,maps.calculateroute&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.calculateroute";
}var B=new Image();B.src=A;};this.writeGeocode=function(){var B=g_WebTrekkUrl+"?p=212,maps.geocode&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.geocode";
var A=new Image();A.src=B;};this.writeDetailInfo=function(C,A){var B=g_WebTrekkUrl+"?p=212,maps.detailInfo."+C+"."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.detailInfo"+C+"."+A;
var D=new Image();D.src=B;};this.CallHrs=function(A){var B=g_WebTrekkUrl+"?p=212,maps.shortInfo.HRSHotel."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.shortInfo.HRSHotel."+A;
var C=new Image();C.src=B;};this.writeShortInfo=function(C,A){var B=g_WebTrekkUrl+"?p=212,maps.shortInfo."+C+"."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.shortInfo"+C+"."+A;
var D=new Image();D.src=B;};this.writeToursetInfo=function(B,A){var C=g_WebTrekkUrl+"?p=212,maps.toursetinfo."+B+"."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.toursetinfo"+B+"."+A;
var D=new Image();D.src=C;};this.writeUmweltzonen=function(A){var B=g_WebTrekkUrl+"?p=212,maps.umweltzonen.download."+A+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.umweltzonen.download."+A;
var C=new Image();C.src=B;};this.writeMapStart=function(C){var A;if(C==null&&C.trim()==""){A=g_WebTrekkUrl+"?p=212,maps.start&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.start";
}else{A=g_WebTrekkUrl+"?p=212,maps.start,0,0,0,0,0,"+C+",0,0&cg1=maps&cg2=start&cg3=&cp1=maps.adac.de&cp2=content&cp4=tis&cp11=N";
}var B=new Image();B.src=A;};this.writeKarteBewegung=function(){var B=g_WebTrekkUrl+"?p=212,maps.karte.move&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.move";
var A=new Image();A.src=B;};this.writeKartenprofilechange=function(B){var A=g_WebTrekkUrl+"?p=212,maps.karte.profilechange."+B+"&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.karte.profilechange."+B;
var C=new Image();C.src=A;};this.writeEntfernungsmessung=function(){var B=g_WebTrekkUrl+"?p=212,maps.karte.entfernungsmessung&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.entfernungsmessung";
var A=new Image();A.src=B;};this.writeSatellitenbild=function(){var B=g_WebTrekkUrl+"?p=212,maps.google.satellitenbild&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.google.satellitenbild";
var A=new Image();A.src=B;};this.writeReset=function(){var B=g_WebTrekkUrl+"?p=212,maps.reset&cg1=maps.homepage&cp1=maps.adac.de&cp2=content&cp3=&cp4=tis&cp5=&cp6=2010-05-31+17%3a50%3a44&cp7=&cp8=&cp9=&cp10=&cp11=N&cp12=&cp13=&cp14=maps.reset";
var A=new Image();A.src=B;};}var LOGIN=new Login();function Login(){this.UserAuthenticated=false;this.UserHasComfortLogin=false;
this.loginPage=g_LoginPage;this.doLogin=function(){var A=document.getElementById("dasIFrame");
A.style.display="block";LoginIFrame_Maximize("dasIFrame");A.src=g_LoginPage+"&t"+new Date().getTime();
};this.OpenerCalled=function(A){this.UserAuthenticated=true;$("UserAuthenticated").value="true";
MAPSGUI.User.logedIn();var B=$get("divLogindone");B.className="header-loginbox user-logged-in";
var C=$get("divLoginbox");C.className="header-loginbox none";$("Bergruessung").innerHTML=A;
};this.OpenerCancel=function(){MAPSGUI.User.typ="";MAPSGUI.User.mapsParameter="";
};}spacemapOpen=102;spacemapOpenStart=150;spacemapClosed=40;spacemapClosedStart=295;
offsetFF=53;offsetIE=39;offsetIE9=55;offsetSF=55;MAPSGUI.Translate=new Object();MAPSGUI.Translate.table_errorNoResult="Zum gew&auml;hlten Kartenausschnitt liegen keine Informationen f&uuml;r das Thema {rubricdesc} vor. <br />Bitte ver&auml;ndern Sie den Kartenausschnitt.";
MAPSGUI.Translate.table_errorNoResultRoute="Zur berechneten Route liegen im Kartenausschnitt keine Informationen f&uuml;r das Thema {rubricdesc} vor. <br />Bitte ver&auml;ndern Sie den Kartenausschnitt.";
MAPSGUI.Translate.table_errorMoreThan100="Ihre Anfrage ergab mehr als die gelisteten 100 Treffer. Bitte schr&auml;nken Sie Ihre Suche ein, um ein genaueres Ergebnis zu erhalten.";
MAPSGUI.Translate.table_errorNoCheckboxChecked="Es ist kein Eintrag zum Drucken ausgew%E4hlt!\nBitte w%E4hlen Sie %FCber die Checkboxen aus, zu welchen Eintr%E4gen Sie Details drucken wollen.";
MAPSGUI.Translate.table_errorNoCheckboxCheckedGPX="Es ist kein Eintrag zum Export ausgew%E4hlt!\nBitte w%E4hlen Sie %FCber die Checkboxen aus, welche Daten Sie exportieren wollen.";
MAPSGUI.Translate.table_noRestultFilter_sight="mit {rubricdesc}";MAPSGUI.Translate.table_noRestultFilter_tank="der Marke {rubricdesc}";
MAPSGUI.Translate.table_closeTab="Reiter schlie&szlig;en";MAPSGUI.Translate.route_errTextStartEmpty="Start darf nicht leer sein";
MAPSGUI.Translate.route_errTextDestEmpty="Ziel darf nicht leer sein";MAPSGUI.Translate.route_errTextError="Fehler! Server antwortet nicht oder kann nicht gefunden werden bei der Suche nach {term}";
MAPSGUI.Translate.route_errTextNoResult="Zu Ihrer Eingabe wird kein Treffer gefunden.";
MAPSGUI.Translate.route_stopoverInfo="Am Ort vorbeifahren. Zwischenstation wird als Ann&auml;herungspunkt genutzt.";
MAPSGUI.Translate.info_checkAllTitle="Alle anzeigen";MAPSGUI.Translate.info_uncheckAllTitle="Keine anzeigen";
MAPSGUI.Translate.info_checkAll="Alle";MAPSGUI.Translate.info_uncheckAll="Keine";
MAPSGUI.Translate.set_filter="Filter bearbeiten";MAPSGUI.Translate.filter_is_set="Filter gesetzt";
MAPSGUI.Translate.filter_headline="Filtern nach";MAPSGUI.Translate.filter_close="Filter schlie&szlig;en";
MAPSGUI.Translate.filter_no_filter="Kein Filter";MAPSGUI.Translate.close="Schlie&szlig;en";
MAPSGUI.iconCommonClass="clusterOnSite";MAPSGUI.verkehrsrest=new Object();MAPSGUI.verkehrsrest.icon=MAPSGUI.iconCommonClass+" posTankstellen_und_Raststaetten";
MAPSGUI.adacrest=new Object();MAPSGUI.adacrest.text="Weitere";MAPSGUI.adacrest.icon=MAPSGUI.iconCommonClass+" posTankstellen_und_Raststaetten";
MAPSGUI.vib=new Object();MAPSGUI.vib.text="Baustellen";MAPSGUI.vib.icon=MAPSGUI.iconCommonClass+" posBaustelle";
MAPSGUI.ferries=new Object();MAPSGUI.ferries.text="F&auml;hren";MAPSGUI.ferries.icon=MAPSGUI.iconCommonClass+" posFaehrhaefen";
MAPSGUI.umweltzonen=new Object();MAPSGUI.umweltzonen.text="Umweltzonen";MAPSGUI.umweltzonen.icon=MAPSGUI.iconCommonClass+" posUmweltzonen";
MAPSGUI.alpineroads=new Object();MAPSGUI.alpineroads.text="Alpenstra&szlig;en";MAPSGUI.alpineroads.icon=MAPSGUI.iconCommonClass+" posAlpenstrassen";
MAPSGUI.trafficcams=new Object();MAPSGUI.trafficcams.text="TrafficCam";MAPSGUI.trafficcams.icon=MAPSGUI.iconCommonClass+" posTrafficcams";
MAPSGUI.parkinfo=new Object();MAPSGUI.parkinfo.text="Parken";MAPSGUI.parkinfo.icon=MAPSGUI.iconCommonClass+" posParken";
MAPSGUI.gma=new Object();MAPSGUI.gma.text="Gl&auml;ttemeldungen";MAPSGUI.gma.icon=MAPSGUI.iconCommonClass+" posRoadconditions";
MAPSGUI.verkehrslage=new Object();MAPSGUI.verkehrslage.text="Verkehrslage";MAPSGUI.los=new Object();
MAPSGUI.los.text="Verkehrsfluss";MAPSGUI.los.icon=MAPSGUI.iconCommonClass+" posStau";
MAPSGUI.viv=new Object();MAPSGUI.viv.text="Verkehrsmeldungen";MAPSGUI.viv.icon=MAPSGUI.iconCommonClass+" posVerkehrsmeldungen";
MAPSGUI.tankundrast=new Object();MAPSGUI.tankundrast.text="Tanken &amp; Rasten";MAPSGUI.tankundrast.icon=MAPSGUI.iconCommonClass+" posTankstellen_und_Raststaetten";
MAPSGUI.tankrest=new Object();MAPSGUI.tankrest.text="Tankstellen";MAPSGUI.tankrest.icon=MAPSGUI.iconCommonClass+" posTankstellen";
MAPSGUI.agip=new Object();MAPSGUI.agip.text="Agip";MAPSGUI.agip.icon=" posAGIP";MAPSGUI.aral=new Object();
MAPSGUI.aral.text="Aral";MAPSGUI.aral.icon=" posARAL";MAPSGUI.bp=new Object();MAPSGUI.bp.text="BP";
MAPSGUI.bp.icon=" posBP";MAPSGUI.elf=new Object();MAPSGUI.elf.text="ELF";MAPSGUI.elf.icon=" posELF";
MAPSGUI.esso=new Object();MAPSGUI.esso.text="ESSO";MAPSGUI.esso.icon=" posESSO";MAPSGUI.jet=new Object();
MAPSGUI.jet.text="Jet";MAPSGUI.jet.icon=" posJET";MAPSGUI.omv=new Object();MAPSGUI.omv.text="OMV";
MAPSGUI.omv.icon=" posOMV";MAPSGUI.shell=new Object();MAPSGUI.shell.text="Shell";
MAPSGUI.shell.icon=" posSHELL";MAPSGUI.total=new Object();MAPSGUI.total.text="Total";
MAPSGUI.total.icon=" posTOTAL";MAPSGUI.freietankstellen=new Object();MAPSGUI.freietankstellen.text="Freie Tankstellen";
MAPSGUI.freietankstellen.icon=" posFreietankstellen";MAPSGUI.tankstelleerdgas=new Object();
MAPSGUI.tankstelleerdgas.text="Erdgastankstellen";MAPSGUI.tankstelleerdgas.icon=MAPSGUI.iconCommonClass+" posErdgas_Tankstellen";
MAPSGUI.raststaetten=new Object();MAPSGUI.raststaetten.text="Rastst&auml;tten";MAPSGUI.raststaetten.icon=MAPSGUI.iconCommonClass+" posRaststaetten";
MAPSGUI.tankautogas=new Object();MAPSGUI.tankautogas.text="Autogastankstellen";MAPSGUI.tankautogas.icon=MAPSGUI.iconCommonClass+" posAutogas_Tankstellen";
MAPSGUI.tankstelleautogas=new Object();MAPSGUI.tankstelleautogas.text="Autogas-Tankstellen";
MAPSGUI.tankstelleautogas.icon=MAPSGUI.iconCommonClass+" posAutogas_Tankstellen";
MAPSGUI.tankstellelektro=new Object();MAPSGUI.tankstellelektro.text="Elektrotankstellen";
MAPSGUI.tankstellelektro.icon=MAPSGUI.iconCommonClass+" posElektro_Tankstellen";MAPSGUI.travelweather=new Object();
MAPSGUI.travelweather.text="Wetter";MAPSGUI.travelweather.icon=MAPSGUI.iconCommonClass+" weather1_detail";
MAPSGUI.news=new Object();MAPSGUI.news.text="Reisenachrichten";MAPSGUI.news.icon=MAPSGUI.iconCommonClass+" posNachrichten";
MAPSGUI.bilder=new Object();MAPSGUI.bilder.text="Bilder";MAPSGUI.bilder.icon=MAPSGUI.iconCommonClass+" posBilder";
MAPSGUI.videos=new Object();MAPSGUI.videos.text="Reisefilme";MAPSGUI.videos.icon=MAPSGUI.iconCommonClass+" posVideos";
MAPSGUI.webcams=new Object();MAPSGUI.webcams.text="WebCam";MAPSGUI.webcams.icon=MAPSGUI.iconCommonClass+" posWebcams";
MAPSGUI.touren=new Object();MAPSGUI.touren.text="Touren & Rundreisen";MAPSGUI.touren.icon=MAPSGUI.iconCommonClass+" posTouren";
MAPSGUI.tourebiking=new Object();MAPSGUI.tourebiking.text="Oldtimer- &amp; Motorradtouren";
MAPSGUI.tourebiking.icon=MAPSGUI.iconCommonClass+" posOldtimerandbiking";MAPSGUI.camping=new Object();
MAPSGUI.camping.text="Hotels &amp; Camping";MAPSGUI.hrs=new Object();MAPSGUI.hrs.text="Hotels";
MAPSGUI.hrs.icon=MAPSGUI.iconCommonClass+" posHotels";MAPSGUI.hotels=new Object();
MAPSGUI.hotels.text="Hotels";MAPSGUI.hotels.icon=MAPSGUI.iconCommonClass+" posHotels";
MAPSGUI.stellplaetze=new Object();MAPSGUI.stellplaetze.text="Stellpl&auml;tze";MAPSGUI.stellplaetze.icon=MAPSGUI.iconCommonClass+" posStellplaetze";
MAPSGUI.campingguide=new Object();MAPSGUI.campingguide.text="Campingpl&auml;tze";
MAPSGUI.campingguide.icon=MAPSGUI.iconCommonClass+" posCamping";MAPSGUI.restaurants=new Object();
MAPSGUI.restaurants.text="Essen &amp; Trinken";MAPSGUI.restaurantnormal=new Object();
MAPSGUI.restaurantnormal.text="Restaurants";MAPSGUI.restaurantnormal.icon=MAPSGUI.iconCommonClass+" posRestaurant";
MAPSGUI.varta=new Object();MAPSGUI.varta.text="Nur Restaurants im Varta-F&uuml;hrer";
MAPSGUI.varta.icon=" posVARTA";MAPSGUI.fastfood=new Object();MAPSGUI.fastfood.text="Schnellrestaurants";
MAPSGUI.fastfood.icon=MAPSGUI.iconCommonClass+" posSchnellrestaurants";MAPSGUI.burgerking=new Object();
MAPSGUI.burgerking.text="Burger King";MAPSGUI.burgerking.icon=" posBurger_King";MAPSGUI.kfc=new Object();
MAPSGUI.kfc.text="KFC";MAPSGUI.kfc.icon=" posKfc";MAPSGUI.nordsee=new Object();MAPSGUI.nordsee.text="Nordsee";
MAPSGUI.nordsee.icon=" posNordsee";MAPSGUI.mcdonalds=new Object();MAPSGUI.mcdonalds.text="McDonalds";
MAPSGUI.mcdonalds.icon=" posMc_Donalds";MAPSGUI.sight=new Object();MAPSGUI.sight.text="Sehensw&uuml;rdigkeiten";
MAPSGUI.topsight=new Object();MAPSGUI.topsight.text="Nur Sehenw&uuml;rdigkeiten mit Top-Bewertung";
MAPSGUI.topsight.icon=" posTopziel";MAPSGUI.museum=new Object();MAPSGUI.museum.text="Museen";
MAPSGUI.museum.icon=MAPSGUI.iconCommonClass+" posMuseen";MAPSGUI.natur=new Object();
MAPSGUI.natur.text="Natur/Outdoor";MAPSGUI.natur.icon=MAPSGUI.iconCommonClass+" posNatur";
MAPSGUI.architecture=new Object();MAPSGUI.architecture.text="Bauwerke";MAPSGUI.architecture.icon=MAPSGUI.iconCommonClass+" posBauwerke";
MAPSGUI.citiesandresorts=new Object();MAPSGUI.citiesandresorts.text="Sehenswerte Orte";
MAPSGUI.citiesandresorts.icon=MAPSGUI.iconCommonClass+" possehenswerte_Orte";MAPSGUI.activities=new Object();
MAPSGUI.activities.text="Aktivit&auml;ten";MAPSGUI.entertainment=new Object();MAPSGUI.entertainment.text="Unterhaltung";
MAPSGUI.entertainment.icon=MAPSGUI.iconCommonClass+" posUnterhaltung";MAPSGUI.freizeitparks=new Object();
MAPSGUI.freizeitparks.text="Freizeitparks";MAPSGUI.freizeitparks.icon=MAPSGUI.iconCommonClass+" posFreizeitparks";
MAPSGUI.shopping=new Object();MAPSGUI.shopping.text="Shopping";MAPSGUI.shopping.icon=MAPSGUI.iconCommonClass+" posShopping";
MAPSGUI.outdoor=new Object();MAPSGUI.outdoor.text="Outdoor";MAPSGUI.outdoor.icon=MAPSGUI.iconCommonClass+" posOutdoor";
MAPSGUI.freizeitbaeder=new Object();MAPSGUI.freizeitbaeder.text="Freizeitb&auml;der";
MAPSGUI.freizeitbaeder.icon=MAPSGUI.iconCommonClass+" posFreizeitbaeder";MAPSGUI.wassersport=new Object();
MAPSGUI.wassersport.text="Wassersport";MAPSGUI.marinas=new Object();MAPSGUI.marinas.text="Marinas";
MAPSGUI.marinas.icon=MAPSGUI.iconCommonClass+" posMarinas";MAPSGUI.bootscheck=new Object();
MAPSGUI.bootscheck.text="Boot-Check";MAPSGUI.bootscheck.icon=MAPSGUI.iconCommonClass+" posBootscheck";
MAPSGUI.stuetzpunkt=new Object();MAPSGUI.stuetzpunkt.text="ADAC-St&uuml;tzpunkte";
MAPSGUI.stuetzpunkt.icon=MAPSGUI.iconCommonClass+" posMarinas";MAPSGUI.adressregister=new Object();
MAPSGUI.adressregister.text="N&uuml;tzliche Adressen";MAPSGUI.apotheken=new Object();
MAPSGUI.apotheken.text="Apotheken";MAPSGUI.apotheken.icon=MAPSGUI.iconCommonClass+" posApotheken";
MAPSGUI["24h"]=new Object();MAPSGUI["24h"].text="Nur <br />Notdienst-Apotheken";MAPSGUI["24h"].icon=MAPSGUI.iconCommonClass+" posNotdienstapotheken";
MAPSGUI.trainstation=new Object();MAPSGUI.trainstation.text="Bahnh&ouml;fe";MAPSGUI.trainstation.icon=MAPSGUI.iconCommonClass+" posBahnhoefe";
MAPSGUI.airport=new Object();MAPSGUI.airport.text="Flugh&auml;fen";MAPSGUI.airport.icon=MAPSGUI.iconCommonClass+" posFlughaefen";
MAPSGUI.hospital=new Object();MAPSGUI.hospital.text="Krankenh&auml;user";MAPSGUI.hospital.icon=MAPSGUI.iconCommonClass+" posKrankenhaeuser";
MAPSGUI.touristinformation=new Object();MAPSGUI.touristinformation.text="Touristinfo";
MAPSGUI.touristinformation.icon=MAPSGUI.iconCommonClass+" posTouristInfos";MAPSGUI.garage=new Object();
MAPSGUI.garage.text="Autowerkst&auml;tten";MAPSGUI.garage.icon=MAPSGUI.iconCommonClass+" posAutowerkstaetten";
MAPSGUI.busstation=new Object();MAPSGUI.busstation.text="Busstationen";MAPSGUI.busstation.icon=MAPSGUI.iconCommonClass+" posBusstationen";
MAPSGUI.cemetery=new Object();MAPSGUI.cemetery.text="Friedh&ouml;fe";MAPSGUI.cemetery.icon=MAPSGUI.iconCommonClass+" posFriedhoefe";
MAPSGUI.fairground=new Object();MAPSGUI.fairground.text="Messegel&auml;nde";MAPSGUI.fairground.icon=MAPSGUI.iconCommonClass+" posMessegelaende";
MAPSGUI.mitgliedervorteile=new Object();MAPSGUI.mitgliedervorteile.text="Mitglieder-Vorteile";
MAPSGUI.mitgliedervorteile.icon=MAPSGUI.iconCommonClass+" posMitgliedervorteile";
MAPSGUI.sycautomotorrad=new Object();MAPSGUI.sycautomotorrad.text="Auto &amp; Motorrad";
MAPSGUI.sycautomotorrad.icon=" possycautomotorradFilter";MAPSGUI.sycfreizeiturlaub=new Object();
MAPSGUI.sycfreizeiturlaub.text="Freizeit &amp; Urlaub";MAPSGUI.sycfreizeiturlaub.icon=" possycfreizeiturlaubFilter";
MAPSGUI.sycmusicalevents=new Object();MAPSGUI.sycmusicalevents.text="Musical &amp; Events";
MAPSGUI.sycmusicalevents.icon=" possycmusicaleventsFilter";MAPSGUI.sycshoptechnik=new Object();
MAPSGUI.sycshoptechnik.text="Shopping";MAPSGUI.sycshoptechnik.icon=" possycshoptechnikFilter";
MAPSGUI.adacsht=new Object();MAPSGUI.adacsht.text="Fahrsicherheits-<br />training";
MAPSGUI.adacsht.icon=MAPSGUI.iconCommonClass+" posADAC_Fahrsicherheitstraining";MAPSGUI.adacgs=new Object();
MAPSGUI.adacgs.text="ADAC vor Ort";MAPSGUI.adacgs.icon=MAPSGUI.iconCommonClass+" posADAC_vor_Ort";
MAPSGUI.ortsclubs=new Object();MAPSGUI.ortsclubs.text="Ortsclubs<br />/Korperativclubs";
MAPSGUI.ortsclubs.icon=MAPSGUI.iconCommonClass+" posOrts__Korporativclubs";MAPSGUI.tourset=new Object();
MAPSGUI.tourset.text="TourSet";MAPSGUI.adactset=new Object();MAPSGUI.adactset.text="TourSet";
MAPSGUI.adactset.icon=MAPSGUI.iconCommonClass+" posTourSet";MAPSGUI.tsaudio=new Object();
MAPSGUI.tsaudio.text="TourSet audio";MAPSGUI.tsaudio.icon=MAPSGUI.iconCommonClass+" posTourSet_Audio";
MAPSGUI.tsmobil=new Object();MAPSGUI.tsmobil.text="TourSet mobil";MAPSGUI.tsmobil.icon=MAPSGUI.iconCommonClass+" posTourSet_Mobil";
MAPSGUI.snowreport=new Object();MAPSGUI.snowreport.text="Schneebericht";MAPSGUI.snowreport.icon=MAPSGUI.iconCommonClass+" posSkigebiete";
function MM_findObj(D,A){var B,C,E;if(!A){A=document;}if((B=D.indexOf("?"))>0&&parent.frames.length){A=parent.frames[D.substring(B+1)].document;
D=D.substring(0,B);}if(!(E=A[D])&&A.all){E=A.all[D];}for(C=0;!E&&C<A.forms.length;
C++){E=A.forms[C][D];}for(C=0;!E&&A.layers&&C<A.layers.length;C++){E=MM_findObj(D,A.layers[C].document);
}if(!E&&A.getElementById){E=A.getElementById(D);}return E;}function MM_changeProp(objName,x,theProp,theValue){var obj=MM_findObj(objName);
if(obj&&(theProp.indexOf("style.")==-1||obj.style)){if(theValue==true||theValue==false){eval("obj."+theProp+"="+theValue);
}else{eval("obj."+theProp+"='"+theValue+"'");}}}function hideLayer(A){MM_changeProp(A,"","style.display","none","DIV");
}function showLayer(A){MM_changeProp(A,"","style.display","block","DIV");}function arrayContains(B,A){for(i=0;
i<A.length;i++){if(A[i]==B){return true;}}return false;}function arrayRemoveElement(A,B){for(var C=0;
C<B.length;C++){if(B[C]==A){B.splice(C,1);}}}if(typeof $!=="function"){function $(A){if(arguments.length>1){for(var C=0,D=[],B=arguments.length;
C<B;C++){D.push($(arguments[C]));}return D;}if(typeof A=="string"){A=document.getElementById(A);
}return A;}}if(typeof $get!=="function"){function $get(A){if(arguments.length>1){for(var C=0,D=[],B=arguments.length;
C<B;C++){D.push($(arguments[C]));}return D;}if(typeof A=="string"){A=document.getElementById(A);
}return A;}}if(typeof String.trim=="undefined"){String.prototype.trim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"");
};}String.prototype.unescapeHtml=function(){if(this.length!==0){var A=document.createElement("div");
A.innerHTML=this;var B=A.childNodes[0].nodeValue;A.removeChild(A.firstChild);return B;
}};MAPSGUI.Util={mousePosX:0,mousePosY:0,getIndex:function(A,B){for(i=0;i<A.length;
i++){if(A[i]===B){return i;}}},checkStringInArray:function(A,C){for(var B=0;B<A.length;
B++){if(A[B]==C){return true;}}return false;},getElementsByClass:function(C,D){var E=new Array;
if(C===null){return E;}var F=C.childNodes;for(i=0;i<F.length;i++){var B=F[i].className;
if(typeof(B)!=="undefined"&&B!=""){var A=B.split(/\s/);for(j=0;j<A.length;j++){if(A[j]===D){E.push(F[i]);
}}}}return E;},getEquivalent:function(D,G,C,B){var H=MAPSGUI.Util.getElementsByClass(D,G);
var E=MAPSGUI.Util.getIndex(H,C);var A=MAPSGUI.Util.getElementsByClass(D,B);var F=A[E];
return F;},addClassName:function(B,A){if(B.className.match(A)===null){B.className=B.className+" "+A;
}},removeClassName:function(A,B){var C=new RegExp(B);var D=A.className.replace(C,"");
A.className=D;},getElementsByClassName:function(D,I,C){var G=new RegExp("(^|\\s)"+D+"(\\s|$)");
var I=I||"*";var C=C||document;var A=(I=="*"&&C.all)?C.all:C.getElementsByTagName(I);
var H=[];var E;var B=A.length;for(var F=0;F<B;F++){E=A[F];if(G.test(E.className)){H.push(E);
}}return H;},hasClassName:function(B,D){if(B.className){var A=B.className.split(" ");
var E=D.toUpperCase();for(var C=0;C<A.length;C++){if(A[C].toUpperCase()==E){return true;
}}}return false;},setMousePos:function(B){var A;var C;if(window.navigator.userAgent.indexOf("MSIE ")>-1&&parseFloat(navigator.appVersion)>=4){A=window.event.x;
C=window.event.y;}else{A=B.pageX;C=B.pageY;}MAPSGUI.Util.mousePosX=A;MAPSGUI.Util.mousePosY=C;
},isInArray:function(B,A){var D=-1;for(var C=0;C<B.length;C++){if(B[C]==A){D=C;}}return D;
},deleteFromArray:function(B,C){for(var A=0;A<B.length;++A){if(A>=C){B[A]=B[A+1];
}}B.pop();}};MAPSGUI.switchtab=false;MAPSGUI.listTabClicked=false;MAPSGUI.listTabClosed=false;
MAPSGUI.withoutTable=new Array("trafficcams","bilder","videos","webcams","los");MAPSGUI.level2Open=new Array();
MAPSGUI.activeTab="";MAPSGUI.activeTabDescription="";MAPSGUI.tableDataContainer="main2";
MAPSGUI.tableResultsClosedManually=false;MAPSGUI.tabDataContainer="tab_data_container";
MAPSGUI.offsetTopToNav=93;MAPSGUI.mapDefaultSize=2;MAPSGUI.lastActiveTab="";MAPSGUI.showTabsBarVisible=false;
MAPSGUI.rubricCounter=new Object();MAPSGUI.filterCounter=new Object();MAPSGUI.oldMapsizeValue=MAPSGUI.mapDefaultSize;
MAPSGUI.level2Open=new Array();MAPSGUI.activeFilterId="";MAPSGUI.goToBackEnd=true;
MAPSGUI.debug=false;MAPSGUI.corridorMax=11;MAPSGUI.Routecalculating=false;MAPSGUI.allow_drawPOILayer=true;
MAPSGUI.refreshActiveTab=true;MAPSGUI.showOpacityLayer=function(A){opacityHight=MAPSGUI.getFullHeight();
$("opacitydiv").style.height=opacityHight+"px";showLayer("opacitydiv");$(A).style.display="block";
};MAPSGUI.showClusterDiv=function(A){showLayer(A);};MAPSGUI.checkMapTarget=function(){$("targetmap").value="";
if($("settargetmap").checked==true){$("targetmap").value="1";}};MAPSGUI.switchRubrikSummary=function(B){var D=$get(GetRenderedId("ButHeaderBox"));
if(D!=null){var A=$get(GetRenderedId("HfClusterLayerIndex"));A.value=B;var C=D.name;
__doPostBack(C,"");}};MAPSGUI.showSmallDetailLayer=function(A){var C=$get(GetRenderedId("but_shortInfo"));
if(C!=null){var B=C.name;__doPostBack(B,A);}};MAPSGUI.getWidth=function(){var A=document.documentElement;
var B=window.innerWidth||self.innerWidth||(A&&A.clientWidth)||document.body.clientWidth;
return B;};document.getWidth=MAPSGUI.getWidth;MAPSGUI.getHeight=function(){var A=document.documentElement;
var B=window.innerHeight||self.innerHeight||(A&&A.clientHeight)||document.body.clientHeight;
return B;};document.getHeight=MAPSGUI.getHeight;MAPSGUI.getFullHeight=function(){if(typeof document.height!="undefined"){myFullHeight=document.height;
}else{if(document.compatMode&&document.compatMode!="BackCompat"){myFullHeight=document.documentElement.scrollHeight;
}else{if(document.body&&typeof document.body.scrollheight!="undefined"){myFullHeight=document.body.scrollheight;
}}}return myFullHeight;};MAPSGUI.getOffsetWidth=function(){offset=offsetFF;var A=navigator.userAgent;
if(A.indexOf("MSIE")>=0){if(A.indexOf("MSIE")==25){offset=offsetIE9;}else{offset=offsetIE;
}}else{if(A.indexOf("Safari")>=0){offset=offsetSF;}}return offset;};MAPSGUI.updateMapSizeGuiElement=function(C){var A="pos-"+String(C);
$("presserbutton").className="presserline-button "+A;var B="Karte verkleinern";var D="Karte vergr&ouml;&szlig;ern";
B=B.unescapeHtml();D=D.unescapeHtml();if(C==1){B="";}else{if(C==2){D="";}}$("maspsize_up").title=B;
$("mapsize_down").title=D;};MAPSGUI.resetAll=function(){ADACMapsRouteplanerResetAll();
MAPSGUI.uncheckAllNaviCheckboxes();MAPSGUI.emptyTabContainer();MAPSGUI.hideLayerLos();
MAPSGUI.Toggle.resetGui();$("rubricstring").value="";rubricstring="";MAPSGUI.rubricCounter=new Object();
MAPSGUI.Filters.reset();showLayer("route_plan_div");hideLayer("routenempfehlung");
hidePOILayerForReset("AjaxKarteDiv");closeAllInfoLayer();AMAMAPS.showCardOptionen("resetall");
MAPSGUI.isLastTab();GEOCODING.clearAllElements();GEOCODING.resetDestination();CloseShortInfo();
$("RouteId").value="";$("TourId").value="";handleDestinationAndResetBox();hideLayer("actions_routenempfehlung");
var C=AMAMAPS.AMAgetAJAXMapReference();if(C!=null){var A=C.getProfileGroup();if(A!=null&&A!="undefined"){if(A.indexOf("UWZ")>0){A=A.replace(/_UWZ/,"");
}AMAMAPS.SetMapProfile(A);}else{AMAMAPS.SetMapProfile("default");}var B=C.getServerDrawnObjectManager();
AMAdrawPOILayer("","AjaxKarteDiv",C,B);}};MAPSGUI.closeListTab=function(A,C){MAPSGUI.listTabClosed=true;
var F=0;if(MAPSGUI.User.level3Elements[A.id]!=undefined){var B=MAPSGUI.User.level3Elements[A.id].parentId;
F=MAPSGUI.User.level2Elements[B];}else{if(MAPSGUI.Navi[A.id]!=undefined){F=MAPSGUI.Navi[A.id];
}else{F=MAPSGUI.Navi[A];}}if(F==undefined){if(MAPSGUI.User.level3Elements[E]){var E=MAPSGUI.User.filterElements[A.id].parentId;
var D=MAPSGUI.User.level3Elements[E].parentId;F=MAPSGUI.User.level2Elements[D];}else{$(A.id).click();
return;}}$(A).click();if($("corridor_"+A)){if(MAPSGUI.Util.isInArray(MAPSGUI.Corridor.corridorIconsBeforeCharge,A)==-1){drawPOILayer("AjaxKarteDiv");
}else{MAPSGUI.Corridor.resetCorridorIcon(A);var G=$(GetRenderedId("butCalcRouting1"));
if(G!=null){ROUTING.GetSelectedCorridors();ROUTING.GetRoutingOptions();var H=G.name;
__doPostBack(H,"");}}}};MAPSGUI.isLastTab=function(){MAPSGUI.showTabsBarVisible=false;
hideLayer("results");hideLayer("presserbutton");hideLayer("presserdiv");if(MAPSGUI.tableResultsClosedManually===false){MAPSGUI.oldMapsizeValue=$("mappos").value;
}$("mappos").value=MAPSGUI.mapDefaultSize;AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);
MAPSGUI.Slider._initialized=false;};MAPSGUI.showTabs=function(D,J,E,T,U,L){MAPSGUI.closeActiveFilterLayer(D);
HELPER.eventListenerDone=false;MAPSGUI.Toggle.setToggleHead(E);AMAMAPS.showCardOptionen("reset");
var S=true;if(arrayContains(D,MAPSGUI.withoutTable)===true){S=false;}var F=MAPSGUI.resultVisible();
if(MAPSGUI.Routecalculating!=true){MAPSGUI.mapSizeControling();}if(F===false&&MAPSGUI.tableResultsClosedManually===false&&S===true){showLayer("results");
$("show_result_table").style.display="none";$("change_mapsize").style.display="block";
showLayer("presserbutton");showLayer("presserdiv");}else{if(MAPSGUI.showTabsBarVisible===false&&MAPSGUI.tableResultsClosedManually===true&&S===true){showLayer("presserbutton");
showLayer("presserdiv");MAPSGUI.hideResultTable(false);}}var V=false;var M=false;
var I=$(D).checked;var G="reiter-"+D;var X="mainlayer-"+D;var R="pnl_tabdiv_";var H=D;
var N=$("results_tab");var Y="notab";var A=0;var O=$(G);var B="";if(I===false){if(MAPSGUI.Util.isInArray(MAPSGUI.Corridor.corridorIcons,D)!=-1){MAPSGUI.Corridor.resetCorridorIcon(D);
}}if(I===true){var P=0;for(var Q=0;Q<MAPSGUI.User.checkedElements.length;Q++){if(D==MAPSGUI.User.checkedElements[Q].id){P++;
}}if(P==0){MAPSGUI.User.checkedElements.push($(D));}if(S===true){N.appendChild(O);
showLayer(G);Y=D;A=0;}MAPSGUI.handleUmweltzonen(D,"true");}else{if(I===false){for(var Q=0;
Q<MAPSGUI.User.checkedElements.length;Q++){if(MAPSGUI.User.checkedElements[Q]==$(D)){MAPSGUI.Util.deleteFromArray(MAPSGUI.User.checkedElements,Q);
}}if(S===true){B=MAPSGUI.selectNextAfterClose(N,O);hideLayer(G);hideLayer(R+D);$(MAPSGUI.tableDataContainer).appendChild(O);
MAPSGUI.handleUmweltzonen(D,"false");if(D==MAPSGUI.activeTab&&B!="lastTabStanding"){Y=B;
A=0;}else{if(B=="lastTabStanding"){MAPSGUI.isLastTab();}}if(typeof(adacfilters[D])!=="undefined"){MAPSGUI.Filters.uncheckAll(D,$("link_uncheckall_"+D),false);
}}MAPSGUI.handleUmweltzonen(D,"false");}}if(Y!="notab"&&MAPSGUI.Slider._sliding===false){MAPSGUI.setHiTab(Y);
}else{if(MAPSGUI.Slider._sliding===true){MAPSGUI.Slider._setHiTab=Y;MAPSGUI.Slider._setHiTabNavLevel=A;
}else{MAPSGUI.buildRubricstring(MAPSGUI.activeTab);}}var W=MAPSGUI.activeTab;if(W==="route"){var K=$(GetRenderedId("butCalcRouting1"));
if(K!=null){ROUTING.GetSelectedCorridors();ROUTING.GetRoutingOptions();var C=K.name;
__doPostBack(C,"");}}MAPSGUI.Corridor.confirmed=false;};MAPSGUI.mapSizeControling=function(){if(MAPSGUI.Slider._initialized===false){MAPSGUI.Slider.setMapSize(1);
MAPSGUI.Slider._initialized=true;}else{AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);
MAPSGUI.updateMapSizeGuiElement(MAPSGUI.oldMapsizeValue);}};MAPSGUI.setHiTab=function(E,C){MAPSGUI.User.actualTabId=E;
var B=0;for(var I=0;I<routeInfo.length;I++){if(routeInfo[I].parent==E){B++;}}for(var H=0;
H<extendedRouteInfo.length;H++){if(extendedRouteInfo[H].parent==E){B++;}}if(E=="route"||B==0){hideLayer("result_corridor");
}else{if($("corridor_"+E)){showLayer("result_corridor");if($("corridor_"+E).checked==true){if(MAPSGUI.User.routeSet==true){$("result_corridor_filter").checked=true;
}}else{$("result_corridor_filter").checked=false;}}if(MAPSGUI.User.routeSet==true){MAPSGUI.Corridor.resultCorridorCheckbox("active",E);
}else{hideLayer("result_corridor_filter_max");}}var D=$(GetRenderedId("pnl_tabdiv_"+E));
if(!D){D=$("pnl_tabdiv_"+E);}var G=$(GetRenderedId("pnl_tabdiv_"+MAPSGUI.activeTab));
if(!G){G=$("pnl_tabdiv_"+MAPSGUI.activeTab);}if(typeof(MAPSGUI.Navi[E])!="undefined"){MAPSGUI.activeTabDescription=MAPSGUI.Navi[E].name;
}if(E!==MAPSGUI.activeTab){MAPSGUI.lastActiveTab=MAPSGUI.activeTab;MAPSGUI.activeTab=E;
}MAPSGUI.Slider._setHiTab="";MAPSGUI.Slider._setHiTabNavLevel="";MAPSGUI.switchtab=true;
MAPSGUI.activeTab=E;MAPSGUI.buildRubricstring(E,C);MAPSGUI.setShadowClasses(E);var A="div-"+E;
var F=$(A);F.className="left bg-tablelist-hi";if(G!==null&&typeof(G)!="undefined"){G.style.display="none";
}if(D!==null&&typeof(D)!="undefined"){D.style.display="block";}if(E=="route"){$("rubricstring").value=$("rubricstring").value.replace("route#0","route#1");
}else{$("rubricstring").value=$("rubricstring").value.replace("route#1","route#0");
}};MAPSGUI.showSingleTab=function(C){if($("pnl_tabdiv_"+C).style.display!="block"){var D=$("results_tab").innerHTML;
$("results_tab").innerHTML="";var B="reiter-"+C;if($(B)){var A=$(B);$("results_tab").appendChild(A);
A.style.display="block";}$("results").style.display="block";MAPSGUI.Slider.setMapSize(1);
MAPSGUI.Slider._initialized=true;showLayer("presserbutton");showLayer("presserdiv");
$("results_tab").innerHTML+=D;}MAPSGUI.User.routeSet=true;MAPSGUI.setHiTab(C,"NO_FUNCTION");
};MAPSGUI.hideSingleTab=function(E){var A="reiter-"+E;var F=$(A);F.style.display="none";
$("pnl_tabdiv_"+E).style.display="none";var D=MAPSGUI.selectNextAfterClose($("results_tab"),F);
if(D=="lastTabStanding"){MAPSGUI.isLastTab();}else{var B=D;var C=0;MAPSGUI.setShadowClasses(E);
MAPSGUI.setHiTab(B,C);MAPSGUI.Slider.setMapSize(1);MAPSGUI.Slider._initialized=true;
}if(E=="route"){$("rubricstring").value=$("rubricstring").value.replace("route#1","");
$("rubricstring").value=$("rubricstring").value.replace("route#0","");}$(MAPSGUI.tableDataContainer).appendChild(F);
};MAPSGUI.buildRubricstring=function(H,C){if(MAPSGUI.goToBackEnd===false){return;
}rubricstring="";var I="";var D=H;if(arrayContains(H,MAPSGUI.withoutTable)===true){D=MAPSGUI.activeTab;
if($(H).checked==true){MAPSGUI.refreshActiveTab=H;}}for(nav in MAPSGUI.Navi){var L=MAPSGUI.Navi[nav];
if(L.level===2||L.level===3){var F="0";var B=false;var J=false;var K="";var A=false;
var G=null;if($(L.id.toLowerCase())&&$(L.id.toLowerCase()).checked===true){if(D=="sight"){D=MAPSGUI.activeTab;
}if(L.id==D){F="1";}MAPSGUI.level2Open.push(L.id);rubricstring+=L.id+"#"+F;if(typeof(adacfilters[L.id])!=="undefined"){var E="filter_"+adacfilters[L.id].filter;
if(adacfilters[L.id].filter.length>1||$(E).checked==true){K=MAPSGUI.buildFilterLevel3String(L.id);
rubricstring+="="+K.substring(0,K.length-1)+"!";}else{rubricstring+="!";}}else{rubricstring+="!";
}}}}MAPSGUI.DrawHideRubrikOptions(H,C);};MAPSGUI.DrawHideRubrikOptions=function(D,B){rubricstringlength=rubricstring.length-1;
rubricstring=rubricstring.substring(0,rubricstringlength);if(rubricstring.indexOf("touren")<0){$("TourId").value="";
}var C=$("optionsString").value;optionsStringLength=C.length-1;var A="";A=$("optionsOldString").value;
if(optionsStringLength>1&&C!="checkout"){$("rubricstring").value=rubricstring+C;}else{if(C!="checkout"){$("rubricstring").value=rubricstring+A;
}else{$("rubricstring").value=rubricstring;}}$("optionsString").value="";if(MAPSGUI.User.routeSet==true){$("rubricstring").value=$("rubricstring").value+"!route#1";
if(MAPSGUI.activeTab=="route"){$("rubricstring").value=$("rubricstring").value.replace("route#0","route#1");
}else{$("rubricstring").value=$("rubricstring").value.replace("route#1","route#0");
}}if(MAPSGUI.Routecalculating!=true){if(MAPSGUI.listTabClicked&&MAPSGUI.lastActiveTab!=""||MAPSGUI.listTabClosed&&MAPSGUI.lastActiveTab!=""){ListTabClick();
}else{if(MAPSGUI.allow_drawPOILayer==true&&D!="route"&&B!="corridor"){if(B!="nodrawpoi"){drawPOILayer("AjaxKarteDiv");
}}}}MAPSGUI.allow_drawPOILayer=true;};MAPSGUI.RouteCharge=function(){MAPSGUI.Routecalculating=true;
$("result_corridor_filter").disabled=false;$("result_corridor_filter_label").className="";
MAPSGUI.Corridor.corridorIconsBeforeCharge=new Array();for(var C=0;C<MAPSGUI.Corridor.corridorIcons.length;
C++){var B=MAPSGUI.Corridor.corridorIcons[C];MAPSGUI.Corridor.corridorIconsBeforeCharge.push(B);
if($(B)){if($("corridor_"+B).checked!=$(B).checked){$(B).click();}if(typeof(adacfilters[B])!="undefined"){for(var A=0;
A<adacfilters[B].filter.length;A++){var D=adacfilters[B].filter[A];if($("corridor_filter_"+D).checked!=$("filter_"+D).checked){if($("filter_"+D).checked==true){$("filter_"+D).checked=false;
MAPSGUI.setFilter(adacfilters[B].filter[A],B,"nosync");}else{$("filter_"+D).checked=true;
MAPSGUI.setFilter(adacfilters[B].filter[A],B,"nosync");}}}}}}MAPSGUI.User.routeSet=true;
MAPSGUI.showSingleTab("route");MAPSGUI.Route.controlRouteDetail("close");};MAPSGUI.buildFilterLevel3String=function(A){var G=adacnavi["onsite"]["rubric"]["sight"];
var B=false;if(MAPSGUI.Util.isInArray(G,A)!=-1){var D=new Array("");}else{var D=adacfilters[A].filter;
}var C=0;for(r=0;r<D.length;r++){if($("filter_"+D[r]).checked==true){C++;}}if(C==0){B=true;
}var F="";for(r=0;r<D.length;r++){var E=A.substring(0,A.length-1);if(B==false){if($("filter_"+D[r]).checked==true){F+=E+"_"+D[r]+":";
}}else{F+=E+"_"+D[r]+":";}}if(B==true&&A=="tankrest"){if(adacfilters[A].more===true){F+=A+":";
}}return F;};MAPSGUI.buildFilterCorridor=function(A,D){A=A.replace("corridor_","");
var B=false;var F=adacfilters[A].filter;var H=0;for(r=0;r<F.length;r++){if($("corridor_filter_"+F[r]).checked==true){H++;
}}if(H==0){if(A=="tankrest"||A=="fastfood"||A=="mitgliedervorteile"){B=true;}}var E="";
var C=0;for(r=0;r<F.length;r++){if($("corridor_filter_"+F[r]).checked==true||B==true){if(C==0){var G=MAPSGUI.Corridor.rubricstring.substring(0,MAPSGUI.Corridor.rubricstring.length-1);
MAPSGUI.Corridor.rubricstring=G+"#";}var I=A.substring(0,A.length-1);E+=I+"_"+F[r]+":";
C++;}}if(C!=0){return E;}else{return 0;}};MAPSGUI.currheight;MAPSGUI.currwidth;MAPSGUI.resizeDelay;
window.onresize=function(){MAPSGUI.resizeWindow();};MAPSGUI.resizeWindow=function(){if((MAPSGUI.currheight!=document.documentElement.clientHeight)||(MAPSGUI.currwidth!=document.documentElement.clientWidth)){AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);
}MAPSGUI.currheight=document.documentElement.clientHeight;MAPSGUI.currwidth=document.documentElement.clientWidth;
};MAPSGUI.addEvent=function(D,A,B,C){if(D.addEventListener){D.addEventListener(A,B,C);
return true;}else{if(D.attachEvent){return D.attachEvent("on"+A,B);}else{D["on"+A]=B;
}}};MAPSGUI.isEnterKeyCode=function(B){var B=(B)?B:(window.event)?window.event:null;
if(B){var A=(B.charCode)?B.charCode:((B.keyCode)?B.keyCode:((B.which)?B.which:0));
return(A==13);}return false;};MAPSGUI.submitOnEnter=function(A){if(MAPSGUI.isEnterKeyCode(A)){$("frmMap").submit();
return false;}else{return true;}};MAPSGUI.allowFormSubmit=function(A){$("frmMap").onsubmit=function(){return A;
};};MAPSGUI.showInfoLayerTimer=function(C){showLayer("infolayer_timer");var A=C*1000;
var B=setTimeout('hideLayer("infolayer_timer")',A);};MAPSGUI.resultVisible=function(){if($("results").style.display==""||$("results").style.display=="none"){return false;
}else{return true;}};MAPSGUI.handleUmweltzonen=function(D,A){if(D=="umweltzonen"){$("IsUmweltzoneSelected").value=A;
var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){var C=B.getProfileGroup();if(C!=null&&C!="undefined"){C=C.replace(/_UWZ/,"");
}AMAMAPS.SetMapProfile(C);}}};MAPSGUI.selectNextAfterClose=function(E,A){var D=E.childNodes;
var C=0;for(i=0;i<D.length;i++){if(D[i].id==A.id){C=i;}}var B=D.length-1;if(D.length<=1){return"lastTabStanding";
}else{if(C!=B){returnId=D[C+1].id;return returnId.substring(7);}else{returnId=D[C-1].id;
return returnId.substring(7);}}};MAPSGUI.uncheckAllNaviCheckboxes=function(){var A=$(MAPSGUI.Toggle._infoContainerId);
var B=A.getElementsByTagName("input");for(i=0;i<B.length;i++){if(B[i].type=="checkbox"){B[i].checked=false;
}}};MAPSGUI.showNoResultsText=function(C){var A=$("pnl_tabdiv_"+C);var B=A.getElementsByTagName("table");
var D=document.createElement("div");D.id="no_results_"+C;D.className="table-error noresults";
for(i=0;i<B.length;i++){B[i].style.display="none";}MAPSGUI.hideOldErrorMessages(C,A);
var E;if($("corridor_"+C)){if($("corridor_"+C).checked==true){if(MAPSGUI.User.routeSet==true){if($("result_corridor_filter").checked==true){E=MAPSGUI.Translate.table_errorNoResultRoute.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
}else{E=MAPSGUI.Translate.table_errorNoResult.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
}}else{E=MAPSGUI.Translate.table_errorNoResult.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
}}else{E=MAPSGUI.Translate.table_errorNoResult.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
}}else{E=MAPSGUI.Translate.table_errorNoResult.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
}D.innerHTML=E;A.appendChild(D);};MAPSGUI.showMoreThan100=function(C){var A=$("pnl_tabdiv_"+C);
var B=A.getElementsByTagName("table");var D=document.createElement("div");D.id="more_than_100_"+C;
D.className="table-error toomany";for(i=0;i<B.length;i++){B[i].style.display="";}MAPSGUI.hideOldErrorMessages(C,A);
var E=MAPSGUI.Translate.table_errorMoreThan100.replace("{rubricdesc}"," &bdquo;"+MAPSGUI.activeTabDescription+"&rdquo; ");
D.innerHTML=E;A.appendChild(D);};MAPSGUI.hideOldErrorMessages=function(C,A){var B=$("more_than_100_"+C);
var D=$("no_results_"+C);if(B!==null){A.removeChild(B);}if(D!==null){A.removeChild(D);
}};MAPSGUI.showWithoutErrors=function(C){var A=$("pnl_tabdiv_"+C);var B=A.getElementsByTagName("table");
for(i=0;i<B.length;i++){B[i].style.display="";}MAPSGUI.hideOldErrorMessages(C,A);
};MAPSGUI.hideResultTable=function(A){MAPSGUI.tableResultsClosedManually=true;MAPSGUI.showTabsBarVisible=true;
hideLayer("results");$("show_result_table").style.display="block";$("change_mapsize").style.display="none";
if(A!==false){MAPSGUI.oldMapsizeValue=$("mappos").value;$("mappos").value=MAPSGUI.mapDefaultSize;
MAPSGUI.updateMapSizeGuiElement(MAPSGUI.mapDefaultSize);AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);
if(navigator.userAgent.match("MSIE 6.0")!==null){var B=$("presserdiv");B.style.display="none";
B.style.display="block";}}};MAPSGUI.showResultTable=function(){MAPSGUI.tableResultsClosedManually=false;
showLayer("results");$("show_result_table").style.display="none";$("change_mapsize").style.display="block";
$("mappos").value=MAPSGUI.oldMapsizeValue;MAPSGUI.updateMapSizeGuiElement(MAPSGUI.oldMapsizeValue);
AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);if(MAPSGUI.oldMapsizeValue==3){MAPSGUI.Slider.hideHeader();
}if(navigator.userAgent.match("MSIE 6.0")!==null){var A=$("presserdiv");A.style.display="none";
A.style.display="block";}};MAPSGUI.getCheckboxesForPrint=function(A){var F="";var D="|";
var G=false;var B=$("pnl_tabdiv_"+MAPSGUI.activeTab);var C=B.getElementsByTagName("input");
F=MAPSGUI.activeTab+D;for(i=0;i<C.length;i++){if(C[i].type=="checkbox"&&C[i].checked===true){G=true;
F=F+C[i].id+D;}}if(G){if(A==="druck"){var E=F.length;F=F.slice(0,E-1);var H=g_MapsWebUrl+"Pages/Druck/DetailInfoDruck.aspx?DruckPage="+F;
newWindow=window.open(H,"_blank","width=1000,height=600,left=100,top=80,resizable=1,menubar=1,status=1,toolbar=1,location=1,scrollbars=1");
newWindow.focus();}else{var I=HELPER.getRubricFromRubricString();var E=F.length;F=F.slice(0,E-1)+"*"+I;
var H=g_MapsWebUrl+"Services/GPXDownload.ashx?DruckPage="+F;self.location.href=H;
}}else{if(A==="druck"){alert(unescape(MAPSGUI.Translate.table_errorNoCheckboxChecked));
}else{alert(unescape(MAPSGUI.Translate.table_errorNoCheckboxCheckedGPX));}}};MAPSGUI.toggleTableList=function(C,B,H){var E=C+"_"+B+"_"+H;
var A="col-"+B;var G=$(E+"_abstract");var F=$(E+"_full");var D=$(E);if(D.className.match("klapper-closed")){G.style.display="none";
F.style.display="block";D.className=A+" klapper-open";}else{G.style.display="block";
F.style.display="none";D.className=A+" klapper-closed";}};MAPSGUI.setShadowClasses=function(C){var G=$("results_tab").getElementsByTagName("div");
var B="shadowdiv-"+C;var H=$("reiter-"+C);var A=H.previousSibling;var E="";if(A!=null&&typeof(A.id)!="undefined"){E=A.id.substring(7);
}var F="reiter-";for(i=0;i<G.length;i++){if(G[i].style.display!="none"&&G[i].id.match("reiter")){var D=G[i].id.substring(7);
if(G[i].id==F+C){$(B).className="left bg-tablelist-shadow-hi";}else{if(G[i].id==F+E){$("div-"+E).className="left bg-tablelist before-hi";
$("shadowdiv-"+E).className="left none";}else{if(i==G.length-3){MAPSGUI.lastVisibleTab=D;
$("shadowdiv-"+D).className="left bg-tablelist-shadow last-shadow";$("div-"+D).className="left bg-tablelist";
}else{$("shadowdiv-"+D).className="left bg-tablelist-shadow";$("div-"+D).className="left bg-tablelist";
}}}}}};MAPSGUI.setInfoLayerPos=function(){var C=$("biglayer");var A=MAPSGUI.Slider.getScrollY();
var B=20+A;C.style.top=B+"px";};MAPSGUI.showTableLoader=function(){var H=$("table_loader");
var A=$("results_tab");var E=$("tabContainer").offsetHeight;var B=H.getElementsByTagName("div");
var F=54;var G=navigator.userAgent;var C=B[0];var D=-35;if(G.match("MSIE 8.0")){F=51;
}C.style.bottom=D+"px";var I=MAPSGUI.getWidth()-F;C.style.width=I+"px";if(E<191){$("table_data_container").style.height="141px";
C.style.height="191px";}else{$("table_data_container").style.height="";E=E-10;C.style.height=E+"px";
}H.style.display="block";};MAPSGUI.hideTableLoader=function(){$("table_data_container").style.height="";
$("table_loader").style.display="none";};MAPSGUI.emptyTabContainer=function(){var D=$("results_tab");
var C=D.childNodes;var A=$("tab_data_container");var B=C.length;for(i=0;i<B;i++){C[0].style.display="none";
A.appendChild(C[0]);}D.innerHTML="";};MAPSGUI.isOpen=function(B){var A=$("results_tab").getElementsByTagName("div");
for(i=0;i<A.length;i++){if(A[i].id=="reiter-"+B){return true;}}return false;},MAPSGUI.showLargerImage=function(F){var G=F.parentNode;
G.style.position="relative";G.style.zIndex="10";var D=F.src.replace("Typ7","Typ4");
D=D.replace("_7","_4");D=D.replace("Thumbnails","KurzInfo");var A=F.src.replace("Typ7","Typ4");
A=A.replace("_7","_4");A=A.replace("Thumbnails","KurzInfo");A=A.replace(/[^a-z0-9_]/gi,"");
var C=document.createElement("div");C.id=A;MAPSGUI.tooltipElementId=A;C.className="tooltip-outer none";
var E="<div class='table-pic-large clearfix'>       <img src='"+D+"' />    </div>";
C.innerHTML=E;if($(C.id)===null){G.appendChild(C);}var B=setTimeout("showLayer('"+A+"')",300);
};MAPSGUI.hideLargerImage=function(B){var C=B.parentNode;var D=C.getElementsByTagName("div");
var A=$(MAPSGUI.tooltipElementId);if(A!==null){C.removeChild(A);}C.style.position="static";
};MAPSGUI.handleNaviException=function(A){if(A=="los"){MAPSGUI.Toggle.setToggleHead("traffic");
MAPSGUI.closeActiveFilterLayer(A);if($(A).checked){showLayer("infolayer_los");}else{hideLayer("infolayer_los");
}}MAPSGUI.buildRubricstring(A);};MAPSGUI.showLayerLosState=1;MAPSGUI.showLayerLosWidth=198;
MAPSGUI.showLayerLosWidth2=28;MAPSGUI.showLayerLos=function(){if(MAPSGUI.showLayerLosState==0){$("box-infolayer-los").className="box-infolayer-open";
var B=MAPSGUI.showLayerLosWidth2;var A=window.setInterval(function(){$("infolayer_los").style.width=B+"px";
B+=4;if(B>MAPSGUI.showLayerLosWidth){window.clearInterval(A);}},1);MAPSGUI.showLayerLosState=1;
}else{MAPSGUI.showLayerLosState=0;var D=MAPSGUI.showLayerLosWidth;var C=window.setInterval(function(){$("infolayer_los").style.width=D+"px";
D-=4;if(D<MAPSGUI.showLayerLosWidth2){window.clearInterval(C);$("box-infolayer-los").className="box-infolayer-close";
}},1);}};MAPSGUI.hideLayerLos=function(){$("infolayer_los").style.display="none";
};MAPSGUI.countCheckedFilter=function(F){var A="";if(F.indexOf("corridor_")!=-1){var E=F.split("corridor_");
F=E[1];A="corridor_";}else{A="";}if(typeof(adacfilters[F])!="undefined"){var C=0;
for(var B=0;B<adacfilters[F].filter.length;B++){if($(A+"filter_"+adacfilters[F].filter[B]).checked==true){C++;
}}var D=$(A+"link_uncheckall_"+F);if(C==0){$("icon_set_"+A+F).style.display="none";
$("box_filter_count_"+A+F).innerHTML="";if(D!==null){MAPSGUI.Util.addClassName(D,"link-transparent");
}}else{$("icon_set_"+A+F).style.display="block";$("box_filter_count_"+A+F).innerHTML=C;
if(D!==null){MAPSGUI.Util.removeClassName(D,"link-transparent");}}}};MAPSGUI.setFilter=function(P,M,Q){MAPSGUI.Corridor.filterId=P;
MAPSGUI.allow_drawPOILayer=false;var L=0;MAPSGUI.goToBackEnd=false;var D=$("filter_"+P);
var A=$(M);var R="";var B=true;if(M.indexOf("corridor_")!=-1){B=false;R="corridor_";
var K=P.split("corridor_");var N=K[1];D=$("corridor_filter_"+N);if(A.checked===false){A.click();
}MAPSGUI.Corridor.setCorridorIcon(A.id,"filter",P);}else{if(M!="sight"){MAPSGUI.goToBackEnd=true;
if($("corridor_"+M)){var E=0;for(var G=0;G<adacfilters[M].filter.length;G++){if($("corridor_filter_"+adacfilters[M].filter[G]).checked==true){E++;
}}if(E==0){MAPSGUI.setHiTab(M);}else{MAPSGUI.setHiTab(M,"nodrawpoi");}}else{MAPSGUI.setHiTab(M);
}}MAPSGUI.goToBackEnd=false;if(MAPSGUI.User.routeSet==true){if(MAPSGUI.Util.isInArray(MAPSGUI.Corridor.corridorIconsBeforeCharge,M)!=-1){if($("corridor_filter_"+P)){B=true;
if(Q!="nosync"){$("corridor_filter_"+P).click();}}}}if(MAPSGUI.Navi[M].hasLevel3===true){if(D.checked===true){if(typeof(MAPSGUI.rubricCounter[M])=="undefined"||MAPSGUI.rubricCounter[M]===0){var C=MAPSGUI.Navi[M].subIds;
for(var I=0;I<C.length;I++){for(var H=0;H<MAPSGUI.User.checkedElements.length;H++){if(MAPSGUI.User.checkedElements[H].id==C[I]){$(C[I]).checked=true;
L++;}}}if(L==0){for(var F=0;F<C.length;F++){var O=C[F];if(MAPSGUI.Loged[O]!=0){$(C[F]).click();
}}}}MAPSGUI.User.checkedElements.push($("filter_"+P));}}else{MAPSGUI.switchtab=true;
if(A.checked===false){A.click();}}}MAPSGUI.goToBackEnd=true;if(MAPSGUI.User.routeSet==false){if(P.indexOf("corridor_")!=-1){MAPSGUI.buildRubricstring(M,"nodrawpoi");
}else{MAPSGUI.buildRubricstring(M);}}else{if(P.indexOf("corridor_")==-1){MAPSGUI.buildRubricstring(M);
}}if(MAPSGUI.User.routeSet==true&&B==true){ROUTING.GetSelectedCorridors();ROUTING.GetRoutingOptions();
var J=HELPER.getRubricFromRubricString();if(J!=""){var S=$(GetRenderedId("butCalcRouting1"));
if(S!=null){__doPostBack(S.name,J);}}}MAPSGUI.countCheckedFilter(M);};MAPSGUI.setGeocodingVisibility=function(A,B){$("divresult").style.visibility=A;
$("lnkShowAll").style.display=B;$("btnOK").style.display=B;};MAPSGUI.Tabnav={_arrowIconId:"box_arrow_icon",_activeIndex:1,_activeNode:null,_naviVisible:false,_tabClass:"jsTab",_checkAlls:null,_uncheckAlls:null,_shadowClass:"jsShadow",_naviId:"box_navi_content",_naviCloselinkId:"box-navi-closelink",_contentIdPrefix:"box_tabcontent_",_tabNavParentId:"route_reiternavi",_ACTIVE:1,_HOVER:2,_UNHOVER:3,showTab:function(B){var A=this.getIndex(B);
this.setTabnavShadowClasses(A,this._ACTIVE);this.showHideContent(A);this.showNav();
if(A==1){this.hideGeoResult();MAPSGUI.setGeocodingVisibility("hidden","none");hideLayer("box_close_link_outer");
if($("box_content_routenplaner_empfehlung").style.display=="block"){showLayer("actions_routenempfehlung");
}}else{if(A==3){this.hideGeoResult();MAPSGUI.closeActiveFilterLayer();MAPSGUI.setGeocodingVisibility("hidden","none");
showLayer("box_close_link_outer");hideLayer("actions_routenempfehlung");}else{this.showGeoResult();
MAPSGUI.setGeocodingVisibility("visible","block");showLayer("box_close_link_outer");
hideLayer("actions_routenempfehlung");}}},hoverTab:function(B){var A=this.getIndex(B);
this.setTabnavShadowClasses(A,this._HOVER);},unhoverTab:function(B){var A=this.getIndex(B);
this.setTabnavShadowClasses(A,this._UNHOVER);},setTabnavShadowClasses:function(H,A){var K=$(this._tabNavParentId);
if(typeof(this._tabs=="undefined")){this._tabs=MAPSGUI.Util.getElementsByClass(K,this._tabClass);
}var C=MAPSGUI.Util.getElementsByClass(K,this._shadowClass);var I=this._tabs.length-1;
var D="";var F="";if(A===this._ACTIVE){for(t=0;t<this._tabs.length;t++){if(t===0){D="first-tab";
}else{if(t===I){D="last-tab";F="last-shadow";this._tabs[t].getElementsByTagName("a")[0].className="last-link";
}else{D="";F="";}}if(t===H-1){this._tabs[t].className=this._tabClass+" active "+D;
C[t].className=this._shadowClass+" shadow-active "+F;if(D==="last-tab"){$("little_helper").style.display="block";
}else{$("little_helper").style.display="none";}}else{this._tabs[t].className=this._tabClass+" "+D;
C[t].className=this._shadowClass+" "+F;}}}else{if(H===this._activeIndex&&this._naviVisible===true){return;
}var B=C[this._activeIndex-1];var J=this._tabs[H-1];var G=C[H-1];var E=this._activeIndex-H;
if(this._tabs.length===H){if(A===this._HOVER&&this._naviVisible===true&&$("box_navi_content").style.display=="block"){$("little_helper").style.display="block";
}else{if(A===this._UNHOVER){$("little_helper").style.display="none";}}}if((E!==1&&E!==-1)||this._naviVisible===false){this.toggleClasses(J,"hover",A);
this.toggleClasses(G,"shadow-active",A);}else{if(E===1){this.toggleClasses(J,"hover",A);
this.toggleClasses(G,"shadow-hover",A);}else{if(E===-1){this.toggleClasses(J,"hover",A);
this.toggleClasses(G,"shadow-active",A);this.toggleClasses(B,"shadow-active-hover",A);
if(this._tabs.length===H){this.toggleClasses(G,"shadow-active",A);}}}}}},toggleClasses:function(A,B,C){if(C===this._HOVER){MAPSGUI.Util.addClassName(A,B);
}else{if(C===this._UNHOVER){MAPSGUI.Util.removeClassName(A,B);}}},showHideContent:function(B){var A=this._contentIdPrefix+this._activeIndex;
$(A).style.display="none";$(this._contentIdPrefix+B).style.display="block";this._activeIndex=B;
},getIndex:function(A){var D=A.parentNode;var B=1;if(typeof(D)=="object"){var C=D.className;
if(typeof(this._tabs=="undefined")){this._tabs=MAPSGUI.Util.getElementsByClass($(this._tabNavParentId),this._tabClass);
}if(typeof(D.className)!="undefined"){for(w=0;w<this._tabs.length;w++){if(this._tabs[w]===D){return w+1;
}}}}else{if(typeof(A)=="number"){B=A;}else{if(typeof(A)=="string"){B=parseInt(A,10);
}}}return B;},toggleNaviVisibility:function(){if(this._naviVisible===true){this.hideNav();
}else{this.showNav();}},showNav:function(){var A=$(this._tabNavParentId);MAPSGUI.Util.removeClassName(A,"nothing-active");
if(MAPSGUI.Loged.reiternavi[this._activeIndex]!=0||MAPSGUI.Loged.user!=0){$(this._naviId).style.display="block";
$("close_searchdiv_link").style.display="block";$("route_reiternavi").className="";
}else{$(this._naviId).style.display="none";$("close_searchdiv_link").style.display="none";
$("route_reiternavi").className="locked";}$(this._arrowIconId).parentNode.style.display="block";
if(this._activeIndex===2){this.showGeoResult();}if(this._activeIndex===3&&MAPSGUI.Loged.reiternavi[3]==0){$("little_helper").style.display="none";
}this._naviVisible=true;MAPSGUI.Route.controlRouteDetail("close");},hideNav:function(){var A=$(this._tabNavParentId);
MAPSGUI.Util.addClassName(A,"nothing-active");$(this._naviId).style.display="none";
$(this._arrowIconId).parentNode.style.display="none";$("little_helper").style.display="none";
this.hideGeoResult();this.setAllNotActive();this._naviVisible=false;MAPSGUI.Route.controlRouteDetail("close");
},setAllNotActive:function(){var A=$(this._tabNavParentId);var D=MAPSGUI.Util.getElementsByClass(A,this._tabClass);
var C=MAPSGUI.Util.getElementsByClass(A,this._shadowClass);var E="";var B="";for(t=0;
t<D.length;t++){MAPSGUI.Util.removeClassName(D[t],"active");MAPSGUI.Util.removeClassName(C[t],"shadow-active");
}},hideGeoResult:function(){hideLayer("divresult");$("lnkShowAll").style.visibility="hidden";
$("btnOK").style.visibility="hidden";},showGeoResult:function(){var A=GEOCODING.getResultAslocationStrings();
if(A!=null){if(A.length>0){showLayer("divresult");}}$("lnkShowAll").style.visibility="visible";
$("btnOK").style.visibility="visible";},init:function(B){if(B===-1){return;}for(var A=0;
A<B.length;A++){this.showTab(B[A]);}}};MAPSGUI.Toggle={_allChecks:null,_allUnchecks:null,_infoContainerId:"box_tabcontent_3",_CHECK:1,_UNCHECK:2,_BOTH:3,_allClicked:false,_opened:new Array(),go:function(A,D){if(D){this._infoContainerId=D;
}var C=$(this._infoContainerId);var B=MAPSGUI.Util.getEquivalent(C,"js-toggle-head",A.parentNode,"js-toggle-content");
if(B.style.display!=="none"){B.style.display="none";A.className="box-closed";}else{B.style.display="block";
A.className="box-open";}MAPSGUI.closeActiveFilterLayer();},check:function(C,A){MAPSGUI.goToBackEnd=false;
var J=$(this._infoContainerId);var E=C.parentNode;var G=MAPSGUI.Util.getEquivalent(J,"js-toggle-head",E.parentNode,"js-toggle-content");
var K=G.getElementsByTagName("input");var B=MAPSGUI.Navi[K[0].id.toLowerCase()].parentId;
if(G.style.display==="none"){var D=E.parentNode.getElementsByTagName("h2")[0];MAPSGUI.Toggle.go(D);
}this._allClicked=true;var F=new Array();for(var H=0;H<K.length;H++){if(K[H].className.indexOf("checkbox-filter")===-1){if(A===this._CHECK){if(K[H].checked==false){F.push(K[H]);
}}else{if(K[H].checked==true){F.push(K[H]);}}}}var I=F.length-1;for(H=0;H<F.length;
H++){if(H===I){MAPSGUI.goToBackEnd=true;}F[H].click();}this._allClicked=false;MAPSGUI.goToBackEnd=true;
},handleCheckLinks:function(B,C){var A=B.getElementsByTagName("a");if(C===this._CHECK){A[0].className="link-transparent";
A[1].className="";}else{if(C===this._UNCHECK){A[0].className="";A[1].className="link-transparent";
}else{if(C===this._BOTH){A[0].className="";A[1].className="";}}}},init:function(){if(MAPSGUI.Toggle._opened===-1){return;
}var A=$(this._infoContainerId);var C=MAPSGUI.Util.getElementsByClass(A,"js-toggle-head");
for(b=0;b<C.length;b++){var B=C[b].getElementsByTagName("h2")[0];if(MAPSGUI.Toggle._opened[b]!=1){this.go(B);
}}},setToggleHead:function(A){var E=$(this._infoContainerId);var D=MAPSGUI.Util.getElementsByClass(E,"module-toggle-head-"+A)[0];
var B=MAPSGUI.Util.getEquivalent(E,"js-toggle-head",D,"js-toggle-content");var F=B.getElementsByTagName("input");
var C=0;for(u=0;u<F.length;u++){if(F[u].checked==true&&F[u].className.match("checkbox-filter")===null){C++;
}}this.writeSum(A,C);if(C===MAPSGUI.Navi[A].numberOfChildren){this.handleCheckLinks(D,this._CHECK);
}else{if(C!==0){this.handleCheckLinks(D,this._BOTH);}else{if(C===0){this.handleCheckLinks(D,this._UNCHECK);
}}}},writeSum:function(A,D){var G=$(this._infoContainerId);var E=MAPSGUI.Util.getElementsByClass(G,"module-toggle-head-"+A)[0];
var F=E.getElementsByTagName("h2")[0];var C=F.innerHTML;if(C.match(/\((.*)\)/)!==null){C=C.substring(0,C.length-4);
}var B=C;if(D!==0){var B=C+" ("+D+")";}F.innerHTML=B;},resetGui:function(){var B=$(this._infoContainerId);
var D=MAPSGUI.Util.getElementsByClass(B,"js-toggle-head");for(var F=0;F<D.length;
F++){var C=D[F].className.split("-");var A=C[C.length-1];var E=A.replace(" clearfix","");
this.writeSum(E,0);}}};MAPSGUI.SimpleToggle={init:function(){var A=MAPSGUI.Util.getElementsByClassName("module-simple-toggle","div");
var D=new Array();for(var G=0;G<A.length;G++){if(MAPSGUI.Util.hasClassName(A[G],"box-table")){D[G]=false;
if(!MAPSGUI.Util.hasClassName(A[G].parentNode.parentNode,"bg")){D[G]=true;}if(MAPSGUI.Util.hasClassName(A[G],"box-closed")){var H=A[G].parentNode.parentNode;
var E=A[G].parentNode.parentNode.parentNode.getElementsByTagName("TR");for(var F=0;
F<E.length;F++){if(E[F]==H){var I=F+1;}}var C=E[I];C.style.position="absolute";C.style.left="-3000px";
MAPSGUI.Util.removeClassName(A[G],"box-open");MAPSGUI.Util.addClassName(A[G],"box-closed");
}else{MAPSGUI.Util.addClassName(A[G].parentNode.parentNode,"box-toggle");MAPSGUI.Util.removeClassName(A[G].parentNode.parentNode,"bg");
}if(D[G]==false){A[G].getElementsByTagName("h2")[0].onclick=function(){MAPSGUI.SimpleToggle.toggle(this,"table",false);
};}else{A[G].getElementsByTagName("h2")[0].onclick=function(){MAPSGUI.SimpleToggle.toggle(this,"table",true);
};}}else{A[G].getElementsByTagName("h2")[0].onclick=function(){MAPSGUI.SimpleToggle.toggle(this);
};if(MAPSGUI.Util.hasClassName(A[G],"box-closed")){var B=A[G].getElementsByTagName("div");
for(var F=0;F<B.length;F++){if(MAPSGUI.Util.hasClassName(B[F],"box-content")){B[F].style.display="none";
}}}}}},toggle:function(H,C,D){var B=H.parentNode.parentNode;var A=B.getElementsByTagName("div");
if(C){var I=B.parentNode.parentNode;var E=B.parentNode.parentNode.parentNode.getElementsByTagName("TR");
for(var F=0;F<E.length;F++){if(E[F]==I){var J=F+1;}}var G=E[J];if(!MAPSGUI.Util.hasClassName(B.parentNode.parentNode,"box-toggle")){G.style.position="static";
G.style.left="0";MAPSGUI.Util.removeClassName(B,"box-closed");MAPSGUI.Util.addClassName(B,"box-open");
MAPSGUI.Util.removeClassName(B.parentNode.parentNode,"bg");MAPSGUI.Util.addClassName(B.parentNode.parentNode,"box-toggle");
}else{G.style.position="absolute";G.style.left="-3000px";MAPSGUI.Util.removeClassName(B,"box-open");
MAPSGUI.Util.addClassName(B,"box-closed");if(D==false){MAPSGUI.Util.addClassName(B.parentNode.parentNode,"bg");
}MAPSGUI.Util.removeClassName(B.parentNode.parentNode,"box-toggle");}}else{for(var F=0;
F<A.length;F++){if(MAPSGUI.Util.hasClassName(A[F],"box-content")){if(A[F].style.display=="none"){A[F].style.display="block";
MAPSGUI.Util.removeClassName(B,"box-closed");MAPSGUI.Util.addClassName(B,"box-open");
}else{A[F].style.display="none";MAPSGUI.Util.removeClassName(B,"box-open");MAPSGUI.Util.addClassName(B,"box-closed");
}return;}}}}};MAPSGUI.closeActiveFilterLayer=function(A){if(MAPSGUI.activeFilterId===""){return;
}var B=true;if(typeof(A)!="undefined"){if(MAPSGUI.activeFilterId===A){B=false;}}var C=$(MAPSGUI.Filters._layerIdPrefix+MAPSGUI.activeFilterId);
if(B){MAPSGUI.Filters.hideFilterLayer(MAPSGUI.activeFilterId);}};MAPSGUI.Filters={_layerIdPrefix:"layer_filter_",_filterIconIdPrefix:"filter_icon_",_filterContainer:"filter_data_container",_openIds:new Array(),toggleFilterLayer:function(B,A){A.cancelBubble=true;
if(A.stopPropagation){A.stopPropagation();}if(arrayContains(B,this._openIds)===true){this.hideFilterLayer(B,A);
}else{this.showFilterLayer(B,A);}},showFilterLayer:function(D,B){var E="";if(D.indexOf("corridor")!=-1){var A=D.split("corridor_");
D=A[1];E="corridor_";}if(MAPSGUI.User.loginResetMod==false){MAPSGUI.User.openedFilterLayerId=D;
}if(MAPSGUI.Toggle._allClicked===false){var C=$(this._layerIdPrefix+E+D);$(this._filterIconIdPrefix+D).style.position="relative";
C.style.display="block";this._openIds.push(D);MAPSGUI.closeActiveFilterLayer(D);MAPSGUI.activeFilterId=D;
}},hideFilterLayer:function(C,B){if(MAPSGUI.User.loginResetMod==false){MAPSGUI.User.openedFilterLayerId="";
}if(MAPSGUI.Toggle._allClicked===false){if(typeof(B)!="undefined"){B.cancelBubble=true;
if(B.stopPropagation){B.stopPropagation();}}var A=$(this._layerIdPrefix+C);$(this._filterIconIdPrefix+C).style.position="static";
A.style.display="none";arrayRemoveElement(C,this._openIds);}},checkCheckbox:function(B){var A=B.parentNode.getElementsByTagName("input")[0];
A.click();},uncheckAll:function(A,E,F){var C="";if(A.indexOf("corridor")!=-1){var G=A.split("corridor_");
A=G[1];C="corridor_";$("icon_set_corridor_"+A).style.display="none";}var D=$(this._layerIdPrefix+C+A);
var B=D.getElementsByTagName("input");for(i=0;i<B.length;i++){if(B[i].type=="checkbox"){if(B[i].checked==true){B[i].checked=false;
}}}MAPSGUI.filterCounter[C+A]=0;$("icon_set_"+A).style.display="none";if(E!==null){MAPSGUI.Util.addClassName(E,"link-transparent");
}$("box_filter_count_"+C+A).innerHTML="";if(A.indexOf("corridor_")==-1){if(MAPSGUI.Navi[A].level===3){setHiTab=MAPSGUI.Navi[A].parentId;
}else{setHiTab=A;}if(F===true){MAPSGUI.setHiTab(setHiTab,0);}}MAPSGUI.Corridor.setCorridorRubricstring();
},reset:function(){for(v=0;v<adacfilters.infoRegister.length;v++){var A=adacfilters.infoRegister[v];
$("icon_set_"+A).style.display="none";$("box_filter_count_"+A).innerHTML="";MAPSGUI.filterCounter[A]=0;
}},buildDescString:function(E){var B="";if(typeof(adacfilters[E])!="undefined"){var D=adacfilters[E].filter;
var C=false;for(var A=0;A<=D.length;A++){if(typeof(D[A])!="undefined"){if($("filter_"+D[A]).checked===true){B+=adacfilters[E].filterdesc[A]+", ";
C=true;}}}B=B.substring(0,B.length-2);if(C){B=" ("+B+")";}}return B;}};MAPSGUI.hideSearchLayer=function(){MAPSGUI.Tabnav.hideNav();
};MAPSGUI.writeInfoTypes=function(){var F="";MAPSGUI.Navi=new Object();var D=false;
var E=new Array();var O=0;for(i in adacnavi){if(i!=""&&i!="undefined"&&i!="indexOf"&&i!="lastIndexOf"){MAPSGUI.Navi[i]=new Object();
MAPSGUI.Navi[i].id=i;MAPSGUI.Navi[i].name=adacnavi[i]["mainnavi"];MAPSGUI.Navi[i].level=1;
E.push(i);var Q=0;F+='<div class="module-toggle-head js-toggle-head  module-toggle-head-'+i+' clearfix">';
F+='    <h2 class="box-open" onclick="MAPSGUI.Toggle.go(this);" onselectstart="event.returnValue=false;">'+adacnavi[i]["mainnavi"]+"</h2>";
F+="    <div>";F+='        <a href="javascript:void(0)"  title="'+MAPSGUI.Translate.info_checkAllTitle+'" onclick ="MAPSGUI.Toggle.check(this, MAPSGUI.Toggle._CHECK);">'+MAPSGUI.Translate.info_checkAll+"</a>";
F+="        <span> / </span>";F+='        <a href="javascript:void(0)" class="link-transparent" title="'+MAPSGUI.Translate.info_uncheckAllTitle+'" onclick ="MAPSGUI.Toggle.check(this, MAPSGUI.Toggle._UNCHECK);">'+MAPSGUI.Translate.info_uncheckAll+"</a>";
F+="    </div>";F+="</div>";F+='<div class="module-toggle-content js-toggle-content">';
F+='    <div class="box-info-container clearfix">';var L=new Array();var M=new Array();
for(j=0;j<adacnavi[i]["rubric"].length;j++){D=false;var I=adacnavi[i]["rubric"][j];
var U=adacnavi[i]["rubricdesc"][j];var C=MAPSGUI[I].icon;MAPSGUI.Navi[I]=new Object();
MAPSGUI.Navi[I].listLoaded=false;MAPSGUI.Navi[I].id=I;MAPSGUI.Navi[I].name=U;MAPSGUI.Navi[I].level=2;
MAPSGUI.Navi[I].parentId=i;M.push(I);if(adacnavi[i]["rubricdesc"][adacnavi[i]["rubric"][j]].length>0){var G=new Object();
G.parentId=I;G.title=U;G.subIds=adacnavi[i]["rubric"][adacnavi[i]["rubric"][j]];G.subNames=adacnavi[i]["rubricdesc"][adacnavi[i]["rubric"][j]];
L.push(G);MAPSGUI.Navi[I].hasLevel3=true;MAPSGUI.Navi[I].subIds=G.subIds;MAPSGUI.User.level2Elements[I]=new Object();
MAPSGUI.User.level2Elements[I].hasLevel3=true;MAPSGUI.User.level2Elements[I].subIds=G.subIds;
for(var J=0;J<MAPSGUI.Navi[I].subIds.length;J++){var N=MAPSGUI.Navi[I].subIds[J];
MAPSGUI.User.level3Elements[N]=new Object();MAPSGUI.User.level3Elements[N].parentId=I;
}}else{MAPSGUI.Navi[I].hasLevel3=false;if(typeof(adacfilters[I])!="undefined"){var R="filter_"+adacfilters[I].filter[j];
MAPSGUI.User.filterElements[R]=new Object();MAPSGUI.User.filterElements[R].parentId=I;
D=true;}F+=MAPSGUI.writeCheckbox(i,I,U,C,"",D,MAPSGUI[I].loged);Q++;}}MAPSGUI.writeSiblings(M);
F+="   </div>";for(k=0;k<L.length;k++){subIds=L[k].subIds;subNames=L[k].subNames;
var B=L[k].parentId;var T="";var S="";var P="";var A="";var K=adacfilters[L[k].parentId];
if(typeof(K)!="undefined"){T='<div id="filter_icon_'+B+'" onclick="MAPSGUI.Filters.showFilterLayer(\''+B+'\', event);" title="'+MAPSGUI.Translate.set_filter+'" class="sprite-icons icon-filter icon-filter-outer">';
S='<!----></div><div title="'+MAPSGUI.Translate.filter_is_set+'"  class="sprite-icons icon-filter-set" id="icon_set_'+B+'"><!----></div>';
P="filter-set";}F+='<div class="headline-wrapper clearfix">';F+="<h3 "+A+' class="'+P+'">'+L[k].title+"</h3>";
F+=T;if(typeof(K)!="undefined"){F+=MAPSGUI.writeFilterLayer(B);}F+=S;F+="</div>";
F+='<div class="box-info-container js-level3-container clearfix">';var H=new Array();
for(l=0;l<subIds.length;l++){D=false;var I=subIds[l];var U=subNames[l];var C=MAPSGUI[I].icon;
Q++;MAPSGUI.Navi[I]=new Object();MAPSGUI.Navi[I].id=I;MAPSGUI.Navi[I].name=U;MAPSGUI.Navi[I].level=3;
MAPSGUI.Navi[I].parentId=B;H.push(I);if(typeof(adacfilters[I])!="undefined"){var R="filter_"+adacfilters[I].filter[l];
MAPSGUI.User.filterElements[R]=new Object();MAPSGUI.User.filterElements[R].parentId=I;
D=true;}F+=MAPSGUI.writeCheckbox(i,I,U,C,B,D,MAPSGUI[I].loged);}MAPSGUI.writeSiblings(H);
F+="</div>";}F+="</div>";MAPSGUI.Navi[i].numberOfChildren=Q;}}MAPSGUI.writeSiblings(E);
return F;};MAPSGUI.writeCheckbox=function(L,G,O,B,H,F,D){var E="";var N="";var M="";
var C="";var I="";if(F!==false){var A="onclick=\"MAPSGUI.Filters.showFilterLayer('"+G+"', event)\"";
if(D==0&&MAPSGUI.Loged.user==0){A='onclick="MAPSGUI.User.logInLayer();"';}N='<div id="filter_icon_'+G+'"'+A+'title="'+MAPSGUI.Translate.set_filter+'" class="sprite-icons icon-filter icon-filter-outer">';
M='<!----></div><div title="'+MAPSGUI.Translate.filter_is_set+'"  class="sprite-icons icon-filter-set" id="icon_set_'+G+'"><!----></div>';
C="filter-set";}if(G.indexOf("corridor")!=-1){var K=G.split("corridor_");G=K[1];}var J="";
if(L==null){J="MAPSGUI.Corridor.setCorridorIcon('"+G.toLowerCase()+"')";E+='<div class="checkbox-wrapper clearfix">';
E+='<input type="checkbox" onclick="'+J+'" id="corridor_'+G.toLowerCase()+'" class="checkbox" />';
E+='<label for="corridor_'+G.toLowerCase()+'" class="'+C+'"><span class="'+B+'"><!-- //--></span><span>'+O+"</span></label>";
E+=N;if(F!==false){E+=MAPSGUI.writeFilterLayer("corridor_"+G);}E+=M;if(D==0){E+='<span class="sprite-icons twostars-small">&nbsp;</span>';
}E+="</div>";}else{if(D==0&&MAPSGUI.Loged.user==0){J="MAPSGUI.User.logInLayer('infoIcon', this);";
}else{J="MAPSGUI.showTabs('"+G.toLowerCase()+"','','"+L.toLowerCase()+"','0','"+H.toLowerCase()+"',0);"+I;
if(MAPSGUI.Util.isInArray(MAPSGUI.withoutTable,G)!=-1){J="MAPSGUI.handleNaviException('"+G+"');";
}J+="if(this.checked){ WEBTREKK.NaviWebTrek('"+G.toLowerCase()+"','"+L.toLowerCase()+"','"+H.toLowerCase()+"',0)}";
}E+='<div class="checkbox-wrapper clearfix">';E+='<input type="checkbox" onclick="'+J+'" id="'+G.toLowerCase()+'" class="checkbox" />';
E+='<label for="'+G.toLowerCase()+'" class="'+C+'"><span class="'+B+'"><!-- //--></span><span>'+O+"</span></label>";
E+=N;if(F!==false){E+=MAPSGUI.writeFilterLayer(G);}E+=M;if(D==0){E+='<span class="sprite-icons twostars-small">&nbsp;</span>';
}E+="</div>";}return E;};MAPSGUI.toggleCheckboxForIcon=function(A){var B=A.previousSibling;
if(B.type=="checkbox"){if(B.checked==true){B.checked=false;}else{B.checked=true;}}};
MAPSGUI.writeSiblings=function(A){for(d=0;d<A.length;d++){MAPSGUI.Navi[A[d]].siblings=A;
}};MAPSGUI.writeTabs=function(){var D="";for(tab in adacnavi){if(tab!=""&&tab!="undefined"&&tab!="indexOf"&&tab!="lastIndexOf"){for(j=0;
j<adacnavi[tab]["rubric"].length;j++){D=adacnavi[tab]["rubricdesc"][j];D=D.replace(/-<br\s*[\/]?>\//gi,"/").replace(/-<br\s*[\/]?>/gi,"");
D=D.replace(/<br\s*[\/]?>\//gi,"/").replace(/<br\s*[\/]?>/gi,"");if(D=="Hotels &amp; Camping"){D="Camping";
}var B=adacnavi[tab]["rubric"][j];if(adacnavi[tab]["rubric"][B]){for(var C=0;C<adacnavi[tab]["rubric"][B].length;
C++){D=adacnavi[tab]["rubricdesc"][B][C];D=D.replace(/-<br\s*[\/]?>\//gi,"/").replace(/-<br\s*[\/]?>/gi,"");
D=D.replace(/<br\s*[\/]?>\//gi,"/").replace(/<br\s*[\/]?>/gi,"");document.write('<div id="reiter-'+adacnavi[tab]["rubric"][B][C]+'" class="none tab-wrapper">');
document.write('<div id="div-'+adacnavi[tab]["rubric"][B][C]+'" class="left bg-tablelist">');
document.write('    <a id="link-'+adacnavi[tab]["rubric"][B][C]+'" class="tablelist" href="javascript:void(0)" onclick="MAPSGUI.listTabClicked = true;MAPSGUI.setHiTab(\''+adacnavi[tab]["rubric"][B][C]+"',0);\">"+D+"</a>");
document.write('    <a class="box-close-tab"  title = "'+MAPSGUI.Translate.table_closeTab+'" href="javascript:void(0)" onclick="MAPSGUI.closeListTab(\''+adacnavi[tab]["rubric"][B][C]+"');\"><!----></a>");
document.write("</div>");document.write('<div id="shadowdiv-'+adacnavi[tab]["rubric"][B][C]+'" class="left bg-tablelist-shadow"></div>');
document.write("</div>");}}document.write('<div id="reiter-'+adacnavi[tab]["rubric"][j]+'" class="none tab-wrapper">');
document.write('<div id="div-'+adacnavi[tab]["rubric"][j]+'" class="left bg-tablelist">');
document.write('    <a id="link-'+adacnavi[tab]["rubric"][j]+'" class="tablelist" href="javascript:void(0)" onclick="MAPSGUI.listTabClicked = true;MAPSGUI.setHiTab(\''+adacnavi[tab]["rubric"][j]+"',0);\">"+D+"</a>");
document.write('    <a class="box-close-tab"  title = "'+MAPSGUI.Translate.table_closeTab+'" href="javascript:void(0)" onclick="MAPSGUI.closeListTab(\''+adacnavi[tab]["rubric"][j]+"');\"><!----></a>");
document.write("</div>");document.write('<div id="shadowdiv-'+adacnavi[tab]["rubric"][j]+'" class="left bg-tablelist-shadow"></div>');
document.write("</div>");}}}var A="route";document.write('<div id="reiter-'+A+'" class="none tab-wrapper">');
document.write('<div id="div-'+A+'" class="left bg-tablelist">');document.write('    <a id="link-'+A+'" class="tablelist" href="javascript:MAPSGUI.listTabClicked = true; MAPSGUI.setHiTab(\''+A+"',0);\">Route im Detail</a>");
document.write("</div>");document.write('<div id="shadowdiv-'+A+'" class="left bg-tablelist-shadow"></div>');
document.write("</div>");};MAPSGUI.writeTabnav=function(){var B="";var A="";var C="";
for(var D=0;D<adactabs.length;D++){if(MAPSGUI.Loged.reiternavi[D+1]==0){A='<span class="sprite-icons twostars-small">&nbsp;</span>';
}else{A="";}if(MAPSGUI.Loged.reiternavi[D+1]==0&&MAPSGUI.Loged.user==0){C=' onclick = "MAPSGUI.Tabnav._activeIndex = '+(D+1)+'; MAPSGUI.User.logInLayer(); return false;"';
}else{C=" onclick=\"MAPSGUI.Tabnav.showTab(this);AMAMAPS.showCardOptionen('reset');\"";
}B+='<li class="jsTab">';B+='<a href="javascript:void(0)" title="'+adactabs[D].title+'"'+C+' onmouseover="MAPSGUI.Tabnav.hoverTab(this)" onmouseout="MAPSGUI.Tabnav.unhoverTab(this)" style="width: '+adactabs[D].width+'">'+adactabs[D].desc+A+"</a>";
B+="</li>";if(D==2){B+='<li class="jsShadow last-shadow"><!----></li>';}else{B+='<li class="jsShadow"><!----></li>';
}}return B;};MAPSGUI.writeFilterLayer=function(A){var C="";if(A.indexOf("corridor")!=-1){var D=A.split("corridor_");
A=D[1];C="corridor_";}var F="";F+='<div class="module-flter-layer" id="layer_filter_'+C+A+'">';
F+='    <div class="filter-inner clearfix">';F+='       <div class="filter-head clearfix">';
F+='            <div class="sprite-icons icon-filter" onclick="MAPSGUI.Filters.hideFilterLayer(\''+A+"', event);\"><!----></div>";
F+="            <h4>";F+=MAPSGUI.Translate.filter_headline+'&nbsp;<span id="box_filter_count_'+C+A+'"><!----></span>:';
F+="            </h4>";F+="            <a onclick=\"MAPSGUI.Filters.hideFilterLayer('"+C+A+'\', event);" class="close-button sprite-icons close" title="'+MAPSGUI.Translate.filter_close+'" href="javascript: void(0);"><!----></a>';
F+="       </div>";F+='       <div class="module-toggle-content clearfix">';F+='            <div class="box-info-container">';
var G=adacfilters[A].filter;var B=adacfilters[A].filterdesc;var E="";for(d=0;d<G.length;
d++){F+='                <div class="checkbox-wrapper clearfix">';F+='                    <input type="checkbox" class="checkbox checkbox-filter" id="'+C+"filter_"+G[d]+'" onclick="MAPSGUI.setFilter(\''+C+G[d]+"', '"+C+A+"') \" />";
if(typeof(MAPSGUI[G[d]].icon)=="undefined"){E="without-icon";}F+='                    <label class="label '+E+'" for="'+C+"filter_"+G[d]+'"><span class="box-icon clusterOnSite '+MAPSGUI[G[d]].icon+'"><!-- //--></span><span>'+B[d]+"</span></label>";
F+="                </div>";}F+="            </div>";F+="        </div>";F+='    <div class="filter-footer clearfix">';
if(G.length>1){F+="        <span onclick=\"MAPSGUI.Filters.uncheckAll('"+C+A+'\', this, true);" class="uncheck-all link-transparent" id="'+C+"link_uncheckall_"+A+'">'+MAPSGUI.Translate.filter_no_filter+"</span>";
}F+="        <span onclick=\"MAPSGUI.Filters.hideFilterLayer('"+C+A+'\', event);" class="close-link">'+MAPSGUI.Translate.close+"</span>";
F+="    </div>";F+="    </div>";F+="</div>";return F;};MAPSGUI.writeRouteInfo=function(){for(var B=0;
B<routeInfo.length;B++){var A=false;if(typeof(adacfilters[routeInfo[B]["parent"]])!="undefined"){A=true;
}var C=MAPSGUI.User.loged;document.write(MAPSGUI.writeCheckbox(null,routeInfo[B]["id"],MAPSGUI[routeInfo[B]["parent"]]["text"],MAPSGUI[routeInfo[B]["parent"]]["icon"],MAPSGUI[routeInfo[B]["parent"]]["id"],A,C));
}};MAPSGUI.writeExtendedRouteInfo=function(){for(var B=0;B<extendedRouteInfo.length;
B++){var A=false;if(typeof(adacfilters[extendedRouteInfo[B]["parent"]])!="undefined"){A=true;
}var C=MAPSGUI.User.loged;document.write(MAPSGUI.writeCheckbox(null,extendedRouteInfo[B]["id"],MAPSGUI[extendedRouteInfo[B]["parent"]]["text"],MAPSGUI[extendedRouteInfo[B]["parent"]]["icon"],MAPSGUI[extendedRouteInfo[B]["parent"]]["id"],A,C));
}};MAPSGUI.Ids=new Array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","aa","ab","ac","ad","ae","af","ag","ah","ai","ah","aj","ak","al","am","an","ao","ap","aq","ar","as","at");
MAPSGUI.ExtInfosIds=new Array("posBaustelle","posRaststaetten","posTankstellen","posErdgas_Tankstellen","posAutogas_Tankstellen","posRestaurant","posCamping","posStellplaetze");
MAPSGUI.Route={_continent:"EU",_continentParams:{"eu":1,"nam":2,"aus":3},_change_continent:"EU",_allStops:new Array(),_deleteStop:"",_stopIdPrefix:"station_stop_",_containerId:"station_wrap",_stopWrapIdPrefix:"stop_",_inputClassStart:"form-input-start",_inputClassWaystation:"form-input-waystation",_inputClassEnd:"form-input-end",_stopCounter:2,_stopsSentAndNotReceved:0,_maxStops:g_RoutingMaxStation,_openResult:{},_isGeocoding:false,_values:new Array(),_checkboxes:new Array(),_suggestions:new Array(),_defaultValues:["Start z.B. Paris oder Ulm Hauptstr. 3","Zwischenstation z.B. Paris oder Ulm Hauptstr. 3","Ziel z.B. Paris oder Ulm Hauptstr. 3"],_statusExtCorridorLayer:"open",_dateHasError:false,init:function(B,D){this._maxStops=D;
this._continent=B;var C=new MAPSGUI.Stop("a");var A=new MAPSGUI.Stop("b");this._allStops.push(C);
this._allStops.push(A);$("continent_eu").checked=true;},addStationInArray:function(B){GEOCODING.setContextKey();
var A=new MAPSGUI.Stop(B,"addStation");this._allStops.push(A);this.saveValues("addStation");
this.reInit(B);},addStation:function(B){var A="";A+='<div class="box-stop" id="stop_'+B+'"><span class="box-error"></span><div class="box-stop-inner"><div onclick="MAPSGUI.Route.switchPosition(\''+B+'\');" style="display: none;" class="box-switch-position"><!----></div><input id="station_stop_'+B+'" type="text" value="'+this._defaultValues[2]+'" class="form-input-end" style="" /><input id="Hf_station_stop_'+B+'" type="hidden" value="'+this._defaultValues[2]+'" class="form-input-end" style="" /><span id="Results_'+B+'" class="box-dropdown-link" onclick ="MAPSGUI.Route.showResults(\''+B+'\', this);" style="display: none"></span><div class="box-dropdown"><ul></ul></div><div class="box-meta clearfix" style="display: none;"><input type="checkbox" checked="checked" id="box_umfahren_stop_'+B+'"><label for="box_umfahren_stop_'+B+'">Umfahren</label><div class="module-info-layer"><a onclick="MAPSGUI.Infolayer.show(this);" class="box-infoicon" href="javascript:void(0);"><!-- //--></a><div class="box-shadow" style="display:none;"><div class="box-inner"><a onclick="MAPSGUI.Infolayer.hide();" class="box-close" href="javascript:void(0);"><!-- //--></a><p>'+MAPSGUI.Translate.route_stopoverInfo+"</p></div></div></div><a onclick=\"MAPSGUI.Route.openDeleteStopLayer('"+B+'\');" class="box-delete" href="javascript:void(0)">&nbsp;</a></div></div></div>';
jQuery("#"+this._containerId).append(A);this.addStationInArray(B);$("box_reset_routesearch_default").className="";
$("box_reset_routesearch_default").onclick=function(){MAPSGUI.Route.resetRouteSearch();
};if(this._allStops.length>MAPSGUI.Route._maxStops){$("lnbAddStation").className="box-inactive";
$("lnbAddStation").onclick=function(){};}showLayer("box_tabcontent_1_button_1a");
showLayer("box_tabcontent_1_button_2a");hideLayer("box_tabcontent_1_button_1b");hideLayer("box_tabcontent_1_button_2b");
},removeError:function(A){if(!A.keepError&&A!=="null"){A.errElement.style.display="none";
MAPSGUI.Util.removeClassName(A.inputElement,"box-has-error");}},openDeleteStopLayer:function(A){var B=$(this._stopIdPrefix+A).value;
if(MAPSGUI.Util.checkStringInArray(this._defaultValues,B)){this.deleteStop(A);}else{this._deleteStop=A;
$("content_stop_name").innerHTML=$(this._stopIdPrefix+A).value;MAPSGUI.showOpacityLayer("infolayer_delete_stop");
showLayer("deletestationbiglayer");MAPSGUI.setInfoLayerPos();}},saveValues:function(B){for(var D=0;
D<this._allStops.length;D++){var A=this._allStops[D];var C=jQuery("#"+this._stopWrapIdPrefix+A.id);
this._values[A.id]=C.find("input").eq(0).val();if($("box_umfahren_stop_"+A.id)&&B!="addStation"){if($("box_umfahren_stop_"+A.id).checked==true){this._checkboxes[A.id]=1;
}else{this._checkboxes[A.id]=0;}}this._suggestions[A.id]=C.find(".box-dropdown").html();
}},deleteStop:function(C){jQuery("#"+this._stopWrapIdPrefix+C).remove();var A=new Array();
for(var B=0;B<this._allStops.length;B++){if(C!=this._allStops[B].id){A.push(this._allStops[B]);
}else{delete this._allStops[B];}}this._allStops=A;this.reInit();hideLayer("infolayer_delete_stop");
jQuery("#lnbAddStation").removeClass("box-inactive");$("lnbAddStation").onclick=function(){MAPSGUI.Route.addStation(MAPSGUI.Route.generateId());
};GEOCODING.setContextKey();},switchPosition:function(A){var C=new Array();for(var E=0;
E<this._allStops.length;E++){var B=this._allStops[E];if(B!=="null"){if(A!==B.id){C.push(B);
}else{C.push(this._allStops[E+1]);C.push(B);E++;}}}this._allStops=C;this.saveValues();
var F=jQuery("#"+this._stopWrapIdPrefix+A);F.find(".box-meta").hide();F.find(".box-switch-position").hide();
var D=F.next();this.swapNodes(F.get(0),D.get(0));this.reInit();},swapNodes:function(D,A){var B=D.parentNode;
var C=D.nextSibling===A?D:D.nextSibling;A.parentNode.insertBefore(D,A);B.insertBefore(A,C);
},reInit:function(){if(this._dateHasError==true){this.disableButtons();}for(var H=0;
H<this._allStops.length;H++){var B=this._allStops[H];var C=jQuery("#"+this._stopWrapIdPrefix+B.id);
var E=C.find("input").eq(0);var G=C.find(".box-error");var D=C.find(".box-dropdown");
var A=C.find(".box-meta");B.inputElement=E.get(0);B.metaFunctionsElement=A.get(0);
B.errElement=G.get(0);B.dropDownBoxElement=D.get(0);if(this._checkboxes[B.id]!=undefined){if($("box_umfahren_stop_"+B.id)){if(this._checkboxes[B.id]==1){$("box_umfahren_stop_"+B.id).checked=true;
}else{$("box_umfahren_stop_"+B.id).checked=false;}}}if(this._suggestions[B.id]){C.find(".box-dropdown").html(this._suggestions[B.id]);
}C.removeClass("box-waystation");C.find(".box-switch-position").hide();C.find(".box-meta").hide();
E.removeClass("box-no-bg form-input-waystation form-input-start form-input-end");
C.find(".box-dropdown-link").css("right","22px");var I="";var F="";if(H==0){F="START";
C.find(".box-switch-position").show();if(!MAPSGUI.Util.checkStringInArray(this._defaultValues,this._values[B.id])&&this._values[B.id]!=""){if(this._values[B.id]){I=" box-no-bg";
}}else{B.inputElement.value=this._defaultValues[0];}E.addClass(this._inputClassStart+I);
C.find(".box-switch-position").show();}else{if(H==this._allStops.length-1){F="DESTINATION";
if(!MAPSGUI.Util.checkStringInArray(this._defaultValues,this._values[B.id])&&this._values[B.id]!=""){if(this._values[B.id]){I=" box-no-bg";
}}else{B.inputElement.value=this._defaultValues[2];}E.addClass(this._inputClassEnd+I);
}else{F="WAYSTATION";if(!MAPSGUI.Util.checkStringInArray(this._defaultValues,this._values[B.id])&&this._values[B.id]!=""){I=" box-no-bg";
}else{B.inputElement.value=this._defaultValues[1];}C.find(".box-meta").show();C.addClass("box-waystation"+I);
E.addClass("form-input-waystation"+I);C.find(".box-switch-position").show();C.find(".box-dropdown-link").css("right","131px");
}}this.setInputEvents(B,F);}},setInputEvents:function(A,E){var D=A.id;var C=$(this._stopIdPrefix+D);
C.onkeydown=function(){if(MAPSGUI.stopFocusMod==false){MAPSGUI.Util.addClassName(C,"box-no-bg");
C.value="";MAPSGUI.stopFocusMod=true;}};C.onclick=function(){if(!MAPSGUI.stopFocusMod){MAPSGUI.Util.addClassName(this,"box-no-bg");
if(MAPSGUI.Util.checkStringInArray(MAPSGUI.Route._defaultValues,this.value)){this.value="";
}MAPSGUI.stopFocusMod=true;}};C.onfocus=function(){if(MAPSGUI.stopFocusMod){MAPSGUI.Util.addClassName(this,"box-no-bg");
}if(MAPSGUI.Util.checkStringInArray(MAPSGUI.Route._defaultValues,this.value)){if(MAPSGUI.stopFocusMod){this.value="";
}}};$("box_umfahren_stop_"+D).onblur=function(){MAPSGUI.Route.saveValues();if(this.checked==true){A.isUmweg=true;
}else{A.isUmweg=false;}};jQuery(C).blur(function(){if(ROUTING.AutomcompleteRequest){ROUTING.AutomcompleteRequest.abort();
}var F=this.value;if(F===""){MAPSGUI.Route._values[D]="";}else{if(jQuery.inArray(F,MAPSGUI.Route._defaultValues)===-1){$("box_reset_routesearch_default").className="box-active";
$("box_reset_routesearch_default").onclick=function(){MAPSGUI.Route.resetRouteSearch();
};}else{if(E==="START"){this.value=MAPSGUI.Route._defaultValues[0];}else{if(E==="WAYSTATION"){this.value=MAPSGUI.Route._defaultValues[1];
}else{if(E==="DESTINATION"){this.value=MAPSGUI.Route._defaultValues[2];}}}}}MAPSGUI.Route.saveValues();
});C.onkeyup=function(F){var H;try{H=F.keyCode;}catch(G){H=window.event.keyCode;}var I=9;
var L=13;var J=32;var K=[L,38,40,I];if(jQuery.inArray(H,K)!==-1){return;}if(this.value.length<A.Station.country.length){A.isGeocoded=false;
$("Hf_station_stop_"+D).value="";}if(!A.isGeocoded||this.value!==MAPSGUI.Route._values[D]){if($("Hf_station_stop_"+D).value==""){jQuery("#stop_"+D).find(".box-dropdown-link").hide();
Reset_Station(A.Station);$("Hf_station_stop_"+D).value="";A.isGeocoded=false;MAPSGUI.Route.showButton(MAPSGUI.Route._GEOCODE);
}}};for(var B=0;B<MAPSGUI.Route._allStops.length;B++){if(MAPSGUI.Route._allStops[B]==="null"){continue;
}jQuery("#station_stop_"+MAPSGUI.Route._allStops[B].id).autocomplete({delay:300,minLength:2,source:function(I,H){var M=$("Hf_"+this.element[0].id).value;
var G=M.split("|")[1];var L=this.element[0].id.substring(13);var F;for(var K=0;K<MAPSGUI.Route._allStops.length;
K++){if(MAPSGUI.Route._allStops[K].id==L){F=MAPSGUI.Route._allStops[K];break;}}if(M==""){ROUTING.initAutocomplete(I,H,MAPSGUI.Route._continentParams[MAPSGUI.Route._continent.toLowerCase()],F);
}else{var J=this.element[0].value.substring(G.length).trim();if(J!=""){I.term=J;F.isGeocoded=false;
ROUTING.initAutocomplete(I,H,"-"+M,F);}M="";}},select:function(G,F){MAPSGUI.autocompleteSelected=true;
F.item.key=F.item.key.replace("<strong>","");F.item.key=F.item.key.replace("</strong>","");
F.item.label=F.item.label.replace("<strong>","");F.item.label=F.item.label.replace("</strong>","");
F.item.value=F.item.value.replace("<strong>","");F.item.value=F.item.value.replace("</strong>","");
ROUTING.autocompleteSelect(this.id,F.item.key);},focus:function(G,F){F.item.key=F.item.key.replace("<strong>","");
F.item.key=F.item.key.replace("</strong>","");F.item.label=F.item.label.replace("<strong>","");
F.item.label=F.item.label.replace("</strong>","");F.item.value=F.item.value.replace("<strong>","");
F.item.value=F.item.value.replace("</strong>","");}}).data("autocomplete")._renderItem=function(G,F){if(F.key.split("|").length==4){var I=$("Hf_"+this.element[0].id).value.split("|");
F.label=I[1]+" "+F.label;F.value=I[1]+" "+F.value;var H=F.key.split("|");I[1]=I[1]+" "+H[1];
I[5]=I[5]+" "+H[1];I[7]="0";I[9]=H[2];I[10]=H[3];F.key=I.join("|");}return jQuery("<li></li>").data("item.autocomplete",F).append("<a>"+F.label+"</a>").appendTo(G);
};}},checkRouteInput:function(){if(this._dateHasError==true){if(this.allGeocoded()){this.disableButtons(this._ROUTE);
}else{this.disableButtons(this._GEOCODE);}return;}var A=0;for(var B=0;B<this._allStops.length;
B++){var C=$(this._stopIdPrefix+this._allStops[B].id);if(!MAPSGUI.Util.checkStringInArray(MAPSGUI.Route._defaultValues,C.value)){A++;
}}if(A==0){$("box_reset_routesearch_default").className="box-inactive";$("box_reset_routesearch_default").onclick=function(){};
}else{$("box_reset_routesearch_default").className="";MAPSGUI.RouteCharge();$("box_reset_routesearch_default").onclick=function(){MAPSGUI.Route.resetRouteSearch();
};}},removeAllWayStations:function(){for(var B=0;B<this._allStops.length;B++){var A=this._allStops[B];
var C=jQuery("#"+this._stopWrapIdPrefix+A.id);A.isGeocoded=false;Reset_Station(A.Station);
$("Hf_station_stop_"+A.id).value="";if(C.hasClass("box-waystation")){C.remove();}else{var D=C.find(".box-dropdown-link");
D.html("");D.next().html("");D.removeClass("box-dropdown-link");}}this._allStops.splice(1,this._allStops.length-2);
this.reInit();},cleanDeafaultStations:function(){jQuery(".form-input-start").val(this._defaultValues[0]).removeClass("box-no-bg").focus();
jQuery(".form-input-end").val(this._defaultValues[2]).removeClass("box-no-bg");setTimeout(function(){jQuery(".form-input-start").focus();
},1000);},switchContinent:function(A,O){this._continent=A;var E="module-stops module-eu";
if(O!="resetRoutSearch"){this.resetRouteSearch();}jQuery("#route_options_avoiding_maut").parent().show();
jQuery("#route_options_avoiding_vignettenpflicht").parent().show();showLayer("routeoptions_excluding_lands");
if(A==="NAM"){E="module-stops module-nam";jQuery("#route_options_avoiding_maut").parent().hide();
jQuery("#route_options_avoiding_vignettenpflicht").parent().hide();hideLayer("routeoptions_excluding_lands");
jQuery("#box_tabcontent_1_options").find(".module-simple-toggle").eq(0).hide();this._defaultValues=["Start z.B. Boston oder Boston State Street 10","Zwischenstation z.B. Boston oder Boston State Street 10","Ziel z.B. Boston oder Boston State Street 10"];
$("HfContextKey").value="NAM";SetLogicalMap("NAM");var D=497251.817896212,J=6713020.75893697,B=4702941.83875682,H=3007153.07046844;
AMAMAPS.AMAsetRect(D,J,H,B,"");}else{if(A==="AUS"){jQuery("#box_tabcontent_1_options").find(".module-simple-toggle").eq(0).hide();
E="module-stops module-nz";jQuery("#route_options_avoiding_maut").parent().hide();
jQuery("#route_options_avoiding_vignettenpflicht").parent().hide();hideLayer("routeoptions_excluding_lands");
this._defaultValues=["Start z.B. Sydney","Zwischenstation z.B. Sydney","Ziel z.B. Sydney"];
$("HfContextKey").value="AUS";SetLogicalMap("WORLD");var C=6720979.51925994,G=4220360.64549168,F=2666567.28092461,L=8274772.88382701;
AMAMAPS.AMAsetRect(C,G,L,F,"");}else{jQuery("#box_tabcontent_1_options").find(".module-simple-toggle").eq(0).show();
this._defaultValues=new Array("Start z.B. Paris oder Ulm Hauptstr. 3","Zwischenstation z.B. Paris oder Ulm Hauptstr. 3","Ziel z.B. Paris oder Ulm Hauptstr. 3");
$("HfContextKey").value="EU";SetLogicalMap("EU");var N=3905129.22212423;var M=6558840.0403805;
var Q=5151326.77787577;var P=5021440.9596195;AMAMAPS.AMAsetRect(N,M,Q,P,"");}}for(var K=0;
K<this._allStops.length;K++){var I=this._allStops[K];I.inputElement.value="";if(K==0){I.inputElement.defaultValue=this._defaultValues[0];
}else{I.inputElement.defaultValue=this._defaultValues[2];}I.inputElement.focus();
I.inputElement.blur();}GEOCODING.setContextKey();jQuery(".box-stop .box-dropdown").html("").hide();
hideLayer("infolayer_clear_routesearch_input");hideLayer("clearroutebiglayer");hideLayer("opacitydiv");
hideLayer("actions_routenempfehlung");},showSwitchContinentLayer:function(A){if(A!=this._continent){MAPSGUI.showOpacityLayer("infolayer_clear_routesearch_input");
showLayer("clearroutebiglayer");MAPSGUI.setInfoLayerPos();this._change_continent=A;
}if(A=="EU"){$("headline_routesearch_continent").innerHTML="Europa";}else{if(A=="NAM"){$("headline_routesearch_continent").innerHTML="Nordamerika";
}else{$("headline_routesearch_continent").innerHTML="Australien/Neuseeland";}}},chancelSwitchContinentLayer:function(){$("continent_"+this._continent).checked=true;
hideLayer("infolayer_clear_routesearch_input");hideLayer("clearroutebiglayer");hideLayer("opacitydiv");
},cancelSwitchContinent:function(){var A=$("continent_"+this._continent.toLowerCase());
A.checked=true;hideLayer("opacitydiv");hideLayer("clearroutebiglayer");},resetRouteSearch:function(C){$("box_reset_routesearch_default").className="box-inactive";
$("box_reset_routesearch_default").onclick=function(){};this.removeAllWayStations();
ADACMapsRouteplanerClearExcludeCountries();ROUTING.CloseRouteInfo();this.showButton(this._GEOCODE);
showLayer("box_content_routenplaner_1");showLayer("box_tabcontent_1_options");hideLayer("box_content_routenplaner_empfehlung");
hideLayer("box_content_routenplaner_2b");MAPSGUI.Corridor.resultCorridorCheckbox("disabled");
for(var G=0;G<MAPSGUI.Corridor.corridorIcons.length;G++){var E=MAPSGUI.Corridor.corridorIcons[G];
if($("corridor_"+E)){$("corridor_"+E).checked=false;}if(adacfilters[E]){hideLayer("layer_filter_corridor_"+E);
hideLayer("icon_set_corridor_"+E);for(var H=0;H<adacfilters[E].filter.length;H++){$("corridor_filter_"+adacfilters[E].filter[H]).checked=false;
}}}MAPSGUI.activeTab="";MAPSGUI.Routecalculating=true;for(var D in MAPSGUI.Navi){if(MAPSGUI.Navi.hasOwnProperty(D)){var B=MAPSGUI.Navi[D].id;
if(jQuery("#"+B).is(":checked")){$(B).click();}}}MAPSGUI.Routecalculating=false;MAPSGUI.hideSingleTab("route");
MAPSGUI.Corridor.corridorIcons.splice(0,MAPSGUI.Corridor.corridorIcons.length);MAPSGUI.Corridor.rubricstring="&corridor!";
$("corridor_rubricstring").value=MAPSGUI.Corridor.rubricstring;$("result_corridor_filter").checked=false;
$("result_corridor_filter").disabled="disabled";$("result_corridor_filter_label").className="disabled";
this.cleanDeafaultStations();MAPSGUI.User.routeSet=false;this._values=new Array();
this._checkboxes=new Array();this._suggestions=new Array();var I=MAPSGUI.activeTab;
var F=$get(GetRenderedId("tabdiv_"+I));if(F!=null){var A=F.name;__doPostBack(A,I);
}jQuery("#box_tabcontent_1_options").find(".module-simple-toggle").eq(1).html(MAPSGUI.RouteOptionsHTML);
if(this._continent!="EU"){if(C!="resetAll"){this.switchContinent(this._continent,"resetRoutSearch");
}else{this.switchContinent("EU","resetRoutSearch");}}jQuery(".formDate").blur(function(){MAPSGUI.Route.departureDateControling();
});$("RouteId").value="";handleDestinationAndResetBox();$("control_rout_detail_click").innerHTML="0";
jQuery(".box-error").hide();drawPOILayer("AjaxKarteDiv");var J=AMAMAPS.AMAgetAJAXMapReference().getLayer("adac_resetToolBarLayer");
J.setAreaRight(326);J.setEnabled(false);},_GEOCODE:1,_ROUTE:2,showButton:function(A){if(A===this._ROUTE){showLayer("box_tabcontent_1_button_1b");
showLayer("box_tabcontent_1_button_2b");hideLayer("box_tabcontent_1_button_1a");hideLayer("box_tabcontent_1_button_2a");
jQuery("#box_tabcontent_1_button_1b input, #box_tabcontent_1_button_2b input").attr("disabled",false).attr("src","images/buttons/but_route_berechnen.gif");
}else{showLayer("box_tabcontent_1_button_1a");showLayer("box_tabcontent_1_button_2a");
hideLayer("box_tabcontent_1_button_1b");hideLayer("box_tabcontent_1_button_2b");jQuery("#box_tabcontent_1_button_1a input, #box_tabcontent_1_button_2a input").attr("disabled",false).attr("src","images/buttons/but_weiter.gif");
}},disableButtons:function(A){if(jQuery("#box_tabcontent_1_button_1a").is(":visible")){jQuery("#box_tabcontent_1_button_1a input, #box_tabcontent_1_button_2a input").attr("disabled","disabled").attr("src","images/buttons/but_weiter_disabled.gif");
}else{jQuery("#box_tabcontent_1_button_1b input, #box_tabcontent_1_button_2b input").attr("disabled","disabled").attr("src","images/buttons/but_route_berechnen_disabled.gif");
}},allGeocoded:function(){for(var A=0;A<this._allStops.length;A++){if(!this._allStops[A].isGeocoded&&this._allStops[A]!=="null"){return false;
}}return true;},checkEmpty:function(C,A){var B={empty:true,stopRemoved:false};if(C==="null"){return B;
}else{if(C.searchString===""||jQuery.inArray(C.searchString,this._defaultValues)!==-1){if(A===0){C.keepError=false;
this.throwError(MAPSGUI.Translate.route_errTextStartEmpty,C);}else{if(A===this._allStops.length-1){C.keepError=false;
this.throwError(MAPSGUI.Translate.route_errTextDestEmpty,C);}else{jQuery("#"+this._containerId).find("#"+this._stopWrapIdPrefix+C.id).remove();
this._allStops.splice(A,1);B.stopRemoved=true;}}return B;}else{B.empty=false;return B;
}}},throwError:function(A,C,B){MAPSGUI.Util.addClassName(C.errElement,"box-has-error");
C.errElement.style.display="block";if(B!==undefined){A=A.replace("{term}",B);}C.errElement.innerHTML=A;
},showLoader:function(){$("box_tabcontent_1_ajaxload").style.display="block";$("box_tabcontent_1_ajaxload_softlayer").style.display="block";
},hideLoader:function(){$("box_tabcontent_1_ajaxload").style.display="none";$("box_tabcontent_1_ajaxload_softlayer").style.display="none";
},getStopById:function(B){for(var A=0;A<this._allStops.length;A++){if(this._allStops[A].id===B){return this._allStops[A];
}}return null;},showResults:function(D,A){var B=false;MAPSGUI.dropdownOpen=false;
MAPSGUI.Route._openResult={};var C=this.getStopById(D);if(jQuery(A).next().css("display")=="none"){B=true;
}jQuery(".box-dropdown-link").next().css("display","none");jQuery(".box-dropdown-link").addClass("boxClose").removeClass("boxOpen");
if(B==true){var E=jQuery(A).next().css("display","block");A.className="box-dropdown-link boxOpen";
this._openResult.elem=E.get(0);this._openResult.button=A;MAPSGUI.dropdownOpen=true;
}C.inputElement.focus();},choose:function(C,B,G){var A=this.getStopById(C);Deserialize_Station(A.Station,A.stations[B]);
var D=A.inputElement.value;var F=A.dropDownBoxElement.getElementsByTagName("li")[B];
A.inputElement.value=F.innerHTML;var E=$(G);E.value=A.inputElement.value;A.stationroutingstring=A.stations[B];
A.stationgecodingchosenindex=B;if(this._openResult.button!==undefined){this._openResult.elem.style.display="none";
this._openResult.button.className="box-dropdown-link";this._openResult={};}this.saveValues();
this.reInit();},generateId:function(){var A=MAPSGUI.Ids[this._stopCounter];this._stopCounter++;
return A;},sendGeocodeRequest:function(){if(ROUTING.AutomcompleteRequest){ROUTING.AutomcompleteRequest.abort();
}jQuery(".ui-autocomplete").hide();this.showLoader();setTimeout(function(){MAPSGUI.Route._isGeocoding=true;
for(var A=0;A<MAPSGUI.Route._allStops.length;A++){var B=MAPSGUI.Route._allStops[A];
B.searchString=B.inputElement.value.trim();MAPSGUI.Route.removeError(B);if(!B.isGeocoded){var D=MAPSGUI.Route.checkEmpty(B,A);
if(D.empty){if(D.stopRemoved){A--;}continue;}var F=new Date().getTime();var E={"secId":g_SecId,"mode":MAPSGUI.Route._continent,"term":B.searchString,"uid":F};
MAPSGUI.Route._stopsSentAndNotReceved++;var C=new Geocoding();jQuery.ajaxSetup({async:false});
jQuery.get(g_ROUTEAJAX,E,function(G){if(G===""){G="#EMPTY";}C.handleGeocodeResponse(G,B.id,B.inputElement.id);
}).error(function(){C.handleGeocodeResponse("#ERROR",B.id,B.inputElement.id);});}}if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);
}MAPSGUI.Route.hideLoader();MAPSGUI.Route._isGeocoding=false;},20);},sendRouteRequest:function(){var F="";
for(var A=0;A<this._allStops.length;A++){var B=this._allStops[A];if(B!=="null"){if(A==0){F+='<span class="icon-flag-green">&nbsp;</span>';
F+="<strong>"+B.Station.town+"</strong> &ndash; ";}else{if(A==this._allStops.length-1){F+='<span class="icon-flag-red">&nbsp;</span>';
F+="<strong>"+B.Station.town+"</strong>";}else{F+=B.Station.town;F+=" &ndash; ";}}}}MAPSGUI.Route.controlRouteDetail("close");
hideLayer("box_excluded_lands");var E=$("hfRoutenverlauf");var D=E.value.split("^");
$("box_content_routenplaner_empfehlung").innerHTML=D[2];hideLayer("box_content_routenplaner_1");
showLayer("box_content_routenplaner_empfehlung");showLayer("box_content_routenplaner_2b");
if(E.value.startsWith("^^")){MAPSGUI.hideSingleTab("route");MAPSGUI.activeTab="";
}else{var G=$("hfRouteListHtml");var C=G.value.split("^");$("RouteId").value=C[0];
$("pnl_tabdiv_route").innerHTML=C[2];ROUTING.fillStations();ROUTING.drawRoute(C[0],null,C[1]);
}},controlRouteDetail:function(A){if(A=="open"&&this._statusExtCorridorLayer=="open"){this._statusExtCorridorLayer="close";
showLayer("box_route_infos");$("control_rout_detail").className="module-control-route-detail-open clearfix";
}else{this._statusExtCorridorLayer="open";hideLayer("box_route_infos");$("control_rout_detail").className="module-control-route-detail-closed clearfix";
}},printRoute:function(){var K=$("hfRouteListHtml");var O=K.value.split("^");var D=$("print_fontsize_standard");
var I=D.checked;var H=$("print_map");var L=H.checked;var G=$("finish_area");var N=G.checked;
var E=$("trail_list");var A=E.checked;var F=$("map_detail");var P=F.checked;var C=$("land_select");
var M=C.checked;var B=$("extended_infos");var J=B.checked;window.open("pages/druck/RoutingDruck.aspx?RoutingDruck="+O[0]+"&Standard="+I+"&PrintMap="+L+"&FinishArea="+N+"&TrailList="+A+"&MapDetail="+P+"&LandSelect="+M+"&ExtendedInfos="+J+"&MapWidth=620&MapHeight=760","ADACMaps","width=800,height=600,left=100,top=80,resizable=1,menubar=1,status=1,toolbar=1,location=1,scrollbars=1");
},editRoute:function(){showLayer("box_content_routenplaner_1");hideLayer("box_content_routenplaner_empfehlung");
hideLayer("box_content_routenplaner_2b");showLayer("box_tabcontent_1_button_1a");
showLayer("box_tabcontent_1_button_2a");hideLayer("box_tabcontent_1_button_1b");hideLayer("box_tabcontent_1_button_2b");
hideLayer("actions_routenempfehlung");if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);
showLayer("box_tabcontent_1_options");}},wayBackCharge:function(){this.editRoute();
this._allStops.reverse();for(var B=0;B<this._allStops.length;B++){var A=$(this._stopWrapIdPrefix+this._allStops[B].id);
$(this._containerId).appendChild(A);}this.reInit();if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);
showLayer("box_tabcontent_1_options");}hideLayer("actions_routenempfehlung");},departureDateControling:function(){var H=$("configTimeDay").value;
var E=$("configTimeMonth").value;var B=$("configTimeYear").value;var F=new Date();
var C="";var A=F.getFullYear();var D=new Date(B,E+1,1);D.setTime(D.getTime()-12*3600*1000);
var G=/^\d+$/;if(H==0||H>D.getDate()||G.exec(H)==null||E<=0||E>12||G.exec(E)==null||G.exec(B)==null){C="invalid";
}else{if(A>B){C="past";}else{if(F.getMonth()>(E-1)&&B<=A){C="past";}else{if(F.getDate()>H&&F.getMonth()>=(E-1)&&B<=A){C="past";
}}}}if(C=="invalid"||C=="past"){this._dateHasError=true;this.disableButtons();showLayer("error_departure_date");
if(C=="invalid"){$("error_departure_date").innerHTML="Das eingegebene Datum ist ung&uuml;ltig!";
}else{if(C=="past"){$("error_departure_date").innerHTML="Das eingegebene Datum liegt in der Vergangenheit!";
}}}else{this._dateHasError=false;hideLayer("error_departure_date");$("fullDate").value=H+"."+E+"."+B;
if(this.allGeocoded()){this.showButton(this._ROUTE);}else{this.showButton(this._GEOCODE);
}}},initDepartureDateControling:function(){jQuery(".formDate").blur(function(){if(jQuery("#route_options_date").is(":checked")){MAPSGUI.Route.departureDateControling();
}});jQuery("#route_options_date").click(function(){MAPSGUI.Route.departureDateControling();
});jQuery("#route_options_summer").click(function(){hideLayer("error_departure_date");
if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);}else{MAPSGUI.Route.showButton(MAPSGUI.Route._GEOCODE);
}});jQuery("#route_options_winter").click(function(){hideLayer("error_departure_date");
if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);}else{MAPSGUI.Route.showButton(MAPSGUI.Route._GEOCODE);
}});}};MAPSGUI.Stop=function(C,A){this.id=C;var D;if(MAPSGUI.Route._stopCounter>2){var B=MAPSGUI.Ids[MAPSGUI.Route._stopCounter-1];
if(B==C){D=$("stop_"+C).getElementsByTagName("div")[0];}else{D=$("stop_"+C).getElementsByTagName("div")[0];
}}else{D=$("stop_"+C).getElementsByTagName("div")[0];}this.errElement=MAPSGUI.Util.getElementsByClass(D.parentNode,"box-error")[0];
this.switchPositionElement=MAPSGUI.Util.getElementsByClass(D,"box-switch-position")[0];
this.metaFunctionsElement=MAPSGUI.Util.getElementsByClass(D,"box-meta")[0];this.inputElement=D.getElementsByTagName("input")[0];
this.dropDownBoxElement=MAPSGUI.Util.getElementsByClass(D,"box-dropdown")[0];this.dropDownLinkElement=jQuery(this.dropDownBoxElement).prev();
this.stations=new Array();this.isGeocoded=false;this.isUmweg=true;this.stationgecodingchosenindex=0;
this.keepError=false;this.stationroutingstring="";this.searchString="";this.Station=new Station("","","","","","","","","","",false,"0");
if(this.inputElement.className!="box-no-bg"){this.inputElement.onfocus=function(){MAPSGUI.Util.addClassName(this,"box-no-bg");
if(this.value===this.defaultValue){this.value="";}};}if(A!="addStation"){MAPSGUI.Route.checkRouteInput();
}this.inputElement.onblur=function(){if(this.value===""){this.value=this.defaultValue;
MAPSGUI.Util.removeClassName(this,"box-no-bg");}};};function ADACMapsRouteplanerResetAll(){MAPSGUI.Route.resetRouteSearch("resetAll");
ADACMapsRouteplanerClearExcludeCountries();GEOCODING.destination="";handleDestinationAndResetBox();
}MAPSGUI.Infolayer={openInfoIcon:0,show:function(A){if(this.openInfoIcon!=0&&this.openInfoIcon!=A){this.openInfoIcon.parentNode.getElementsByTagName("div")[0].style.display="none";
MAPSGUI.Util.removeClassName(this.openInfoIcon,"active");}this.openInfoIcon=A;A.parentNode.getElementsByTagName("div")[0].style.display="block";
MAPSGUI.Util.addClassName(A,"active");},hide:function(A){if(A){$(A).style.display="none";
}else{if(this.openInfoIcon.parentNode){this.openInfoIcon.parentNode.getElementsByTagName("div")[0].style.display="none";
MAPSGUI.Util.removeClassName(this.openInfoIcon,"active");}}}};function ADACMapsRouteplanerShowLoader(D,B,C){var A=$(D).offsetHeight;
if(navigator.userAgent.match("MSIE")!==null){A=A+50;}$(C).style.display="block";$(B).style.height=A+14+"px";
$(B).style.display="block";}function ADACMapsRouteplanerHideLoader(B,A){$(A).style.display="none";
$(B).style.display="none";}function ADACMapsRouteplanerDecodeToHtml(A){decoded=A.replace(/&lt;/g,"<");
decoded=decoded.replace(/&gt;/g,">");return decoded;}function ADACMapsRouteplanerClearExcludeCountries(){var A=$("box_excluded_lands");
var C=A.getElementsByTagName("input");for(var B=0;B<C.length;B++){if(C[B].value!="AL;55"&&C[B].value!="RUS;16"){C[B].checked="";
}else{C[B].checked="true";}}}MAPSGUI.User={checkedElements:new Array(),checkedLogedElement:null,statusTabNaviContent:0,mapsParameter:"",typ:"",filterElements:new Object,level2Elements:new Object,level3Elements:new Object,routeSet:false,actualTabId:"",logInLayer:function(G,B){if(MAPSGUI.Loged.user==0){this.checkedLogedElement=null;
if(G=="infoIcon"){B.checked=false;this.checkedLogedElement=B;}else{if(G=="liste"){this.mapsParameter=B;
this.typ=G;}else{if(G=="kurzinfo"){this.typ=G;}else{if(G=="loginbutton"){this.typ=G;
}}}}var H=$(MAPSGUI.Toggle._infoContainerId);var D=H.getElementsByTagName("input");
this.checkedElements.splice(0,D.length);for(var F=0;F<D.length;F++){if(D[F].checked==true){this.checkedElements.push(D[F]);
}}if(this.checkedLogedElement!=null){this.checkedElements.push(this.checkedLogedElement);
}if(this.checkedElements.length==0){this.typ="";}var C=MAPSGUI.Util.getElementsByClass(H,"js-toggle-head");
for(var A=0;A<C.length;A++){var E=C[A].getElementsByTagName("h2")[0];if(E.className=="box-open"){MAPSGUI.Toggle._opened[A]=1;
}else{MAPSGUI.Toggle._opened[A]=0;}}if($("box_navi_content").style.display=="block"||MAPSGUI.Tabnav._activeIndex==1){this.statusTabNaviContent=1;
}else{this.statusTabNaviContent=0;}LOGIN.doLogin();}},logedIn:function(){MAPSGUI.Loged.user=1;
for(var x=0;x<this.checkedElements.length;x++){MAPSGUI.closeListTab(this.checkedElements[x],"reset");
}$("box_tabcontent_3").innerHTML=MAPSGUI.writeInfoTypes();$("route_reiternavi").innerHTML=MAPSGUI.writeTabnav();
hideLayer("box_tabcontent_1");hideLayer("box_tabcontent_2");hideLayer("box_tabcontent_3");
if(this.statusTabNaviContent==1){MAPSGUI.Tabnav.showTab(MAPSGUI.Tabnav._activeIndex);
}else{hideLayer("box_navi_content");hideLayer("little_helper");}MAPSGUI.Toggle.init();
for(var i=0;i<this.checkedElements.length;i++){if($(this.checkedElements[i].id).checked==false){$(this.checkedElements[i].id).click();
}}if(this.typ=="kurzinfo"){var layer=AMAMAPS.armap[0].getLayer("vector");layer.hideElement(lastActiveInfoBox);
var BtnToClick=$(GetRenderedId("ButGetDetailInfo"));if(BtnToClick!=null){var butName=BtnToClick.name;
__doPostBack(butName,"");}}if(this.mapsParameter!=""){eval(this.mapsParameter);}this.mapsParameter="";
}};MAPSGUI.Corridor={id:"",rubricstring:"&corridor!",corridorIcons:new Array(),corridorIconsCount:0,corridorIconsBeforeCharge:new Array(),set:function(A){this.id=A;
if($("form_infoonlyonroute").checked==true){if(this.rubricstring.indexOf("!"+this.id+"!")==-1){this.rubricstring+=this.id+"!";
this.corridorIcons.push(A);}if($("corridor_"+this.id)){$("corridor_"+this.id).checked=true;
}}else{this.rubricstring=this.rubricstring.replace(this.id+"!","");if($("corridor_"+this.id)){$("corridor_"+this.id).checked=false;
}}if($("form_save_routesettings").checked==true){this.member_setting=true;}$("corridor_rubricstring").value=this.rubricstring;
$(this.id).click();},setCorridorIcon:function(H,C,D){this.setExtCorridorNum();var A=H;
this.id=A;if(A.indexOf("corridor_")!=-1){var G=A.split("corridor_");A=G[1];H=G[1];
if(D){var E=D.split("corridor_");A="filter_"+E[1];}}if($("corridor_"+A)){if(this.corridorIconsCount>=MAPSGUI.corridorMax-1){if($("corridor_"+A).checked==true){showLayer("box_corridor_max_info");
MAPSGUI.showOpacityLayer("infolayer_corridor_max");showLayer("korridormaxbiglayer");
MAPSGUI.setInfoLayerPos();$("corridor_"+A).checked=false;if(MAPSGUI.Util.isInArray(MAPSGUI.Corridor.corridorIconsBeforeCharge,H)!=-1){$(A).checked=false;
MAPSGUI.countCheckedFilter(H);}this.resultCorridorCheckbox("disabled");return;}}else{this.resultCorridorCheckbox("active");
}if($("corridor_"+A).checked==true){if(A.indexOf("filter")==-1){this.corridorIconsCount++;
}if(A==MAPSGUI.activeTab){$("result_corridor_filter").checked=true;}}else{if(A.indexOf("filter")==-1){this.corridorIconsCount--;
}this.resultCorridorCheckbox("active",MAPSGUI.activeTab);if(A==MAPSGUI.activeTab){$("result_corridor_filter").checked=false;
}if($("corridor_"+H).checked!=true){if(typeof adacfilters[H]!="undefined"){var F=0;
for(var B=0;B<adacfilters[H].filter.length;B++){if($("corridor_filter_"+adacfilters[H].filter[B]).checked==true){F++;
$("corridor_filter_"+adacfilters[H].filter[B]).click();}}if(F!=0){$("corridor_"+A).click();
hideLayer("layer_filter_corridor_"+A);}}}}if($("corridor_"+H).checked==true&&MAPSGUI.Util.isInArray(this.corridorIcons,H)==-1){this.corridorIcons.push(H);
}else{if($("corridor_"+H).checked==false){this.resetCorridorIcon(H);}}}this.setCorridorRubricstring();
},resetCorridorIcon:function(C){if(typeof adacfilters[C]!="undefined"){for(var A=0;
A<adacfilters[C].filter.length;A++){if($("corridor_filter_"+adacfilters[C].filter[A]).checked==true){$("corridor_filter_"+adacfilters[C].filter[A]).click();
}}hideLayer("icon_set_corridor_"+C);hideLayer("layer_filter_corridor_"+C);}for(var B=0;
B<this.corridorIcons.length;B++){if(this.corridorIcons[B]==C){$("corridor_"+C).checked=false;
MAPSGUI.Util.deleteFromArray(this.corridorIcons,B);}}this.setCorridorRubricstring();
},setExtCorridorNum:function(){var A=0;jQuery("#box_route_infos").find("input").each(function(C,B){if(B.checked==true&&B.id.indexOf("filter")==-1){A++;
}});jQuery("#control_rout_detail_click").html(A);},setCorridorRubricstring:function(){this.rubricstring="&corridor!";
for(var A=0;A<this.corridorIcons.length;A++){this.rubricstring+=this.corridorIcons[A]+"!";
if(typeof(adacfilters[this.corridorIcons[A]])!="undefined"){var B=MAPSGUI.buildFilterCorridor(this.corridorIcons[A]);
if(B!=0){MAPSGUI.Corridor.rubricstring+="="+B.substring(0,B.length-1)+"!";}}}$("corridor_rubricstring").value=this.rubricstring;
},resultCorridorCheckbox:function(A,B){if(A=="active"){$("result_corridor_filter").disabled="";
$("result_corridor_filter_label").className="";hideLayer("result_corridor_filter_max");
if(B){$("result_corridor_filter").onclick=function(){if(this.checked==true){if(MAPSGUI.Corridor.corridorIconsCount>=MAPSGUI.corridorMax){showLayer("box_corridor_max_info");
this.checked=false;$("result_corridor_filter").disabled="disabled";$("result_corridor_filter_label").className="disabled";
return;}else{MAPSGUI.Corridor.corridorIcons.push(B);MAPSGUI.Corridor.corridorIconsCount++;
$("corridor_"+B).checked=true;if(typeof adacfilters[B]!="undefined"){for(var C=0;
C<adacfilters[B].filter.length;C++){if($("filter_"+adacfilters[B].filter[C]).checked==true){$("corridor_filter_"+adacfilters[B].filter[C]).checked=true;
}}}}}else{MAPSGUI.Corridor.resetCorridorIcon(B);MAPSGUI.Corridor.corridorIconsCount--;
$("corridor_"+B).checked=false;}MAPSGUI.Corridor.setCorridorRubricstring();ROUTING.GetSelectedCorridors();
ROUTING.GetRoutingOptions();var D=HELPER.getRubricFromRubricString();if(D!=""){var E=$(GetRenderedId("butCalcRouting1"));
if(E!=null){MAPSGUI.Routecalculating=true;WEBTREKK.writeCalculateRoute();__doPostBack(E.name,D);
}}MAPSGUI.Corridor.setExtCorridorNum();};}}else{if($("result_corridor_filter").checked==false){$("result_corridor_filter").disabled="disabled";
$("result_corridor_filter_label").className="disabled";$("result_corridor_filter").onclick=function(){};
showLayer("result_corridor_filter_max");}}}};MAPSGUI.dropdownOpen=false;MAPSGUI.autocompleteSelected=false;
MAPSGUI.Keys=function(A){var E=38;var G=40;var H=13;var C=9;var D=null;var F=-1;this.handleGlobalEnter=function(I){if(I.keyCode===H){if(MAPSGUI.Route._dateHasError==false){if(MAPSGUI.Route._isGeocoding){return;
}if(MAPSGUI.dropdownOpen||MAPSGUI.autocompleteSelected){MAPSGUI.dropdownOpen=false;
MAPSGUI.autocompleteSelected=false;return false;}else{var J=jQuery("#box_tabcontent_1_button_1 input");
if(MAPSGUI.Route.allGeocoded()){I.stopPropagation();J.eq(1).click();}else{J.eq(0).click();
}}}}};this.handleDropdown=function(J){var I=jQuery("#stop_"+A.id+" .box-dropdown").find("li");
if(!A.isGeocoded){return;}switch(J.keyCode){case C:if(MAPSGUI.Route._openResult.button){MAPSGUI.Route._openResult.button.click();
}break;case E:J.preventDefault();if(D!==null){D.removeClass("active");}if(F===0){F=I.length-1;
}else{F--;}D=I.eq(F);D.addClass("active");break;case G:J.preventDefault();if(F===-1){B();
}if(D!==null){D.removeClass("active");}if(F===I.length-1){F=0;}else{F++;}D=I.eq(F);
D.addClass("active");D.focus();break;case H:J.preventDefault();if(D===null){break;
}D.click();F=-1;D=null;break;}};function B(){jQuery("#Results_"+A.id).click();}};
MAPSGUI.Slider={_mapsize:2,_sliding:false,_interval:30,_slideSpeed:18,_scrollSlideSpeed:10,_scrollSlideInterval:30,_scrollPos:0,_mapNode:"",_endMapHeight:0,_currentHeight:0,_sliderIntervalId:0,_initialized:false,_mapLarge:false,_setHiTab:"",slideLoop:function(){if(this._mapsize===1){this.slide(1,2);
}else{if(this._mapsize===2){this.slide(2,1);}}},slideUp:function(){if(this._mapsize===1){return;
}else{var B=this._mapsize;var A=this._mapsize-1;this.slide(B,A);}},slideDown:function(){if(this._mapsize===2){return;
}else{var B=this._mapsize;var A=this._mapsize+1;this.slide(B,A);}},setMapSize:function(A){this.slide(this._mapsize,A);
},slide:function(B,C){if(navigator.userAgent.match("MSIE 6.0")!==null){$("presserdiv").style.display="none";
}if(this._sliding===true){return;}$("mappos").value=C;this._mapsize=C;this._sliding=true;
this._mapNode=$(AMAMAPS.MapDivName);var A=0;this._currentHeight=MAPSGUI.getHeight();
if(C==1){this._endMapHeight=this._currentHeight-spacemapClosedStart;}else{if(C==2){this._endMapHeight=this._currentHeight-spacemapOpenStart;
}else{if(C==3){this._endMapHeight=this._currentHeight-spacemapClosed;}}}if(B<C){this._sliderIntervalId=setInterval("MAPSGUI.Slider.slideDownAction()",this._interval);
}else{this._sliderIntervalId=setInterval("MAPSGUI.Slider.slideUpAction()",this._interval);
}},slideDownAction:function(){var A=parseInt(this._mapNode.style.height,10);if(A>=this._endMapHeight){this.afterFinishAction();
if(this._mapsize===3){this._mapLarge=true;this.hideHeader();}}else{A+=this._slideSpeed;
if(A>this._endMapHeight){A=this._endMapHeight;}this._mapNode.style.height=A+"px";
}},slideUpAction:function(){var A=parseInt(this._mapNode.style.height,10);if(A<=this._endMapHeight){this.afterFinishAction();
if(this._mapLarge===true){this.showHeader();this._mapLarge=false;}}else{A-=this._slideSpeed;
if(A<this._endMapHeight){A=this._endMapHeight;}this._mapNode.style.height=A+"px";
}},afterFinishAction:function(){this._sliding=false;this._mapNode.style.height=this._endMapHeight+"px";
clearInterval(this._sliderIntervalId);MAPSGUI.updateMapSizeGuiElement($("mappos").value);
AMAMAPS.AMAhandleResize(AMAMAPS.MapDivName);if(this._setHiTab!=""&&this._setHiTab!="notab"){MAPSGUI.setHiTab(this._setHiTab);
}if(navigator.userAgent.match("MSIE 6.0")!==null){$("presserdiv").style.display="block";
}},hideHeader:function(){this._scrollPos=this.getScrollY();if(this._scrollPos<MAPSGUI.offsetTopToNav){this._sliderIntervalId=setInterval("MAPSGUI.Slider.scrollSlideDown()",this._scrollSlideInterval);
}},showHeader:function(){this._scrollPos=this.getScrollY();if(this._scrollPos>0){this._sliderIntervalId=setInterval("MAPSGUI.Slider.scrollSlideUp()",this._scrollSlideInterval);
}},scrollSlideDown:function(){if(this._scrollPos>=MAPSGUI.offsetTopToNav){clearTimeout(this._sliderIntervalId);
window.scrollTo(0,MAPSGUI.offsetTopToNav);this._scrollPos=MAPSGUI.offset;}else{var A=this._scrollPos+this._scrollSlideSpeed;
window.scrollTo(0,A);this._scrollPos=A;}},scrollSlideUp:function(){if(this._scrollPos<=0){clearTimeout(this._sliderIntervalId);
window.scrollTo(0,0);this._scrollPos=0;}else{var A=this._scrollPos-this._scrollSlideSpeed;
window.scrollTo(0,A);this._scrollPos=A;}},getScrollY:function(){var A=0;if(typeof(window.pageYOffset)=="number"){A=window.pageYOffset;
}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;
}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;
}}}return A;}};var GEOCODING=new Geocoding();var REVGEODODING=new ReverseGeocoding();function Geocoding(){this.flagImages=new Object();
this.flagImages.Big="images/mapitems/fahne_gross.gif";this.flagImages.Small="images/mapitems/fahne_klein.gif";
this.divShowAllLowOpacity="20";this.CSSCLASSACTIVE="active";this.bigFlagLabel;this.destination="";
this.rectdest;this.oldFlagID;this.oldFlagLabel;this.oldX;this.oldY;this.selectedKey;
this.stop=function(){MAPSGUI.Route.hideLoader();hideLayer("box_content_routenplaner_1");
showLayer("box_content_routenplaner_2");if(MAPSGUI.Tabnav._activeIndex==1){showLayer("actions_routenempfehlung");
}};this.sendGeocodeRequest=function(){MAPSGUI.Route.showLoader();var B=$("UcTabsNaviTop_UcRouting_ButGeocode");
__doPostBack(B.name,"");};this.onTypeAheadSelection=function(F,D){F=F.substring(F.lastIndexOf("_")+1);
var B=MAPSGUI.Route._allStops;var E=MAPSGUI.Route.getStopById(F);var C=E.inputElement.id.substring(E.inputElement.id.lastIndexOf("_",E.inputElement.id.lastIndexOf("_")-1));
if(!E.isGeocoded){E.errElement.style.display="none";MAPSGUI.Util.removeClassName($(MAPSGUI.Route._stopIdPrefix+E.id),"box-has-error");
GEOCODING.handleGeocodeResponse(D,E.id,"station"+C);}MAPSGUI.Route.saveValues();MAPSGUI.Route.reInit();
};this.setContextKey=function(){var B=1;if($("continent_eu").checked){B=1;}else{if($("continent_nam").checked){B=3;
}else{if($("continent_aus").checked){B=5;}}}var D=Sys.Application.getComponents();
for(var C=0;C<D.length;C++){if(D[C].get_id().length>10&&D[C]._contextKey!=undefined&&D[C].get_id().substring(0,10)==="Ace_route_"){var E=Sys.Application.findComponent(D[C].get_id()).get_contextKey();
Sys.Application.findComponent(D[C].get_id()).set_contextKey(E.substring(0,2)+B);}}};
this.onGeocodeFinished=function(){var C=$("tempgeocodedstationarray").value;var E=C.split("$");
for(var F=0;F<MAPSGUI.Route._allStops.length;F++){var B=MAPSGUI.Route._allStops[F];
var G=B.inputElement.id.substring(B.inputElement.id.lastIndexOf("_",B.inputElement.id.lastIndexOf("_")-1));
var D=$("Hf_station"+G);D.value=E[F];if(!B.isGeocoded){GEOCODING.handleGeocodeResponse(D.value,B.id,"station"+G);
}}ADACMapsRouteplanerHideLoader("box_tabcontent_1_ajaxload_softlayer","box_tabcontent_1_ajaxload");
};this.handleGeocodeResponse=function(N,L,I){N=jQuery("<div/>").html(N).text();MAPSGUI.Route._stopsSentAndNotReceved--;
if(MAPSGUI.Route._stopsSentAndNotReceved===0){for(var B=0;B<MAPSGUI.Route._allStops.length;
B++){if(MAPSGUI.Route._allStops[B]==="null"){MAPSGUI.Route._allStops.splice(B,1);
B--;}}}var H=MAPSGUI.Route.getStopById(L);if(H===null){return;}$("Hf_station_stop_"+L).value=N;
var F=N.split("^");H.stations=F;H.keepError=false;var Q=F.length;if(N.indexOf("#ERROR")===0){H.keepError=false;
H.inputElement.focus();H.inputElement.select();MAPSGUI.Route.throwError(MAPSGUI.Translate.route_errTextError,H,H.searchString);
}else{if(N.indexOf("#EMPTY")===0){H.keepError=false;H.inputElement.focus();H.inputElement.select();
MAPSGUI.Route.throwError(MAPSGUI.Translate.route_errTextNoResult,H,H.searchString);
}else{if(N.indexOf("null")===0){H.keepError=false;H.inputElement.focus();H.inputElement.select();
MAPSGUI.Route.throwError(MAPSGUI.Translate.route_errTextNoResult,H,H.searchString);
}else{if(N==""){H.keepError=false;H.inputElement.focus();H.inputElement.select();
MAPSGUI.Route.throwError(MAPSGUI.Translate.route_errTextNoResult,H,H.searchString);
}else{if(Q>0){if(Q===1&&F[0]==""){H.isGeocoded=false;H.keepError=true;H.inputElement="";
}else{H.isGeocoded=true;H.keepError=false;MAPSGUI.Route.removeError(H);H.stations=F;
var J=H.stations[0].split("|");var G=Deserialize_Station(H.Station,H.stations[0]);
H.stationroutingstring=H.stations[0];var O=J[4];if(J[5].trim()!=""){O+=", "+J[5];
}H.inputElement.value="("+J[1]+") "+J[3]+" - "+O;MAPSGUI.Util.addClassName(H.inputElement,"box-no-bg");
}if(Q>1){H.dropDownLinkElement.innerHTML=Q+" Treffer";var M=$("Results_"+L);M.style.display="block";
M.className="box-dropdown-link";M.innerHTML="("+Q+" Treffer)";var E="<ul>";for(var C=0;
C<H.stations.length;C++){G=H.stations[C].split("|");var K="MAPSGUI.Route.choose('"+H.id+"', "+C+",'"+I+"')";
var D=G[4];if(G[5].trim()!=""){D+=", "+G[5];}E+='<li onclick="'+K+'">('+G[1]+") "+G[3]+" - "+D+"</li>";
}E+="</ul>";H.dropDownBoxElement.innerHTML=E;var P=new MAPSGUI.Keys(H);jQuery(H.inputElement).keydown(function(R){P.handleDropdown(R);
});}}}}}}if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);
showLayer("box_tabcontent_1_options");}MAPSGUI.Route.saveValues();MAPSGUI.Route.reInit();
};this.showResults=function(Q){if(Q){this.selectedKey=null;this.selectedKey=null;
this.surroundingRect=null;this.clearAllElements();this.destination="";}var F=this.getResultAslocationStrings();
if(F!=null){var I,G,S;HELPER.postBackDone=true;var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){if(F.length==1&&F[0].split("|")[7]=="True"){this.setDestination();return;
}var B;var P;var N=new Array(F.length);if(F.length>0){showLayer("divinner");$("divresult").style.display="block";
$("divShowAll").style.display="block";$("divinner").style.height="";$("btnOK").style.display="block";
}for(var R=0;R<F.length;R++){var O=F[R].split("|");if(O[5].length>0){B=(parseFloat(O[3])+parseFloat(O[5]))/2;
}else{B=parseFloat(O[3]);}if(O[6].length>0){P=(parseFloat(O[4])+parseFloat(O[6]))/2;
}else{P=parseFloat(O[4]);}if(S==undefined&&R==0){I=B;G=P;S=O[2];}N[R]={x:B,y:P};var M="pin_s_"+O[2];
drawPOI(N[R].x,N[R].y,this.flagImages.Small,O[2],M);}if(F.length==1&&F[0]=="0|0|0|0|0|||False"){$("btnOK").style.display="none";
}else{var D=$get(GetRenderedId("hfSurroundingRectangle")).value;var L=D.split(",");
var H=parseFloat(L[1]);var J=parseFloat(L[2]);var K=parseFloat(L[3]);var C=parseFloat(L[0])-(J-parseFloat(L[0]));
if(!isPreset){E.setRect(C,H,J,K);}hidePOILayer("AjaxKarteDiv");drawPOILayer("AjaxKarteDiv");
}}}if(this.oldFlagID==undefined){this.highlightFlag(I,G,S);}if(isPreset&&startConfig.stateID==5){presetPOIs();
}isPreset=false;};this.checkShowAllLink=function(){var B=this.getResultAslocationStrings();
if(B!=null){var C=AMAMAPS.AMAgetAJAXMapReference();if(C!=null){this.dimShowAll(true);
var G=C.getRect();var D;var E;for(var F=0;F<B.length;F++){var H=B[F].split("|");if(H[5].length>0){D=(parseFloat(H[3])+parseFloat(H[5]))/2;
}else{D=parseFloat(H[3]);}if(H[6].length>0){E=(parseFloat(H[4])+parseFloat(H[6]))/2;
}else{E=parseFloat(H[4]);}if((D<G.left||D>G.right)||(E<G.bottom||E>G.top)){this.dimShowAll(false);
return;}}}}};this.getResultAslocationStrings=function(){var D=null;var C=$("lstGeocodingResult");
if(C!=null&&C.childNodes.length>0){D=new Array(C.childNodes.length);for(var B=0;B<C.childNodes.length;
B++){D[B]=C.childNodes[B].attributes["key"].value;}}return D;};this.selectionChanged=function(H){var D=$("lstGeocodingResult");
if(D!=null&&D.childNodes.length>0){if(H==undefined){if(this.selectedKey!=null){H=this.selectedKey;
}else{H=D.childNodes[0].attributes["key"].value;}}for(var I=0;I<D.childNodes.length;
I++){if(D.childNodes[I].attributes["key"].value==H){D.childNodes[I].className=this.CSSCLASSACTIVE;
}else{D.childNodes[I].className="";}}this.selectedKey=H;var C=H.split("|");var G;
var J;if(C[5]!=""&&C[6]!=""){G=(parseFloat(C[3])+parseFloat(C[5]))/2;J=(parseFloat(C[4])+parseFloat(C[6]))/2;
}else{G=parseFloat(C[3]);J=parseFloat(C[4]);}var E=AMAMAPS.AMAMercator_2_SmartUnits({x:G,y:J});
var F=AMAMAPS.AMAgetAJAXMapReference();if(F!=null){var B=F.getLayer("vector");if(this.oldFlagID!=null){drawPOI(this.oldX,this.oldY,this.flagImages.Small,this.oldFlagLabel,this.oldFlagID);
B.removeElement("infobox_"+this.bigFlagLabel);}this.highlightFlag(G,J,C[2]);var K=F.getRect();
if((E.x<K.left||E.x>K.right)&&(E.y<K.bottom||E.y>K.top)){this.showResults(false);
}}}};this.highlightFlag=function(H,C,I){var E=AMAMAPS.AMAgetAJAXMapReference();if(E!=null){if(I!=null){var B=E.getLayer("vector");
var F="pin_s_"+I;var D="pin_b_"+I;B.removeElement(F);this.oldFlagID=F;this.oldFlagLabel=I;
this.oldX=H;this.oldY=C;B.removeElement(this.bigFlagLabel);this.bigFlagLabel=D;if(I.indexOf("#")>0){var G=I.split("#");
D="pin_b_"+G[0];this.destination=G[0];drawPOI(H,C,this.flagImages.Big,G[0],D);}else{drawPOI(H,C,this.flagImages.Big,I,D);
showHideInfoBox(H,C,I,D,false);}}}};this.setDestination=function(G){WEBTREKK.writeGeocode();
if(G==null){G=this.getlocationStringFromGeocodingResult();}var I=G.split("|");if(I.length==12){if(I[10]!=""&&I[11]!=""){G="ORTE|"+I[3]+"|"+I[0]+"|"+I[8]+"|"+I[9]+"|"+I[10]+"|"+I[11]+"|False";
}else{G="ORTE|"+I[3]+"|"+I[0]+"|"+I[8]+"|"+I[9]+"|||False";}I=G.split("|");}HELPER.postBackDone=true;
HELPER.destinationSet=true;var K=AMAMAPS.AMAgetAJAXMapReference();if(K!=null){var D=$get("ReisezielLayerZoomCoords");
var J;var C=AMAMAPS.AMAMercator_2_SmartUnits({x:parseFloat(I[3]),y:parseFloat(I[4])});
if(I[5]!=""&&I[6]!=""){J=AMAMAPS.AMAMercator_2_SmartUnits({x:parseFloat(I[5]),y:parseFloat(I[6])});
if(!isPreset){K.setRect(C.x,C.y,J.x,J.y);}D.value=C.x+"|"+C.y+"|"+J.x+"|"+J.y+"|"+I[7];
}else{if(!isPreset){AMAMAPS.AMAsetCenter(C.x,C.y);HELPER.postBackDone=true;if(I[7]=="False"){AMAMAPS.AMAsetZoom(10);
}else{AMAMAPS.AMAsetZoom(1);}}D.value=C.x+"|"+C.y+"|||"+I[7];}if(I[2]!=null){this.destination=I[2].trim();
}this.clearFields();this.clearAllElements();var B=K.getLayer("vector");var F="pin_b_"+this.destination;
var H=parseInt(I[3]);var L=parseInt(I[4]);if(I[5]!=""&&I[6]!=""){H=(H+parseInt(I[5]))/2;
L=(L+parseInt(I[6]))/2;}var M=K.getRect();this.rectdest=M;$(GetRenderedId("hfDestinationKey")).value=G+"|"+M.left+";"+M.top+";"+M.right+";"+M.bottom;
var E=$(GetRenderedId("ButDestinationSet"));__doPostBack(E.name,HELPER.getRubricFromRubricString());
drawPOI(H,L,this.flagImages.Big,this.destination,F);showHideInfoBox(H,L,this.destination,F,false);
$("RouteMulti").className="box-status none";$("Route").className="box-status none";
$("Geokodierung").className="box-status clearfix";$("divmeinreiseziel").innerHTML=this.destination;
$(GetRenderedId("hfReverseGeocodeData")).value="";AMAMAPS.AMAallowMouseWheel("container",true);
showReisezielLayer();handleDestinationAndResetBox();HELPER.postBackDone=false;}};
this.showDestinRect=function(){var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){B.setRect(parseFloat(this.rectdest.left),parseFloat(this.rectdest.top),parseFloat(this.rectdest.right),parseFloat(this.rectdest.bottom));
}};this.getlocationStringFromGeocodingResult=function(){var C=$("lstGeocodingResult");
var D;for(var B=0;B<C.childNodes.length;B++){if(C.childNodes[B].className==this.CSSCLASSACTIVE){D=C.childNodes[B].attributes["key"].value;
break;}}return D;};this.resetDestination=function(){var C=AMAMAPS.AMAgetAJAXMapReference();
if(C!=null){var B=C.getLayer("vector");if(this.destination==""&&this.bigFlagLabel!=null&&this.bigFlagLabel!=""){var D=this.bigFlagLabel;
D=D.replace("#","");B.removeElement(D.trim());}else{B.removeElement("pin_b_"+this.destination);
}}this.clearFields();this.destination="";this.rect="";$("Geokodierung").className="box-status none";
handleDestinationAndResetBox();HELPER.postBackDone=false;if(HELPER.destinationSet){ctrl=$get(GetRenderedId("ButDestinationSet"));
__doPostBack(ctrl.name,"");}};this.clearFields=function(){this.selectedKey=null;this.geocodingResultsSet=false;
MAPSGUI.Tabnav.hideNav();var C=$(GetRenderedId("Search"));C.value="";C=$(GetRenderedId("hfDestinationKey"));
C.value="";$("divinner").style.height="0px";$("divresult").style.display="none";$("btnOK").style.display="none";
$("divShowAll").style.display="none";C=$("lstGeocodingResult");if(C==null){return;
}C.style.display="none";C.style.height="0px";var B=C.lastChild;while(B!=null){C.removeChild(B);
B=C.lastChild;}};this.clearAllElements=function(){var C=AMAMAPS.AMAgetAJAXMapReference();
if(C!=null){var B=C.getLayer("vector");B.removeAllElements();B.addClickArea(null,null,null,null,generalClickHandler);
}this.dimShowAll(true);};this.dimShowAll=function(B){var C=$("divShowAll");if(B){C.style.filter="Alpha(opacity="+this.divShowAllLowOpacity+")";
C.style.opacity=this.divShowAllLowOpacity/100;}else{C.style.filter="Alpha(opacity=100)";
C.style.opacity=1;}};function A(D){if(D==undefined){return false;}D=D.trim();if(D.length==0||D.indexOf("(")==-1||D.lastIndexOf(")")==-1){return false;
}var C=D.indexOf("(");var B=D.lastIndexOf(")");if(C==0||B==D.length-1){return false;
}return D.length>B;}}var lastSearchTerm;function onSearchENTER(B){if(B!=undefined){if(B.keyCode==13){var C=$(GetRenderedId("Search")).value;
var D=$get("lstGeocodingResult");if(C!=lastSearchTerm){lastSearchTerm=C;if(D!=null){var E=D.lastChild;
while(E!=null){D.removeChild(E);E=D.lastChild;}}}if(D==null||D.childNodes.length==0){var A=$(GetRenderedId("ButSuchen"));
__doPostBack(A.name,"");return false;}else{if(D.childNodes[0].key!="0|0|0|0|0|||False"){GEOCODING.setDestination();
return false;}}}}return true;}function presetLocations(D,E,B){if(startConfig.destination.trim()==""){return;
}$get(GetRenderedId("Search")).value=startConfig.destination;if(startConfig.geocodeDestination){var C=$get(GetRenderedId("Selworld2"));
if(startConfig.mode==1){C.checked="checked";}else{C.checked="";}var A=$(GetRenderedId("ButSuchen"));
__doPostBack(A.name,"");}}function ReverseGeocoding(){this.xGeoCoord;this.yGeoCoord;
this.reiseziel="";this.geocode=function(E,F){var L=AMAMAPS.AMAgetAJAXMapReference();
var I=$(GetRenderedId("hfReverseGeocodeData"));var K=L.getRect();var B=L.getRectInPixel();
var M={x:K.left,y:K.top};var A={x:K.right,y:K.bottom};var J=AMAMAPS.AMASmartUnits_2_Pixel(E,F);
var C=M.x+","+M.y+","+A.x+","+A.y;var G=Math.round(B.right-B.left);I.value=E+"|"+F+"|"+Math.round(J.x-B.left)+"|"+Math.round(J.y-B.top)+"|"+G+"|"+C;
this.xGeoCoord=E;this.yGeoCoord=F;var D=$("ReisezielLayerZoomCoords");D.value=E+"|"+F+"|||False";
var H=$(GetRenderedId("ButReverseSuchen"));__doPostBack(H.name,"");};this.showInfo=function(){var D=AMAMAPS.AMAgetAJAXMapReference();
if(D!=null){var A=D.getLayer("vector");if(GEOCODING.destination==""&&GEOCODING.bigFlagLabel!=null&&GEOCODING.bigFlagLabel!=""){var H=GEOCODING.bigFlagLabel;
H=H.replace("#","");A.removeElement(H.trim());}else{if(GEOCODING.destination!=""){A.removeElement("pin_b_"+GEOCODING.destination);
}}}GEOCODING.clearFields();GEOCODING.destination="";MAPSGUI.hideSearchLayer();hideLayer("rightclickdiv");
var C=$(GetRenderedId("hfReverseGeocodeData"));var B=C.value.split("|");var I=D.getRect();
GEOCODING.rectdest=I;showReisezielLayer();handleDestinationAndResetBox();var G=HELPER.getRubricFromRubricString();
if(G!=""){var E=$(GetRenderedId("tabdiv_"+G));if(E!=null){var F=E.name;HELPER.destinationSet=true;
__doPostBack(F,G+"|Destination=true");}}};}function triggerGeocoding(B){var C=$(GetRenderedId("Search"));
C.value=B;var A=$(GetRenderedId("ButSuchen"));__doPostBack(A.name,"");}function showReisezielLayer(){var D=AMAMAPS.AMAgetAJAXMapReference();
if(D!=null){var C=$(GetRenderedId("hfReverseGeocodeData"));var J;if(C.value!=undefined&&C.value!=""){var B=C.value.split("|");
var A=B[2].split(";");var F;if(B[3].indexOf("Klickpunkt")>0){J=A[0]+" | "+A[1];F=A[0]+" | "+A[1]+"#";
}else{J=B[3];F=B[3]+"#";}GEOCODING.highlightFlag(REVGEODODING.xGeoCoord,REVGEODODING.yGeoCoord,F);
}else{if(GEOCODING.destination.indexOf("Route")>0){J=GEOCODING.destination;}else{J=GEOCODING.destination;
F=GEOCODING.destination+"#";}}REVGEODODING.reiseziel=J;var H=$("ReisezielLayerZoomCoords").value;
var I=H.split("|");var E=1;if(I[4]=="False"){E=10;}var G;if(I[2]!=""&&I[3]!=""){G="var thisMap = AMAMAPS.AMAgetAJAXMapReference(); if (thisMap != null) {thisMap.setRect("+I[0]+","+I[1]+","+I[2]+","+I[3]+");}";
if(I[4]!="Route"){G=G+"AMAMAPS.AMAsetZoom("+E+");";}}else{G="AMAMAPS.AMAsetCenter("+I[0]+","+I[1]+");AMAMAPS.AMAsetZoom("+E+");";
}$("RouteMulti").className="box-status none";$("RouteShort").className="box-status none";
$("Route").className="box-status none";$("Geokodierung").className="box-status clearfix";
$("divmeinreiseziel").innerHTML=J;}}function createResetLayer(){var B=AMAMAPS.AMAgetAJAXMapReference();
if(B!=null){var A=B.getLayer("adac_resetToolBarLayer");A.setAreaRight(g_resetboxposition);
A.setEnabled(true);}}var ROUTING=new Routing();function Routing(){this.stations;this.rect;this.TableRow;
this.routingOptionsStationString;this.AutomcompleteRequest=null;this.RevgeocodingStart=false;
this.RevRouting=false;this.initAutocomplete=function(B,D,A,C){if(!C.isGeocoded){this.AutomcompleteRequest=jQuery.ajax({url:"Services/Typeahead.ashx?context=1|"+A,dataType:"json",formatItem:this.formatItem,data:{term:B.term},success:function(E){D(jQuery.map(E,function(F){if(F){return{label:F.split("|")[1],key:F};
}}));},error:function(E){var F=E;},select:function(F,E){ROUTING.autocompleteSelect(this.id,E.item.key);
}});}};this.autocompleteSelect=function(B,A){GEOCODING.onTypeAheadSelection(B,A);
};this.objectchanger=function(B,C,E,A,D){this.TableRow=B;if(D){this.TableRow=B;return;
}if(E){this.TableRow=B.parentNode.rows[0];return;}if(A){this.TableRow=B.parentNode.rows[B.parentNode.rows.length-1];
return;}if(C){if(this.TableRow.id.indexOf("Corridor")!=-1){while(this.TableRow.id.indexOf("Corridor")!=-1){this.TableRow=this.TableRow.previousSibling;
}}else{this.TableRow=B.previousSibling;}}else{if(this.TableRow.id.indexOf("Corridor")!=-1){while(this.TableRow.id.indexOf("Corridor")!=-1){this.TableRow=this.TableRow.nextSibling;
}}else{this.TableRow=B.nextSibling;}}};this.changerow=function(F,C,H,J,A){var B=AMAMAPS.AMAgetAJAXMapReference();
if(B!=null){var E,D;var G=$(F);if(F.indexOf("Corridor")!=-1){this.objectchanger(G,C,H,J,A);
G=this.TableRow;F=this.TableRow.id;}E=F;D=this.setStation(G);this.RouteChangeListLineColor(F);
this.objectchanger(G,C,H,J,A);var L=E.split("|");var I=L[1].split("_");var M={x:parseFloat(I[1]),y:parseFloat(I[2])};
var K=AMAMAPS.AMAMercator_2_SmartUnits(M);this.showRouteinmap(K.x,K.y,D,"Routeinfo",B,false);
window.scrollTo(0,0);}};this.setStation=function(C){var A=this.stations.split("|");
var D='<!--?xml version="1.0" encoding="utf-8"?--><!-- begin: Route-Beschreibung //--><div id="layer_route_description" class="layer-route-description">';
D+='<a onclick="ROUTING.CloseRouteInfo();hideLayer(\'layer_route_description\');" class="box-close" href="javascript:void(0);"><!-- //--></a>';
if(MAPSGUI.Route._stopCounter>3){D+='<div class="box-stations clearfix"><span class="box-start">'+A[0]+'</span><span class="box-stop-multiple">&nbsp; </span><span class="box-end">'+A[A.length-1]+"</span></div>";
}else{if(MAPSGUI.Route._stopCounter==2){D+='<div class="box-stations clearfix"><span class="box-start">'+A[0]+'</span><span class="box-end">'+A[1]+"</span></div>";
}else{D+='<div class="box-stations clearfix"><span class="box-start">'+A[0]+'</span><span class="box-stop">'+A[1]+'</span><span class="box-end">'+A[2]+"</span></div>";
}}var B=$("eckdaten");if(B!=null){D+="<span>"+B.innerHTML+'</span><table class="tableresults" cellspacing="0" cellpadding="0"><tr>';
}D+='<th class="box-col-1">km</th><th class="box-col-2">Art</th><th class="box-col-3">Beschreibung</th></tr><tr>';
D+='<td id="'+C.cells[0].id+'" class="box-col-1">'+C.cells[0].innerHTML+"</td>";D+='<td style="text-align: right;" id="'+C.cells[1].id+'" class="box-col-2">'+C.cells[1].innerHTML+"</img></td>";
D+='<td id="'+C.cells[2].id+'" class="box-col-3">'+C.cells[2].innerHTML+"</td>";D+='</tr></table><ul class="clearfix">';
if(C.previousSibling!=null&&C.previousSibling.id!=""){D+="<li><span onclick=\"ROUTING.changerow('"+C.parentNode.rows[0].id+'\', true, true, false, false );" class="box-first"><!-- //--></span></li>';
D+="<li><span onclick=\"ROUTING.changerow('"+C.previousSibling.id+'\', true, false, false, false );" class="box-prev"><!-- //--></span></li>';
}else{D+='<li><span onclick="" class="box-first disabled"><!-- //--></span></li>';
D+='<li><span onclick="" class="box-prev disabled"><!-- //--></span></li>';}if(C.nextSibling!=null){D+="<li><span onclick=\"ROUTING.changerow('"+C.nextSibling.id+'\', false, false, false, false);" class="box-next"><!-- //--></span></li>';
D+="<li><span onclick=\"ROUTING.changerow('"+C.parentNode.rows[C.parentNode.rows.length-1].id+'\', false, false, true, false );" class="box-last"><!-- //--></span></li>';
}else{D+='<li><span onclick="" class="box-next disabled"><!-- //--></span></li>';
D+='<li><span onclick="" class="box-last disabled"><!-- //--></span></li>';}D+="</ul></div><!-- end: Route-Beschreibung //-->";
return D;};this.showRouteinmap=function(D,C,F,I,A,E){var G=A.getLayer("vector");var K="infobox_"+I;
if(G.elementExists(K)){G.hideElement(K);}AMAMAPS.showCardOptionen("reset");AMAMAPS.AMAsetCenter(D,C);
AMAMAPS.AMAsetZoom(4);var H=com.ptvag.webcomponent.map.vector.InfoBoxElementFactoryDefault.getInstance();
H.setAllowWrap(true);var B=new com.ptvag.webcomponent.map.vector.InfoBox(D,C,F,null,null,K);
var J=A.getServerDrawnObjectManager();J.setDefaultStaticPOITooltips(false);G.addElement(B);
};this.CloseRouteInfo=function(){var C=AMAMAPS.AMAgetAJAXMapReference();if(C!=null){var B=C.getServerDrawnObjectManager();
B.setDefaultStaticPOITooltips(true);var A=C.getLayer("vector");if(A.elementExists("infobox_Routeinfo")){A.hideElement("infobox_Routeinfo");
}}};this.RouteChangeListLineColor=function(A){gridViewCtl=null;if(null==gridViewCtl){if(HELPER.routinglastListeIndexSelected!=""&&typeof HELPER.routinglastListeIndexSelected!="undefined"){var B=HELPER.routinglastListeIndexSelected.split("|");
if(A!=HELPER.routinglastListeIndexSelected){var C=$(HELPER.routinglastListeIndexSelected);
if(C!=null){switch(isEven(B[2])){case true:C.style.backgroundColor="#efefef";break;
case false:C.style.backgroundColor="white";break;}}}}HELPER.routinglastListeIndexSelected=A;
gridViewCtl=$(A);gridViewCtl.style.backgroundColor="#ffeda6";}};this.gpx=function(D){var H="";
var F=AMAMAPS.AMAgetAJAXMapReference();var I;var G;if(F!=null){I=F.getRect();G=I.left+"|"+I.top+"|"+I.right+"|"+I.bottom;
}H+=G;var A=$("hfRouteID").value;var B=HELPER.getRubricFromRubricString();var E=H.length;
H=B+"*"+H+"*"+A;var C=g_MapsWebUrl+"Services/GPXDownload.ashx?DruckPage="+H;self.location.href=C;
};this.addStation=function(){showLayer("box_tabcontent_1_button_1a");showLayer("box_tabcontent_1_button_2a");
hideLayer("box_tabcontent_1_button_1b");hideLayer("box_tabcontent_1_button_2b");};
this.GetRoutingStationlist=function(){for(var E=0;E<MAPSGUI.Route._allStops.length;
E++){if(MAPSGUI.Route._allStops[E]==="null"){continue;}var A=MAPSGUI.Route._allStops[E];
A.Station.FuzzyMode=A.isUmweg;var C=A.stationroutingstring.split("|");if(C.length==13){var F=A.stationroutingstring.indexOf("|")+1;
A.stations[A.stationgecodingchosenindex]=A.stationroutingstring.substring(F);C.shift();
}if(!A.isUmweg){A.stationroutingstring="";for(var D=0;D<C.length-1;D++){if(D==6){A.stationroutingstring+="|";
}else{A.stationroutingstring+=C[D]+"|";}}}else{A.stationroutingstring=A.stations[A.stationgecodingchosenindex];
}var B=$("UcTabsNaviTop_UcRouting_CalculateRoutingString");if(E==0){B.value=A.stationroutingstring;
}else{B.value+="^"+A.stationroutingstring;}}};this.ReiseRoute="";this.showRouteinRect=function(){var B=AMAMAPS.AMAgetAJAXMapReference();
if(B!=null){var A=this.rect.split("|");B.setRect(parseFloat(A[0]),parseFloat(A[1]),parseFloat(A[2]),parseFloat(A[3]));
}};this.getDetails=function(B){$("hfRoutingDetails").value=B;var A=$(GetRenderedId("ButRoutingDetails"));
__doPostBack(A.name,"");};this.showDetails=function(){var B=$("hfRoutingDetails");
var A=$(GetRenderedId("detailInfoTextxslt"));A.innerHTML=B.value;MAPSGUI.showOpacityLayer("biglayer");
};this.GetSelectedCorridors=function(){var A=$("corridor_rubricstring");var B=$("UcTabsNaviTop_UcRouting_SelectedCorridors");
B.value=A.value.replace("&corridor!","");};this.GetRoutingOptions=function(){var C=$("UcTabsNaviTop_UcRouting_RoutingOptions");
var B=$("UcTabsNaviTop_UcRouting_RouteType");ROUTING.routingOptionsStationString="";
for(var A=0;A<MAPSGUI.Route._allStops.length;A++){if(MAPSGUI.Route._allStops[A]==="null"){continue;
}currentStationId="Hf_station_stop_"+MAPSGUI.Route._allStops[A].id;currentStation=MAPSGUI.Route._allStops[A].stations[MAPSGUI.Route._allStops[A].stationgecodingchosenindex];
ROUTING.routingOptionsStationString+=currentStation+"^";}C.value=ROUTING.ADACMapsRouteplanerGetOptionsData(ROUTING.routingOptionsStationString);
B.value=ROUTING.ADACMapsRouteplanerGetRouteType();};this.fillStations=function(){var A;
var D;var E;ROUTING.ReiseRoute="Ihre Route: ";ROUTING.stations="";for(var C=0;C<MAPSGUI.Route._allStops.length;
C++){if(MAPSGUI.Route._allStops[C]==="null"){continue;}var B=MAPSGUI.Route._allStops[C];
D=B.stations[B.stationgecodingchosenindex].split("|");if(this.RevRouting==true){ROUTING.stations+=D[3]+"|";
if(C===0){ROUTING.ReiseRoute+=D[3];}if(C===(MAPSGUI.Route._allStops.length-1)){ROUTING.ReiseRoute+=" - "+D[3];
}GEOCODING.destination="";}else{ROUTING.stations+=D[1]+D[3]+" "+D[4]+"|";if(C===0){ROUTING.ReiseRoute+=D[1]+D[3]+" "+D[4];
}if(C===(MAPSGUI.Route._allStops.length-1)){ROUTING.ReiseRoute+=" - "+D[1]+D[3]+" "+D[4];
}}}};this.ADACMapsRouteplanerGetOptionsData=function(H){var W="|";var O;var G;var Q;
var Y;var C;var X;var V=new Array();var R=0;excludeCountriesDiv=$("box_excluded_lands");
inputs=excludeCountriesDiv.getElementsByTagName("input");for(var U=0;U<inputs.length;
U++){if(inputs[U].checked){V[R]=inputs[U].value;R++;}}O=V.join(",");O=","+O;var T=H.split("^");
for(var D=0;D<T.length;D++){var A=T[D].split("|");if(A.length==12){var S=A[1];var E=","+S+";";
var P=O.match(E);var I;if(P!=null){start=P.index;laenge=E.length+2;I=O.substr(start,laenge);
var M=O.replace(I,"");O=M;excludeCountryUnchecked=$(S);if(excludeCountryUnchecked!=null){excludeCountryUnchecked.checked=false;
}}}}inputMotorwayChecked=$("route_options_avoiding_autobahn").checked;if(inputMotorwayChecked){G="TRUE";
}else{G="FALSE";}inputNoTollChecked=$("route_options_avoiding_maut").checked;if(inputNoTollChecked){Q="TRUE";
}else{Q="FALSE";}inputnoVignetteChecked=$("route_options_avoiding_vignettenpflicht").checked;
if(inputnoVignetteChecked){Y="TRUE";}else{Y="FALSE";}radioInputSummer=$("route_options_summer").checked;
radioInputWinter=$("route_options_winter").checked;radioInputTravelDate=$("route_options_date").checked;
if(radioInputSummer){C="SOMMER";}else{if(radioInputWinter){C="WINTER";}else{C=$("fullDate").value;
}}X=$("route_options_transporting_type").value.toUpperCase();var J="EXCLUDECOUNTRIES";
var L="NOMOTORWAY";var N="NOTOLL";var F="NOVIGNETTE";var K="TRAVELDATE";var B="TYPEOFVEHICLE";
optionsString=J+"="+O+W+N+"="+Q+W+L+"="+G+W+F+"="+Y+W+K+"="+C+W+B+"="+X;return optionsString;
};this.ADACMapsRouteplanerGetRouteType=function(){kuerzesteRoute=$("route_options_route_type").value;
if(kuerzesteRoute=="schnellste"){return"STANDARD";}else{return"SHORTEST";}};this.drawRoute=function(J,A,K){var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){var D=E.getServerDrawnObjectManager();var L;var C=HELPER.loadXml(K);var H=C.childNodes[0];
if(H!=null){var O;var F;var G;var M;for(var N=0;N<H.attributes.length;N++){switch(H.attributes[N].name){case"top":O=H.attributes[N].value;
break;case"bottom":F=H.attributes[N].value;break;case"left":G=H.attributes[N].value;
break;case"right":M=H.attributes[N].value;break;}}var I=parseFloat(G)-(parseFloat(M)-parseFloat(G));
E.setRect(I,parseFloat(O),parseFloat(M),parseFloat(F));var B="|";this.rect=I+B+parseFloat(O)+B+parseFloat(M)+B+parseFloat(F);
}}};this.disableCheckbox=function(){var A=$("corridor_rubricstring");var B=A.value.replace("&corridor!","");
if(B.length>1){$("extended_infos").disabled=false;$("extended_infos").checked=true;
}else{$("extended_infos").disabled=true;$("extended_infos").checked=false;}};this.setStationFromMap=function(){hideLayer("rightclickdiv");
var B=AMAMAPS.AMAgetAJAXMapReference();if(B!=null){if(MAPSGUI.User.routeSet==true){MAPSGUI.Route.editRoute();
}var A;if(this.RevgeocodingStart){A=MAPSGUI.Route._allStops[0];if(A.inputElement.value!=A.inputElement.defaultValue){if(A.inputElement.value!=""){MAPSGUI.showOpacityLayer("infolayer_overwritestation");
showLayer("overwritestationbiglayer");return;}}}else{A=MAPSGUI.Route._allStops[MAPSGUI.Route._allStops.length-1];
if(A.inputElement.value!=A.inputElement.defaultValue){if(A.inputElement.value!=""){MAPSGUI.Route.addStation(MAPSGUI.Route.generateId());
A=MAPSGUI.Route._allStops[MAPSGUI.Route._allStops.length-1];}}}ROUTING.setStationFromMapValue();
}};this.setStationFromMapValue=function(){var E=AMAMAPS.AMAgetAJAXMapReference();
if(E!=null){var B;if(this.RevgeocodingStart){B=MAPSGUI.Route._allStops[0];}else{B=MAPSGUI.Route._allStops[MAPSGUI.Route._allStops.length-1];
}B.isGeocoded=true;B.keepError=false;MAPSGUI.Route.removeError(B);var D=$(GetRenderedId("hfReverseGeocodeData"));
var H;if(D.value!=undefined&&D.value!=""){var C=D.value.split("|");var A=C[2].split(";");
var F;if(C[3].indexOf("Klickpunkt")>0){H=A[0]+" | "+A[1];F=A[0]+" | "+A[1]+"#";}else{H=C[3];
F=C[3]+"#";}GEOCODING.highlightFlag(REVGEODODING.xGeoCoord,REVGEODODING.yGeoCoord,F);
}var C=D.value.split("|");var G=E.getRect();$("Hf_station_stop_"+B.id).value=H;B.stations[0]=D.value;
B.inputElement.value=H;if(MAPSGUI.Route.allGeocoded()){MAPSGUI.Route.showButton(MAPSGUI.Route._ROUTE);
showLayer("box_tabcontent_1_options");}MAPSGUI.Route.saveValues();MAPSGUI.Route.reInit();
MAPSGUI.Util.addClassName(B.inputElement,"box-no-bg");MAPSGUI.Tabnav.showTab(1);}};
}function displayShortInfo(){var C=$("HfPinX");var E=$("HfPinY");var F=parseFloat(C.value);
var G=parseFloat(E.value);var D=$("HfRubric").value;var A=$("HfSubRubric").value;
WEBTREKK.writeShortInfo(D,A);var B=$("HfShortInfoText");if(B.value!=null&&B.value!=""){showHideInfoBox(F,G,B.value,"LayerKurzInfo1",false);
window.scrollTo(0,0);}}function displayDetailInfo(){var C=$("HfPinX");var E=$("HfPinY");var F=parseFloat(C.value);
var G=parseFloat(E.value);var D=$("HfRubricDetail").value;var A=$("HfSubRubricDetail").value;
WEBTREKK.writeDetailInfo(D,A);var B=$("HfDetailInfoText");var H=$("detailInfoTextxslt");
H.innerHTML=B.value;MAPSGUI.showOpacityLayer("biglayer");MAPSGUI.setInfoLayerPos();
}function FensterOeffnen(B){var A=window.open(B,"ADACMaps","width=1000,height=600,left=100,top=80,resizable=1,status=0,toolbar=0,location=0,scrollbars=0");
A.focus();}var oldlayerselected="init";var oldlinkselected="init";var oldcontentselected="init";
function switch_tabs_content(A){layerselected="div-"+A;linkselected="link-"+A;contentselected="content-"+A;
if(oldlayerselected==layerselected){return;}document.getElementById(layerselected).className="left bg-reiterdetail-hi";
document.getElementById(linkselected).className="reiterdetail-hi";document.getElementById(contentselected).style.display="block";
document.getElementById(oldlayerselected).className="left bg-reiterdetail";document.getElementById(oldlinkselected).className="reiterdetail";
document.getElementById(oldcontentselected).style.display="none";oldlayerselected=layerselected;
oldlinkselected=linkselected;oldcontentselected=contentselected;}function init_switch_tabs_content(A){oldlayerselected="div-"+A;
oldlinkselected="link-"+A;oldcontentselected="content-"+A;}var vs_oldcontentselected="init";
var vs_oldlinkselected="init";function switch_visual_content(A){if(vs_oldcontentselected==A){return;
}vs_linkselected="link-"+A;vs_contentselected=A;document.getElementById(vs_linkselected).className="strong";
document.getElementById(vs_contentselected).style.display="block";document.getElementById(vs_oldlinkselected).className="underline";
document.getElementById(vs_oldcontentselected).style.display="none";vs_oldlinkselected=vs_linkselected;
vs_oldcontentselected=vs_contentselected;}function init_switch_visual_content(A){vs_oldcontentselected=A;
vs_oldlinkselected="link-"+A;}function init_photoshow(A,B){_photoshow=new photoShow();
_photoshow.init();var D=B;for(i=1;i<=A;i++){var E=D.substring(0,D.indexOf(":"));var C=D.substring(D.indexOf(":")+1,D.indexOf(";"));
_photoshow.ImagesData[i]={src:E,width:1,height:1,numphotos:i,descr:C};if(i!=A){D=D.substring(D.indexOf(";")+1);
}}}function photoShow(){}photoShow.prototype={ImagesData:new Array(),iContentWidth:459,iPrevNextImageHeight:79,iPrevNextImageWidth:24,iPos:0,iNum:0,init:function(){this.iPos=1;
this.iNum=1;},next:function(){this.show(this.iPos+1);},previous:function(){this.show(this.iPos-1);
},show:function(A){if(A!=this.iPos){this.iPos=A;this._showImage();}},_showImage:function(A){if(!document.getElementById("dynps-image")){return false;
}this.iNum=this.ImagesData.length-1;if(this.iPos>this.iNum){this.iPos=1;}else{if(this.iPos==0){this.iPos=this.iNum;
}}document.getElementById("dynps-image").src=this.ImagesData[this.iPos].src;document.getElementById("dynps-image").alt=(this.ImagesData[this.iPos].alt)?this.ImagesData[this.iPos].alt:"";
document.getElementById("dynps-image").title=(this.ImagesData[this.iPos].title)?this.ImagesData[this.iPos].title:"";
if(document.getElementById("dynps-img-descr")){document.getElementById("dynps-img-descr").innerHTML=(this.ImagesData[this.iPos].descr)?this.ImagesData[this.iPos].descr:"";
}this._updatePager();return true;},_updatePager:function(){if(!document.getElementById("dynps-nav-items")){return;
}var B=document.getElementById("dynps-nav-items").getElementsByTagName("a");if(!B){return;
}for(var A=0;A<B.length;A++){if(A==(this.iPos-1)){B[A].className="act";}else{if(B[A].className=="act"){B[A].className="";
}}}}};function MiniMap_zoom(E){var Q=document.getElementById("minimap");var O=Q.src;
var B=parseInt(O.substring(O.indexOf("North")+6,O.indexOf("South")-1));var A=parseInt(O.substring(O.indexOf("South")+6,O.indexOf("West")-1));
var G=parseInt(O.substring(O.indexOf("West")+5,O.indexOf("East")-1));var S=parseInt(O.substring(O.indexOf("East")+5,O.indexOf("MapWidth")-1));
var R=O.substring(0,O.indexOf("North"));var K=O.substring(O.indexOf("MapWidth")-1);
var H=O.substr(O.indexOf("South")-1,1);if(E=="in"){var L=G+((S-G)/2);var D=A+((B-A)/2);
var J=(S-G)/1.5;var I=(B-A)/1.5;var P=Math.round(D+(I/2));var C=Math.round(D-(I/2));
var N=Math.round(L-(J/2));var F=Math.round(L+(J/2));}else{var L=G+((S-G)/2);var D=A+((B-A)/2);
var J=(S-G)*1.5;var I=(B-A)*1.5;var P=Math.round(D+(I/2));var C=Math.round(D-(I/2));
var N=Math.round(L-(J/2));var F=Math.round(L+(J/2));}var M=R+"North="+P+H+"South="+C+H+"West="+N+H+"East="+F+K;
Q.src=M;}var lastitemidx;function displayClusterInfo(){var N=$(GetRenderedId("HfClusterInfoText"));
var E=$(GetRenderedId("HfXsltTransform"));var M=E.value.split("|");var L=$(GetRenderedId("DivXslt"));
L.innerHTML=M[0];var H=$(GetRenderedId("DivHeaderBox"));H.innerHTML=N.value;var K=$(GetRenderedId("HfListContentHead"));
var D=$(GetRenderedId("HfDivListContentHead"));D.innerHTML=K.value;var F=$(GetRenderedId("HfClusterLayerIndex"));
var A=F.value;if(A!=""){var C=document.getElementById("boxLinkRubric1").className;
C=C.replace(/HiActive/,"");document.getElementById("boxLinkRubric1").className=C;
MAPSGUI.firstActiveRubrikContent=A;MAPSGUI.firstActiveRubrikClass=document.getElementById("boxLinkRubric"+A).className;
document.getElementById("boxLinkRubric"+A).className=document.getElementById("boxLinkRubric"+A).className+"HiActive";
}var I=document.getElementById(1);I.className="boxListContentLink clearfix active";
lastitemidx=1;var G=$(GetRenderedId("HfDetailInfoLinks"));var J=$(GetRenderedId("HfDetailInfoLink"));
var B=G.value.split("#");J.value=B[0];if(C.indexOf("Verkehrsfluss")<0){MAPSGUI.showClusterDiv("clusterlayer");
}}MAPSGUI.firstActiveRubrikContent=1;MAPSGUI.firstActiveRubrikClass="";function displayClusterXslt(A){if(lastitemidx!=null){var F=document.getElementById(lastitemidx);
switch(isEven(lastitemidx)){case true:F.className="boxListContentLink even clearfix";
break;case false:F.className="boxListContentLink odd clearfix";break;}}var I=A+1;
lastitemidx=I;var B=document.getElementById(I);B.className="boxListContentLink clearfix active";
var E=$(GetRenderedId("HfXsltTransform"));var C=E.value.split("|");var J=$(GetRenderedId("DivXslt"));
J.innerHTML=C[A];var G=$(GetRenderedId("HfDetailInfoLinks"));var D=$(GetRenderedId("HfDetailInfoLink"));
var H=G.value.split("#");D.value=H[A];}function PagerClick(){}function Station(I,D,L,K,C,H,G,A,M,J,E,B,F){this.country=I;this.zip=D;this.town=L;
this.district=K;this.street=C;this.xcoord=H;this.ycoord=G;this.useferry=M;this.region=J;
this.FuzzyMode=E;this.FuzzyRadius=B;this.KategorieID=F;}function Serialize_Station(A){res="";
res+=A.country+"|";res+=A.zip+"|";res+=A.town+"|";res+=A.district+"|";res+=A.street+"|";
res+=A.xcoord+"|";res+=A.ycoord+"|";res+=A.useferry+"|";res+=A.region+"|";res+=A.FuzzyMode+"|";
res+=A.FuzzyRadius+"|";res+=A.KategorieID+"|";return res;}function Deserialize_Station(C,A){if(A!=null){var B=A.split("|");
C.country=B[1];C.zip=B[3];C.town=B[4];C.district=B[3];C.street=B[4];C.xcoord=B[8];
C.ycoord=B[9];C.useferry=B[7];C.region=B[8];C.FuzzyRadius=B[6];C.KategorieID=B[11];
}}function Set_Station(I,H,C,L,K,B,G,F,M,J,D,A,E){I.country=H;I.zip=C;I.town=L;I.district=K;
I.street=B;I.xcoord=G;I.ycoord=F;I.useferry=M;I.region=J;I.FuzzyMode=D;I.FuzzyRadius=A;
I.KategorieID=E;}function Copy_Station_From_To(A,B){B.country=A.country;B.zip=A.zip;
B.town=A.town;B.district=A.district;B.street=A.street;B.xcoord=A.xcoord;B.ycoord=A.ycoord;
B.useferry=A.useferry;B.region=A.region;B.FuzzyMode=A.FuzzyMode;B.FuzzyRadius=A.FuzzyRadius;
B.KategorieID=A.KategorieID;}function Reset_Station(A){A.country="";A.zip="";A.town="";
A.district="";A.street="";A.xcoord="";A.ycoord="";A.useferry="0";A.region="";A.FuzzyMode=false;
A.FuzzyRadius="0";A.KategorieID="-1";}qxp.OO.defineClass("adac.MeasurementLayer",com.ptvag.webcomponent.map.layer.VectorLayer,function(H,D){com.ptvag.webcomponent.map.layer.VectorLayer.call(this,H,D==null?true:D);
var B=this;var C=com.ptvag.webcomponent.map;var K=com.ptvag.webcomponent.util.EventUtils;
var L=[];var G;var E=null;var I=B.init;B.init=function(){I.apply(B,arguments);G=new C.vector.Line(B.getColor(),B.getLineWidth());
B.addElement(G);};var A=B._modifyEnabled;B._modifyEnabled=function(N){if(A){A.apply(B,arguments);
}var M=B.getMap();if(!M){return;}if(N){M.setCursor("default");}else{M.setCursorFromController();
B.reset();}var O=M.getLayer("toolbar");O.setButtonEnabled("zoom-mode",!N);O.setButtonEnabled("move-mode",!N);
};var F=function(Q,V){var P=B.getClickTolerance();P*=P;var a=G.getCoordinates();var c=a.length;
var W=-1;var Z=null;var O=B.getMap();var X=O.getVisibleZoom();var M=C.CoordUtil.smartUnit2Pixel(O.getVisibleCenter(),X);
var b=O.getWidth()/2;var R=O.getHeight()/2;for(var S=0;S<c;++S){var U=C.CoordUtil.smartUnit2Pixel(a[S],X);
U.x-=M.x;U.y=M.y-U.y;U.x+=b;U.y+=R;var Y=U.x-Q;var N=U.y-V;var T=Y*Y+N*N;if(T<=P){if(T<W||W==-1){W=T;
Z=S;}}}return Z;};var J=function(){var U=0;var O=G.getCoordinates();var R=O.length;
if(R>1){var N=O[0];for(var T=1;T<R;++T){var S=O[T];U+=C.CoordUtil.distanceOfSmartUnitPoints(N,S);
N=S;}}var V=B.getMap().getLayer("adac_measurementdisplay").getParentElement().getElementsByTagName("span");
var Q=""+Math.round(U)/1000;var P=Q.indexOf(".");if(P!=-1){Q=Q.replace(".",",");var M=4-(Q.length-P);
for(var T=0;T<M;++T){Q+="0";}}V[V.length-1].firstChild.nodeValue=Q+" km";};B.onMouseDown=function(M){if(!K.isLeftMouseButton(M)){return false;
}B.getMap().removeLayer("adac_contextmenu");E=F(M.relMouseX,M.relMouseY);if(E==null){E=L.length;
B.addPoint(M.relMouseX,M.relMouseY);}return true;};B.onMouseMove=function(M){if(E!=null){var N=B.getMap().translateMouseCoords(M);
var P=L[E];P.setX(N.x);P.setY(N.y);var O=G.getCoordinates();O[E]=N;G._modifyCoordinates(O);
J();}return false;};B.onMouseUp=function(M){if(K.MOUSE_BUTTON_LEFT!=1){return false;
}E=null;return true;};B.onMouseOut=function(M){E=null;return false;};B.reset=function(){E=null;
G.setCoordinates([]);var M=L.length;for(var N=0;N<M;++N){B.removeElement(L[N].getId());
}L=[];J();};B.addPoint=function(P,V){var R=L.length;if(R==1){WEBTREKK.writeEntfernungsmessung();
}var M=B.getMap();var N=M.getVisibleZoom();var Q=C.CoordUtil.smartUnit2Pixel(M.getVisibleCenter(),N);
var O={x:Q.x+P-M.getWidth()/2,y:Q.y-(V-M.getHeight()/2)};var T=C.CoordUtil.pixel2SmartUnit(O,N);
var S=new C.vector.Circle(T.x,T.y,B.getColor(),B.getPointRadius()*2);B.addElement(S);
L.push(S);var U=G.getCoordinates();U.push(T);G._modifyCoordinates(U);J();};B.removePoint=function(M,P){var Q=L.length;
if(Q==0){return;}var N=F(M,P);if(N==null){N=L.length-1;}B.removeElement(L[N].getId());
L.splice(N,1);var O=G.getCoordinates();O.splice(N,1);G._modifyCoordinates(O);J();
};});qxp.OO.addProperty({name:"clickTolerance",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:5});
qxp.OO.addProperty({name:"pointRadius",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:3});
qxp.OO.addProperty({name:"lineWidth",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:2});
qxp.OO.addProperty({name:"color",type:qxp.constant.Type.STRING,allowNull:false,defaultValue:"#ff00ff"});
qxp.OO.defineClass("adac.AbstractStaticAreaLayer",com.ptvag.webcomponent.map.layer.AbstractStaticAreaLayer,function(){com.ptvag.webcomponent.map.layer.AbstractStaticAreaLayer.apply(this,arguments);
var A=this;var B=A.init;A.init=function(){B.apply(A,arguments);A.getParentElement().style.cursor="default";
};});qxp.OO.defineClass("adac.ZoomSliderLayer",adac.AbstractStaticAreaLayer,function(){adac.AbstractStaticAreaLayer.call(this);
var q=this;var Q=com.ptvag.webcomponent.map;var j=com.ptvag.webcomponent.util.EventUtils;
var G;var o;var S=null;var N=null;var b=15;var r=5;var K;var m;var O;var g;var L=15;
var C=15;var d=11;var a="gray";var D=false;var e=false;var U=false;var P=false;var i;
var h;var B;var k;var l=null;var J=null;var n=null;var c=null;var W=null;var f=false;
var M;var E=parseInt(r/2);var p=q.init;q.init=function(){p.apply(q,arguments);var t=q.getParentElement();
var s=document.createElement("div");s.style.position="absolute";s.style.left="0px";
s.style.top="0px";s.style.width=q.getAreaWidth()+"px";s.style.backgroundColor="white";
t.appendChild(s);G=document.createElement("div");G.style.position="absolute";G.style.left=C+"px";
G.style.width=L+"px";s.appendChild(G);o=document.createElement("img");o.style.position="absolute";
o.style.left=C+"px";o.style.width=b+"px";o.style.height=r+"px";o.src=g_MapsWebUrl+"images/mapsicons/zoomregler.gif";
t.appendChild(o);i=new Image();i.src=g_MapsWebUrl+"images/mapsicons/icon_plus_lo.gif";
h=new Image();h.src=g_MapsWebUrl+"images/mapsicons/icon_minus_lo.gif";B=new Image();
B.src=g_MapsWebUrl+"images/mapsicons/icon_plus_hi.gif";k=new Image();k.src=g_MapsWebUrl+"images/mapsicons/icon_minus_hi.gif";
S=document.createElement("img");S.style.position="absolute";S.style.left=C+"px";S.style.width=L+"px";
S.style.height=L+"px";N=document.createElement("img");N.style.position="absolute";
N.style.left=C+"px";N.style.width=L+"px";N.style.height=L+"px";q.getMap().addEventListener("changeInverseWheelZoom",F);
q.setAreaElement(s);};var I=function(){var s=q.getAreaOpacity();var u=q.getBlendingOpacityOut();
var w=(s-u)/(q.getBlendingOpacityOver()-u);w=u+w*(1-u);var t=q.getMap().getVisibleZoom();
var v=Q.CoordUtil.TILE_WIDTHS.length-1;var x=i;if(t==0){var y=u;}else{y=w;if(U&&D){x=B;
}}if(l!=x){Q.MapUtil.setImageSource(S,x.src);l=x;}if(n!=y){Q.MapUtil.setElementOpacity(S,y);
n=y;}x=h;if(t==v){y=u;}else{y=w;if(P&&e){x=k;}}if(J!=x){Q.MapUtil.setImageSource(N,x.src);
J=x;}if(c!=y){Q.MapUtil.setElementOpacity(N,y);c=y;}if(W!=w){Q.MapUtil.setElementOpacity(o,w);
W=w;}};var F=function(){var v=q.getComputedAreaHeight();var Ag=q.getParentElement();
if(q.getShowZoomButtons()){var Ad=q.getMap().getInverseWheelZoom();var Ab=(Ad?N:S);
var Af=(Ad?S:N);Ab.style.top=d+"px";Af.style.top=(v-d-L)+"px";var u=q.getAreaElement();
if(!S.parentNode){Ag.appendChild(Ab);Ag.appendChild(Af);}O=L+d+1;}else{if(S.parentNode){Ag.removeChild(S);
Ag.removeChild(N);}O=d;}var y=v-O*2;g=y;G.style.top=O+"px";G.style.height=y+"px";
while(G.firstChild){G.removeChild(G.firstChild);}if(q.getShowZoomSteps()){var s=Q.CoordUtil.TILE_WIDTHS.length-1;
var z=parseInt(L/3)-1;var t=L-z;for(var Ae=0;Ae<=s;++Ae){for(var x=0;x<2;++x){var Aa=document.createElement("div");
Aa.style.position="absolute";Aa.style.width=z+"px";Aa.style.height="1px";Aa.style.borderTop="1px solid "+a;
Aa.style.left=(x==0?"0px":t+"px");var w=Math.round(g*(Ae+1)/(s+2));if(x==0){if(Ae==0){minPos=w;
}else{if(Ae==s){maxPos=w;}}}Aa.style.top=Math.round(g*(Ae+1)/(s+2))+"px";G.appendChild(Aa);
}}var Ac=document.createElement("div");Ac.style.position="absolute";Ac.style.left=z+1+"px";
Ac.style.width=L-(z+1)*2+"px";Ac.style.height=g+"px";Ac.style.top="0px";Ac.style.backgroundColor=a;
G.appendChild(Ac);m=O+minPos;g=maxPos-minPos;}T();};var H=q._modifyComputedAreaHeight;
q._modifyComputedAreaHeight=function(){F();H.apply(q,arguments);};q._modifyShowZoomSteps=function(){F();
};q._modifyShowZoomButtons=function(){D=false;e=false;U=false;S.src=i.src;P=false;
N.src=h.src;F();};var A=q.onViewChanged;q.onViewChanged=function(s){A(s);if(s.zoomChanged||s.heightChanged){T();
}};var T=function(){var s=q.getMap().getVisibleZoom();var u=Q.CoordUtil.TILE_WIDTHS.length-1;
var t=s;if(q.getMap().getInverseWheelZoom()){t=u-s;}K=Math.round(g*t/u);o.style.top=K-E+m+"px";
I();};var R=function(t){var s=t.relMouseY-q.getComputedAreaTop()-m;K=Math.max(0,Math.min(g,s));
o.style.top=K+m-E+"px";};var Z=q.onMouseMove;q.onMouseMove=function(v){Z(v);if(M){R(v);
return false;}else{if(q.getShowZoomButtons()){var s=q.getComputedAreaLeft();var w=q.getComputedAreaTop();
var u=q.getComputedAreaWidth();var t=q.getComputedAreaHeight();var x=q.getMap().getInverseWheelZoom();
D=false;e=false;if(v.relMouseX>=s+C&&v.relMouseX<s+u-C){if(v.relMouseY>=w+d&&v.relMouseY<w+d+L){if(x){if(!U){e=true;
}}else{if(!P){D=true;}}}else{if(v.relMouseY>=w+t-L-d&&v.relMouseY<w+t-d){if(x){if(!P){D=true;
}}else{if(!U){e=true;}}}}}I();}}return false;};var X=q.onMouseOut;q.onMouseOut=function(s){X(s);
D=false;e=false;U=false;P=false;if(M){M=false;T();}else{I();}return false;};q.onMouseDown=function(w){var v=w.relMouseX;
var y=w.relMouseY;f=q.isPositionInArea(v,y);if(!j.isLeftMouseButton(w)){return f;
}q.onMouseMove(w);var s=q.getComputedAreaLeft();var x=q.getComputedAreaTop();var u=q.getComputedAreaWidth();
var t=q.getComputedAreaHeight();if(v>=s+C&&v<s+u-C&&y>=x+O&&y<x+t-O){R(w);M=true;
return f;}var z=false;if(D){U=true;z=true;}else{if(e){P=true;z=true;}}if(z){I();}return f;
};q.onMouseUp=function(x){q.onMouseMove(x);var t=U;U=false;var w=P;P=false;var u=q.getMap();
if(M){M=false;var v=Q.CoordUtil.TILE_WIDTHS.length-1;var s=Math.round(v*K/g);if(u.getInverseWheelZoom()){s=v-s;
}if(s==u.getZoom()){T();}else{u.startLoggingAction("user:zoomSlider");try{u.setZoom(s);
}finally{u.endLoggingAction();}}return f;}I();if(D&&t){u.setZoom(u.getZoom()-1);return f;
}if(e&&w){u.setZoom(u.getZoom()+1);return f;}return f;};var Y=q.dispose;q.dispose=function(){if(q.getDisposed()){return;
}q.getMap().removeEventListener("changeInverseWheelZoom",F);G=null;o=null;S=null;
N=null;i=null;h=null;Y.call(q);};var V=function(){q.setAreaWidth(L+C*2);};V();});
qxp.OO.addProperty({name:"showZoomButtons",type:qxp.constant.Type.BOOLEAN,allowNull:false,defaultValue:true});
qxp.OO.addProperty({name:"showZoomSteps",type:qxp.constant.Type.BOOLEAN,allowNull:false,defaultValue:true});
qxp.OO.defineClass("adac.ToolbarLayer",adac.AbstractStaticAreaLayer,function(){adac.AbstractStaticAreaLayer.call(this);
var O=this;var V=com.ptvag.webcomponent.map;var K=com.ptvag.webcomponent.util.EventUtils;
var C;var X=7;var H=0;var J=null;var E=false;var U=false;var D=[];var B={};var F=1;
var T;var R=O.init;O.init=function(){R.apply(O,arguments);var Y=document.createElement("div");
Y.style.position="absolute";Y.style.left="0px";Y.style.top="0px";Y.style.backgroundColor="white";
O.getParentElement().appendChild(Y);C=document.createElement("div");C.style.position="absolute";
C.style.left=X+"px";C.style.top=X+"px";O.getParentElement().appendChild(C);O.setAreaElement(Y);
S();};var P=function(e){var Y=O.getAreaOpacity();var a=O.getBlendingOpacityOut();
var c=(Y-a)/(O.getBlendingOpacityOver()-a);c=a+c*(1-a);if(H!=c||e){var Z=D.length;
for(var d=0;d<Z;++d){var f=D[d];var b=f.divElem;if(b){V.MapUtil.setElementOpacity(b,(f.enabled?c:a));
}}H=c;}};var G=function(){T=null;if(C==null){return;}var d={};var h=C.childNodes;
var g=h.length;for(var f=0;f<g;++f){var Z=h[f];var Y=Z._id;if(B[Y]==null||B[Y].divElem!=Z){Z.parentNode.removeChild(Z);
--f;--g;}else{d[Y]=Y;}}var a=0;var e=0;var c=D.length;for(f=0;f<c;++f){var b=D[f];
if(b.imgUrl){b.divElem.style.left=a+"px";b.xPos=a;if(b.height>e){e=b.height;}if(d[b.id]==null){C.appendChild(b.divElem);
}}a+=b.width;}O.setAreaWidth(a+2*X);O.setAreaHeight(e+2*X);O.positionArea();P();};
var S=function(){if(T==null){T=window.setTimeout(G,0);}};O.update=function(){if(T!=null){window.clearTimeout(T);
T=null;}G();};O.addElement=function(f,a){var Y=f.id;if(Y==null){do{Y="element-"+F;
F++;}while(B[Y]!=null);f.id=Y;}if(B[Y]!=null){throw new Error("Adding toolbar element failed. Id '"+Y+"' is already in use.");
}B[Y]=f;var b=false;if(a!=null){var e=D.length;for(var d=0;d<e;++d){if(D[d].id==a){D.splice(d,0,f);
b=true;break;}}}if(!b){D.push(f);}if(f.imgUrl==null){if(f.width==null){f.width=V.ToolbarLayer.SPACING_WIDTH;
}}else{var c=document.createElement("img");c.style.width=f.width+"px";c.style.height=f.height+"px";
var Z=document.createElement("div");Z.style.position="absolute";Z.style.width=f.width+"px";
Z.style.height=f.height+"px";Z.style.top="0px";Z._id=Y;Z.appendChild(c);f.divElem=Z;
A(f,f.pressed?f.pressedImgUrl:f.imgUrl);O.setButtonTooltip(Y,f.tooltip);}S();return Y;
};O.removeElement=function(a){var b=B[a];if(b!=null){if(J==b){J=null;}b.divElem=null;
delete B[a];var Y=D.length;for(var Z=0;Z<Y;++Z){if(D[Z]==b){D.splice(Z,1);break;}}S();
}return b;};O.getElementIds=function(){var Z=D.length;var Y=new Array(Z);for(var a=0;
a<Z;++a){Y[a]=D[a].id;}return Y;};var A=function(Y,Z){var a=Y.divElem.firstChild;
V.MapUtil.setImageSource(a,Z);};O.setButtonTooltip=function(a,b){var Y=B[a];var Z=Y.divElem.firstChild;
if(b==null){Z.removeAttribute("title");}else{Z.setAttribute("title",b);}Y.tooltip=b;
};O.setButtonEnabled=function(Z,Y){var a=B[Z];if(!Y&&J==a){A(a,a.pressed?a.pressedImgUrl:a.imgUrl);
J=null;}a.enabled=Y;P(true);};O.setButtonPressed=function(Z,Y){var a=B[Z];if(a.pressed!=Y){a.pressed=Y;
if(J==a&&E){Y=!Y;}A(a,Y?a.pressedImgUrl:a.imgUrl);}};O.isButtonPressed=function(Z){var Y=B[Z];
if(!Y){return null;}return Y.pressed;};O.onMouseDown=function(Y){var a=Y.relMouseX;
var Z=Y.relMouseY;U=O.isPositionInArea(a,Z);if(!K.isLeftMouseButton(Y)){return U;
}var b=M(a,Z);if(b!=null){J=b;E=true;A(b,b.pressed?b.imgUrl:b.pressedImgUrl);}return U;
};var L=O.onMouseUp;O.onMouseUp=function(Y){L(Y);if(J==null){return U;}O.onMouseMove(Y);
try{if(E){J.clickHandler();}}finally{if(J!=null){A(J,J.pressed?J.pressedImgUrl:J.imgUrl);
J=null;}}return U;};var Q=O.onMouseMove;O.onMouseMove=function(Y){Q(Y);P();if(J!=null){var b=M(Y.relMouseX,Y.relMouseY);
var Z=(b==J);if(Z!=E){var a=J.pressed;if(Z){a=!a;}A(J,a?J.pressedImgUrl:J.imgUrl);
E=Z;}}return false;};var W=O.onMouseOut;O.onMouseOut=function(Y){W(Y);if(J!=null){A(J,J.pressed?J.pressedImgUrl:J.imgUrl);
J=null;}return false;};var M=function(d,e){var Z=O.getComputedAreaLeft();var Y=O.getComputedAreaTop();
if(d>=Z+X&&d<Z+O.getComputedAreaWidth()-X&&e>=Y+X&&e<Y+O.getComputedAreaHeight()-X){var b=d-Z-X;
var c=e-Y-X;for(var f=0;f<D.length;f++){var a=D[f];var g=a.xPos;if(g!=null){if(b<g){return null;
}if(b<g+a.width&&(a.enabled||a.enabled==null)){return a;}}}}return null;};var N=O.dispose;
O.dispose=function(){if(O.getDisposed()){return;}var b=C.childNodes;var a=b.length;
var Z=D.length;var Y;for(i=0;i<Z;++i){Y=D[i];if(Y.divElem){Y.divElem=null;}}C=null;
N.call(O);};var I=function(){O.setAreaWidth(2*X);O.setAreaHeight(2*X);};I();});qxp.Class.SPACING_WIDTH=10;
qxp.OO.addProperty({name:"buttonOpacityDisabled",type:qxp.constant.Type.NUMBER,defaultValue:0.15});
qxp.OO.defineClass("adac.DefaultToolbarLayer",adac.ToolbarLayer,function(){adac.ToolbarLayer.apply(this,arguments);
var D=this;var B=com.ptvag.webcomponent.map;var I=adac.DefaultToolbarLayer;var A;
var C;var H=function(K,O,Q,N,R,P,L){var M={imgUrl:O,pressedImgUrl:Q,width:15,height:15,tooltip:N,id:K,clickHandler:R,pressed:(P==null?false:P),enabled:(L==null?true:L)};
D.addElement(M);};var J=function(){var K=D.getMap();A=K.hasHistoryBack();C=K.hasHistoryForward();
};var F=function(){var K=A;var L=C;J();if(K!=A){D.setButtonEnabled("history-back",A);
}if(L!=C){D.setButtonEnabled("history-forward",C);}};var E=D.init;D.init=function(){E.apply(D,arguments);
var L=D.getMap();J();H("history-back",g_MapsWebUrl+"images/mapsicons/zurueck_lo.gif",g_MapsWebUrl+"images/mapsicons/zurueck_hi.gif","Karte zurueck",D.historyBack,A,false);
D.addElement({width:5,id:"spacing-between-history"});H("history-forward",g_MapsWebUrl+"images/mapsicons/vor_lo.gif",g_MapsWebUrl+"images/mapsicons/vor_hi.gif","Karte vorwaerts",D.historyForward,C,false);
D.addElement({width:5,id:"spacing-after-history"});H("move-mode",g_MapsWebUrl+"images/mapsicons/icon_hand_lo.gif",g_MapsWebUrl+"images/mapsicons/icon_hand_hi.gif","Karte verschieben",D.switchToMoveMode,B.MapController.DEFAULT_ACTION_MODE==B.MapController.ACTION_MODE_MOVE);
D.addElement({width:5,id:"spacing-between-mode"});H("zoom-mode",g_MapsWebUrl+"images/mapsicons/icon_zoom_lo.gif",g_MapsWebUrl+"images/mapsicons/icon_zoom_hi.gif","Rechteckzoom",D.switchToZoomMode,B.MapController.DEFAULT_ACTION_MODE==B.MapController.ACTION_MODE_ZOOM);
D.addElement({width:5,id:"spacing-after-mode"});H("temp-zoom-out",g_MapsWebUrl+"images/mapsicons/icon_zoom_raus_lo.gif",g_MapsWebUrl+"images/mapsicons/icon_zoom_raus_hi.gif","zur Orientierung kurzzeitig herauszoomen",D.tempZoomOut);
D.addElement({width:5,id:"spacing-after-temp-zoom-out"});var K=L.getLayer("overview");
H("overview",g_MapsWebUrl+"images/mapsicons/icon_overview_lo.gif",g_MapsWebUrl+"images/mapsicons/icon_overview_hi.gif","Ein-/Ausblenden Übersichtskarte",D.toggleOverview,K&&K.isEnabled());
D.addElement({width:5,id:"spacing-after-overview"});H("measurement",g_MapsWebUrl+"images/mapsicons/icon_entfernung_lo.gif",g_MapsWebUrl+"images/mapsicons/icon_entfernung_hi.gif","Entfernungsmessung ein/aus",D.toggleMeasurement,false);
L.addEventListener("historyChanged",F);};var G=D.dispose;D.dispose=function(){if(D.getDisposed()){return;
}var K=D.getMap();K.removeEventListener("historyChanged",F);G.call(D);};D.switchToZoomMode=function(){var K=D.getMap();
if(K.getController().getActionMode()!=B.MapController.ACTION_MODE_ZOOM){D.setButtonPressed("move-mode",false);
D.setButtonPressed("zoom-mode",true);I.switchToZoomMode(K);}};D.switchToMoveMode=function(){var K=D.getMap();
if(K.getController().getActionMode()!=B.MapController.ACTION_MODE_MOVE){D.setButtonPressed("move-mode",true);
D.setButtonPressed("zoom-mode",false);I.switchToMoveMode(K);}};D.toggleOverview=function(){var L=D.getMap();
I.toggleOverview(L);var K=L.getLayer("overview");D.setButtonPressed("overview",K&&K.isEnabled());
};D.toggleMeasurement=function(){var K=D.getMap();I.toggleMeasurement(K);};D.historyBack=function(){I.historyBack(D.getMap());
};D.historyForward=function(){I.historyForward(D.getMap());};D.tempZoomOut=function(){if(!D.isButtonPressed("temp-zoom-out")){D.setButtonPressed("temp-zoom-out",true);
I.tempZoomOut(D.getMap(),function(){D.setButtonPressed("temp-zoom-out",false);});
}};});qxp.Class.switchToZoomMode=function(A){A.getController().setActionMode(com.ptvag.webcomponent.map.MapController.ACTION_MODE_ZOOM);
};qxp.Class.switchToMoveMode=function(A){A.getController().setActionMode(com.ptvag.webcomponent.map.MapController.ACTION_MODE_MOVE);
};qxp.Class.toggleOverview=function(B){var A=B.getLayer("overview");A.setEnabled(!A.isEnabled());
};qxp.Class.toggleMeasurement=function(A){AMAMAPS.showCardOptionen("measurement");
};qxp.Class.historyBack=function(A){A.historyBack();};qxp.Class.historyForward=function(A){A.historyForward();
};qxp.Class.tempZoomOut=function(A,B){A.tempZoomOut(B);};qxp.OO.defineClass("adac.NavigationLayer",adac.AbstractStaticAreaLayer,function(){adac.AbstractStaticAreaLayer.call(this);
var N=this;var D=com.ptvag.webcomponent.map;var J=com.ptvag.webcomponent.util.EventUtils;
var S=33;var V=33;var E=6;var L;var G;var M;var O;var C;var T;var F=null;var B=null;
var R=false;var Q=N.init;N.init=function(){Q.apply(N,arguments);var W=document.createElement("div");
W.style.position="absolute";W.style.left="0px";W.style.top="0px";W.style.backgroundColor="white";
N.getParentElement().appendChild(W);G=new Image();G.src=g_MapsWebUrl+"images/mapsicons/navi_pfeil.gif";
M=new Image();M.src=g_MapsWebUrl+"images/mapsicons/navi_pfeil_oben_hi.gif";O=new Image();
O.src=g_MapsWebUrl+"images/mapsicons/navi_pfeil_unten_hi.gif";C=new Image();C.src=g_MapsWebUrl+"images/mapsicons/navi_pfeil_links_hi.gif";
T=new Image();T.src=g_MapsWebUrl+"images/mapsicons/navi_pfeil_rechts_hi.gif";L=document.createElement("img");
L.style.position="absolute";L.style.left=E+"px";L.style.top=E+"px";L.style.width=S+"px";
L.style.height=V+"px";L.src=G.src;N.getParentElement().appendChild(L);N.setAreaElement(W);
H();};var H=function(){var X=N.getAreaOpacity();var W=N.getBlendingOpacityOut();var Y=(X-W)/(N.getBlendingOpacityOver()-W);
Y=W+Y*(1-W);D.MapUtil.setElementOpacity(L,Y);};var I=function(Y){var W=Y.relMouseX-N.getComputedAreaLeft()-E;
var Z=Y.relMouseY-N.getComputedAreaTop()-E;var X=S/3;if(W>=X&&W<X*2){if(Z>=0&&Z<X){return M;
}else{if(Z>=X*2&&Z<X*3){return O;}}}else{if(Z>=X&&Z<X*2){if(W>=0&&W<X){return C;}else{if(W>=X*2&&W<X*3){return T;
}}}}};N.onMouseDown=function(W){R=N.isPositionInArea(W.relMouseX,W.relMouseY);if(!J.isLeftMouseButton(W)){return R;
}F=I(W);if(F!=null){L.src=F.src;B=F;}return R;};var P=N.onMouseMove;N.onMouseMove=function(X){P.apply(N,arguments);
H();var W=I(X);if(F!=null){if(B!=W){B=(W==F?W:null);}L.src=(B==null?G.src:B.src);
}return false;};var K=N.onMouseUp;N.onMouseUp=function(X){if(F!=null){if(B!=null){var W=N.getMap();
var Y=N.getMovementFactor();if(B==M){W.moveCenterInPercent(0,Y);}else{if(B==O){W.moveCenterInPercent(0,-Y);
}else{if(B==C){W.moveCenterInPercent(-Y,0);}else{if(B==T){W.moveCenterInPercent(Y,0);
}}}}L.src=G.src;B=null;}F=null;}return R;};var U=N.onMouseOut;N.onMouseOut=function(){F=null;
if(B!=null){L.src=G.src;B=null;}return false;};var A=function(){N.setAreaWidth(S+E*2);
N.setAreaHeight(V+E*2);};A();});qxp.OO.addProperty({name:"movementFactor",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:0.5});
qxp.OO.defineClass("adac.ScaleLayer",com.ptvag.webcomponent.map.layer.AbstractStaticAreaLayer,function(){com.ptvag.webcomponent.map.layer.AbstractStaticAreaLayer.call(this);
var A=this;var I=com.ptvag.webcomponent.map;var E=13;var O=10;var D=56;var M=11;var N;
var F;var L;var G;var J=null;var K=A.init;A.init=function(){K.apply(A,arguments);
var Q=A.getParentElement();var R=document.createElement("div");R.style.position="absolute";
R.style.left="0px";R.style.top="0px";R.style.border=A.getAreaBorderWidth()+"px solid #808080";
R.style.backgroundColor="white";R._ptv_map_printBackground=true;Q.appendChild(R);
G=document.createElement("img");G.style.position="absolute";G.style.top=parseInt((E+O*2-M)/2)+"px";
G.style.width="56px";G.style.height="11px";I.MapUtil.setImageSource(G,g_MapsWebUrl+"images/mapsicons/adac_maps.png");
var S=document.createElement("a");S.href="http://maps.adac.de";S.appendChild(G);Q.appendChild(S);
F=document.createElement("div");F.style.position="absolute";F.style.left=O+"px";F.style.top=O+"px";
F.style.fontSize="1px";F.style.width="2px";F.style.height=E-2+"px";F.style.borderLeft="2px solid black";
Q.appendChild(F);L=document.createElement("div");L.style.position="absolute";L.style.top=O+"px";
L.style.fontSize="1px";L.style.width="2px";L.style.height=E-2+"px";L.style.borderLeft="2px solid black";
Q.appendChild(L);N=document.createElement("div");N.style.position="absolute";N.style.top=O+E-2+"px";
N.style.left=O+"px";N.style.fontSize="1px";N.style.height="2px";N.style.borderTop="2px solid black";
Q.appendChild(N);mScaleLabelElem=document.createElement("div");mScaleLabelElem.style.position="absolute";
mScaleLabelElem.style.top=O-5+"px";mScaleLabelElem.style.left=O+7+"px";mScaleLabelElem.style.fontFamily="Arial,Helvetica,sans-serif";
mScaleLabelElem.style.fontSize="12px";mScaleLabelElem.style.fontWeight="normal";mScaleLabelElem.style.color="black";
mScaleLabelElem.style.whiteSpace="nowrap";mScaleLabelElem.innerHTML="&#160;";Q.appendChild(mScaleLabelElem);
A.setAreaElement(R);if(A.isEnabled()){C();}var P=A.getMap();P.addEventListener("changeUseMiles",A._modifyScale);
P.addEventListener("changeVisibleZoom",A._modifyScale);P.addEventListener("changeVisibleCenter",A._modifyScale);
P.addEventListener("changeCenterIsAdjusting",A._modifyScale);};A._modifyScale=function(){if(N&&!A.getMap().getCenterIsAdjusting()&&!J){J=window.setTimeout(C,0);
}};var C=function(){J=null;var i=A.getSpacing();var U=A.getAreaBorderWidth();var X=A.getScaleBorderWidth();
var Y=A.getScaleHeight();var a=A.getScaleMaxWidth();var h=A.getMap().getVisibleZoom();
var b=a*I.CoordUtil.getSmartUnitsPerPixel(h);var T=A.getMap().getVisibleCenter();
var V={x:T.x+b,y:T.y};var Z=I.CoordUtil.distanceOfSmartUnitPoints(T,V);if(A.getMap().getUseMiles()){var R=Z/1609.344;
var e="mi";if(R<1){R=Z/0.9144;e="yd";}}else{if(Z>=1000){R=Z/1000;e="km";}else{R=Z;
e="m";}}var P=Math.floor(Math.log(R)/Math.LN10);var W=Math.pow(10,P);var c=R/W;if(c>=5){var Q=5;
}else{if(c>=2){Q=2;}else{Q=1;}}var f=Math.round(Q*W);var g=Math.round(a*(f/R));N.style.width=g+2+"px";
L.style.left=O+g+"px";G.style.left=O*2+g+2+"px";var d=A.getAreaElement();var S=d.style.width;
d.style.width="100%";mScaleLabelElem.firstChild.nodeValue=f+" "+e;A.setAreaWidth(O*3+D+g+2);
if(d.style.width=="100%"){d.style.width=S;}A.positionArea();};A.doPrintStaticArea=function(W,X,S){var Q=A.getComputedAreaLeft();
var V=A.getComputedAreaTop();var U=A.getComputedAreaWidth();var T=A.getComputedAreaHeight();
var P=A.getSpacing();var R=parseInt(N.style.width);W.fillStyle="rgb(255, 255, 255)";
W.beginPath();W.rect(Q,V,U,T);W.fill();var Y=W.globalAlpha;W.globalAlpha=1;W.fillStyle="rgb(0, 0, 0)";
W.beginPath();W.rect(Q+parseInt(F.style.left),V+parseInt(F.style.top),parseInt(F.style.width),parseInt(F.style.height));
W.fill();W.beginPath();W.rect(Q+parseInt(L.style.left),V+parseInt(L.style.top),parseInt(L.style.width),parseInt(L.style.height));
W.fill();W.beginPath();W.rect(Q+parseInt(N.style.left),V+parseInt(N.style.top),parseInt(N.style.width),parseInt(N.style.height));
W.fill();W.drawImage(G,0,0,D,M,Q+parseInt(G.style.left),V+parseInt(G.style.top),D,M);
W.strokeStyle="rgb(0, 0, 0)";W.fontFamily="sans-serif";W.fontStyle="plain";W.fontSize=10;
W.textAlignment=17;W.drawText(mScaleLabelElem.firstChild.nodeValue,Q+parseInt(mScaleLabelElem.style.left),V+parseInt(mScaleLabelElem.style.top));
W.globalAlpha=Y;};var H=A.dispose;A.dispose=function(){if(A.getDisposed()){return;
}if(J!=null){window.clearTimeout(J);J=null;}var P=A.getMap();P.removeEventListener("changeUseMiles",A._modifyScale);
P.removeEventListener("changeVisibleZoom",A._modifyScale);P.removeEventListener("changeVisibleCenter",A._modifyScale);
P.removeEventListener("changeCenterIsAdjusting",A._modifyScale);G=null;mScaleLabelElem=null;
H.call(A);};var B=function(){A.setAreaHeight(E+O*2);};B();});qxp.OO.addProperty({name:"scaleBorderWidth",impl:"scale",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:1});
qxp.OO.addProperty({name:"scaleHeight",impl:"scale",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:6});
qxp.OO.addProperty({name:"scaleMaxWidth",impl:"scale",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:150});
qxp.OO.addProperty({name:"spacing",impl:"scale",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:2});
qxp.OO.defineClass("adac.HTMLLayer",adac.AbstractStaticAreaLayer,function(D,E,B){adac.AbstractStaticAreaLayer.call(this);
var C=this;var A=false;var F=C.init;C.init=function(){F.apply(C,arguments);var H=C.getParentElement();
var I=document.createElement("div");I.style.position="absolute";I.style.left="0px";
I.style.top="0px";I.className="mapfloatingdiv";I.innerHTML=D;var G=document.createElement("div");
G.style.position="absolute";G.style.left="0px";G.style.top="0px";G.style.backgroundColor="white";
H.appendChild(G);C.setAreaElement(G);if(E!=null){C.setAreaWidth(E);I.style.width="100%";
H.appendChild(I);C.setAreaHeight(B!=null?B:I.offsetHeight);}else{if(B!=null){C.setAreaHeight(B);
H.appendChild(I);C.setAreaWidth(E!=null?E:I.offsetWidth);}else{H.appendChild(I);C.setAreaWidth(I.offsetWidth);
C.setAreaHeight(I.offsetHeight);}}};C.onMouseDown=function(G){A=C.isPositionInArea(G.relMouseX,G.relMouseY);
return A;};C.onMouseUp=function(G){return A;};});qxp.OO.defineClass("adac.AbstractMapLayer",com.ptvag.webcomponent.map.layer.AbstractMapLayer,function(){adac.AbstractMapLayer.origAbstractMapLayer.apply(this,arguments);
if(document.getElementById("ReisezielLayerZoomCoords")!=null){var A=this;var C=com.ptvag.webcomponent.util.EventUtils;
var D;var B=A.onMouseDown;A.onMouseDown=function(R){if(C.isRightMouseButton(R)||(C.isLeftMouseButton(R)&&+(C.getModifiers(R)&C.CTRL_MASK)!=0&&qxp.sys.Client.getInstance().runsOnMacintosh())){D=true;
AMAMAPS.showCardOptionen("contextmenu");var S;if(A.getMap().getLayer("adac_measurement").getEnabled()){S=new adac.HTMLLayer('<div id="rightclickdiv" class="rightclicklayer" style="width:235px"><div class="outer"><div class="innerII"><a href="javascript:void(0)" onclick="hideLayer(\'rightclickdiv\');AMAMAPS.AMAgetAJAXMapReference().getLayer(\'adac_measurement\').removePoint('+R.relMouseX+","+R.relMouseY+');" class="arrow">Punkt l&#246;schen</a><br /><a href="javascript:void(0)" onclick="hideLayer(\'rightclickdiv\');AMAMAPS.AMAgetAJAXMapReference().getLayer(\'adac_measurement\').reset();" class="arrow" style="white-space:nowrap">Entfernungsmessung zur&#252;cksetzen</a><br /><a href="javascript:void(0)" onclick="hideLayer(\'rightclickdiv\');AMAMAPS.AMAgetAJAXMapReference().getLayer(\'adac_measurement\').reset();AMAMAPS.showCardOptionen(\'measurement\');" class="arrow" style="white-space:nowrap">Entfernungsmessung beenden</a><br /></div></div><div style="position:absolute;right:10px;top:10px"><a href="javascript:hideLayer(\'rightclickdiv\');"><img src="'+g_MapsWebUrl+'images/mapsicons/schliessen.gif" width="11" height="11" alt="schliessen" /></a></div></div>');
}else{var O=AMAMAPS.AMAgetAJAXMapReference();var N=O.translateMouseCoords(R);var G=O.getRect();
var M=AMAMAPS.AMASmartUnits_2_Mercator({x:G.right,y:G.top});var T=AMAMAPS.AMASmartUnits_2_Mercator({x:G.left,y:G.bottom});
var L=O.getZoom();var F=Math.round(M.x);var Q=Math.round(M.y);var I=Math.round(T.x);
var J=Math.round(T.y);S=new adac.HTMLLayer('<div id="rightclickdiv" class="rightclicklayer"><div class="outer"><div class="innerII"><a href="javascript:void(0)" onclick="AMAMAPS.AMAsetCenter('+N.x+","+N.y+');" class="arrow">Karte hier zentrieren</a><br/><a href="javascript:void(0)" onclick="ROUTING.RevRouting=true;ROUTING.RevgeocodingStart=true;REVGEODODING.geocode('+N.x+", "+N.y+');" class="arrow">Route von hier</a><br/><a href="javascript:void(0)" onclick="ROUTING.RevRouting=true;ROUTING.RevgeocodingStart=false;REVGEODODING.geocode('+N.x+", "+N.y+');" class="arrow">Route hierher</a><br/><a href="javascript:void(0)" onclick="var mercPoint = AMAMAPS.AMASmartUnits_2_Mercator({x:'+N.x+",y:"+N.y+"}); var xPoint = mercPoint.x; var xKoord = xPoint.toString();var xSat = xKoord.substr(0, xKoord.indexOf('.'));var yPoint = mercPoint.y; var yKoord = yPoint.toString();var ySat = yKoord.substr(0, yKoord.indexOf('.'));var satLink = 'SatelliteView.aspx?param=' ; var fullSatLink = satLink.concat(xSat, '|', ySat, '|CH&rect="+F+","+Q+","+I+","+J+'\');javascript:window.open(fullSatLink);javascript:hideLayer(\'rightclickdiv\');WEBTREKK.writeSatellitenbild();" class="arrow">Satellitenbild anzeigen</a></div></div><div style="position:absolute;right:10px;top:10px"><a href="javascript:hideLayer(\'rightclickdiv\');"><img src="'+g_MapsWebUrl+'images/mapsicons/schliessen.gif" width="11" height="11" alt="schliessen" /></a></div></div>');
}S.setAreaLeft(R.relMouseX);S.setAreaTop(R.relMouseY);S.setAreaOpacity(S.getBlendingOpacityOver());
var K=AMAMAPS.AMAgetAJAXMapReference();if(K!=null){K.addLayer(S,"adac_contextmenu",1,null,false);
S.getAreaElement().style.backgroundColor="";var H=S.getComputedAreaWidth();var P=S.getComputedAreaHeight();
if(S.getComputedAreaLeft()+H>K.getWidth()-30){S.setAreaLeft(R.relMouseX-H);}if(S.getComputedAreaTop()+P>K.getHeight()-30){S.setAreaTop(R.relMouseY-P);
}return true;}}D=false;return B.apply(A,arguments);};var E=A.onMouseUp;A.onMouseUp=function(F){if(D){return true;
}return E.apply(A,arguments);};removeFlag=function(){var G=AMAMAPS.AMAgetAJAXMapReference();
if(G!=null){var F=G.getLayer("vector");F.removeElement("currentDest");}};}});qxp.Class.origAbstractMapLayer=com.ptvag.webcomponent.map.layer.AbstractMapLayer;
qxp.OO.defineClass("adac.Map",com.ptvag.webcomponent.map.Map,function(){var B=com.ptvag.webcomponent.map;
B.layer.DefaultToolbarLayer=adac.DefaultToolbarLayer;B.layer.ToolbarLayer=adac.ToolbarLayer;
B.layer.ZoomSliderLayer=adac.ZoomSliderLayer;B.layer.ScaleLayer=adac.ScaleLayer;var F=B.layer.AbstractMapLayer;
B.layer.AbstractMapLayer=adac.AbstractMapLayer;com.ptvag.webcomponent.map.Map.apply(this,arguments);
B.layer.AbstractMapLayer=F;var A=this;var E;A.setCursorFromController=function(){A.setCursor(A.getController().getActionMode()==B.MapController.ACTION_MODE_ZOOM?"default":"move");
};A.tempZoomOut=function(M){var I=A.getZoom();var L=B.CoordUtil.ZOOM_LEVEL_COUNT-1;
if(I==L){M();return;}var J=I+3;if(J>L){J=L;}var H=A.getAnimate();A.setAnimate(true);
var K=0;var N=function(){var O=A.getZoom();if(A.getVisibleZoom()==O){++K;if(K==1){if(!A.getDisposed()){window.setTimeout(N,A.getTempZoomOutDelay());
}}else{if(K==2){if(!A.getDisposed()){A.setZoom(I);}}else{if(!A.getDisposed()){A.removeEventListener("changeVisibleZoom",N);
A.setAnimate(H);M();}}}}};A.addEventListener("changeVisibleZoom",N);A.setZoom(J);
};var C=A._modifyZoom;A._modifyZoom=function(){if(C){C.apply(A,arguments);}A.removeLayer("adac_contextmenu");
};var G=A._modifyCenter;A._modifyCenter=function(){if(G){G.apply(A,arguments);}A.removeLayer("adac_contextmenu");
};var D=function(){A.removeLayer("compass");var T=A.getLayer("zoomslider");T.setAreaHeight(200);
T.setAreaRight(0);T.setAreaTop(0);T.setAreaBottom(null);T.setAreaOpacity(T.getBlendingOpacityOver());
var P=new adac.HTMLLayer('<div class="text left"><div class="inner" onmouseover="AMAMAPS.showCardOptionen(\'card\', true);" onmouseout="AMAMAPS.restartHideTimer()" onclick="AMAMAPS.showCardOptionen(\'card\');">Kartenansichten<span class="pr10 anchor pl5"><img id="arrow-card" style="width:9px;height:5px" src="'+g_MapsWebUrl+'images/mapsicons/pfeil_runter.gif" alt="" /></span></div></div>',null,29);
P.setAreaRight(46);P.setAreaTop(0);P.setAreaOpacity(P.getBlendingOpacityOver());A.addLayer(P,"adac_mapsettings",1,null,false);
var U=P.getComputedAreaWidth();var H=new adac.HTMLLayer('<div id="card" onmouseover="AMAMAPS.showCardOptionen(\'card\', true);" onmouseout="AMAMAPS.restartHideTimer();" class="optionen " style="width:200px"><div class="mb5 clearfix"><input class="radioleft" type="radio" id="Standard" name="karte" onclick="AMAMAPS.SetMapProfile(\'default\');"/><label class="left mr10" for="Standard">Standard</label></div><div class="mb5 clearfix"><input class="radioleft" type="radio" id="Gelaende" name="karte" onclick="AMAMAPS.SetMapProfile(\'terrain\');"/><label class="left mr10" for="Gelaende">Gel&#228;nde</label></div><div class="mb5 clearfix"><input class="radioleft" type="radio" id="wDetails" name="karte" onclick="AMAMAPS.SetMapProfile(\'lessdetail\');"/><label class="left mr10" for="wDetails">weniger Details</label></div><div class="mb5 clearfix"><div class="tright"><a href="javascript:void(0);" onclick="AMAMAPS.showCardOptionen(\'card\');" class="underline">schlie&szlig;en</a></div></div></div>');
H.setAreaRight(46);H.setAreaTop(29);H.setAreaOpacity(1);A.addLayer(H,"adac_mapsettingsmenu",1,null,false);
H.setEnabled(false);var R=A.getLayer("toolbar");R.setAreaRight(46+U+2);R.setAreaLeft(null);
R.setAreaTop(0);R.setAreaOpacity(R.getBlendingOpacityOver());R.update();var J=R.getComputedAreaWidth();
R.switchToMoveMode();var O=new adac.HTMLLayer('<div class="optionen"><div class="left strong">Entfernungsmessung</div><div class="clear" style="padding-top:5px">Klicken Sie auf die Karte, um eine Strecke festzulegen, deren L&#228;nge Sie messen wollen.</div><div class="strong" style="padding-top:10px">Gesamtentfernung:</div><div class="strong" style="padding-top:5px;color:#ff00ff"><span>0 km</span></div><div class="mb5 clearfix"><div class="tright"><a href="javascript:void(0);" onclick="AMAMAPS.AMAgetAJAXMapReference().getLayer(\'adac_measurement\').reset();AMAMAPS.showCardOptionen(\'measurement\');" class="underline">schlie&szlig;en</a></div></div></div>',T.getComputedAreaLeft()-R.getComputedAreaLeft()-1);
O.setAreaRight(46);O.setAreaTop(29);O.setAreaOpacity(1);A.addLayer(O,"adac_measurementdisplay",1,null,false);
O.setEnabled(false);var Q=navigator.userAgent;var N;if(Q.indexOf("Safari")>=0){N=new adac.HTMLLayer('<div><div style="margin: 7px 24px 7px 10px;" onclick="selectAndShowResetLayer()"><span><img id="resetButton" src="images/mapsicons/icon_zuruecksetzen_lo.gif" alt="Informationen l&#246;schen" /></span></div></div>',null,29);
}else{N=new adac.HTMLLayer('<div><div style="margin: 7px 10px 7px 10px;" onclick="selectAndShowResetLayer()"><span><img id="resetButton" src="images/mapsicons/icon_zuruecksetzen_lo.gif" alt="Informationen l&#246;schen" /></span></div></div>',35,29);
}N.setAreaRight(326);N.setAreaTop(0);N.setAreaOpacity(P.getBlendingOpacityOver());
A.addLayer(N,"adac_resetToolBarLayer",1,null,false);N.setEnabled(false);var S=A.getLayer("floater");
var V=new adac.MeasurementLayer(S);V.setIsRelative(true);V.setEnabled(false);A.addLayer(V,"adac_measurement",null,S);
var W=A.getLayer("scale");W.setAreaOpacity(W.getBlendingOpacityOver());var K=new adac.NavigationLayer();
K.setAreaRight(0);K.setAreaTop(201);K.setAreaOpacity(K.getBlendingOpacityOver());
A.addLayer(K,"adac_navigation",1,null,false);A.setCopyrightURL(g_MapsWebUrl+"images/mapsicons/ptv.png");
var I=A.getLayer("copyright");I.setAreaLeft(10);I.setAreaBottom(9);I.setAreaOpacity(1);
var M=function(){var X=I.getAreaElement().firstChild;X.style.width=I.getAreaWidth();
X.style.height=I.getAreaHeight();B.MapUtil.setImageSource(X,X.src);};var L=function(){M();
I.removeEventListener("changeAreaHeight",L);};if(I.getAreaHeight()==null){I.addEventListener("changeAreaHeight",L);
}else{M();}};D();});qxp.OO.addProperty({name:"tempZoomOutDelay",type:qxp.constant.Type.NUMBER,allowNull:false,defaultValue:2000});
var theme=g_MapsWebUrl+"js/popcalendar/adac";var popCalendar={lg:"de",enablePast:0,fixedX:-1,fixedY:-1,startAt:1,showWeekNumber:false,showToday:false,showDayLetter:true,theme:typeof theme=="undefined"?"default":theme,hideElements:true,closeString:{en:"Close popup-calender",es:"Close popup-calender",da:"Close popup-calender",de:"Popup-Kalender schlie&szlig;en",no:"Close popup-calender",nl:"Close popup-calender",pl:"Close popup-calender",it:"Close popup-calender",fr:"Close popup-calender"},gotoString:{en:"Go To Current Month",es:"Ir al Mes Actual",da:"G� til nuv�rende m�ned",de:"Gehe zu aktuellem Monat",no:"Gå til nåværende måned",nl:"Ga naar de huidige maand",pl:"Przejd� do aktualnego miesi�ca",it:"Vai al mese corrente",fr:"Atteindre ..."},todayString:{en:"Today is",es:"Hoy es",da:"Idag er",de:"Heute ist",no:"Idag er",nl:"Vandaag is",pl:"Dzisiaj jest",it:"Oggi è",fr:"aujourd'hui"},weekShortString:{en:"Wk",es:"Sem",da:"Uge",de:"KW",no:"Uke",nl:"wk",pl:"Tyg",it:"sett",fr:"Se"},weekString:{en:"calendar week",es:"Sem",da:"Uge",de:"Kalenderwoche",no:"Uke",nl:"wk",pl:"Tyg",it:"Settimana",fr:"Semaine"},scrollLeftMessage:{en:"Click to scroll to previous month. Hold mouse button to scroll automatically.",es:"Presione para pasar al mes anterior. Deje presionado para pasar varios meses.",da:"Klik for at hoppe til forrige m�ned. Hold museknappen nede, for at rulle automatisk.",de:"Zum vorigen Monat zu gelangen.",no:"Klikk for å gå til forrige måned. Hold museknappen nede for å bla fort tilbake.",nl:"Klik om naar de vorige maand te scrollen. Houdt de muis ingedrukt om automatisch te scrollen.",pl:"Kliknij aby przej�� do poprzedniego miesi�ca. Trzymaj wci�ni�ty klawisz myszy aby przewija� automatycznie.",it:"Premere per passare al mese precedente. Tenere premuto per scorrere vari mesi.",fr:"Click to scroll to previous month. Hold mouse button to scroll automatically."},scrollRightMessage:{en:"Click to scroll to next month. Hold mouse button to scroll automatically.",es:"Presione para pasar al siguiente mes. Deje presionado para pasar varios meses.",da:"Klik for at hoppe til n�ste m�ned. Hold museknappen nede, for at rulle automatisk.",de:"Zum n�chsten Monat zu gelangen.",no:"Klikk for å gå til neste måned. Hold museknappen nede for å bla fort framover.",nl:"Klik om naar de volgende maand te scrollen. Houdt de muis  ingedrukt om automatisch te scrollen.",pl:"Kliknij aby przej�� do nast�pnego miesi�ca. Trzymaj wci�ni�ty klawisz myszy aby przewija� automatycznie.",it:"Premere per passare al mese successivo. Tenere premuto per scorrere vari mesi.",fr:"Click to scroll to next month. Hold mouse button to scroll automatically."},selectMonthMessage:{en:"Click to select a month.",es:"Presione para seleccionar un mes",da:"Klik for at v�lge m�ned",de:"Klicken um Monat auszuwählen",no:"Klikk for å velge måned",nl:"Klik om een maand te selecteren.",pl:"Kliknij aby wybra� miesi�c.",it:"Premere per scegliere un mese.",fr:"Cliquez pour choisir le mois."},selectYearMessage:{en:"Click to select a year.",es:"Presione para seleccionar un año",da:"Klik for at v�lge �r",de:"Klicken um Jahr auszuwählen",no:"Klikk for å velge år",nl:"Klik om een jaar te selecteren.",pl:"Kliknij aby wybra� rok.",it:"Premere per scegliere un anno",fr:"Cliquez pour choisir l'année."},selectDateMessage:{en:"Select [date] as date.",es:"Seleccione [date] como fecha",da:"V�lg [date] som dato.",de:"Wähle [date] als Datum.",no:"Velg [dato] som dato",nl:"Selecteer [date] als datum.",pl:"Wybierz [date] jako dat�.",it:"Selezionare [date] come data.",fr:"Select [date] as date."},monthName:{en:new Array("January","February","March","April","May","June","July","August","September","October","November","December"),es:new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"),da:new Array("Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"),de:new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"),no:new Array("Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"),nl:new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus ","September","Oktober","November","December"),pl:new Array("Styczen","Luty","Marzec","Kwiecien","Maj","Czerwiec","Lipiec","Sierpien","Wrzesien","Pazdziernik","Listopad","Grudzien"),it:new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto ","Settembre","Ottobre","Novembre","Dicembre"),fr:new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Ao�t","Septembre","Octobre","Novembre","Décembre")},monthNameAbbr:{en:new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),es:new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"),da:new Array("Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"),de:new Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"),no:new Array("Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"),nl:new Array("Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"),pl:new Array("Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paz","Lis","Gru"),it:new Array("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"),fr:new Array("Jan","Fev","Mar","Avr","Mai","Juin","Juil","Aout","Sep","Oct","Nov","Dec")},dayName:{en:new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"),es:new Array("Dom","Lun","Mar","Mie","Jue","Vie","Sab"),da:new Array("S�n","Man","Tirs","Ons","Tors","Fre","L�r"),de:new Array("So","Mo","Di","Mi","Do","Fr","Sa"),no:new Array("Søn","Man","Tir","Ons","Tor�","Fre","Lør"),nl:new Array("Zo","Ma","Di","Wo","Do","Vr","Za"),pl:new Array("Nie","Pn","Wt","Sr","Cz","Pt","So"),it:new Array("Dom","Lun","Mar","Mer","Gio","Ven","Sab"),fr:new Array("Dim","Lun","Mar","Mer","Jeu","Ven","Sam")},o:null,om:null,oy:null,monthSelected:null,yearSelected:null,dateSelected:null,omonthSelected:null,oyearSelected:null,odateSelected:null,yearConstructed:null,intervalID1:null,intervalID2:null,timeoutID1:null,timeoutID2:null,ctlToPlaceValue:null,ctlNow:null,dateFormat:null,nStartingYear:null,curX:0,curY:0,visYear:0,visMonth:0,bPageLoaded:false,ie:(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)),ie7:(/msie 7/i.test(navigator.userAgent)),opera:(/opera/i.test(navigator.userAgent)&&!/msie/i.test(navigator.userAgent)),dom:document.getElementById,today:new Date(),dateNow:null,monthNow:null,yearNow:null,bShow:false,hideElement:function(C,D){if(this.ie&&!this.ie7){for(var B=0;
B<document.all.tags(C).length;B++){var A=document.all.tags(C)[B];if(!A||!A.offsetParent){continue;
}objLeft=A.offsetLeft;objTop=A.offsetTop;objParent=A.offsetParent;while(objParent&&objParent.tagName.toUpperCase()!="BODY"){objLeft+=objParent.offsetLeft;
objTop+=objParent.offsetTop;objParent=objParent.offsetParent;}objHeight=A.offsetHeight;
objWidth=A.offsetWidth;if((D.offsetLeft+D.offsetWidth)<=objLeft){}else{if((D.offsetTop+D.offsetHeight)<=objTop){}else{if(D.offsetTop>=(objTop+objHeight+A.height)){}else{if(D.offsetLeft>=(objLeft+objWidth)){}else{A.style.visibility="hidden";
}}}}}}},showElement:function(C){if(this.ie&&!this.ie7){for(var B=0;B<document.all.tags(C).length;
B++){var A=document.all.tags(C)[B];if(!A||!A.offsetParent){continue;}A.style.visibility="";
}}},getLeft:function(A){if(A.offsetParent){return(A.offsetLeft+this.getLeft(A.offsetParent));
}else{return(A.offsetLeft);}},getTop:function(A){if(A.offsetParent){return(A.offsetTop+this.getTop(A.offsetParent));
}else{return(A.offsetTop);}},init:function(B){this.dateNow=this.today.getDate();this.monthNow=this.today.getMonth();
this.yearNow=this.today.getFullYear();if(this.dom){var A='<div id="pcIDleft"><a href="javascript:void(0)" onclick="popCalendar.decMonth()" title="'+this.scrollLeftMessage[this.lg]+'" onmouseover="window.status=\''+this.scrollLeftMessage[this.lg]+'\'" onmouseout="clearInterval(popCalendar.intervalID1);window.status=\'\'" onmousedown="clearTimeout(popCalendar.timeoutID1);popCalendar.timeoutID1=setTimeout(\'popCalendar.StartDecMonth()\',500)" onmouseup="clearTimeout(popCalendar.timeoutID1);clearInterval(popCalendar.intervalID1)">&nbsp;&nbsp;&nbsp;</a></div>';
A+='<div id="pcIDMonthYear"></div>';A+='<div id="pcIDright"><a href="javascript:void(0)" onclick="popCalendar.incMonth()" title="'+this.scrollRightMessage[this.lg]+'" onmouseover="window.status=\''+this.scrollRightMessage[this.lg]+'\'" onmouseout="clearInterval(popCalendar.intervalID1);window.status=\'\'" onmousedown="clearTimeout(popCalendar.timeoutID1);popCalendar.timeoutID1=setTimeout(\'popCalendar.StartIncMonth()\',500)" onmouseup="clearTimeout(popCalendar.timeoutID1);clearInterval(popCalendar.intervalID1)">&nbsp;&nbsp;&nbsp;</a></div><div class="v-clear"></div>';
var C='<div onclick="popCalendar.bShow=true" class="sh-pc-box-outer" id="pcIDcalendar" style="display:none;visibility:none">    <div class="sh-pc-box">        <div class="sh-pc-box-header pb3">            <a class="icon-calendar left"></a>            <div class="right"><a class="sprite-icons close" title="'+this.closeString[this.lg]+'" href="javascript:popCalendar.hide();"></a></div><br class="v-clear"/>        </div>        <div id="pcIDcaption" unselectable="on">'+A+'</div><div class="v-clear"></div>        <div id="pcIDcontent">.</div>';
if(this.showToday){C+='<div id="pcIDfooter"></div>';}C+='        </div></div><div id="pcIDselectMonth"></div><div id="pcIDselectYear"></div>';
document.write(C);}this.o=(this.dom)?this.getById("pcIDcalendar"):this.ie?document.all.pcIDcalendar:document.pcIDcalendar;
popCalendar.hide();this.om=(this.dom)?this.getById("pcIDselectMonth"):this.ie?document.all.pcIDselectMonth:document.pcIDselectMonth;
this.oy=(this.dom)?this.getById("pcIDselectYear"):this.ie?document.all.pcIDselectYear:document.pcIDselectYear;
this.yearConstructed=false;if(!B){document.onkeypress=function(D){if(!D){D=window.event;
}if(D.keyCode==27){popCalendar.hide();}};document.onclick=function(){if(!popCalendar.bShow){popCalendar.hide();
}popCalendar.bShow=false;};}document.write('<link rel="stylesheet" href="'+this.theme+'/style.css" type="text/css" media="screen" />');
this.bPageLoaded=true;},hide:function(){this.o.style.visibility="hidden";this.o.style.display="none";
if(this.om!=null){this.om.style.visibility="hidden";}if(this.oy!=null){this.oy.style.visibility="hidden";
}if(this.hideElements){this.showElement("SELECT");this.showElement("APPLET");}},HolidaysCounter:0,Holidays:new Array(),HolidayRec:function(A,D,B,C){this.d=A;
this.m=D;this.y=B;this.desc=C;},addHoliday:function(A,D,B,C){this.Holidays[this.HolidaysCounter++]=new this.HolidayRec(A,D,B,C);
},padZero:function(A){return(A<10)?"0"+A:A;},constructDate:function(A,D,B){var C=this.dateFormat;
C=C.replace("dd","<e>");C=C.replace("d","<d>");C=C.replace("<e>",this.padZero(A));
C=C.replace("<d>",A);C=C.replace("mmmm","<p>");C=C.replace("mmm","<o>");C=C.replace("mm","<n>");
C=C.replace("m","<m>");C=C.replace("<m>",D+1);C=C.replace("<n>",this.padZero(D+1));
C=C.replace("<o>",this.monthName[this.lg][D]);C=C.replace("<p>",this.monthNameAbbr[this.lg][D]);
C=C.replace("yyyy",B);C=C.replace("yy",this.padZero(B%100));C=C.replace("hh",this.hour);
C=C.replace("xx",this.minute);C=C.replace("ss",this.second);return C.replace("yy",this.padZero(B%100));
},close:function(){this.hide();this.setCalendarValue(this.constructDate(this.dateSelected,this.monthSelected,this.yearSelected),this.ctlToPlaceValue);
var A=this.ctlToPlaceValue;},StartDecMonth:function(){this.intervalID1=setInterval("popCalendar.decMonth()",80);
},StartIncMonth:function(){this.intervalID1=setInterval("popCalendar.incMonth()",80);
},incMonth:function(){this.monthSelected++;if(this.monthSelected>11){this.monthSelected=0;
this.yearSelected++;}this.construct();},decMonth:function(){this.monthSelected--;
if(this.monthSelected<0){this.monthSelected=11;this.yearSelected--;}this.construct();
},constructMonth:function(){this.popDownYear();var B="";for(i=0;i<12;i++){var A=this.monthName[this.lg][i];
if(i==this.monthSelected){A="<strong>"+A+"</strong>";}B+='<li><a href="javascript:void(0)" onclick="popCalendar.monthSelected='+i+';popCalendar.construct();popCalendar.popDownMonth();event.cancelBubble=true">'+A+"</a></li>";
}this.om.innerHTML='<ul onmouseover="clearTimeout(popCalendar.timeoutID1)" onmouseout="clearTimeout(popCalendar.timeoutID1);popCalendar.timeoutID1=setTimeout(\'popCalendar.popDownMonth()\',100);event.cancelBubble=true">'+B+"</ul>";
},popUpMonth:function(){var A;if(this.visMonth==1){this.popDownMonth();this.visMonth--;
}else{this.constructMonth();this.om.style.visibility=(this.dom||this.ie)?"visible":"show";
A=parseInt(this.o.style.left)+this.getById("pcIDMonth").offsetLeft;if(this.ie){A+=1;
}this.om.style.left=A+"px";this.om.style.top=parseInt(this.o.style.top)+19+"px";if(this.hideElements){this.hideElement("SELECT",this.om);
this.hideElement("APPLET",this.om);}this.visMonth++;}},popDownMonth:function(){this.om.style.visibility="hidden";
this.visMonth=0;},incYear:function(){for(var A=0;A<7;A++){var B=(A+this.nStartingYear)+1;
this.getById("pcY"+A).innerHTML=(B==this.yearSelected)?"<strong>"+B+"</strong>":B;
}this.nStartingYear++;this.bShow=true;},decYear:function(){for(var A=0;A<7;A++){var B=(A+this.nStartingYear)-1;
this.getById("pcY"+A).innerHTML=(B==this.yearSelected)?"<strong>"+B+"</strong>":B;
}this.nStartingYear--;this.bShow=true;},selectYear:function(A){this.yearSelected=parseInt(A+this.nStartingYear);
this.yearConstructed=false;this.construct();this.popDownYear();},constructYear:function(){this.popDownMonth();
var A="";if(!this.yearConstructed){A='<li><a href="javascript:void(0)" onmouseout="clearInterval(popCalendar.intervalID1);" onmousedown="clearInterval(popCalendar.intervalID1);popCalendar.intervalID1=setInterval(\'popCalendar.decYear()\',30)" onmouseup="clearInterval(popCalendar.intervalID1)">-</a></li>';
var D=0;this.nStartingYear=this.yearSelected-3;for(var C=(this.yearSelected-3);C<=(this.yearSelected+3);
C++){var B=C;if(C==this.yearSelected){B="<strong>"+B+"</strong>";}A+='<li><a href="javascript:void(0)" id="pcY'+D+'" onclick="popCalendar.selectYear('+D+');event.cancelBubble=true">'+B+"</a></li>";
D++;}A+='<li><a href="javascript:void(0)" onmouseout="clearInterval(popCalendar.intervalID2);" onmousedown="clearInterval(popCalendar.intervalID2);popCalendar.intervalID2=setInterval(\'popCalendar.incYear()\',30)" onmouseup="clearInterval(popCalendar.intervalID2)">+</a></li>';
this.oy.innerHTML='<ul onmouseover="clearTimeout(popCalendar.timeoutID2)" onmouseout="clearTimeout(popCalendar.timeoutID2);popCalendar.timeoutID2=setTimeout(\'popCalendar.popDownYear()\',100)">'+A+"</ul>";
this.yearConstructed=true;}},popDownYear:function(){clearInterval(this.intervalID1);
clearTimeout(this.timeoutID1);clearInterval(this.intervalID2);clearTimeout(this.timeoutID2);
this.oy.style.visibility="hidden";this.visYear=0;},popUpYear:function(){var A;if(this.visYear==1){this.popDownYear();
this.visYear--;}else{this.constructYear();this.oy.style.visibility=(this.dom||this.ie)?"visible":"show";
A=parseInt(this.o.style.left)+this.getById("pcIDYear").offsetLeft;if(this.ie){A+=1;
}this.oy.style.left=A+"px";this.oy.style.top=parseInt(this.o.style.top)+19+"px";this.visYear++;
}},WeekNbr:function(K){if(K==null){K=new Date(this.yearSelected,this.monthSelected,1);
}var C=K.getFullYear();var H=K.getMonth()+1;if(this.startAt==0){var N=K.getDate()+1;
}else{var N=K.getDate();}var F=Math.floor((14-H)/12);var D=C+4800-F;var G=H+12*F-3;
var O=Math.floor(D/4)-Math.floor(D/100)+Math.floor(D/400);var M=N+Math.floor((153*G+2)/5)+365*D+O-32045;
var I=(((M+31741-(M%7))%146097)%36524)%1461;var B=Math.floor(I/1460);var A=((I-B)%365)+B;
var E=Math.floor(A/7)+1;return E;},construct:function(){var H=Array(31,0,31,30,31,30,31,31,30,31,30,31);
var F=new Date(this.yearSelected,this.monthSelected,1);var J;if(this.monthSelected==1){J=new Date(this.yearSelected,this.monthSelected+1,1);
J=new Date(J-(24*60*60*1000));var K=J.getDate();}else{var K=H[this.monthSelected];
}var B=F.getDay()-this.startAt;if(B<0){B=6;}var C="<table><thead><tr>";if(this.showWeekNumber){C+='<th><acronym title="'+this.weekString[this.lg]+'">'+this.weekShortString[this.lg]+"</acronym></th>";
}for(var L=0;L<7;L++){if(this.showDayLetter){C+="<th>"+this.dayName[this.lg][(L+this.startAt)%7].charAt(0)+"</th>";
}else{C+="<th>"+this.dayName[this.lg][(L+this.startAt)%7]+"</th>";}}C+="</tr></thead><tbody><tr>";
if(this.showWeekNumber){C+='<td class="pcWeekNumber">'+this.WeekNbr(this.startDate)+"</td>";
}for(var L=1;L<=B;L++){C+="<td>&nbsp;</td>";}for(var E=1;E<=K;E++){B++;var D="pctd ";
var G="";var A="";for(var I=0;I<this.HolidaysCounter;I++){if((parseInt(this.Holidays[I].d)==E)&&(parseInt(this.Holidays[I].m)==(this.monthSelected+1))){if((parseInt(this.Holidays[I].y)==0)||((parseInt(this.Holidays[I].y)==this.yearSelected)&&(parseInt(this.Holidays[I].y)!=0))){D="pcDayHoliday ";
A+=A==""?this.Holidays[I].desc:"\n"+this.Holidays[I].desc;}}}A=A.replace('/"/g',"&quot;");
if((E==this.odateSelected)&&(this.monthSelected==this.omonthSelected)&&(this.yearSelected==this.oyearSelected)){D+="pcDaySelected";
}else{if((E==this.dateNow)&&(this.monthSelected==this.monthNow)&&(this.yearSelected==this.yearNow)){D+="pcToday";
}else{if((B%7==(this.startAt*-1)+1)||((B%7==(this.startAt*-1)+7&&this.startAt==1)||(B%7==this.startAt&&this.startAt==0))){D+="pcWeekend";
}else{D+="pcDay";}}}if(this.enablePast==0&&((this.yearSelected<this.yearNow)||(this.monthSelected<this.monthNow)&&(this.yearSelected==this.yearNow)||(E<this.dateNow)&&(this.monthSelected==this.monthNow)&&(this.yearSelected==this.yearNow))){D+="Past";
}else{G='href="javascript:popCalendar.dateSelected='+E+';popCalendar.close();"';}C+='<td class="'+D+'"><a onmousemove="window.status=\''+this.selectDateMessage[this.lg].replace("[date]",this.constructDate(E,this.monthSelected,this.yearSelected))+'\'" onmouseout="window.status=\'\'" title="'+A+'" '+G+">"+E+"</a></td>";
if((B+this.startAt)%7==this.startAt){C+="</tr>";if(E<K){C+="<tr>";if(this.showWeekNumber){C+='<td class="pcWeekNumber">'+(this.WeekNbr(new Date(this.yearSelected,this.monthSelected,E+1)))+"</td>";
}}}}if((B%7)!=0){while((B%7)!=0){C+="<td>&nbsp;</td>";B++;}C+="</tr>";}if(B%7!=0){C+="</tr>";
}C+="</tbody></table>";this.getById("pcIDcontent").innerHTML=C;this.getById("pcIDMonthYear").innerHTML=this.monthName[this.lg][this.monthSelected]+" "+this.yearSelected;
},show:function(G,A,F,E,C,B,H,D){if(D!=null&&(D==0||D==1)){this.startAt=D;}if(E!=null&&E!=""){this.lg=E;
}this.enablePast=(C!=null)?C:this.enablePast;this.fixedX=(B!=null)?B:-1;this.fixedY=(H!=null)?H:-1;
if(this.showToday){this.getById("pcIDfooter").innerHTML=this.todayString[this.lg]+" <a onmousemove=\"window.status='"+this.gotoString[this.lg]+'\'" onmouseout="window.status=\'\'" title="'+this.gotoString[this.lg]+'" href="javascript:popCalendar.monthSelected=popCalendar.monthNow;popCalendar.yearSelected=popCalendar.yearNow;popCalendar.construct();">'+this.dayName[this.lg][(this.today.getDay())%7]+", "+this.dateNow+" "+this.monthNameAbbr[this.lg][this.monthNow]+" "+this.yearNow+"</a>";
}this.popUp(G,A,F);},popUp:function(H,A,E){var B=0;var C=0;var D="";var G=new Array();
if(typeof(ctl1)=="string"){ctl1=this.getById(ctl1);}if(typeof(A)=="string"){A=this.getById(A);
}if(this.bPageLoaded){if(this.o.style.visibility=="hidden"){this.ctlToPlaceValue=A;
this.dateFormat=E;var F=this.extractDate(this.getCalendarValue(A),this.dateFormat,true);
this.dateSelected=F.dateSelected;this.monthSelected=F.monthSelected;this.yearSelected=F.yearSelected;
this.hour=F.hour;this.minute=F.minute;this.second=F.second;this.odateSelected=this.dateSelected;
this.omonthSelected=this.monthSelected;this.oyearSelected=this.yearSelected;B=this.getLeft(H.offsetParent)-6;
C=this.getTop(H.offsetParent)-25;if(this.opera){B-=1;C-=1;}this.o.style.left=(this.fixedX==-1)?H.offsetLeft+B+"px":this.fixedX+"px";
this.o.style.top=(this.fixedY==-1)?H.offsetTop+C+H.offsetHeight+2+"px":this.fixedY+"px";
this.construct(1,this.monthSelected,this.yearSelected);this.o.style.visibility=(this.dom||this.ie)?"visible":"show";
this.o.style.display="block";if(this.hideElements){this.hideElement("SELECT",this.getById("pcIDcalendar"));
this.hideElement("APPLET",this.getById("pcIDcalendar"));}this.bShow=true;}else{popCalendar.hide();
if(this.ctlNow!=H){this.popUp(H,A,E);}}this.ctlNow=H;}},extractDate:function(H,D,C){var K={dateSelected:null,monthSelected:null,yearSelected:null,hour:0,minute:0,second:0};
var J=new Array();formatChar=" ";J=D.split(formatChar);if(J.length<3){formatChar="/";
J=D.split(formatChar);if(J.length<3){formatChar=".";J=D.split(formatChar);if(J.length<3){formatChar="-";
J=D.split(formatChar);if(J.length<3){formatChar="";}}}}var F;var E=0;if(formatChar!=""){F=H.split(formatChar);
for(var I=0;I<3;I++){if((J[I]=="d")||(J[I]=="dd")){K.dateSelected=parseInt(F[I],10);
E++;}else{if((J[I]=="m")||(J[I]=="mm")){K.monthSelected=parseInt(F[I],10)-1;E++;}else{if(J[I]=="yyyy"){K.yearSelected=parseInt(F[I],10);
E++;}else{if(J[I]=="mmm"){for(j=0;j<12;j++){if(F[I]==monthName[lg][j]){K.monthSelected=j;
E++;}}}else{if(J[I]=="mmmm"){for(j=0;j<12;j++){if(F[I]==monthNameAbbr[lg][j]){K.monthSelected=j;
E++;}}}}}}}}}var A=":";var B=H.split(" ");if(B[1]!=null){var G=B[1].split(":");if(G[0].length==2){K.hour=G[0];
}if(G[1].length==2){K.minute=G[1];}if(G[2].length==2){K.second=G[2];}}if(((E!=3)||isNaN(K.dateSelected)||isNaN(K.monthSelected)||K.monthSelected<0||isNaN(K.yearSelected))&&C==true){K.dateSelected=this.dateNow;
K.monthSelected=this.monthNow;K.yearSelected=this.yearNow;}return K;},getCalendarValue:function(D){var B="";
if(D.day&&D.month&&D.year&&this.getById(D.day)&&this.getById(D.month)&&this.getById(D.year)){var C=this.getById(D.day).value+"."+this.getById(D.month).value+"."+this.getById(D.year).value;
var A=this.extractDate(C,this.dateFormat,true);B=this.constructDate(A.dateSelected,A.monthSelected,A.yearSelected);
}else{B=D.value;}return B;},setCalendarValue:function(B,C){if(C.day&&C.month&&C.year&&this.getById(C.day)&&this.getById(C.month)&&this.getById(C.year)){var A=this.extractDate(B,this.dateFormat,true);
this.getById(C.day).value=this.padZero(A.dateSelected);this.getById(C.month).value=this.padZero(A.monthSelected+1);
this.getById(C.year).value=this.padZero(A.yearSelected);}else{C.value=B;}},getById:function(A){return document.getElementById(A);
}};popCalendar.lg="de";popCalendar.init(true);var theme="/js/popcalendar/mein_adac";var eventList={"elements":[{"fromDate":new Date(2008,11,1).getTime(),"toDate":new Date(2008,11,4).getTime()},{"fromDate":new Date(2008,11,7).getTime(),"toDate":new Date(2008,11,16).getTime()},{"fromDate":new Date(2009,0,2).getTime(),"toDate":new Date(2009,0,4).getTime()}]};
var popCalendarEvent={lg:"de",enablePast:0,fixedX:-1,fixedY:-1,startAt:1,showWeekNumber:false,showToday:false,showDayLetter:true,theme:typeof theme=="undefined"?"default":theme,hideElements:true,gotoString:{en:"Go To Current Month",es:"Ir al Mes Actual",da:"G� til nuv�rende m�ned",de:"Gehe zu aktuellem Monat",no:"Gå til nåværende måned",nl:"Ga naar de huidige maand",pl:"Przejd� do aktualnego miesi�ca",it:"Vai al mese corrente",fr:"Atteindre ..."},todayString:{en:"Today is",es:"Hoy es",da:"Idag er",de:"Heute ist",no:"Idag er",nl:"Vandaag is",pl:"Dzisiaj jest",it:"Oggi è",fr:"aujourd'hui"},weekShortString:{en:"Wk",es:"Sem",da:"Uge",de:"KW",no:"Uke",nl:"wk",pl:"Tyg",it:"sett",fr:"Se"},weekString:{en:"calendar week",es:"Sem",da:"Uge",de:"Kalenderwoche",no:"Uke",nl:"wk",pl:"Tyg",it:"Settimana",fr:"Semaine"},scrollLeftMessage:{en:"Click to scroll to previous month. Hold mouse button to scroll automatically.",es:"Presione para pasar al mes anterior. Deje presionado para pasar varios meses.",da:"Klik for at hoppe til forrige m�ned. Hold museknappen nede, for at rulle automatisk.",de:"Klicken um zum vorigen Monat zu gelangen. Gedrückt halten, um automatisch weiter zu scrollen.",no:"Klikk for å gå til forrige måned. Hold museknappen nede for å bla fort tilbake.",nl:"Klik om naar de vorige maand te scrollen. Houdt de muis ingedrukt om automatisch te scrollen.",pl:"Kliknij aby przej�� do poprzedniego miesi�ca. Trzymaj wci�ni�ty klawisz myszy aby przewija� automatycznie.",it:"Premere per passare al mese precedente. Tenere premuto per scorrere vari mesi.",fr:"Click to scroll to previous month. Hold mouse button to scroll automatically."},scrollRightMessage:{en:"Click to scroll to next month. Hold mouse button to scroll automatically.",es:"Presione para pasar al siguiente mes. Deje presionado para pasar varios meses.",da:"Klik for at hoppe til n�ste m�ned. Hold museknappen nede, for at rulle automatisk.",de:"Klicken um zum n&aumlchsten Monat zu gelangen. Gedrückt halten, um automatisch weiter zu scrollen.",no:"Klikk for å gå til neste måned. Hold museknappen nede for å bla fort framover.",nl:"Klik om naar de volgende maand te scrollen. Houdt de muis  ingedrukt om automatisch te scrollen.",pl:"Kliknij aby przej�� do nast�pnego miesi�ca. Trzymaj wci�ni�ty klawisz myszy aby przewija� automatycznie.",it:"Premere per passare al mese successivo. Tenere premuto per scorrere vari mesi.",fr:"Click to scroll to next month. Hold mouse button to scroll automatically."},selectMonthMessage:{en:"Click to select a month.",es:"Presione para seleccionar un mes",da:"Klik for at v�lge m�ned",de:"Klicken um Monat auszuwählen",no:"Klikk for å velge måned",nl:"Klik om een maand te selecteren.",pl:"Kliknij aby wybra� miesi�c.",it:"Premere per scegliere un mese.",fr:"Cliquez pour choisir le mois."},selectYearMessage:{en:"Click to select a year.",es:"Presione para seleccionar un año",da:"Klik for at v�lge �r",de:"Klicken um Jahr auszuwählen",no:"Klikk for å velge år",nl:"Klik om een jaar te selecteren.",pl:"Kliknij aby wybra� rok.",it:"Premere per scegliere un anno",fr:"Cliquez pour choisir l'année."},selectDateMessage:{en:"Select [date] as date.",es:"Seleccione [date] como fecha",da:"V�lg [date] som dato.",de:"Wähle [date] als Datum.",no:"Velg [dato] som dato",nl:"Selecteer [date] als datum.",pl:"Wybierz [date] jako dat�.",it:"Selezionare [date] come data.",fr:"Select [date] as date."},monthName:{en:new Array("January","February","March","April","May","June","July","August","September","October","November","December"),es:new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"),da:new Array("Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"),de:new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"),no:new Array("Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"),nl:new Array("Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus ","September","Oktober","November","December"),pl:new Array("Styczen","Luty","Marzec","Kwiecien","Maj","Czerwiec","Lipiec","Sierpien","Wrzesien","Pazdziernik","Listopad","Grudzien"),it:new Array("Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto ","Settembre","Ottobre","Novembre","Dicembre"),fr:new Array("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Ao�t","Septembre","Octobre","Novembre","Décembre")},monthNameAbbr:{en:new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),es:new Array("Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"),da:new Array("Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"),de:new Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"),no:new Array("Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"),nl:new Array("Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"),pl:new Array("Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paz","Lis","Gru"),it:new Array("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"),fr:new Array("Jan","Fev","Mar","Avr","Mai","Juin","Juil","Aout","Sep","Oct","Nov","Dec")},dayName:{en:new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"),es:new Array("Dom","Lun","Mar","Mie","Jue","Vie","Sab"),da:new Array("S�n","Man","Tirs","Ons","Tors","Fre","L�r"),de:new Array("So","Mo","Di","Mi","Do","Fr","Sa"),no:new Array("Søn","Man","Tir","Ons","Tor�","Fre","Lør"),nl:new Array("Zo","Ma","Di","Wo","Do","Vr","Za"),pl:new Array("Nie","Pn","Wt","Sr","Cz","Pt","So"),it:new Array("Dom","Lun","Mar","Mer","Gio","Ven","Sab"),fr:new Array("Dim","Lun","Mar","Mer","Jeu","Ven","Sam")},o:null,om:null,oy:null,monthSelected:null,yearSelected:null,dateSelected:null,omonthSelected:null,oyearSelected:null,odateSelected:null,yearConstructed:null,intervalID1:null,intervalID2:null,timeoutID1:null,timeoutID2:null,ctlToPlaceValue:null,ctlNow:null,dateFormat:null,nStartingYear:null,curX:0,curY:0,visYear:0,visMonth:0,bPageLoaded:false,ie:(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)),ie7:(/msie 7/i.test(navigator.userAgent)),opera:(/opera/i.test(navigator.userAgent)&&!/msie/i.test(navigator.userAgent)),dom:document.getElementById,today:new Date(),dateNow:null,monthNow:null,yearNow:null,bShow:false,hideElement:function(C,D){if(this.ie&&!this.ie7){for(var B=0;
B<document.all.tags(C).length;B++){var A=document.all.tags(C)[B];if(!A||!A.offsetParent){continue;
}objLeft=A.offsetLeft;objTop=A.offsetTop;objParent=A.offsetParent;while(objParent&&objParent.tagName.toUpperCase()!="BODY"){objLeft+=objParent.offsetLeft;
objTop+=objParent.offsetTop;objParent=objParent.offsetParent;}}}},showElement:function(C){if(this.ie&&!this.ie7){for(var B=0;
B<document.all.tags(C).length;B++){var A=document.all.tags(C)[B];if(!A||!A.offsetParent){continue;
}A.style.visibility="";}}},getLeft:function(A){if(A.offsetParent){return(A.offsetLeft+this.getLeft(A.offsetParent));
}else{return(A.offsetLeft);}},getTop:function(A){if(A.offsetParent){return(A.offsetTop+this.getTop(A.offsetParent));
}else{return(A.offsetTop);}},init:function(A){this.dateNow=this.today.getDate();this.monthNow=this.today.getMonth();
this.yearNow=this.today.getYear();if(!this.ie&&!this.ie7&&!this.opera){this.yearNow+=1900;
}this.o=(this.dom)?this.getById("pcIDEventcalendar"):this.ie?document.all.pcIDcalendar:document.pcIDcalendar;
this.om=(this.dom)?this.getById("pcIDEventselectMonth"):this.ie?document.all.pcIDEventselectMonth:document.pcIDEventselectMonth;
this.oy=(this.dom)?this.getById("pcIDEventselectYear"):this.ie?document.all.pcIDEventselectYear:document.pcIDEventselectYear;
this.yearConstructed=false;if(!A){document.onkeypress=function(B){if(!B){B=window.event;
}if(B.keyCode==27){popCalendarEvent.hide();}};document.onclick=function(){if(!popCalendarEvent.bShow){popCalendarEvent.hide();
}popCalendarEvent.bShow=false;};}document.write('<link rel="stylesheet" href="'+this.theme+'/style.css" type="text/css" media="screen" />');
this.bPageLoaded=true;},hide:function(){this.o.style.visibility="hidden";if(this.om!=null){this.om.style.visibility="hidden";
}if(this.oy!=null){this.oy.style.visibility="hidden";}if(this.hideElements){this.showElement("SELECT");
this.showElement("APPLET");}},HolidaysCounter:0,Holidays:new Array(),HolidayRec:function(A,D,B,C){this.d=A;
this.m=D;this.y=B;this.desc=C;},addHoliday:function(A,D,B,C){this.Holidays[this.HolidaysCounter++]=new this.HolidayRec(A,D,B,C);
},padZero:function(A){return(A<10)?"0"+A:A;},constructDate:function(A,D,B){var C=this.dateFormat;
C=C.replace("dd","<e>");C=C.replace("d","<d>");C=C.replace("<e>",this.padZero(A));
C=C.replace("<d>",A);C=C.replace("mmmm","<p>");C=C.replace("mmm","<o>");C=C.replace("mm","<n>");
C=C.replace("m","<m>");C=C.replace("<m>",D+1);C=C.replace("<n>",this.padZero(D+1));
C=C.replace("<o>",this.monthName[this.lg][D]);C=C.replace("<p>",this.monthNameAbbr[this.lg][D]);
C=C.replace("yyyy",B);C=C.replace("yy",this.padZero(B%100));C=C.replace("hh",this.hour);
C=C.replace("xx",this.minute);C=C.replace("ss",this.second);return C.replace("yy",this.padZero(B%100));
},close:function(){this.hide();this.setCalendarValue(this.constructDate(this.dateSelected,this.monthSelected,this.yearSelected),this.ctlToPlaceValue);
var A=this.ctlToPlaceValue;if(A.day&&A.month&&A.year&&this.getById(A.day)&&this.getById(A.month)&&this.getById(A.year)){ADAC.dateFieldHandler(this.getById(A.day),"TT");
ADAC.dateFieldHandler(this.getById(A.month),"MM");ADAC.dateFieldHandler(this.getById(A.year),"JJJJ");
}},StartDecMonth:function(){this.intervalID1=setInterval("popCalendarEvent.decMonth()",80);
},StartIncMonth:function(){this.intervalID1=setInterval("popCalendarEvent.incMonth()",80);
},incMonth:function(){this.monthSelected++;if(this.monthSelected>11){this.monthSelected=0;
this.yearSelected++;}this.construct();},decMonth:function(){this.monthSelected--;
if(this.monthSelected<0){this.monthSelected=11;this.yearSelected--;}this.construct();
},constructMonth:function(){this.popDownYear();var B="";for(i=0;i<12;i++){var A=this.monthName[this.lg][i];
if(i==this.monthSelected){A="<strong>"+A+"</strong>";}B+='<li><a href="javascript:void(0)" onclick="popCalendarEvent.monthSelected='+i+';popCalendarEvent.construct();popCalendarEvent.popDownMonth();event.cancelBubble=true">'+A+"</a></li>";
}this.om.innerHTML='<ul onmouseover="clearTimeout(popCalendarEvent.timeoutID1)" onmouseout="clearTimeout(popCalendarEvent.timeoutID1);popCalendarEvent.timeoutID1=setTimeout(\'popCalendarEvent.popDownMonth()\',100);event.cancelBubble=true">'+B+"</ul>";
},popUpMonth:function(){var A;if(this.visMonth==1){this.popDownMonth();this.visMonth--;
}else{this.constructMonth();this.om.style.visibility=(this.dom||this.ie)?"visible":"show";
A=parseInt(this.o.style.left)+this.getById("pcIDEventMonth").offsetLeft;if(this.ie){A+=1;
}this.om.style.left=A+"px";this.om.style.top=parseInt(this.o.style.top)+19+"px";if(this.hideElements){this.hideElement("SELECT",this.om);
this.hideElement("APPLET",this.om);}this.visMonth++;}},popDownMonth:function(){this.om.style.visibility="hidden";
this.visMonth=0;},incYear:function(){for(var A=0;A<7;A++){var B=(A+this.nStartingYear)+1;
this.getById("pcY"+A).innerHTML=(B==this.yearSelected)?"<strong>"+B+"</strong>":B;
}this.nStartingYear++;this.bShow=true;},decYear:function(){for(var A=0;A<7;A++){var B=(A+this.nStartingYear)-1;
this.getById("pcY"+A).innerHTML=(B==this.yearSelected)?"<strong>"+B+"</strong>":B;
}this.nStartingYear--;this.bShow=true;},selectYear:function(A){this.yearSelected=parseInt(A+this.nStartingYear);
this.yearConstructed=false;this.construct();this.popDownYear();},constructYear:function(){this.popDownMonth();
var A="";if(!this.yearConstructed){A='<li><a href="javascript:void(0)" onmouseout="clearInterval(popCalendarEvent.intervalID1);" onmousedown="clearInterval(popCalendarEvent.intervalID1);popCalendarEvent.intervalID1=setInterval(\'popCalendarEvent.decYear()\',30)" onmouseup="clearInterval(popCalendarEvent.intervalID1)">-</a></li>';
var D=0;this.nStartingYear=this.yearSelected-3;for(var C=(this.yearSelected-3);C<=(this.yearSelected+3);
C++){var B=C;if(C==this.yearSelected){B="<strong>"+B+"</strong>";}A+='<li><a href="javascript:void(0)" id="pcY'+D+'" onclick="popCalendarEvent.selectYear('+D+');event.cancelBubble=true">'+B+"</a></li>";
D++;}A+='<li><a href="javascript:void(0)" onmouseout="clearInterval(popCalendarEvent.intervalID2);" onmousedown="clearInterval(popCalendarEvent.intervalID2);popCalendarEvent.intervalID2=setInterval(\'popCalendarEvent.incYear()\',30)" onmouseup="clearInterval(popCalendarEvent.intervalID2)">+</a></li>';
this.oy.innerHTML='<ul onmouseover="clearTimeout(popCalendarEvent.timeoutID2)" onmouseout="clearTimeout(popCalendarEvent.timeoutID2);popCalendarEvent.timeoutID2=setTimeout(\'popCalendarEvent.popDownYear()\',100)">'+A+"</ul>";
this.yearConstructed=true;}},popDownYear:function(){clearInterval(this.intervalID1);
clearTimeout(this.timeoutID1);clearInterval(this.intervalID2);clearTimeout(this.timeoutID2);
this.oy.style.visibility="hidden";this.visYear=0;},popUpYear:function(){var A;if(this.visYear==1){this.popDownYear();
this.visYear--;}else{this.constructYear();this.oy.style.visibility=(this.dom||this.ie)?"visible":"show";
A=parseInt(this.o.style.left)+this.getById("pcIDEventYear").offsetLeft;if(this.ie){A+=1;
}this.oy.style.left=A+"px";this.oy.style.top=parseInt(this.o.style.top)+19+"px";this.visYear++;
}},WeekNbr:function(K){if(K==null){K=new Date(this.yearSelected,this.monthSelected,1);
}var C=K.getFullYear();var H=K.getMonth()+1;if(this.startAt==0){var N=K.getDate()+1;
}else{var N=K.getDate();}var F=Math.floor((14-H)/12);var D=C+4800-F;var G=H+12*F-3;
var O=Math.floor(D/4)-Math.floor(D/100)+Math.floor(D/400);var M=N+Math.floor((153*G+2)/5)+365*D+O-32045;
var I=(((M+31741-(M%7))%146097)%36524)%1461;var B=Math.floor(I/1460);var A=((I-B)%365)+B;
var E=Math.floor(A/7)+1;return E;},construct:function(){var H=Array(31,0,31,30,31,30,31,31,30,31,30,31);
var F=new Date(this.yearSelected,this.monthSelected,1);var J;if(this.monthSelected==1){J=new Date(this.yearSelected,this.monthSelected+1,1);
J=new Date(J-(24*60*60*1000));var K=J.getDate();}else{var K=H[this.monthSelected];
}var B=F.getDay()-this.startAt;if(B<0){B=6;}var C="<table><thead><tr>";if(this.showWeekNumber){C+='<th><acronym title="'+this.weekString[this.lg]+'">'+this.weekShortString[this.lg]+"</acronym></th>";
}for(var L=0;L<7;L++){if(this.showDayLetter){C+="<th>"+this.dayName[this.lg][(L+this.startAt)%7].charAt(0)+"</th>";
}else{C+="<th>"+this.dayName[this.lg][(L+this.startAt)%7]+"</th>";}}C+="</tr></thead><tbody><tr>";
if(this.showWeekNumber){C+='<td class="pcWeekNumber">'+this.WeekNbr(this.startDate)+"</td>";
}for(var L=1;L<=B;L++){C+="<td>&nbsp;</td>";}for(var E=1;E<=K;E++){B++;var D="pctd ";
var G="";var A="";for(var I=0;I<this.HolidaysCounter;I++){if((parseInt(this.Holidays[I].d)==E)&&(parseInt(this.Holidays[I].m)==(this.monthSelected+1))){if((parseInt(this.Holidays[I].y)==0)||((parseInt(this.Holidays[I].y)==this.yearSelected)&&(parseInt(this.Holidays[I].y)!=0))){D="pcDayHoliday ";
A+=A==""?this.Holidays[I].desc:"\n"+this.Holidays[I].desc;}}}A=A.replace('/"/g',"&quot;");
actDayTime=new Date(this.yearSelected,this.monthSelected,E).getTime();if(this.checkEvent(actDayTime)){D+="pcDaySelected";
}else{if((B%7==(this.startAt*-1)+1)||((B%7==(this.startAt*-1)+7&&this.startAt==1)||(B%7==this.startAt&&this.startAt==0))){D+="pcWeekend";
}else{D+="pcDay";}}if(this.enablePast==0&&((this.yearSelected<this.yearNow)||(this.monthSelected<this.monthNow)&&(this.yearSelected==this.yearNow)||(E<this.dateNow)&&(this.monthSelected==this.monthNow)&&(this.yearSelected==this.yearNow))){D+="Past";
}else{G='href="javascript:popCalendarEvent.dateSelected='+E+';"';}C+='<td class="'+D+'">'+E+"</td>";
if((B+this.startAt)%7==this.startAt){C+="</tr>";if(E<K){C+="<tr>";if(this.showWeekNumber){C+='<td class="pcWeekNumber">'+(this.WeekNbr(new Date(this.yearSelected,this.monthSelected,E+1)))+"</td>";
}}}}if((B%7)!=0){while((B%7)!=0){C+="<td>&nbsp;</td>";B++;}C+="</tr>";}if(B%7!=0){C+="</tr>";
}C+="</tbody></table>";this.getById("pcIDEventcontent").innerHTML=C;this.getById("pcIDEventMonthYear").innerHTML=this.monthName[this.lg][this.monthSelected]+" "+this.yearSelected;
},checkEvent:function(A){for(var B=0;B<eventList.elements.length;B++){if(A>=eventList.elements[B].fromDate&&A<=eventList.elements[B].toDate){return true;
}}return false;},show:function(G,A,F,E,C,B,H,D){if(D!=null&&(D==0||D==1)){this.startAt=D;
}if(E!=null&&E!=""){this.lg=E;}this.enablePast=(C!=null)?C:this.enablePast;this.fixedX=(B!=null)?B:-1;
this.fixedY=(H!=null)?H:-1;if(this.showToday){this.getById("pcIDEventfooter").innerHTML=this.todayString[this.lg]+" <a onmousemove=\"window.status='"+this.gotoString[this.lg]+'\'" onmouseout="window.status=\'\'" title="'+this.gotoString[this.lg]+'" href="javascript:popCalendarEvent.monthSelected=popCalendarEvent.monthNow;popCalendarEvent.yearSelected=popCalendarEvent.yearNow;popCalendarEvent.construct();">'+this.dayName[this.lg][(this.today.getDay())%7]+", "+this.dateNow+" "+this.monthNameAbbr[this.lg][this.monthNow]+" "+this.yearNow+"</a>";
}this.popUp(G,A,F);},popUp:function(H,A,E){var B=0;var C=0;var D="";var G=new Array();
if(typeof(ctl1)=="string"){ctl1=this.getById(ctl1);}if(typeof(A)=="string"){A=this.getById(A);
}if(this.bPageLoaded){this.ctlToPlaceValue=A;this.dateFormat=E;var F=this.extractDate(this.getCalendarValue(A),this.dateFormat,true);
this.dateSelected=F.dateSelected;this.monthSelected=F.monthSelected;this.yearSelected=F.yearSelected;
this.hour=F.hour;this.minute=F.minute;this.second=F.second;this.odateSelected=this.dateSelected;
this.omonthSelected=this.monthSelected;this.oyearSelected=this.yearSelected;this.construct(1,this.monthSelected,this.yearSelected);
if(this.hideElements){this.hideElement("SELECT",this.getById("pcIDEventcalendar"));
this.hideElement("APPLET",this.getById("pcIDEventcalendar"));}this.bShow=true;}else{popCalendarEvent.hide();
if(this.ctlNow!=H){this.popUp(H,A,E);}}this.ctlNow=H;},extractDate:function(H,D,C){var K={dateSelected:null,monthSelected:null,yearSelected:null,hour:0,minute:0,second:0};
var J=new Array();formatChar=" ";J=D.split(formatChar);if(J.length<3){formatChar="/";
J=D.split(formatChar);if(J.length<3){formatChar=".";J=D.split(formatChar);if(J.length<3){formatChar="-";
J=D.split(formatChar);if(J.length<3){formatChar="";}}}}var F;var E=0;if(formatChar!=""){F=H.split(formatChar);
for(var I=0;I<3;I++){if((J[I]=="d")||(J[I]=="dd")){K.dateSelected=parseInt(F[I],10);
E++;}else{if((J[I]=="m")||(J[I]=="mm")){K.monthSelected=parseInt(F[I],10)-1;E++;}else{if(J[I]=="yyyy"){K.yearSelected=parseInt(F[I],10);
E++;}else{if(J[I]=="mmm"){for(j=0;j<12;j++){if(F[I]==monthName[lg][j]){K.monthSelected=j;
E++;}}}else{if(J[I]=="mmmm"){for(j=0;j<12;j++){if(F[I]==monthNameAbbr[lg][j]){K.monthSelected=j;
E++;}}}}}}}}}var A=":";var B=H.split(" ");if(B[1]!=null){var G=B[1].split(":");if(G[0].length==2){K.hour=G[0];
}if(G[1].length==2){K.minute=G[1];}if(G[2].length==2){K.second=G[2];}}if(((E!=3)||isNaN(K.dateSelected)||isNaN(K.monthSelected)||K.monthSelected<0||isNaN(K.yearSelected))&&C==true){K.dateSelected=this.dateNow;
K.monthSelected=this.monthNow;K.yearSelected=this.yearNow;}return K;},getCalendarValue:function(D){var B="";
if(D.day&&D.month&&D.year&&this.getById(D.day)&&this.getById(D.month)&&this.getById(D.year)){var C=this.getById(D.day).value+"."+this.getById(D.month).value+"."+this.getById(D.year).value;
var A=this.extractDate(C,this.dateFormat,true);B=this.constructDate(A.dateSelected,A.monthSelected,A.yearSelected);
}else{B=D.value;}return B;},setCalendarValue:function(B,C){if(C.day&&C.month&&C.year&&this.getById(C.day)&&this.getById(C.month)&&this.getById(C.year)){var A=this.extractDate(B,this.dateFormat,true);
this.getById(C.day).value=A.dateSelected;this.getById(C.month).value=A.monthSelected+1;
this.getById(C.year).value=A.yearSelected;}else{C.value=B;}},getById:function(A){return document.getElementById(A);
}};popCalendarEvent.init(true);
