<!--

//detect if browser is Netscape 3 + or IE 4 +. 

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName == "Netscape" && bVer >= 3) ||
    (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
else br = "n2";

//create image objects, preload all active and inactive images

if (br == "n3") {
  productsMenuOn = new Image();
  productsMenuOn.src = "images/button_products_on.gif";
  companyMenuOn = new Image();
  companyMenuOn.src = "images/button_company_on.gif";
  resourcesMenuOn = new Image();
  resourcesMenuOn.src = "images/button_resources_on.gif";
  servicesMenuOn = new Image();
  servicesMenuOn.src = "images/button_services_on.gif";
  

  productsMenuOff = new Image();
  productsMenuOff.src = "images/button_products_off.gif";
  companyMenuOff = new Image();
  companyMenuOff.src = "images/button_company_off.gif";
  resourcesMenuOff = new Image();
  resourcesMenuOff.src = "images/button_resources_off.gif";
  servicesMenuOff = new Image();
  servicesMenuOff.src = "images/button_services_off.gif";
  
  
}

// function to activate menu when mouse over button or arrow images

function imgAction(imgName) {
  if (br== "n3") {
    document[imgName].src = eval(imgName + "On.src");
  }
}

// function to deactivate menu when mouse over button or arrow images

function imgInaction(imgName) { 
  if (br == "n3") {
    document[imgName].src = eval(imgName + "Off.src");
	}
}


// create pop-up window

var popupWindow
function createNew (URL) {
	if (!popupWindow || popupWindow.closed) {
		popupWindow = window.open(URL,"tour",'HEIGHT=400,WIDTH=400,scrollbars=1,resizeable=1,location=0,menubar=0')
		} else{
		//bring existing subwindow to the front
		popupWindow.focus()
		}
	}




// show date, month and year


newTime = new Date();

var mpo = newTime.getMonth();

var zeroDays = newTime.getDate();

var zeroSeconds = newTime.getSeconds();

var zeroMinutes = newTime.getMinutes();

var hours = newTime.getHours();

var monthName;

var year = newTime.getYear();



if (year >= 100 && year <= 1999)

{year=year + 1900}



if (zeroSeconds < 10){

zeroSeconds = "0" + newTime.getSeconds();

}



if (zeroMinutes < 10){

zeroMinutes = "0" + newTime.getMinutes();

}



if (hours > 12){

hours = (hours - 12);

}



if (zeroDays < 10){

zeroDays = "0" + newTime.getDay();

}



if (mpo==0)monthName="January";

if (mpo==1)monthName="February";

if (mpo==2)monthName="March";

if (mpo==3)monthName="April";

if (mpo==4)monthName="May";

if (mpo==5)monthName="June";

if (mpo==6)monthName="July";

if (mpo==7)monthName="August";

if (mpo==8)monthName="September";

if (mpo==9)monthName="October";

if (mpo==10)monthName="November";

if (mpo==11)monthName="December";



// MenuScript - Roganstreet, Inc.

var hiliteList = new makeArray(2) //allways should be greater than or equal to the last 
								  //series number + 1 (so if the series number = 4 then
								  //this value would be 5.) For IE3 compatibility.

//*****add all hiliter object info here! *****

hiliteList[0]= new hiliteOBJ('QALinks','QALinksOver')
hiliteList[1]= new hiliteOBJ('SubPageLinks','SubPageLinksOver')


//***all hiliter info above here! *****

function makeArray(UBound){
	this.length=UBound
	for(ii=0;ii <= UBound;ii++){
		this[ii]=0
		}
}

function hiliteOBJ(p_classRest,p_classOver){
	this.classRest = p_classRest;
	this.classOver = p_classOver;
	return this;
}
	
function doHilite(p_obj){
	for(nn=0;nn<=(hiliteList.length - 1);nn++){  //repeat for all objects in hiliteList
		if(p_obj.className == hiliteList[nn].classRest){
			//caught one at "rest", so set to Over;
			p_obj.className = hiliteList[nn].classOver;
			break;
			return false;
		}
		if(p_obj.className == hiliteList[nn].classOver){
			//caught one at that is still hilited, so set to Rest;
			p_obj.className = hiliteList[nn].classRest;
			break;
			return false;
		}
	}
	return false;
}

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// jeopardy

// answers
var answers = new Array();

answers["1A"] = "This is the answer";
answers["2A"] = "Answer goes here";

// questions
var questions = new Array();

questions["1A"] = "What is the question?";
questions["2A"] = "Where did the question go?";

// popup answer window
var pw;
function showq (ans)
{
	// popup window
	pw = window.open("","jeopardy",'HEIGHT=520,WIDTH=520,resizeable=1,location=0,menubar=0');
    pw.focus();
	
	pw.document.write("<HTML><HEAD><LINK REL=STYLESHEET type=\"text/css\" HREF=\"style.css\"><script language=\"Javascript\" src=\"script.js\"></script></HEAD>");
	pw.document.write("<BODY TOPMARGIN=\"25\" LEFTMARGIN=\"25\">");
	pw.document.write("<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"5\" BGCOLOR=\"#003399\" WIDTH=\"90%\" HEIGHT=\"75%\"><TR><TD BGCOLOR=\"#FFFFFF\" align=\"center\">");
	pw.document.write("<P CLASS=\"bodytext\" style=\"font-size:xx-large\">Answer: " + answers[ans] + "</P><br><br>");
    pw.document.write("</TD></TR><TR><TD align=\"center\" bgcolor=\"#FFFFFF\">");
	pw.document.write("<input type=\"button\" name=\"q\" value=\"Print Question\" onClick=\"showa('" + ans + "')\">");
	pw.document.write("</TD></TR></TABLE></BODY></HTML>");
    pw.document.close();
	
	// write answer in table
	document.all[ans].innerHTML = "<SPAN class=\"bodytext\" style=\"font-size:medium\">" + answers[ans] + "</span>";
}	

// print the question
function showa (ans)
{
	pw = window.open("","jeopardy",'HEIGHT=520,WIDTH=520,resizeable=1,location=0,menubar=0');
    pw.focus();
	
	pw.document.write("<HTML><HEAD><LINK REL=STYLESHEET type=\"text/css\" HREF=\"style.css\"><SCRIPT language=\"javascript\" SRC=\"script.js\"></script></HEAD>");
	pw.document.write("<BODY TOPMARGIN=\"25\" LEFTMARGIN=\"25\">");
	pw.document.write("<TABLE BORDER=\"0\" CELLSPACING=\"1\" CELLPADDING=\"5\" BGCOLOR=\"#003399\" WIDTH=\"90%\" HEIGHT=\"75%\"><TR><TD BGCOLOR=\"#FFFFFF\" align=\"center\">");
	pw.document.write("<P CLASS=\"bodytext\" style=\"font-size:xx-large\">Question: " + questions[ans] + "</P><br><br>");
    pw.document.write("</TD></TR><TR><TD align=\"center\" bgcolor=\"#FFFFFF\">");
	pw.document.write("&nbsp;<input type=\"button\" name=\"close\" value=\"Close\" onclick=\"window.close()\">");
	pw.document.write("</TD></TR></TABLE></BODY></HTML>");
    pw.document.close();
	
	// write question in table
	opener.document.all[ans].innerHTML = "<SPAN class=\"bodytext\" style=\"font-size:medium\">A: " + answers[ans] + "<br>Q: " + questions[ans] + "</span>";
}	
