var domain=document.location.hostname;function DownloadFile(type)
{var ck=document.cookie;var value=ck.substr(ck.search('lang=')+5,2);var lang='de';if(value!='')
lang=value;var message="AdBlock prevents that this file can be downloaded with 100Mbit/s. Disable AdBlock and reload this page to start the download with 100Mbit/s by using this link.";if(lang=='de')
message="AdBlock verhindert, dass diese Datei mit 100Mbit/s heruntergeladen werden kann. Deaktiviere AdBlock und lade diese Seite erneut, um den Download mit 100Mbit/s "+unescape("%FC")+"ber diesen Link zu starten.";if(adbl)
alert(message);else
document.location="http://"+domain+"/download-file.php?type="+type;}
function bookmark()
{document.location="http://"+domain+"/bookmark.php";}
function HandleDetails()
{switch(req.readyState)
{case 4:if(req.status!=200)
alert("Error: "+req.status);else{var xml=req.responseXML;var error=xml.getElementsByTagName("error")[0];error=error.firstChild.nodeValue;if(error!="none"){alert(error);break;}
var name=xml.getElementsByTagName("name")[0];var add=xml.getElementsByTagName("add")[0];var cover=xml.getElementsByTagName("cover")[0];var coversize=xml.getElementsByTagName("coversize")[0];var lang=xml.getElementsByTagName("lang")[0];var language=xml.getElementsByTagName("language")[0];var entrydate=xml.getElementsByTagName("entrydate")[0];var description=xml.getElementsByTagName("description")[0];var downloadlink=xml.getElementsByTagName("downloadlink")[0];var down_ad=xml.getElementsByTagName("down_ad")[0];var l_language=xml.getElementsByTagName("l_language")[0];var l_entrydate=xml.getElementsByTagName("l_entrydate")[0];var l_proceed_download=xml.getElementsByTagName("l_proceed_download")[0];name=name.firstChild.nodeValue;add=add.firstChild.nodeValue;cover=cover.firstChild.nodeValue;coversize=coversize.firstChild.nodeValue;lang=lang.firstChild.nodeValue;language=language.firstChild.nodeValue;entrydate=entrydate.firstChild.nodeValue;description=description.firstChild.nodeValue;downloadlink=downloadlink.firstChild.nodeValue;down_ad=down_ad.firstChild.nodeValue;l_language=l_language.firstChild.nodeValue;l_entrydate=l_entrydate.firstChild.nodeValue;l_proceed_download=l_proceed_download.firstChild.nodeValue;details.innerHTML='<div class="info"><div class="cover"><img src="'+cover+'" '+coversize+' alt="'+name+' '+add+'" title="'+name+' '+add+'" /></div><div class="detailcontainer">'+l_language+': <img src="http://'+domain+'/flags/'+lang+'.gif" width="32" height="16" alt="'+language+' '+add+'" title="'+language+' '+add+'" /><br />'+l_entrydate+': '+entrydate+'</div></div><div class="description">'+description+'</div><div class="download"><a class="defaultlink" href="'+downloadlink+'" title="'+name+' '+add+'">'+l_proceed_download+'</a><br /><a class="defaultlink" href="javascript:;" title="'+name+' '+down_ad+'" onClick="DownloadFile(\'result_details\'); event.returnValue = false; return false;" rel="nofollow">'+down_ad+'</a></div>';expand.innerHTML="&lt;";}
break;}}
function GetDetails(category,id)
{entryID=id;expand=document.getElementById("expand-"+entryID);details=document.getElementById("details-"+entryID);if(expand.innerHTML=="&lt;"){expand.innerHTML="&gt;";details.innerHTML="";return;}
try{req=new XMLHttpRequest();}
catch(e){try{req=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}
catch(failed){req=null;}}}
if(req==null){alert("Error creating Ajax request object.");return;}
req.open("GET","http://"+domain+"/ajax.php?category="+category+"&id="+id,true);req.onreadystatechange=HandleDetails;req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");req.send(null);}
function displayDownloads(aff,start)
{var i=start;var linkdiv;var titlediv;var downloadlink;while((linkdiv=document.getElementById("download_"+i))!=null)
{titlediv=document.getElementById("t_"+i);downloadlink=document.createElement("a");downloadlink.innerHTML=linkdiv.innerHTML;downloadlink.setAttribute("class","defaultlink");downloadlink.setAttribute("href","javascript:;");downloadlink.setAttribute("title",titlediv.innerHTML);downloadlink.setAttribute("onClick","DownloadFile('"+aff+"'); return false;");downloadlink.setAttribute("rel","nofollow");linkdiv.parentNode.replaceChild(downloadlink,linkdiv);i++;}}