<!-- Open Hide --
/***********************************************

* Declarations                                 *

***********************************************/

/** Declare variable to keep track of current page */

var currentIcon;

currentIcon = 1;


/** Load buttons into memory. */

alWhite = new Image();
alWhite.src = "images/btn_al_w.gif";
alYellow = new Image();
alYellow.src = "images/btn_al_y.gif";

psWhite = new Image();
psWhite.src = "images/btn_ps_w.gif";
psYellow = new Image();
psYellow.src = "images/btn_ps_y.gif";

prWhite = new Image();
prWhite.src = "images/btn_pr_w.gif";
prYellow = new Image();
prYellow.src = "images/btn_pr_y.gif";

stWhite = new Image();
stWhite.src = "images/btn_st_w.gif";
stYellow = new Image();
stYellow.src = "images/btn_st_y.gif";

opWhite = new Image();
opWhite.src = "images/btn_op_w.gif";
opYellow = new Image();
opYellow.src = "images/btn_op_y.gif";

gtWhite = new Image();
gtWhite.src = "images/btn_gt_w.gif";
gtYellow = new Image();
gtYellow.src = "images/btn_gt_y.gif";

clWhite = new Image();
clWhite.src = "images/btn_cl_w.gif";
clYellow = new Image();
clYellow.src = "images/btn_cl_y.gif";

ruWhite = new Image();
ruWhite.src = "images/btn_ru_w.gif";
ruYellow = new Image();
ruYellow.src = "images/btn_ru_y.gif";

ciWhite = new Image();
ciWhite.src = "images/btn_ci_w.gif";
ciYellow = new Image();
ciYellow.src = "images/btn_ci_y.gif";

neWhite = new Image();
neWhite.src = "images/btn_ne_w.gif";
neYellow = new Image();
neYellow.src = "images/btn_ne_y.gif";

afWhite = new Image();
afWhite.src = "images/btn_af_w.gif";
afYellow = new Image();
afYellow.src = "images/btn_af_y.gif";

sbWhite = new Image();
sbWhite.src = "images/btn_sb_w.gif";
sbYellow = new Image();
sbYellow.src = "images/btn_sb_y.gif";

smWhite = new Image();
smWhite.src = "images/btn_sm_w.gif";
smYellow = new Image();
smYellow.src = "images/btn_sm_y.gif";

lkWhite = new Image();
lkWhite.src = "images/btn_lk_w.gif";
lkYellow = new Image();
lkYellow.src = "images/btn_lk_y.gif";

// Done preloading Toc items

/** Load icons into memory */

icoAl = new Image(200, 120);
icoAl.src = "images/ico_al.jpg";

icoPs = new Image(200, 120);
icoPs.src = "images/ico_ps.jpg";

icoPr = new Image(200, 120);
icoPr.src = "images/ico_pr.jpg";

icoSt = new Image(200, 120);
icoSt.src = "images/ico_st.jpg";

icoOp = new Image(200, 120);
icoOp.src = "images/ico_op.jpg";

icoGt = new Image(200, 120);
icoGt.src = "images/ico_gt.jpg";

icoCl = new Image(200, 120);
icoCl.src = "images/ico_cl.jpg";

icoRu = new Image(200, 120);
icoRu.src = "images/ico_ru.jpg";

icoCi = new Image( 200, 120 );
icoCi.src = "images/ico_ci.jpg";

icoNe = new Image( 200, 120 );
icoNe.src = "images/ico_ne.jpg";

icoAf = new Image( 200, 120 );
icoAf.src = "images/ico_af.jpg";

icoSb = new Image( 200, 120 );
icoSb.src = "images/ico_sb.jpg";

icoSm = new Image( 200, 120 );
icoSm.src = "images/ico_sm.jpg";

icoLk = new Image( 200, 120 );
icoLk.src = "images/ico_lk.jpg";

// Done preloading icon images


/* ******************************
* Function: setFocus()
* Purpose: Sets focus to the content window
* per Mr. H's request so that user can
* scrill with the arrow keys after load
***********************************/
function setFocus()
{
	parent.contents.focus();
}

/*****************************
* Name: setIcon( <icon file> )
* Purpose: Function used to determin
* wich icon should load and become perm
* when a user clicks on a link in the TOC
*************************************/
function setIcon( theIcon )
{
	if ( theIcon == 1 )
	{
		parent.toc_ico.document.images['icons'].src = icoAl.src;
	}
	else if ( theIcon == 2 )
	{
		parent.toc_ico.document.images['icons'].src = icoPs.src;
	}
	else if ( theIcon == 3 )
	{
		parent.toc_ico.document.images['icons'].src = icoPr.src;
	}
	else if ( theIcon == 4 )
	{
		parent.toc_ico.document.images['icons'].src = icoSt.src;
	}
	else if ( theIcon == 5 )
	{
		parent.toc_ico.document.images['icons'].src = icoOp.src;
	}
	else if ( theIcon == 6 )
	{
		parent.toc_ico.document.images['icons'].src = icoGt.src;
	}
	else if ( theIcon == 7 )
	{
		parent.toc_ico.document.images['icons'].src = icoCl.src;
	}
	else if ( theIcon ==  8 )
	{
		parent.toc_ico.document.images['icons'].src = icoRu.src;
	}
	else if ( theIcon == 9 )
	{
		parent.toc_ico.document.images['icons'].src = icoCi.src;
	}
	else if ( theIcon == 10)
	{
		parent.toc_ico.document.images['icons'].src = icoNe.src;
	}
	else if ( theIcon == 11 )
	{
		parent.toc_ico.document.images['icons'].src = icoAf.src;
	}
	else if ( theIcon == 12 )
	{
		parent.toc_ico.document.images['icons'].src = icoSb.src;
	}
	else if ( theIcon == 13 )
	{
		parent.toc_ico.document.images['icons'].src = icoSm.src;
	}
	else if ( theIcon == 14 )
	{
		parent.toc_ico.document.images['icons'].src = icoLk.src;
	}
}

//-- Close Hide -->