<!-- ----------------------------------------------------------------------------------
//
// Name: Footer.js
// Author: Dan Carlson.
// Description:	JScript code for Footer.
//		  
// Maintenance:
//
// Date			Developer			Modification
// --------   	------------------	----------------------------------------------
// 10/01/06		Dan Carlson			Initial version created.
//
//--------------------------------------------------------------------------------- -->

//-------------------------------------------------------------------------------------
// Attach events.
//-------------------------------------------------------------------------------------
window.onload = InitPage;

//-------------------------------------------------------------------------------------
// Module level variables.
//-------------------------------------------------------------------------------------
var moMain = top.frames;

//-------------------------------------------------------------------------------------
// Process a mouse click on a footer item.
//-------------------------------------------------------------------------------------
function DoFooterClick() {

	var oMenu = event.srcElement;
	var sURL = null;
	var sOptions = "";
	var iWidth;
	var iHeight;
	var bModalDialog = false;
    
    switch (oMenu.id) {
        case "Privacy":
			iWidth  = (screen.availWidth  > 640) ? 640 : screen.availWidth;
			iHeight = (screen.availHeight > 480) ? 480 : screen.availHeight;
			sOptions  = "dialogHeight:" + iHeight+ "px;dialogWidth:" + iWidth  + "px;";
			sOptions += "center:yes;status:no;help:no;resizable:yes;";
			window.showModalDialog("Privacy.asp",window,sOptions);
            break;
        case "Terms":
			iWidth  = (screen.availWidth  > 640) ? 640 : screen.availWidth;
			iHeight = (screen.availHeight > 480) ? 480 : screen.availHeight;
			sOptions  = "dialogHeight:" + iHeight+ "px;dialogWidth:" + iWidth  + "px;";
			sOptions += "center:yes;status:no;help:no;resizable:yes;";
			window.showModalDialog("Terms.asp",window,sOptions);
            break;
        case "Partners":
			iWidth  = (screen.availWidth  > 640) ? 640 : screen.availWidth;
			iHeight = (screen.availHeight > 480) ? 480 : screen.availHeight;
			sOptions  = "dialogHeight:" + iHeight+ "px;dialogWidth:" + iWidth  + "px;";
			sOptions += "center:yes;status:no;help:no;resizable:yes;";
			window.showModalDialog("Partners.asp",window,sOptions);
            break;
       default:
			alert("Unknown footer action: " + oMenu.id);
			break;
    }
}

//-------------------------------------------------------------------------------------
// Initializes the page, fires immediately after the browser loads page. 
//-------------------------------------------------------------------------------------
function InitPage() {

	//Nothing to do here for now.


}

//-------------------------------------------------------------------------------------
// Hilites an menu bar item when user does a mouseover, and displays the menu.
//-------------------------------------------------------------------------------------
function SetFooterHilite() {
	
    if (event.type == "mouseover") {
        //Hilite menu item.
        event.srcElement.style.color = "orange";
    }
    else {
        //Remove hilite.
       	event.srcElement.style.color = "rgb(0,122,165)";
    }
}

-->
