var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); jQuery(document).ready(function() { //console.log("vvvvvvvvv"); //jQuery(window).bind( 'orientationchange', function(e){ location.reload(); });// /*jQuery(" body.front div#block-views-home-carrousel-block #views_slideshow_cycle_div_home_carrousel-block_0 ").live('click', function() { alert("laura"); jQuery("body.front div#block-views-home-carrousel-block img").trigger("click"); });*/ jQuery(".extender td.campo0").live('click', function(event){ jQuery(this).toggleClass('open'); jQuery(this).parent(".extender").next("tr.downloads").toggleClass('downloads_open'); }) jQuery('.page-funds-sicavs.i18n-es .first .campo4').text('NÚMERO DE ACCIONISTAS'); jQuery('.page-funds-sicavs.i18n-en .first .campo4').text('NUMBER OF SHAREHOLDERS'); jQuery('.page-others-funds.i18n-en .first .campo4').text('NUMBER OF SHAREHOLDERS'); jQuery('.page-liberbank-funds.i18n-en .first .campo4').text('NUMBER OF SHAREHOLDERS'); jQuery('.page-bmn-funds.i18n-en .first .campo4').text('NUMBER OF SHAREHOLDERS'); jQuery('.page-investment-funds.i18n-en .first .campo4').text('NUMBER OF SHAREHOLDERS'); /*jQuery("td.campo0 ul.docs").hide(); jQuery("td.campo0 .open").click(function(event){ jQuery(this).toggleClass('close'); jQuery(this).parent().parent().siblings().find("a.open").removeClass('close'); var desplegable = jQuery(this).parent().find("ul.docs"); jQuery('ul.docs').not(desplegable).slideUp('fast'); desplegable.slideToggle('fast'); event.preventDefault(); })*/ jQuery("div#block-menu-menu-footer-social-menu").after("
"); /*Carrousel int-detail-3*/ jQuery("body.node-type-int-detail-3 .view-fundacion-carrousel .views-slideshow-controls-bottom .views-slideshow-pager-field-item div.views-field-field-int-detail-3-list-img").after("
"); /*Carrousel int-detail-4*/ jQuery(".view-carrousel-int-detail-4 .jcarousel-item.jcarousel-item-horizontal img").live("mouseover", function(){ jQuery(this).prev(".carrousel-desc").addClass("hover"); }); jQuery(".view-carrousel-int-detail-4 .jcarousel-item.jcarousel-item-horizontal img").live("mouseout", function(){ jQuery(this).prev(".carrousel-desc").removeClass("hover"); }); jQuery(".int_label_pos").live("mouseover", function(){ jQuery(this).find(".field ").addClass("hover"); }); jQuery(".int_label_pos").live("mouseout", function(){ jQuery(this).find(".field ").removeClass("hover"); }); jQuery("a.popup").live('click', function() { var nid = jQuery(this).attr('id'); show_popup(nid); }); //console.log("llega"); if (jQuery('body').hasClass('node-type-int-map-1')) { my_map2(); } else if (jQuery('body').hasClass('node-type-contact')) { my_map1(); } else if (jQuery('body').hasClass('node-type-int-map-2')) { my_map3(); } /*SIDEBAR*/ var sidebar_li=jQuery(".region-sidebar .content > .menu > li.expanded "); jQuery(sidebar_li).each(function(i,el) { var sidebar_li=jQuery(el).find("a:eq(0)"); sidebar_li.remove(); }); /*Sidebar*/ jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded").addClass("menu-expanded menu-hide"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded >.menu ").find("li.expanded").removeClass("menu-hide"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded").find(" a.active").parents("li.expanded").removeClass("menu-hide"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.menu-expanded ").live("mouseover", function(){ jQuery(this).removeClass("menu-hide"); //scrolling_relative(); var sidebar1 = jQuery('div#sidebar-first'); SidebarHeight1 = sidebar1.height(); //alert(SidebarHeight1); sidebar1.css("height",SidebarHeight1+"px!important"); return false; }); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.menu-expanded ").bind("mouseout", function(){ jQuery(this).addClass("menu-hide"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded").find(" a.active").parents("li.expanded").removeClass("menu-hide"); return false; }); /*SIDEBAR*/ /* eBANKING */ jQuery("#open-ebanking a").live('click', function() { jQuery(".b-ebanking").show(); jQuery("#div-ebanking").show(); return false; }); jQuery("#loginBPAV input[type=submit]").live('click', function() { jQuery(".b-ebanking").hide(); jQuery("#div-ebanking").hide(); }); jQuery(".close-ebanking").live('click', function() { jQuery(".b-ebanking").hide(); jQuery("#div-ebanking").hide(); return false; }); /* eBANKING */ /*SELECTS*/ jQuery('.node-contact .webform-client-form select').msDropDown({ }); jQuery('.node-webform .webform-client-form select').msDropDown({ }); /*SELECTS*/ /*LIGHTBOX*/ jQuery('body.node-type-contact div#block-views-sidebar-contact-block div.views-row-3').live('click', function(e) { jQuery('.node-contact .webform-client-form').modal(); return false; }); jQuery('body.node-type-contact div#block-views-sidebar-contact-block div.views-row-3').css("cursor","pointer"); /*LIGHTBOX*/ /* SELECTS FORM ONLY IE/*/ if (jQuery.browser.msie && (parseInt(jQuery.browser.version) == 7)) { jQuery(".dd").live('click', function() { jQuery(".node-type-webform .webform-client-form div.dd ").css("position","static"); jQuery(this).css("position","relative"); }); } /* SLIDER HOME no clickar links vacios*/ var slides=jQuery(".imagelink"); //console.log("slides",slides); jQuery(slides).each(function(i,el) { var enlace=jQuery(el).attr("href"); if (enlace=="") { jQuery(el).attr("href","javascript:;"); jQuery(el).attr("target","_self"); jQuery(el).css("cursor","default"); } }); if (jQuery('.page-fondos-inversion').length){ var loc = location.href.split('/'); var url =loc[loc.length-1]; var sidebar= jQuery('.region-sidebar .content > .menu > li.expanded > .menu > li.expanded > .active'); //sidebar.css("border","1px solid red"); //var baseURI=sidebar[0].baseURI; var baseURI=document.URL; //alert(baseURI); //console.log("URL",baseURI); //alert(document.URL); //console.log("sidebar",sidebar); var sidurl=baseURI.split('/'); var sidlasturl=sidurl[sidurl.length-1]; var urllimpio = url.split("?"); if (sidlasturl==urllimpio) { //sidebar.removeClass("active"); sidebar.parent().find("li > .active").removeClass("active"); } else if(sidlasturl==url) { sidebar.removeClass("active"); sidebar.parent().find("li > .active").removeClass("active"); //console.log("href",sidebar.attr('href')); var prueba =document.URL; var prueba2 = prueba.replace('http://',''); var cacho = prueba2.split("/"); var prueba3 = prueba2.replace(cacho[0],''); // jQuery('a[href="'+prueba2+'"]').addClass("active"); jQuery('a[href="'+prueba3+'"]').addClass("active"); //sidebar.parent(".active.active-trail").find("li > .active").removeClass("active"); } } /*Oficinas*/ jQuery(".node-int-map-2 div.map_list#m5").addClass("show_list"); /*Presencia internacional*/ jQuery(".node-int-map-1 div.map_list#m4").addClass("show_list"); /*CONTACT - INPUT TYPE FILE*/ jQuery("#edit-submitted-adjuntar-cv-ajax-wrapper").before('

'); jQuery("p.input_css").live('click', function(e) { if(jQuery('input[type"file"]#edit-submitted-adjuntar-documento-upload').length){ jQuery('input[type"file"]#edit-submitted-adjuntar-documento-upload').trigger('click'); } if(jQuery('input[type"file"]#edit-submitted-adjuntar-cv-upload').length){ jQuery('input[type"file"]#edit-submitted-adjuntar-cv-upload').trigger('click'); } }); jQuery('input[type"file"]#edit-submitted-adjuntar-documento-upload').live('change', function(e) { jQuery("p.input_css").attr("value",""); if(jQuery('input[type"file"]#edit-submitted-adjuntar-documento-upload').length){ var input_file=jQuery('input[type"file"]#edit-submitted-adjuntar-documento-upload').val(); } if(jQuery('input[type"file"]#edit-submitted-adjuntar-cv-upload').length){ var input_file=jQuery('input[type"file"]#edit-submitted-adjuntar-cv-upload').val(); } jQuery("p.input_css").html(""+input_file+""); }); /*CONTACT - INPUT TYPE FILE*/ }); Drupal.settings.nid = Drupal.settings.nid || []; Drupal.settings.getAllFeature; /* popup date filters news */ Drupal.behaviors.datePopupIconActivate = { attach: function (context, settings) { jQuery('.form-type-date-popup').each(function() { var datepicker = jQuery(this).find('input'); jQuery(this).find('.date-popup-icon').click(function() { datepicker.focus().focus(); }); }); } }; function my_map1() { //var all_layers = Drupal.openlayers.popup.popupSelect.layer; //console.log("---",jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]); //console.log("---llega1"); //alert('que pasa'); Drupal.settings.getAllFeature = jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]; //console.log("---llega"); var all_features = Drupal.settings.getAllFeature.features; //console.log("--",all_features); for (var key in all_features) { var feature = all_features[key]; //console.log("--"+key+" ",feature.attributes); //Drupal.settings.nid[feature.attributes.nid] = key; Drupal.settings.nid[feature.attributes.field_contact_offices_list_title.replace(/(^\s+|\s+$)/g,' ')] = key; } } function my_map2() { //var all_layers = Drupal.openlayers.popup.popupSelect.layer; //console.log("---",jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]); var map= jQuery('div.openlayers-map').data('openlayers').map; var ol=jQuery('div.openlayers-map').data('openlayers').openlayers; var layer = jQuery('div.openlayers-map').data('openlayers').openlayers.getLayersByClass('OpenLayers.Layer.Vector'); var popupSelect = new OpenLayers.Control.SelectFeature(layer, { onSelect: function(feature) { // Create FramedCloud popup. //alert("m"+feature.drupalFID); var map_fid="m"+feature.drupalFID; //console.log("feature: ",feature); //console.log(feature.attributes.field_int_map_1_list_title.replace(/(^\s+|\s+$)/g,' ')); var map_list=jQuery("div.map_list"); map_list.removeClass("show_list"); jQuery.each( map_list, function(i, el){ var map_list_el=jQuery(el).attr("id"); //alert(jQuery(el).attr("id")); if (map_list_el == map_fid ) { jQuery("#"+map_fid).addClass("show_list"); } }); popup = new OpenLayers.Popup.FramedCloud( 'popup', feature.geometry.getBounds().getCenterLonLat(), null, Drupal.theme('openlayersPopup', feature), null, true, function(evt) { Drupal.openlayers.popup.popupSelect.unselect(selectedFeature); } ); selectedFeature = feature; feature.popup = popup; Drupal.attachBehaviors(); ol.addPopup(popup); }, onUnselect: function(feature) { ol.removePopup(feature.popup); feature.popup.destroy(); feature.popup = null; } } ); ol.addControl(popupSelect); popupSelect.activate(); //console.log("mapa: ",map); //console.log("openlayer: ",ol); //console.log("markers:", jQuery('div.openlayers-map').data('openlayers').openlayers.getLayersByClass('OpenLayers.Layer.Vector')); Drupal.settings.getAllFeature = jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]; //console.log("---llega"); var all_features = Drupal.settings.getAllFeature.features; //console.log("--",all_features); for (var key in all_features) { var feature = all_features[key]; //console.log("--"+key+" ",feature.attributes); //Drupal.settings.nid[feature.attributes.nid] = key; Drupal.settings.nid[feature.attributes.field_int_map_1_list_title.replace(/(^\s+|\s+$)/g,' ')] = key; } } function my_map3() { //var all_layers = Drupal.openlayers.popup.popupSelect.layer; //console.log("---",jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]); //console.log("---llega1"); var map= jQuery('div.openlayers-map').data('openlayers').map; var ol=jQuery('div.openlayers-map').data('openlayers').openlayers; var layer = jQuery('div.openlayers-map').data('openlayers').openlayers.getLayersByClass('OpenLayers.Layer.Vector'); var popupSelect = new OpenLayers.Control.SelectFeature(layer, { onSelect: function(feature) { // Create FramedCloud popup. //alert("m"+feature.drupalFID); var map_fid="m"+feature.drupalFID; // console.log("feature: ",feature); // console.log(feature.attributes.field_int_map_2_list_tit.replace(/(^\s+|\s+$)/g,' ')); var map_list=jQuery("div.map_list"); jQuery(".map_list").removeClass("show_list"); jQuery.each( map_list, function(i, el){ var map_list_el=jQuery(el).attr("id"); //alert(jQuery(el).attr("id")); if (map_list_el == map_fid ) { jQuery("#"+map_fid).addClass("show_list"); } }); popup = new OpenLayers.Popup.FramedCloud( 'popup', feature.geometry.getBounds().getCenterLonLat(), null, Drupal.theme('openlayersPopup', feature), null, true, function(evt) { Drupal.openlayers.popup.popupSelect.unselect(selectedFeature); } ); selectedFeature = feature; feature.popup = popup; Drupal.attachBehaviors(); ol.addPopup(popup); }, onUnselect: function(feature) { ol.removePopup(feature.popup); feature.popup.destroy(); feature.popup = null; } } ); ol.addControl(popupSelect); popupSelect.activate(); Drupal.settings.getAllFeature = jQuery('div.openlayers-map').data('openlayers').openlayers.layers[2]; //console.log("---llega"); var all_features = Drupal.settings.getAllFeature.features; //console.log("--",all_features); for (var key in all_features) { var feature = all_features[key]; // console.log("--"+key+" ",feature.attributes); //Drupal.settings.nid[feature.attributes.nid] = key; // console.log("...>",feature.attributes); Drupal.settings.nid[feature.attributes.field_int_map_2_list_tit.replace(/(^\s+|\s+$)/g,' ')] = key; } } function show_popup(nid) { if (Drupal.settings.nid) { nid=nid.replace(/(^\s+|\s+$)/g,' '); // console.log(" ----->",nid); var index = Drupal.settings.nid[nid]; var feature = Drupal.settings.getAllFeature.features[index]; Drupal.openlayers.popup.popupSelect.clickFeature(feature); } return false; } /*function scrolling ( ContentHeight, scroll, sidebar, SidebarHeight, HeightDif) { if ( ContentHeight < SidebarHeight ) { //alert("Sidebar:"+sidebar.height()); alert("content:"+ContentHeight); sidebar.attr("style","position:relative; top:73px; z-index:90; margin-bottom:100px;"); }else { //alert("else:"+sidebar.height());alert("content:"+content.height()); sidebar.attr("style","position:fixed; top:193px; z-index:90;"); jQuery(window).scroll(function(e){ var scrollY = jQuery(window).scrollTop(); sidebar.attr("scrollY", scrollY); //alert("scroll donde hace el salto:"+scroll); alert("scrollY:"+scrollY); if ((scrollY) > scroll ) { sidebar.attr("style","position:fixed;top:193px; z-index:90;"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded ").live("mouseover", function(){ scrolling_relative(); }); } if ((scrollY) < scroll ) { sidebar.attr("style","position:absolute; bottom:60px; z-index:90;"); jQuery(".region-sidebar .content > .menu > li.expanded > .menu > li.expanded ").live("mouseover", function(){ scrolling_relative(); }); } }); } } function scrolling_relative(){ var sidebar1 = jQuery('div#sidebar-first'); SidebarHeight1 = sidebar1.height(); //alert(SidebarHeight1); sidebar1.attr("style","position:relative; top:73px; height:"+SidebarHeight1+"px; z-index:0; margin-bottom:100px;"); }*/ } /* FILE ARCHIVED ON 16:59:56 Sep 14, 2014 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 18:04:02 Nov 18, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.516 exclusion.robots: 0.02 exclusion.robots.policy: 0.009 esindex: 0.01 cdx.remote: 4.697 LoadShardBlock: 133.443 (3) PetaboxLoader3.resolve: 84.498 (3) PetaboxLoader3.datanode: 82.74 (4) load_resource: 78.033 */