<!-- COURSE VERSION: v1.00.00.  BUILT ON: 02/08/08 11:44:06 AM. BY Jason Nugent -->
// JavaScript Document
//-->
var pageTitle=new Array();

// Introduction
pageTitle[0] = ""; // Welcome
pageTitle[1] = ""; // Menu
// Module 2
pageTitle[2] = "page 1 module 1"; // Page 1

function setUpTitle(){
	headerFrame.document.getElementById('pageLabel').innerHTML=pageTitle[nPageNumber];
}
var specDone=0;
var readyNav=false;

// Not sure we need to do this, but others have in the past, but let's create the vars dynamically.
for (var i = 0; i <= pageTitle.length; i++) {
	eval("page" + i + "Done = 0;");
}

/* Jason Nugent 2/2/08
To handle the transition for an image call the following function passing the object
for this function to work you must have the filter allocated to the style sheet for the object
Example
----CSS-----
next.a{
filter: BlendTrans(Duration=0.2);
}
nex.a:link{
background:url(nextInitial.jpg)	
}
next.a:hover{
background:url(nextOver.jpg);	
}
----html-----
<a id=next onMouseOver='tansImg(this)'; onMouseOut = 'transImg(this)'; href='#' />
*/
function buttonState(obj, state){
	//object id to string
	objId = obj.id
	//get the blend transition and hold the event
	obj.filters.blendTrans.apply();
	//get image position from the id and the state
	obj.src = eval(objId)[state];
	//play the transition
	obj.filters.blendTrans.play();
}
//Preload all the images for the head and navigationFrame button states
//home button preload
homeImg = new Image();
homeImg[0] = 'images/homeInitial.jpg';
homeImg[1] = 'images/homeOver.jpg';
homeImg[2] = 'images/homePress.jpg';
homeImg[3] = 'images/homeVisited.jpg';
homeImg[4] = 'images/homeDisabled.jpg';
//order button preload
orderImg = new Image();
orderImg[0] = 'images/orderInitial.jpg';
orderImg[1] = 'images/orderOver.jpg';
orderImg[2] = 'images/orderPress.jpg';
orderImg[3] = 'images/orderVisited.jpg';
orderImg[4] = 'images/orderDisabled.jpg';
//cast button button preload
castImg = new Image();
castImg[0] = 'images/castInitial.jpg';
castImg[1] = 'images/castOver.jpg';
castImg[2] = 'images/castPress.jpg';
castImg[3] = 'images/castVisited.jpg';
castImg[4] = 'images/castDisabled.jpg';
//faq button preload
faqImg = new Image();
faqImg[0] = 'images/faqInitial.jpg';
faqImg[1] = 'images/faqOver.jpg';
faqImg[2] = 'images/faqPress.jpg';
faqImg[3] = 'images/faqVisited.jpg';
faqImg[4] = 'images/faqDisabled.jpg';
//words button preload
wordsImg = new Image();
wordsImg[0] = 'images/wordsInitial.jpg';
wordsImg[1] = 'images/wordsOver.jpg';
wordsImg[2] = 'images/wordsPress.jpg';
wordsImg[3] = 'images/wordsVisited.jpg';
wordsImg[4] = 'images/wordsDisabled.jpg';
//pics button preload
picsImg = new Image();
picsImg[0] = 'images/picsInitial.jpg';
picsImg[1] = 'images/picsOver.jpg';
picsImg[2] = 'images/picsPress.jpg';
picsImg[3] = 'images/picsVisited.jpg';
picsImg[4] = 'images/picsDisabled.jpg';
