function Configurator(){var url=window.location.href;if(url.match(/allesklar\.org/)){this.mapEscape=true;this.xmlEscape=true;this.urlMask='proxy.php?url=';this.xmlServer='http://xml.allesklar.de/';this.mapServer='http://maps.meinestadt.de/map_tiles/';}else if(url.match(/stadtplan\..*?\.de/)||url.match(/allesklar.de/)){this.xmlEscape=true;this.mapEscape=false;this.urlMask='proxy.jsp?url=';this.xmlServer='http://web18.allesklar.de:919/';this.mapServer='/map_tiles/';}else if(url.match(/localhost/)){this.mapEscape=false;this.xmlEscape=false;this.urlMask='';this.xmlServer='';this.mapServer='';}else{this.mapEscape=false;this.xmlEscape=false;this.urlMask='';this.xmlServer='';this.mapServer='';}
}
Configurator.prototype.getMapServerUrl=function(url){if(this.mapEscape){return this.urlMask+escape(this.mapServer+url);}else{return this.mapServer+url;}
}
Configurator.prototype.getXMLServerUrl=function(url){if(this.xmlEscape){return this.urlMask+escape(this.xmlServer+url);}else{return this.xmlServer+url;}
}
