// JavaScript Document


function submitPopup(popURL, popControl, popSettings) {
	aWin=window.open(popURL,popControl,popSettings); 
	//,top="popTop",left="popLeft""'"); 
	aWin.focus();
		
}


// Show/Hide div Info Script
// Used mainly on the Contact Page to display Phones and Emails
function showInfo(objectID1, objectID2){
	document.getElementById(objectID1).style.display="block";
	document.getElementById(objectID2).style.display="none";
}
function hideInfo(objectID1, objectID2){
	document.getElementById(objectID1).style.display="none";
	document.getElementById(objectID2).style.display="block";
}


// Accessibility Scripts
// Change Size of Text
function AltTamFonte(tamfonte, image){ 
csstamfonte=tamfonte; 
imageurl=image;
document.getElementById("stylenormal").setAttribute("href",csstamfonte);

if (imageurl==1){
document.getElementById("small").setAttribute("src","/images/smalltextover.gif");
document.getElementById("big").setAttribute("src","/images/bigtext.gif");
} else {
document.getElementById("small").setAttribute("src","/images/smalltext.gif");
document.getElementById("big").setAttribute("src","/images/bigtextover.gif");
}
 
} 



// Page Preload Script
function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById('prepage').style.visibility='hidden';
}else{
if (document.layers){ //NS4
document.prepage.visibility='hidden';
}
else { //IE4
document.all.prepage.style.visibility='hidden';
}
}
}


// Disable Right Click Button
function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")