<!--
/***********************************************************************
The following code declares variables for the on() and off() functions
***********************************************************************/
var browserOK = false;
var pics;
var NameString;
var objCount = 0;
NameString = navigator.appname + navigator.appCodeName + navigator.appVersion;
if (NameString.indexOf("Explorer") == -1)
{
	if (NameString.indexOf("2.0") == -1)
    {
		browserOK = true;
	    pics = new Array();
    }
}
/********************************************************************
preload:
This function will preload all of your rollover images into cache
Required parameters:
name - this is the name of your image
first - this is the location of the off image
second - this is the location of the on image
*********************************************************************/
function preload(name, first, second)
{
	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;
	    objCount++;
    }
}

/********************************************************************
on:
This functions swaps the off image with the on image
Required parameters:
on - this is the name of the rollover image
*********************************************************************/
function on(name)
{
	if (browserOK)
    {
		for (i = 0; i < objCount; i++)
        {
			if (document.images[pics[i][2]] != null)
	        {
				if (name != pics[i][2])
		        {
					document.images[pics[i][2]].src = pics[i][0].src;
		        }
		        else
		       {
			   	document.images[pics[i][2]].src = pics[i][1].src;
		       }
	        }
    	}
     }
}


/********************************************************************
off:
This functions swaps the on image with the off image
Required parameters:
There are no required parameters for this function
*********************************************************************/
function off()
{
	if (browserOK)
    {
		for (i = 0; i < objCount; i++)
        {
			if (document.images[pics[i][2]] != null) document.images[pics[i][2]].src = pics[i][0].src;
      	}
    }
}

// preload all of your images here
preload("rooms", "/images/nav_01.gif", "/images/nav_01_on.gif");
preload("tours", "/images/nav_03.gif", "/images/nav_03_on.gif");
preload("special", "/images/nav_05.gif", "/images/nav_05_on.gif");
preload("guestbook", "/images/nav_07.gif", "/images/nav_07_on.gif");
preload("weddings", "/images/nav_09.gif", "/images/nav_09_on.gif");
//preload("cars", "/images/nav_11.gif", "/images/nav_11_on.gif");
preload("maps", "/images/nav_13.gif", "/images/nav_13_on.gif");
preload("golf", "/images/nav_15.gif", "/images/nav_15_on.gif");
//preload("shopping", "/images/nav_17.gif", "/images/nav_17_on.gif");
preload("shows", "/images/nav_19.gif", "/images/nav_19_on.gif");
preload("groups", "/images/nav_21.gif", "/images/nav_21_on.gif");
preload("itinerary", "/images/nav_23.gif", "/images/nav_23_on.gif");

/***********************************************************************
SetStatusbar:
This function sets the status bar message to the specified message
Parameters are as follows:
msg - this is the message you want displayed
***********************************************************************/
function SetStatusBar(msg)
{
	window.status=msg;
	return true;
}