var ImagesOver = Class.create()
    
ImagesOver.prototype = { 
	initialize : function() {
		Object.extend(window, this);
		
		$$("img.over").each(function(item){
			Event.observe(item, "mouseover", window.over);
			Event.observe(item, "mouseout", window.out);
			item.setAttribute("out", item.getAttribute("src"));
		});
	},
	
	over : function(evt){
		element = Event.element(evt);
		element.setAttribute("src", element.getAttribute("over"));
	},
	
	out : function(evt){
		element = Event.element(evt);
		element.setAttribute("src", element.getAttribute("out"));
	}
}
		
Event.observe(window,"load", function(){ new ImagesOver(); });