// Função Popup: <a href="arquivo.ext" onclick="popup(this.href,'360','535','1'); return false;"></a>
function popup(url,w,h,s) {
    var oW=window.open(url,'popup','width='+w+',height='+h+',directories=0,location=0,menubar=0,resizable=0,scrollbars='+s+',status=0,toolbar=0,marginleft=0,margintop=0,left='+(((screen.availWidth-w)/2)+-10)+',top='+(((screen.height-h)/2)+-10));
}

// Função Submenu
function submenu() {
	if ((document.getElementById("submenu").style.display == "none") || (document.getElementById("submenu").style.display == "")) {
		document.getElementById("submenu").style.display = "block";
		document.getElementById("submenuPai").className = "over";
	} else {
		document.getElementById("submenu").style.display = "none";
		document.getElementById("submenuPai").className = "out";
	}
}

function ismaxlength(obj, mlength)
{
   if (obj.getAttribute && obj.value.length>mlength)
	   obj.value=obj.value.substring(0,mlength)
}

function mascara(o,f)
{
   v_obj=o
   v_fun=f
   setTimeout("execmascara()",1)
}

function execmascara()
{
   v_obj.value=v_fun(v_obj.value)
}

function soNumeros2(v){
   v = v.replace(/\D/g,"")
   return v;
}



$(document).ready(function(){

    $('#topo .menu_Idiomas div').hover(
    
        function(){
            $(this).find('a').addClass('hover');
        },
        function(){
            $(this).find('a').removeClass('hover');
        }
    );
  
});



