/*
EXIBIR FLASH NA TELA
*/
function flash(caminho, largura, altura) {
	var getvars = window.location.search.substr(1);
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largura+'" height="'+altura+'">');
	document.write('<param name="movie" value="'+caminho+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="window">');
	document.write('<param name="FlashVars" value="'+getvars+'">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+caminho+'" FlashVars="'+getvars+'" quality="high" wmode="window" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
	document.write('</object>');
}
//
//
/*
APAGAR DIVS DE TEXTOS HTML
*/
apagadiv = function () {
	document.getElementById("centraliza").style.display = "none";
	document.getElementById("quadro").style.display = "none";
	document.getElementById("quadro").innerHTML = "";
	// abrepop
	//window.open('10k/pop.html' , '10kwdw' , 'width=350 , height=300');
};
//
//
/*
ACESSO DOS DADOS NEOASSIST
*/
var xmlhttp;
function mostrartexto(path) {
	path = unescape(path);
	//alert(path);
	//console.log(path);
	//
	//
	//cria objeto xmlhttp para mozilla ou ie
	xmlhttp = null;
	// code for Mozilla, etc.
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	// code for IE   
	if (xmlhttp != null) {
		//aciona objeto xmlhttp e busca dados
		xmlhttp.onreadystatechange = function() {
			
			if (xmlhttp.readyState == 4) {
				
				if (xmlhttp.status == 200) {
					//
					//
					textoxml = xmlhttp.responseXML;
					
					if (textoxml.getElementsByTagName('texto')[0].childNodes.length>1) {
						//É FIREFOX
						var texto = textoxml.getElementsByTagName('texto')[0].childNodes[1].data;
					} else {
						//É IE
						var texto = textoxml.getElementsByTagName('texto')[0].childNodes[0].nodeValue;
					}
					//mostra layers pra receber o texto
					document.getElementById("centraliza").style.display = "block";
					document.getElementById("quadro").style.display = "block";
					document.getElementById("quadro").innerHTML = texto;
					//
				}
			}
		};
		
		//Agradeço a santo yahoo pelo proxy alcançado
		xmlhttp.open("GET", "http://www.nikevoce.com.br/proxy.php?yws_path="+encodeURIComponent(path), true);
		xmlhttp.send(null);
	} else {
		alert("Your browser does not support XMLHTTP.");
	}
	//
}







