
var menucontent = ""; 
var sourcedir = ""; 
menucontent += '<HTML><HEAD><STYLE><!--.generale{ position: absolute; left: -999; top: -999; z-index: 999; cursor: hand; background-color: #B8DAFC; color: 000000; width: 190;visibility: hidden; border-style: outset; border-width: 2px; height: 100}.components{ font-family: Ms Shell Dlg; font-size: 12px; padding-left: 10px; padding-right: 10px; padding-top: 3px; padding-bottom: 3px }// --></STYLE></HEAD>'; 
menucontent += '<BODY><OBJECT ID="cerca" CLASSID="clsid:B45FF030-4447-11D2-85DE-00C04FA35C89" HEIGHT="0" WIDTH="0"></OBJECT><DIV ID="right_menu" CLASS="generale">'; 
menucontent += '<hr size="1" color="#5D6570"><center><a href="http://www.emcrypt.com/download.html" target="_blank"><img border="0" src="http://www.eselfilme.100k.to/banner/emuleclient_88x31.gif" width="88" height="31"></a></center><hr size="1" color="#5D6570">'; 
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'home\')" STATUSTEXT="Diese Seite als Startseite">- Diese Seite als Startseite</DIV>'; 
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'bookmark\')" STATUSTEXT="Diese Seite zu den Favoriten">- Diese Seite zu den Favoriten</DIV><hr size="1" color="#5D6570">'; 
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'emaildp\')" STATUSTEXT="e-Mail an den Webmaster">- e-Mail an den Webmaster</DIV><hr size="1" color="#5D6570">'; 
menucontent += '<DIV CLASS="components" ONCLICK="exe(\'info\')" STATUSTEXT="Info & Copyright">- Info & Copyright</DIV>'; 
menucontent += '</DIV></BODY></HTML>'; 

if (document.all && window.print) 
	document.write (menucontent); 

function light_on ()
{ 
	if (event.srcElement.className == "components")
	{ 
		event.srcElement.style.backgroundColor="#424A5F"; 
		event.srcElement.style.color="#FFFFFF"; 
		if (event.srcElement.STATUSTEXT) 
			window.status = event.srcElement.STATUSTEXT; 
	} 
} 
function light_off ()
{ 
	if (event.srcElement.className == "components")
	{ 
		event.srcElement.style.backgroundColor= "#B8DAFC"; 
		event.srcElement.style.color="000000"; 
		window.status = ""; 
	} 
} 
function extension (){ 
if (event.clientY> 0 && event.clientX >0 && event.clientY<document.body.clientHeight && event.clientX<document.body.clientWidth) { 
if (document.body.clientHeight - event.clientY + document.body.scrollTop>document.body.clientHeight / 2){ 
right_menu.style.top = event.clientY + document.body.scrollTop; 
} else { 
right_menu.style.top = event.clientY + document.body.scrollTop - 255; 
} 
if (document.body.clientWidth- event.clientX + document.body.scrollLeft >document.body.clientWidth / 2){ 
right_menu.style.left = event.clientX + document.body.scrollLeft; 
} else { 
right_menu.style.left = event.clientX + document.body.scrollLeft - 180; 
} 
} else { 
right_menu.style.top = document.body.scrollTop; 
right_menu.style.left = document.body.scrollLeft; 
} 
right_menu.style.visibility = "visible"; 
return false; 
} 
function hide (){ 
right_menu.style.visibility = "hidden"; 
right_menu.style.left = -999; 
right_menu.style.top = -999; 
} 
function exe (type){ 
if (type == "back"){ 
history.back(); 
} else if (type == "forward"){ 
history.forward(); 
} else if (type == "home"){ 
document.body.style.behavior='url(#default#homepage)'; 
document.body.setHomePage('http://www.eselfilme.100k.to'); 
} else if (type == "bookmark"){ 
var imgFav= new Image(); 
imgFav.src= "http://www.eselfilme.100k.to/favicon.ico"; 
window.external.AddFavorite('http://www.eselfilme.100k.to', 'eselfilme.100k.to'); 
} else if (type == "reload"){ 
self.location.reload(); 
} else if (type == "emaildp"){ 
location.href="mailto:Webmaster@Eselfilme.com"; 
}else if (type == "info"){ 
alert('Imressum\n\n3PO Web-Invest Ltd.\nP.O. Box 875\nRoad Town, Tortola\nBritish Virgin Islands\nFax: +1-284-494-5924\n\nDesign © 2003 by MegaWebDesign.de'); 
} 
} 
function cancelproc () { window.event.cancelBubble = true; 
window.event.returnValue = false; 
} 
if (document.all && window.print)
{ 
document.oncontextmenu=extension; 
document.body.onclick=hide; 
right_menu.onmouseover=light_on; 
right_menu.onmouseout=light_off; 
right_menu.ondragstart=cancelproc; 
right_menu.onselectstart=cancelproc; 
} 

function new_resize(ye)
{
	var maxSize = 600;
	var bIsTooBig="false";
	var we = 0;
	var ts=ye;
	if(ye>maxSize)
	{
		bIsTooBig="true";
		ts = maxSize;
		we = 10;
	}
	if (navigator.appName=="Netscape")
	{ 
		window.resizeBy(0,ts-innerHeight);
		if(bIsTooBig=="true")
		{
			scrollbars.visible=true;
		}
	} 
	else 
	{//ie 
		var ih = document.body.offsetHeight;
		if(bIsTooBig=="true")
		{
			window.document.body.scroll="yes";
		}
		window.resizeBy(0,ts-ih);
	} 
} 

function resize() 
{ 
	var w;
	var h;
	var cw; 
	var ch; 
	if (navigator.appName=="Netscape")
	{ 
		cw = innerWidth; 
		ch = innerHeight; 
		return;
	} 
	else 
	{ 
		cw = document.body.offsetWidth; 
		ch = document.body.offsetHeight; 
		var a  = oDiv.getClientRects(); 
		w  =(a[0].right-a[0].left+4) - cw; 
	    h  =(a[0].bottom-a[0].top) - ch; 
	} 
	if((h+ch)>600)
	{
		h = 600-ch;
		w = 10;
		window.document.body.scroll="yes";
	}	
	window.resizeBy(w,h); 
	window.moveBy(-w/2,-h/2);
} 
if (document.layers)
	navigator.family = "nn4";
if (document.all)
	navigator.family = "ie4";
if (window.navigator.userAgent.toLowerCase().match("gecko"))
	navigator.family = "gecko";
			
var overdiv="0";
			
function popLayer(date,state,ns_x,ns_y)
{
	var g_x = ns_x;
	var g_y = ns_y;
	if (document.layers)
		navigator.family = "nn4";
	if (document.all)
	{
		navigator.family = "ie4";
		g_x = x;
		g_y = y;
	}
	if (window.navigator.userAgent.toLowerCase().match("gecko"))
		navigator.family = "gecko";

	if (navigator.family == "gecko") 
	{
		pad="0"; 
		bord="1 bordercolor=black";
	}
	else 
	{	
		pad="1"; 
		bord="0";
	}
	if(state=="0")
	{
		color="#ff7777";
		text="Link nicht OK, letzte Prüfung am "+date;
	}
	else if(state=="1")
	{
		color="#77ff77";
		text="Link OK, letzte Prüfung am "+date;
	}
	else if(state=="100k" && date=="100k")
	{
		color="#7777ff";
		g_x -= 100;
		g_y -= 50;
		//text="Das 100K-Netzwerk geht bald los!";
		text="Superschneller Download im eMCrypt.100k Netzwerk...";
	}		

	else if(state=="")
	{
		color="#ffff77";
		text="Link noch nicht geprüft";
	}
	
	desc =	"<table cellspacing=0 cellpadding="+pad+" border="
			+bord
			+" bgcolor=FFFFFF><tr><td>\n"
    		+"<table cellspacing=0 cellpadding=2 border=0 width=100%><tr><td bgcolor="
			+color
        	+"><center><font size=-2>\n"
        	+text
        	+"\n</td></tr></table>\n"
			+"</td></tr></table>";
	if(navigator.family =="nn4") 
	{
		document.object1.document.write(desc);
		document.object1.document.close();
 	   	document.object1.left=g_x+15;
    		document.object1.top=g_y-5;
    	}
	else if(navigator.family =="ie4")
	{
    		object1.innerHTML=desc;
		object1.style.pixelLeft=g_x+15;
        	object1.style.pixelTop=g_y-5;
    	}
	else if(navigator.family =="gecko")
	{
    	document.getElementById("object1").innerHTML=desc;
    	document.getElementById("object1").style.left=g_x+15;
    	document.getElementById("object1").style.top=g_y-5;
    	}
}

function hideLayer()
{
	if (document.layers)
		navigator.family = "nn4";
	if (document.all)
		navigator.family = "ie4";
	if (window.navigator.userAgent.toLowerCase().match("gecko"))
		navigator.family = "gecko";

	if(navigator.family =="nn4") 
		eval(document.object1.top="-500");
	else if(navigator.family =="ie4")
		object1.innerHTML="";
	else if(navigator.family =="gecko")
		document.getElementById("object1").style.top="-500";
}

var isNav = (navigator.appName.indexOf("Netscape") !=-1);

function handlerMM(e)
{
	x = (isNav) ? e.pageX : event.clientX + document.body.scrollLeft;
	y = (isNav) ? e.pageY : event.clientY + document.body.scrollTop;
}
			
if (isNav)
	document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = handlerMM;

function Open100k(ed2k)
{
	//alert(ed2k);
	var idx=0;
	var c=0;
    	var idx = ed2k.indexOf(";",0);
	var hash='';
	if(idx>-1)
	    hash = ed2k.substring(idx+1);
	
	var url='http://www.allofvideo.com/html/find_videos.php?hash=' + hash;
	//alert(url);
	window.open(url,'100kwindow');
}
