

// open window function
var popupWin;
// wit & hite will determine where the window opens on the screen
function openWin(windowURL,windowName,wit,hite,scroll) { 
	var winH = (screen.height - hite) / 2;
	var winW = (screen.width - wit) / 2;
	popupWin = window.open( windowURL, windowName, "menubar=no,status=no,toolbar=no,location=no,scrollbars="+scroll+",screenx=1,screeny=1,width=" + wit + ",height=" + hite + ",top="+winH+",left="+winW);
	popupWin.focus();
} 


var navMenu = '';

// Built-in Features
	navMenu += '<table border="0" cellpadding="0" cellspacing="0" width="189">';
	navMenu += '<tr><td align="right" valign="top" colspan="3"><img src="images/resource.gif" width="175" height="15" vspace="5" alt="Built-in Features" border="0"></td></tr>';
	navMenu += '<tr>';
	navMenu += '<td align="left" valign="top" width="54" background="">&nbsp;</td>';
	navMenu += '<td align="left" valign="top" width="119" background="">';
// ADD "BUILT-IN FEATURES" LINKS HERE
var builtarray = new Array();
// builtarray[0] = new Array("Helpful Links", "resource03.htm");
// builtarray[1] = new Array("Site Map", "resource04.htm");
builtarray[0] = new Array("Home", "index.htm");
	for (var i = 0; i < builtarray.length; i ++) {
		navMenu += '<a href="'+builtarray[i][1]+'" class="nav">'
		if (document.URL.indexOf(builtarray[i][1]) != -1) navMenu += '<font color="#0099FF">';
		navMenu += builtarray[i][0];
		if (document.URL.indexOf(builtarray[i][1]) != -1) navMenu += '</font>';
		navMenu += '</a><br>';
	}
	navMenu += '</td>';
	navMenu += '<td align="left" valign="top" width="15" background="">&nbsp;</td>';
	navMenu += '</tr>';
	navMenu += '</table><br>';
// Details
	navMenu += '<table border="0" cellpadding="0" cellspacing="0" width="189">';
	// navMenu += '<tr><td align="right" valign="top" colspan="3"><img src="images/tools.gif" width="175" height="15" vspace="5" alt="The Details" border="0"></td></tr>';
	navMenu += '<tr><td align="right" valign="top" colspan="3"></td></tr>';
	navMenu += '<tr>';
	navMenu += '<td align="left" valign="top" width="54" background="">&nbsp;</td>';
	navMenu += '<td align="left" valign="top" width="119" background="">';
// ADD "DETAILS" LINKS HERE
var detailsarray = new Array();
detailsarray[0] = new Array("Budget Builder", "spend02.htm");
detailsarray[1] = new Array("Spend Wisely Challenge", "spend03.htm");
detailsarray[2] = new Array("Know When to Stop", "spend04.htm");
	for (var i = 0; i < detailsarray.length; i ++) {
		navMenu += '<a href="'+detailsarray[i][1]+'" class="nav">'
		if (document.URL.indexOf(detailsarray[i][1]) != -1) navMenu += '<font color="#0099FF">';
		// navMenu += detailsarray[i][0];
		// if (document.URL.indexOf(detailsarray[i][1]) != -1) navMenu += '</font>';
		// navMenu += '</a><br>';
	}
	navMenu += '</td>';
	navMenu += '<td align="left" valign="top" width="15" background="">&nbsp;</td>';
	navMenu += '</tr>';
	navMenu += '</table>';
document.write(navMenu);

