// JavaScript Metalite

function MM_jumpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if(restore) selObj.selectedIndex=0;
}

function carregaFlash(caminho,largura,altura) {
   document.write('<object type="application/x-shockwave-flash" data="'+caminho+'" width="'+largura+'" height="'+altura+'">');
   document.write('<param name="movie" value="'+caminho+'">');
   document.write('<param name="quality" value="high">');
   document.write('<param name="bgcolor" value="#FFFFFF">');
   document.write('<param name="wmode" value="transparent">');
   document.write('<param name="menu" value="false">');
   document.write('</object>');
}

function verifica(alpha) {
	if (alpha == teste) {
		document.getElementById("submenu_ogrupo").style.display = 'block'
		document.getElementById("submenu_noticias").style.display = 'none'
	} else {
		document.getElementById("submenu_ogrupo").style.display = 'none'
		document.getElementById("submenu_noticias").style.display = 'block'
	}
}

var win = null;
function NewWindow(mypage,myname,w,h){
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(mypage,myname,settings)
}
	
function verifica_out(beta){
	document.getElementById(beta).style.display = 'none'
}

$(function(){
	$('#menu li a').click(function(){
		$('.sub').hide('show');
		
		if($(this).parent().find('.sub').is(':visible')){
			$(this).parent().find('.sub').hide('show');
			
		}else{
			$(this).parent().find('.sub').show('show');
		}
	})
})
