﻿Search = {
    init: function() {
        var q = App.getParameter('q');
        if (q != '') $('#mainSearchInput').val(q);
        App.searchInput('#mainSearchInput', 'Enter Keyword');
    },
    search: function() {
        var s = this.SEARCH_FIELD;
        if ($(s).val() == this.searchText) $(s).val('');
        $('#mainSearchForm').submit();
    }
};

// window load
$().ready(function() {
    Search.init();
});
