<!--

//globals
top.firstplay = 0;
top.timings = getCookie("timing");
top.appname = "dark.jar";//change to dark.jar
top.xposes = new Array("0","0","0","0","0");
top.yposes = new Array("0","0","0","0","0");
top.needsfocus = 1;
top.AppStarted = 0;
top.Ads = 1;
top.playtries = 0;
//document.getElementById("jsdiv").innerHTML = 'If the game does not load update your Java version <a target=_blank href=http://www.java.com/en/download/index.jsp><u>by clicking here</u></a>.';
//document.getElementById("jsdiv").innerHTML = 'If the game does not load click the notification above to install the required Java and Flash plugins.';
//document.getElementById("jsdiv").innerHTML = '<br><br><br><a target=_blank href=http://www.java.com/en/download/index.jsp><img border=0 src=java.jpg></a>';
if(document.getElementById("jsdiv"))
{
	document.getElementById("jsdiv").innerHTML = 'Initializing game interface';
}
top.javaint = setInterval("MoreDot()",1000);

//functions
function MoreDot()
{
	document.getElementById("jsdiv").innerHTML = "<font color=0>.</font>" + document.getElementById("jsdiv").innerHTML + ".";
	if(!top.javatim)
		top.javatim = setTimeout("ShowJavaImg()",20000);
}
function ShowJavaImg()
{
	document.getElementById("jsdiv").innerHTML = '<br><br><br><a target=_blank href=http://www.java.com/en/download/index.jsp><img border=0 src=java.jpg></a>';
	if(top.javaint)
		clearInterval(top.javaint);
}
function hidead()
{
	//document.getElementById("adimg").height = 1;
//	document.getElementById("adimg").width = 1;
//	document.getElementById("adimg").src = "pub/c.gif";
//	document.getElementById("adimg2").height = 1;
//	document.getElementById("adimg2").width = 1;
//	document.getElementById("adimg2").src = "pub/c.gif";
	document.getElementById("ad1").innerHTML = "<font color=0>.</font>";
	document.getElementById("ad2").innerHTML = "<font color=0>.</font>";
	top.Ads = 0;
}
function formsub(n)
{
	document.getElementById(n).submit();
}
function reposbuttons()
{
	var dw = document.width ? document.width : document.documentElement.offsetWidth-16;
	var dh = document.height ? document.height : document.documentElement.offsetHeight-16;
	if(dw < 760)dw = 760;
	if(dh < 756)dh = 756;
	if(top.Ads == 1 && dh < 910)
		dh = 910;


	var ox = 0;
	var oy = 0;
	if((navigator.userAgent.indexOf("MSIE")!=-1 || navigator.userAgent.indexOf("Explorer")!=-1) && navigator.userAgent.indexOf("Opera")==-1)
	{
	}
	else
	{
		ox = 2;
		//oy = 4;
	}

	for(var i = 1;i < 20;i++)
	{
		var t=document.getElementById("but"+i);
		if(t)
		{
			t.style.left=0;
			t.style.top=0;
			t.style.left=(dw/2+parseInt(top.xposes[i-1]))+ox;
			t.style.top=(dh/2+parseInt(top.yposes[i-1]))+oy;
		}
	}
}
function createbutton(num, relx, rely, amount, item_name, item_number, custom)
{
	//if(custom.charAt(0) == 't')
	//	rely = ""+(parseInt(rely)-20);

	var onum = (parseInt(num)+7);
	var dw = document.width ? document.width : document.documentElement.offsetWidth-16;
	var dh = document.height ? document.height : document.documentElement.offsetHeight-16;
	var t=document.getElementById("but"+num);
	if(t == null)
	{
		var domwindow=document.createElement("div");
		domwindow.id="but" + num;
		document.getElementById("dhtmlwindowholder").appendChild(domwindow);
		t=document.getElementById("but"+num);
		t.style.position="absolute";
		t.style.border="0px";
		t.style.padding="0px";
		t.style.cursor="pointer";
		t.style.zIndex=100;
		//this.setfocus(t);
		t.style.width="89px";
		t.style.height="20px";
		t.style.display="block";
		t.style.overflow="hidden";
		t.style.scrolling=0;
		var tehname = "_myframe" + num;
		t.innerHTML='<iframe src="" frameborder=0 scrolling="no" style="width:100%; height:100%; border:0; margin:0; padding:0;" name='+tehname+'></iframe>';
		window.frames[tehname].location.replace("form"+num+".htm");
	}
	t.style.left=(dw/2+parseInt(relx));
	t.style.top=(dh/2+parseInt(rely));
	top.xposes[parseInt(num)-1] = relx;
	top.yposes[parseInt(num)-1] = rely;
	t.style.visibility="visible";

	//if(custom.charAt(0) == 't')
	//	t.style.visibility="hidden";

	t=document.getElementById("but"+onum);
	if(t == null)
	{
		var domwindow=document.createElement("div");
		domwindow.id="but" + onum;
		document.getElementById("dhtmlwindowholder").appendChild(domwindow);
		t=document.getElementById("but"+onum);
		t.style.position="absolute";
		t.style.border="0px";
		t.style.padding="0px";
		t.style.cursor="pointer";
		t.style.zIndex=100;
		//this.setfocus(t);
		t.style.width="89px";
		t.style.height="20px";
		t.style.display="block";
		t.style.overflow="hidden";
		t.style.scrolling=0;
		var tehname = "_myframe" + onum;
		t.innerHTML='<iframe src="" frameborder=0 scrolling="no" style="width:100%; height:100%; border:0; margin:0; padding:0;" name='+tehname+'></iframe>';
		window.frames[tehname].location.replace("form"+num+"b.htm");//not onum here
	}
	t.style.left=(dw/2+parseInt(relx));
	t.style.top=(dh/2+parseInt(rely)+40);
	top.xposes[parseInt(onum)-1] = relx;
	top.yposes[parseInt(onum)-1] = (parseInt(rely)+40);
	t.style.visibility="visible";

	var f = document.getElementById("form"+num);
	f.amount.value = amount;
	f.item_name.value = item_name + (custom.charAt(0) == 't' ? " (Soulbound)" : "");
	f.item_number.value = item_number;
	f.custom.value = custom;
	f = document.getElementById("form"+num+"b");
	f.amount.value = amount;
	f.item_name.value = item_name;
	f.item_number.value = item_number;
	f.custom.value = custom;
	f = document.getElementById("form"+num+"c");
	if(f)
	{
		f.amount.value = amount;
		f.item_name.value = item_name;
		f.item_number.value = item_number;
		f.custom.value = custom;
	}

	reposbuttons();
}
function createconversion()
{
	var concook = getCookie("convert");
	if(concook)
		return;

	set24hCookie("convert","true","/");
	
	var num = 4;
	var relx = -200;
	var rely = 305;
	
	var dw = document.width ? document.width : document.documentElement.offsetWidth-16;
	var dh = document.height ? document.height : document.documentElement.offsetHeight-16;
	var t=document.getElementById("but"+num);
	if(t == null)
	{
		var domwindow=document.createElement("div");
		domwindow.id="but" + num;
		document.getElementById("dhtmlwindowholder").appendChild(domwindow);
		t=document.getElementById("but"+num);
		t.style.position="absolute";
		t.style.border="0px";
		t.style.padding="0px";
		//t.style.cursor="pointer";
		t.style.zIndex=100;
		//this.setfocus(t);
		t.style.width="400px";
		t.style.height="15px";
		t.style.display="block";
		t.style.overflow="hidden";
		t.style.scrolling=0;
		var tehname = "_myframe" + num;
		t.innerHTML='<iframe src="" frameborder=0 scrolling="no" style="width:100%; height:100%; border:0; margin:0; padding:0;" name='+tehname+'></iframe>';
		window.frames[tehname].location.replace("signup.htm");
	}
	t.style.left=(dw/2+parseInt(relx));
	t.style.top=(dh/2+parseInt(rely));
	top.xposes[parseInt(num)-1] = relx;
	top.yposes[parseInt(num)-1] = rely;
	reposbuttons();
	t.style.visibility="visible";
}
function createjavaupdate()
{
	var num = 5;
	var relx = 260;
	var rely = 295;
	
	var dw = document.width ? document.width : document.documentElement.offsetWidth-16;
	var dh = document.height ? document.height : document.documentElement.offsetHeight-16;
	var t=document.getElementById("but"+num);
	if(t == null)
	{
		var domwindow=document.createElement("div");
		domwindow.id="but" + num;
		document.getElementById("dhtmlwindowholder").appendChild(domwindow);
		t=document.getElementById("but"+num);
		t.style.position="absolute";
		t.style.border="0px";
		t.style.padding="0px";
		//t.style.cursor="pointer";
		t.style.zIndex=100;
		//this.setfocus(t);
		t.style.width="60px";
		t.style.height="20px";
		t.style.display="block";
		t.style.overflow="hidden";
		t.style.scrolling=0;
		var tehname = "_myframe" + num;
		t.innerHTML='<iframe src="" frameborder=0 scrolling="no" style="width:100%; height:100%; border:0; margin:0; padding:0;" name='+tehname+'></iframe>';
		window.frames[tehname].location.replace("javaupdate.htm");
	}
	t.style.left=(dw/2+parseInt(relx));
	t.style.top=(dh/2+parseInt(rely));
	top.xposes[parseInt(num)-1] = relx;
	top.yposes[parseInt(num)-1] = rely;
	reposbuttons();
	t.style.visibility="visible";
}
function creategeneric(name, num, relx, rely, width, height)
{//first valid num is 6

	var dw = document.width ? document.width : document.documentElement.offsetWidth-16;
	var dh = document.height ? document.height : document.documentElement.offsetHeight-16;
	var t=document.getElementById("but"+num);
	if(t == null)
	{
		var domwindow=document.createElement("div");
		domwindow.id="but" + num;
		document.getElementById("dhtmlwindowholder").appendChild(domwindow);
		t=document.getElementById("but"+num);
		t.style.position="absolute";
		t.style.border="0px";
		t.style.padding="0px";
		//t.style.cursor="pointer";
		t.style.zIndex=100;
		//this.setfocus(t);
		t.style.width=width+"px";
		t.style.height=height+"px";
		t.style.display="block";
		t.style.overflow="hidden";
		t.style.scrolling=0;
		var tehname = "_myframe" + num;
		t.innerHTML='<iframe src="" frameborder=0 scrolling="no" style="width:100%; height:100%; border:0; margin:0; padding:0;" name='+tehname+'></iframe>';
		window.frames[tehname].location.replace(name);
	}
	t.style.left=(dw/2+parseInt(relx));
	t.style.top=(dh/2+parseInt(rely));
	top.xposes[parseInt(num)-1] = relx;
	top.yposes[parseInt(num)-1] = rely;
	reposbuttons();
	t.style.visibility="visible";
}
function hidebutton(num)
{
	var t=document.getElementById("but"+num);
	if(t)
	{
		t.style.visibility="hidden";
		if(navigator.userAgent.indexOf("Safari")!=-1)
		{
			t.style.left=0;
			t.style.top=0;
		}
	}
	if(num == "1" || num == "2" || num == "3")
	{
		var onum = (parseInt(num)+7);
		var t=document.getElementById("but"+onum);
		if(t)
		{
			t.style.visibility="hidden";
			if(navigator.userAgent.indexOf("Safari")!=-1)
			{
				t.style.left=0;
				t.style.top=0;
			}
		}
	}
}
function movieIsLoaded (theMovie)
{
	if (typeof(theMovie) != "undefined")
	{
		return theMovie.PercentLoaded() == 100;
	}
	else
	{
		return false;
	}
}
function orderconfirm(appendage)
{
	document.getElementById("jsdiv").innerHTML = "<img border=0 width=1 height=1 src='http://server.cpmstar.com/action.aspx?advertiserid=191&gif=1&subid=sale'>";
}
function refer(appendage)
{
	var cook = getCookie("referr");
	if(cook )
	{
		//if(getCookie("refer" + appendage))
		//{
		//	if(cook == '0')cook = '5';
		//	if(cook == '1')cook = '6';
		//	if(cook == '2')cook = '7';
		//	if(cook == '3')cook = '8';
		//	if(cook == '4')cook = '9';
		//}
		//else
		//	setCookie("refer" + appendage,cook,"/");
		//document.getElementById("jsdiv").innerHTML = "<font color=0>_</font><img height=1 width=1 border=0 src=\"http://www.nodiatis.com/cgi/dark.dll?" + appendage + cook + "\">";
		document.getElementById("jsdiv").innerHTML = "<font color=0>_</font><iframe style=\"width:0px; height:0px; border: 0px\" src=\"http://www.nodiatis.com/cgi/dark.dll?" + appendage + cook + "\"></iframe>";
	}
}
function playtrack(track)
{
	if(top.firstplay == 0)
	{
		top.firstplay = 1;
		refer("l");
	}
	if(navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
	{//FF
		if(movieIsLoaded(document.getElementById("ffmusic")))
		{
			//document.getElementById("ffmusic").Play();
			document.getElementById("ffmusic").GotoFrame((parseInt(track)+1)*4-1);
		}
		else
		{
			top.playtries++;
			if(top.playtries > 3)
			{
				top.playtries = 0;
			}
			else
				setTimeout("playtrack("+track+")","200");
		}
	}
	/*else if(navigator.userAgent.indexOf("Safari")!=-1)
	{//Chrome & Safari
		if(parseInt(track) <= 1)
		{
			document.getElementById("Safarimusic").innerHTML = '';
		}
		else
		{
			var musicTracks= new Array("Music_Intro","Music_Ambience_1","Music_Ambience_2","Music_Battle_1","Music_Battle_2","Music_Battle_Boss","Music_Store_1","Music_Store_2","Music_Store_3","Music_Store_4","Music_Store_5","Music_Town_Start","Music_Town_Loop");
			document.getElementById("Safarimusic").innerHTML = '<embed src="pub/' + musicTracks[parseInt(track)-2] + '.swf" mayscript swLiveConnect="true" loop="true" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="FFmusic" name="FFmusic" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		}
	}*/
	else
	{//IE
		if(movieIsLoaded(document.getElementById("music")))
		{
			//document.getElementById("music").Play();
			document.getElementById("music").GotoFrame((parseInt(track)+1)*4-1);
		}
		else
		{
			top.playtries++;
			if(top.playtries > 3)
			{
				top.playtries = 0;
			}
			else
				setTimeout("playtrack("+track+")","200");
		}
	}
}
function playho(name)
{
	if(navigator.userAgent.indexOf("Firefox")!=-1)
	{//FF
		if(!document.getElementById("ffsound"+5))
			return;
		document.getElementById("ffsound"+5).src = "pub/"+name+".swf";
	}
	else if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
	{//Chrome & Safari
		var i = 5;
		document.getElementById("Safarisound"+5).innerHTML = '<embed src="pub/'+name+'.swf" mayscript swLiveConnect="true" loop="false" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffsound'+i+'" name="ffsound'+i+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	}
	/* IF SAFARI USERS CANT HEAR SOUNDS ANYMORE UNCOMMENT THIS AND CHANGE ABOVE CHECK TO "Chrome" INSTEAD OF "Safari" which catches both
	else if(navigator.userAgent.indexOf("Safari")!=-1)
	{//Safari
		var i = 5;
		document.getElementById("Safarisound"+5).innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1" height="1" id="sound'+i+'" name="sound'+i+'" align="middle">\
			<param name="allowScriptAccess" value="always" />\
			<param name="movie" value="pub/'+name+'.swf" />\
			<param name="loop" value="false" />\
			<param name="play" value="true" />\
			<param name="menu" value="true" />\
			<param name="quality" value="high" />\
			<param name="bgcolor" value="#000000" />\
			<embed src="pub/'+name+'.swf" mayscript swLiveConnect="true" loop="false" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffsound'+i+'" name="ffsound'+i+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
		</object>';
	}*/
	else
	{//IE
		if(!document.getElementById("sound"+5))
			return;
		document.getElementById("sound"+5).movie = "pub/"+name+".swf";
	}
}
function playsound(name)
{
	if(!playsound.count || playsound.count >= 4)
		playsound.count = 1;
	else
		playsound.count++;

	if(navigator.userAgent.indexOf("Firefox")!=-1)
	{//FF
		if(!document.getElementById("ffsound"+playsound.count))
			return;
		document.getElementById("ffsound"+playsound.count).src = "pub/"+name+".swf";
	}
	else if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
	{//Chrome & Safari
		var i = playsound.count;
		document.getElementById("Safarisound"+playsound.count).innerHTML = '<embed src="pub/'+name+'.swf" mayscript swLiveConnect="true" loop="false" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffsound'+i+'" name="ffsound'+i+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	}
	/* IF SAFARI USERS CANT HEAR SOUNDS ANYMORE UNCOMMENT THIS AND CHANGE ABOVE CHECK TO "Chrome" INSTEAD OF "Safari" which catches both
	else if(navigator.userAgent.indexOf("Safari")!=-1)
	{//Safari
		var i = playsound.count;
		document.getElementById("Safarisound"+playsound.count).innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1" height="1" id="sound'+i+'" name="sound'+i+'" align="middle">\
			<param name="allowScriptAccess" value="always" />\
			<param name="movie" value="pub/'+name+'.swf" />\
			<param name="loop" value="false" />\
			<param name="play" value="true" />\
			<param name="menu" value="true" />\
			<param name="quality" value="high" />\
			<param name="bgcolor" value="#000000" />\
			<embed src="pub/'+name+'.swf" mayscript swLiveConnect="true" loop="false" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffsound'+i+'" name="ffsound'+i+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
		</object>';
	}*/
	else
	{//IE
		if(!document.getElementById("sound"+playsound.count))
			return;
		document.getElementById("sound"+playsound.count).movie = "pub/"+name+".swf";
	}
}
function settimings(t)
{
	top.timings = t;
	top.myint = setInterval("sendtime()",500);
}
function appstarted(t)
{
	top.AppStarted = 1;
	document.getElementById("jsdiv").innerHTML = '<font color=0>_</font>';//to clear load message
	if(top.javatim)
		clearTimeout(top.javatim);
	if(top.javaint)
		clearInterval(top.javaint);

	if(document.all)
	{
		//document.getElementById("app").attachEvent("onblur",DoBlur);
	}
	else
	{
		//document.getElementById("app").addEventListener("blur",DoBlur,false);
	}

}
function DoBlur()
{
	if(document.getElementById("app") && top.AppStarted==1)
			document.getElementById("app").SetBlur();
}
function sendtime()
{
	//this chunk 2 times
	var ref = "";
	var cookindex = location.href.lastIndexOf("?");
	if(cookindex >= 0 && location.href.length > cookindex+3)//ensures 3 chars or more
		ref = location.href.substring(cookindex+1);
	var cook = getCookie("referr");
	if(!cook)
		cook = "z";
	if(top.timings == null)
	{
		top.timings = Math.random()*99999999;
		top.timings = top.timings.toString();
		setCookie("timing",top.timings,"/");
	}

	if(document.getElementById("app") && top.AppStarted==1)
	{
		document.getElementById("app").SetTimings(top.timings,cook,ref,navigator.userAgent);
		if(top.appname != "dark.jar")
			document.getElementById("app").debug = true;
	}
	else
	{
		if(top.AppStarted != 1)
		{
		//	alert("app no start");
		}
		else
		{
			if(top.myint)
				clearInterval(top.myint);
		}
	}
}
function timeset(t)
{
	if(top.myint)
		clearInterval(top.myint);
}

//document
   var docapp = '';

   docapp = docapp + '\
	<table border="0" width="100%" id="table1" cellpadding="0" style="border-collapse: collapse" height="95%">\
	<tr>\
	<td>';
		
		if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
			docapp = docapp + '<div id="Safarimusic" style="position:absolute;display:block;visibility:hidden">';

		if(navigator.userAgent.indexOf("Firefox")==-1)
		{
			docapp = docapp + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1" height="1" id="music" name="music" align="middle">\
				<param name="allowScriptAccess" value="always" />\
				<param name="movie" value="pub/allmusic.swf" />\
				<param name="loop" value="true" />\
				<param name="play" value="true" />\
				<param name="menu" value="true" />\
				<param name="quality" value="high" />\
				<param name="bgcolor" value="#000000" />';
		}

		docapp = docapp + '<embed src="pub/allmusic.swf" mayscript swLiveConnect="true" loop="true" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffmusic" name="ffmusic" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		

		if(navigator.userAgent.indexOf("Firefox")==-1)
			docapp = docapp + '</object>';

		if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
			docapp = docapp + '</div>';

	for(var i = 1;i <= 5;i++)
	{
		if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
			docapp = docapp + '<div id="Safarisound'+i+'" style="position:absolute;display:block;visibility:hidden">';

		if(navigator.userAgent.indexOf("Firefox")==-1)
		{
			docapp = docapp + '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1" height="1" id="sound'+i+'" name="sound'+i+'" align="middle">\
				<param name="allowScriptAccess" value="always" />\
				<param name="movie" value="pub/empty.swf" />\
				<param name="loop" value="false" />\
				<param name="play" value="true" />\
				<param name="menu" value="true" />\
				<param name="quality" value="high" />\
				<param name="bgcolor" value="#000000" />';
		}


		docapp = docapp + '<embed src="pub/empty.swf" mayscript swLiveConnect="true" loop="false" play="true" menu="true" quality="high" bgcolor="#000000" width="1" height="1" id="ffsound'+i+'" name="ffsound'+i+'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';

		if(navigator.userAgent.indexOf("Firefox")==-1)
			docapp = docapp + '</object>';

		if(navigator.userAgent.indexOf("Safari")!=-1 || navigator.userAgent.indexOf("Opera")!=-1)
			docapp = docapp + '</div>';
	}

   docapp = docapp + '\
	<div align="center">\
	<table border="0" width="100%" id="table2" cellpadding="0" style="border-collapse: collapse" height="611">\
	<tr>\
	<td width=50%>\
	<center></center>\
	</td>\
	<td width=760>\
	<div id=ad1><center><img border=0 src=pub/c.gif width=728 height=94></center></div>\
	<p align="center">';

	//this chunk 2 times
	var ref = "";
	var cookindex = location.href.lastIndexOf("?");
	if(cookindex >= 0 && location.href.length > cookindex+3)//ensures 3 chars or more
		ref = location.href.substring(cookindex+1);
	var cook = getCookie("referr");
	if(!cook)
		cook = "z";
//alert("set cook " + cook);
	if(top.timings == null)
	{
		top.timings = Math.random()*99999999;
		top.timings = top.timings.toString();
		setCookie("timing",top.timings,"/");
	}

	if(navigator.userAgent.indexOf("Firefox")==-1)
	{
		docapp = docapp + '<OBJECT id="app" onblur="DoBlur()" name="app" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/jinstall-6u11-windows-i586.cab" WIDTH=760 HEIGHT=610 align="middle">\
		<PARAM name=code value=Dark.class>\
		<PARAM name=cache_archive value='+top.appname+'>\
		<PARAM name=cache_option value=No>\
		<PARAM name=type value="application/x-java-applet;version=1.4.2">\
		<PARAM name=scriptable value=true>\
		<param name=image value="pub/splash.gif">\
		<param name=portoff value=0>\
		<param name=nodeid value=111>\
		<param name=passtiming value="'+ref+'|'+cook+'|'+top.timings+'">\
		<param name=free value=1>\
		<param name=mayscript>\
		<PARAM name="java_arguments" value="-Xmx192m">\
		<PARAM name="separate_jvm" value="true">';
	}

   	docapp = docapp + '<EMBED passtiming="'+ref+'|'+cook+'|'+top.timings+'" id="app" name="app" type="application/x-java-applet;version=1.4.2" cache_archive='+top.appname+' cache_option=No CODE=Dark.class WIDTH=760 HEIGHT=610 align="middle" scriptable=true mayscript separate_jvm="true" java_arguments="-Xmx192m" image="pub/splash.gif" portoff=0 nodeid=111 free=1 pluginspage="http://java.sun.com/products/plugin/index.html#download" />';

	if(navigator.userAgent.indexOf("Firefox")==-1)
		docapp = docapp + '</OBJECT>';

   docapp = docapp + '\
	<font size=1 face="Georgia, Arial"><br>©2012 <a target=_blank href=http://www.glitchless.com/>Glitchless LLC</a><font color=#555555> | </font><a target=_blank href=http://www.nodiatis.com/pp.htm>PP</a><font color=#555555> | </font><a target=_blank href=http://www.nodiatis.com/tou.htm>ToU</a><font color=#555555> | </font><a target=_blank href=http://www.nodiatis.com/credits.htm>Credits</a><font color=#555555> | </font><a target=_blank href=http://www.nodiatis.com/personality.htm>RPG Test</a><font color=#555555> | </font><a target=_blank href=http://www.nodiatis.com/tops.htm>Tops List</a><font color=#555555> | </font><a target=_blank href=http://forums.nodiatis.com/forums/nodiatis-forums/>Forums</a></font>\
	</p>\
	<div id=ad2><center><a target=_blank href=http://www.racewarkingdoms.com><img align=middle id=adimg border=0 src=pub/banner1.gif></a></center></div>\
	</td>\
	<td width=50%>\
	<center></center>\
	</td>\
	</tr>\
	</table>\
	</div>\
<form id=form1 target=_blank action="https://www.paypal.com/cgi-bin/webscr" method="post">\
<input type="hidden" name="cmd" value="_xclick">\
<input type="hidden" name="business" value="orders@nodiatis.com">\
<input type="hidden" name="no_shipping" value="1">\
<input type="hidden" name="cancel_return" value="http://www.glitchless.com/ordercancel.htm">\
<input type="hidden" name="no_note" value="1">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form2 target=_blank action="https://www.paypal.com/cgi-bin/webscr" method="post">\
<input type="hidden" name="cmd" value="_xclick">\
<input type="hidden" name="business" value="orders@nodiatis.com">\
<input type="hidden" name="no_shipping" value="1">\
<input type="hidden" name="cancel_return" value="http://www.glitchless.com/ordercancel.htm">\
<input type="hidden" name="no_note" value="1">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form3 target=_blank action="https://www.paypal.com/cgi-bin/webscr" method="post">\
<input type="hidden" name="cmd" value="_xclick">\
<input type="hidden" name="business" value="orders@nodiatis.com">\
<input type="hidden" name="no_shipping" value="1">\
<input type="hidden" name="cancel_return" value="http://www.glitchless.com/ordercancel.htm">\
<input type="hidden" name="no_note" value="1">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form1b target=_blank action="https://nd1.nodiatis.com/cgi/dark.dll?genPBC" method="post">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form2b target=_blank action="https://nd1.nodiatis.com/cgi/dark.dll?genPBC" method="post">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form3b target=_blank action="https://nd1.nodiatis.com/cgi/dark.dll?genPBC" method="post">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<form id=form2c target=_blank action="https://nd1.nodiatis.com/cgi/dark.dll?genMAI" method="post">\
<input type="hidden" name="amount" value="">\
<input type="hidden" name="item_name" value="">\
<input type="hidden" name="item_number" value="">\
<input type="hidden" name="custom" value="">\
</form>\
<div id="dhtmlwindowholder"><span style="display:none">.</span></div>\
	</td>\
	</tr>\
	</table>\
   ';

document.write(docapp);

top.myint2 = setInterval("reposbuttons()",1000);
creategeneric("social.htm", 12, 319, 295, 60, 20);
//alert(navigator.userAgent);
//alert("1");

//-->

