<!--
var browser = navigator.appName;
var ie = "Microsoft Internet Explorer";
var netscape = "Netscape";
os = navigator.platform;
mac = "MacPPC";

/***********************************************************************
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("nav_svc", "../images/nav_svc_off.jpg", "../images/nav_svc_on.jpg");
preload("nav_docs", "images/nav_docs_off.jpg", "images/nav_docs_on.jpg");
preload("nav_staff", "images/nav_staff_off.jpg", "images/nav_staff_on.jpg");
preload("nav_contact", "images/nav_contact_off.jpg", "images/nav_contact_on.jpg");


/***********************************************************************
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;
}


/**********************************************************************
addFav:
This function adds this site to the users favorites list.  It also
checks to see if you are using netscape.  If you are, it pops up a message
telling you to hit CTRL-D to bookmark the site in netscape
**********************************************************************/
function addFav()
{
	if ((browser == "Netscape Navigator") && (version < 5))		
	{
			alert("Please use CTRL+D on your keyboard to bookmark this site in Netscape");
	}
	else
	{
		window.external.AddFavorite('http://www.Choice-Tickets.com','Vegas Choice Tickets')
	}
}

function GetImageX(ImageName)
{
	var rv = 0;
	var Img = document.images[ImageName];
	if (document.layers)
	{			//netscape
		rv = Img.x;
	}
	else {			// IE
		while (Img.offsetParent){
			rv += Img.offsetLeft;
			Img = Img.offsetParent;
		}
	}
		
	return rv;
}

function GetImageY(ImageName)
{
	var rv = 0;
	var Img = document.images[ImageName];
	if (document.layers)
	{	//netscape
		rv = Img.y;
	}
	else
	{	//ie
		rv = Img.offsetTop;
	}
		
	return rv;
}

/***********************************************************************
popWin:
This function pops up a new window with the specified url.
Parameter are as follows:
url - this is the url that you want the user to be directed to
name - this is the name of the popup window
features - this is the width,height,scrollbars,etc...
***********************************************************************/
function popWin(url,name,features)
{
 	var the_win;
	the_win = window.open(url,name,features);
  	the_win.focus();
}

function SetStatusbar(msg){
	window.status=msg;
	return true;
}


/*********************************************************************
showRight
**********************************************************************/
function showRight(thisContent) {
	document.getElementById('righttext').innerHTML = thisContent;
	}

//-->

