	if (document.images)
	{
		heroquestlogo= new Image();
		heroquestlogo.src="images/heroquest-logo.gif";		

		systembuttonon= new Image();
		systembuttonon.src="images/button-system-on.gif";
		kellarsbuttonon= new Image();
		kellarsbuttonon.src="images/button-kellarskeep-on.gif";
		witchlordbuttonon= new Image();
		witchlordbuttonon.src="images/button-returnofthewitchlord-on.gif";
		barbarianbuttonon= new Image();
		barbarianbuttonon.src="images/button-frozenhorror-on.gif";
		elfbuttonon= new Image();
		elfbuttonon.src="images/button-mageofthemirror-on.gif";
		ogrebuttonon= new Image();
		ogrebuttonon.src="images/button-againsttheogrehorde-on.gif";
		wizardsbuttonon= new Image();
		wizardsbuttonon.src="images/button-wizardsofmorcar-on.gif";
		zargonbuttonon= new Image();
		zargonbuttonon.src="images/button-wizardsofzargon-on.gif";
		designbuttonon= new Image();
		designbuttonon.src="images/button-adventuredesignkit-on.gif";
		cardsbuttonon= new Image ();
		cardsbuttonon.src="images/button-cards-on.gif";		
		designtoolsbuttonon= new Image ();
		designtoolsbuttonon.src="images/button-designgametools-on.gif";		
		pcgamesbuttonon= new Image ();
		pcgamesbuttonon.src="images/button-pcgames-on.gif";		
		questsbuttonon= new Image ();
		questsbuttonon.src="images/button-quests-on.gif";		
		rulesbuttonon= new Image ();
		rulesbuttonon.src="images/button-rules-on.gif";		
		tilesbuttonon= new Image ();
		tilesbuttonon.src="images/button-tiles-on.gif";		

		systembuttonoff= new Image();
		systembuttonoff.src="images/button-system.gif";
		kellarsbuttonoff= new Image();
		kellarsbuttonoff.src="images/button-kellarskeep.gif";
		witchlordbuttonoff= new Image();
		witchlordbuttonoff.src="images/button-returnofthewitchlord.gif";
		barbarianbuttonoff= new Image();
		barbarianbuttonoff.src="images/button-frozenhorror.gif";
		elfbuttonoff= new Image();
		elfbuttonoff.src="images/button-mageofthemirror.gif";
		ogrebuttonoff= new Image();
		ogrebuttonoff.src="images/button-againsttheogrehorde.gif";
		wizardsbuttonoff= new Image();
		wizardsbuttonoff.src="images/button-wizardsofmorcar.gif";
		zargonbuttonoff= new Image();
		zargonbuttonoff.src="images/button-wizardsofzargon.gif";
		designbuttonoff= new Image();
		designbuttonoff.src="images/button-adventuredesignkit.gif";
		cardsbuttonoff= new Image();
		cardsbuttonoff.src="images/button-cards.gif";
		designtoolsbuttonoff= new Image();
		designtoolsbuttonoff.src="images/button-designgametools.gif";
		pcgamesbuttonoff= new Image();
		pcgamesbuttonoff.src="images/button-pcgames.gif";
		questsbuttonoff= new Image();
		questsbuttonoff.src="images/button-quests.gif";
		rulesbuttonoff= new Image();
		rulesbuttonoff.src="images/button-rules.gif";
		tilesbuttonoff= new Image();
		tilesbuttonoff.src="images/button-tiles.gif";
	}

	function lightup(imgName)
	{
		if (document.images)
		{
			imgOn=eval(imgName + "on.src");
			document[imgName].src= imgOn;
		}
	}

	function turnoff(imgName)
	{
		if (document.images)
		{
			imgOff=eval(imgName + "off.src");
			document[imgName].src= imgOff;
		}
	}

	function searchfield_focus(obj)
	{
	obj.style.color=""
	obj.style.fontStyle=""
	if (obj.value=="Search YeOldeInn")
		{
		obj.value=""
		}
	}
