
$(function(){$('#searchFilter').selectbox();$('#search').css('visibility','hidden');$('#search-bg').css('visibility','hidden');$('#searchLeftcap').css('visibility','hidden');$('#searchRightcap').css('background','transparent url(/public/images/buttons-sm.png) no-repeat scroll 0 0');$('#searchRightcap').html('&laquo;');$('#quick-search').mouseover(function(){$('#search').css('visibility','');$('#search-bg').css('visibility','');$('#searchLeftcap').css('visibility','');$('#searchRightcap').css('background','transparent url(/public/images/bg-input-sm.png) repeat-x scroll 0 0');$('#searchRightcap').html('&nbsp;');});$('#search').focus(function(){var defaultTerm='search';var currentTerm=$('#search').val();currentTerm=jQuery.trim(currentTerm);if(currentTerm==defaultTerm){$('#search').val('');}
return false;});$("#quick-search").submit(function(){var defaultTerm='search';var currentTerm=$('#search').val();currentTerm=jQuery.trim(currentTerm);if(currentTerm==defaultTerm||currentTerm==''){$('#search').focus();return false;}
$(location).attr('href','/search/'+$('#search').val()+'/type/'+$('#searchFilter').val());return false;});});