// ******************************************************
// Script from Stefan Koch - Voodoo<pi>s Intro to JavaScript
// http://rummelplatz.uni-mannheim.de/~skoch/js/
// JS-book: http://www.dpunkt.de/javascript
// You can use this code if you leave this message
// ******************************************************
// ok, we have a JavaScript browser
// JavaScript modified for this page by Leefe Hicks
var browserOK = false;
var pics;


// JavaScript 1.1 browser - oh yes!
browserOK = true;
pics = new Array();


<!-- hide
var objCount = 0; // number of (changing) images on web-page

function preload(name, first, second, foottext) {
	// preload images and place them in an array

	if (browserOK) {
		pics[objCount] = new Array(3);
		pics[objCount][0] = new Image();
		pics[objCount][0].src = first;
		pics[objCount][1] = new Image();
		pics[objCount][1].src = second;
		pics[objCount][2] = name;
		pics[objCount][3] = foottext;
		objCount++;
	}
	else {
		pics[objCount][2] = name;
		pics[objCount][3] = foottext;
		objCount++;
	}
}
	
function on(name) {
	if (browserOK) {
		for (i = 0; i < objCount; i++) {
			if (document.images[pics[i][2]] != null)
				if (name == pics[i][2]) {
				// show the second image because cursor moves across this image
					//if (pics[i][1].complete)
						document.images[pics[i][2]].src = pics[i][1].src;
					window.status=pics[i][3];
				}
			}
	}
	else {
		if (name == pics[i][2]) {
			window.status=pics[i][3];
		}
	}
	return true;
}

function off(name) {
	if (browserOK) {
		for (i = 0; i < objCount; i++) {
			// set back all pictures
			if (document.images[pics[i][2]] != null)
				if (name == pics[i][2]) {
					//if (pics[i][0].complete)
						document.images[pics[i][2]].src = pics[i][0].src;
				}
		}
	}
}
				
// preload images - you have to specify which images should be preloaded
// and which Image-object on the wep-page they belong to (this is the first
// argument). Change this part if you want to use different images (of course
// you have to change the body part of the document as well)

function loadExtras(theLocal) {
//  var theDir = theLocal +"image/menu/menu";
  var theDir = "/image/menu/menu";

  preload("menu01", theDir +"010.gif", theDir +"011.gif", "Necronomicon Index");
  preload("menu02", theDir +"020.gif", theDir +"021.gif", "Future Necronomicons");
  preload("menu03", theDir +"030.gif", theDir +"031.gif", "Past Necronomicons");
  preload("menu04", theDir +"040.gif", theDir +"041.gif", "Necronomicon News");
  preload("menu05", theDir +"050.gif", theDir +"051.gif", "Forum.Necronomicon.org");
  preload("menu06", theDir +"060.gif", theDir +"061.gif", "Frequently Asked Questions");
  preload("menu07", theDir +"070.gif", theDir +"071.gif", "Gallery");
  preload("menu08", theDir +"080.gif", theDir +"081.gif", "Guest Book");
  preload("menu09", theDir +"090.gif", theDir +"091.gif", "Downloads");
  preload("menu10", theDir +"100.gif", theDir +"101.gif", "Links of interest");
  preload("menu11", theDir +"110.gif", theDir +"111.gif", "Link to Necronomicon.org");
  preload("menu12", theDir +"120.gif", theDir +"121.gif", "Shadow Games");
  preload("menu13", theDir +"130.gif", theDir +"131.gif", "Contact us");
}


