if(typeof(window.opera)!="undefined"){var console={};console.log=window.opera.postError}function komsys_load(a,b,c){window.komsys_time=new Date().getTime();komsys_loadComments(a,b,c)}function komsys_loadComments(c,d,e){var a=$("#comments_box");if(a.length==0){return}var b=a.html();a.html("<div>Lade Kommentare, bitte warten...</div>");$("#comments_box").load("/comments/show/"+d+"/"+c+"/"+e,null,function(g,f,h){if(f=="error"){a.html(b)}else{komsys_init(d,c)}})}function komsys_init(b,a){komsys_addEditLinks();if(typeof(komsys_addAdminButtons)=="function"){komsys_addAdminButtons(a,b)}if(window.location.hash.match(/^[#]?[0-9]+$/)!=null){window.setTimeout("window.location.hash = window.location.hash;",1)}komsys_foldComments()}function komsys_addEditLinks(){if(GetCookie("wfv4login")==null){return}var c=wfv4_gebi("comments_box");var b=GetCookie("wfv4uid");if(b==null){return}var f=wfv4_gebc("komsys_userlink","a",c);if(f==null){return}var g=null;for(var d in f){g=f[d];if(g.href.toLowerCase().match(new RegExp("/mywinfuture,"+b+".html$"))!==null){var a=g.id.match(/komsys_userlink_([0-9]*)/)[1];wfv4_gebi("comment_"+a).className=wfv4_gebi("comment_"+a).className+" komsys_hl";var e=(wfv4_gebi("comment_"+a).className.match(/komsys_re/)!=null)?1:0;var h=document.getElementById("own_"+a);h.innerHTML='<a class="r komsys_btn_e" title="Bearbeiten" href="javascript:komsys_openOwnEdit( '+a+", "+e+' );"> </a>';h.style.width="17px"}}}function komsys_foldComments(){var b=wfv4_gebi("comments_box");var h=wfv4_gebc("komsys_fold","div",b);var d=0,g=null,i=null,n=null,m=null,c=null,j=null;for(var f in h){g=h[f];d=g.id.match(/comment_([0-9]*)/)[1];g.className=g.className+" komsys_folded";c=wfv4_gebi("own_"+d);n=document.createElement("span");n.innerHTML='<a title="Aufklappen" class="r komsys_btn_unfold" onclick="komsys_unfoldComment( '+d+' );"> </a>';c.parentNode.insertBefore(n,c);j=wfv4_gebc("menu","a",g)[0];j.href_=j.href;j.removeAttribute("href");j.title_=j.title;j.removeAttribute("title");g.onclick=function(){try{wfv4_gebc("komsys_btn_unfold","a",this)[0].onclick()}catch(a){}this.onclick=function(){};this.style.cursor="";return false};g.style.cursor="pointer";g.title="Aufklappen";thread=wfv4_gebi("comment_thread_"+d);if(thread!=null){i=wfv4_gebc("komsys_re","div",thread);for(var e in i){i[e].className=i[e].className+" komsys_auto_folded"}}}}function komsys_unfoldComment(d){var e=wfv4_gebi("comment_"+d);if(e==null){return}e.className=e.className.replace(/komsys_folded/,"");e.removeAttribute("title");var b=wfv4_gebc("menu","a",e)[0];b.href=b.href_;b.title=b.title_;thread=wfv4_gebi("comment_thread_"+d);if(thread==null){return}replies=wfv4_gebc("komsys_re","div",thread);for(var c in replies){replies[c].className=replies[c].className.replace(/komsys_(auto_)?folded/g,"")}}function komsys_openReply(h,c,g,d,e){if(GetCookie("wfv4login")==null){alert("Bitte einloggen, um einen Kommentar abzugeben.");return}g=(g==null?"":"@"+g+": ");var i=(d>0?true:false);var a=wfv4_gebi("comment_text_"+c);var b=wfv4_gebi("komsys_editBox");if(b){b.parentNode.style.opacity="";b.parentNode.removeChild(b);if(b.className==c){return}}var f=document.createElement("div");f.id="komsys_editBox";f.className=c;f.style.width=(i?39:43)+"4px";f.style.marginTop="10px";f.innerHTML='<div style="margin-bottom:4px; width:'+(i?38:42)+'4px; font-weight:bold; color:#00438e; font-size:11px;"><span style="float:left;">Auf Kommentar antworten</span><a href="/netiquette.html" style="float:right;text-decoration:underline;" title="Netiquette beachten!">Netiquette beachten!</a></div><div style="height:4px;overflow:hidden;clear:both;">&nbsp;</div><div style="position:relative;"><form class="centForm12" style="margin:0;padding:0;" method="post" action="'+(window.location+"").split("#")[0]+"\" onsubmit=\"wfv4_gebi('js_post_comment').disabled=true;if(wfv4_count_chars(trim(wfv4_gebi('kommentartext').value))<2){alert('Unzureichende Textlänge!');wfv4_gebi('js_post_comment').disabled=false;return false;}\"><textarea style=\"width:"+(i?37:41)+'9px; height:120px;" class="inputbox" rows="8" cols="82" name="comments_text" id="kommentartext">'+g+'</textarea><div style="margin: 6px 3px 0 '+(i?28:32)+'2px;"><input type="submit" id="js_post_comment" alt="Abschicken" value="" name="post" style="margin-left:10px;" class="submit"></div><input name="reply_to_id" value="'+c+'" type="hidden"></form></div><div style="clear:both;display:block;height:1px;overflow:hidden;visibility:hidden;"> </div>';a.parentNode.style.opacity="1";a.parentNode.style.filter="alpha(opacity=100)";a.parentNode.appendChild(f)}function komsys_openOwnEdit(g,d){d=d>0?true:false;var c=wfv4_gebi("comment_text_"+g);if(c==null){return}var h=wfv4_gebi("comment_edit_id");h=h==null?false:h.value;var f="";var a=null;if(h!=false){var b=wfv4_gebi("comment_text_"+h);if(typeof(b.textContent)!="undefined"){b.textContent=wfv4_gebi("comment_edit_original_text").value}else{if(typeof(b.innerText)!="undefined"){b.innerText=wfv4_gebi("comment_edit_original_text").value}}a=wfv4_gebc("komsys_edit","div",wfv4_gebi("comment_"+h));if(a.length>0){a[0].style.display="block"}}if(h==g){return}a=wfv4_gebc("komsys_edit","div",wfv4_gebi("comment_"+g));if(a.length>0){a[0].style.display="none"}var e=typeof(c.textContent)!="undefined"?c.textContent:typeof(c.innerText)!="undefined"?c.innerText:"";c.innerHTML=c.innerHTML.split(wfv4_isIE()?"&shy;":"\u00ad").join("");f=typeof(c.textContent)!="undefined"?c.textContent:typeof(c.innerText)!="undefined"?c.innerText:"";c.innerHTML='<form class="centForm12" style="margin:0;padding:0;" method="post" action="'+(window.location+"").split("#")[0]+'" onsubmit="wfv4_gebi(\'comment_edit_submit\').disabled=true;if(wfv4_count_chars(trim(wfv4_gebi(\'comment_edit_text\').value))<2){alert(\'Unzureichende Textlänge!\');wfv4_gebi(\'comment_edit_submit\').disabled=false;return false;}"><input type="hidden" name="comment_edit_id" id="comment_edit_id" value="'+g+'"><textarea id="comment_edit_text" name="comment_edit_text" style="width:'+(d?37:41)+'0px; height:120px;" class="inputbox" rows="8" cols="82"></textarea><div style="margin: 6px 3px 0 '+(d?27:31)+'7px;"><input type="submit" id="comment_edit_submit" value="" style="margin-left:10px;" class="submit" alt="Abschicken"></div></form><input type="hidden" name="comment_edit_original_text" id="comment_edit_original_text"><div style="clear:both;display:block;height:1px;overflow:hidden;visibility:hidden;"> </div>';wfv4_gebi("comment_edit_original_text").value=e;wfv4_gebi("comment_edit_text").value=f}function komsys_vote(k,i,o){if(GetCookie("wfv4login")==null){alert("Sie müssen angemeldet sein, um einen Kommentar bewerten zu können.");return}var a=new Date().getTime();if(a-4000<window.komsys_time){alert("Bitte warten Sie einige Sekunden,\nbevor Sie die nächste Bewertung abgeben.");window.komsys_time=a;return}window.komsys_time=a;try{var n=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(l){return}n.open("GET","/vote/comment/ajax/"+k+"/"+o+"/"+i,false);n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");n.send(null);var d=wfv4_gebi("komsys_vote_plus_"+k);var p=wfv4_gebi("komsys_vote_minus_"+k);if(n.responseText==""){var j=wfv4_gebi("comment_vote_"+k);var c=j.innerHTML;var g=c.match(/^\(<b[^>]*>([+-][0-9]+)<\/b>\)/i);c=0;if(g!=null){g=g[1];c=g.substring(0,1)=="-"?g:g.substr(1)}if(o==1){p.style.backgroundPosition="0 -82px";d.style.visibility="hidden";c--}else{d.style.backgroundPosition="0 -69px";p.style.visibility="hidden";c++}var m="";switch(c){case 5:m="p4";break;case 4:m="p3";break;case 3:m="p2";break;case 2:m="p1";break;case -2:m="n1";break;case -3:case -4:m="n2";break;case -5:m="n3";break;case -6:m="n4";break}if(c>5){m="p4"}if(c<-6){m="n4"}if(c>2||c<-2){wfv4_gebi("comment_"+k).className+=" komsys_"+m}var f="(<b>";if(c>0){f+="+"}f+=c+"</b>)&nbsp;";j.innerHTML=f}else{alert(n.responseText)}d.onclick=function(){return false};d.removeAttribute("href");p.onclick=function(){return false};p.removeAttribute("href")}if(typeof comments_content_id!="undefined"&&typeof comments_content_type!="undefined"&&typeof comments_h!="undefined"){komsys_load(comments_content_id,comments_content_type,comments_h)};
