if(typeof VZO=="undefined"){ var VZO=new Object() } function OAS_RICH(){} VZO.displayTime=function(elementId){ if($("#"+elementId).length==0){ return } var now=new Date(); var h=now.getHours(); var m=now.getMinutes(); if(m<10){m="0"+m}var s=now.getSeconds(); if(s<10){s="0"+s}var D=now.getDate(); var M=now.getMonth()+1; var Y=now.getFullYear(); var output=D+"."+M+"."+Y+" "+h+":"+m+":"+s+" Uhr "; $("#"+elementId).text(output); window.setTimeout(function(){VZO.displayTime(elementId)},1000)}; VZO.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; VZO.encode64=function(inp){var chr1,chr2,chr3,enc3,enc4,i=0,out=""; while(i127){chr1=88} chr2=inp.charCodeAt(i++); if(chr2>127){chr2=88} chr3=inp.charCodeAt(i++); if(chr3>127){chr3=88} if(isNaN(chr3)){ enc4=64; chr3=0 }else{ enc4=chr3&63 } if(isNaN(chr2)){ enc3=64; chr2=0 }else{ enc3=((chr2<<2)|(chr3>>6))&63 } out+=VZO.keyStr.charAt((chr1>>2)&63)+VZO.keyStr.charAt(((chr1<<4)|(chr2>>4))&63)+VZO.keyStr.charAt(enc3)+VZO.keyStr.charAt(enc4) } return encodeURIComponent(out) }; VZO.decode64=function(inp){ inp=inp.replace(/<.*?>/g,""); inp=inp.replace(/\n|\r| |\t/g,""); inp=inp.replace(/=/g,""); var out=""; var chr1,chr2,chr3=""; var enc1,enc2,enc3,enc4=""; var i=0; inp=inp.replace(/[^A-Za-z0-9\+\/\=]/g,""); do{ enc1=VZO.keyStr.indexOf(inp.charAt(i++)); enc2=VZO.keyStr.indexOf(inp.charAt(i++)); enc3=VZO.keyStr.indexOf(inp.charAt(i++)); enc4=VZO.keyStr.indexOf(inp.charAt(i++)); chr1=(enc1<<2)|(enc2>>4); chr2=((enc2&15)<<4)|(enc3>>2); chr3=((enc3&3)<<6)|enc4; out=out+String.fromCharCode(chr1); if(enc3!=64){ out=out+String.fromCharCode(chr2) } if(enc4!=64){ out=out+String.fromCharCode(chr3) } chr1=chr2=chr3=""; enc1=enc2=enc3=enc4="" }while(i=4)){ return"ie" } if((browser=="Netscape")&&(version>=4&&version<5)){ return"ns" } if((browser=="Netscape")&&(agent.search(/Netscape/))>0){ return"ns7" } return"" } function setHomePage(siteURL){ var browser=whichBrowser(); if(browser=="ie"){ document.body.style.behavior="url(#default#homepage)"; document.body.setHomePage(siteURL) }else{ document.location.href="/info/startseite.php" } } function addToFavorites(siteURL,description){ var browser=whichBrowser(); if(browser=="ie"){ window.external.AddFavorite(siteURL,description) }else{ if(browser=="ns"){ alert("Drücken Sie Strg+D zum Bookmarken dieser Seite!") }else{ alert("Die Seite kann nicht automatisch den Favoriten hinzugefügt werden!") } } } VZO.bildnavi=function(centerOn,numPics,selector,width){ var text=""; var theClass; var width=width||4; var from=centerOn-width; var to=centerOn+width; if(VZO.slide.indexPage==1){numPics++} if(from<0){ to-=from; from=0 } if(from>0&&numPics>9){ text='1' } if(from>1&&numPics>10){ text+='...' } if(to>=numPics-1){ from-=to-numPics+1; to=numPics-1; if(from<0){ from=0 } } for(var i=from;i<=to;i++){ theClass=""; if(i==from&&i!=1){ theClass="class='rand'" } if(i==centerOn){ text+=''+(i+1)+""; }else{ text+=''+(i+1)+"" } } if(to'+numPics+"" } var previous=centerOn-1; if(previous<0){ previous=numPics-1 } var next=centerOn+1; if(next==numPics){ next=0 } text='weiterzurück'+text; $(selector).html(text) }; VZO.slide={numPics:1,indexPage:1,centerImg:1,refback:"",load:function(n){ if(n==this.numPics+this.indexPage){ n=0 }else{ if(n==this.numPics){ var url=window.location.hostname+window.location.pathname; var url_search=window.location.search; if(url_search.search(/skip=/)!=-1){ url_search=url_search.replace(/skip=(\d+)/g,"skip="+(this.numPics)) }else{ if(url_search.substr(0,1)=="?"){ url_search=url_search+"&skip="+(this.numPics) }else{ url_search=url_search+"?skip="+(this.numPics) } } if(this.refback&&url_search.search(/refback=/)==-1){ if(url_search.search(/\?/)!=-1){ url_search+="&refback="+this.refback }else{ url_search+="?refback="+this.refback } } window.location.href=url_search }else{ if(n>this.numPics){ return } } } if($("#klick_skip")[0]){ $("#klick_skip")[0].value=n } var div=$("#slide_"+n); var img=$("#slide_img_"+n); if(div.length){ if(img.length){ if(img.attr("src")!=img.attr("slide:src")){ img.attr("src",img.attr("slide:src")) } } VZO.bildnavi(n,this.numPics,"div.bildnavi"); $("div.bildbereich:visible").customFadeOut("fast",function(){ $("#slide_"+n).customFadeIn("fast"); if(img.length&&VZO.slide.centerImg==1){ var height=img.height(); if(height>100){ img.css("padding-top",((325-height)/2)+"px") }else{ img.css("padding-top",0) } } }); var pixel=document.getElementById("ivwpix"); if(pixel!==null){ var reg=/.*\/CP\/[^;]+;(.*?)\/[^/]+\/[0-9]+\?r=/; if((result=reg.exec(pixel.src))!==null){ var dpath=result[1]; dpath+="/"+$("#slide_"+n).attr("slide:id") } VZO.reloadIVW(null,dpath) } if(document.getElementById("toprightad")){ document.getElementById("toprightad").contentWindow.location.reload() } if(document.getElementById("middlead")){ document.getElementById("middlead").contentWindow.location.reload() } } } }; (function($){ $.fn.customFadeIn=function(speed,callback){ $(this).fadeIn(speed,function(){ if(jQuery.browser.msie){ $(this).get(0).style.removeAttribute("filter") } if(callback!=undefined){ callback() } }) }; $.fn.customFadeOut=function(speed,callback){ $(this).fadeOut(speed,function(){ if(jQuery.browser.msie){ $(this).get(0).style.removeAttribute("filter") } if(callback!=undefined){ callback() } }) } } )(jQuery); VZO.reloadIVW=function(sktg,path,referer,path_search,path_replace){ //alert("1"); var pixel=document.getElementById("ivwpix"); if(pixel===null){ return } var pixelsrc=pixel.src; if(pixelsrc==null){ return } if(!sktg||!path||!referer){ var reg=/.*\/CP\/([^;]+);(.*)\/[0-9]+\?r=(.*)&.*/; if((result=reg.exec(pixelsrc))!==null){ if(!sktg){ sktg=result[1] } if(!path){ path=result[2] } if(!referer){ referer=result[3]||"" } } } };