
function mostraImgCampanha(imageName,imageWidth,imageHeight,alt) {
	posTop = (screen.availHeight/2-imageHeight/2);
	posLeft = (screen.availWidth/2-imageWidth/2);

	newWindow = window.open("","Volvo","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>Volvo Financial Services</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div style=\"position:absolute; left:0px;bottom:0px;width:100%;background-color:#FFFFFF;filter:progid:DXImageTransform.Microsoft.alpha(opacity=80);-moz-opacity: 0.8;opacity: 0.8;font:11px Arial,Tahoma;padding:5px;\">'+alt+'</div>');
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function janela_enquete(){
	posTop = (screen.availHeight/2-200/2);
	posLeft = (screen.availWidth/2-350/2);
	enquete = window.open('','enquete','width=350,height=150,scrollbars=1,top='+posTop+',left='+posLeft+'');
	enquete.focus();
}

function abreJanela(theURL,winName,w,h,s,r) { 
	var top = (screen.availHeight/2-h/2);
	var left = (screen.availWidth/2-w/2);
	window.open(theURL,winName,'width='+w+',height='+h+',scrollbars='+s+',resizable='+r+',top='+top+',left='+left);
}

function mostra(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	el.style.display = "block";
	}
}

function esconde(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	el.style.display = "none";
	}
}

