/*#############################################################*/
/*# Written by YourWeb (Web-Technologies & Solutions)         #*/
/*# You're welcome at our site http://www.your-web-service.de #*/
/*#############################################################*/

var VirtualImage1 = new Image();
var VirtualImage2 = new Image();

function MakeImageName (ImageObject, String) {
  VirtualImage2.src = VirtualImage1.src;
  VirtualImage1.src = ImageObject.src;
  return (ImageObject.src.substring(0,ImageObject.src.indexOf("_") + 1) + String +
	  ImageObject.src.substring(  ImageObject.src.lastIndexOf(".")));
}

function I0 (ImageObject) { ImageObject.src = MakeImageName (ImageObject, "0"); }
function I1 (ImageObject) { ImageObject.src = MakeImageName (ImageObject, "1"); }
function I2 (ImageObject) { ImageObject.src = MakeImageName (ImageObject, "2"); }

function I0L (LinkObject) { document.images[LinkObject.id].src = MakeImageName (document.images[LinkObject.id], "0"); }
function I1L (LinkObject) { document.images[LinkObject.id].src = MakeImageName (document.images[LinkObject.id], "1"); }
function I2L (LinkObject) { document.images[LinkObject.id].src = MakeImageName (document.images[LinkObject.id], "2"); }

