function searchPluginSupported(){if(window.external&&("AddSearchProvider" in window.external)){return true}else{return false}}function valEmail(b){return b.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)}function chkEmail(){var b=document.getElementById("uemail");if(b.value.length<1){alert("Please enter a valid email address!");return false}else{if(!valEmail(b.value)){alert("Please enter a valid email address!");return false}else{return true}}}function chAPic(b){}function resAPic(){chAPic(0)}function hideAdv(){document.getElementById("adv_text_c").style.display="none";document.getElementById("advanced").style.display="none";document.getElementById("adv_text").style.display="";document.getElementById("ssug").style.display="none"}function doRoll(b){if(!b){var b=window.event}if(b.keyCode){code=b.keyCode}else{if(b.which){code=b.which}}if(code!=8){counter=(counter+1)%10}else{counter=(counter+9)%10}chAPic(counter)}function goAnim(b){canStop=0;canStop2=0;document.getElementById("anim").style.visibility="visible"}function flashMsg(c){var b=document.getElementById("sys_"+c);if(b.style.visibility=="visible"){b.style.visibility="hidden"}else{b.style.visibility="visible"}}function startAnim(d,b){var c=document.getElementById("anim");rStep+=(2*Math.PI)/b;rStep%=2*Math.PI;if(!canStop2){if(aBack){if(canStop){counter=(counter+1)%10}else{counter=(counter+9)%10}}else{if(canStop){counter=(counter+9)%10}else{counter=(counter+1)%10}}}c.style.top=(-anmT+(Math.sin(rStep)*d))+"px";c.style.left=((anmLeft-d)+(Math.cos(rStep)*d))+"px";if(canStop&&(counter==0)){canStop2=1}if(canStop2&&(rStep==0)){clearInterval(animInterval)}}function stopAnim(){aBack=0;canStop=1;document.getElementById("anim").style.visibility="hidden"}function crSet(e){if(cRated){return}var d;var c="24";for(var b=1;b<6;b++){d=document.getElementById("cr"+b);if(d.src.indexOf("16")>0){c=16}if(b<=e){d.src="/images/star"+c+".png"}else{d.src="/images/star"+c+"_off.png"}}}function clcSize(s,o){var r="";var m=0;var k=0;var d=0;var c=document.getElementById("fts_"+s);var l=document.getElementById("fts2_"+s);c.style.display="none";l.style.display="none";if(window.getSelection){r=window.getSelection().toString()}else{if(document.selection&&document.selection.createRange){var n=document.selection.createRange();r=n.text;d=1}}if(r==""){return}r=r.replace(/http\:/g," ").replace(/\r/g,"").replace(/\n/g,"\r\n");r=r.replace(/\s/g," ").replace(/  {1,}/g," ").replace(/ $|^ /g,"");r=r.replace(/\s/g,"\r\n");r=r.toLowerCase();var g=r.split("\r\n");var t="";var p=/^.*rapidshare\.(com|de)\/files\/([0-9]+)\/.*$/;if(!o){p=/^([0-9]{2})\/.+$/}var h=new Array();for(m=0,k=0;m<g.length;m++){t=g[m];if(t.match(p)){if(o){t=t.replace(p,"$2")}else{t=t.replace(p,"$1")}h[k]=t;++k}}if(k==0){return}var q=k;var e=0;var b;c.style.display="";l.style.display="";while(k>0){--k;if(b=document.getElementById("rs"+h[k])){if(d){if(b.value.indexOf("MB")>=0){e+=parseFloat(b.value.replace(" MB",""))}else{if(b.value.indexOf("GB")>=0){e+=parseFloat(b.value.replace(" GB",""))*1024}else{if(b.value.indexOf("KB")>=0){e+=parseFloat(b.value.replace(" KB",""))/1024}}}}else{if(b.value.indexOf("MB")>=0){e+=+b.value.replace(" MB","")}else{if(b.value.indexOf("GB")>=0){e+=+b.value.replace(" GB","")*1024}else{if(b.value.indexOf("KB")>=0){e+=+b.value.replace(" KB","")/1024}}}}}}c.innerHTML="Selected:";var f=q.toString()+" file(s)<br />";if(e<1000){e=Math.round(e*10)/10;f+=e.toString()+" MB"}else{e=Math.round((e/1024)*100)/100;f+=e.toString()+" GB"}l.innerHTML=f}function printError(b){document.getElementById("results").innerHTML='<div class="error">'+b+"</div>"+document.getElementById("results").innerHTML}function URLEncode(h){var j="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.!~*'()";var c="0123456789ABCDEF";var f=h;var g="";for(var d=0;d<f.length;d++){var e=f.charAt(d);if(e==" "){g+="+"}else{if(j.indexOf(e)!=-1){g+=e}else{var b=e.charCodeAt(0);if(b>255){g+="+"}else{g+="%";g+=c.charAt((b>>4)&15);g+=c.charAt(b&15)}}}}return g}function hideSDone(){document.getElementById("se_done").style.visibility="hidden"}function doAx(l,d,c){if(l==1){if(cRated){return}var m="http://"+window.location.hostname+"/dorate.php?i="+d+"&r="+c}else{if(l==2){if(cFlagged){return}var m="http://"+window.location.hostname+"/doflag.php?i="+d+"&f="+c}else{if(l==3){if(d.length<1){hideAdv();return}if(d.length>64){return}var m="http://"+window.location.hostname+"/dosuggest.php?s="+URLEncode(d)}else{if(l==4){var f=document.getElementById("se_to").value;if(!valEmail(f)){alert("Please enter a valid email address!");return false}var h="";if(c==0){var k=document.getElementById("se_from").value;var b=document.getElementById("se_email").value;if(k.length<3||!valEmail(b)){alert("Please fill out the form correctly!");return false}h="&n="+URLEncode(k)+"&e="+URLEncode(b)}document.getElementById("mailform").style.display="none";var m="http://"+window.location.hostname+"/doemail.php?g="+d+"&to="+URLEncode(f)+h}else{if(l==5){var m="http://"+window.location.hostname+"/dogetsize.php?h="+d}}}}}goAnim(3);if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){}}}}req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){var q=req.responseText;if(l==3){hideAdv();if(q.length>1){var n=q.split(",");var s=document.getElementById("ssug");var t=d.replace(/^\s+|\s+$/g,"");s.innerHTML="";for(var p=0;p<n.length;p++){var r=p+1;var o=p-1;if(r==n.length){r=0}if(o<0){o=n.length-1}s.innerHTML+='<a id="ssug'+p+'" href="javascript:void(0)" onkeypress="function goSsug(e) {var ek=e.keyCode?e.keyCode:e.charCode;if(ek==40){document.getElementById(\'ssug'+r+"').focus();}else if(ek==38){document.getElementById('ssug"+o+"').focus();}};goSsug(event);\" onmouseover=\"this.focus()\" onclick=\"document.getElementById('s').value='"+n[p]+"';if (subForm()) document.forms[0].submit();\">"+n[p].replace(t,"<b>"+t+"</b>")+"</a>"}s.innerHTML+='<div onclick="hideAdv()" style="text-align:right;margin:2px 2px 2px 0;cursor:pointer"><img src="/images/action_del16.png" class="png" alt="" /></div>';s.style.display="block"}}else{if(l==1){var n=q.split(",");if(n.length>1){crSet(n[0]);var e=document.getElementById("crid");e.title="Rated "+(Math.round(n[0]*10)/10)+", "+n[1]+" vote(s). Thank you for the vote!";e.style.cursor="default";cRated=1}}else{if(l==2){if(q=="1"){var e=document.getElementById("flg"+c);e.innerHTML=parseInt(e.innerHTML)+1;cFlagged=1}}else{if(l==4){if(q=="1"){document.getElementById("se_done").style.visibility="visible";animInterval=setTimeout("hideSDone()",2000)}else{if(q=="L"){alert("You have reached your daily limit, please try later! Thank you.")}}}else{if(l==5){var n=c.split(",");var j=document.getElementById("dp"+n[0]);q/=1024;j.innerHTML=Math.round(100*q/n[1])+"%";if(q+1024<n[1]&&q!=n[2]){j.style.display="block";c=n[0]+","+n[1]+","+q;var i=3000;if(n[1]>524288){i=5000}setTimeout("doAx(5,'"+d+"','"+c+"')",i)}else{j.innerHTML="100%";j.style.color="#70A96B"}}}}}}}else{printError(req.status+": "+req.statusText)}stopAnim()}};req.open("GET",m,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}function doTg(c){goAnim(3);if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){var e=document.getElementById("atg");var f=document.createTextNode(e.lastChild.innerHTML);e.replaceChild(f,e.lastChild);stopAnim()}else{printError(req.status+": "+req.statusText);stopAnim()}}};var d="http://"+window.location.hostname+"/dotag.php?id="+c;req.open("GET",d,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}function doChk(c){goAnim(3);var b=document.getElementById("ack");var h=document.createTextNode(b.lastChild.innerHTML);b.replaceChild(h,b.lastChild);b.className="rdonly";if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}}}}req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){if(req.responseText.indexOf(":")>0){var g=req.responseText.split(",");for(var k=0;k<g.length;k++){var j=g[k].split(":");var e=document.getElementById("i"+j[0]);if(e){e.src="/images/chk"+j[1]+".png";e.style.visibility="visible"}}}else{if(req.responseText=="L"){alert("You have reached your daily limit, please try later! Thank you.")}}stopAnim()}else{printError(req.status+": "+req.statusText);stopAnim()}}};var f="http://"+window.location.hostname+"/docheck.php?g="+c;req.open("GET",f,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}function getMsgs(g,c){var f="tcomments";document.getElementById("msg_loading").style.visibility="visible";if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}}req.onreadystatechange=function(){if(req.readyState==4){if(req.status==200){var h=req.responseText;if(h.indexOf(";;S;;")>=0){var e=h.split(";;S;;");document.getElementById(f+"msgbody").innerHTML=e[1]}else{printError("ERROR: Unexpected response!")}}else{printError("ERROR: No code 200!")}document.getElementById("msg_loading").style.visibility="hidden"}};var d="http://"+window.location.hostname+"/messages_get.php?g="+c+"&p="+g+"&r="+Math.round(2147483647*Math.random());req.open("GET",d,true);req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null)}function sOp(f,k,e,i,d,c,h,j,b,g){document.getElementById("stype").value=k;document.getElementById("ftype").selectedIndex=e;document.getElementById("s").value=i;document.getElementById("start").value=d;document.getElementById("nd").checked=c;document.getElementById("gf").checked=h;document.getElementById("ma").checked=j;document.getElementById("sort").value=b;document.getElementById("size").value=g;document.getElementById("ftype").disabled=false;document.getElementById("nd").disabled=false;document.getElementById("gf").disabled=false;document.getElementById("lblnd").className="";document.getElementById("lblgf").className="";if(f){document.getElementById("ma").disabled=false;document.getElementById("lblma").className=""}if(subForm()){document.forms[0].submit()}}function subForm(){var c=document.getElementById("start").value;var b=document.getElementById("stype").value;var f=document.getElementById("s").value;var g=URLEncode(f);var e="&start="+c;var d="&stype="+b;if(c<2){e=""}if(b==""){d=""}strFType=document.getElementById("ftype").value;sortStr=document.getElementById("sort").value;sizeStr=document.getElementById("size").value;strFTypeStr="";nodelStr="";gfStr="";maStr="";if(strFType>0){strFTypeStr="&ftype="+strFType}if(sortStr!=""){sortStr="&sort="+sortStr}if(sizeStr!=""){sizeStr="&size="+sizeStr}if(document.getElementById("nd").checked==false){nodelStr="&nd=0"}if(document.getElementById("gf").checked==true){gfStr="&gf=1"}if(document.getElementById("ma").checked==true){maStr="&ma=1"}actionStr="index.php?s="+g+d+strFTypeStr+nodelStr+gfStr+maStr+e+sortStr+sizeStr;window.location="http://"+window.location.hostname+"/"+actionStr;return false}var Custom={init:function(){var c=document.getElementsByTagName("input"),e=Array(),b,d,f;for(a=0;a<c.length;a++){if((c[a].type=="checkbox")&&c[a].className=="styled"){e[a]=document.createElement("span");e[a].className=c[a].type;if(c[a].checked==true){position="0 -"+(cboxH*2)+"px";e[a].style.backgroundPosition=position}c[a].parentNode.insertBefore(e[a],c[a]);c[a].onchange=Custom.clear;if(!c[a].getAttribute("disabled")){e[a].onmousedown=Custom.pushed;e[a].onmouseup=Custom.check}else{e[a].className=e[a].className+=" disabled"}}}document.onmouseup=Custom.clear},pushed:function(){element=this.nextSibling;if(element.type=="checkbox"){if(element.checked==true){this.style.backgroundPosition="0 -"+cboxH*3+"px"}else{this.style.backgroundPosition="0 -"+cboxH+"px"}}},check:function(){element=this.nextSibling;if(element.type=="checkbox"){if(element.checked==true){this.style.backgroundPosition="0 0";element.checked=false}else{this.style.backgroundPosition="0 -"+cboxH*2+"px";element.checked=true}if(element.id=="dho_a"){uHa(element.checked,"o")}else{uH("o")}}},clear:function(){inputs=document.getElementsByTagName("input");for(var c=0;c<inputs.length;c++){if(inputs[c].type=="checkbox"&&inputs[c].className=="styled"){if(inputs[c].checked==true){inputs[c].previousSibling.style.backgroundPosition="0 -"+cboxH*2+"px"}else{inputs[c].previousSibling.style.backgroundPosition="0 0"}}}},};
