function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function popup(){
	window.open("http://www.inesul.edu.br/hotsites/vestibular2006Etapa2/", '', "width=600, height=315, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no");
}

function popup2(cod){
	window.open("http://www.inesul.edu.br/jogos/admJogos/indexResumoJogo.php?codJogo="+cod, '', "width=760, height=490, scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no");
}
function popup(Arquivo,H,W){
	window.open(Arquivo,"new_window","height="+H+",Width="+W+",scrollbars=yes,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no");
	window.open(Arquivo,"new_window","fullscreen,scrollbars=no");
}
function openWin(theURL,winName,features) {
	window.open(theURL,winName,features);
}
function listaemail(){
	window.open("http://www.inesul.edu.br/lista-email.php", 'lista', "width=600, height=490, scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no");
}
	
/*function show2(object) {
	if (document.layers && document.layers[object])
		document.layers[object].visibility = 'visible';
	else if (document.all)
		document.all[object].style.visibility = 'visible';
}*/
function hide(object) {
	var alvo = document.getElementById(object);
	alvo.style.visibility = 'hidden';
}
function show(object) {
	var alvo = document.getElementById(object);
	alvo.style.visibility = 'visible';
}
/*function hide2(object) {
	if (document.layers && document.layers[object])
		document.layers[object].visibility = 'hidden';
	else if (document.all)
		document.all[object].style.visibility = 'hidden';
}*/


function noticia(msg) {
	// Begin - SCRIPT DE NOTÍCIA - ROLAR AUTOMÁTICO
	//scroller width 
	var swidth=471 
	//scroller height 
	var sheight=80 
	//scroller's speed; 
	var sspeed=7
	var wholemessage='' 
	//text: change to your own 
	wholemessage='<font face=Verdana size=2>' + msg + '</font>'
}
function start(){ 
	if (document.all) return 
	if (document.getElementById){ 
		document.getElementById("slider").style.visibility="show" 
		ns6marquee(document.getElementById('slider')) 
	} 
	else if(document.layers){ 
		document.slider1.visibility="show" 
		ns4marquee(document.slider1.document.slider2) 
	} 
} 
function ns4marquee(whichlayer){ 
	ns4layer=eval(whichlayer) 
	ns4layer.document.write(wholemessage) 
	ns4layer.document.close() 
	sizeup=ns4layer.document.height 
	ns4layer.top-=sizeup 
	ns4slide() 
} 
function ns4slide(){ 
	if (ns4layer.top>=sizeup*(-3)){ 
		ns4layer.top-=sspeed 
		setTimeout("ns4slide()",100) 
	} else{ 
		ns4layer.top=sheight 
		ns4slide() 
	} 
} 
function ns6marquee(whichdiv){ 
	ns6div=eval(whichdiv) 
	ns6div.innerHTML=wholemessage 
	ns6div.style.top=sheight 
	sizeup=sheight 
	ns6slide() 
} 
function ns6slide(){ 
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){ 
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed 
		setTimeout("ns6slide()",100) 
	}else{ 
		ns6div.style.top=sheight 
		ns6slide() 
	} 
} 

