/* wime/wime.js */
var wimeSeoScanner={errors:[],infos:[],images:null,headlines:null,links:null,scanHeadlines:function(){var d=$$("H1");var c=$$("H2");var b=$$("H3");var a=$$("H4");hlstatus={};if(d){hlstatus.h1=d.length}if(c){hlstatus.h2=c.length}if(b){hlstatus.h3=b.length}if(a){hlstatus.h4=a.length}this.headlines=hlstatus},scanImages:function(c){var a=$$("IMG");var d=0;var b=0;if(a){a.each(function(e){alt=e.getAttribute("alt");xtitle=e.getAttribute("title");if(alt&&xtitle&&alt.substr(0,6)=="SKIP::"&&xtitle.substr(0,6)=="SKIP::"){d++;if(c){e.setStyle({border:"2px solid lime"})}}else{b++;if(c){e.setStyle({border:"2px solid red"})}}})}this.images={failed:b,passed:d};return false},scanLinks:function(c){var b=$$("A");var d=0;var a=0;if(b){b.each(function(e){href=e.getAttribute("href");if(href&&href.indexOf(".html")!=-1){xtitle=e.getAttribute("title");if(xtitle&&xtitle.substr(0,6)=="SKIP::"){d++;if(c){e.setStyle({border:"2px solid lime"})}}else{a++;if(c){e.setStyle({border:"2px solid red"})}}}})}this.links={passed:d,failed:a}},scanMetaTags:function(){var a=[{name:"keywords",maxlen:150},{name:"title",maxlen:70},{name:"description",maxlen:150},{name:"copyright",maxlen:70},{name:"language",maxlen:25}];$(a).each(function(c){var b=$$("META[name="+c.name+"]");if(!b||b.length==0){wimeSeoScanner.errors.push('Required META tag of type: "'+c.name+'" missing.')}else{b=b[0];if(b.getAttribute("content").length>c.maxlen){wimeSeoScanner.errors.push('META tag of type: "'+c.name+'" exceeds '+c.maxlen+" chars limitation.")}}})},seoScanPage:function(){if($("wimeModeSelector")){this.scanHeadlines();this.scanImages(false);this.scanLinks();this.scanMetaTags();this.echoMessages()}},echoMessages:function(){var a=$("seoToolbarImagesPassed");if(a){a.innerHTML=this.images.passed}var a=$("seoToolbarImagesFailed");if(a){a.innerHTML=this.images.failed}var a=$("seoImagesStatus");if(a){if(this.images.failed==0){a.src="/images/seoToolbar/accept-16x16.png"}else{a.src="/images/seoToolbar/warning-16x16.png"}}var a=$("seoToolbarH1");var b=$("seoH1Status");if(a){a.innerHTML=this.headlines.h1;if(this.headlines.h1!=1){a.setStyle({fontWeight:"bold",color:"red"});if(b){b.src="/images/seoToolbar/warning-16x16.png"}}else{a.setStyle({color:"blue"});if(b){b.src="/images/seoToolbar/accept-16x16.png"}}}var a=$("seoToolbarH2");var b=$("seoH2Status");if(a){a.innerHTML=this.headlines.h2;if(this.headlines.h2>1){a.setStyle({fontWeight:"bold",color:"red"});if(b){b.src="/images/seoToolbar/warning-16x16.png"}}else{a.setStyle({color:"blue"});if(b){b.src="/images/seoToolbar/accept-16x16.png"}}}var a=$("seoToolbarH3");var b=$("seoH3Status");if(a){a.innerHTML=this.headlines.h3;a.setStyle({color:"blue"});if(b){b.src="/images/seoToolbar/accept-16x16.png"}}var a=$("seoToolbarH4");var b=$("seoH4Status");if(a){a.innerHTML=this.headlines.h4;a.setStyle({color:"blue"});if(b){b.src="/images/seoToolbar/accept-16x16.png"}}var a=$("seoToolbarLinksPassed");if(a){a.innerHTML=this.links.passed}var a=$("seoToolbarLinksFailed");if(a){a.innerHTML=this.links.failed}var a=$("seoLinksStatus");if(a){if(this.links.failed==0){a.src="/images/seoToolbar/accept-16x16.png"}else{a.src="/images/seoToolbar/warning-16x16.png"}}}};var wimeSeriesHeader={toggleLayer:function(b){var a=$("seriesLayer");b=$(b);b.blur();if(a){if(a.visible()){a.hide();if(b){b.removeClassName("close");b.addClassName("open")}}else{a.show();if(b){b.addClassName("close");b.removeClassName("open")}}}return false}};function ftdAudioDispatcher(a,d,c){var b=null;if(d){b=$(d)}if(a=="play"){wimeAudio.asPlay(b)}}var wimeArticle={replaceIfExists:function(c,a){var b=$(c);if(b){b.replace(a)}},removeIfExists:function(b){var a=$(b);if(a){a.remove()}},gotoSection:function(c){var b=$$("A[name=section"+c+"]");if(b&&b[0]){var a=b[0].id.substring(0,b[0].id.length-8);wimePage.expandSet(b[0],a)}}};var wimeAudio={current:null,asPlay:function(b){if(b&&b.id){var a=(wimeAudio.current&&wimeAudio.current.id&&wimeAudio.current.id!=b.id)?wimeAudio.current.id:null;wimeAudio.current=b;if(a){wimeAudio.stopAPlayer(a)}}},stopAPlayer:function(b){var a=$(b);if(a){a.jsStop()}return false},startAPlayer:function(b){var a=$(b);if(a){a.jsStart()}return false}};var wimeLayer={focusElement:null,open:function(j,y,k,u,s,q,o,g,x){var z,n;if(y){y=$(y);if(!x){y.blur()}z=y.getDimensions();n=y.viewportOffset()}else{z={width:100,height:100};n={left:100,top:100}}this.focusElement=y;var b=$("yLayer");if(!b){return}var h=$("yContent");var m=$("yTab");var c=$("yShade");if(h){if(!g){g="#F2F0F1"}h.setStyle({backgroundColor:g})}h.style.padding=q+"px";h.innerHTML="";b.show();if(u){h.style.width=u+"px"}else{h.style.width="auto"}if(s){h.style.height=s+"px"}else{h.style.height="auto"}if(k!="tab"){m.hide();c.style.marginTop=0}if(k!="last"){if(y){var t=Position.realOffset(y);var a={x:t[0],y:t[1]}}else{var a=this.getScrollOffset()}var f,r;if(k=="tab"){m.style.marginLeft="5px";m.show();var l=y.cloneNode(true);l.setAttribute("onclick","return false;");l.setAttribute("id","");m.replaceChild(l,m.firstChild);f=n.left+a.x-9;r=n.top+a.y-2;var A=m.getDimensions();c.style.marginTop=(A.height-1)+"px"}else{if(k=="under"){f=(n.left+a.x-1);r=(n.top+a.y+z.height)}else{if(k=="next"){f=(n.left+a.x+z.width+1);r=(n.top+a.y-10)}else{if(k=="M-COL"){f=449;r=n.top+a.y}else{f=parseInt(k);r=n.top+a.y}}}}if(r<a.y+10){r=a.y+10}if(f+u>784){f=784-u}b.style.left=f+"px";b.style.top=r+"px"}var p="";if(Object.isHash(j)){p=j.get("ivw");headline=j.get("headline");j=j.get("url");if((headline!==undefined)&&(headline!=="")){j=j+"/headline/"+encodeURIComponent(headline)}}if(!o){h.innerHTML='<span style="white-space: nowrap">Bitte warten...</span>';wimeAjax.updater(h,j)}else{var w=$(j);if(j){h.innerHTML=w.innerHTML}}if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("layer");if(p.empty()){trackingManager.count("layer")}else{trackingManager.count("layer",p)}}}return false},close:function(a){$("yTab").hide();$("yShade").style.marginTop=0;$("yLayer").hide();if(a){a()}return false},realign:function(e){var a=$("yLayer");var b=$("yContent");if(a){if(document&&document.viewport){var f=document.viewport.getDimensions();var c=b.getDimensions();var d=document.viewport.getScrollOffsets();a.setStyle({left:(0.5*(f.width-c.width)+d.left)+"px",top:(0.5*(f.height-c.height)+d.top)+"px"})}}},resize:function(c){var a=$("yLayer");var b=$("yContent");if(a){a.style.width=c+"px"}if(b){b.style.width=(c-20)+"px"}},getScrollOffset:function(){var b=document.documentElement.scrollLeft;if(!b){b=document.pageXOffset;if(!b){b=0}}var a=document.documentElement.scrollTop;if(!a){a=document.pageYOffset;if(!a){a=0}}return{x:b,y:a}}};var wimeTip={timeOut:null,element:null,open:function(d,b){this.element=d;var a=$("yTip");if(a){var c=$("yTipContent");c.innerHTML=b;wimeTip.timeOut=window.setTimeout("$('yTip').show();",50);Event.observe(d,"mouseout",wimeTip.out);Event.observe(d,"mousemove",wimeTip.move)}},out:function(b){window.clearTimeout(wimeTip.timeOut);Event.stopObserving(wimeTip.element,"mousemove",wimeTip.move);var a=$("yTip");if(a){a.hide()}},move:function(d){d=(d)?d:((window.event)?window.event:null);if(d){var c=$("yTip");if(c){var b=Position.realOffset(c);var a={x:b[0],y:b[1]};c.style.top=(d.clientY+a.y+20)+"px";c.style.left=(d.clientX+a.x+10)+"px"}}}};var wimeForm={allCB:function(c,d){if(c.checked){var a=c.id.split("-");a.pop();a=a.join("-")+"-";for(var e=0;e<=d;e++){var b=a+e;$(b).checked=false}}},hideCB:function(b){var a=b.id.split("-");a.pop();a=a.join("-")+"-All";$(a).checked=false},getCheckedRadio:function(b){var a=$A(document.getElementsByName(b));var b=0;a.each(function(c){if(c.checked){b=c.value}});return b}};var wimeFontResizer={setScale:function(a,b){a=$(a);smallIcon=a.getElementsBySelector("A.smallFont");if(smallIcon){smallIcon=smallIcon[0];smallIcon.removeClassName("activeSize")}mediumIcon=a.getElementsBySelector("A.mediumFont");if(mediumIcon){mediumIcon=mediumIcon[0];mediumIcon.removeClassName("activeSize")}largeIcon=a.getElementsBySelector("A.largeFont");if(largeIcon){largeIcon=largeIcon[0];largeIcon.removeClassName("activeSize")}if(a){if(b==0){a.addClassName("smallFont");a.removeClassName("largeFont");if(smallIcon){smallIcon.addClassName("activeSize")}}else{if(b==1){a.removeClassName("smallFont");a.removeClassName("largeFont");if(mediumIcon){mediumIcon.addClassName("activeSize")}}else{if(b==2){a.removeClassName("smallFont");a.addClassName("largeFont");if(largeIcon){largeIcon.addClassName("activeSize")}}}}}}};var wimeMarquee={timer:null,ticker:null,body:null,active:false,canvasWidth:false,startTicker:function(c){wimeMarquee.ticker=$(c);wimeMarquee.body=$("wimeMarqueeBody");if(wimeMarquee.ticker.parentNode&&wimeMarquee.ticker.parentNode.parentNode){wimeMarquee.canvasWidth=parseInt(wimeMarquee.ticker.parentNode.parentNode.style.width);wimeMarquee.ticker.style.left="0px"}var a=wimeMarquee.body.getDimensions().width;var b=wimeMarquee.ticker.getDimensions().width;if(b>a){Event.observe(wimeMarquee.ticker,"mouseover",function(){wimeMarquee.stopTicker()});Event.observe(wimeMarquee.ticker,"mouseout",function(){wimeMarquee.resumeTicker()});window.setTimeout("wimeMarquee.resumeTicker()",3000)}},stopTicker:function(){if(window&&wimeMarquee.timer){window.clearInterval(wimeMarquee.timer);wimeMarquee.active=false}},resumeTicker:function(){if(window&&wimeMarquee.ticker&&!wimeMarquee.active){wimeMarquee.timer=window.setInterval("wimeMarquee.step()",20);wimeMarquee.active=true}},step:function(){if(wimeMarquee.ticker){var a=parseInt(wimeMarquee.ticker.style.left)-1;wimeMarquee.ticker.style.left=a+"px";if((parseInt(wimeMarquee.ticker.offsetWidth)+parseInt(wimeMarquee.ticker.style.left))<0){wimeMarquee.stopTicker();wimeMarquee.startTicker(wimeMarquee.ticker)}}}};var wimeRelatedBox={getArea:function(c,b,a){return $("tab-"+c+"-"+b+"-"+a)},getTab:function(c,b,a){return $("navli-"+c+"-"+b+"-"+a)},getTabLink:function(c,b,a){return $("nava-"+c+"-"+b+"-"+a)},getTabImage:function(c,b,a){return $("tabdiv-"+c+"-"+b+"-"+a)},activateTab:function(n,l,h){var g=0;var e=this.getArea(n,l,g);while(e){var f=this.getTab(n,l,g);var m=this.getTabLink(n,l,g);var d=this.getTabImage(n,l,g);e.hide();f.className="";m.className="";d.hide();g++;e=this.getArea(n,l,g)}var j=this.getArea(n,l,h);var b=this.getTab(n,l,h);var a=this.getTabLink(n,l,h);var k=this.getTabImage(n,l,h);j.show();k.show();b.className="active";a.className="active";if((h+1)<g){var c=this.getTab(n,l,parseInt(h)+1);c.className="roactive"}}};var wimeSession={session:false,doLogin:function(){this.initSession();this.showPersonalData()},doLogout:function(){this.initSession();this.showPersonalData()},initSession:function(){this.session=false;var b=wimeUserData.parseCookie(document.cookie,wimeJsConfig.session,false);if(b){var a=b.split("|");if(a.length==7&&a[0]>0){this.session={n:a[2],c:parseInt(a[3]),f:a[4],l:a[5],a:a[6]==true}}}if(!this.session){wimeMy.doAutologin()}},showPersonalData:function(){var a=$("wimeBody");var c=$("userStateUnknown");if(c){c.hide()}if(this.session){if($("userName")){$("userLoggedIn").show();$("userLoggedOut").hide();var d=decodeURIComponent(this.session.f+" "+this.session.l);$("userName").innerHTML=d.length>25?d.substr(0,22)+"...":d}if($("userClipsA")&&$("userClips")){$("userClipsA").show();$("userClips").innerHTML=this.session.c}if($("userClipsAFooter")&&$("userClipsFooter")){$("userClipsAFooter").show();$("userClipsFooter").innerHTML=this.session.c}if(a){a.removeClassName("ISGUEST").addClassName("ISLOGIN")}}else{if($("userName")){$("userLoggedIn").hide();$("userLoggedOut").show()}var b=wimeUserData.getIds("C");if($("userClipsA")&&$("userClips")){$("userClipsA").show();$("userClips").innerHTML=b.size()}if($("userClipsAFooter")&&$("userClipsFooter")){$("userClipsAFooter").show();$("userClipsFooter").innerHTML=b.size()}if(a){a.removeClassName("ISLOGIN").addClassName("ISGUEST")}}}};var wimeWeather={displayRecord:function(d){var f=weatherData[d];var e=$("weatherDisplayFrame");var c="";var a=0;for(var b in f){if(a%2==0){c+="<tr>"}c+="<td>";c+='<p class="date">'+b+"</p>";c+='<p><img src="/images/weather/icons/'+f[b]["img_cond"]+'" title="'+f[b]["cond"]+'" alt="'+f[b]["cond"]+'" width="17" height="17" />';c+=f[b]["temp"]+"°C</p>";c+='<p><img src="/images/weather/icons/'+f[b]["img_night"]+'" alt="" width="17" height="17" />';c+=f[b]["temp_min"]+"°C</p>";c+='<p><img src="/images/weather/icons/'+f[b]["img_rain"]+'" alt="" width="17" height="17" />';c+=f[b]["rain"]+"%</p>";c+="</td>";if(a!=0&&a%2!=0){c+="</tr>"}a++}if(e){e.innerHTML='<table class="weather"><tbody id="weatherDisplay">'+c+"</tbody></table>"}}};var wimePage={unclipUrl:null,pollShow:function(d){var b=$(d);var a=b.select("DIV.pollOpt");a.invoke("hide");var a=b.select("DIV.pollView");a.invoke("show");if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("update");trackingManager.count("update")}}return false},expand:function(d,b){d.blur();d=$(d);var f=$(b);var g=f.style.display;if(g=="none"){f.show();this.togCssClass(d,"close","open");this.loadImages(f);if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("expand");trackingManager.count("expand")}}}else{f.hide();this.togCssClass(d,"open","close");if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("collapse");trackingManager.count("collapse")}}}return false},expandTeaserSet:function(l,h){if(l.tagName=="A"){l.blur()}var e=h.split("-");e.pop();e=e.join("-");var j=$(h);var m=j.visible();l=$(l);var f=(l.hasClassName("blank")||l.hasClassName("play"));var n=$$("DIV[id^=Box"+e.substr(3)+"]");if(j){if(n[0]){var b=n[0].select("A.close","A.blank");if(b){b.each(function(a){wimePage.togCssClassProto(a,"open","close");wimePage.togCssClassProto(a,"play","blank")})}var d=j.tagName+"[id^="+e+"]";var k=$$(d);if(k){k.invoke("hide")}var c=n[0].select("P.HIGHLIGHT_COLLAPSED");if(c){c.invoke("show")}}if(m){j.hide();if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("collapse");trackingManager.count("collapse")}}}else{j.show();this.loadImages(j);if(f){this.togCssClassProto(l,"blank","play");var o=j.getElementsBySelector("OBJECT");if(o&&o[0]){wimeAudio.startAPlayer.delay(1,o[0].getAttribute("id"))}}else{this.togCssClassProto(l,"close","open")}if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("expand");trackingManager.count("expand")}}var g=$("HL"+h);if(g){g.hide()}}}return false},expandAudio:function(d,b){d.blur();d=$(d);var f=$(b);var g=f.style.display;if(g=="none"){f.show();this.togCssClass(d,"blank","play");if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("expand");trackingManager.count("expand")}}}else{this.togCssClass(d,"play","blank");f.hide();if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("collapse");trackingManager.count("collapse")}}}return false},expandMy:function(d,l,k,g,b){var j=$(d);var f=$(d+"-"+k);var h=$("P"+l+"-"+k);if(j.style.display=="none"){j.show();this.dhtmlPanel(f,l,k,false,b,"expand")}else{if(g||h.style.display!="none"){j.hide();this.dhtmlPanel(f,l,k,true,false,"collapse")}else{this.dhtmlPanel(f,l,k,false,b,"update")}}return false},tabChart:function(f,b){f=$(f);f.blur();var e=$(f.parentNode);var h=$(e.parentNode.parentNode);var g=h.select("LI");g.each(function(a){wimePage.togCssClass(a,"","active");wimePage.togCssClass(a,"","roactive")});wimePage.togCssClass(e,"active","");var c=e.nextSiblings();if(c.length){c=$(c[0]);wimePage.togCssClass(c,"roactive","")}var g=h.select("IMG");g.each(function(a){a.src=a.src.replace(/&TIME_SPAN=../g,"&TIME_SPAN="+b);a.longDesc=a.src});if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("panel");trackingManager.count("panel")}}return false},expandWeatherTable:function(c){var a=$$("TBODY[id^=weatherTeaser-SCOL]");if(a){a.each(function(d){d.hide()})}var b=$("weatherTeaser-SCOL-"+c);if(b){b.show();if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("expand");trackingManager.count("expand")}}}},expandSet:function(c,b){c.blur();var g=$(b);var f=$(g.parentNode).firstChild;do{if(f.tagName=="DIV"&&$(f.id.split("-")).indexOf("expandable")>-1){var d=$(f.id+"-trigger");if(d){if(d.id==c.id){if(c.className=="icon close"){c.className="icon open";f.className="closed"}else{c.className="icon close";f.className="opened"}}else{d.className="icon open";f.className="closed"}}}}while(f=f.nextSibling);if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent("expand");trackingManager.count("expand")}}return false},togCssClass:function(g,f,c){g=$(g);var b=g.className.split(" ");var a=false;var d=[];b.each(function(e){if(e==f){a=true}if(e!=c){d.push(e)}});if(!a){d.push(f)}g.className=d.join(" ")},togCssClassProto:function(a,c,b){a=$(a);if(a.hasClassName(b)){a.removeClassName(b);a.addClassName(c)}},loadImages:function(b){var a=b.select("IMG");a.each(function(c){if(c.longDesc){c.src=c.longDesc}})},hideVotedPolls:function(){var a=wimeUserData.getIds("P");var b=$("wimePage");a.each(function(d){var c=b.select("DIV.pollOpt-"+d);c.invoke("hide");var c=b.select("DIV.pollView-"+d);c.invoke("show")})},hideRatedAssets:function(){var a=$$("DIV.ratingOpt");if(a&&a[0]){var b=wimeUserData.getIds("R");a.each(function(d){var e=d.id.split("-");e=e[1];if(b.indexOf(e)!=-1){var c=$("ratingView-"+e);d.hide();$("ratingView-"+e).show()}})}},clip:function(h,b,d){h.blur();var k=30;var g=200;wimeLayer.close();if(!d){return false}if(wimeSession.session){var f=function(e){var c=e.responseText;if(c=="OK"){wimeSession.initSession();wimeSession.showPersonalData();Ajax.activeRequestCount=0;wimePage.reloadMyClips();if(wimeSession.session.c>=g){if(!wimeUserData.get("hw1")){wimeLayer.open("/static/successAjaxDialogue.php?msg=MSG_CLIP_USER_200",h,"next",200,null,9)}}wimePage.togCssClass(h,"clipped","clip")}else{if(c=="ERROR_HAS"){wimeLayer.open("/static/errAjaxDialogue.php?msg=MSG_CLIP_USER_HAS",h,"next",200,null,9);wimePage.togCssClass(h,"clipped","clip")}else{wimeLayer.open("/static/errAjaxDialogue.php",h,"next",200,null,9)}}};wimeAjax.custom(f,b+"?id="+d)}else{var l=wimeUserData.addId("C",d,k,false);var a=wimeUserData.getIds("C");var j=a.length;if(l){wimeSession.showPersonalData();this.reloadMyClips();if(j==1){wimeLayer.open("/static/successAjaxDialogue.php?msg=MSG_CLIP_FIRST",h,"next",200,null,9)}else{if(j>=k){wimeLayer.open("/static/successAjaxDialogue.php?msg=MSG_CLIP_30",h,"next",200,null,9)}}wimePage.togCssClass(h,"clipped","clip")}else{if(j>=k){wimeLayer.open("/static/successAjaxDialogue.php?msg=MSG_CLIP_30",h,"next",200,null,9)}else{wimeLayer.open("/static/errAjaxDialogue.php?msg=MSG_CLIP_HAS",h,"next",200,null,9);wimePage.togCssClass(h,"clipped","clip")}}}return false},unclip:function(g,e,d){if(g){d.blur();wimeLayer.close();wimePage.unclipUrl=e}var j=$("MyClipsForm");if(j){var l=j.select("INPUT.checkbox");var h=[];l.each(function(a){if(a.checked){h.push(a.value)}});if(h.length){if(g){wimeLayer.open("/static/successAjaxDialogue.php?msg=MSG_UNCLIP&a="+h.length,d,"next",200,null,9)}else{if(wimeSession.session){wimeUserData.removeIds("C",h);var b=function(c){var a=c.responseText;if(a=="OK"){wimeSession.initSession();wimeSession.showPersonalData();Ajax.activeRequestCount=0;wimePage.reloadMyClips()}};wimeAjax.custom(b,wimePage.unclipUrl+"?ids="+h.join(","))}else{var k=wimeUserData.removeIds("C",h);if(k){wimeSession.showPersonalData();wimePage.reloadMyClips()}}}}}return false},reloadMyClips:function(){if($("BoxMyClips")&&typeof cbMyClips!="undefined"&&$("BoxMyClips").visible()){cbMyClips()}},poll:function(b){var a=wimeUserData.addId("P",b,50,true);return false},rate:function(b){var a=wimeUserData.addId("R",b,50,true);return false},refreshTopRatingDisplay:function(d,a,e){var b=$("ratingCountDisplay-"+d);var c=$("ratingAverageDisplay-"+d);if(b){b.innerHTML=a+" Bewertungen"}if(c){c.className="stars stars-"+e}},tickerPager:function(k,a){var g=$("P"+k);var d=$("E"+k);var j=$("N"+k);var b=d.select("LI");var c=0,h=0;if(a=="P"){b.reverse()}b.each(function(e){var f=e.style.display;if(c==0&&f!="none"){e.hide();if(a=="N"){g.show()}else{j.show()}c++}else{if(c==1&&f=="none"){e.show();c++}else{if(c==2&&f=="none"){h=1}}}});if(!h){if(a=="P"){g.hide()}else{j.hide()}}return false},dhtmlPanel:function(l,k,e,o,f,b){l=$(l);l.blur();var m=$(l.parentNode);var d=$(m.parentNode);var g=d.select("LI");g.each(function(a){wimePage.togCssClass(a,"","active")});var j=$("P"+k).childElements();j.invoke("hide");if(!o){wimePage.togCssClass(m,"active","");$("P"+k+"-"+e).show();if(f){f()}}if(!b){b="panel"}if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEvent(b);trackingManager.count(b)}}return false},toggleActive:function(b){var d=$(b.parentNode);if(d.tagName=="LI"){d=$(d.parentNode)}var c=d.select("A");c.each(function(a){wimePage.togCssClass(a,"","active")});wimePage.togCssClass(b,"active","")},normalizeBar:function(){if($("wimeUpper")){var b=$("wimeUpper").select("DIV.boxBarLeft");var a=0;b.each(function(d){var c=d.getHeight();if(c>a){a=c}});b.each(function(c){c.setStyle("height:"+a+"px")})}},activateBackgroundImageCacheForIe:function(){if(Prototype.Browser.IE){document.execCommand("BackgroundImageCache",false,true)}},adjustNavBarForIe:function(){if(Prototype.Browser.IE){$$("li.top-entry[id^=flyout_button]").invoke("observe","mouseover",function(b){var c=$(this).id.match(/([0-9]*)$/)[0];var a=$("flyout"+c);if(a){a.setStyle({display:"block"})}$(this).className="top-entry-hover"});$$("li.top-entry[id^=flyout_button]").invoke("observe","mouseout",function(b){var c=$(this).id.match(/([0-9]*)$/)[0];var a=$("flyout"+c);if(a){a.setStyle({display:"none"})}$(this).className="top-entry"})}},initAlarm:function(){var a=$("wimeGlobalAlarm");if(a&&typeof wimeJsConfig.alarmUrl!="undefined"){a.onclick=function(){wimeLayer.open(wimeJsConfig.alarmUrl,a,"M-COL",316,0,9);return false}}}};var wimeAjax={spinnerResponder:false,teaser:function(a,d,b){if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){wimeAds.Events.fireEventViaQuery(b)}}return this.replacer(d,a+b)},image:function(a,b){if(trackingManager){trackingManager.count(a)}return this.replacer(b,a)},updateWhoIsWho:function(a,d,b,e){d=$(d);if(d){var c=$F(d);return this.teaser(a,b,"?assetId="+c+e)}},form:function(a,b,e,d){b=$(b);return this.teaser(a,e,d+"&"+b.serialize())},pollSave:function(a,d,h,g,e){g=""+g;d=$(d);var b=wimeUserData.getIds("P");if(b.indexOf(g)>-1){wimeLayer.open("/static/errAjaxDialogue.php?msg=MSG_CLIP_HAS_VOTED",d,"next",200,null,9);return false}if(trackingManager){trackingManager.count("poll,"+g)}e=a+"?id="+g+"&"+e;return this.replacer(h,e+"&"+d.serialize())},sendMail:function(d,h,g,e,b){e=$(e);return this.custom(function(a){$(h).update(a.responseText)},d+"?id="+b+"&p="+g,"post",e.serialize(true))},addComment:function(c,a,g){var f=$("comment-body");var b=$("comment-subject");var d=$("comment-author");var h=$("comment-mail");var e={assetId:g};if(f){e.commentBody=f.value}if(b){e.commentSubject=b.value}if(d){e.author=d.value}if(h){e.mailAddress=h.value}return this.replacer(a,c,"post",e)},ratingSave:function(d,h,b,f,e){var g=d+"?id="+b+"&r="+f+"&t="+e;return this.replacer(h,g)},spinner:function(){if(!wimeAjax.spinnerResponder){Ajax.Responders.register({onCreate:function(){$("spinner").show();Event.observe(document,"mousemove",wimeAjax.spinnerMove)},onComplete:function(){if(Ajax.activeRequestCount<1){Ajax.activeRequestCount=0;$("spinner").hide();Event.stopObserving(document,"mousemove",wimeAjax.spinnerMove)}}});wimeAjax.spinnerResponder=true}},spinnerMove:function(c){c=(c)?c:((window.event)?window.event:null);if(c){var b=$("spinner");var a=wimeLayer.getScrollOffset();b.style.top=(c.clientY+a.y+20)+"px";b.style.left=(c.clientX+a.x+10)+"px"}},replacer:function(e,b,d,a){if(!d){d="get"}if(Ajax.activeRequestCount>1){return false}this.spinner();new Ajax.Updater({success:e},b,{method:d,insertion:Element.replace,evalScripts:true,on500:wimeAjax.showError,onComplete:wimeAjax.afterAjax,parameters:a});return false},updater:function(e,b,d,a){if(!d){d="get"}if(Ajax.activeRequestCount>1){return false}this.spinner();new Ajax.Updater({success:e},b,{method:d,evalScripts:true,on500:wimeAjax.showError,onComplete:wimeAjax.afterAjax,parameters:a});return false},custom:function(a,c,d,b){if(!d){d="get"}if(Ajax.activeRequestCount>1){return false}this.spinner();new Ajax.Request(c,{onSuccess:a,method:d,on500:wimeAjax.showError,parameters:b});return false},delayedGoto:function(c){var b=$(c);if(b&&b.parentNode){var a=b.parentNode;if(a.className=="wimeColL"){window.location=window.location.hash="#"+c}}},afterAjax:function(a){wimePage.hideRatedAssets();wimePage.hideVotedPolls();wimeSession.showPersonalData();var b=a.responseText.match(/Box\d*-\d*-\d*-\d*/);if(b){window.setTimeout("wimeAjax.delayedGoto('"+b+"')",100)}wimeLayout.equalizeColumnsApprox()},showError:function(a){var d=(a.request.container.success)?a.request.container.success:null;var b=a.responseText;if(b.length>128){b=""}wimeLayer.open("/static/errAjaxDialogue.php?msg="+encodeURIComponent(b),d,"next",200,null,9)}};var wimeMM={timeOutDiv:false,timeOutClass:null,timeOut:null,out:function(a){window.clearTimeout(wimeMM.timeOut)},show:function(d,f,b){Event.observe(b,"mouseout",wimeMM.out);wimeMM.timeOutDiv=$(d);wimeMM.timeOutClass=f;wimeMM.timeOut=window.setTimeout(wimeMM.showDelayed,200)},showDelayed:function(){window.clearTimeout(wimeMM.timeOut);var f=wimeMM.timeOutDiv;var d=$(f.parentNode);var c=d.select("DIV."+wimeMM.timeOutClass);c.invoke("hide");f.show();var a=f.select("DIV.boxMMRgtLow");var b=$("MyClippedVideos");a.each(function(e){e.appendChild(b)});wimePage.loadImages(f)},toggleMyClippedVideos:function(c,f,b){c.blur();f=$(f);var e=$("BoxMyClips");var d=f.select("DIV.MyClippedVideosUpper");var g=f.select("DIV.boxMMRgtLow");if(e.visible()){wimePage.togCssClass(c,"openN","closeN");e.hide();d.invoke("show");g.each(function(a){a.style.position="absolute"})}else{wimePage.togCssClass(c,"closeN","openN");e.show();d.invoke("hide");g.each(function(a){a.style.position="static"});b()}return false}};var wimeBar={timeOutDiv:null,timeOutA:null,timeOutClass:null,timeOut:null,timeOutModId:null,icons:{},active:{},out:function(a){window.clearTimeout(wimeBar.timeOut)},show:function(d,b,g,f,e){Event.observe(d,"mouseout",wimeBar.out);wimeBar.timeOutDiv=$(b);wimeBar.timeOutClass=g;wimeBar.timeOutA=$(d);wimeBar.timeOutModId=f;wimeBar.timeOut=window.setTimeout(wimeBar.showDelayed,200)},showDelayed:function(){window.clearTimeout(wimeBar.timeOut);wimePage.toggleActive(wimeBar.timeOutA);var d=wimeBar.timeOutDiv;var f=wimeBar.timeOutClass;var b=$(d.parentNode);var a=b.select("DIV."+f);a.invoke("hide");d.show();wimePage.loadImages(d);for(a=0;a<wimeBar.icons[wimeBar.timeOutModId].length;a++){if($(wimeBar.icons[wimeBar.timeOutModId][a].link)==wimeBar.timeOutA){wimeBar.active[wimeBar.timeOutModId]=a}}},page:function(b,k,d){wimeBar.active[k]+=b;if(wimeBar.active[k]<0){wimeBar.active[k]+=wimeBar.icons[k].length}if(wimeBar.active[k]>=wimeBar.icons[k].length){wimeBar.active[k]-=wimeBar.icons[k].length}var h=$(wimeBar.icons[k][wimeBar.active[k]].expand);var j=wimeBar.icons[k][wimeBar.active[k]].expClass;var a=$(wimeBar.icons[k][wimeBar.active[k]].link);wimePage.toggleActive(a);var g=$(h.parentNode);var b=g.select("DIV."+j);b.invoke("hide");h.show();wimePage.loadImages(h);if(d){trackingManager.count("B-Col,"+d+",paginate");if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wimeAds.Events!="undefined"){var f="paging";if(f&&wimeAds.Events.isActive(f)){wimeAds.Exchanger.exchange()}}}}}};var wimeUserData={data:{},loaded:false,get:function(a){this.load();if(this.data[a]!=undefined){return this.data[a]}return""},set:function(b,a){this.load();this.data[b]=a;this.save()},getIds:function(a){var b=this.get(a);if(!b){return[]}return b.split("+")},removeIds:function(b,a){var c=this.getIds(b);if(c){a.each(function(e){e=""+e;var d=c.indexOf(e);if(d!=-1){c=c.without(e)}});this.set(b,c.join("+"));return true}return false},addId:function(b,g,a,c){g=""+g;var e=this.getIds(b);var f=e.indexOf(g);if(f==-1){var d=e.size();if(d>=a){if(!c){return false}e=e.slice(d-a+1)}e.push(g);this.set(b,e.join("+"));return true}return false},load:function(){this.loaded=true;var c="";if(self.frames.wimeCookieStorage){with(self.frames.wimeCookieStorage){c=document.cookie}var v=this.parseCookie(c,wimeJsConfig.clientdata);if(v){wimeUserData.data=v.evalJSON()}}},save:function(){var b=new Date();var a=new Date(b.getTime()+86400*30000);if(navigator.cookieEnabled==false){}document.cookie=wimeJsConfig.clientdata+"="+escape(Object.toJSON(this.data))+";path=/auth-login/;expires="+a.toGMTString()+";"},clear:function(){this.data={};this.save()},parseCookie:function(h,a,f){f=Object.isUndefined(f)?true:f;var b=h.split("; ");var g=false;b.each(function(d){var c=d.split("=");if(c[0]==a){g=f?unescape(c[1]):c[1]}});return g}};var wimeLayout={isCollapsed:0,collapseWidth:1199,cookieFrameReady:false,domReady:false,allReady:false,initOnDomReady:false,autoQueue:[],onLoadCookieFrame:function(){wimeLayout.cookieFrameReady=true;if(wimeLayout.domReady){wimeLayout.initializeClient()}},onLoadDom:function(){wimeLayout.domReady=true;if(wimeLayout.cookieFrameReady){wimeLayout.initializeClient()}},onLoadAll:function(){wimeLayout.allReady=true;wimePage.normalizeBar();wimeLayout.equalizeColumnsApprox();if(typeof wimeAds!="undefined"&&wimeAds.isActive()){if(typeof wallpaper!="undefined"&&wallpaper==1){if(typeof wimeAds.Handler!="undefined"){wimeAds.Handler.initWallpaper()}}else{if(typeof wimeAds.Handler!="undefined"){wimeAds.Handler.initSuperbanner()}}if(typeof wimeAds.Exchanger!="undefined"&&wimeAds.isLoadOnDomReady()){wimeAds.Exchanger.exchange(true)}}wimePage.hideRatedAssets()},initializeClient:function(){if(!wimeLayout.initOnDomReady){wimeLayout.initOnDomReady=true;if(!wimeJsConfig.isExternal){wimeSession.initSession();wimeSession.showPersonalData();wimePage.hideVotedPolls();wimePage.initAlarm();wimeSearch.initSearchBox();wimeLayout.executeAutoQueue();wimeSeoScanner.seoScanPage()}wimePage.activateBackgroundImageCacheForIe();wimePage.adjustNavBarForIe();if(typeof pageTimer!="undefined"){pageTimer.stop("domready")}}},queueAutoCallback:function(a){wimeLayout.autoQueue.push(a)},executeAutoQueue:function(){if(wimeLayout.autoQueue&&wimeLayout.autoQueue.size()>0){wimeLayout.autoQueue.each(function(a){if(typeof(a)=="function"){a()}})}else{}},getColumn:function(b){var a=$$(".wimeCol"+b);if(a){return a[0]}else{return null}},clipContent:function(g,a){var e=false;var f=0;var d=0;var b=false;f=g.positionedOffset().top+parseInt(g.getStyle("paddingTop"));g.childElements().each(function(j){var c=(/^IF/.test(j.className))?true:false;var h=j.hasClassName("hiddenAd");if(!c&&!h){j.show()}b=(j.getDimensions().height+j.positionedOffset().top)>(f+a);if(b){}else{}if((j.getDimensions().height+j.positionedOffset().top)>(f+a)){e=true}if(e&&!c){j.hide()}})},measureRessortColumns:function(){var b=$$("DIV.wimeColR");var a=0;if(b){b.each(function(e){var c=e.getDimensions();if(c){if(c.height>a){a=c.height}}})}return a},equalizeColumnsApprox:function(){if(typeof wimeJsConfig.skipLenApprox!="undefined"&&wimeJsConfig.skipLenApprox==true){return}var e=wimeLayout.getColumn("XL");var d=wimeLayout.getColumn("L");var c=wimeLayout.getColumn("M");var f=wimeLayout.getColumn("S");var b=$$("DIV.wimeBar");if(b){b=b[0]}else{b=null}if(d&&c){wimeLayout.clipContent(c,d.getDimensions().height)}if(d&&f&&!wimeLayout.isCollapsed){if(!b){wimeLayout.clipContent(f,d.getDimensions().height+(d.cumulativeOffset().top-f.cumulativeOffset().top))}else{wimeLayout.clipContent(f,b.getDimensions().height+(b.cumulativeOffset().top-f.cumulativeOffset().top))}}else{if(e&&f&&!wimeLayout.isCollapsed){if(!b){wimeLayout.clipContent(f,e.getDimensions().height+(e.cumulativeOffset().top-f.cumulativeOffset().top))}else{wimeLayout.clipContent(f,b.getDimensions().height+(b.cumulativeOffset().top-f.cumulativeOffset().top))}}else{if(f&&wimeLayout.isCollapsed){var a=wimeLayout.measureRessortColumns();if(a>0){wimeLayout.clipContent(f,a)}}}}},attachExpanderEvents:function(c,b,a){Event.observe(c,"click",function(){wimeLayout.expandColumn(b)});Event.observe(c,"mouseover",function(){$(this).setStyle({borderBottom:"2px solid red"})});Event.observe(c,"mouseout",function(){$(this).setStyle({borderBottom:"2px solid "+a})})},expandColumn:function(d){var b=$("fadeout"+d);var a=$$(".wimeCol"+d);if(b){b.hide()}if(a){a=a[0];a.setStyle({height:"",overflow:""})}},getWinWidth:function(){if(typeof(window.innerWidth)=="number"){return window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){return document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){return document.body.clientWidth}else{return 0}}}},getScreenWidth:function(){return screen.availWidth},checkWinWidth:function(){var a=typeof wimeJsConfig.dynLayout!="undefined"?wimeJsConfig.dynLayout:"";var c=(typeof wimeAds!="undefined"&&a=="auto")?wimeAds.adsForceSmallLayout():false;var b="wide";if(a!="wide"&&(a=="small"||c||wimeLayout.getScreenWidth()<=wimeLayout.collapseWidth)){b="small"}if(wimeLayout.isCollapsed==1&&b=="wide"){wimeLayout.toggleLayout()}else{if(wimeLayout.isCollapsed==0&&b=="small"){wimeLayout.toggleLayout()}}},toggleLayout:function(){var a=$("wimeBody");var e=$("wimeColS");if(a&&e){if(this.isCollapsed){wimeLayout.isCollapsed=0;var c=$("wimeMain");var d=$("wimeColSmarker");c.insertBefore(e,d);e.show();wimePage.togCssClass(a,"expanded","collapsed");this.reorganizeRCol()}else{wimeLayout.isCollapsed=1;var c=$("wimeLowerAll");if(wimeLayout.hasDepartmentTeasers()){c.appendChild(e);e.show()}else{e.hide()}wimePage.togCssClass(a,"collapsed","expanded");this.reorganizeRCol()}wimeLayout.equalizeColumnsApprox();if(typeof wimeAds!="undefined"&&wimeAds.isActive()){wimeAds.adjustLocationOfWallpaper()}}},hasDepartmentTeasers:function(){var a=$$("DIV.wimeColR DIV");return(a.length>0)},reorganizeRCol:function(){return;var g=$("wimeLowerAll");var f=g.select("DIV.wimeColR");if(f.length==3){var h=f[0].childElements();var e=f[1].childElements();var d=f[2].childElements();var c=[];var j=0;if(this.isCollapsed){j=1;h.each(function(a){c[j]=a;j+=3});j=2;e.each(function(a){c[j]=a;j+=3});j=3;d.each(function(a){c[j]=a;j+=3});var b=c.length;for(j=3;j<b;j+=2){if(c[j]!=undefined&&c[j-2]!=undefined){f[0].insertBefore($(c[j]),$(c[j-2]).nextSibling)}}for(j=4;j<b;j+=2){if(c[j]!=undefined&&c[j-2]!=undefined){f[1].insertBefore($(c[j]),$(c[j-2]).nextSibling)}}}else{j=1;h.each(function(a){c[j]=a;j+=2});j=2;e.each(function(a){c[j]=a;j+=2});var b=c.length;for(j=3;j<b;j+=3){if(c[j]!=undefined){f[2].appendChild($(c[j]))}}for(j=4;j<b;j+=3){if(c[j]!=undefined&&c[j-3]!=undefined){f[0].insertBefore($(c[j]),$(c[j-3]).nextSibling)}}for(j=5;j<b;j+=3){if(c[j]!=undefined&&c[j-3]!=undefined){f[1].insertBefore($(c[j]),$(c[j-3]).nextSibling)}}}}}};document.observe("dom:loaded",wimeLayout.onLoadDom);Event.observe(window,"load",wimeLayout.onLoadAll);var wimeSocial={sbDo:function(b){var c=encodeURIComponent(window.location.protocol+"//"+(window.location.hostname+window.location.pathname).replace(/\/:.*?\//g,"/"));var d=encodeURIComponent(document.title);var a=window.location.protocol+"//"+window.location.hostname+window.location.pathname.replace(/^.*(\/\d+\.html)$/g,"$1");switch(b){case"twitter":window.open("http://www.twitter.com/home?status="+a);break;case"delicious":window.open("http://del.icio.us/post?url="+c+"&title="+d);break;case"wong":window.open("http://www.mister-wong.de/index.php?action=addurl&bm_url="+c+"&bm_description="+d);break;case"yigg":window.open("http://yigg.de/neu?exturl="+c+"&exttitle="+d);break;case"google":window.open("http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+c+"&title="+d);break;case"webnews":window.open("http://www.webnews.de/einstellen?url="+c+"&title="+d);break;case"facebook":window.open("http://www.facebook.com/sharer.php?u="+c+"&t="+d);break}return wimeLayer.close()}};var wimeCalWidget={tDate:null,tDay:null,tMonth:null,tYear:null,cDay:null,cMonth:null,cYear:null,minY:null,maxY:null,init:function(b,e){this.initToday(b,e);this.minY=this.tYear-9;this.maxY=this.tYear+1;for(var h=this.minY;h<=this.maxY;h++){var g=new Option(h,h,false,false);$("wimeYearDD").options.add(g)}var f=new Date();this.cDay=f.getDate();this.cMonth=f.getMonth();this.cYear=f.getFullYear();var c=wimeLayer.focusElement.value.split(".");var a=parseInt(c[0]);if(a>0&&a<32){this.cDay=a}a=parseInt(c[1]);if(a>0&&a<13){this.cMonth=a-1}a=parseInt(c[2]);if(a>=this.minY&&a<=this.maxY){this.cYear=a}this.renderMonth()},initToday:function(a,b){this.tDate=new Date();this.tDay=this.tDate.getDate();this.tMonth=this.tDate.getMonth();this.tYear=this.tDate.getFullYear();$("wimeCalToday").innerHTML=b[this.tDate.getDay()]+", "+this.tDay+" "+a[this.tMonth]+" "+this.tYear},renderMonth:function(){this.selectMonth();this.selectYear();var j=new Date(this.cYear,this.cMonth+1,0);var o=j.getDate();j=new Date(this.cYear,this.cMonth,1);var l=j.getDay();if(l==0){l=7}var c=document.createElement("tbody");c.id="wimeCalBody";var e=true;var k=1;while(e){var g=false;var p=document.createElement("tr");for(var b=1;b<8;b++){i="&nbsp;";if(b>=l&&k<=o){var f=(k==this.tDay&&this.cMonth==this.tMonth&&this.cYear==this.tYear)?' class="today" ':" ";if(!g){g=this.kw(new Date(this.cYear,this.cMonth,k))}i="<a"+f+'onclick="return wimeCalWidget.select('+k+')" href="#">'+k+"</a>";k++;l=0}var m=document.createElement("td");if(b>5){m.className="we"}m.innerHTML=i;p.appendChild(m);if(k>o){e=false}}var m=document.createElement("th");m.innerHTML=g;p.insertBefore(m,p.firstChild);c.appendChild(p)}$("wimeCalMonth").replaceChild(c,$("wimeCalBody"))},changeYear:function(){this.cYear=this.minY+$("wimeYearDD").selectedIndex;this.renderMonth()},selectYear:function(){$("wimeYearDD").options[this.cYear-this.minY].selected=true},changeMonth:function(){this.cMonth=$("wimeMonthDD").selectedIndex;this.renderMonth()},selectMonth:function(){$("wimeMonthDD").options[this.cMonth].selected=true},prevMonth:function(){this.cMonth-=1;if(this.cMonth<0){this.cMonth=11;this.cYear--}if(this.cYear<this.minY){return this.nextMonth()}this.renderMonth();return false},nextMonth:function(){this.cMonth+=1;if(this.cMonth>11){this.cMonth=0;this.cYear++}if(this.cYear>this.maxY){return this.prevMonth()}this.renderMonth();return false},kw:function(c){var b=this.thursday(c);var a=this.thursday(new Date(b.getFullYear(),0,4));return Math.floor(1.5+(b.getTime()-a.getTime())/86400000/7)},thursday:function(b){var a=new Date();a.setTime(b.getTime()+(3-((b.getDay()+6)%7))*86400000);return a},select:function(b){var c=new Date(this.cYear,this.cMonth,b);wimeLayer.focusElement.value=c.getDate()+"."+(c.getMonth()+1)+"."+c.getFullYear();wimeLayer.close();return false}};var ftdMP3Track={count:function(b,c,a){if(typeof trackingManager!="undefined"&&a=="start"){trackingManager.count(b)}}};var wimePhotoshow={isFadePointerAreas:false,lastMoveTimeout:null,showOverlayMS:3000,hideFadeDuration:1,showFadeDuration:0.5,ratingOpacity:0.75,leftBg:null,rightBg:null,ratingOverlay:null,helpBox:null,ajaxURL:null,ajaxNextParams:null,ajaxPrevParams:null,ajaxDOMElement:null,destruct:function(){document.stopObserving("keydown");if(typeof(wimePhotoshow.lastMoveTimeout)!="undefined"){clearTimeout(wimePhotoshow.lastMoveTimeout)}wimePhotoshow.isFadePointerAreas=false},hidePointerAreas:function(){if(wimePhotoshow.leftBg!=null){wimePhotoshow.leftBg.appear({duration:wimePhotoshow.hideFadeDuration,from:1,to:0})}if(wimePhotoshow.rightBg!=null){wimePhotoshow.rightBg.appear({duration:wimePhotoshow.hideFadeDuration,from:1,to:0})}if(wimePhotoshow.leftBg||wimePhotoshow.rightBg){wimePhotoshow.helpBox.appear({duration:wimePhotoshow.hideFadeDuration,from:1,to:0})}if(wimePhotoshow.ratingOverlay!=null){wimePhotoshow.ratingOverlay.appear({duration:wimePhotoshow.hideFadeDuration,from:wimePhotoshow.ratingOpacity,to:0})}},showPointerAreas:function(){if(wimePhotoshow.leftBg!=null){wimePhotoshow.leftBg.appear({duration:wimePhotoshow.showFadeDuration})}if(wimePhotoshow.rightBg!=null){wimePhotoshow.rightBg.appear({duration:wimePhotoshow.showFadeDuration})}if(wimePhotoshow.leftBg||wimePhotoshow.rightBg){wimePhotoshow.helpBox.appear({duration:wimePhotoshow.showFadeDuration,afterFinish:function(){wimePhotoshow.isFadePointerAreas=false}})}if(wimePhotoshow.ratingOverlay!=null){wimePhotoshow.ratingOverlay.appear({duration:wimePhotoshow.showFadeDuration,to:wimePhotoshow.ratingOpacity})}},handleMouseMove:function(){if(!wimePhotoshow.isFadePointerAreas){wimePhotoshow.isFadePointerAreas=true;wimePhotoshow.showPointerAreas();if(typeof(wimePhotoshow.lastMoveTimeout)!="undefined"){clearTimeout(wimePhotoshow.lastMoveTimeout)}wimePhotoshow.lastMoveTimeout=setTimeout("wimePhotoshow.hidePointerAreas()",wimePhotoshow.showOverlayMS)}},ajaxCallPrevImage:function(){if(wimePhotoshow.ajaxPrevParams){wimePhotoshow.destruct();wimeAjax.teaser(wimePhotoshow.ajaxURL,wimePhotoshow.ajaxDOMElement,wimePhotoshow.ajaxPrevParams)}},ajaxCallNextImage:function(){if(wimePhotoshow.ajaxNextParams){wimePhotoshow.destruct();wimeAjax.teaser(wimePhotoshow.ajaxURL,wimePhotoshow.ajaxDOMElement,wimePhotoshow.ajaxNextParams)}},handleKeyDown:function(a){if(a.keyCode==Event.KEY_LEFT){wimePhotoshow.ajaxCallPrevImage()}else{if(a.keyCode==Event.KEY_RIGHT){wimePhotoshow.ajaxCallNextImage()}}},init:function(c,b,a,d){wimePhotoshow.ajaxURL=c;wimePhotoshow.ajaxPrevParams=b;wimePhotoshow.ajaxNextParams=a;wimePhotoshow.ajaxDOMElement=d;wimePhotoshow.leftBg=$("pointerAreaLeftBackground");wimePhotoshow.rightBg=$("pointerAreaRightBackground");wimePhotoshow.ratingOverlay=$("ratingOverlay");wimePhotoshow.helpBox=$("photoshowHelpBoxText");document.observe("keydown",wimePhotoshow.handleKeyDown);if(wimePhotoshow.ratingOverlay!=null){wimePhotoshow.ratingOverlay.observe("mousemove",wimePhotoshow.handleMouseMove)}$$(".pointerBack").each(function(f,e){f.observe("click",function(g){g.preventDefault()});f.observe("mousemove",wimePhotoshow.handleMouseMove);f.setStyle({cursor:"pointer"});f.observe("click",wimePhotoshow.ajaxCallPrevImage)});$$(".pointerForward").each(function(f,e){f.observe("click",function(g){g.preventDefault()});f.observe("mousemove",wimePhotoshow.handleMouseMove);f.setStyle({cursor:"pointer"});f.observe("click",wimePhotoshow.ajaxCallNextImage)})},slider:{thumbsPerPage:null,currentThumbNr:null,thumbnailerInMotion:false,totalThumbs:null,thumbWidth:null,rightFixThumbnailsCnt:null,leftFixThumbnailsCnt:null,slideSpeed:0.5,sliderPointerAreaRight:null,sliderPointerAreaLeft:null,thumbnailsBox:null,slideToThumbnail:function(a){if(!wimePhotoshow.slider.thumbnailerInMotion){var c=wimePhotoshow.slider.totalThumbs;var b=wimePhotoshow.slider.thumbWidth;var e=wimePhotoshow.slider.leftFixThumbnailsCnt;var d=wimePhotoshow.slider.rightFixThumbnailsCnt;var f=0;wimePhotoshow.slider.sliderPointerAreaRight.show();wimePhotoshow.slider.sliderPointerAreaLeft.show();if(a>=(c-d)){a=c-d;wimePhotoshow.slider.sliderPointerAreaRight.hide()}if(a>e){f=-1*((a*b)-(e*b))}else{wimePhotoshow.slider.sliderPointerAreaLeft.hide()}wimePhotoshow.slider.thumbnailerInMotion=true;wimePhotoshow.slider.thumbnailsBox.morph("margin-left: "+f+"px;",{duration:wimePhotoshow.slider.slideSpeed,afterFinish:function(){wimePhotoshow.slider.thumbnailerInMotion=false}})}},init:function(a,d,c,b,f,e){wimePhotoshow.slider.thumbsPerPage=a;wimePhotoshow.slider.currentThumbNr=d;wimePhotoshow.slider.totalThumbs=c;wimePhotoshow.slider.thumbWidth=b;wimePhotoshow.slider.leftFixThumbnailsCnt=f;wimePhotoshow.slider.rightFixThumbnailsCnt=e;wimePhotoshow.slider.sliderPointerAreaLeft=$("sliderPointerAreaLeft");wimePhotoshow.slider.sliderPointerAreaRight=$("sliderPointerAreaRight");wimePhotoshow.slider.thumbnailsBox=$("boxMMFullXLThumbnails");if(a<c){wimePhotoshow.slider.sliderPointerAreaLeft.observe("click",function(g){if(d>(c-e)){d=(c-e)}d-=a;if(d<0){d=0}wimePhotoshow.slider.slideToThumbnail(d)});wimePhotoshow.slider.sliderPointerAreaRight.observe("click",function(h){if(d<f){d=f}d+=a;var g=g-1;if(d>g){d=g}wimePhotoshow.slider.slideToThumbnail(d)})}}}};var wimeNavigator={getInternetExplorerVersion:function(){var c=-1;if(navigator.appName=="Microsoft Internet Explorer"){var a=navigator.userAgent;var b=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(b.exec(a)!=null){c=parseFloat(RegExp.$1)}}return c},getHashValueByName:function(a){var d=null;var c="&"+a+"=([^&]*)|^#"+a+"=([^&]*)";var b=window.location.hash.match(new RegExp(c));if(b!=null){if(typeof b[1]!="undefined"&&b[1]!=""){d=b[1]}else{if(typeof b[2]!="undefined"&&b[2]!=""){d=b[2]}}}return d},appendHashParam:function(a,c){var b=window.location.hash;var d="";if(b.length>1){d="&"}window.location.hash=b+d+a+"="+c},setHash:function(a){window.location.hash=a}};
/* wime/wimeMyMsg.js */
var wimeMyMsg={ERR_LOGIN_BASE:"Ihre Anmeldung war leider nicht erfolgreich. ",ERR_LOGIN_NAME:"Bitte geben Sie Ihren richtigen Benutzernamen ein.",ERR_LOGIN_PW:"Bitte geben Sie Ihr richtiges Passwort ein.",ERR_NO_CRED:"Sie haben keine Berechtigungen.",ERR_TRY_AGAIN:"Bitte versuchen Sie es erneut.",ERR_ALERT_AMBIGUOUS_EMAIL:'<br /><p>Sie verwenden <b>Ihre E-Mail-Adresse in mehreren Benutzer&shy;konten.</b> Wir können Ihre E-Mail-Adresse daher nicht eindeutig einem Konto zuordnen. <b>Bitte melden Sie sich mit Ihrem Benutzer&shy;namen an.</b></p><p class="extendInfo"><b>Um sich zukünftig mit Ihrer E-Mail-Adresse anzumelden, tragen Sie bitte in Ihren unterschiedlichen Konten verschiedene E-Mail-Adressen ein.</b><br />Alternativ können Sie Ihre alten Benutzerkonten auch löschen.<br />Unser Leserservice ist Ihnen dabei gerne behilflich.<br />Sie erreichen unseren Leserservice unter: <a href="mailto:leserservice@ftd.de">leserservice@ftd.de</a><br />oder unter 040/3703-8550 (Mo. bis Fr., 10-13 Uhr und 14-17 Uhr)</p>',ERR_ALERT_LOGIN:"<br />Um diese Funktion nutzen zu können, müssen Sie eingeloggt sein.<br /><br />",ERR_ALERT_VALUE:"<br />Bitte geben Sie einen Suchbegriff ein, damit der Suchalarm gespeichert werden kann.<br /><br />",ERR_ALERT_302:"Es wurde kein Suchwert eingegeben.",ERR_ALERT_303:"Es wurde kein Suchintervall ausgewählt.",ERR_ALERT_304a:"Die maximale Anzahl von ",ERR_ALERT_304b:" gespeicherten Alarmen kann nicht überschritten werden.",ERR_ALERT_401:"Sie müssen Ihre Zustimmung geben, damit der Serienalarm gespeichert werden kann.",ERR_ALERT_DEFAULT:"Bitte versuchen Sie es erneut.",MSG_ALERT_DELETED:"Die ausgewählten Alarme wurden gelöscht.",EOM:""};
/* wime/wimeMy.js */
var wimeMy={emailRegex:/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\.-]+\.[a-zA-Z]{2,8}$/,nameRegex:/^[a-zA-Zß-üÀ-Ü\-\.\ ]{2,100}$/,currentTab:"",currentEmail:null,previousToggledElements:[],getHttpsBaseUrl:function(){return"http://"+location.host},doLogin:function(d,f){var e=$("IT"+f+"-A").getValue();var c=$("IT"+f+"-C").getValue();var b=$("IT"+f+"-B").checked;var a=$("IT"+f+"-Error");a.hide();wimeAjax.custom(function(g){var h=g.responseJSON;if(h.Success&&h.Success==true){if(wimeMy.currentTab){location.href=wimeJsConfig.myUrl+"?mode="+wimeMy.currentTab}else{location.reload()}if(f=="ajaxLogin"){wimeLayer.close()}}else{if(h.Error){var i=wimeMyMsg.ERR_LOGIN_BASE;switch(h.Error){case 101:errorMsg=i+wimeMyMsg.ERR_LOGIN_NAME;break;case 102:errorMsg=i+wimeMyMsg.ERR_LOGIN_NAME;break;case 103:errorMsg=i+wimeMyMsg.ERR_LOGIN_NAME;break;case 104:errorMsg=i+wimeMyMsg.ERR_LOGIN_NAME;break;case 105:errorMsg=i+wimeMyMsg.ERR_LOGIN_NAME;break;case 107:errorMsg=i+wimeMyMsg.ERR_LOGIN_PW;break;case 108:errorMsg=i+wimeMyMsg.ERR_NO_CRED;break;case 301:errorMsg=i+wimeMyMsg.ERR_ALERT_AMBIGUOUS_EMAIL;break;default:errorMsg=i+wimeMyMsg.ERR_TRY_AGAIN;break}a.update(errorMsg);a.show()}}},wimeMy.getHttpsBaseUrl()+d,"post",{login:e,password:c,autologin:b});return false},doLogout:function(a){wimeAjax.custom(function(b){var c=b.responseJSON;if(c.Success&&c.Success==true){wimeSession.doLogout();location.reload()}},wimeMy.getHttpsBaseUrl()+a,"post");return false},doAutologin:function(){var a=wimeUserData.parseCookie(document.cookie,wimeJsConfig.autologin);if(a){a=a.split("|");var c=a[0];var b=a[1];wimeAjax.custom(function(d){var e=d.responseJSON;if(e.Success&&e.Success==true){wimeSession.doLogin();location.reload()}},wimeMy.getHttpsBaseUrl()+wimeJsConfig.autoLoginPath,"post",{userId:c,cookieId:b})}return false},showSearchesLists:function(c,d){wimeMy.currentTab="mySearches";if(!wimeSession.session){return false}var b=$("SA-Error"+d);var a=$("SA-Success"+d);wimeAjax.custom(function(l){var k=l.responseJSON;if(k.Error){if(k.Error=="101"){wimeSession.doLogout()}}else{var h=$("SAform"+d);if(h&&h.tagName=="FORM"){var o=k;var g=$("Box"+d+"-20");if(g.hasChildNodes()){while(g.childNodes.length>=1){g.removeChild(g.firstChild)}}for(var n=0;n<o.length;n++){var f=document.createElement("div");var q="SA"+o[n][0];f.setAttribute("id",q);var p=document.createElement("div");var e='<p class="option"><input class="checkbox" type="checkbox" id="SAdelete'+o[n][0]+'"name="SAdelete['+o[n][0]+']" /></p>';e+='<p class="option"> ('+o[n][3]+")&nbsp; </p>";e+='<a class="icon open" onclick="return wimePage.expandTeaserSet(this, \'Exp'+d+"-20-"+(n)+"');\"> </a>";e+='<span class="h2">('+o[n][5].length+")  "+o[n][4]+': "'+o[n][1]+'"</span>';e+='<div id="Exp'+d+"-20-"+(n)+'" class="itemExpanded" style="display:none">';if(o[n][5].length>0){for(var m=0;m<o[n][5].length;m++){e+='<p class="h4"><a href="'+o[n][5][m].url+'">'+o[n][5][m].headline+'</a><p class="h4">'+o[n][5][m].teasertext+"</p></p>"}}else{e+='<span class="h4">keine Treffer</span>'}e+='<div class="clearLeft"/></div>';p.className="headerbox";f.innerHTML=e;g.appendChild(f)}}wimeSession.showPersonalData()}},wimeMy.getHttpsBaseUrl()+c);b.hide();a.hide()},saveSearches:function(b,j,k){var a=k.split("=");var h=a[0];var d=a[1];var i=j.id.replace(/SAform/,"");var g=$("SA-Error"+i);var c=$("SA-Success"+i);if(!wimeSession.session){wimeSession.doLogout();errorMsg=wimeMyMsg.ERR_ALERT_LOGIN;g.update(errorMsg);g.show();return false}g.hide();c.hide();var e="";var l=0;if(h=="search"){if(d=="edit"){l=1}else{if(!$("IT"+i+"-S1").value){errorMsg=wimeMyMsg.ERR_ALERT_VALUE;g.update(errorMsg);g.show();return false}else{e=encodeURIComponent($("IT"+i+"-S1").value)}}}else{if(h=="series"){e=encodeURIComponent(d);l=2}}wimeAjax.custom(function(o){var r=o.responseJSON;if(r.Error){switch(r.Error){case 302:errorMsg=wimeMyMsg.ERR_ALERT_302;break;case 303:errorMsg=wimeMyMsg.ERR_ALERT_303;break;case 304:errorMsg=wimeMyMsg.ERR_ALERT_304a+r.ErrorMessage+wimeMyMsg.ERR_ALERT_304b;break;case 401:errorMsg=wimeMyMsg.ERR_ALERT_401;break;default:errorMsg=wimeMyMsg.ERR_ALERT_DEFAULT;break}g.update("<br />"+errorMsg+"<br /><br />");g.show()}else{var q=(r.successMessage).split("#");var m="";if(q[0]=="gelöscht"){m=wimeMyMsg.MSG_ALERT_DELETED;c.show();c.update(m);var s=$("SA"+i+"-1");for(var p=1;p<q.length;p++){var n="SA"+q[p];var f=$(n);f.remove()}}else{m=r.successMessage;c.show();c.update(m)}}},wimeMy.getHttpsBaseUrl()+b,"post",$(j).serialize()+"&searchTerm="+e+"&edit="+l);return false},saveNewsletters:function(a,b){wimeAjax.custom(function(c){var d=c.responseJSON;if(d.Error){b.select("SPAN.success").invoke("hide");b.select("SPAN.error").invoke("hide");b.select("SPAN.error-"+d.Error).invoke("show")}else{b.select("SPAN.error").invoke("hide");b.select("SPAN.success").invoke("show")}},wimeMy.getHttpsBaseUrl()+a,"post",$(b).serialize());return false},saveIsinNewsletter:function(c,b,d){b=$(b);b.blur();if(!wimeSession.session){wimeLayer.open("/static/errAjaxDialogue.php?msg=MSG_ISIN_NEWSLETTER",b,"next",150,120,9);return false}wimeAjax.custom(function(a){var e=a.responseJSON;if(e.Error){if(e.Error=="103"){wimeLayer.open("/static/errAjaxDialogue.php?msg=MSG_UNCONFIRMED_EMAIL",b,"next",150,null,9)}else{if(e.Error=="101"){wimeSession.doLogout()}else{wimeLayer.open("/static/errAjaxDialogue.php",b,"next",150,80,9)}}}else{if(e.Success){wimeLayer.open("/static/successAjaxDialogue.php?msg=ISIN_SAVED",b,"next",150,null,9)}}},wimeMy.getHttpsBaseUrl()+c,"post","addIsin="+encodeURIComponent(d));return false},subscribeNewsletter:function(a,b,c){wimeAjax.custom(function(d){var e=d.responseJSON;if(e.Error){c.select(".hideErr").invoke("hide");c.select(".showErr").invoke("show")}else{if(e.Success){c.select("SPAN.nlSubsEmail").each(function(f){f.innerHTML=e.email});c.select(".hideSucc").invoke("hide");c.select(".showSucc").invoke("show")}}},wimeMy.getHttpsBaseUrl()+a,"post",$(b).serialize());return false},checkEmail:function(f,c,g,e,b,a){var d=false;if(this.currentEmail!=f){if(!wimeMy.emailRegex.test(f)){g();d=true}else{if(a){clearTimeout(wimeMy.emailCheckerTimer);wimeMy.emailCheckerTimer=setTimeout(function(i){var h=(c)?"emailExists":"emailFree";wimeAjax.custom(function(j){var k=j.responseJSON;if(k.Error=="105"){e()}else{if(k.Error=="1031"){b()}}},wimeMy.getHttpsBaseUrl()+"/ajax/upsell/rai/","post",{method:h,email:f})},500)}}}return d},checkGeneral:function(c,b){var a=(c.length<2);if(a){b()}return a},checkName:function(c,b){var a=!wimeMy.nameRegex.test(c);if(a){b()}return a},checkGender:function(c,b){var a=(c<1||c>6);if(a){b()}return a},checkAboNr:function(c,b){var a=(c.length<5);if(a){b()}return a},checkAboPassword:function(b,a){return wimeMy.checkPassword(b,a)},checkPassword:function(c,b){var a=(c.length<5);if(a){b()}return a},checkPasswordRepeat:function(c,b,d){var a=(c!=b);if(a){d()}return a},setCurrentEmail:function(a){this.currentEmail=a},validateUpsellReg:function(d){var c=false;var b=$("upsHaveAccount1")?($("upsHaveAccount1").checked):false;if($("upsHaveAccount3")){b=true}var a=[];if(d.tagName=="FORM"){if(b){a=["upsEmail","upsPassword"]}else{a=["upsEmail","upsGender","upsFirstname","upsLastname","upsPassword1","upsPassword2"]}}else{if(d.id=="upsPassword1"){a=["upsPassword1","upsPassword2"]}else{a=[d.id]}}a.each(function(j){var i=$(j);var h="";var g=$(j+"Err");var f=false;if(g){g.select("SPAN","DIV").invoke("hide");if(i){h=i.value.strip();if(j=="upsGender"){f=wimeMy.checkGender(h,function(){g.select("SPAN.upsErrGeneral").invoke("show")})}else{f=wimeMy.checkGeneral(h,function(){g.select("SPAN.upsErrGeneral").invoke("show")})}if(j=="upsFirstname"||j=="upsLastname"){f=wimeMy.checkName(h,function(){g.select("SPAN.upsErrGeneral").invoke("show")})}if(j=="upsEmail"&&h.length>1){f=wimeMy.checkEmail(h,b,function(){g.select("SPAN.upsErrGeneral").invoke("show")},function(){g.select("SPAN.upsErr105").invoke("show")},function(){g.select("SPAN.upsErr1031").invoke("show")},(d.tagName!="FORM"))}if(j=="upsPassword"||j=="upsPassword1"){f=wimeMy.checkPassword(h,function(){g.select("SPAN.upsErrGeneral").invoke("show")})}if(j=="upsPassword2"){f=wimeMy.checkPasswordRepeat($("upsPassword1").value,i.value,function(){g.select("SPAN.upsErrGeneral").invoke("show")})}if(!f){g.select("SPAN.upsSuccess").invoke("show")}else{c=true}}}});return c?false:true},validateUpsellPremium:function(c){var b=false;if(c.tagName=="FORM"){var a=["upsAboNumber","upsAboPassword"]}else{var a=[c.id]}a.each(function(h){var g=$(h);var f="";var d=$(h+"Err");if(d){d.select("SPAN","DIV").invoke("hide");if(g){f=g.value.strip();if(h=="upsAboNumber"){b=wimeMy.checkAboNr(f,function(){d.select("SPAN.upsErrGeneral").invoke("show")})}else{if(h=="upsAboPassword"){b=wimeMy.checkAboPassword(f,function(){d.select("SPAN.upsErrGeneral").invoke("show")})}}}}});return b?false:true},validateUpsellProfileAbo:function(f,e){$("editProfile"+e+"Abo").select("SPAN.profileErrGeneral").invoke("hide");$("editProfile"+e+"Abo").select("SPAN.abo"+e+"Success").invoke("hide");var d=$("abo"+e+"Number").value;var a=$("abo"+e+"Password").value;var b=$("viewEmail").value;var c=false;if(a==""&&d!=""){$(e+"aboPasswordErr").select("SPAN.profileErrGeneral").invoke("show");c=true}if(d==""&&a!=""){$(e+"aboNumberErr").select("SPAN.profileErrGeneral").invoke("show");c=true}if(c){return false}else{if(d!=""&&a!=""){$("editProfile"+e+"Abo").select("SPAN.abo"+e+"Success").invoke("show")}}if(f.tagName=="FORM"){wimeAjax.custom(function(g){var h=g.responseJSON;if(h.Error){$("editProfile"+e+"Abo").select("SPAN.abo"+e+"Success").invoke("hide");$("aboErr"+h.Error).show();return false}else{f.submit()}},wimeMy.getHttpsBaseUrl()+"/ajax/upsell/rai/","post",{method:"aboValid",subscription:e,aboNumber:d,aboPassword:a,email:b})}return false},validateUpsellProfile:function(d){var b=false;var c=false;if(d.name=="generalForm"){var a=["profileEmail","profilePassword","profileNewPassword1","profileNewPassword2","profileFirstname","profileLastname"]}else{if(d.name=="aboForm"){var a=["aboNumber","aboPassword"]}else{var a=[d.id]}}a.each(function(j){var g=$(j+"Err");var i=$(j);var h="";if(g){g.select("SPAN","DIV").invoke("hide");if(i){var f=false;h=i.value.strip();if(j!="profilePassword"&&(j!="profileNewPassword1")&&(j!="profileNewPassword2")){f=wimeMy.checkGeneral(h,function(){g.select("SPAN.profileErrGeneral").invoke("show")})}if(j=="profileFirstname"||j=="profileLastname"){f=wimeMy.checkName(h,function(){g.select("SPAN.profileErrGeneral").invoke("show")})}if(j=="profileEmail"&&h.length>1){f=wimeMy.checkEmail(h,b,function(){g.select("SPAN.profileErrGeneral").invoke("show")},function(){g.select("SPAN.profileErr105").invoke("show")},function(){g.select("SPAN.profileErr1031").invoke("show")},(d.tagName!="FORM"))}if(j=="profilePassword"||j=="profileNewPassword1"){if(h.length){f=wimeMy.checkPassword(h,function(){g.select("SPAN.profileErrGeneral").invoke("show")})}}if(j=="profileNewPassword2"){f=wimeMy.checkPasswordRepeat($("profileNewPassword1").value,i.value,function(){g.select("SPAN.profileErrRepeat").invoke("show")})}if(j=="aboNumber"){f=wimeMy.checkAboNr(h,function(){g.select("SPAN.profileErrGeneral").invoke("show")})}if(j=="aboPassword"){f=wimeMy.checkAboPassword(h,function(){g.select("SPAN.profileErrGeneral").invoke("show")})}if(!f){if(i.value!=""&&j!="profilePassword"){g.select("SPAN.profileSuccess").invoke("show")}}else{c=true}}}});return c?false:true},toggleEditMode:function(f){var d=$(f.id);var c=function(h){return h.hasClassName("view")};var e=function(h){return h.hasClassName("edit")};var a;d.ancestors().each(function(h){if(c(h)||e(h)){a=h;throw $break}});var b;if(a){var g=[];if(c(a)){g=a.nextSiblings()}else{if(e(a)){g=a.previousSiblings()}}g.each(function(h){if(c(h)||e(h)){b=h}})}if(a&&b){wimeMy.previousToggledElements.each(function(h){if(h.identify()!=a.identify()&&h.identify()!=b.identify()){h.toggle()}});wimeMy.previousToggledElements=[];if(c(a)){wimeMy.previousToggledElements.push(a,b)}a.toggle();b.toggle()}},addToUpsellCart:function(b,e,h,f,a,g){b=$(b);e=$(e);if(e){var i=$("upsItem-"+h);if(!i){var d=f;if(g&&g!=""){d='<em class="marker">'+g+"</em>"+d}var j=document.createElement("LI");j.className="item";j.setAttribute("id","upsItem-"+h);j.innerHTML=d;j.onclick=function(k){wimeMy.delFromUpsellCart(j)};var c=document.createElement("INPUT");c.type="hidden";c.name="upsCart[]";c.value=h;j.appendChild(c);e.appendChild(j);$("upsItem-none").hide()}$("upsItem-"+h+"-add").addClassName("added")}return false},delFromUpsellCart:function(c){c=$(c);$(c.id+"-add").removeClassName("added");var b=c.up();b.removeChild(c);var a=b.select("LI.item");if(!a.length){$("upsItem-none").show()}},addInputSubmitEvent:function(b,a){a.onkeydown=function(c){c=c||window.event;if(c.keyCode==13){$(b.name).select('input[type="submit"]').first().click();return false}}},initSubmitOnReturnPressed:function(){var b=document.getElementsByTagName("form");for(var d=0;d<b.length;d++){var a=b[d].getElementsByTagName("input");for(var c=0;c<a.length;c++){this.addInputSubmitEvent(b[d],a[c])}}}};Event.observe(window,"load",function(){wimeMy.initSubmitOnReturnPressed()});
/* wime/wimeSearch.js */
var wimeSuggest={};wimeSuggest.Base=function(){};wimeSuggest.Base.prototype={baseInitialize:function(a,b){this.inputType=$(a);this.listBox=$(b);this.hasFocus=false;this.changed=false;this.active=false;this.index=0;this.entryCount=0;this.allowedPattern=/^[0-9a-zA-Z-_!\.&äöüÄÖÜß\s]{0,30}$/;this.inputType.setAttribute("autocomplete","off");this.options={};this.options.tokens=new Array();this.options.frequency=0.1;this.options.minChars=1;this.options.maxChars=16;this.options.formAction=this.inputType.up().action;this.options.askBackend=2;this.options.onShow=function(d,e){new Effect.Appear(e,{duration:0.15})};this.options.onHide=function(d,e){new Effect.Fade(e,{duration:0.15})};this.observer=null;Element.hide(this.listBox);Event.observe(this.inputType,"blur",this.onBlur.bindAsEventListener(this));Event.observe(this.inputType,"keydown",this.onKeyDown.bindAsEventListener(this))},show:function(){if(this.listBox.style.display=="none"){this.options.onShow(this.inputType,this.listBox)}},hide:function(){if(this.listBox.style.display==""){this.options.onHide(this.inputType,this.listBox)}},startIndicator:function(){},stopIndicator:function(){},onKeyDown:function(a){if(this.active){switch(a.keyCode){case 16:case 17:case 18:return;case Event.KEY_TAB:if(this.active){Event.stop(a);this.markNextBlock();this.render();return}case Event.KEY_ESC:this.hide();this.active=false;return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.markPrevious();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return;case Event.KEY_DOWN:this.markNext();this.render();if(navigator.appVersion.indexOf("AppleWebKit")>0){Event.stop(a)}return}}else{this.changed=true}this.hasFocus=true;if(this.observer){clearTimeout(this.observer)}this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1000)},onHover:function(b){var a=Event.findElement(b,"TR");if(this.index!=a.autocompleteIndex){this.index=a.autocompleteIndex;this.render()}Event.stop(b)},onBlur:function(a){setTimeout(this.hide.bind(this),250);this.hasFocus=false;this.active=false},checkForFactsheet:function(){this.inputType.up().action=this.options.formAction;if(this.entryCount>0){for(var a=0;a<this.entryCount;a++){if(this.index==a&&$("link_"+a)){if($("link_"+a).readAttribute("href")!=""){this.inputType.up().action=$("link_"+a).readAttribute("href")}}}}},render:function(){if(this.entryCount>0){for(var a=0;a<this.entryCount;a++){if(this.index==a){Element.addClassName(this.getEntry(a),"selected");this.checkForFactsheet()}else{Element.removeClassName(this.getEntry(a),"selected")}}if(this.hasFocus){this.getCurrentEntry().scrollIntoView;this.show();this.active=true}}else{this.hide();this.active=false}},markPrevious:function(){if(this.index>0){this.index--}else{this.index=this.entryCount-1}},markNext:function(){if(this.index<this.entryCount-1){this.index++}else{this.index=0}},markNextBlock:function(){this.index=1},getEntry:function(a){return this.listBox.firstChild.firstChild.childNodes[a]},getCurrentEntry:function(){return this.getEntry(this.index)},renderList:function(b){if(!this.changed&&this.hasFocus){this.listBox.innerHTML=b;Element.cleanWhitespace(this.listBox);Element.cleanWhitespace(this.listBox.firstChild);if(this.listBox.firstChild.firstChild&&this.listBox.firstChild.firstChild.childNodes){this.entryCount=this.listBox.firstChild.firstChild.childNodes.length;for(var a=0;a<this.entryCount;a++){entry=this.getEntry(a);entry.autocompleteIndex=a;this.addObservers(entry)}}else{this.entryCount=0}this.stopIndicator();this.index=0;this.render()}},addObservers:function(a){Event.observe(a,"mouseover",this.onHover.bindAsEventListener(this))},onObserverEvent:function(){this.changed=false;if(this.getQuery().length>=this.options.minChars){this.startIndicator();this.getData()}else{this.active=false;this.hide()}},getQuery:function(){var b=this.findLastToken();if(b!=-1){var a=this.inputType.value.substr(b+1)}else{var a=this.inputType.value}return/\n/.test(a)?"":a.replace(/^\s+/,"").replace(/\s+$/,"")},findLastToken:function(){var d=-1;for(var b=0;b<this.options.tokens.length;b++){var a=this.inputType.value.lastIndexOf(this.options.tokens[b]);if(a>d){d=a}}return d},buildList:function(aInput,lastQuery){var d=new Array();var aTools=new Array();var aToolName=new Array();eval(aInput);if(query!=lastQuery){return}if(!success||!query){this.hide();this.active=false;return}var iLinkNumber=0;var sValue=(this.getQuery().match(this.allowedPattern))?this.getQuery().toUpperCase():"sign not allowed";var sPattern1=new RegExp("\\b"+sValue+"","i");sValue=sValue.replace(/ä/i,"AE");sValue=sValue.replace(/ö/i,"OE");sValue=sValue.replace(/ü/i,"UE");var sPattern2=new RegExp("\\b"+sValue+"","i");var svl=sValue.length;var sToHighLite="";var sHighLite="";var aIns=new Array();for(i=0;i<aTools.length;i++){var sTool=aTools[i];aIns[sTool]=new Array();aIns[sTool]["NAME"]=new Array();aIns[sTool]["ID_NOTATION"]=new Array();aIns[sTool]["ISIN"]=new Array();aIns[sTool]["URL"]=new Array();var iName=0;var iIdNotation=1;var iIsin=2;var iUrl=3;var offset=4;var iCount=(d[sTool]).length;for(j=0;j<iCount;j+=offset){if(d[sTool][iUrl]!=""){aIns[sTool]["NAME"].push(d[sTool][iName]);aIns[sTool]["ID_NOTATION"].push(d[sTool][iIdNotation]);aIns[sTool]["ISIN"].push(d[sTool][iIsin]);aIns[sTool]["URL"].push(d[sTool][iUrl])}iName+=offset;iIdNotation+=offset;iIsin+=offset;iUrl+=offset}}var html="<table>";for(i=0;i<aTools.length;i++){sTool=aTools[i];var ln=(sTool=="NEW"||sTool=="PDF")?45:19;iCount=(aIns[sTool]["NAME"]).length;if(iCount>0){html+='<tr><th colspan="4">'+aToolName[sTool]+"</th></tr>";iLinkNumber++;for(j=0;j<iCount;j++){html+="<tr>";var origLen=aIns[sTool]["NAME"][j].length;sToHighLite=(aIns[sTool]["NAME"][j]).substr(0,ln);var p=sToHighLite.search(sPattern1);if(p!=-1){sHighLite=sToHighLite.substr(0,p)+"<strong>"+sToHighLite.substr(p,svl)+"</strong>"+sToHighLite.substr(p+svl)}else{p=sToHighLite.search(sPattern2);if(p!=-1){sHighLite=sToHighLite.substr(0,p)+"<strong>"+sToHighLite.substr(p,svl)+"</strong>"+sToHighLite.substr(p+svl)}else{sHighLite=sToHighLite}}sIsin=aIns[sTool]["ISIN"][j];iIdNotation=aIns[sTool]["ID_NOTATION"][j];sName=aIns[sTool]["NAME"][j];sUrl=aIns[sTool]["URL"][j];sTmpSearchValue=(sTool=="NEW"||sTool=="PDF")?sName:sValue;if(sTool=="NEW"||sTool=="PDF"){html+='<td colspan="2" class="left">';if(origLen>ln){sHighLite+="..."}}else{html+='<td class="left">'}html+='<a id="link_'+iLinkNumber+'" title="'+sName+'" href="'+sUrl+'">'+sHighLite+"</a>";html+="</td>";sIsin=(sTool=="CUR")?iIdNotation:sIsin;if(sTool=="NEW"||sTool=="PDF"){html+='<td class="right" colspan="2">'+sIsin+"</td>"}else{sToHighLite=sIsin;sHighLite=sToHighLite.replace(sPattern2,"<strong>"+sValue+"</strong>");sHighLite="&nbsp;"+sHighLite;html+='<td class="isin" colspan="2">'+sHighLite+"</td>";sFlagId=(sTool=="CUR")?"":(sIsin.substr(0,2));sCountry=(typeof c=="undefined"||c[sFlagId]==undefined)?"":c[sFlagId];sFlag="";if(wimeJsConfig.mediaUrl){sFlag='<img title="'+sCountry+'" src="'+wimeJsConfig.mediaUrl+"/images/idms/flags/"+sFlagId.toLowerCase()+'_flag.gif" alt="" />'}html+='<td class="right">'+sFlag+"</td>";html+="</tr>"}iLinkNumber+=1}}}html+='<tr><td class="c1"></td><td class="c2"></td><td class="c3"></td><td class="c4"></td></tr>';html+="</table>";this.renderList(html)}};Ajax.wimeSuggest=Class.create();Ajax.wimeSuggest.prototype=Object.extend(new wimeSuggest.Base(),Object.extend(new Ajax.Base(),{initialize:function(b,d,a){this.baseInitialize(b,d);this.options.asynchronous=true;this.options.onSuccess=this.onComplete.bind(this);this.options.method="get";this.url=a},getData:function(){entry=encodeURIComponent(this.inputType.name)+"="+encodeURIComponent(this.getQuery());this.options.parameters=this.options.callback?this.options.callback(this.inputType,entry):entry;if(this.getQuery().match(this.allowedPattern)&&this.getQuery()!=Ajax.wimeSuggest.lastQuery){var a=this.getQuery().length;if(a>=this.options.askBackend&&a<=this.options.maxChars){Ajax.wimeSuggest.queuedRequest={url:this.url,options:Object.clone(this.options),query:this.getQuery()};clearTimeout(Ajax.wimeSuggest.waitRequest);Ajax.wimeSuggest.waitRequest=setTimeout(this.makeRequest,150)}else{this.purgeRequest()}}else{this.purgeRequest()}},purgeRequest:function(){Ajax.wimeSuggest.queuedRequest=false;clearTimeout(Ajax.wimeSuggest.waitRequest)},makeRequest:function(){if(Ajax.wimeSuggest.queuedRequest){new Ajax.Request(Ajax.wimeSuggest.queuedRequest.url,Ajax.wimeSuggest.queuedRequest.options);Ajax.wimeSuggest.lastQuery=Ajax.wimeSuggest.queuedRequest.query;Ajax.wimeSuggest.queuedRequest=false}},onComplete:function(a){if(Ajax.wimeSuggest.lastQuery&&a.responseText){this.buildList(a.responseText,Ajax.wimeSuggest.lastQuery)}else{this.hide();this.active=false}this.makeRequest()}}));var wimeSearch={defaultValue:"",stopSubmit:false,initSearchBox:function(){var g=$("wimeSrchBox");if(g){this.defaultValue=g.value;var d=new RegExp("[\\?&]query=([^&#]*)");var a=d.exec(window.location.href);if(a!=null&&a[1]){var e="";a[1]=a[1].split("+").join("%20");try{e=decodeURIComponent(a[1])}catch(b){e=unescape(a[1])}g.value=e;var f=$("wimeMain").select("INPUT.QUERY");f.each(function(h){h.value=e})}new Ajax.wimeSuggest("wimeSrchBox","wimeSrchSugg",wimeJsConfig.suggestUrl)}},searchOnFocus:function(b,a){if(b.value==a){b.value=""}},searchOnBlur:function(b,a){if(b.value==""){b.value=a}},searchSubmit:function(a){if($("wimeSrchBox").value==a){$("wimeSrchBox").value=""}return this.stopSubmit?false:true},searchMarkets:function(b){var d=$("wimeSrchBox");if(d&&d.value&&d.value!=this.defaultValue){var a=b+escape(d.value);this.stopSubmit=true;document.location=a}return false},searchPrint:function(b,k,g,f,e){g=$("IT"+b+"-"+g);var l=$("P"+b+"-"+k).select("INPUT.WIMEPRINTDR");if(g.checked){var a=$("IT"+b+"-"+f).value+"."+$("IT"+b+"-"+e).value;a=a.split(".");l.each(function(d){d.value=a.shift()})}else{l.each(function(d){d.value=""})}return true}};
/* wime/wimeTracking.js */
function TrackingManager(){this.enabled=false;this.rootAgofCode="";this.rootIvwAdd="";this.rootNavId="";this.rootPagetitle="";this.articleId="";this.ivwBase="";this.statScript="";this.init=function(e,b,d,a,g,c,f){this.rootAgofCode=e;this.rootIvwAdd=b;this.rootNavId=d;this.rootPagetitle=a;this.ivwBase=g;this.articleId=c;this.statScript=f;this.enabled=true};this.count=function(g,a,e){if(!this.enabled){return}var b="";var c="";statNavid=(e==null)?this.rootNavId:e;a=(a==null)?this.rootAgofCode:a;g=(g==null)?this.rootIvwAdd:g;var f=g;if(g.substring(0,6)=="paging"){if(g.substring(6,7)==","&&(g.substring(7,8)-0==g.substring(7,8)&&g.substring(7,8).length>0)){rest=parseInt(g.substring(7));b="-"+rest}g=(this.rootPagetitle=="")?g:this.rootPagetitle}if(document.images){if($("ivwpx")!=null){var d=this.articleId;if(d>0){c=d+b}ivwPixelPath=this.ivwBase+a+";"+statNavid+","+c+",JS_"+g+",?r="+escape(document.referrer)+"&d="+(Math.random()*100000);$("ivwpx").src=ivwPixelPath}if($("stat")!=null){statPixelPath=this.statScript+"?c="+statNavid+",,JS_"+g+",&amp;p="+(Math.random()*100000);$("stat").src=statPixelPath}if((typeof s!="undefined")&&(s!=null)){savehier1=s.hier1;saveprop10=s.prop10;if(s.hier1.substring(s.hier1.length-18)=="pi ohne ajax/flash"){s.hier1=s.hier1.slice(0,s.hier1.length-18);s.hier1=s.hier1+"ajax"}else{s.hier1=s.hier1+",ajax"}s.hier1=s.hier1+","+f;if(f.substring(0,7)=="paging,"){s.prop10=f.substring(7)}s.referrer=window.location.protocol+"//"+document.location.host+document.location.pathname;void (s.t());s.hier1=savehier1;s.prop10=saveprop10}if((typeof pageTracker!="undefined")&&(pageTracker!=null)){pageTracker._trackPageview()}}};this.link=function(c,b,d){if(!this.enabled||typeof s_account=="undefined"){return}var a=s_gi(s_account);a.tl(c,b,d)}}var trackingManager=new TrackingManager();
/* wime/wimeAds.js */
var wimeAds={Active:false,IndexPage:false,LoadOnDomReady:false,overrideEmsWallpaperSetting:false,tileCounter:1,noAdBookedImg:["http://m1.emea.2mdn.net/viewad/817-grey.gif","http://m1.emea.2mdn.net/1709230/dot.gif","http://s0.2mdn.net/1709230/dot.gif"],adHeightThreshold:80,isActive:function(){return this.Active},setActive:function(a){this.Active=a},isIndexPage:function(){return this.IndexPage==true?true:false},setIndexPage:function(a){this.IndexPage=a},isLoadOnDomReady:function(){return this.LoadOnDomReady},setLoadOnDomReady:function(a){this.LoadOnDomReady=a},adsForceSmallLayout:function(){return(wimeAds.isActive()&&!wimeAds.overrideEmsWallpaperSetting&&typeof wallpaper!="undefined"&&wallpaper==1)},adjustLocationOfWallpaper:function(){if(!$("wime-rubriken")){return}if(wimeLayout.isCollapsed==0&&typeof wallpaper!="undefined"&&wallpaper==1){$("wime-rubriken").addClassName("wimeWallpaperWide")}else{$("wime-rubriken").removeClassName("wimeWallpaperWide")}},show:function(c){wimeAds.Stack.registerAd(c);var b=wimeAds.Template.generate(c);var a=wimeAds.Helper.createPlainScript(c,b);document.write(a);if(Prototype.Browser.IE==true){Event.observe("wimeAdScript_"+c,"readystatechange",wimeAds.checkAdOnLoad)}else{Event.observe("wimeAdScript_"+c,"load",wimeAds.checkAdOnLoad)}},load:function(a){wimeAds.Stack.registerAd(a)},containsAd:function(a){if(typeof a==="undefined"||!a||!a.down){return false}firstImageTag=a.down("img");if(firstImageTag&&wimeAds.noAdBookedImg.indexOf(firstImageTag.src)!=-1){return false}var b=false;wimeAds.noAdBookedImg.each(function(c){if(a.innerHTML.indexOf(c)!=-1){b=true;return}});return !b},checkAdOnLoad:function(b){wimeAds.hideIfEmpty(Event.element(b).up());var a=Event.element(b).up();window.setTimeout("wimeAds.hideIfEmptyDelayed('"+a.id+"')",2500)},hideIfEmptyDelayed:function(a){a=$(a);wimeAds.hideIfEmpty(a)},hideIfEmpty:function(b){if(!wimeAds.containsAd(b)){b.addClassName("hiddenAd")}else{b.removeClassName("hiddenAd");var c=b.getDimensions().height;if(c>wimeAds.adHeightThreshold){var a=parseInt(b.getStyle("paddingTop"));var d=parseInt(b.getStyle("paddingBottom"));c=c-(a+d);b.setStyle({height:c+"px"})}else{b.setStyle({height:""})}}}};wimeAds.Template={Template:null,RnsGenerator:null,currentRns:null,getTemplate:function(){return this.Template},setTemplate:function(a){this.Template=a},generate:function(b){if(!wimeAds.Panels.hasPanel(b)){return false}var d=wimeAds.Panels.getDefaultParamsHash();var a=wimeAds.Panels.getPanelParams(b);if(a instanceof Hash){a=d.merge(a)}else{a=d}a.set("EMS_pos",b);a.set("EMS_ind",wimeAds.isIndexPage()==true?"yes":"no");a.set("EMS_rns",this.currentRns);a.set("EMS_tile",wimeAds.tileCounter++);var c=new Template(this.getTemplate());return c.evaluate(a)},getRnsGenerator:function(){return this.RnsGenerator},setRnsGenerator:function(a){this.RnsGenerator=a},generateRns:function(){if(!this.getRnsGenerator()){return false}return eval(this.getRnsGenerator())}};wimeAds.Panels={Panels:new Hash(),DefaultParams:new Hash(),PanelParams:new Hash(),ShowFrames:false,getPanels:function(){return this.Panels.keys()},hasPanel:function(a){return !Object.isUndefined(this.Panels.get(a))},addPanel:function(a){this.Panels.set(a,true)},removePanel:function(a){this.Panels.unset(a)},getDefaultParams:function(){return this.DefaultParams.keys()},getDefaultParamsHash:function(){return this.DefaultParams},hasDefaultParam:function(a){return !Object.isUndefined(this.DefaultParams.get(a))},getDefaultParam:function(a){if(!this.hasDefaultParam(a)){return null}return this.DefaultParams.get(a)},setDefaultParam:function(a,b){this.DefaultParams.set(a,b)},removeDefaultParam:function(a){this.DefaultParams.unset(a)},hasPanelParams:function(a){return !Object.isUndefined(this.PanelParams.get(a))},getPanelParams:function(a){if(!this.hasPanelParams(a)){return null}return this.PanelParams.get(a)},setPanelParams:function(a,b){this.PanelParams.set(a,b)},removePanelParams:function(a){this.PanelParams.unset(a)},hasPanelParam:function(a,c){if(!this.hasPanelParams(a)){return false}var b=this.getPanelParams(a);return !Object.isUndefined(b.get(c))},getPanelParam:function(a,c){if(!this.hasPanelParam(a,c)){return null}var b=this.getPanelParams(a);return b.get(c)},setPanelParam:function(a,c,b){if(!this.hasPanelParams(a)){this.PanelParams.set(a,new Hash())}this.PanelParams.get(a).set(c,b)},removePanelParam:function(a,b){if(this.hasPanelParams(a)){this.PanelParams.get(a).unset(b)}},toggleFrames:function(a){wimeAds.Panels.ShowFrames=a;if(a){wimeAds.Panels.getPanels().each(wimeAds.Panels.showFrame)}else{wimeAds.Panels.getPanels().each(wimeAds.Panels.hideFrame)}},showFrame:function(a){if($(a)){$(a).show();$(a).addClassName("debugAd");$(a).insert({bottom:'<div id="debug_label_'+a+'" style="background-color: green; color: white;">'+a+"</div>"})}},hideFrame:function(a){if($(a)){if(!wimeAds.containsAd($(a))){$(a).removeClassName("debugAd")}if($("debug_label_"+a)){$("debug_label_"+a).remove()}}}};wimeAds.Events={Events:new Hash(),getEvents:function(){return this.Events.keys()},hasEvent:function(a){return !Object.isUndefined(this.Events.get(a))},getEvent:function(a){if(!this.hasEvent(a)){return null}return this.Events.get(a)},isActive:function(a){return this.hasEvent(a)?this.getEvent(a):false},setEvent:function(a,b){this.Events.set(a,b)},removeEvent:function(a){this.Events.remove(a)},fireEvent:function(a){if(!this.isActive(a)){return false}wimeAds.Exchanger.exchange()},fireEventViaQuery:function(c){var a=null;var b=typeof c=="string"?c.toQueryParams():null;if(b){if(!Object.isUndefined(b.pageNr)){a="paging,"+(1+parseInt(b.pageNr))}else{if(!Object.isUndefined(b.panelNr)){a="panel"}}}if(a){trackingManager.count(a)}if(a&&a.substring(0,6)=="paging"){a="paging"}if(a&&this.isActive(a)){wimeAds.Exchanger.exchange()}}};wimeAds.Handler={initSuperbanner:function(){if(!$("wime-rubriken")&&!$("wime-scroll_sky")){return false}if($("wime-rubriken")){$("wime-rubriken").removeClassName("wimeWallpaper")}if($("wime-scroll_sky")){$("wime-scroll_sky").removeClassName("wimeScrollSky1WithWallpaper")}},initWallpaper:function(){if(!$("wime-rubriken")&&!$("wime-scroll_sky")){return false}if($("wime-rubriken")){$("wime-rubriken").addClassName("wimeWallpaper")}if($("wime-scroll_sky")){$("wime-scroll_sky").addClassName("wimeScrollSky1WithWallpaper")}wimeAds.adjustLocationOfWallpaper()},scriptLoaded:function(b){var a=Event.element(b);if(Prototype.Browser.IE==false||(Prototype.Browser.IE==true&&a.readyState=="loaded")){if(wimeAds.Stack.getCurrentAd()=="wime-rubriken"){if(typeof wallpaper!="undefined"&&wallpaper==1){wimeAds.Handler.initWallpaper()}else{wimeAds.Handler.initSuperbanner()}}wimeAds.Helper.ScriptCount=wimeAds.Helper.ScriptCount-1;wimeAds.Helper.outputUnblockedHtmlAndContinueWithNextScript()}},subScriptLoaded:function(d){var a=Event.element(d);if(Prototype.Browser.IE==false||(Prototype.Browser.IE==true&&(a.readyState=="loaded"||a.readyState=="complete"))){var b=wimeAds.Stack.getCurrentAd();var c=wimeAds.Stack.getStackCount(b);wimeAds.Stack.setStackCount(b,c-1);wimeAds.Helper.currentNode.content.markAsExecuted();wimeAds.Helper.outputUnblockedHtmlAndContinueWithNextScript()}}};wimeAds.Helper={ScriptCount:0,rootNode:null,currentNode:null,createDocumentWriteHandler:function(){document.write=wimeAds.Helper.alternativeDocumentWrite;document.writeln=wimeAds.Helper.alternativeDocumentWrite;document.open=function(){};document.close=function(){}},alternativeDocumentWrite:function(c){var a=wimeAds.Helper.splitToFragments(c);for(var b=0;b<a.length;b++){wimeAds.Helper.currentNode.addChild(new Node(a[b]))}},splitToFragments:function(e){var d=[];e.scan(Prototype.ScriptFragment,function(g){for(var j=0;j<g.length;j=j+2){var k=g[j];var f=g[j+1];var h=wimeAds.Helper.parseSourceUrlFromScriptTag(k);if(h){d.push(new ExternalScriptAdFragment(h))}else{if(f){d.push(new ExplicitScriptAdFragment(f))}}}});e=e.replace(new RegExp(Prototype.ScriptFragment,"img"),"#|<script>#|");var c=e.split("#|");var a=[];for(var b=0;b<c.length;b++){if(c[b].strip()){if(c[b].strip()=="<script>"){a.push(d.shift())}else{a.push(new HtmlAdFragment(c[b]))}}}return a},parseSourceUrlFromScriptTag:function(c){var b=null;var a=c.match(/src=(?:\"|\\\"|\'|\\\')?([^ \'\"\\>]*)(?:\"|\\\"|\'|\\\')?/);if(a&&a[1]){b=a[1];var d=b.substring(0,1);if(d=="'"||d=='"'){b=b.substring(1)}var e=b.substring(b.length-1);if(e=="'"||e=='"'){b=b.substring(0,b.length-1)}}return b},createScript:function(c,b){var e="wimeAdScript_"+c;var a=$(e);if(a){a.remove()}var d=new Element("script",{id:e,type:"text/javascript",src:b});return d},createPlainScript:function(d,c){var f="wimeAdScript_"+d;var b=$(f);if(b){b.remove()}var a="wimeAdScript_"+d+"_Sub_";var e=0;while($(a+e)){$(a+e).remove();e++}if(!c){return'<script id="'+f+'" type="text/javascript"><\/script>'}return'<script id="'+f+'" type="text/javascript" src="'+c+'"><\/script>'},loadScript:function(b,a){wimeAds.Helper.rootNode=new Node();wimeAds.Helper.currentNode=wimeAds.Helper.rootNode;this.ScriptCount=this.ScriptCount+1;var c=this.createScript(b,a);if(Prototype.Browser.IE==true){Event.observe(c,"readystatechange",wimeAds.Handler.scriptLoaded)}else{c.observe("load",wimeAds.Handler.scriptLoaded)}this.appendScriptToHead(c)},loadSubScript:function(a){var c=wimeAds.Stack.getCurrentAd();var d=wimeAds.Stack.getStackCount(c);var e=c+"_Sub_"+d;var b=this.createScript(e,a);if(Prototype.Browser.IE==true){Event.observe(b,"readystatechange",wimeAds.Handler.subScriptLoaded)}else{b.observe("load",wimeAds.Handler.subScriptLoaded)}wimeAds.Stack.setStackCount(c,d+1);this.appendScriptToHead(b)},loadExplicitSubScript:function(content){eval(content);wimeAds.Helper.currentNode.content.markAsExecuted();wimeAds.Helper.outputUnblockedHtmlAndContinueWithNextScript()},outputUnblockedHtmlAndContinueWithNextScript:function(){wimeAds.Helper.traverseAndOutputTreeInOrder();var a=wimeAds.Helper.findNextNodeWithUnexecutedScriptInSubtree(wimeAds.Helper.rootNode);if(a!=null){wimeAds.Helper.currentNode=a;if(wimeAds.Helper.currentNode.content.getType()=="explicitScript"){wimeAds.Helper.loadExplicitSubScript(wimeAds.Helper.currentNode.content.getContent())}else{wimeAds.Helper.loadSubScript(wimeAds.Helper.currentNode.content.getSourceUrl())}}wimeAds.Exchanger.exchangeStep()},appendScriptToHead:function(a){$$("head")[0].insert(a)},traverseAndOutputTreeInOrder:function(){var a=wimeAds.Helper.rootNode.toArray();var b="";for(var c=0;c<a.length;c++){if(a[c]&&a[c].getType()=="script"&&!a[c].isAreadyExecuted()){break}if(a[c]&&a[c].getType()=="html"&&!a[c].isAlreadyPrinted()){b+=a[c].getHtmlString();a[c].markAsPrinted()}}if(b!=""){wimeAds.Exchanger.updateContent(b)}},findNextNodeWithUnexecutedScriptInSubtree:function(b){if(typeof b.content=="object"&&(b.content.getType()=="script"||b.content.getType()=="explicitScript")&&!b.content.isAreadyExecuted()){return b}for(var a=0;a<b.children.length;a++){var c=wimeAds.Helper.findNextNodeWithUnexecutedScriptInSubtree(b.children[a]);if(c!=null){return c}}return null}};wimeAds.Stack={List:new Hash(),Stack:new Hash(),SubStack:new Hash(),Current:null,getAds:function(){return this.List.keys()},hasAd:function(a){return !Object.isUndefined(this.List.get(a))},registerAd:function(a){this.List.set(a,true)},unregisterAd:function(a){this.List.unset(a)},getStackAd:function(){var a=this.Stack.keys();if(a.length==0){return null}var b=a[0];this.Stack.unset(b);return b},hasStack:function(){var a=this.Stack.keys();return a.length>0?true:false},getStackCount:function(a){var b=this.SubStack.get(a);if(Object.isUndefined(b)){return 0}return b},setStackCount:function(a,b){this.SubStack.set(a,b)},buildStack:function(c){this.Stack=new Hash();this.SubStack=new Hash();var b=this.getAds();for(var a=0;a<b.length;a++){if(!wimeAds.Exchanger.isReloadable(b[a])&&c!=true){continue}this.Stack.set(b[a],0)}},getCurrentAd:function(){return this.Current},setCurrentAd:function(a){this.Current=a}};wimeAds.Exchanger={Reloadable:new Hash(),updateContent:function(a){if($(wimeAds.Stack.getCurrentAd())){$(wimeAds.Stack.getCurrentAd()).insert(a)}},flushContent:function(){if($(wimeAds.Stack.getCurrentAd())){$(wimeAds.Stack.getCurrentAd()).innerHTML=""}},isReloadable:function(a){return this.Reloadable.get(a)==true?true:false},setReloadable:function(a,b){this.Reloadable.set(a,b)},exchange:function(a){if(wimeAds.Stack.hasStack()||wimeAds.Helper.ScriptCount>0){window.setTimeout("wimeAds.Stack.Stack = new Hash(); wimeAds.Helper.ScriptCount = 0;",5000);return false}wimeAds.Template.currentRns=wimeAds.Template.generateRns();wimeAds.tileCounter=1;if(typeof wallpaper!="undefined"){wallpaper=0}wimeAds.Stack.buildStack(a);window.onload=null;this.exchangeStep()},exchangeStep:function(){var d=wimeAds.Stack.getCurrentAd();if(d){var a=wimeAds.Stack.getStackCount(d);if(a>0){return false}wimeAds.Helper.traverseAndOutputTreeInOrder();wimeAds.hideIfEmpty($(wimeAds.Stack.getCurrentAd()));if(wimeAds.Panels.ShowFrames){wimeAds.Panels.showFrame(d)}if(typeof window.onload=="function"){window.onload();window.onload=null}}if(wimeAds.Helper.ScriptCount==0){var c=wimeAds.Stack.getStackAd();if(c){wimeAds.Stack.setCurrentAd(c);this.flushContent();var b=wimeAds.Template.generate(c);wimeAds.Helper.createDocumentWriteHandler();wimeAds.Helper.loadScript(c,b)}else{wimeAds.Stack.setCurrentAd(null)}}}};var HtmlAdFragment=Class.create({initialize:function(a){this.htmlString=a.strip();this.areadyPrinted=false},getType:function(){return"html"},getHtmlString:function(){return this.htmlString},markAsPrinted:function(){this.areadyPrinted=true},isAlreadyPrinted:function(){return this.areadyPrinted},toString:function(){return this.getType()+": "+this.getHtmlString()}});var ExternalScriptAdFragment=Class.create({initialize:function(a){this.sourceUrl=a;this.alreadyExecuted=false},getType:function(){return"script"},getSourceUrl:function(){return this.sourceUrl},markAsExecuted:function(){this.alreadyExecuted=true},isAreadyExecuted:function(){return this.alreadyExecuted},toString:function(){return this.getType()+": "+this.getSourceUrl()}});var ExplicitScriptAdFragment=Class.create({initialize:function(a){this.content=a;this.alreadyExecuted=false},getType:function(){return"explicitScript"},getContent:function(){return this.content},markAsExecuted:function(){this.alreadyExecuted=true},isAreadyExecuted:function(){return this.alreadyExecuted},toString:function(){return this.getType()+": "+this.getContent()}});var Node=Class.create({initialize:function(a){this.content=a||"";this.children=[]},addChild:function(a){this.children.push(a)},setContent:function(a){this.content=a},toArray:function(){var a=[this.content];for(var b=0;b<this.children.length;b++){a=a.concat(this.children[b].toArray())}return a}});
