$(document).ready(function(){
    $("ul#menu_principal").supersubs({
        minWidth: 10, // minimum width of sub-menus in em units 
        maxWidth: 20, // maximum width of sub-menus in em units 
        extraWidth: 1 // extra width can ensure lines don't sometimes turn over 
        // due to slight rounding differences and font-family 
    }).superfish({
        animation: {
            height: 'show'
        }, // slide-down effect without fade-in 
        delay: 1200 // 1.2 second delay on mouseout 
    });
    
});
  google.load('search', '1', {language : 'es'});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('001306450374394641811:wvxqtlvgmk0');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var options = new google.search.DrawOptions();
    options.setSearchFormRoot('cse-search-form');
    customSearchControl.draw('cse', options);
  }, true);

