// JavaScript Document

jQuery(window).load(function()
{
	jQuery("#anonymous_element_1").css("position","fixed");
	jQuery(function() {
		jQuery(window).scroll(function(){
			var scrollTop = jQuery(window).scrollTop();
			if(scrollTop != 0)
			{
				jQuery('#barrasup').stop().animate({'top':0},250);
				jQuery('#anonymous_element_1').stop().animate({'top':35},250);
			}
			else
			{
				jQuery('#barrasup').stop().animate({'top':30},250);
				jQuery('#anonymous_element_1').stop().animate({'top':65},250);
			}
		});
	});
jQuery('#layer').slideUp('fast');
jQuery('#desplega-layer').click(function() {
  jQuery('#layer').slideToggle('slow', function() {

  });
});


jQuery.localScroll({duration:1000});
	
	if (jQuery(window).scrollTop() != 0){ jQuery("#soporte_boton").fadeIn("normal"); }
	jQuery(window).scroll(function() { if (jQuery(window).scrollTop() == 0){ jQuery("#soporte_boton").fadeOut("normal"); } else{ if (jQuery("#soporte_boton").css("display") == "none"){ jQuery("#soporte_boton").fadeIn("normal"); } } });

});


