com.csg.marketdata = com.csg.Class.extend({
	rootNode : null,
	inputText : null,
	
	initialize : function() {
		var me = this;
		
		// remove "Search" text on focus
		me.rootNode = $("input#marketdata_field");
		me.inputText = me.rootNode.attr("value");
		
		me.rootNode.focus(function() {
			if ( (!this.value) || (this.value==me.inputText) ) {
				this.value="";
			}
		});
		// re-add "Search" text if value is empty
		me.rootNode.blur(function() {
			if (!this.value) this.value=me.inputText;
		});
	}
});

$(document).ready(function(){
	com.csg.Page.addBrowserFixStyleSheet("marketdata");
	new com.csg.marketdata();
});