$(document).ready(function(){
	var searchinput = document.getElementById('search');
	if(searchinput) {
		searchinput.onfocus =
			function () {
				if(this.value == "Search...")
					this.value = "";
			};
		searchinput.onblur =
			function () {
				if(this.value == "")
					this.value = "Search...";
			};
		
	}
});
$(document).ready(function ()
{
	tooltip();
});
 
function tooltip()
{	
	$("img").each(function(){$(this).mouseover(    
		function (event) 
		{ 
			text = $(this).attr("title");
			if(text.length > 0) {
				// X- und Y-Koordinaten des Cursor ermitteln
				x = event.pageX+10;
				y = event.pageY+10;
				// ein DIV für den Tooltip erstellen
				$("body").append("<div id='tooltip'>"+text+"</div>");
				$(this).attr("title","");
				// das erstellte DIV mit CSS positionieren
				$("#tooltip").css("left", x).css("top", y).css("position","absolute")
				.css("background-color","#FFF2AB").css("border","1px #D4D0C8 solid").css("padding","1em")
				.css("width","20em").css("font-size","115%").css("border-bottom","3px #1F1F1F solid")
				.css("border-right","3px #1F1F1F solid");
				$("#tooltip").hide();
				$("#tooltip").fadeIn(500);
			}
		});
		$(this).mouseout(function (event){
			// das DIV beim verlassen des Events entfernen
			$(this).attr("title",$("#tooltip").text());
			$("#tooltip").remove();
		});
		$(this).mousemove(function(event) {
			x = event.pageX+10;
			y = event.pageY+10;
			$("#tooltip").css("left", x).css("top", y);
		});
	});
}