$(function(){
	// Does the clear/replace/check with the search box
	
	// get the element's label and set the element value with it
	var valtext = $('#q').parent().find('label').text();
	$('#q').attr('value',valtext);
	
	
	// Stuff to do when user enters the search box
	$('#q').bind('focus',function(){
		if($(this).attr('value')=="Search"){$(this).attr('value','');}
	})
	
	// Stuff to do when the user leaves the search box
	$('#q').bind('blur',function(){
		if($.trim($(this).attr('value')) == ""){$(this).attr('value','Search');}
	})
})