function restore(name){

	if(document.swapHash){
		
		var image1 = document.swapHash[name + "a"];
		var image2 = document.swapHash[name + "b"];
		var linkItem = document.swapHash[name + "c"];
			
		linkItem.style.color = linkItem.oColor;
		linkItem.style.textDecoration = linkItem.oTextDecoration;
		image1.src = image1.oSrc;
		image2.src = image2.oSrc;
			
	}
}

function swap(name, color, textDecoration, swapImage1, swapImage2) {
	if (document.images && document.links){
	
		var linkItem, image1, image2;
			
		image1 = document.images[name + "a"];
		image2 = document.images[name + "b"];
		linkItem = document.getElementById(name + "c");
		
		image1.oSrc = image1.src;
		image2.oSrc = image2.src;
		linkItem.oColor = linkItem.style.color;
		linkItem.oTextDecoration = linkItem.style.textDecoration;
		
		if(!document.swapHash){
			document.swapHash = new Array();
		}
		
		document.swapHash[name + "a"] = image1;
		document.swapHash[name + "b"] = image2;
		document.swapHash[name + "c"] = linkItem;	
		
		linkItem.style.color = color;
		linkItem.style.textDecoration = textDecoration;
		image1.src = swapImage1;
		image2.src = swapImage2;				
	}
}

