function v(caminho,largura,altura,vars)
{
	
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+largura+'" height="'+altura+'">');
document.write('<param name="movie" value="'+caminho+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="Flashvars" value="'+vars+'">');
document.write('<param name="wmode" value="transparent">');
document.write('<param name="menu" value="false">');
document.write('<embed src="'+caminho+'" quality="high" wmode="transparent" Flashvars="'+vars+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+largura+'" height="'+altura+'"></embed>');
document.write('</object>');
	
	
}




function valida (nomeform)
{
    if (nomeform.nome.value<2)
    {
        alert ("\nPor favor digite o nome.");
        return false;
    }
    if (nomeform.email.value=="" || nomeform.email.value.indexOf('@', 0) == -1 || nomeform.email.value.indexOf('.', 0) == -1)
    {
        alert ("\nE-mail inválido.");
        return false;
    }
   /* if (nomeform.fone.value<8)
    {
        alert ("\nPor favor digite seu telefone corretamente.");
        return false;
    }*/
    if (nomeform.comentario.value.length=="")
    {
        alert ("\nFaça um comentário, isto é muito importante para nós.");
        return false;
    }


return true;
}





function exibetexto(exibe,cor,reg)
{
	
	///xml
	if (window.XMLHttpRequest)
  	{//para IE7+, Firefox, Chrome, Opera, Safari
  	xmlhttp=new XMLHttpRequest();
  	}
	else
  	{// para IE6, IE5
  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	xmlhttp.open("GET","xml.xml",false);
	xmlhttp.send();
	xmlDoc=xmlhttp.responseXML;
	//fim xml
	
	
	
	///exibe conteudos	
	document.getElementById('rsp').style.backgroundColor = cor;
	document.getElementById('rsp').innerHTML = xmlDoc.getElementsByTagName("exibe")[reg].childNodes[0].nodeValue;
	if(exibe=='h')
	{
		document.getElementById('rsp').style.color = "#000000";	
		
	}
	else if(exibe=='d')
	{
		document.getElementById('rsp').style.color = "#000000";	
	}
	else if(exibe=='m')
	{
		document.getElementById('rsp').style.color = "#000000";	
	}
	else if(exibe=='r')
	{
		document.getElementById('rsp').style.color = "#000000";	

	}
	else if(exibe=='a')
	{
		document.getElementById('rsp').style.color = "#FFFFFF";		
	}
	
	else
	{
		document.getElementById('rsp').style.visibility="hidden";
	}
	
	
}


function exibeMSG(resp)
{
	
	///xml
	if (window.XMLHttpRequest)
  	{//para IE7+, Firefox, Chrome, Opera, Safari
  	xmlhttp=new XMLHttpRequest();
  	}
	else
  	{// para IE6, IE5
  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	
	
	xmlhttp.open("GET","xml.xml",false);
	xmlhttp.send();
	xmlDoc=xmlhttp.responseXML;
	//fim xml
	
	if(resp=='')
	{
		document.getElementById('r').style.visibility="hidden";
	}
	else
	{
	//exibe conteudos	
	//document.getElementById('r').style.backgroundColor = "#D40000";
	document.getElementById('r').innerHTML = xmlDoc.getElementsByTagName("exibe")[resp].childNodes[0].nodeValue;
	}
	
	
	
	

	
	
	
}


function exibetexto2(exibe,cor,reg,resp)
{
	
	///xml
	if (window.XMLHttpRequest)
  	{//para IE7+, Firefox, Chrome, Opera, Safari
  	xmlhttp=new XMLHttpRequest();
  	}
	else
  	{// para IE6, IE5
  	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	xmlhttp.open("GET","xml.xml",false);
	xmlhttp.send();
	xmlDoc=xmlhttp.responseXML;
	//fim xml
	
	
	
	///exibe conteudos	
	document.getElementById('rsp2').style.backgroundColor = cor;
	document.getElementById('rsp2').innerHTML = xmlDoc.getElementsByTagName("exibe")[reg].childNodes[0].nodeValue;
	if(exibe=='h')
	{
		document.getElementById('rsp2').style.color = "#000000";	
		
	}
	else if(exibe=='d')
	{
		document.getElementById('rsp2').style.color = "#000000";	
	}
	else if(exibe=='m')
	{
		document.getElementById('rsp').style.color = "#000000";	
	}
	else if(exibe=='r')
	{
		document.getElementById('rsp').style.color = "#000000";	

	}
	else if(exibe=='a')
	{
		document.getElementById('rsp').style.color = "#FFFFFF";		
	}
	
	else
	{
		document.getElementById('rsp').style.visibility="hidden";
	}
	
	
}




<!--
function abrecentro(url,largura,altura) 
{
 var width  = largura;
 var height = altura;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'abrecentro', params);
 if (window.focus) {novajan.focus();}
 return false;
}
// -->
<!--
function abrecentro2(largura,altura) 
{

 url = 'mostratapetes.php';
 var width  = largura;
 var height = altura;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=yes';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'abrecentro', params);
 if (window.focus) {novajan.focus()}
 return false;
}
// -->






function carregaIMG(exibe,w,h)
{
	
	
	$('#img').hide(0);
    $('#img').fadeIn('fast');		
	//document.getElementById('img').innerHTML = "<img src='i/vars/"+exibe+"' border='0' align='absmiddle' width='"+w+"'  height='"+h+"'>";

	document.getElementById('img').innerHTML = "<img src='i/vars/"+exibe+"' border='0' align='absmiddle' width='"+w+"'  height='"+h+"'>";
	
	
}
