<!--
window.defaultStatus = document.title;
// Switch Menu script- by Martial B of http://getElementById.com
if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

timeout =180;
function Janela(URL, WIDTH, HEIGHT) {
windowprops = "left=12,top=10,width=" + (WIDTH) + ",height=" + (HEIGHT);
text = "<html><head><title> ...::::: Astronomia no Zênite :::::... </title><meta http-equiv=\"imagetoolbar\" content=\"no\"></head><body scroll=no leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "><center><table border=0 cellpadding=0 cellspacing=0><tr><td background='" + URL + "'><img src=\"http://www.zenite.nu/figs/sep.gif\" border=0 width='" + WIDTH + "' height='" + HEIGHT + "'></td></tr></table>";
if (timeout != 0) text += "</center></body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

function BookMark(url,title) {
    if (window.sidebar) window.sidebar.addPanel(title, url,"");
    else if(window.opera && window.print){
        var mbm = document.createElement('a');
        mbm.setAttribute('rel','sidebar');
        mbm.setAttribute('href',url);
        mbm.setAttribute('title',title);
        mbm.click();
    }
    else if(document.all){window.external.AddFavorite(url, title);}
}

// Cortesia de SimplytheBest.net - http://simplythebest.net/scripts/
var win = null;
function AbreJanela(page,name,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(page,name,settings)
}

function Prepara(URL) {
preview = window.open(URL,"","width=800,height=600,top=0,left=0,resizable=no,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no")
}

function Pesquisa() { window.open('calc/geopen1.htm','',"top=35,left=160,width=316,height=500,status=no,location=no,directories=no,scrolling=auto,toolbar=no,resizable=no,scrollbars=no"); 
}

a = new Array ('num-sol.php','num-mer.php','num-ven.php','num-ter.php','num-mar.php','num-jup.php','num-sat.php','num-ura.php','num-net.php','num-plu.php','num-lua.php','num-cer.php','num-eri.php')
function fichatec(n) {
pa = "http://www.zenite.nu/05/" + a[n];
window.open(pa,'',"top=10,left=10,width=610,height=400,status=no,location=no,scrolling=auto,toolbar=no,scrollbars=yes"); }

function playSound(){ document.homer.play(); }
// -->
