/**
 * Show info text on search button.
 */
Ext.onReady(function(){
    function applyDefaultValue(elem, val) {
        elem.value = val;
        
        elem.on("focus", function(e,t,o) {
            if (this.dom.value == val) {
                this.dom.value = '';
            }
        }, elem);
        elem.on("blur", function(e,t,o) {
            if (this.dom.value == '') {
                this.dom.value = val;
            }
        }, elem);
    }

    var search = Ext.get("search");
    if (search) {
        applyDefaultValue(search, "What are you looking for?");
    }
});