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

$(document).ready(function(){
	tooltip();
});

this.tweettip = function(){	
		aOffset = 75;
		bOffset = 143;		
	$("a.tweettip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("#quote").append("<span id='tweettip'>"+ this.t +"</span>");
		$("#tweettip")
		.css("top",(e.pageY - aOffset) + "px")
			.css("left",(e.pageX - bOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tweettip").remove();
    });	
	$("a.tweettip").mousemove(function(e){
		$("#tweettip")
		.css("top",(e.pageY - aOffset) + "px")
			.css("left",(e.pageX - bOffset) + "px");
	});			
};

$(document).ready(function(){
	tweettip();
});

$(document).ready(function(){
var searchBar = $("#s");
var searchBarDefault = "Search Bar";

searchBar.focus(function(){
if($(this).attr("value") == searchBarDefault) $(this).attr("value", "");
});
searchBar.blur(function(){
if($(this).attr("value") == "") $(this).attr("value", searchBarDefault);
});
});
