
/* Using prototype.js event handlers for misc features across all site pages */
/* See the Prototype web site: http://www.prototypejs.org/                   */

Event.observe(window, 'load', function()
{
    Event.observe('zipcode', 'focus', function()
	{
    	if ($('zipcode').value == 'ZIP code')
    	{
    		$('zipcode').value = '';
	   	}
    });

    Event.observe('zipcode', 'blur', function()
    {
    	if ($('zipcode').value == '')
    	{
    		$('zipcode').value = 'ZIP code';
    	}
    });
    
	Event.observe('searchText', 'focus', function()
	{
		if ($('searchText').value == 'enter keywords')
		{
			$('searchText').value = '';
		}
	});    
    
	Event.observe('searchText', 'blur', function()
	{
		if ($('searchText').value == '')
		{
			$('searchText').value = 'enter keywords';
		}
	});    
});

