function GoTo(where) {

	if (where != "#") {

		self.location=where;

	}

}



function nextnav() {

	// Code here to build littlebox with level 4 navigation based on

	// contentid (page identifier)

	var i;

	var thisPage = window.location.pathname;

	var i = thisPage.lastIndexOf(".");

	var firstPart = thisPage.substring(0,i);

	var i = firstPart.lastIndexOf("/");

	fileName = firstPart.substring(i+1);

	fileName = fileName.toLowerCase();

	if (fileName.substring(0,10)=="navigation") {

		if (fileName.length > 10) {

			fileID = fileName.substring(10);

			checkNextNav(fileID);

			}

		}

}



function navTop() {

	document.write("<table width='95%' cellspacing='0' cellpadding='0' border='0'>");

	document.write("<tr>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<td class='littleboxMenu'>/// menu</td>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<tr>");

}



function navBottom() {

	document.write("<tr>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<td class='littleboxBottom'></td>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<tr>");

}



function navLine(sTitle, sURL) {

	document.write("<tr>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<td>&nbsp;<A HREF='" + sURL + "'>" + sTitle + "</A></td>");

	document.write("<td class='littleboxSide'></td>");

	document.write("<tr>");

}



function buttonTextAction(isOn, thisCell) {

	if (isOn) {

		thisCell.className=thisCell.className+"On";

		thisCell.style.cursor="hand";

		}

	else {

		var tmpClass = thisCell.className;

		thisCell.className=tmpClass.substr(0,tmpClass.length-2);

		thisCell.style.cursor="auto";

		}

}

function buttonTextToggle(thisClass, thisCell) {

	if (thisClass == thisCell.className) {

		thisCell.className=thisCell.className+"On";

		thisCell.style.cursor="hand";

		}

	else {

		var tmpClass = thisCell.className;

		thisCell.className=tmpClass.substr(0,tmpClass.length-2);

		thisCell.style.cursor="hand";

		}

}

function setButtonCursor (thisCell) {
	thisCell.style.cursor="hand";
}

function highlightLeftMenu(isOn, thisCell, menuID, thisEvent) {

	var tLeft;

	var tCmd;

	var tTop;

	var tBot;

	var tRight;

	var HM_NSLayers = (document.layers) ? true : false;

	if (isOn) {

		thisCell.className=thisCell.className+"On";

		thisCell.bgColor="#660099";

		thisCell.style.cursor="hand";

		tTop   = (HM_NSLayers) ? thisCell.y : getRealTop(thisCell);

		tTop   = tTop-1;

		tLeft  = (HM_NSLayers) ? thisCell.y : getRealLeft(thisCell);

		tRight = tLeft + thisCell.offsetWidth;

		tBot   = tTop + thisCell.offsetHeight;

		tCmd = "HM_MenuLeft"+menuID+"="+tRight+";";

		eval(tCmd);

		tCmd = "HM_MenuTop"+menuID+"="+tTop+";";

		eval(tCmd);

		if (menuID != 0) popUp('HM_Menu'+menuID,thisEvent);

		}

	else {

		var tmpClass = thisCell.className;

		thisCell.className=tmpClass.substr(0,tmpClass.length-2);

		thisCell.bgColor="#FFFFFF";

		thisCell.style.cursor="auto";

		if (menuID != 0) popDown('HM_Menu'+menuID);

		}

}



function highlightTopMenu(isOn, thisCell, menuID, thisEvent) {

	var tLeft;

	var tCmd;

	var tTop;

	var tBot;

	var tRight;

	var HM_NSLayers = (document.layers) ? true : false;

	if (isOn) {

		thisCell.className=thisCell.className+"On";

		thisCell.bgColor="#660099";

		thisCell.style.cursor="hand";

		tTop   = (HM_NSLayers) ? thisCell.y : getRealTop(thisCell);

		tLeft  = (HM_NSLayers) ? thisCell.y : getRealLeft(thisCell);

		tLeft  = tLeft - 1;

		tRight = tLeft + thisCell.offsetWidth;

		tBot   = tTop + thisCell.offsetHeight;

		tCmd = "HM_MenuLeft"+menuID+"="+tLeft+";";

		eval(tCmd);

		tCmd = "HM_MenuTop"+menuID+"="+tBot+";";

		eval(tCmd);

		if (menuID != 0) popUp('HM_Menu'+menuID,thisEvent);

		}

	else {

		var tmpClass = thisCell.className;

		thisCell.className=tmpClass.substr(0,tmpClass.length-2);

		thisCell.bgColor="#FFFFFF"

		thisCell.style.cursor="auto";

		if (menuID != 0) popDown('HM_Menu'+menuID,thisEvent);

		}

}



function highlightOtherText(isOn, thisCell, nobgcolor) {

	if (isOn) {

		thisCell.className=thisCell.className+"On";

		thisCell.bgColor="#660099";

		thisCell.style.cursor="hand";

		}

	else {

		var tmpClass = thisCell.className;

		thisCell.className=tmpClass.substr(0,tmpClass.length-2);

		if (nobgcolor) {

			thisCell.bgColor="";

			}

		else {

			thisCell.bgColor="#FFFFFF"

			}

		thisCell.style.cursor="auto";

		}

}

  