function $(id) {
    return document.getElementById(id)
}
function doObj(o){
    if(typeof o=="string"){
		o=$(o);
	}
    return o
}
function addEvent(o,evtype,fn){
    o=doObj(o)
    if(o.addEventListener){
        o.addEventListener(evtype,fn,true)
    }else{
        o.attachEvent("on"+evtype,fn)
    }
}
tms=new Array()
//Mostra o submenu no mouseover
function over(n){
	if(typeof(tms[n])!="undefined")clearTimeout(tms[n])
	document.getElementById("s"+n).style.visibility="visible"
}
//Esconde o submenu no mouseout
function out(n){
	tms[n]=setTimeout('document.getElementById("s'+n+'").style.visibility="hidden"',500)
}
//abre janela
function abreW(URL,Nome,caract) {
  window.open(URL,Nome,caract);
}

// banner expansivel
// utiliza jquery sem conflito
jQuery.noConflict();
jQuery(document).ready(function($){
	$("#banner_exp").addClass('fechado');
	$("#banner_exp").mouseover(function(){
	  $(this).addClass('aberto');
	  $(this).removeClass('fechado');
	});
	$("#banner_exp").mouseout(function(){
	  $(this).addClass('fechado');
	  $(this).removeClass('aberto');
	});
});
