function uniroll() 
	{
	if (!document.getElementById) return
	
	var prelo = new Array();								// Preload Array
	var tmp;												// sTempSrc
	var ima = document.getElementsByTagName('img');			// aImages

	for (var i = 0; i < ima.length; i++) 
		{		
		if (ima[i].className == 'over') 
			{
			var src = ima[i].getAttribute('src');
			var typ = src.substring(src.lastIndexOf('.'), src.length);
			var osrc = src.replace(typ, '_o'+typ);

			ima[i].setAttribute('osrc', osrc);
			
			prelo[i] = new Image();
			prelo[i].src = osrc;
			
			ima[i].onmouseover = function() 
				{
				tmp = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('osrc'));
				}	
			
			ima[i].onmouseout = function() 
				{
				if (!tmp) tmp = this.getAttribute('src').replace('_o'+typ, typ);
				this.setAttribute('src', tmp);
				}
				
			ima[i].onclick = function()
				{
				for (var j = 0; j < ima.length; j++)
					{
					
					if (ima[j].className == 'over')
						{
						var neu = ima[j].getAttribute('src').replace('_o'+typ, typ);
						ima[j].setAttribute('src', neu);
						}
					tmp = this.getAttribute('src');
					this.setAttribute('src', this.getAttribute('osrc'));
					
					}
				}
			}
		}
	}
	
window.onload = uniroll;


