/**
 * @author chacheon
 */


$(document).ready(
	function($){
		if(sTextToWaterMark==null || sTextToWaterMark=="")
			sTextToWaterMark = "Search for Courses";
		$("#s_keyword").focus(function() {
		
		        $(this).filter(function() {
		
		            // We only want this to apply if there's not
		            // something actually entered
		            return $(this).val() == "" || $(this).val() == sTextToWaterMark
		
		        }).removeClass("watermarkOn").val("");
		
		    });
		
		    // Define what happens when the textbox loses focus
		    // Add the watermark class and default text
		    $("#s_keyword").blur(function() {
		
		        $(this).filter(function() {
		
		            // We only want this to apply if there's not
		            // something actually entered
		            return $(this).val() == ""
		
		        }).addClass("watermarkOn").val(sTextToWaterMark);
		
		    });
			
			$("#s_keyword").val(sTextToWaterMark).addClass("watermarkOn");
			
				
			
		}
				
	
);
