
mtLibAddEvent(function(){
	oMTLib.searchReplace.init();
}, "load");

oMTLib.searchReplace = {
	init : function(){
		var oSearch = document.getElementById("fQuery");
		
		
		oSearch.onfocus = function(){
			if(this.value.toLowerCase() == "search"){
				this.value = "";
				this.className = "text focus";
			};
		
		};

		oSearch.onblur = function(){
			if(this.value == "" || this.value == "search"){
				this.value = "search";
				this.className = "text";
			};
		};
		
		if(document.getElementById("fProQuery") != null){
			var oPubSearch = document.getElementById("fProQuery");
			oPubSearch.onfocus = function(){
				if(this.value.toLowerCase() == "search"){
					this.value = "";
					this.className = "text focus";
				};
			
			};

			oPubSearch.onblur = function(){
				if(this.value == "" || this.value == "search"){
					this.value = "search";
					this.className = "text";
				};
			};
		}
		
		
	}
}
