﻿							
var count=0;

if (window.location.href.toLowerCase().indexOf("/game/")<0)
	count=5;
else
	count=11;

	
var myInterval;
function startcounter()
{
		myInterval = window.setInterval(setIt,1000);
}

function setIt()
{
	document.getElementById('counter').innerHTML=count;
	count = count - 1;
	if (count == -1)
	{
		window.clearInterval(myInterval);
		document.getElementById('one').style.visibility = 'hidden';
		document.getElementById('two').style.visibility='';
	}
}
 	
function render()
{
	document.getElementById('one').style.visibility = 'hidden';
	document.getElementById('two').style.visibility='';
} 



<!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
function AssignPosition(d) {
if(self.pageYOffset) {
	rX = self.pageXOffset;
	rY = self.pageYOffset;
	}
else if(document.documentElement && document.documentElement.scrollTop) {
	rX = document.documentElement.scrollLeft;
	rY = document.documentElement.scrollTop;
	}
else if(document.body) {
	rX = document.body.scrollLeft;
	rY = document.body.scrollTop;
	}
if(document.all) {
	cX += rX; 
	cY += rY;
	}
d.style.left = (cX+10) + "px";
d.style.top = (cY+10) + "px";
}
function HideContent() {
var d="Popin";
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(msg) {
var d="Popin";
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
dd.style.display = "block";
dd.firstChild.nodeValue=msg;
}
function ReverseContentDisplay() {
var d="Popin";
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
}

function showPopin(which)
{
	switch(which)
	{
		case 1: //ScreeName
			ShowContent('Screen Name must be a unique name that no one else has used.  It is recommended that you do not use your first name, and especially not your last name.  Your screen name will be used to identify you on your game page or any other area of this site that will display your screen name such as chat and forums.  Choose a good name because you cannot change it afterwards.');
			break;
		case 2: //Email
			ShowContent('Email will be your primary way of getting notified when you forget your password, to recieve notifications, or send and receive email regarding a game item you have for trade or sell, or other site messages.');
			break;
		case 3: //Password
			ShowContent('Password is how you will log into your account. It must be secure and something that only you will know and will not forget.');
			break;
		case 4: //Referral
			ShowContent('We would appreciate to know how you heard about this website, whether from friend, a specific search engine (which one and what did you search for), an external website, or some other method.');
			break;
	}
}


