 jQuery.noConflict();
var timer;

function ActivarPestanna(li, idCapa)
{
       document.getElementById('l1').className="";
       document.getElementById('l2').className="";
       document.getElementById('l3').className="";
       document.getElementById('l' + idCapa).className="selected";
       document.getElementById('1').style.display = 'none';
       document.getElementById('2').style.display = 'none';
       document.getElementById('3').style.display = 'none';
       document.getElementById(idCapa).style.display = 'block';
       
     
}



function ActivarPestanna2(li, idCapa)
{
 
       document.getElementById('l4').className="";
       document.getElementById('l5').className="";
       document.getElementById('l6').className="";
       document.getElementById('l' + idCapa).className="selected";
       document.getElementById('4').style.display = 'none';
       document.getElementById('5').style.display = 'none';
       document.getElementById('6').style.display = 'none';
       document.getElementById(idCapa).style.display = 'block';
}

    jQuery(document).ready(function() {
        
         jQuery("#Menu li a").bind("click", function(event){
                   OcutalMenu();
                   var $target = jQuery(event.target);
                   $target.next().show();
                   
        });
     
     jQuery("#ctl00_ContentPlaceHolder1_txtBusqueda").bind("click",function(event)
        {
            jQuery(this).val("");
        });
        
         jQuery("#buscar").bind("click",function(event)
        {
            jQuery(this).val("");
        });
});
    
 
  
      
  function EnviarForm()
  {
    jQuery("#q").val(jQuery("#buscar").val());
    jQuery("#cse-search-box").submit();
  }


 function OcutalMenu()
 {
    jQuery("#Menu ul").hide();
 }
 
 
 function MostrarOpcion(seleccion)
 { 
    OcutalMenu();
    var elementoSeleccionado = jQuery("#" + seleccion).parent().parent();
    elementoSeleccionado.show();
 }
 
 
 
 
 function AddFavorite()
 {
        var url = "http://www.rcdmallorca.es";
        var title = "RCD Mallorca";
  
        if (window.sidebar) { // Mozilla Firefox Bookmark  
            window.sidebar.addPanel(title, url,"");  
        } else if( window.external ) { // IE Favorite  
            window.external.AddFavorite( url, title);  
        } else if(window.opera) { // Opera 7+  
            return false; // do nothing - the rel="sidebar" should do the trick  
        } else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)  
             alert('Unfortunately, this browser does not support the requested action,'  
             + ' please bookmark this page manually.');  
        }  
 }
 
  


    
    
    
    





