
function attachGreyHover(){
	$$('.greyhover').each(function(e){
		e.src = 'plugins/greyscale/greyscale.php?f=' + e.src.replace('http://' + location.host + '/','../../');
		e.onmouseover = function(){ e.src = e.src.replace('plugins/greyscale/greyscale.php?f=',''); }
		e.onmouseout = function(){ e.src = 'plugins/greyscale/greyscale.php?f=' + e.src.replace('http://' + location.host + '/','../../'); }
	});
}

Event.observe(window,'load',attachGreyHover,true);

