var oAH=new function(){var __aO=[];var _trace=function(m){alert(m);};var _gOA=function(t,y){var _o="",_i;for(_i in __aO){if(__aO[_i].u){continue;}_o=__aO[_i];break;}if("object"==typeof _o){_o.u=true;_o.t=(t?t:0);_o.y=(y?y:0);delete _o.oX;_o.oX=false;}else{_o={i:0,oX:false,u:false,t:(t?t:0),y:(y?y:0)};}try{if(typeof XMLHttpRequest!='undefined'){_o.oX=new XMLHttpRequest();}if((typeof _o.oX!='object')&&window.ActiveXObject){for(var i=5;i;i--){try{if(i==2){_o.oX=new ActiveXObject("Microsoft.XMLHTTP");}else{_o.oX=new ActiveXObject("Msxml2.XMLHTTP."+i+".0");}break;}catch(excNotLoadable){_o.oX=false;}}}}catch(excNotLoadable){_o.oX=false;}if(typeof _o.oX!='object'){return false;}_o.u=true;_o.i=__aO.length;__aO[_o.i]=_o;return _o;};this.send=function(url,p,cb,t,y){var _o=_gOA(t,y),_p=((p&&("string"==typeof p)&&(0<p.length))?p:null),_cb=cb,_a=((_cb&&("string"==typeof _cb)&&(0<_cb.length))?true:false);if(!(("object"==typeof _o)&&("object"==typeof _o.oX))){return false;}if(!(("string"==typeof url)&&(0<url.length))){return false;}try{var _s=this,_d=new Date();_o.oX.open((_p?"POST":"GET"),url+((-1==url.indexOf("?"))?"?":"&")+"t"+String(_d.getTime()).substr(6)+"="+_d.getTime(),_a);if(_p){_o.oX.setRequestHeader("Content-Type","application/x-www-form-urlencoded");_o.oX.setRequestHeader("Content-length",_p.length);}if(_o.t>0){setTimeout("oAH.disconnect("+_o.i+")",_o.t);}if(_a){_o.oX.onreadystatechange=function(){return _s.readyLoading(_o.i,_cb);}}_o.oX.send(_p);if(!_a){var _r=_o.oX.responseText;delete _o.oX['onreadystatechange'];_o.u=false;return _r;}}catch(e){_trace("send:"+e.message);}return true;};this.readyLoading=function(i,cb){try{var _o=__aO[i],_r;if(!(("object"==typeof _o)&&("object"==typeof _o.oX))){return false;}if(!((4==_o.oX.readyState)&&(200==_o.oX.status))){return false;}_r=escape(_o.oX.responseText);if(0<cb.indexOf('(')){eval(cb.replace(/\{RESPONSE\}/,_r));}else{eval(cb+"('"+_r+"');");}delete _o.oX['onreadystatechange'];_o.u=false;}catch(e){_trace("readyLoading:"+e.message);}return true;};this.disconnect=function(i){try{var _o=__aO[i];if(!(("object"==typeof _o)&&("object"==typeof _o.oX)&&(_o.u))){return false;}delete _o.oX['onreadystatechange'];_o.oX.abort();_o.u=false;}catch(e){_trace("disconnect:"+e.message);}return true;};};var mn=new function(){var __oS={aktuelles:{ml:529,cl:390,ct:0,cw:570},fakten:{ml:60,cl:165,ct:30,cw:650},fotost:{ml:130,cl:110,ct:25,cw:0},fotosd:{ml:130,cl:220,ct:30,cw:500},mnkf:{ml:495,cl:415,ct:0,cw:520},partnert:{ml:453,cl:110,ct:50,cw:0},partnerd:{ml:435,cl:415,ct:0,cw:520},kontakt:{ml:95,cl:325,ct:100,cw:460},impressum:{ml:505,cl:440,ct:0,cw:520}},__iT=0,__h=document.location.href;;this.checkHref=function(){if(__h!=document.location.href){this.clicklink(document.location.href);__h=document.location.href;}};setInterval('mn.checkHref()',10);this.clicklink=function(h){var _id='',_h=h.substr(h.indexOf('#')),_p=0,_i=0,_aC=document.getElementById('mnu').childNodes;_p=_h.indexOf("-");if(0<_p){_id=_h.substr(1,_p-1);}else{_id=_h.substr(1);}for(_i in _aC){if(!(_aC[_i]&&_aC[_i].id&&(0<_aC[_i].id.length))){continue;}_aC[_i].firstChild.className='nix';if((_aC[_i].id.substr(2)==_id)||(_aC[_i].id.substr(2)==_id.substr(0,_id.length-1))){_aC[_i].firstChild.className='mk';}}this.flowOut(1,parseInt(document.getElementById('mbx').style.left));setTimeout(function(){mn.callpage(_h)},500);return true;};this.callpage=function(h){document.getElementById('cbx').style.display='none';var _id='',_pth=h.substr(1),_p=0;if(h&&(1<h.length)){_p=h.indexOf("-");if(0<_p){_id=h.substr(1,_p-1);}else{_id=h.substr(1);}}if(!__oS[_id]){_id=_id.substr(0,_id.length-1);if(!__oS[_id]){_id='aktuelles';_pth='aktuelles';}}oAH.send('http://'+window.location.hostname+'/xhr.php?'+_pth,'',"mn.loadpage('"+_id+"','{RESPONSE}')",0,1000);};this.loadpage=function(i,r){document.getElementById('bdy').className=i;var _t='0',_l='0',_i=0,_aC=document.getElementById('mnu').childNodes,_oJ,_r=unescape(r),_s;for(_i in _aC){if(!(_aC[_i]&&_aC[_i].id&&(0<_aC[_i].id.length))){continue;}_aC[_i].firstChild.className='nix';if((_aC[_i].id.substr(2)==i)||(_aC[_i].id.substr(2)==i.substr(0,i.length-1))){_aC[_i].firstChild.className='mk';}}this.flowIn(__oS[i].ml,1000);if(-1<_r.indexOf('<script ')){_t=_r.indexOf('<script ');_s=_r.substr(_t,(_r.indexOf('</script>')-_t+9));_r=_r.replace(_s,'');_t=_s.indexOf('>')+1;eval(_s.substr(_t,_s.length-9-_t));}if(-1<_r.indexOf('<style ')){}document.getElementById('cbx').firstChild.innerHTML=_r;if(0<__oS[i].cl){_l=__oS[i].cl+'px';}if(0<__oS[i].ct){_t=__oS[i].ct+'px';}document.getElementById('cbx').style.width=((0<__oS[i].cw)?(__oS[i].cw+'px'):'');document.getElementById('cbx').style.margin=_t+' 0 0 '+_l;document.getElementById('cbx').style.display='block';};this.flowIn=function(t,f){clearTimeout(__iT);document.getElementById('mbx').style.left=f+'px';var _t=this,_d=(f-t);if(_d>1){__iT=setTimeout(function(){_t.flowIn(t,f-Math.floor((f-t)/2))},50);return;}document.getElementById('mbx').style.left=t+'px';return;};this.flowOut=function(r,f){clearTimeout(__iT);document.getElementById('mbx').style.left=f+'px';if(f>-1000){var _t=this;__iT=setTimeout(function(){_t.flowOut(r*2,f-r)},50);}};var __oBig={},__sAP='';this.initGal=function(o){__oBig=o;};this.bigpic=function(id){__sAP=id;document.getElementById('grbxl').style.width='100%';document.getElementById('grbxl').style.height='100%';document.getElementById('grbxl').style.display='block';document.getElementById('grbxb').style.width='100%';document.getElementById('grbxb').style.height='100%';document.getElementById('grbxb').style.display='block';this.showPic();};this.close=function(){document.getElementById('grbxl').style.width='0';document.getElementById('grbxl').style.height='0';document.getElementById('grbxl').style.display='none';document.getElementById('grbxb').style.width='0';document.getElementById('grbxb').style.height='0';document.getElementById('grbxb').style.display='none';document.getElementById('grbxcnt').firstChild.src="/i/loading.gif";};this.next=function(){__sAP=__oBig[__sAP].n;this.showPic();};this.prev=function(){__sAP=__oBig[__sAP].p;this.showPic();};this.showPic=function(){document.getElementById('grbxcnt').firstChild.src=__oBig[__sAP].b;document.getElementById('grbxcnt').firstChild.style.width=__oBig[__sAP].w+'px';;document.getElementById('grbxcnt').firstChild.style.height=__oBig[__sAP].h+'px';;document.getElementById('grbxbrd').style.width=parseInt(parseInt(__oBig[__sAP].w)+50)+'px';};};
