jQuery(document).ready(function($) {
	$("input, textarea").focus(function() {
		var element = $(this);			
		element.attr("rel",element.val());			
		element.val('');
	});
	
	$("input, textarea").blur(function() {
		var element = $(this);
		if (element.val() == '')
			element.val(element.attr("rel"));
	});
	
	$("#whatido").hover(
		function()
		{
			$(".whatido-menu").show();
			$("#whatido").children('a').addClass('hover');
		},
		function()
		{
			$(".whatido-menu").hide();
			$("#whatido").children('a').removeClass('hover');					
		}
	);
	
	if($("#sfstest-sidebar").length > 0)
	{
		$("#sfstest-sidebar").bxSlider({
			'mode': 'fade',
			'speed': 1000,
			'controls': false,
			'auto': true,
			'pause': 5000		
		});
	}	
});
