window.addEvent('load',function(event){$$('.search-component').each(function(searchComponent){var form=searchComponent.getElement('form');var input=searchComponent.getElement('input.text');if(form&&input){var searchValue=input.get('value');form.addEvent('submit',function(event){if((input.get('value')=='')||(input.get('value')==searchValue)){event.stop();}});input.addEvent('click',function(event){if(input.get('value')==searchValue){input.set('value','');}});input.addEvent('blur',function(event){if(input.get('value').trim()==''){input.set('value',searchValue);}});}});});