var adlWallPaperLeft=804;if(typeof RPO=="undefined"){var RPO=new Object();}if(navigator.platform.indexOf("Mac")>-1){$("html").addClass("mac");}function OAS_RICH(){}function Go(x,t){if(x=="none"){return ;}else{if(typeof (t)=="undefined"){location.href=x;}else{var newwin=window.open(x,t);if(newin){newwin.focus();}}}}function owin(datei,name,width,height){var sw=screen.width;var sh=screen.height;if(width>sw-50){width=sw-50;}if(height>sh-100){height=sh-100;}var w=window.open(datei,name,"width="+width+",height="+height+",scrollbars=yes,directories=no,resizable=yes,toolbar=no,location=no,status=no,menubar=no");if(w){w.focus();}return w;}function owinfull(datei,name,width,height){var sw=screen.width;var sh=screen.height;if(width>sw-50){width=sw-50;}if(height>sh-100){height=sh-100;}var w=window.open(datei,name,"width="+width+",height="+height+",scrollbars=yes,directories=yes,resizable=yes,toolbar=yes,location=yes,status=yes,menubar=yes");if(w){w.focus();}return w;}function doopener(path){if(top.window.opener&&!top.window.opener.closed){top.window.opener.location=path;top.window.close();return false;}return true;}function doremote(path){if(top.window.opener&&!top.window.opener.closed){top.window.opener.location=path;return false;}return true;}function ftvlaunch(video,quality){var LeftPosition=(screen.width)?(screen.width-665)/2:0;var TopPosition=(screen.height)?(screen.height-430)/2:0;var popwin=window.open("http://www.zoomin.tv/videoplayer/index.cfm?id="+video+"&mode=normal&quality="+quality+"&pid=ngz","MTV6_window","toolbar=no,width=665,height=430,top="+TopPosition+",left="+LeftPosition+",directories=no,status=no,statusbar=0,scrollbars=no,resizable=no,menubar=no");popwin.focus();}RPO.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(){RPO.displayTime(elementId);},1000);};RPO.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";RPO.encode64=function(inp){var chr1,chr2,chr3,enc3,enc4,i=0,out="";while(i<inp.length){chr1=inp.charCodeAt(i++);if(chr1>127){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+=RPO.keyStr.charAt((chr1>>2)&63)+RPO.keyStr.charAt(((chr1<<4)|(chr2>>4))&63)+RPO.keyStr.charAt(enc3)+RPO.keyStr.charAt(enc4);}return encodeURIComponent(out);};RPO.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=RPO.keyStr.indexOf(inp.charAt(i++));enc2=RPO.keyStr.indexOf(inp.charAt(i++));enc3=RPO.keyStr.indexOf(inp.charAt(i++));enc4=RPO.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<inp.length);return out;};function whichBrowser(){var browser=navigator.appName;var version=navigator.appVersion.substring(0,1);var agent=navigator.userAgent;if((browser=="Microsoft Internet Explorer")&&(version>=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!");}}}RPO.eilmeldungFlag=false;RPO.eiltext="";RPO.eiltimeout=30000;RPO.eilmeldung=function(){if($("#eilmeldung").length==0||$("#mainarea").length==0){return ;}$.get("/alive/eilmeldung.html",{id:(new Date()).getTime()},function(data){RPO.showEilmeldung(data);});if(RPO.eiltimeout<=90000){RPO.eiltimeout+=1000;}if(RPO.eiltimeout<=90000||RPO.eilmeldungFlag){window.setTimeout(function(){RPO.eilmeldung();},RPO.eiltimeout);}};RPO.showEilmeldung=function(data){if(!data||data==""){return ;}var result=eval("("+data+")");if(result.meldung==RPO.eiltext){return ;}if(result.meldung!=""){RPO.eiltext=result.meldung;var eilmeldung="";if(result.link!=""){eilmeldung='<a href="'+result.link+'" target="_top">'+result.meldung+"</a>";}else{eilmeldung=result.meldung;}if(!RPO.eilmeldungFlag){if($("#produktmarke").length){$("#mainarea").css("top","160px");$("#eilmeldung").css("top","100px");}else{$("#mainarea,#toparea").animate({top:"+=60px"},"slow");}$("#eilmeldung").css({height:"60px",display:"block"});}RPO.eilmeldungFlag=true;$("#scrolling_container_eilmeldung").html('<div class="eilmeldung">'+eilmeldung+"</div>");RPO.eilmeldungScroller("scrolling_container_eilmeldung");}else{RPO.eiltext="";if(RPO.eilmeldungFlag){$("#eilmeldung").hide();$("#scrolling_container_eilmeldung").empty();$("#mainarea,#toparea").animate({top:"-=60px"},"fast");}RPO.eilmeldungFlag=false;}};RPO.eilmeldungScroller=function(containerId){var $innerDiv=$("#"+containerId+" div");$innerDiv.css({whiteSpace:"nowrap",position:"relative"}).wrapInner('<b style="padding-right:1em"></b>').append($innerDiv.html()+$innerDiv.html());var amount=$("#"+containerId+" b:first").outerWidth();$innerDiv.width(amount*3);var speed=amount*15;var scrollIt=function(){$innerDiv.animate({left:"-="+amount+"px"},speed,"linear",function(){$innerDiv.css("left","0");scrollIt();});};scrollIt();};RPO.textScroller=function(containerId,className){var $first=$("#"+containerId+" ."+className+":first");var $container=$("#"+containerId);$container.animate({scrollTop:"+="+$first.outerHeight()+"px"},"slow",function(){$first.appendTo($container);window.setTimeout(function(){RPO.textScroller(containerId,className);},2000);$container.scrollTop(0);});};RPO.MultiTeaserRotation=function(containerId,className,numVisible,delay){var from=0;var timeout;var animstop=false;var selektor="#"+containerId+" ."+className;var numDivs=$(selektor).length;if(numDivs==0){return ;}numDivs-=numDivs%numVisible;if(numDivs==numVisible){return ;}var theDelay=delay||3000;var doRotation=function(){if(!animstop){window.clearTimeout(timeout);from%=numDivs;var sliceInFrom=(from+numVisible)%numDivs;var sliceInTo=(from+2*numVisible)%numDivs;$(selektor).slice(from,from+numVisible).css("display","none");if(sliceInTo>sliceInFrom){$(selektor).slice(sliceInFrom,sliceInTo).css("display","block");}else{$(selektor).slice(sliceInFrom).css("display","block");}from=from+numVisible;}timeout=window.setTimeout(function(){doRotation();},theDelay);};timeout=window.setTimeout(function(){doRotation();},theDelay);$("#"+containerId).hover(function(event){animstop=true;},function(event){animstop=false;});};RPO.klickmodulChangeContent=function(sElementTo,sParentElement,sUrl,sContentDiv){if(!this.saveFirst){this.saveFirst=$("#"+sContentDiv).html();}document.getElementById("klickmodul_link").href=sUrl+"/indexlist.html";sUrl="/public/extern/module/cross_teaser"+sUrl;$("#"+sParentElement+" div").removeClass("sel");$("#"+sElementTo).addClass("sel");if(!sUrl.match(/\/nachrichten$/)){$("#"+sContentDiv).html(this.saveFirst);$("#div_klickmodul_link").css("display","none");}else{$("#div_klickmodul_link").css("display","block");$.get(sUrl,function(data){$("#"+sContentDiv).html(RPO.decode64(data));});RPO.reloadIVW();}};RPO.Hitpages=function(centerOn,numPics,selector,width){var text="";var theClass;var width=width||4;var from=centerOn-width;var to=centerOn+width;if(RPO.slide.indexPage==1){numPics++;}if(from<0){to-=from;from=0;}if(from>0&&numPics>9){text='<a class="hpl nlm" href="#" onclick="RPO.slide.load(0);return false">1</a>';}if(from>1&&numPics>9){text+='<span class="dots">...</span>';}if(to>=numPics-1){from-=to-numPics+1;to=numPics-1;if(from<0){from=0;}}for(var i=from;i<=to;i++){theClass="hpl";if(i==from&&i!=1){theClass="hpl nlm";}if(i==centerOn){text+='<a class="'+theClass+'" href="#"><span class="ausgewaehlt">'+(i+1)+"</span></a>";}else{text+='<a class="'+theClass+'" href="#" onclick="RPO.slide.load('+i+');return false">'+(i+1)+"</a>";}}if(to<numPics-2){text+='<span class="dots">...</span>';}if(to<numPics-1){theClass="hpl nlm";if(to==numPics-2){theClass="hpl";}text+='<a class="'+theClass+'" href="#" onclick="RPO.slide.load('+(numPics-1)+');return false">'+numPics+"</a>";}var previous=centerOn-1;if(previous<0){previous=numPics-1;}var next=centerOn+1;if(next==numPics){next=0;}text='<div class="right"><a href="#" class="link" onclick="RPO.slide.load('+next+');return false"><b>weiter</b></a></div><div class="left"><a href="#" class="zurueck linkleft" onclick="RPO.slide.load('+previous+');return false"><b>zur&uuml;ck</b></a></div>'+text;$(selector).html(text);};RPO.slide={numPics:1,indexPage:1,centerImg:1,refback:"",ivwInline:0,clicked:0,load:function(n){this.clicked++;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"));}}RPO.Hitpages(n,this.numPics,"div.hitpages");$("div.slidecontainer:visible").customFadeOut("fast",function(){$("#slide_"+n).customFadeIn("fast");if(img.length&&RPO.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 dpath=null;if(this.ivwInline==0){var reg=/.*\/CP\/[^;]+;(.*?)\/[^/]+\/[0-9]+\?r=/;if((result=reg.exec(pixel.src))!==null){dpath=result[1];dpath+="/"+$("#slide_"+n).attr("slide:id");}}if(this.ivwInline==0||this.clicked>1){RPO.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);function switch_tab(base,num){var el;for(var i=1;;i++){if(!(el=document.getElementById(base+"_"+i))){return ;}if(i==num){el.style.display="";document.getElementById(base+"_reiter_"+i).className="aktiv";}else{el.style.display="none";document.getElementById(base+"_reiter_"+i).className="";}}}RPO.reloadIVW=function(sktg,path,referer,path_search,path_replace){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]||"";}}}if(path_search&&path_replace){path=path.replace(path_search,path_replace);}var ivwrand=Math.floor(Math.random()*1000000);if(sktg&&path){var newsrc="http://rponl.ivwbox.de/cgi-bin/ivw/CP/"+sktg+";"+path+"/"+ivwrand+"?r="+referer+"&amp;d="+ivwrand;pixel.src=newsrc;}var trackpath=document.location.hostname+document.location.pathname;trackpath=trackpath.replace(/\/+$/,"");pageTracker._trackPageview(trackpath+path.substr(path.lastIndexOf("/")));};RPO.setUserName=function(){var userid=0;var login_name="";var e,cookie,tmp;var reg,result;if(document.cookie){reg=/RPOINFID=([^;]*)/;if((result=reg.exec(document.cookie))!==null){cookie=result[1];if(cookie!==undefined){tmp=cookie.split("-");if(tmp.length>3){userid=parseInt(tmp[0]);login_name=unescape(unescape(unescape(tmp[2])));}}}}if(userid>0){if((e=document.getElementById("login_name"))){e.innerHTML='<a href="/services/personal/" title="mein NGZ-Online">'+login_name+"</a>";}if((e=document.getElementById("guest"))){e.style.display="none";}if((e=document.getElementById("user"))){e.style.display="block";}}};RPO.reddot=function(){if(document.cookie&&document.cookie.indexOf("kuh=")>-1&&document.cookie.indexOf("RPOINFID=")>=-1&&typeof kuh=="object"){kuh.allowed=0;$.get("/public/extern/reddot.php",{object_id:kuh.oid,version_id:kuh.vid},function(content){$("#editlink").html(content);kuh.allowed=1;});}};jQuery(document).ready(function(){RPO.setUserName();RPO.displayTime("headdate");RPO.reddot();window.setTimeout(function(){RPO.eilmeldung();},10000);});function bmDo(was,oid){var sburl=encodeURIComponent(location.href);var sbtitle=encodeURIComponent(document.title.replace(/\| RP ONLINE/g,""));var sbbody=encodeURIComponent(document.getElementsByTagName("meta")["description"].content);switch(was){case"delicious":window.open("http://del.icio.us/post?url="+sburl+"&title="+sbtitle);break;case"wong":window.open("http://www.mister-wong.de/?action=addurl&bm_url="+sburl+"&bm_description="+sbtitle);break;case"yigg":window.open("http://yigg.de/neu?exturl="+sburl+"&exttitle="+sbtitle+"&extdesc="+sbbody);break;case"folkd":window.open("http://www.folkd.com/submit/page/"+sburl);break;case"linkarena":window.open("http://linkarena.com/bookmarks/addlink/?url="+sburl+"&title="+sbtitle+"&desc="+sbbody+"&tags=");break;case"blinkList":window.open("http://www.blinklist.com/?Action=Blink/addblink.php&Description=&Url="+sburl+"&Title="+sbtitle);break;case"yahoo":window.open("http://myweb2.search.yahoo.com/myresults/bookmarklet?u="+sburl+"&t="+sbtitle);break;case"digg":window.open("http://digg.com/submit?phase=2&url="+sburl+"&title="+sbtitle+"&bodytext="+sbbody);break;case"furl":window.open("http://www.furl.net/storeIt.jsp?u="+sburl+"&t="+sbtitle);break;case"taggle":window.open("http://taggle.de/addLinkDetails?mAddress="+sburl+"&title="+sbtitle+"&submitted=Weiter");break;case"google":window.open("http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+sburl+"&title="+sbtitle);break;case"webnews":window.open("http://www.webnews.de/einstellen?url="+sburl+"&title="+sbtitle);break;case"shortnews":window.open("http://www.shortnews.de/submitsource.cfm?source="+sburl);break;case"twitter":window.open("http://twitter.com/home?status=RP%20ONLINE%3A%20"+sbtitle+"%20"+encodeURIComponent("http://"+location.hostname)+"/"+oid);break;case"newsider":window.open("http://www.newsider.de/submit/?url="+sburl+"&title="+sbtitle);break;case"facebook":window.open("http://de.facebook.com/sharer.php?u="+sburl+"&t="+sbtitle);break;case"wikio":window.open("http://www.wikio.de/vote?url="+sburl);break;case"studivz":window.open("http://www.studivz.net/Suggest/Selection/?u="+sburl+"&desc="+sbbody+"&prov=www.rp-online.de");break;}}