<!--Menues  -->
    activateMenu = function(nav) {
	    if(document.all && document.getElementById(nav).currentStyle){
	        // only MSIE supports document.all
            var navroot = document.getElementById(nav);

            /* Get all the list items within the menu */
            var lis=navroot.getElementsByTagName("LI");
            for(i=0;i<lis.length;i++){
                /* If the LI has another menu level */
                if(lis[i].lastChild.tagName=="UL"){
                    /* assign the function to the LI */
                    lis[i].onmouseover=function(){
                        /* display the inner menu */
                        this.lastChild.style.display="block";
                    }
                    lis[i].onmouseout=function(){
                        this.lastChild.style.display="none";
                    }
                }
            }
        }
    }
    window.onload=function(){
        // pass the function the id of the top level UL
        // remove one, when only using one menu
        activateMenu('dmenu');
		//activateMenu('buscador_advanced');
    }
	
<!--Mostrar filas  -->
function MostrarFilas(Fila) {
var elementos = document.getElementsByName(Fila);
    for (i = 0; i< elementos.length; i++) {
        if(navigator.appName.indexOf("Microsoft") > -1){
               var visible = 'block'
        } else {
               var visible = 'table-row';
        }
	elementos[i].style.display = visible;
        }
}
 
function OcultarFilas(Fila) {
    var elementos = document.getElementsByName(Fila);
    for (k = 0; k< elementos.length; k++) {
               elementos[k].style.display = "none";
    }
}

<!--Slide  -->
		var theInt = null;
		var $crosslink, $navthumb;
		var curclicked = 0;
		
		theInterval = function(cur){
			clearInterval(theInt);
			
			if( typeof cur != 'undefined' )
				curclicked = cur;
			
			$crosslink.removeClass("active-thumb");
			$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
			
			theInt = setInterval(function(){
				$crosslink.removeClass("active-thumb");
				$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
				curclicked++;
				if( 3 == curclicked )
					curclicked = 0;
				
			}, 4000);
		};
		
		$(function(){
			
			$("#main-photo-slider").codaSlider();
			
			$navthumb = $(".nav-thumb");
			$crosslink = $(".cross-link");
			
			$navthumb
			.click(function() {
				var $this = $(this);
				theInterval($this.parent().attr('href').slice(1) - 1);
				return false;
			});
			
			theInterval();
		});
