function updateScroller(wanted)
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Geez man, update your browser!");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			returned = xmlHttp.responseText;
			cross_marquee=document.getElementById("vmarquee")

			sliced = returned.split(":::::");
			returned = sliced[1];
			stamp = sliced[0];

			if(returned == '0')
				isnew = 0;
			else
				isnew = 1;
		}
	}
	xmlHttp.open("GET","http://www.dancegamesolutions.com/thelatest.php?stamp=" + stamp, true);
	xmlHttp.send(null);
}
var stamp = 0;
var returned = '';
var c = 0;
var i = 0;
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
var isnew = 0
function scrollmarquee()
{
	//if scroller hasn't reached the end of its height
	if(parseInt(cross_marquee.style.top)>(actualheight*(-1)+4))
		//move scroller upwards
		cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" ;
	else 
	{
		//else, reset to original position
		cross_marquee.style.top=parseInt(marqueeheight)+8+"px";
		
		if(isnew)
		{
			cross_marquee.innerHTML = returned;
			actualheight=cross_marquee.offsetHeight;
		}
	}
}

function initializemarquee()
{
	cross_marquee=document.getElementById("vmarquee")
	marqueeheight=document.getElementById("marqueecontainer").offsetHeight

	//height of marquee content (much of which is hidden from view)
	actualheight=cross_marquee.offsetHeight 

	if (navigator.userAgent.indexOf("Netscape/7")!=-1)
	{ 
		//if Opera or Netscape 7x, add scrollbars to scroll and exit
		cross_marquee.style.height=marqueeheight+"px"
		cross_marquee.style.overflow="scroll"
		return
	}
	setTimeout('lefttime=setInterval("scrollmarquee()",50)', delayb4scroll)
	updateScroller();
	setTimeout('lefttime=setInterval("updateScroller()",60000)', delayb4scroll)
}

if (window.addEventListener)
	window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
	window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
	window.onload=initializemarquee