<!--

// Load all images
PreloadButton1Out =	new Image(144,22);
PreloadButton1Out.src =	"images/galleryBut1.gif";
PreloadButton1Over =	new Image(144,22);
PreloadButton1Over.src =	"images/galleryBut1On.gif";

PreloadButton2Out =	new Image(144,22);
PreloadButton2Out.src =	"images/galleryBut2.gif";
PreloadButton2Over =	new Image(144,22);
PreloadButton2Over.src =	"images/galleryBut2On.gif";

PreloadButton3Out =	new Image(144,22);
PreloadButton3Out.src =	"images/galleryBut3.gif";
PreloadButton3Over =	new Image(144,22);
PreloadButton3Over.src =	"images/galleryBut3On.gif";

PreloadButton4Out =	new Image(144,22);
PreloadButton4Out.src =	"images/galleryBut4.gif";
PreloadButton4Over =	new Image(144,22);
PreloadButton4Over.src =	"images/galleryBut4On.gif";

PreloadButton5Out =	new Image(144,22);
PreloadButton5Out.src =	"images/galleryBut5.gif";
PreloadButton5Over =	new Image(144,22);
PreloadButton5Over.src =	"images/galleryBut5On.gif";

PreloadButton10Out =	new Image(144,22);
PreloadButton10Out.src =	"images/but1.gif";
PreloadButton10Over =	new Image(144,22);
PreloadButton10Over.src =	"images/but1On.gif";

PreloadButton11Out =	new Image(144,22);
PreloadButton11Out.src =	"images/but2.gif";
PreloadButton11Over =	new Image(144,22);
PreloadButton11Over.src =	"images/but2On.gif";

PreloadButton12Out =	new Image(144,22);
PreloadButton12Out.src =	"images/but3.gif";
PreloadButton12Over =	new Image(144,22);
PreloadButton12Over.src =	"images/but3On.gif";

PreloadButton13Out =	new Image(144,22);
PreloadButton13Out.src =	"images/but4.gif";
PreloadButton13Over =	new Image(144,22);
PreloadButton13Over.src =	"images/but4On.gif";

PreloadButton14Out =	new Image(144,22);
PreloadButton14Out.src =	"images/but5.gif";
PreloadButton14Over =	new Image(144,22);
PreloadButton14Over.src =	"images/but5On.gif";

PreloadButton15Out =	new Image(144,22);
PreloadButton15Out.src =	"images/but6.gif";
PreloadButton15Over =	new Image(144,22);
PreloadButton15Over.src =	"images/but6On.gif";

PreloadButton16Out =	new Image(144,22);
PreloadButton16Out.src =	"images/but7.gif";
PreloadButton16Over =	new Image(144,22);
PreloadButton16Over.src =	"images/but7On.gif";

PreloadButton17Out =	new Image(144,22);
PreloadButton17Out.src =	"images/but8.gif";
PreloadButton17Over =	new Image(144,22);
PreloadButton17Over.src =	"images/but8On.gif";

PreloadButton18Out =	new Image(144,22);
PreloadButton18Out.src =	"images/but9.gif";
PreloadButton18Over =	new Image(144,22);
PreloadButton18Over.src =	"images/but9On.gif";

PreloadButton19Out =	new Image(144,22);
PreloadButton19Out.src =	"images/but10.gif";
PreloadButton19Over =	new Image(144,22);
PreloadButton19Over.src =	"images/but10On.gif";

PreloadButton20Out =	new Image(144,22);
PreloadButton20Out.src =	"images/but11.gif";
PreloadButton20Over =	new Image(144,22);
PreloadButton20Over.src =	"images/but11On.gif";

PreloadButton21Out =	new Image(144,22);
PreloadButton21Out.src =	"images/but12.gif";
PreloadButton21Over =	new Image(144,22);
PreloadButton21Over.src =	"images/but12On.gif";

// Holds the last tab button that was clicked: on initialization, it is the first
var LastButtonPressed = 0;

// Set to true if all the buttons are not pressed (when the menu of the top is activated)
var ButtonsCleared = true;

ns4 = (document.layers) ? true:false
ie4 = (document.all) ? true:false;

function ShowObject(obj)
{
	 if (ns4) obj.visibility = "show"
	 else if (ie4) obj.visibility = "visible"
}

function ButtonOver(ButtonIndex)
{
	if ((ButtonIndex != LastButtonPressed) || (ButtonsCleared == true))
	{
		var ButtonOn = eval('PreloadButton' + ButtonIndex + 'Over' + '.src');
		document['Button' + ButtonIndex].src = ButtonOn;
	}
}

function ButtonOut(ButtonIndex)
{
	if ((ButtonIndex != LastButtonPressed) || (ButtonsCleared == true))
	{
		var ButtonOff = eval('PreloadButton' + ButtonIndex + 'Out' + '.src');
		document['Button' + ButtonIndex].src = ButtonOff;
	}
}

function ButtonClick(ButtonIndex)
{
	if ((ButtonIndex != LastButtonPressed) || (ButtonsCleared == true))
	{
		var ButtonClick = eval('PreloadButton' + ButtonIndex + 'Click' + '.src');
		document['Button' + ButtonIndex].src = ButtonClick;
		
		if (ButtonsCleared == false)
		{
			var ButtonOff = eval('PreloadButton' + LastButtonPressed + 'Out' + '.src');
			document['Button' + LastButtonPressed].src = ButtonOff;
		}

		LastButtonPressed = ButtonIndex;
		ButtonsCleared = false;
	}
}

function ButtonClear()
{
	if (ButtonsCleared == false)
	{
		var ButtonOff = eval('PreloadButton' + LastButtonPressed + 'Out' + '.src');
		document['Button' + LastButtonPressed].src = ButtonOff;
	
		// Mark that no button in the tab is pressed
		ButtonsCleared = true;
	}
}

//-->