// JavaScript Document

jQuery(window).load(function()
{

	jQuery(function() {
		jQuery(window).scroll(function(){
			var scrollTop = jQuery(window).scrollTop();
			if(scrollTop != 0)
				jQuery('#barrasup').stop().animate({'top':0},250);
			else
				jQuery('#barrasup').stop().animate({'top':30},250);
		});
	});

	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"); } } });

});

