function changeNewsPage()
{var page=document.newspages.newspage.value;document.location.href="/en/Movies-Musik-Games-Software-Sonstiges-XXX/news-"+page+"-ed2k-news.html";}
function changeCategoryPage(bTop,params,folder)
{var page;if(bTop==true)
page=document.categorypages1.categorypage.value;else
page=document.categorypages2.categorypage.value;document.location.href="/"+folder+"/"+params+"-"+page+"-ed2k-category.html";}
function sendKeywordRequest()
{var keyword=document.searchform.keyword.value;if(keyword==""){document.location.href="/en/Movies-Musik-Games-Software-Sonstiges-XXX/news-ed2k-news.html";return;}
var category=document.searchform.searchcat.value;keyword=keyword.replace("/","%20");keyword=keyword.replace("*","%20");keyword=keyword.replace("#","%20");keyword=keyword.replace("'",".bgsl.");keyword=keyword.replace("&",".andchr.");keyword=escape(keyword);document.location.href="/en/"+keyword+"/"+category+"-ed2k-search.html";}
function SetSearchForm(SearchKeyword,SearchCat)
{document.searchform.keyword.value=SearchKeyword;document.searchform.searchcat.value=SearchCat;}
var linkarr=[];function addAll()
{try
{links=document.getElementsByTagName('a');for(i=0;i<links.length;++i)
{if(/^ed2k/.test(links[i].href))
{add=true;for(j=0;j<linkarr.length;j++){if(linkarr[j]==links[i].href)
add=false;}
if(add)
linkarr.push(links[i].href);}}
downloadLinks();}
catch(e)
{alert("Fehler beim hinzuf"+unescape("%FC")+"gen der Links.\r\nBitte f"+unescape("%FC")+"ge die Links einzeln hinzu.");}}
function downloadLinks()
{top.document.location=linkarr.shift();if(linkarr.length!=0)
setTimeout('downloadLinks();',100);}
function installerEmule()
{window.open("http://titandonkey.applejuice-community.eu/start_download_installer.htm");}
function emuleBin()
{window.open("http://titandonkey.applejuice-community.eu/start_download.htm");}
function copyTextToClipboard(form,element)
{var textarea=document.forms[form].elements[element];textarea.focus();textarea.select();}
function DownloadNow(type,name)
{if(adbl)
alert("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.");else
window.open("http://www.titanmule.to/en/download-file.php?type="+type+"&n="+name);}
