function loadAD(a){var b=document.getElementById("ld_"+a);document.getElementById(a).appendChild(b);b.style.display="block"}function clickLink(a){window.location=a}function enableTwoClick(a){switch(a){case "fbook":case "gplus":case "twitt":$.cookie(a,"1",{expires:23,path:"/"})}}function disableTwoClick(a){switch(a){case "fbook":case "gplus":case "twitt":$.cookie(a,null,{path:"/"})}} function isEnabledTwoClick(a){switch(a){case "fbook":case "gplus":case "twitt":return"1"==$.cookie(a);default:return!1}} function showTwoClick(a){switch(a){case "gplus":$("#gplus").remove();$.getScript("https://apis.google.com/js/plusone.js");break;case "fbook":$("#fbook").remove();$.getScript("https://connect.facebook.net/de_DE/all.js",function(){FB.init({appId:fbAppId,xfbml:!0})});break;case "twitt":$("#twitt").removeAttr("onclick");$.getScript("https://platform.twitter.com/widgets.js");break;default:return!1}enableTwoClick(a);return!1} function tabChangePV(a,b){document.getElementById("subDisplay").innerHTML=document.getElementById("subMenu_"+a).innerHTML;for(var c=0;c<b.parentNode.childNodes.length;c++)0<b.parentNode.childNodes[c].childNodes.length&&(b.parentNode.childNodes[c].className="");b.className="hover"} function diagrammToggleValue(a,b,c,d){d||(d=0);var e=document.getElementById("indicatorBar_"+a),f=document.getElementById("diagLegend_"+a+"_"+b);if(0<d){for(var n=document.getElementById("diagSorting_"+a).checked,g=document.getElementsByName("diagSort_"+a),l="",j=-1,b=0;b<g.length;b++)if(!1!=document.getElementById(g[b].id.substr(5)).checked){var h=Number(g[b].value);if(-1==j||j>h)l=g[b].id.substr(5),j=h}j=l.substr(12+a.length);g=[]}f=f.checked;for(b=0;b<e.lastChild.childNodes.length;b++)if(h=e.lastChild.childNodes[b], 0<h.childNodes.length){for(var p=null,k=0;k<h.childNodes.length;k++){var m=h.childNodes[k];0<m.childNodes.length&&(p=m)}for(k=0;k<p.childNodes.length;k++){h=p.childNodes[k];for(m=0;m<c.length;m++){var r=c[m];if(0<d&&n&&""!=l)for(var o=0;o<sortColors[a][j].length;o++)if(h.id=="diagValue_"+a+"_"+sortColors[a][j][o]||h.id=="diagValue_"+a+"_"+sortColors[a][j][o].substr(1)){var q=g.length;g[q]=[];g[q].name=h.getAttribute("name");g[q].value=Number(h.childNodes[1].innerHTML)}h.id=="diagValue_"+a+"_"+r&& (h.style.display=f?"":"none")}}}if(0<d&&n&&""!=l){g.sort(diagSort);1==d&&g.reverse();for(a=0;a<g.length;a++)c=document.getElementById(g[a].name),d=c.parentNode,e=c.cloneNode(!0),d.removeChild(c),d.appendChild(e)}}function diagSort(a,b){return a.value-b.value}var lastBoldItem=[]; function indicatorBar(a,b,c,d,e,f){f||(f="pos");1>=c||(tt=document.getElementById("indicatorBar_"+b),wert=document.getElementById(b+"_wert_"+e),distLeftBar="neg"==f?3*(100-a):3*a,distFromLeft=270+distLeftBar,1<c?(tt.style.backgroundImage="url('/images/art_diag_indicator_bar.gif')",tt.style.backgroundRepeat="repeat-y",tt.style.backgroundPosition=""+distFromLeft+"px"):tt.style.backgroundImage="",0<lastBoldItem[b]&&(document.getElementById(b+"_wert_"+lastBoldItem[b]).className="artDiag_wert"),wert.className= "artDiag_wert artDiag_hover",lastBoldItem[b]=e)}function similiarArt(a,b,c,d){box=document.getElementById("similiarArt");getHttpRequest("/article/similiarArt.php?cat="+a+"&limit="+b+"&start="+c+"&exclude="+d,box)}function similiarNews(a,b,c,d){box=document.getElementById("similiarNews");getHttpRequest("/news/similiarNews.php?cat="+a+"&limit="+b+"&start="+c+"&exclude="+d,box)} var bodyOverflow="",picOverlayActive=!1,pOkeysInited=!1,pOContext=null,pOAdress,galW,galH,outlineStyleBefore="",loadedGalleryJS=!1; function PicOverlay(a,b){pOAdress=a;var c=$(window).height(),d=$(window).width();470<c&&470<d?($.browser.opera&&(outlineStyleBefore=$("#intelliTXT a img").css("outlineWidth"),$("#intelliTXT a img").css("outlineWidth","0")),1005>d||840>c?675>d||605>c?(galW=450,galH=300):(galW=650,galH=435):(galW=1E3,galH=670),!1===loadedGalleryJS&&($.getScript("/js/jquery.ad-gallery.js"),loadedGalleryJS=!0),$.get("/"+a,{},function(a){var b=$("#picOverlay");$("#picOverlayBgrd").css("display","block");b.css("display", "block");bodyOverflow=$("body").css("overflow","hidden");b.html(a);picOverlayActive=!0})):window.open("/"+b)}function reloadPicOverlay(){var a=$(".ad-gallery .ad-thumbs li a.ad-active").attr("data-file");$.get("/"+pOAdress+"&file="+a,{},function(a){$("#picOverlay").html(a)})}function closePOReal(){closeDisabled&&closePicOverlay();closeDisabled=!0} function closePicOverlay(){var a=$("#picOverlay"),b=$("#picOverlayBgrd");$("body").css("overflow","auto");b.fadeOut(200,function(){$.browser.opera&&$("#intelliTXT a img").css("outlineWidth",outlineStyleBefore)});a.fadeOut(250);a.innerHTML="";picOverlayActive=!1}function isZoomPicture(){return!picOverlayActive?!1:"none"==$("div#ad-gallery-zoom").css("display")?!1:!0} function zoomPicture(){var a=$(".ad-gallery .ad-thumbs li a.ad-active").attr("data-file"),b=$("div#ad-gallery-zoom"),c=$("div.ad-gallery"),d,e=isZoomPicture(),f=$(window).height();b.css("height",f);!0===e?(b.fadeOut(200),c.fadeIn(200),b.empty(),e=!1):(d=$('<img class="ad-loader" src="/js/loader.gif">'),b.append(d),d.show(),b.show(),c.fadeOut(200,function(){d.show();var c=$(new Image);c.attr("src","/"+a);c.attr("id","ad-gallery-zoom-img");c.css("max-width",$(window).width());c.css("max-height",f); b.append(c);c.click(function(){closeDisabled=!1;zoomPicture()});c.load(function(){d.hide()})}),e=!0)}function togglePicOverlayHelp(){var a=$("#ad-gallery-help");"none"!=a.css("display")?a.fadeOut(350):a.fadeIn(350)} function getHttpRequest(a,b){if(!c)var c=!1;var d=null;window.XMLHttpRequest?d=new XMLHttpRequest:window.ActiveXObject&&(d=new ActiveXObject("Microsoft.XMLHTTP"));d.open("GET",a,!0);d.onreadystatechange=function(){4!=d.readyState&&(b.innerHTML="wird geladen ...");if(4==d.readyState&&200==d.status&&(b.innerHTML=d.responseText,c))return d.send(null),!0};d.send(null);if(c)return!1} function to2DecWithComma(a){var a=""+Math.floor(100*a+0.5)/100,b=a.indexOf(".");if(0>b)a+=",00";else{var a=a.substring(0,b)+","+a.substring(b+1),c=a.length-b-1;0==c?a+="00":1==c?a+="0":2<c&&(a=a.substring(0,b+3))}return a}function getPreisvergleichBox(a,b,c,d){d||(d=!1);jQuery.get("/preisvergleichBox.php?gzID="+a,function(a){a=parseFloat(a);0<a?(a=to2DecWithComma(a),$("#preisvergleichPreis_"+c).html("ab <b>"+a+"</b> &euro;")):d||$("#preisvergleichPreis_"+c).html("keine Angebote")})} function getAmazonBox(a,b,c){box=document.getElementById(b);getHttpRequest("/amazonBox.php?ASIN="+a+"&boxKey="+c,box)}function preView(a,b,c){jQuery?(a=prev_getValue(a),$.post("text_preview.php?ajax&section="+c,{preview:a},function(a){var c=window.document.getElementById(b);c.style.display="block";c.innerHTML=a})):window.open("text_preview.php?tarea_id="+a+"&div_id="+b+"&section="+c,"Textvorschau","width=1,height=1")} function prev_getValue(a){return useTinyMCE?tinyMCE.get(a).getContent():document.getElementById(a).value}function prev_setValue(a,b){var c=document.getElementById(a);document.getElementById("tload_id").value="true";c.value=window.opener.prev_getValue(b)}function prev_setPreviewDiv(a,b){var c=document.getElementById(a);document.getElementById("tset_id").innerHTML="true";window.opener.prev_getPreviewDiv(b,c.innerHTML)} function prev_getPreviewDiv(a,b){var c=window.document.getElementById(a);c.style.display="block";c.innerHTML=b}function prev_submitForm(){"true"==document.getElementById("tload_id").value?document.getElementById("preform_id").submit():setTimeout("prev_submitForm();",5)}function prev_closeTempWin(){"true"==document.getElementById("tset_id").innerHTML?self.close():setTimeout("prev_closeTempWin();",5)} function BannerRotate(a){var b=br_img.length;if(0<b){var a=BrRandom(b,a),c=document.getElementById("brimg"),d=document.getElementById("brlink");c.src=br_img[a];c.alt=br_title[a];d.title=br_title[a];d.href=br_link[a];1<b&&setTimeout("BannerRotate("+a+");",1E4)}}function BrRandom(a,b){var c=Math.floor(Math.random()*a);c==b&&(c=BrRandom(a,b));return c}function OpenUrl(a){""!=a&&(window.opener.document.location.href="../index.php?site=user&action=details&mid="+a,window.opener.focus())} function chPic(a,b){""!=a&&(img=window.opener.document.getElementById(a),img.src=b,checkbox=window.opener.document.getElementsByName("user_del")[0],checkbox.disabled=!1)}function info_show(a,b){document.getElementById&&(tt=document.getElementById("info_div_"+b),""==a?(tt.style.display="none",tt.innerHTML=""):(tt.style.display="block",tt.innerHTML=a))} function show_kday(a){document.getElementById&&(tt=document.getElementById(a),tt_info=document.getElementById("kalend_info"),tt_info.style.display="block",tt_info.innerHTML=tt.innerHTML)}function ToggleBox(a){"block"!=document.getElementById(a).style.display?(document.getElementById(a).style.display="block",document.getElementById(a+"_img").src="images/collapse.gif"):(document.getElementById(a).style.display="none",document.getElementById(a+"_img").src="images/expand.gif")} function ToggleNews(a){document.getElementById("NewsL_"+a).blur();"inline"!=document.getElementById("NewsC_"+a).style.display?(document.getElementById("NewsC_"+a).style.display="inline",document.getElementById("NewsI_"+a).src="images/collapse.gif"):(document.getElementById("NewsC_"+a).style.display="none",document.getElementById("NewsI_"+a).src="images/expand.gif")} function ToggleRlinks(a){document.getElementById("RlinksL_"+a).blur();"inline"!=document.getElementById("RlinksC_"+a).style.display?(document.getElementById("RlinksC_"+a).style.display="inline",document.getElementById("RlinksI_"+a).src="images/collapse.gif"):(document.getElementById("RlinksC_"+a).style.display="none",document.getElementById("RlinksI_"+a).src="images/expand.gif")}function smilie(a){document.vbform.message.value+=" "+a+" ";document.vbform.message.focus()} function smilie_short(a){document.vbform.short_text.value+=" "+a+" ";document.vbform.short_text.focus()}function ToggleIcons(a){"none"==document.getElementById("NewsC_"+a).style.display?(document.getElementById("NewsC_"+a).style.display="block",document.getElementById("NewsI_"+a).src="images/collapse.gif"):(document.getElementById("NewsC_"+a).style.display="none",document.getElementById("NewsI_"+a).src="images/expand.gif")} function NeuesFenster(a,b,c){window.open(a,"displayWindow","width="+b+",height="+c+",scrollbars=yes,menubar=no,status=no,location=no,resizable=no")}function CharsMax(a,b,c){var d;d=a-document.getElementById(b).value.length;0>d?(document.getElementById(b).value=document.getElementById(b).value.substring(0,a),d=a-document.getElementById(b).value.length,document.getElementById(c).value=d):document.getElementById(c).value=a-document.getElementById(b).value.length} function setPointer(a,b){a.style.backgroundColor=b;return!0}function setPointer2(a,b){if("undefined"==typeof a.style)return!1;if("undefined"!=typeof document.getElementsByTagName)var c=a.getElementsByTagName("td");else if("undefined"!=typeof a.cells)c=a.cells;else return!1;for(var d=c.length,e=0;e<d;e++)c[e].style.backgroundColor=b;return!0} function getSelection(a){a=document.getElementById(a);if(a.createTextRange)return a.focus(),a=opener?window.opener.document.selection.createRange():document.selection.createRange(),a.text;return 0<=a.selectionStart?a=a.value.substring(a.selectionStart,a.selectionEnd):null}function insertText(a,b,c,d){c||(c=!1);d||(d="");a=c?window.opener.useTinyMCE?window.opener.tinyMCE.get(a):window.opener.document.getElementById(a):useTinyMCE?tinyMCE.get(a):document.getElementById(a);insertText_obj(a,b,c,d)} function insertText_obj(a,b,c,d){c||(c=!1);d||(d="");if(useTinyMCE||c&&window.opener.useTinyMCE)a.execCommand("mceBeginUndoLevel"),"undefined"!=typeof tinyMCEPopup?tinyMCEPopup.restoreSelection():a.selection.moveToBookmark(a.windowManager.bookmark),a.execCommand("mceInsertContent",!1,b.replace(/\n/gi,"<br />")+d.replace(/\n/gi,"<br />")),a.execCommand("mceCleanup"),a.execCommand("mceRepaint"),a.windowManager.bookmark=a.selection.getBookmark(1),a.execCommand("mceEndUndoLevel");else if(a.createTextRange){a.focus(); var e=c?window.opener.document.selection.createRange():document.selection.createRange(),a=e.text;c?window.opener.document.selection.createRange().duplicate().text=b+a+d:document.selection.createRange().duplicate().text=b+a+d;e.moveStart("character",b.length+a.length+d.length);e.select()}else if(0<=a.selectionStart){var c=a.selectionStart,f=a.selectionEnd,n=a.scrollTop,g=a.scrollLeft,l=a.value.substring(0,c),e=a.value.substring(c,f),f=a.value.substring(f,a.value.length),b=b+e+d;a.value=l+b+f;a.selectionStart= c+b.length;a.selectionEnd=a.selectionStart;a.focus();a.scrollTop=n;a.scrollLeft=g}else a.value+=b,a.focus()}openTags=[];function closeTag(a){var b=openTags.length;0<b?(b="[/ralign]"!=openTags[i]&&"[/lalign]"!=openTags[i]&&"[/calign]"!=openTags[i]&&"[/jalign]"!=openTags[i]?openTags[b-1]:"[/align]",openTags.pop(),insertText(a,b)):document.getElementById(a).focus()} function closeAllTags(a){var b=openTags.length;if(0<b){var c="";for(i=b-1;-1<i;i--)c="[/ralign]"!=openTags[i]&&"[/lalign]"!=openTags[i]&&"[/calign]"!=openTags[i]&&"[/jalign]"!=openTags[i]?c+openTags[i]:c+"[/align]",openTags.pop();insertText(a,c+" ")}else document.getElementById(a).focus()}function isOpen(a){for(i=0;i<openTags.length;i++)if(openTags[i]==a)return!0}function arr_push(a){openTags[openTags.length]=a} function isSelection(a){a=document.getElementById(a);if(a.createTextRange){if(a.focus(),0<document.selection.createRange().text.length)return!0}else if(0<a.selectionEnd-a.selectionStart)return!0;return!1}function singleTag(a,b,c,d){d||(d=b);c||(c=b);isSelection(a)?insertText(a,"["+b+"]",!1,"[/"+c+"]"):isOpen("[/"+d+"]")||(insertText(a,"["+b+"]"),arr_push("[/"+d+"]"))}function addLeftText(a){singleTag(a,"align=left","align","lalign")} function addCenterText(a){singleTag(a,"align=center","align","calign")}function addJustifyText(a){singleTag(a,"align=justify","align","jalign")}function addRightText(a){singleTag(a,"align=right","align","ralign")}function addFloatText(a,b){singleTag(a,"float="+b,"float",b+"float")}function addSize(a){if(!isOpen("[/size]")){var b=document.getElementById("size_menu_"+a),c=b.options[b.selectedIndex].value;"0"!=c&&singleTag(a,"size="+c,"size","size");b.selectedIndex=0}} function addColor(a){if(!isOpen("[/color]")){var b=document.getElementById("color_menu_"+a),c=b.options[b.selectedIndex].value;"0"!=c&&singleTag(a,"color="+c,"color","color");b.selectedIndex=0}}function addFont(a){if(!isOpen("[/font]")){var b=document.getElementById("font_menu_"+a),c=b.options[b.selectedIndex].value;"0"!=c&&singleTag(a,"font="+c,"font","font");b.selectedIndex=0}} function addImg(a){var b=prompt("Geben sie den Link zu dem Bild ein:","http://");null!=b&&""!=b&&"http://"!=b&&insertText(a,"[img]"+b+"[/img] ")}function addMail(a){var b=getSelection(a),c=prompt("Geben sie einen Linkname an (optional):",b),d=prompt("Geben sie eine Email Adresse an:","");null!=d&&""!=d&&(null!=c&&""!=c?b==c?insertText(a,"[email="+d+"]",!1,"[/email]"):insertText(a,"[email="+d+"]"+c+"[/email] "):insertText(a,"[email]"+d+"[/email] "))} function addUrl(a){var b=getSelection(a),c=prompt("Geben sie einen Linkname an (optional):",b),d=prompt("Geben sie die Adresse des Links an:","http://");null!=d&&""!=d&&(null!=c&&""!=c?b==c?insertText(a,"[url="+d+"]",!1,"[/url]"):insertText(a,"[url="+d+"]"+c+"[/url] "):insertText(a,"[url]"+d+"[/url] "))}var useTinyMCE=!1;
