$(document).ready(function(){
    $('select').jqTransSelect();
    $('nav  > ul > li').hover(function(){
        clearTimeout($(this).data('to'));
        var self = this;
        if(!$('ul', self).is(':visible')){
            var to = setTimeout(function(){
                $('a', self).eq(0).trigger('click');
            }, 200);
            $(this).data('to', to); 
        }
    },function(){
        clearTimeout($(this).data('to'));
        var self = this;
        var to = setTimeout(function(){
            $('ul', self).slideUp('fast');
        }, 200);
        $(this).data('to', to); 
    });
    
    $('nav  > ul > li > a')
    .hover(
    function(){ $(this).parent().addClass("over") },
    function(){ $(this).parent().removeClass("over") })
	.bind('click', function() {
	    if($(this).next()[0]){
    	    clearTimeout($(this).parent().data('to'));
            $(this).next().slideDown('fast');
            return false;
        }
	});
});
	
		function Busca(theForm){
		if(theForm.busca.value==""){
			alert("Digite a palavra que deseja pesquisar!");
			theForm.busca.focus();
			return false;	}
		var texto = theForm.busca.value
  		if (texto.length < 2){
  			alert("Digite no mínimo 3 caracteres da palavra que deseja pequisar!.");
    		theForm.busca.focus();
    		return false;	}};
