/*

	Simple script that adds rollover effect to the submit buttons on the
	search results page as well as buttons on other pages.

*/
function observeAddToCart() {
	$$('.button_focus').each(function(e){Event.observe(e, 'mouseover', 
			function(event){
				Event.element(event).addClassName('hover');
			});
	});
	
	$$('.button_focus').each(function(e){Event.observe(e, 'mouseout', 
			function(event){
				Event.element(event).removeClassName('hover');
			});
	});
	$$('.prodListbutton').each(function(e){Event.observe(e, 'mouseover', 
			function(event){
				Event.element(event).addClassName('hover');
			});
	});
	
	$$('.prodListbutton').each(function(e){Event.observe(e, 'mouseout', 
			function(event){
				Event.element(event).removeClassName('hover');
			});
	});
	
}

function observeOtherButtons() {
	$$('.button').each(function(e){Event.observe(e, 'mouseover', 
			function(event){
				Event.element(event).addClassName('hover');
			});
	});
	
	$$('.button').each(function(e){Event.observe(e, 'mouseout', 
			function(event){
				Event.element(event).removeClassName('hover');
			});
	});
}


