this.tooltip = function(){		
		xOffset = 30;
		yOffset = 10;			
	$("#container a").hover(function(e){											  
		this.t = this.title;
		this.title = "";
		if (this.t != "") {
			$("body").append("<p id='tooltip'>"+ this.t +"<span id='tooltip_bottom'></span></p>");
			$("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px")
				.fadeIn("fast");
		} else {
			return false;
		}
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

function sideTabs() {
	$('span.active').removeClass('active');
	$(this).addClass('active');
	var tabID = $(this).attr('title');
	$('.content_tab').slideUp();
	$("#"+tabID).slideDown();
}

function startup() {
	var tabActive = $('#tabs ul li span.active').attr('title');
	$('#'+tabActive).slideDown();
	$('ul.tab-items li span').click(sideTabs);
	tooltip();
}

$(document).ready(startup);