
var StaticImages = new Array();
var StaticImage;

function SetStaticImage(ImgID, ImgSrc)				// ID of the image to keep static and the source of the static image
{	
	SwitchImage(ImgID, ImgSrc);
	StaticImages[ImgID] = 1;						// set this imageID as static
}

function SwitchImage(ImgID, ImgSrc)
{	
	if(!StaticImages[ImgID])						// chect if the current imageID is set as static, in which case we won't change it
	{
		document.getElementById(ImgID).setAttribute('src', ImgSrc);
	}
}