(function($) {
	
	var defaults = {
		what: 'pepepepe.html'
		
	}
	
	$.fn.showfixed = function(settings) {
		var config = defaults;
		if (settings) $.extend(config, settings);
		this.each(function() {
			var opener = $(this);
			if (opener.data('showfixed')) return; opener.data('showfixed', true);
			var href = $(this).attr('href');
			var title = $(this).attr('title');
			$.extend(config, {opener: opener, href: href, title: title});
			showfixed(config);
		});
		return this;
	};

	function showfixed(config) {
	    (config.opener).button({ icons: { secondary: 'ui-icon-triangle-1-s' } }).toggle(
			function() {
				config.opener.button({ icons: { secondary: 'ui-icon-triangle-1-n' } });
				$('.fixed > .down').slideDown().load(config.href);
				return false;
			},
			function(){
				config.opener.button({ icons: { secondary: 'ui-icon-triangle-1-s' } });
				$('.fixed > .down').slideUp();
				return false;
			}
		);
	}

	
	
 })(jQuery);

