function abre_atendimento(sURL){
newwindow=open(sURL,"atendimento","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,status=no,width=450,height=400, top=50, left=50");
}
var w=1
var h=1
function pegatrail() {
if (document.getElementById) return document.getElementById("foto").style
else if (document.all) return document.all.foto.style
}
function bodyok() {
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function esconder() {
document.onmousemove=""
pegatrail().visibility="hidden"
pegatrail().left=-1000
pegatrail().top=0
}
function mostrar(arquivo,descricao) {
w=260
h=228
pegatrail().visibility="visible"
pegatrail().width=w+"px"
pegatrail().height=h+"px"
document.getElementById("preview").innerHTML= "<img src='"+arquivo+"'/>"
document.getElementById("previewdesc").innerHTML = descricao; 
document.onmousemove=seguirmouse
}
function seguirmouse(e) {
var xcoord=1
var ycoord=1
if (typeof e != "undefined") {
xcoord+=e.pageX
ycoord+=e.pageY
}
else if (typeof window.event !="undefined") {
xcoord+=bodyok().scrollLeft+event.clientX
ycoord+=bodyok().scrollTop+event.clientY
}
var docwidth=document.all? bodyok().scrollLeft+bodyok().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.max(bodyok().scrollHeight, bodyok().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
if (xcoord+w+3>docwidth)
xcoord=xcoord-w-(20*2)
if (ycoord-bodyok().scrollTop+h>bodyok().clientHeight)
ycoord=ycoord-h-20;
pegatrail().left=xcoord+"px"
pegatrail().top=ycoord+"px"
}


function checaformCont(){
	
	if(document.formCont.nome.value=="" )
	{
		alert( "Digite seu Nome" );
			document.formCont.nome.focus();
				return false;
	}

	if(document.formCont.email.value=="" )
	{
		alert( "Digite seu E-mail" );
			document.formCont.email.focus();
				return false;
	}

	if(document.formCont.mensagem.value=="" )
	{
		alert( "Digite sua Mensagem" );
			document.formCont.mensagem.focus();
				return false;
	}
	
return true;
}
	
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}