// image loading support JavaScript
// Copyright (c) 1999-2000 by Sid Paral. All rights reserved.

// load image into cache

function loadpic2cache (picFile, width, height)
{
	if (document.images)
	{
		var	img = new Image (width, height);
		img.src = picFile;
		return true;
	}
	else return false;
}

// load one image into referenced position

function load1pic (picRef, picFile)
{
	if (document.images)
	{
		document[picRef].src = picFile;
	}
}

// load two images into referenced positions

function load2pic (picARef, picAFile, picBRef, picBFile)
{
	if (document.images)
	{
		document[picARef].src = picAFile;
		document[picBRef].src = picBFile;
	}
}

// load three images into referenced positions

function load3pic (picARef, picAFile, picBRef, picBFile, picCRef, picCFile)
{
	if (document.images)
	{
		document[picARef].src = picAFile;
		document[picBRef].src = picBFile;
		document[picCRef].src = picCFile;
	}
}

// toggle one image in referenced position

function toggle1pic (picRef, picFile)
{
	if (document.images)
	{
		oldPicFile = document[picRef].src;
		document[picRef].src = picFile;
		setTimeout ('load1pic("'+picRef+'","'+oldPicFile+'");',200);
	}
}

