//functions-min.js
function addLoadEvent(a){if(window.addEventListener){window.addEventListener("load",a,false)}else{if(window.attachEvent){window.attachEvent("onload",a)}else{var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();a()}}}}}function insertAfter(c,a){var b=a.parentNode;if(b.lastChild==a){b.appendChild(c)}else{b.insertBefore(c,a.nextSibling)}}function addClass(b,c){if(!b.className){b.className=c}else{if(b.className.indexOf(c)==-1){var a=b.className;a+=" ";a+=c;b.className=a}}}function removeClass(a,c){if(a.className){var b=new RegExp(c);a.className=a.className.replace(b,"")}}function checkDate(a){var c=new RegExp("^[0-9]{1,2}\\D[0-9]{1,2}\\D([0-9]{2}){1,2}$");if(a.search(c)==-1){return false}else{a=a.replace(/\D/g,".");var b=a.split(".");if(parseInt(b[0],10)<1||parseInt(b[0],10)>31){return false}else{if(parseInt(b[1],10)<1||parseInt(b[1],10)>12){return false}else{if((parseInt(b[2],10)>99&&parseInt(b[2],10)<1900)||parseInt(b[2],10)>2100){return false}else{return true}}}}}function checkTime(c){var b=new RegExp("^[0-9]{1,2}\\D[0-9]{1,2}$");if(c.search(b)==-1){return false}else{c=c.replace(/\D/g,":");var a=c.split(":");if(parseInt(a[0],10)<0||parseInt(a[0],10)>24){return false}else{if(parseInt(a[1],10)<0||parseInt(a[1],10)>59){return false}else{return true}}}}function trimString(a){if(a!=""){while(a.substring(0,1)==" "){a=a.substring(1,a.length)}while(a.substring(a.length-1,a.length)==" "){a=a.substring(0,a.length-1)}}return a};
//hijax-min.js
function Hijax(){var b,a,e,i,g,l,h;var k;this.setContainer=function(m){b=m};this.setUrl=function(m){a=m};this.setCanvas=function(m){e=m};this.setLoading=function(m){g=m};this.setCallback=function(m){l=m};this.setData=function(m){i=m};this.captureData=function(){if(b){if(b.nodeName.toLowerCase()=="form"){if(!a){a=b.action}b.onsubmit=function(){var q="";for(var o=0;o<this.elements.length;o++){if(this.elements[o].nodeName.search(/fieldset/i)==-1){if(this.elements[o].type.search(/file/i)>-1&&trimString(this.elements[o].value)!=""){var p=new inplaceFileUpload();p.setLoading(g);p.setCallback(l);p.setForm(b);p.submit();return true}if(this.elements[o].type.search(/radio/i)==-1||this.elements[o].checked){q+=this.elements[o].getAttribute("name");q+="=";if(this.elements[o].type.search(/checkbox/i)>-1&&!this.elements[o].checked){q+=-9}else{q+=encodeURIComponent(this.elements[o].value)}q+="&"}}}i=q;return !c()}}else{var m=b.getElementsByTagName("a");for(var n=0;n<m.length;n++){m[n].onclick=function(){var o=this.getAttribute("href").split("?")[1];a+="?"+o;return !c()}}m=null}}else{return !this.start()}return false};var c=function(){if(h&&(h.readyState==2||h.readyState==3)){h.abort()}h=f();if(!h||!a){return false}else{j();return true}};this.start=function(){c()};var f=function(){var m=false;if(window.XMLHttpRequest){m=new XMLHttpRequest()}else{if(window.ActiveXObject){try{m=new ActiveXObject("Msxml2.XMLHTTP")}catch(n){try{m=new ActiveXObject("Microsoft.XMLHTTP")}catch(n){m=false}}}}return m};var j=function(){if(g){k=g()}h.onreadystatechange=d;if(i){h.open("POST",a,true);h.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");h.send(i)}else{h.open("GET",a,true);h.send(null)}};var d=function(){if(h.readyState==4){if(h.status==200||h.status==304){if(e){var m=document.importNode(h.responseXML.getElementsByTagName("div")[0],true);while(e.hasChildNodes()){e.removeChild(e.lastChild)}e.appendChild(m)}if(l){l(h)}if(k){var n=k.parentNode;if(n){n.removeChild(k)}}h=null}}}};
//checkForm-min.js
if(!formAlert){var formAlert=new Object();formAlert["default"]='Bitte "[label]" eingeben!';formAlert.email='Bitte im Feld "[label]" eine korrekte E-Mail-Adresse eingeben!';formAlert.date='Bitte im Feld "[label]" eine korrektes Datum (TT.MM.JJJJ) eingeben!';formAlert.time='Bitte im Feld "[label]" eine korrekte Zeit (hh:mm) eingeben!';formAlert.anzahl='Bitte im Feld "[label]" einen gültige Wert eingeben!';formAlert.wochentag="Bitte Datum und/oder Wochentag anpassen!";formAlert.vonbis="Bitte Zeit von/bis überprüfen!";formAlert.vonbis2=formAlert.vonbis;formAlert.image="Bitte ein JPEG, PNG oder GIF auswählen!"}var checkForm;function CheckForm(){var b=new Object();b.wochentag=false;b.vonbis=false;b.vonbis2=false;this.prepare=function(){for(var k=0;k<document.forms.length;k++){var m=document.forms[k];if(document.getElementById("nextStatus")){var l=document.getElementById("nextStatus");if(l.defaultValue.indexOf("Abgeschlossen")!=-1){l.onclick=function(){if(!checkForm.validate(document.forms[0])){return false}else{if(!confirm("Wollen Sie wirklich Abschliessen?")){return false}else{return true}}}}else{if(l.defaultValue.indexOf("Verantw. Def.")!=-1){if(document.getElementById("personList1")||document.getElementById("personList0")){var j;if(document.getElementById("personList1")){j=getLabel("personList1")}else{j=getLabel("personList0")}l.onclick=function(){if(!d(j.htmlFor)){addClass(j,"error");alert(formAlert["default"].replace(/\[label\]/,a(j.htmlFor)));j.focus();return false}else{return true}}}}else{if(document.getElementById("status")&&parseInt(document.getElementById("status").value)>1){m.onsubmit=function(){return checkForm.validate(this)}}}}}else{m.onsubmit=function(){return checkForm.validate(this)}}}};this.validate=function(l){var k=false;var n="default";g(l);var o=l.getElementsByTagName("label");for(var j=0;j<o.length;j++){if(o[j].className.indexOf("required")!=-1){if(!d(o[j].htmlFor)){addClass(o[j],"error");if(!k){k=document.getElementById(o[j].htmlFor)}}else{if(o[j].className.indexOf("email")!=-1){if(!e(o[j].htmlFor)){addClass(o[j],"error");if(!k){k=document.getElementById(o[j].htmlFor);n="email"}}}else{if(o[j].className.indexOf("date")!=-1){if(!c(o[j].htmlFor)){addClass(o[j],"error");if(!k){k=document.getElementById(o[j].htmlFor);n="date"}}}else{if(o[j].className.indexOf("time")!=-1){if(!h(o[j].htmlFor)){addClass(o[j],"error");if(!k){k=document.getElementById(o[j].htmlFor);n="time"}}}else{if(o[j].className.indexOf("anzahl")!=-1){if(!f(o[j].htmlFor)){addClass(o[j],"error");if(!k){k=document.getElementById(o[j].htmlFor);n="anzahl"}}}}}}}}}if(k){alert(formAlert[n].replace(/\[label\]/,a(k.id)));if(k.nodeName.search(/fieldset/i)==-1){k.focus()}return false}else{if(b.wochentag||b.vonbis){var m;if(b.wochentag){m="wochentag"}else{if(b.vonbis){m="vonbis"}else{m="vonbis2"}}alert(formAlert[m].replace(/\[label\]/,a(b[m].id)));if(b[m].nodeName.search(/fieldset/i)==-1){b[m].focus()}return false}}return true};var d=function(l){var q=document.getElementById(l);var p;if(q.nodeName.search(/fieldset/i)>-1){if(q.className.indexOf("all")!=-1){var k=true}else{var k=false}var j=q.getElementsByTagName("select");if(j.length>0){var o=0;for(var n=0;n<j.length;n++){p=trimString(j[n].value);if(p.length>0&&p!=-9){if(k){o++}else{return true}}}if(o==j.length){return true}else{return false}}var m=q.getElementsByTagName("input");if(m.length>0){for(var n=0;n<m.length;n++){if(m[n].checked){return true}}return false}return true}else{p=trimString(q.value);if(p.length<1||p==-9||p=="#DEL#"){return false}else{return true}}};var e=function(i){var j=document.getElementById(i);if(j.value.indexOf("@")==-1||j.value.indexOf(".")==-1){return false}else{return true}};var c=function(i){var j=document.getElementById(i);return checkDate(trimString(j.value))};var h=function(i){var j=document.getElementById(trimString(i));return checkTime(j.value)};var f=function(i){var k=trimString(document.getElementById(i).value);var j=new RegExp("^((ca)|(max)|(min))*(\\.){0,1}( ){0,1}(\\d)*( ){0,1}((-)|(bis)|<|>)*( ){0,1}(\\d)+(\\+){0,1}$");if(k.search(j)==-1){return false}else{return true}};var g=function(k){var l=k.getElementsByTagName("label");for(var j=0;j<l.length;j++){removeClass(l[j],"error")}};this.getLabelText=function(i){return a(i)};var a=function(l){var k=document.getElementsByTagName("label");for(var j=0;j<k.length;j++){if(k[j].htmlFor==l){return k[j].firstChild.nodeValue}}return false};this.setError=function(i,j){b[j]=i};this.removeError=function(i){b[i]=false}}function prepareCheckForm(){checkForm=new CheckForm();checkForm.prepare()}addLoadEvent(prepareCheckForm);
//swfobject-min.js
if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
//displayMovies-min.js
var displayMovies;function DisplayMovies(){var j="contentwrapper";var e="moviewrapper";var i;var a=0;var d=0;var c=640;var k=344;var f=24;this.close=function(){addClass(document.getElementById(e),"hidden");addClass(document.getElementById("moviecloselayer"),"hidden");addClass(document.getElementById("movieclosebutton"),"hidden");while(document.getElementById(e).hasChildNodes()){document.getElementById(e).removeChild(document.getElementById(e).lastChild)}return true};this.show=function(l){l.blur();h();if(!document.getElementById(e)){var p=document.createElement("div");p.style.height=document.getElementById("wrapper").offsetHeight+"px";p.id="moviecloselayer";p.style.position="absolute";p.onclick=function(){return !displayMovies.close()};document.getElementsByTagName("body")[0].appendChild(p);var p=document.createElement("div");p.id=e;p.style.position="absolute";p.style.zIndex="50";p.style.width=c;document.getElementsByTagName("body")[0].appendChild(p);p=document.createElement("div");p.style.height=document.getElementById("wrapper").offsetHeight+"px";p.id="movieclosebutton";p.style.position="absolute";p.style.width="30px";p.style.height="30px";p.style.zIndex="60";p.onclick=function(){return !displayMovies.close()};document.getElementsByTagName("body")[0].appendChild(p)}var q=g();var p=document.getElementById(e);var o=Math.max(20,((d-c)/2)+q[0]);var n=Math.max(20,((a-k-f)/2)+q[1]);p.style.left=o+"px";p.style.top=n+"px";document.getElementById("movieclosebutton").style.left=(o+c-18)+"px";document.getElementById("movieclosebutton").style.top=(n-12)+"px";document.getElementById("moviecloselayer").style.height=document.getElementById("wrapper").offsetHeight+"px";var m=new SWFObject("scripts/player.swf","mpl",c,k+f,"9");m.addParam("allowfullscreen","true");m.addParam("allowscriptaccess","always");m.addParam("wmode","opaque");m.addVariable("autostart","true");m.addVariable("file",l.href);m.write(e);removeClass(document.getElementById("moviecloselayer"),"hidden");removeClass(document.getElementById("movieclosebutton"),"hidden");removeClass(document.getElementById(e),"hidden");return true};var h=function(){if(typeof(window.innerHeight)=="number"){a=window.innerHeight;d=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight;d=document.documentElement.clientWidth}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight;d=document.body.clientWidth}}}};function g(){var m=0,l=0;if(typeof(window.pageYOffset)=="number"){l=window.pageYOffset;m=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){l=document.body.scrollTop;m=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){l=document.documentElement.scrollTop;m=document.documentElement.scrollLeft}}}return[m,l]}var b=function(l){var m=l.offsetTop;while(l.offsetParent){l=l.offsetParent;m+=l.offsetTop}return m};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(j)){return false}var m=document.getElementById(j).getElementsByTagName("a");for(var l=0;l<m.length;l++){if(m[l].href.search(/\.mp4$/i)>0){m[l].onclick=function(){return !displayMovies.show(this)}}}return true}}addLoadEvent(function(){displayMovies=new DisplayMovies();displayMovies.prepare()});
//hoverfader-min.js
var hoverfader;function Hoverfader(){var a="home";var f,d,c;var b=40;var g=false;var e=new Object();this.fadeOut=function(h){if(e[h]["timeout"]){clearTimeout(e[h]["timeout"])}if(e[h]["opacity"]<=0){e[h]["imgs"][1].style.opacity=0}else{e[h]["opacity"]-=0.5;e[h]["imgs"][1].style.opacity=e[h]["opacity"]/10;e[h]["timeout"]=setTimeout('hoverfader.fadeOut("'+h+'");',b)}};this.fadeIn=function(h){if(e[h]["timeout"]){clearTimeout(e[h]["timeout"])}if(e[h]["opacity"]>=10){e[h]["imgs"][1].style.opacity=1}else{e[h]["opacity"]+=0.5;e[h]["imgs"][1].style.opacity=e[h]["opacity"]/10;e[h]["timeout"]=setTimeout('hoverfader.fadeIn("'+h+'");',b)}};this.ieFadeOut=function(h){if(e[h]["timeout"]){clearTimeout(e[h]["timeout"])}if(e[h]["opacity"]<=0){e[h]["imgs"][1].style.filter=e[h]["imgs"][1].style.filter.replace(/ alpha\(opacity=(\d+?)\)/i,"");e[h]["imgs"][1].style.filter+=" alpha(opacity=0)"}else{e[h]["opacity"]--;e[h]["imgs"][1].style.filter=e[h]["imgs"][1].style.filter.replace(/ alpha\(opacity=(\d+?)\)/i,"");e[h]["imgs"][1].style.filter+=" alpha(opacity="+e[h]["opacity"]*10+")";e[h]["timeout"]=setTimeout('hoverfader.ieFadeOut("'+h+'");',b)}};this.ieFadeIn=function(h){if(e[h]["timeout"]){clearTimeout(e[h]["timeout"])}if(e[h]["opacity"]>=10){e[h]["imgs"][1].style.filter=e[h]["imgs"][1].style.filter.replace(/ alpha\(opacity=(\d+?)\)/i,"");e[h]["imgs"][1].style.filter+=" alpha(opacity=100)"}else{e[h]["opacity"]++;e[h]["imgs"][1].style.filter=e[h]["imgs"][1].style.filter.replace(/ alpha\(opacity=(\d+?)\)/i,"");e[h]["imgs"][1].style.filter+=" alpha(opacity="+e[h]["opacity"]*10+")";e[h]["timeout"]=setTimeout('hoverfader.ieFadeIn("'+h+'");',b)}};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(a)){return false}if(document.getElementsByTagName("img").length>0&&document.getElementsByTagName("img")[0].filters){c=true}else{c=false}var k=document.getElementById(a).getElementsByTagName("a");var j;for(var h=0;h<k.length;h++){j=k[h].getElementsByTagName("img");if(k[h].id&&j.length==2){e[k[h].id]=new Object();e[k[h].id]["imgs"]=new Array();e[k[h].id]["imgs"][0]=new Image();e[k[h].id]["imgs"][0].src=j[0].src;e[k[h].id]["imgs"][0]=j[0];e[k[h].id]["imgs"][1]=new Image();e[k[h].id]["imgs"][1].src=j[1].src;e[k[h].id]["imgs"][1]=j[1];e[k[h].id]["opacity"]=10;e[k[h].id]["timeout"]=null;if(c){k[h].onmouseover=function(){hoverfader.ieFadeOut(this.id)};k[h].onmouseout=function(){hoverfader.ieFadeIn(this.id)}}else{k[h].onmouseover=function(){hoverfader.fadeOut(this.id)};k[h].onmouseout=function(){hoverfader.fadeIn(this.id)}}}}return true}}addLoadEvent(function(){hoverfader=new Hoverfader();hoverfader.prepare()});
//zipcode_v4-min.js
var zipcode;function Zipcode(){var b=Array();var f="";this.prepare=function(){var h=document.getElementsByTagName("form");for(var l=0;l<h.length;l++){var r=h[l];var o=r.getElementsByTagName("label");for(var n=0;n<o.length;n++){var p=o[n];if(p.className.indexOf("zip")!=-1){var s=p.htmlFor;var q="";if(s.length>3){q=parseInt(s.substring(3,s.length))}if(document.getElementById("city"+q)){var m=document.getElementById(s);m.onkeyup=function(){return zipcode.getCity(this)};m.onchange=function(){return zipcode.getCity(this)};m.onblur=function(){return zipcode.getCity(this)};if(document.getElementById("zip"+q).value!=""){zipcode.getCity(document.getElementById("zip"+q))}}if(document.getElementById("country"+q)){document.getElementById("country"+q).onchange=function(){zipcode.resetZipBackup();return zipcode.getCity(document.getElementById("zip"+q))}}var k=q;if(k==""){k=0}b[k]=document.getElementById("city"+q).value}}}h=null};this.getCity=function(i){var k=i.value;var j=a(i);var m="CH";if(document.getElementById("country"+j)){m=document.getElementById("country"+j).value}if(k>=1000&&k<10000&&(m=="CHLI"||m=="CH"||m=="LI"||m=="AT")){if(f!=k){f=k;var l=new Hijax();var h=path+"scripts/getOrt/?zip="+k+"&country="+m;l.setUrl(h);l.setCallback(function(n){e(n,j)});l.start()}}else{f="";d(null,j)}};var e=function(m,l){var h=new Array;var k=m.responseXML.getElementsByTagName("entry");if(k.length>0){for(var j=0;j<k.length;j++){h[j]=new Object();h[j]["id"]=k[j].getElementsByTagName("id")[0].firstChild.nodeValue;h[j]["name"]="";h[j]["name"]+=(k[j].getElementsByTagName("ort")[0].firstChild?k[j].getElementsByTagName("ort")[0].firstChild.nodeValue:"")}if(typeof document.getElementById("zip"+l).onkeydown!="function"){document.getElementById("zip"+l).onkeydown=function(i){zipcode.checkKey(this,i)}}}else{h=null;document.getElementById("zip"+l).onkeydown=""}d(h,l)};var d=function(o,n){var p=document.getElementById("city"+n);var m=p.parentNode;var j;var l=0;if(n!=""){l=n}if(p.type.search(/text/i)>-1){if(p.value){b[l]=p.value}else{b[l]=""}}if(!o||o.length==0){var j=document.createElement("input");j.id="city"+n;j.name=p.name;j.setAttribute("type","text");j.value=b[l]}else{var j=document.createElement("select");j.id="city"+n;j.name=p.name;var k;for(var h=0;h<o.length;h++){k=document.createElement("option");k.appendChild(document.createTextNode(o[h]["name"]));k.value=o[h]["id"];if(b[l]==o[h]["name"]){k.selected=true}j.appendChild(k)}k=null}j.className=p.className;m.replaceChild(j,p)};var a=function(h){var i="";if(h.id.length>3){i=parseInt(h.id.substring(3,h.id.length))}return i};this.resetZipBackup=function(){f=""};this.checkKey=function(i,j){var h=0;if(!j){j=window.event}if(j.which&&j.which>0){h=j.which}else{if(j.keyCode&&j.keyCode>0){h=j.keyCode}}if(h==40){g(i)}else{if(h==38){c(i)}}h=null};var g=function(l){var j=document.getElementById("city"+a(l)).getElementsByTagName("option");var h=0;for(var k=0;k<j.length;k++){if(j[k].selected){j[k].selected=false;h=k+1}}if(h<j.length){j[h].selected=true}else{j[0].selected=true}j=null};var c=function(l){var j=document.getElementById("city"+a(l)).getElementsByTagName("option");var h=0;for(var k=0;k<j.length;k++){if(j[k].selected){j[k].selected=false;h=k-1}}if(h>=0){j[h].selected=true}else{j[j.length-1].selected=true}j=null}}addLoadEvent(function(){zipcode=new Zipcode();zipcode.prepare()});
//livejackpots-min.js
function Odometer(h,g){if(!h){throw"ERROR: Odometer object must be past a document element."}this.digits=6;this.tenths=0;this.digitHeight=40;this.digitPadding=0;this.digitWidth=30;this.bustedness=2;this.fontStyle="font-family: Courier New, Courier, monospace; font-weight: 900;";this.value=-1;for(var d in g){this[d]=g[d]}var e={digits:"position:absolute; height:"+this.digitHeight+"px; width:"+(this.digitWidth-(2*this.digitPadding))+"px; padding:"+this.digitPadding+"px;",columns:"position:relative; float:left; overflow:hidden;height:"+this.digitHeight+"px; width:"+this.digitWidth+"px;"};this.setDigitValue=function(l,k,i){var j=a[l];j.digitA.style.backgroundPosition="-"+(k*this.digitWidth)+"px center"};this.set=function(o){if(o<0){throw"ERROR: Odometer value cannot be negative."}this.value=o;var l=Math.floor(o);var k=o-l;l=String(l);for(var m=0;m<this.digits;m++){var j=l.substring(l.length-m-1,l.length-m)||0;this.setDigitValue(this.digits-m-1,j,k);if(j!=9){k=0}}for(var m=0;m<this.tenths;m++){var n=a[this.digits+m];n.digitA.style.backgroundPosition="-"+((10+m)*this.digitWidth)+"px center"}};this.get=function(){return(this.value)};var f=document.createElement("div");h.appendChild(f);var a=new Array();for(var c=0;c<this.digits+this.tenths;c++){var b=document.createElement("div");b.style.cssText=e.columns;addClass(b,"digit");f.appendChild(b);a.push({digitA:b,last_val:-1,last_px:-1})}if(this.value>=0){this.set(this.value)}}var sigeaScroller;function SigeaScroller(){var i="newsscroller";var g="left";var c=1;var b=60;var a,j,e,d,f,h;this.start=function(){if(f){clearTimeout(f)}f=setInterval("sigeaScroller.scroll()",b)};this.stop=function(){if(f){clearTimeout(f)}};this.scroll=function(){if(f){clearTimeout(f)}var k;switch(g){case"left":k=parseInt(h.style.left,10)-c;if(k<(a*-1)){k=e}h.style.left=k+"px";break;case"right":k=parseInt(h.style.right,10)-c;if(k<(a*-1)){k=e}h.style.right=k+"px";break;case"up":k=parseInt(h.style.top,10)-c;if(k<(j*-1)){k=d}h.style.top=k+"px";break;case"down":k=parseInt(h.style.bottom,10)-c;if(k<(j*-1)){k=d}h.style.bottom=k+"px";break}f=setInterval("sigeaScroller.scroll()",b)};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(i)){return false}h=document.getElementById(i);e=h.parentNode.offsetWidth;d=h.parentNode.offsetHeight;h.style.position="absolute";if(h.className.indexOf("left")>-1){g="left";h.style.left=e+"px";removeClass(h,"noscript")}else{if(h.className.indexOf("right")>-1){g="right";h.style.right=e+"px"}else{if(h.className.indexOf("up")>-1){g="up";h.style.top=d+"px";removeClass(h,"noscript")}else{if(h.className.indexOf("down")>-1){g="down";h.style.bottom=d+"px"}}}}a=h.offsetWidth;j=h.offsetHeight;h.parentNode.onmouseover=function(){sigeaScroller.stop()};h.parentNode.onmouseout=function(){sigeaScroller.start()};sigeaScroller.start();return true}}addLoadEvent(function(){sigeaScroller=new SigeaScroller();sigeaScroller.prepare()});var livejackpots;function Livejackpots(){var a="livejackpots";var f=new Array();var e=20;var d=0;var c=0;this.close=function(){addClass(document.getElementById(a),"hidden");return true};var b=function(i,j,k){if(k){var h=new Date();h.setTime(h.getTime()+(k*24*60*60*1000));var g="; expires="+h.toGMTString()}else{var g=""}document.cookie=i+"="+j+g+"; path=/"};this.increase=function(g){if(f[g]["timeout"]){clearTimeout(f[g]["timeout"])}f[g]["started"]=true;var h=Math.max(Math.round(f[g]["top"]/25),1);f[g]["current"]+=h;f[g]["current"]=Math.min(f[g]["current"],f[g]["top"]);f[g]["meter"].set(f[g]["current"]);if(f[g]["current"]<f[g]["top"]){if(f[g]["current"]>f[g]["top"]/2&&g<d-1&&!f[g+1]["started"]){f[g]["timeout"]=setTimeout("livejackpots.increase("+(g+1)+");",e)}f[g]["timeout"]=setTimeout("livejackpots.increase("+g+");",e)}};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(a)){return false}var j=document.getElementById(a).getElementsByTagName("a");j[0].onclick=function(){b("livejackpotsFlag","1",false);return !livejackpots.close()};var h=document.getElementById(a).getElementsByTagName("div");d=0;for(var g=0;g<h.length;g++){if(h[g].className.indexOf("jackpot")>-1&&h[g].getElementsByTagName("div").length>2&&h[g].getElementsByTagName("div")[0].lastChild.nodeValue.search(/^(\d)+$/)>-1){f[d]=new Object();f[d]["current"]=0;f[d]["started"]=false;f[d]["top"]=h[g].getElementsByTagName("div")[0].lastChild.nodeValue;while(h[g].hasChildNodes()){h[g].removeChild(h[g].lastChild)}f[d]["meter"]=new Odometer(h[g],{value:0,digits:7,tenths:2,digitHeight:20,digitWidth:13,bustedness:1});d++}}setTimeout("livejackpots.increase(0);",20);return true}}addLoadEvent(function(){livejackpots=new Livejackpots();livejackpots.prepare()});
//newspopup-min.js
var newspopup;function Newspopup(){var c="newsPopup";var h="newswrapper";var i="newsscroller";var j=new Hijax();var g;var a=0;this.showHideSubnavi=function(k){if(k.parentNode.className.indexOf("show")>-1){removeClass(k.parentNode,"show")}else{addClass(k.parentNode,"show")}k.blur();return true};this.close=function(){addClass(document.getElementById(h),"hidden");window.onresize=null;return true};this.load=function(l){l.blur();if(l.href.indexOf("?")>-1){var k=l.href+"&xhr=1"}else{var k=l.href+"?xhr=1"}j.setUrl(k);j.setCallback(function(m){if(m.responseText!=""){while(g.hasChildNodes()){g.removeChild(g.lastChild)}g.innerHTML=m.responseText;if(document.getElementById("newswrapper_xhr")){if(!document.getElementById(h)){var n=document.createElement("div");n.style.height=a+"px";n.id="closelayer";n.onclick=function(){return !newspopup.close()};document.getElementById("newswrapper_xhr").appendChild(n);document.getElementById("newswrapper_xhr").getElementsByTagName("h1")[0].getElementsByTagName("a")[0].onclick=function(){return !newspopup.close()};document.getElementById("newswrapper_xhr").style.backgroundImage="none";document.getElementById("newswrapper_xhr").id="newswrapper";document.getElementById("newscontainer_xhr").id="newscontainer";document.getElementById("news_xhr").id="news";document.getElementsByTagName("body")[0].appendChild(document.getElementById("newswrapper"))}else{document.getElementById("news").innerHTML=document.getElementById("news_xhr").innerHTML}window.onresize=newspopup.setBoxHeight;d(document.getElementById(h));removeClass(document.getElementById(h),"hidden");e()}}m=null});j.captureData();return true};this.setBoxHeight=function(){e(true)};var e=function(k){var m=a;document.getElementById(h).style.height="";document.getElementById("closelayer").style.height="";document.getElementById("newscontainer").style.height="";f();var l=b(document.getElementById("pagewrapper"));document.getElementById(h).style.height=a+"px";document.getElementById("closelayer").style.height=a+"px";document.getElementById("newscontainer").style.height=(a-l)+"px";document.getElementById("newscontainer").style.paddingTop=l+"px"};var d=function(l){var m=l.getElementsByTagName("a");for(var k=0;k<m.length;k++){if(!m[k].getAttribute("target")&&m[k].href.indexOf(".php")>0&&(m[k].href.indexOf("nID=")>0||m[k].href.indexOf("back=1")>0)){m[k].onclick=function(){return !newspopup.load(this)}}}return true};var f=function(){if(typeof(window.innerHeight)=="number"){a=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight}}}a=Math.max(document.getElementById("wrapper").offsetHeight,a);a=Math.max(document.getElementById(h).offsetHeight,a)};var b=function(k){var l=k.offsetTop;while(k.offsetParent){k=k.offsetParent;l+=k.offsetTop}return l};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(c)){return false}var m=document.getElementById(c).getElementsByTagName("a");if(m.length>0){if(m.length==1){m[0].onclick=function(){return !newspopup.load(this)}}else{m[0].onclick=function(){return !newspopup.showHideSubnavi(this)};for(var k=1;k<m.length;k++){m[k].onclick=function(){return !newspopup.load(this)}}}if(document.getElementById(i)){m=document.getElementById(i).getElementsByTagName("a");for(var k=0;k<m.length;k++){m[k].onclick=function(){return !newspopup.load(this)}}}g=document.createElement("div");g.id="xhrPlaceholder";g.style.display="none";addClass(g,"hidden");document.getElementsByTagName("body")[0].appendChild(g);if(document.getElementById(h)){f();if(a>0){var l=document.createElement("div");l.style.height=a+"px";l.id="closelayer";l.onclick=function(){return !newspopup.close()};document.getElementById(h).style.backgroundImage="none";document.getElementById(h).appendChild(l)}d(document.getElementById(h));e()}}return true}}addLoadEvent(function(){newspopup=new Newspopup();newspopup.prepare()});
//jobForm-min.js
var jobForm;function JobForm(){var c="anfrageform";var b="displayJobForm";var a="hideJobForm";this.show=function(d){removeClass(document.getElementById(c),"hidden");addClass(d,"hidden");removeClass(document.getElementById(a),"hidden")};this.hide=function(d){addClass(document.getElementById(c),"hidden");addClass(d,"hidden");removeClass(document.getElementById(b),"hidden")};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(c)){return false}if(document.getElementById(c).className.indexOf("job")>=0){if(document.getElementById(b)){if(document.getElementById(c).className.indexOf("form_error")>=0){removeClass(document.getElementById(a),"hidden")}else{removeClass(document.getElementById(b),"hidden");addClass(document.getElementById(c),"hidden")}document.getElementById(b).onclick=function(){jobForm.show(this)};document.getElementById(a).onclick=function(){jobForm.hide(this)}}removeClass(document.getElementById(c),"noscript")}return true}}addLoadEvent(function(){jobForm=new JobForm();jobForm.prepare()});
//loungeForm-min.js
var loungeForm;function LoungeForm(){var d="anfrageform";var c="frage2";var b=33;var a=33;this.checkSize=function(){var g=document.getElementById("frage1").getElementsByTagName("input");var l=33;var k=0;var j;for(var h=0;h<g.length;h++){j=parseInt(g[h].value,10);l=Math.min(j,l);if(g[h].checked){k=j}}b=Math.max(k,l);if(document.getElementById(c)&&document.getElementById(c).nodeName.search(/select/i)!=-1){var f=document.getElementById(c);while(f.hasChildNodes()){if(!f.lastChild.value||f.lastChild.value!=-9){f.removeChild(f.lastChild)}else{break}}var m;for(var h=1;h<=b;h++){m=document.createElement("option");m.value=h;m.appendChild(document.createTextNode(h));if(h==a){m.setAttribute("selected","selected")}f.appendChild(m)}m=null}e()};this.checkGuestCount=function(){if(document.getElementById(c).value!=""&&document.getElementById(c).value!=-9){a=parseInt(document.getElementById(c).value,10);a=Math.max(a,1)}else{a=b}e()};var e=function(){var g=document.getElementById("spezialfrage").getElementsByTagName("tr");for(var f=1;f<g.length;f++){if(f<=b&&f<=a){removeClass(g[f],"hidden")}else{addClass(g[f],"hidden")}}};this.validate=function(j){var m=document.getElementById("spezialfrage").getElementsByTagName("tr");var g;var l=document.getElementById("spezialfrage").parentNode.getElementsByTagName("label")[0];var f=false;for(var h=1;h<=a;h++){g=m[h].getElementsByTagName("input");if(trimString(g[2].value)==""||trimString(g[3].value)==""){f=true;break}}removeClass(l,"required");g=null;m=null;var k=checkForm.validate(j);addClass(l,"required");if(k&&f){alert(formAlert["default"].replace(/\[label\]/,checkForm.getLabelText("spezialfrage")))}if(f){k=false;addClass(l,"error")}else{removeClass(l,"error")}return k};this.prepare=function(){if(!document.getElementsByTagName){return false}if(!document.getElementById){return false}if(!document.getElementById(d)){return false}if(document.getElementById(d).className.indexOf("lounge")>=0){var h=document.getElementById("spezialfrage").getElementsByTagName("tr");loungeForm.checkSize();for(var g=0;g<h.length;g++){removeClass(h[g],"noscript")}var f=document.getElementById("frage1").getElementsByTagName("input");for(var g=0;g<f.length;g++){f[g].onchange=function(){loungeForm.checkSize()};f[g].onclick=function(){loungeForm.checkSize()}}if(document.getElementById(c)){document.getElementById(c).onchange=function(){loungeForm.checkGuestCount()};if(document.getElementById(c).value!=""&&document.getElementById(c).value!=-9){loungeForm.checkGuestCount()}}document.getElementById(d).getElementsByTagName("form")[0].onsubmit=function(){return loungeForm.validate(this)}}return true}}addLoadEvent(function(){loungeForm=new LoungeForm();loungeForm.prepare()});
