// JavaScript Document
var xmlHttp
var id
function MakeXmlHttpObject(){
	var xmlHttp=null;
	try{
		// XmlHttpRequest para Firefox,Opera, Safari e derivados.
		xmlHttp = new XMLHttpRequest();
	}
	catch (e){
		// XmlHttpRequest para InternetExplorer.
		try{
			// Internet Explorer 6.0+
			xmlHttp = new
			ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
			// Internet Explorer.
			xmlHttp = new
			ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function stateChanged() {
	if (xmlHttp.readyState==4)
	{
		document.getElementById("resposta").innerHTML=xmlHttp.responseText;
		//alert(document.getElementById("resposta").innerHTML);
		document.getElementById("resposta").style.visibility = "visible";
		document.getElementById("resposta").style.display = "";
	}
}

function showHint(){
 navegador = navigator.appName;
if (navegador == "Microsoft Internet Explorer")
{
	window.onload = function(){document.getElementById("FlashID").style.height = "701px"; document.getElementById("FlashID").style.width = "500px";}
			document.getElementById("resposta").style.visibility = "visible";
		document.getElementById("resposta").style.display = "";
}
else
{
	xmlHttp=MakeXmlHttpObject()
	if (xmlHttp==null){
		alert ("O browser nao suporta AJAX!");
	return ;
	}	
	rand=Math.floor(Math.random( ) * (999999999+1));
	var pedido="banner.php?rand="+rand;
	xmlHttp.onreadystatechange = stateChanged;
	xmlHttp.open("GET",pedido,true);
	xmlHttp.send(null);
}
}
