(function($) {
	$.fn.simpleTabs = function() {
		$(this).each(function(i){
			var parent = 	$(this);
			var windows = 	$(this).find(".simple_window");
			var first = 	$(this).find(".simple_window:first");
			
			windows.hide();
			first.show();

			$(this).find("ul li:first").addClass("in");
			
			
			$(this).find("ul li a").click(function(){
				parent.find("ul li").removeClass("in");
				$(this).parent().addClass("in");		
				var current_tab = $(this).attr("href");
				window.location.hash = $(this).attr("href");
				windows.hide();
				$(current_tab).show();
				return false;
				void(0);
			});
			
			$(this).find("ul").append($('<br style="clear:both" />'));
		});
	}
})(jQuery);
