// test browser compatibility
NS4 			= (document.layers) ? true : false;
IE4 			= (document.all) ? true : false;
var browserOK 		= (NS4 || IE4) ? true : false;

// other variables
curr 			= "";
last 			= "";
number_of_items = 0;


function item_make ( img, spot )
{
	if ( browserOK )
	{       
		img_prefix 	= img_dir + img;
		this.spot	= spot;
		if ( spot != 0 )
			this.flip = new Image();
		this.flip.src = img_prefix + ".gif";
	}
}


function new_item ( img, spot2 )
{
	item_make [img] = new item_make(img,spot2);
}


function mouseOver ( item )
{
	if ( browserOK )
	{
		curr = item;
		if ( curr != last )
		{
			if ( item_make [curr].spot != 0 )
			{
				document ["flip" + item_make [curr].spot].src = item_make [curr].flip.src;
			}
			curr= "";
			last= ""; 
		}
	}
}


function mouseOut ( item )
{
	if ( browserOK )
	{
		curr = item;
		if ( curr != "" )
		{
			document ["flip" + item_make [curr].spot].src = item_make[curr].flip.src;
		}
		curr = "";
		last = "";
	}
}


function setSW ( inValue )
{
	window.status=":::::::::: " + inValue + " ::::::::::";
}


function PopupHelp( hw )
{
	winHelp = window.open( '/help/index.asp?hw=' + hw, 'winHelp', 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=320,height=400' );

	winHelp.focus();
}


