(function ($) {
  Drupal.behaviors.manipulateFormElements = {
    attach: function(context, settings) {
    // give the login form some love
    $('#user-login-form .login-submit-link').click(function(){
    	$('#user-login-form').submit();
    	return false;
    });
    }
  };
  Drupal.behaviors.correctActiveTrails = {
    attach: function(context, settings) {
      // fix menus that don't respect active trail because drupal links are stoopid
    $('#region-menu ul li.active').parents('li').addClass('active-trail');
    }
  };
})(jQuery);
;
(function ($) {
  Drupal.behaviors.customOmegaSubthemeJS = {
    attach: function(context, settings) {
      // you can implement your custom javascript/jquery here,
      // and also create other attached behaviors
      
    }
  };
  
  $(document).ready(function() {
   /* Hover image effect projects page */
   $(".view-display-id-block_3 img, .view-casos-de-estudio img, .view-proyectos-premiados img, #logo").hover(
      function() {  $(this).stop().animate({'opacity': '0.3'}, 200); },
      function() {  $(this).stop().animate({'opacity': '1'}, 200); }
   );
   
   /* Scroll top */
   $('a.back-top').click(function(){$('html, body').animate({scrollTop:'0px'},600);return false});
});
  
})(jQuery);
;

