 $(document).ready(function(){
		  $('#logo, #uni, #in-piede').pngFix( );

		/* $("object").css('width','100%'); */
        $("#plancia").hide();
        $(".tastino").toggle(function()
        {
            $("#plancia").slideDown();
            $(".tastino").css('background-position','0 -19px');
        }, 
        function()
        {
            $("#plancia").slideUp();
            $(".tastino").css('background-position','0 0');
        });
        
        jQuery.fn.topLink = function(settings) {
		settings = jQuery.extend({
			min: 1,
			fadeSpeed: 200,
			ieOffset: 50
		}, settings);
		return this.each(function() {
			//listen for scroll
			var el = $(this);
			/* el.css('display','none');*/ //in case the user forgot
			$(window).scroll(function() {
				if(!jQuery.support.hrefNormalized) {
					el.css({
						'position': 'static',
						'top': $(window).scrollTop() + $(window).height() - settings.ieOffset
					});
				}
			});
		});
	};
	
	$(document).ready(function() {
		$('#top-link').topLink({
			min: 400,
			fadeSpeed: 500
		});
		//smoothscroll
		$('#top-link').click(function(e) {
			e.preventDefault();
			$.scrollTo(0,300);
		});
	});
	

        });
