	if (document.images)
	{
		heroquestlogo= new Image();
		heroquestlogo.src="images/heroquest-logo.gif";		

		systembuttonon= new Image();
		systembuttonon.src="images/button-es-system-on.gif";
		kellarsbuttonon= new Image();
		kellarsbuttonon.src="images/button-es-kellars-keep-on.gif";
		witchlordbuttonon= new Image();
		witchlordbuttonon.src="images/button-es-return-of-the-witch-lord-on.gif";
		barbarianbuttonon= new Image();
		barbarianbuttonon.src="images/button-frozen-horror-on.gif";
		elfbuttonon= new Image();
		elfbuttonon.src="images/button-mage-of-the-mirror-on.gif";
		ogrebuttonon= new Image();
		ogrebuttonon.src="images/button-es-against-the-ogre-horde-on.gif";
		morcarbuttonon= new Image();
		morcarbuttonon.src="images/button-es-wizards-of-morcar-on.gif";
		designbuttonon= new Image();
		designbuttonon.src="images/button-es-adventure-design-kit-on.gif";
		cardsbuttonon= new Image ();
		cardsbuttonon.src="images/button-es-cards-on.gif";		
		designtoolsbuttonon= new Image ();
		designtoolsbuttonon.src="images/button-es-design-and-game-tools-on.gif";		
		pcgamesbuttonon= new Image ();
		pcgamesbuttonon.src="images/button-es-pc-games-on.gif";		
		questsbuttonon= new Image ();
		questsbuttonon.src="images/button-es-quests-on.gif";		
		rulesbuttonon= new Image ();
		rulesbuttonon.src="images/button-es-rules-on.gif";		
		tilesbuttonon= new Image ();
		tilesbuttonon.src="images/button-es-tiles-on.gif";		

		systembuttonoff= new Image();
		systembuttonoff.src="images/button-es-system.gif";
		kellarsbuttonoff= new Image();
		kellarsbuttonoff.src="images/button-es-kellars-keep.gif";
		witchlordbuttonoff= new Image();
		witchlordbuttonoff.src="images/button-es-return-of-the-witch-lord.gif";
		barbarianbuttonoff= new Image();
		barbarianbuttonoff.src="images/button-frozen-horror.gif";
		elfbuttonoff= new Image();
		elfbuttonoff.src="images/button-mage-of-the-mirror.gif";
		ogrebuttonoff= new Image();
		ogrebuttonoff.src="images/button-es-against-the-ogre-horde.gif";
		morcarbuttonoff= new Image();
		morcarbuttonoff.src="images/button-es-wizards-of-morcar.gif";
		designbuttonoff= new Image();
		designbuttonoff.src="images/button-es-adventure-design-kit.gif";
		cardsbuttonoff= new Image();
		cardsbuttonoff.src="images/button-es-cards.gif";
		designtoolsbuttonoff= new Image();
		designtoolsbuttonoff.src="images/button-es-design-and-game-tools.gif";
		pcgamesbuttonoff= new Image();
		pcgamesbuttonoff.src="images/button-es-pc-games.gif";
		questsbuttonoff= new Image();
		questsbuttonoff.src="images/button-es-quests.gif";
		rulesbuttonoff= new Image();
		rulesbuttonoff.src="images/button-es-rules.gif";
		tilesbuttonoff= new Image();
		tilesbuttonoff.src="images/button-es-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=""
		}
	}
