 
// Some variables

var base= "img/mo_" // Path to images
var nrm = new Array();
var omo = new Array();
var ocl = new Array();
var stuff = new Array('one','two','three','four','five');
var selects = -1;
var temp = 0;

// Pre-load part.

if (document.images)
{
	for (i = 0; i < stuff.length; i++)
	{
		nrm[i] = new Image;
		nrm[i].src = base + stuff[i] + ".gif"
		omo[i] = new Image;
		omo[i].src = base + stuff[i] + "_omo.gif";
		ocl[i] = new Image;
		ocl[i].src = base +  "page_ON.gif"; // on state
	}
}

// The functions: first mouseover, then mouseout

function over(no)
{
	if (document.images && selects != no)
	{
		document.images[stuff[no]].src = omo[no].src
	}
}

function out(no)
{
	if (document.images && selects != no)
	{
		document.images[stuff[no]].src = nrm[no].src
	}
}

function clic(no)
{
	if (document.images)
	{
		document.images[stuff[no]].src = ocl[no].src
		temp = selects;
		selects = no;
		if (temp != -1) { out(temp) }
	}
}


function checkLink(check) {
  // Find the path to the image you want to check
  var pathLink = document.images[check].src;
  // Check to see if img is turned on
  if(pathLink.indexOf('mo_page_ON.gif') > 0 ) {
  // If image is in its on state do nothing here
  } else {
	// Start the slide layers function here
	whichSlide = 'glideDiv' + (check - 1); 
	slideEm(whichSlide);
  }
}


function start() {
browser_detect(); // Browser detect called here browser_detect.js
delay(2000); // Slider delay called here
clic(0); // Highlight first navigation breadcrumb
}

window.onload = start;
