function addLoadEvent(func) {
	if ( typeof wpOnload != "function" ) {
		wpOnload = func;
	} else {
		var oldonload = wpOnload;
		wpOnload = function() {
			oldonload();
			func();
		}
	}
}

function hover(obj){
  	if(document.all){
    	UL = obj.getElementsByTagName('ul');
    	if(UL.length > 0){
      		sousMenu = UL[0].style;
      		if(sousMenu.display == 'none' || sousMenu.display == ''){
        		sousMenu.display = 'block';
      		}else{
        		sousMenu.display = 'none';
      		}
    	}
  	}
}

function setHover(){
  	// menu 1
  	LI1 = $('menu').getElementsByTagName('li');
  	nLI1 = LI1.length;
  	for(i=0; i < nLI1; i++){
    	LI1[i].onmouseover = function(){
      		hover(this);
    	}
    	LI1[i].onmouseout = function(){
      		hover(this);
    	}
  	}
}

function $() {
	if (arguments.length == 1) return get$(arguments[0]);
	var elements = [];
	$c(arguments).each(function(el){
		elements.push(get$(el));
	});
	return elements;

	function get$(el){
		if (typeof el == 'string') el = document.getElementById(el);
		return el;
	}
}