function expand_pro_contra(a,b){var c=document.getElementById("b_"+b);if(!c){return false}if(!_orig_height[b]){_orig_height[b]=c.offsetHeight}c.style.overflow="hidden";var d=document.getElementById("expand_b_"+b);var e=document.getElementById("shrink_b_"+b);if(_orig_height[b]<150){return false}if(a=="shrink"){c.style.height=150;d.className="more-button showi";e.className="more-button less hido"}else{c.style.height=_orig_height[b];d.className="more-button hido";e.className="more-button less enl"}}function smoothScroll(a){var b=currentYPosition();var c=elmYPosition(a);var d=c>b?c-b:b-c;if(d<100){scrollTo(0,c);return}var e=Math.round(d/100);if(e>=20)e=20;var f=Math.round(d/25);var g=c>b?b+f:b-f;var h=0;if(c>b){for(var i=b;i<c;i+=f){setTimeout("window.scrollTo(0, "+g+")",h*e);g+=f;if(g>c)g=c;h++}return}for(var i=b;i>c;i-=f){setTimeout("window.scrollTo(0, "+g+")",h*e);g-=f;if(g<c)g=c;h++}}function elmYPosition(a){var b=document.getElementById(a);var c=b.offsetTop;var d=b;while(d.offsetParent&&d.offsetParent!=document.body){d=d.offsetParent;c+=d.offsetTop}return c}function currentYPosition(){if(self.pageYOffset)return self.pageYOffset;if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;if(document.body.scrollTop)return document.body.scrollTop;return 0}function cliplister(){var a=document.getElementsByTagName("iframe");var b;for(b=0;b<a.length;b++){clHandleFrame(a[b])}}function clHandleFrame(a){if(a.id.substr(0,10)=="cliplister"){var b=new Image;b.onload=function(){if(b.width<2){a.style.height="0";a.style.width="0";a.style.visibility="hidden"}};var c=a.src.replace(/\/ind/g,"");b.src=c.replace(/playBtn/g,"play")+"/cx"}}function all_more_offers(a){if(all_offer_ids.length>0){for(i=0;i<all_offer_ids.length;i++){c=document.getElementById("block_4_"+all_offer_ids[i]).className;var b="lh";if(c.match(/ll/i)){b="ll"}more_offers(all_offer_ids[i],a,all_offer_ids_count[i],b)}}if(a=="display"){var d="none";var e="inline"}else{var d="inline";var e="none"}document.getElementById("all_offers_show").style.display=d;document.getElementById("all_offers_hide").style.display=e}function more_offers(a,b,c,d){if(!a){return false}var e=document.getElementById("block_1_"+a);var f=document.getElementById("block_2_"+a);var g=document.getElementById("block_4_"+a);if(b=="display"){for(l=1;l<=c;l++){v=document.getElementById("block_3_"+l+"_"+a);v.style.display="table-row";if(l==c){v.className="ll last hand"}else{v.className="ll hand"}}e.style.display="none";f.style.display="block";g.className=d+" more_o"}else{for(l=1;l<=c;l++){v=document.getElementById("block_3_"+l+"_"+a);v.style.display="none";v.style.className="hido ll hand"}e.style.display="block";f.style.display="none";g.className=d}}function swap_prod_head_images(a){var b=document.getElementById("z_layer");if(a=="clear"){b.style.display="none"}else{var c=document.getElementById("alt_img_"+a).innerHTML;b.innerHTML=c;b.style.display="block"}}function show_media(a){if(!a){return false}show_waiting_screen(500);e=document.getElementById("merchant_layer");e.className="s_500";val=document.getElementById("media_"+a).innerHTML;e.innerHTML=val}function show_merchant(a,b,c){if(!a){return false}if(!b){b="gutscheine"}show_waiting_screen();e=document.getElementById("merchant_layer");if(c=="merchant"){url="http://www.yopi.de/index.php?template=gutscheine&show_merchant="+a+"&temp="+b}else{url="http://www.yopi.de/index.php?template=gutscheine&show_mid="+a+"&temp="+b}e.innerHTML='<iframe src="'+url+'" width="100%" height="350" frameborder="0" scrolling="auto" name="" id=""></iframe>'}function close_waiting_screen(){document.getElementById("waiting_layer").style.display="none";document.getElementById("merchant_layer").style.display="none";document.getElementById("merchant_layer").innerHTML="";if(window.scrollbars){window.scrollbars.visible=true}}function show_waiting_screen(a){var b=600;if(a){b=a}e=document.getElementById("waiting_layer");f=document.getElementById("merchant_layer");if(window.navigator.userAgent.indexOf("MSIE ")>-1&&parseFloat(navigator.appVersion)>=4){x_h=document.body.clientHeight+3e4;x_w=document.body.clientWidth}else{x_h=window.innerHeight+3e4;x_w=window.innerWidth}e.style.height=x_h;e.style.width=x_w;e.style.display="block";e.style.zIndex=1e3;if(document.documentElement&&document.documentElement.scrollTop){f.style.top=document.documentElement.scrollTop+200}else{f.style.top=document.body.scrollTop+200}l_c=(x_w-b)/2;f.style.left=l_c;f.style.display="block";f.style.zIndex=1001;if(window.scrollbars){window.scrollbars.visible=false}}function magnify_pic(a,b){if(!a||!b){return false}e=document.getElementById(a);if(e){if(b=="open"){e.style.visibility="visible"}else{e.style.visibility="hidden"}}}function OX_adjust_sky(){if(a=document.getElementById("head_search")){a.style.width=750}if(a=document.getElementById("head_search_f")){a.style.width=500}}function OX_position_ad_divs(a){for(i=0;i<OX_delivered_zones.length;i++){var c=OX_delivered_zones[i];var d=OX_final_zones[i]+"-X";targetZoneDivID=getID(c);sourceZoneDivID=getID(d);if(targetZoneDivID!=null&&sourceZoneDivID!=null){if(a==1){OX_adjustTarget(sourceZoneDivID,targetZoneDivID,c)}OX_moveAbove(sourceZoneDivID,targetZoneDivID,c)}}if(a==1){b=document.getElementsByTagName("body")[0];if(bgimage&&bgcolor){b.style.background=bgcolor+" url("+bgimage+") 0 0 repeat-x"}else if(bgcolor){b.style.backgroundColor=bgcolor}}}function OX_check_banner(a,b){var c="";if(b==2){c=1}for(i=0;i<OX_delivered_zones.length;i++){if(OX_delivered_zones[i]==a){return true}}var d=getID(a+c+"-X");if(OX_findWidth(d)>20){OX_final_zones.push(a+c);OX_delivered_zones.push(a);return true}else{if(b==max_alternatives){OX_final_zones.push(a+b);OX_delivered_zones.push(a)}}return false}function OX_get_banner(a,b){if(screen.width<=1024&&a=="ad_skyscraper"&&adtype!="wallpaper"){return false}if(a=="ad_fullsize"&&noads==false){return false}if(dont_display_skyscraper=="undefined"){dont_display_skyscraper=0}if(a=="ad_skyscraper"&&dont_display_skyscraper==1){OX_adjust_sky();return false}if(b){if(OX_check_banner(a,b)){return false}}a=a+b;if(typeof OA_output[a]!="undefined"&&OA_output[a]!=""){if(OA_output[a].search(/__TILE__/)>-1){OA_output[a]=OA_output[a].replace(/__TILE__/g,tile_nr);tile_nr++}if(OA_output[a].search(/__DCOPT__/)>-1){if(dcopt_set==false){OA_output[a]=OA_output[a].replace(/__DCOPT__/g,"ist");dcopt_set=true}else{OA_output[a]=OA_output[a].replace(/__DCOPT__/g,"")}}document.write(OA_output[a])}}function OX_adjustTarget(c,d,e){if(OX_findWidth(sourceZoneDivID)<=20){return false}if(e=="ad_skyscraper"){OX_adjust_sky()}if(e=="ad_fullsize"){b=document.getElementsByTagName("body")[0];b.style.backgroundPosition="left -100px"}if(e=="ad_content_ad"){if(ca_type=="content_ad_prod_header"){if(a=document.getElementById("prdh_pch")){a.style.width="68px";a.style.height="40px"}if(a=document.getElementById("prdh_pch_t")){a.style.padding=0;a.style.backgroundColor="#FFFFFF"}if(a=document.getElementById("prdh_pr")){a.style.whiteSpace="normal"}if(a=document.getElementById("prdh_rch")){a.style.display="none"}if(a=document.getElementById("prdh_rc")){a.style.display="none"}}if(bannerSize=OX_findWidth(c)){if(bannerSize<300){bannerSize=300}d.style.width=bannerSize}}}function OX_moveAbove(a,b,c){var d=0;if(a.offsetHeight){d=a.offsetHeight}else if(a.clip&&a.clip.height){d=a.clip.height}else if(a.style&&a.style.pixelHeight){d=a.style.pixelHeight}if(window.XMLHttpRequest){if(document.all){}else{b.style.paddingTop=0;b.style.paddingBottom=0}}else{}if(d>10){if(c=="ad_content_ad"&&d<250){d=250}b.style.height=d}var e=0;e=OX_align_ad(b,a,c);if(c=="ad_fullsize"&&live_hockey==1){x_sky_pos=OX_findPosX(getID("ad_skyscraper"));y_sky_pos=OX_findPosY(getID("ad_skyscraper"));a.style.left=x_sky_pos-980;a.style.top=y_sky_pos}else{a.style.left=OX_findPosX(b)+e;a.style.top=OX_findPosY(b)}}function getStyle(a,b){var c="";if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b)}else if(a.currentStyle){b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()});c=a.currentStyle[b]}return c}function resizeDiv(){var a=document.getElementById("ad_fullsize");a.style.cursor="pointer";a.onclick=function(){window.open(adclick,"")};var b=document.getElementById("ad_skyscraper-X");var c=b.offsetWidth;b.style.cursor="pointer";b.onclick=function(){window.open(adclick,"")};var d=b.style.left==""?getStyle(b,"left"):b.style.left;if(window.innerWidth){var e=window.innerHeight<=document.body.scrollHeight?17:0;b.style.width=window.innerWidth-d.substr(0,d.length-2)<c?c-e+"px":window.innerWidth-d.substr(0,d.length-2)-e+"px";b.style.height=document.body.scrollHeight+"px"}else if(document.documentElement&&document.documentElement.clientWidth){b.style.width=document.documentElement.clientWidth-d.substr(0,d.length-2)<c?c+"px":document.documentElement.clientWidth-d.substr(0,d.length-2)+"px";b.style.height=document.body.scrollHeight+"px"}else{b.style.width=document.body.clientWidth-d.substr(0,d.length-2)<c?c+"px":document.body.clientWidth-d.substr(0,d.length-2)+"px";b.style.height=document.body.scrollHeight+"px"}}function OX_clickable_background(){resizeDiv();window.onresize=resizeDiv}function OX_align_ad(a,b,c){var d=OX_findWidth(b);var e=OX_findWidth(a);if(c=="ad_fullsize"){if(adtype=="wallpaper"){b.className="ad_fs_wp";return e-d}else if(adtype=="expwallpaper"){b.className="ad_fs_wp";return e-d+200}else{return(e-d)/2}}else if(c=="ad_skyscraper"&&adtype=="wallpaper"){b.className="ad_sky_wp"}else if(c=="ad_skyscraper"&&adtype=="expwallpaper"){b.className="ad_sky_wp";b.style.paddingTop=90;var f=OX_findPosX(getID("ad_fullsize-X"));getID("ad_fullsize-X").style.left=f-(200-d)}if(c=="ad_skyscraper"&&(adtype=="wallpaper"||adtype=="expwallpaper")){if(adclick){OX_clickable_background(adclick)}}return 0}function OX_findPosY(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetTop;a=a.offsetParent}}else if(a.y){b+=a.y}return b}function OX_findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else if(a.x){b+=a.x}return b}function OX_findWidth(a){if(a.offsetWidth>0){return a.offsetWidth}}function getID(a){if(document.getElementById){return document.getElementById(a)}else if(document.all){return document.all[a]}else if(document.layers){return document.layers[a]}}function adjustIFrameSize(a){if(a.document.height){var b=document.getElementById(a.name);b.style.height=a.document.height+"px"}else if(document.all){var b=document.all[a.name];if(a.document.compatMode&&a.document.compatMode!="BackCompat"){b.style.height=a.document.documentElement.scrollHeight+5+"px"}else{b.style.height=a.document.body.scrollHeight+5+"px"}}}function close_media_screen(){document.getElementById("media_layer").style.display="none"}function show_media_layer(a){e=document.getElementById("media_layer");e.style.display="block";e.innerHTML='<iframe src="'+a+'" width="100%" height="300" frameborder="0" scrolling="auto" name="media_iframe" id="media_iframe"></iframe>'}function show_row(a){var b=document.getElementById("t_1_"+a);var c=document.getElementById("t_2_"+a);if(b===null||c===null){return false}show_t(b);show_t(c)}function show_t(a){if(a.style.display==""||a.style.display=="none"){a.style.display="inline"}else{a.style.display="none"}}function show_box(a,b){if(b=="d"){document.getElementById(a).style.display="inline"}else if(b=="h"){document.getElementById(a).style.display="none"}}function show_ops(a){document.getElementById("opts_text").style.top=-500;var b=1;for(i=0;i<=b;i++){if(k=document.getElementById("ops_"+i)){k.style.display="none"}}if(a){if(m=document.getElementById(a)){m.style.display="block";document.getElementById("opts_text").style.top=-5;document.getElementById("opts_text").style.zIndex=10;var c=true}}if(!c){};}function show_s_nav(a,b){if(!(e=document.getElementById(a))){return false}if(b=="h"){e.style.display="none"}else if(b=="d"){e.style.display="block"}}function social_bookmark_page(a){var b;var c;var d=new Array;d["delicious"]="http://del.icio.us/post?url=%URL%&title=%TITLE%";d["misterwong"]="http://www.mister-wong.de/index.php?action=addurl&bm_url=%URL%&bm_description=%TITLE%";d["linkarena"]="http://linkarena.com/bookmarks/addlink/?url=%URL%&title=%TITLE%&desc=&tags=";d["google"]="http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk=%URL%&title=%TITLE%";d["yahoo"]="http://myweb2.search.yahoo.com/myresults/bookmarklet?t=%TITLE%&u=%URL%";d["facebook"]="http://www.facebook.com/share.php?u=%URL%";d["windows"]="https://favorites.live.com/quickadd.aspx?url=%URL%&title=%TITLE%";d["oneview"]="http://www.oneview.de/login/loginBookmarklet.jsf;jsessionid=0BD2402495BB88BA1A4B30EBEDCD3ED8?title=%TITLE%&URL=%URL%";d["furl"]="http://www.furl.net/storeIt.jsp?t=%TITLE%&u=%URL%";d["spurl"]="http://www.spurl.net/spurl.php?title=%TITLE%&url=%URL%";d["digg"]="http://digg.com/submit?phase=2&url=%URL%";d["yigg"]="http://yigg.de/neu?exturl=%URL%&exttitle=%TITLE%";if(d[a]){b=document.title;c=document.location;c=encodeURIComponent(c);l=d[a].replace("%URL%",c);l=l.replace("%TITLE%",b);l=encodeURIComponent(l);l="http://www.yopi.de/exit/byebye.html?click=no_log&ref_name="+a+"&ref="+l+"";window.open(l,"","toolbar=yes,status=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600")}}function bookmark_page(a,b,c,d){agent=navigator.userAgent.toLowerCase();app=navigator.appVersion.toLowerCase();var e="D";var f=c;if(agent.indexOf("opera")==0){e="T"}if(app.indexOf("macintosh")>0){f=d}if(app.indexOf("msie")>0&&parseInt(app)>=4&&app.indexOf("macintosh")<=0){if(!DLURL){DLURL=document.location}if(!DLDESC){DLDESC=document.title}window.external.AddFavorite(DLURL,DLDESC)}else if(navigator.userAgent.indexOf("Firefox")!=-1||navigator.userAgent.indexOf("firefox")!=-1){window.external.addPanel(document.title,document.location,"")}else{alert(a+" "+f+"-"+e+" "+b)}}function open_info_window(a,b,c){var d=window.open("http://www.yopi.de/index.php?template=info_window&info="+a,"","toolbar=no,status=no,location=no,menubar=no,scrollbars=yes,resizable=yes,width="+b+",height="+c+"")}function char_limit(a,b,c){if(a.value.length>b){val=a.value.substr(0,b);a.value=val;if(c){alert(c)}}}function word_count(b,c,d,e,f){if(!f){var f="count_words"}var g=b.value;var h=0;a=g.replace("\n"," ");a=a.split(" ");if(f=="count_chars"){h=g.length}else{for(z=0;z<a.length;z++){if(a[z].length>0){h++}}}c.value=h;if(h>d&d>0){if(e){alert(e)}}}function search_hi(a){if(a=="on"){this.style.border="1px green solid"}else if(a=="off"){this.style.border="1px red solid"}}function hideButton(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="none"}else{document.getElementById(a).style.display="none"}}function disableButton(a){document.getElementById(a+"_dummy").style.display="inline";document.getElementById(a).style.display="none"}function select_filters(a,b){var c;if(b!=null){var d=document.getElementById("sel_"+a);for(i=0;i<d.length;i++){if(d.options[i].value==b){c=i}}d.options[c].selected=true;d.className="bordered"}}function ViewCrossReference(a){if(a.options[a.selectedIndex].value!=""){location.href=a.options[a.selectedIndex].value}}if(typeof Mirando==="undefined"){var Mirando=function(){}}Mirando.PopUnder=function(){function f(a){var b=0;var d="";var e=a.tagName.toLowerCase();if(c.elemIdBlacklist.length>0){d=a.id.toLowerCase();if(d.length<1)return false;for(b=0;b<c.elemIdBlacklist.length;b++){if(d.indexOf(c.elemIdBlacklist[b])!=-1)return true}}return false}function e(a){var b=0;var d="";var e=a.tagName.toLowerCase();if(c.uriBlacklist.length>0){if(e=="a"){d=a.href.toLowerCase()}if(e=="img"){d=a.src.toLowerCase()}if(d.length<1)return false;for(b=0;b<c.uriBlacklist.length;b++){if(d.indexOf(c.uriBlacklist[b])!=-1)return true}}return false}function d(){var d=null;if(c.triggerOnce&&a){return}if(!c.adTarget&&!c.afterOpenCallback){return}if(!c.windowName){b=new Date;c.windowName=""+b.getTime()}var d=window.open(c.adTarget,c.windowName,c.windowFeatures);if(d){if(navigator.userAgent.match(/chrome/i)){d.focus();window.blur()}else{d.blur();window.focus()}a=true;if(c.afterOpenCallback){c.afterOpenCallback(d)}}}this.windowName=false;this.windowFeatures="scrollbars=yes,menubar=yes,location=yes,toolbar=yes,status=yes,resizable=yes";this.adTarget="about:blank";this.rewriteTags=new Array("a","input","img","textarea","select");this.triggerOnce=true;this.uriBlacklist=new Array(".googlesyndication.com",".google.de",".google.com",".mirando.de");this.elemIdBlacklist=new Array("mirando");this.instantOpen=true;this.autoOpenDelay=2;this.afterOpenCallback=null;var a=false;var b=false;var c=this;c.rewriteLinks=function(){var a=0;var b=navigator.userAgent;var g=0;for(var h=0;h<c.rewriteTags.length;h++){a=document.getElementsByTagName(c.rewriteTags[h]).length;if(a>0){if(document.all&&!b.match(/opera/i)){for(g=0;g<a;g++){var i=document.getElementsByTagName(c.rewriteTags[h])[g];if(e(i))continue;if(f(i))continue;if(!i.getAttribute("onclick")){i.attachEvent("onclick",d)}}}else{for(g=0;g<a;g++){var i=document.getElementsByTagName(c.rewriteTags[h])[g];if(e(i))continue;if(f(i))continue;if(!i.onclick){i.onclick=function(){d()}}}}}}if(c.instantOpen){if(!navigator.userAgent.match(/chrome/i)){window.setTimeout(function(){d()},c.autoOpenDelay*1e3)}}}};var n_pbt=false;var adtype=false;var bgcolor=false;var bgimage=false;var adclick=false;var OX_final_zones=new Array;var OX_delivered_zones=new Array;var max_alternatives=1;var live_hockey;var dont_display_skyscraper;var block_for_campaign;var dcopt_set=false;var tile_nr=1;var noads=false;var _orig_height=new Array
