var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", "visitor-count.css");
document.getElementsByTagName("head")[0].appendChild(fileref);

var fileName='http://www.3DiCD.com/art/total-visitors.php'
	
function getTotalVisitors()
{
	//alert('getLocalTracks');
	oxmlhttp = null;
	try
	{
		oxmlhttp = new XMLHttpRequest();
		oxmlhttp.overrideMimeType("text/xml");
		//alert('try oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");');
	}
	catch(e)
	{
		try
		{
			oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			//alert('(e)try oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");');
		}
		catch(e)
		{
			//alert('catch oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");');
			return null;
		}
	}
	if(!oxmlhttp) return null;
	try
	{
	   oxmlhttp.open("POST",fileName,false);
	   oxmlhttp.send(null);
	}
	catch(e)
	{
	   return null;
	}
	//alert(oxmlhttp.responseText);
	
	//document.getElementById('total').value=oxmlhttp.responseText;
	document.getElementById("total").innerHTML="<b>Come and join the "+oxmlhttp.responseText+" music fans already enjoying the 3DiCD full album experience</b>";
	var t=setTimeout("goAgain()",1000);
	
	//goTracks(oxmlhttp.responseText);
}

function goAgain()
{
	getTotalVisitors();
}


