//<!-- 
function CreateImage( Arg )
{
	if (document.images) {
		ObjX = new Image();
		ObjX.src = Arg;
		return ObjX;
	}
}

function NewImage( Nr, ImgOverSrc, ImgOutSrc, ImgName)
{
	Img[ Nr ][ 0 ] = CreateImage( ImgOverSrc );
	Img[ Nr ][ 1 ] = CreateImage( ImgOutSrc );
	Img[ Nr ][ 2 ] = ImgName;
}

function GetImgByName( Name )
{
	for( i=0; i < NmbOfImgs; i++ ) if ( Img[ i ][ 2 ] == Name) return i;
	return -1;
}
	
function SetOver(nazwa)
{
	ImgNr = GetImgByName(nazwa);
	xObj = null;
	xObj = document.images[ Img[ ImgNr ][ 2 ] ];
	if ( xObj != null ) xObj.src = Img[ ImgNr ][ 1 ].src;
}

function SetOut(nazwa)
{
	ImgNr = GetImgByName(nazwa);
	xObj = null;
	xObj = document.images[ Img[ ImgNr ][ 2 ] ];
	if ( xObj != null ) xObj.src = Img[ ImgNr ][ 0 ].src;
}
//-->