// redirect to secure pages to secure server if not already on a secure server.
var secPgs = /request\.html|advisor\.html|email\.html|privatesignon\.html/gi;
var siloSpecified = /www\.chi\./gi;
var newsPgs = /XML=0001\/|news_story/gi;
var ntrsPat = /northernfunds\.ntrs\.com/gi;
var ntrsPgs = /request\.html|success\.html|failed\.html/gi;

if (siloSpecified.test(location.href) ) {  // they specified a silo
	if (! newsPgs.test(location.href) ) {
		document.location.href = document.location.href.replace(siloSpecified,"www.");
	}
}

if ( secPgs.test(location.href) ) {		// if it is a secure page
	if (location.protocol!='https:') {	
		location.href = 'https://'+location.host+location.pathname;	// make sure it's on a secure server
	}
} else {	// otherwise
	if (location.protocol=='https:') {
		var thisloc = location.href;
		//thisloc = 'http://'+location.host+location.pathname;	// make sure it's not on the secure server
		thisloc = thisloc.replace('https', 'http');
		if( ntrsPat.test(thisloc) ) {
			if( ! ntrsPgs.test(thisloc) ) {
				thisloc = thisloc.replace('northernfunds.ntrs.com', 'www.northernfunds.com');
			}
		}
		location.href = thisloc;
	}
}


// If they come in at northernfunds.com send them to www.northernfunds.com
if (location.host=='northernfunds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;

// If they come in at (www.)northern-funds.com send them to www.northernfunds.com
if (location.host=='northern-funds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;
if (location.host=='www.northern-funds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;

// If they come in at (www.)northernmutualfunds.com send them to www.northernfunds.com
if (location.host=='northernmutualfunds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;
if (location.host=='www.northernmutualfunds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;

// If they come in at (www.)northerntrustfunds.com send them to www.northernfunds.com
if (location.host=='northerntrustfunds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;
if (location.host=='www.northerntrustfunds.com') location.href=location.protocol+'//www.northernfunds.com'+location.pathname;

// If they come in at northerninstitutionalfunds.com send them to www.northerninstitutionalfunds.com
if (location.host=='northerninstitutionalfunds.com') location.href=location.protocol+'//www.northerninstitutionalfunds'+location.pathname;


function writeBodyStyle() {
// this space intentionally left blank.
}

function setCurrentRegion() {
// this space intentionally left blank.
}

function writeRegionalInclude() {
// this space intentionally left blank.
}

// * * * * * * *
// *  This is for the inceptor project
// * * * * * * *


function newInceptor (ppage, pimage) 
{
     this.page = ppage;
     this.image = pimage;
     return this;
}



var inceptor = new Array(); 
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/contact/index.html","http://www.i.northernfunds.com/marketing/contact_us.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/contact/index.html","https://www.i.northernfunds.com/marketing/contact_us_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/contact/confirm.html","http://www.i.northernfunds.com/marketing/email_confirm.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/contact/confirm.html","https://www.i.northernfunds.com/marketing/email_confirm_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/contact/email.html","http://www.i.northernfunds.com/marketing/email_request.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/contact/email.html","https://www.i.northernfunds.com/marketing/email_request_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/resources/forms/index.html","http://www.i.northernfunds.com/marketing/forms.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/resources/forms/index.html","https://www.i.northernfunds.com/marketing/forms_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/institutional/about.html","http://www.i.northernfunds.com/marketing/inst_about_us.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/institutional/about.html","https://www.i.northernfunds.com/marketing/inst_about_us_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/institutional/invest.html","http://www.i.northernfunds.com/marketing/inst_invest.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/institutional/invest.html","https://www.i.northernfunds.com/marketing/inst_invest_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/institutional/investments.html","http://www.i.northernfunds.com/marketing/investments.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/institutional/investments.html","https://www.i.northernfunds.com/marketing/investments_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/institutional/strategy.html","http://www.i.northernfunds.com/marketing/inst_strategy.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/institutional/strategy.html","https://www.i.northernfunds.com/marketing/inst_strategy_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/contact/request1.html","http://www.i.northernfunds.com/marketing/lit_confirm.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/contact/request1.html","https://www.i.northernfunds.com/marketing/lit_confirm_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/contact/request.html","http://www.i.northernfunds.com/marketing/lit_request.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/contact/request.html","https://www.i.northernfunds.com/marketing/lit_request_secure.htm?ts=")
inceptor[inceptor.length] = new newInceptor("http://www.northernfunds.com/investing/new_nf.html","http://www.i.northernfunds.com/marketing/new_funds.htm?ts=")
inceptor[inceptor.length] = new newInceptor("https://www.northernfunds.com/investing/new_nf.html","https://www.i.northernfunds.com/marketing/new_funds_secure.htm?ts=")

for (i=0; i < inceptor.length; i++) 
{
    if (inceptor[i].page == document.location.href)
     {

          var d = new Date();
          document.write('<div style="position:absolute; top:0; left:0; visibility:hidden;"><IMG HEIGHT="1" WIDTH="1" SRC="' + inceptor[i].image);
          document.write(escape(d.getTime()));
          var r = Math.random();
          document.write("&r=");
          document.write(escape(r));
          document.write("\"></div>");
		  
     }
}


// Initialize array for shared content host server check	 (used by isNTDotCom)
var NTDotComs = new Array();
NTDotComs[NTDotComs.length] = "://www.northerntrust.com";
NTDotComs[NTDotComs.length] = "://www.ntrs.com";
NTDotComs[NTDotComs.length] = "://northerntrust.com";
NTDotComs[NTDotComs.length] = "://northerntrustbank.com";
NTDotComs[NTDotComs.length] = "://northern-trust.com";
NTDotComs[NTDotComs.length] = "://northern-trust.net";
NTDotComs[NTDotComs.length] = "://www.northernfunds.com";
NTDotComs[NTDotComs.length] = "://webuat1.ntrs.com";
NTDotComs[NTDotComs.length] = "://web2.ntrs.com";
NTDotComs[NTDotComs.length] = "://web1b13.ntrs.com";
NTDotComs[NTDotComs.length] = "://web1t04.ntrs.com";
NTDotComs[NTDotComs.length] = "://www.northerninstitutionalfunds.com";
NTDotComs[NTDotComs.length] = "://webuat1-nif.ntrs.com";
NTDotComs[NTDotComs.length] = "://web2-nif.ntrs.com";
NTDotComs[NTDotComs.length] = "://web1b13-nif.ntrs.com";
NTDotComs[NTDotComs.length] = "://web1t04-nif.ntrs.com";
NTDotComs[NTDotComs.length] = "://wpt.ntrs.com";
NTDotComs[NTDotComs.length] = "://ddb.ntrs.com";
NTDotComs[NTDotComs.length] = "://iw.ntrs.com";

// Preload left nav markers  (used by displayNav)
var imgL0_on = new Image(); imgL0_on = '/incs/nav/images/leftNav/lnMarker_off.gif';  // No marker will be used on L0
var imgL0_off = new Image();imgL0_off = '/incs/nav/images/leftNav/lnMarker_off.gif';
var imgL0_open = new Image(); imgL0_open = '/incs/nav/images/leftNav/lnMarker_off.gif';
var imgL1_on = new Image(); imgL1_on = '/incs/nav/images/leftNav/lnMarker_on.gif';
var imgL1_off = new Image();imgL1_off = '/incs/nav/images/leftNav/lnMarker_off.gif';
var imgL1_open = new Image(); imgL1_open = '/incs/nav/images/leftNav/lnMarkerL1_open.gif';
var imgL2_on = new Image(); imgL2_on = '/incs/nav/images/leftNav/lnMarker_on.gif';
var imgL2_off = new Image();imgL2_off = '/incs/nav/images/leftNav/lnMarker_off.gif';
var imgL2_open = new Image(); imgL2_open = '/incs/nav/images/leftNav/lnMarker_on.gif';
var imgL3_on = new Image(); imgL3_on = '/incs/nav/images/leftNav/lnMarker_on.gif';
var imgL3_off = new Image();imgL3_off = '/incs/nav/images/leftNav/lnMarker_off.gif';
var imgL3_open = new Image(); imgL3_open = '/incs/nav/images/leftNav/lnMarker_on.gif';

// Indent for left nav levels  (used by displayNav)
var intL0indent = 1;
var intL1indent = 1;
var intL2indent = 10;
var intL3indent = 20;

// Initialized for site map
var iUniqueLinkNumber=0;

function isNTDotCom() {

	for (i = 0; i < NTDotComs.length; i++)
		if (document.location.href.indexOf(NTDotComs[i]) >= 0)
			return true;

	return false;
}

// Revised displayPopUp
// absURL = the abosolute URL of the document to be displayed (e.g. '/funds/fi/all.html' or 'http://www.northerntrust.com')
// printable = yes or no value indicating whether the popup window should display a print button (defaults to yes)
// x,y = x & y coordinates for the left corner of the popup window (defaults to x=50, y=50)
// w,h = width and height values for the popup window  (defaults to w=580, h=480
// 
function displayPopUp(absURL,printable,x,y,w,h) {

// START Fix for NT content
// If displayPopUp is called from any point within a path starting with '/library/'
// and the absURL does not already contain the current path, add the path.
//	if ( (location.pathname.indexOf("/library/")==0) && (absURL.indexOf("/library/")<0) ) { absURL = location.pathname.substr(0,location.pathname.lastIndexOf("/")+1) + absURL; }

if ( absURL.indexOf("/") == -1 ) absURL = location.pathname.substr(0,location.pathname.lastIndexOf("/")+1) + absURL;
if ( absURL.indexOf("/library/multimedia/tours/private_passport/previewFeatures.html")==0 ) { x=0;y=0;w=700;h=500; }

// END Fix for NT content
	var rightNow = new Date();
	var iUnique = rightNow.getTime();
	if ( (printable==null) || (printable=='yes') ) { strPrintable='yes'; } else { strPrintable='no'; }
	var docName = '/popups/paper.html?content=='+absURL+'&&print=='+strPrintable;
	// && and == are used instead of '&' and '=' to accommodate query strings passed in the URL

	// START Fix for NT hard coded popup headers
	if ( absURL.indexOf("business_enroll.html")>0 || absURL.indexOf("personal_enroll.html")>0 ) docName = absURL;
	if ( absURL.indexOf("qpu/survey.html")>=0 ) docName = absURL;
	// END Fix for NT hard coded popup headers

	if (w + h + y + x > 0) {
		newWindow = window.open(docName,'puWindow'+iUnique,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=' + w + ',height=' + h + ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y);
	} else {
		newWindow = window.open(docName,'puWindow'+iUnique,'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=600,height=480,screenX=50,screenY=50,left=50,top=50');
	}
	newWindow.focus();
	return false;
}


function popUp(urlPageToPopUp,strPopUpType,bolNoPrint) {
	// DESCRIPTION: pops up content in a new window
	//						 use this instead of framePopUp or displayPopUp
	// UPDATED: May 02, 2002
	// USAGE:: <a href="url" onClick="return popUp( this.href , [ type | windowOpenParams ] );">
	// REQUIRED:
	//	urlPageToPopUp - the url of the page to be opened in the popup window
	// OPTIONAL:
	//	strPopUpType - one of the types listed in the switch/case statement below
	//	or override standard types with window.open settings string
	// bolNoPrint - set to true if page should not be printable
	// NOTE: if you wish to set bolNoPrint to true, strPopUpType must be set -- at the very least -- to '' (nothing)
	// e.g. - onClick="return popUp(this.href,'',true);"

	var strWindowSettings = 'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=580,height=480,screenX=10,screenY=10,left=10,top=10';
	var strPopUpURL;
	var rightNow = new Date();
	var iUnique = rightNow.getTime();

	if (bolNoPrint) {
		strPopUpURL = '/popups/popup_noprint.html?';
	} else {
		strPopUpURL = '/popups/popup.html?';
	}

	if ( (strPopUpType == '') || (typeof(strPopUpType) == 'undefined') ) {
		var strToSearch = urlPageToPopUp.toLowerCase();															// convert the URL to popup to lowercase
		var strExt = strToSearch.substr(strToSearch.lastIndexOf('.')+1,3);								// find the 3 char ext. for the page being called
		if ( (strExt == 'pdf') || (strExt == 'doc') || (strExt == 'xls') || (strExt == 'ppt') ) { 	// if a standard pop exists for this extension then use it
//			strPopUpType = strExt;  // popUp MS Office documents and PDFs the same way for now.  Otherwise uncomment and define options for each.
				strPopUpType = 'pdf';
		} else {
			strPopUpType = 'standard';																													// otherwise use the default
		}
	}

	switch (strPopUpType) {
		case 'pdf':
			// any changes to strPopUpURL or strWindowSettings for a PDF would go here
			break;
		case 'tour':
			// any changes to strPopUpURL or strWindowSettings for a TOUR would go here
			strWindowSettings = 'toolbar=no,menubar=no,resizable=no,scrollbars=no,width=690,height=495,screenX=5,screenY=5,left=5,top=5';
			strPopUpURL = '';
			break;
		case 'tools':
			// any changes to strPopUpURL or strWindowSettings for a TOOLS page would go here
			strPopUpURL = '';
			break;
		case 'offsite':
			// any changes to strPopUpURL or strWindowSettings for an OFFSITE site would go here
			strPopUpURL = '';
			strWindowSettings = 'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=750,height=500,screenX=10,screenY=10,left=10,top=10';
			break;
		case 'secure':
			// any changes to strPopUpURL or strWindowSettings for a SECURE page would go here
			var pathURLPageToPopUp = urlPageToPopUp.substr(urlPageToPopUp.indexOf('/',9));
			strPopUpURL = 'https://' + location.host +strPopUpURL + 'https://'+location.host + pathURLPageToPopUp;
			urlPageToPopUp = '';
			break;
		case 'standard':
			//  use the standard settings if no strPopUpType is specified	(DEFAULTS)
			break;
		default:
			// using a non-standard type of popup if strPopUpType doesn't fit any of the above types (OVERRIDE)
			strWindowSettings = strPopUpType;
	}
	
	strPopUpURL = strPopUpURL + urlPageToPopUp;
	var popupWindow = window.open(strPopUpURL, 'popupWin'+iUnique, strWindowSettings);
	popupWindow.focus();
	return false;
}

///////////////////////////////////////////////////////////////////////////////
// Function:	writeHeadingText()
// Description:	Writes the HTML for the page heading. This more complex than
//		simply writing out the value specified in the DCR, because we
//		are now adding the sub-section name to the heading if the user
//		is viewing a page that is level 2 or deeper. We track what to 
//		display in the "displayMenu" function below, and set a couple
// 		global variables there.
///////////////////////////////////////////////////////////////////////////////
function writeHeadingText( strDCRHeading ) {
	
	// Start by setting up the style
	document.write( '<span class="clsHeadline">' );

	// Only display the subsection name if user is viewing
	// a second-level page or deeper.
	//if ( blnIsSecondLevelPage )
		//document.write( strSelectedSubSection + ": " );
	
	// Display teh heading value set in the DCR
	document.write( strDCRHeading );
	
	// Finally, close out the style and write a carriage return.
	document.write( '<br /><img src="/images/universal/spacer.gif" width="1" height="8" border="0"><br /></span>' );
}


//  framePopUp is called by shared NT content
function framePopUp(absURL) {
//	if ( location.host.indexOf("web2")>=0 ) { ntHost = "web2.ntrs.com"; } else { ntHost = location.host; }
//	absURL = location.protocol + "//" + ntHost + location.pathname.substr(0,location.pathname.lastIndexOf("/")+1) + absURL;
	//  The following check is done to correct for full URLs  -- http://www.north..... 
	//  when using the form <a href="subdir/file.html" onClick="void framePopUp(this.href); return false'">
	if (absURL.indexOf(".com") < 1) {
		absURL = location.pathname.substr(0,location.pathname.lastIndexOf("/")+1) + absURL;
	}
	displayPopUp(absURL)
}

function putListLinkCallout(anchorParms,text) {
	putListLink(anchorParms,"<font class=cls9pixels>" + text + "</p>");
}

function putListLink3(anchorParms, text, whichClass) {
	putListLink(anchorParms,"<font class=" + whichClass + ">" + text + "</p>");
}

function putListLink(anchorParms,text) {
	outHTML =  "<tr valign=middle><td><img src='/images/transparent.gif' id='linkBullet" + iUniqueLinkNumber + "' name='linkBullet" + iUniqueLinkNumber + "' width='4' height='4' class='clsPutListBullet'>&nbsp;</td><td id=longlist>";
	outHTML += "<a " + anchorParms;
	if (browserType() == "netscape") {
		outHTML += " onMouseOver='document.linkBullet" + iUniqueLinkNumber + ".src = \"/images/bulletBlue.gif\";'";
		outHTML += " onMouseOut ='document.linkBullet" + iUniqueLinkNumber + ".src=\"/images/transparent.gif\";'";

	} else {
		outHTML += " onMouseOver='linkBullet" + iUniqueLinkNumber + ".src = \"/images/bulletBlue.gif\";'";
		outHTML += " onMouseOut ='linkBullet" + iUniqueLinkNumber + ".src=\"/images/transparent.gif\";'";
	}

	outHTML += ">" + text + "<\a></td></tr>";

	document.write(outHTML);

	iUniqueLinkNumber++;
}

function browserType() {
	if (document.getElementById) return 'dom';
	if (document.layers) return 'ns4';
	if (document.all) return 'ie';
}

var selectedImage='';
function showMenu(which,imgTNav) {
	// disable Menus for Netscape 6 and Macs
	if (navigator.appVersion.charAt(0) == "5") {
		if (navigator.appName == "Netscape") 
			return;
	} else if (navigator.appVersion.toLowerCase().indexOf("mac") > 1 ) {
		return;
	}
	
	if (which >= 0) {
		showID = "mi0" + which;
	} else {
		var showID='';
	}

	if ( browserType()=='ie' || browserType()=='dom' ) {
		var cDivs;
		(browserType()=='dom') ? cDivs = document.getElementsByTagName("DIV"): cDivs = document.all.tags("DIV");

		if (showID=='') {
			cDivs['menuOff'].style.visibility = 'hidden';
			showForms();
		} else {
			cDivs['menuOff'].style.visibility = 'visible';
			hideForms(which);
		}

		for (i=0; i<cDivs.length; i++) {
			if ( (cDivs[i].id.substring(0,3)=='mi0') ) {
				if (cDivs[i].id.substring(0,4)==showID) {
					cDivs[i].style.visibility='visible';
				} else {
					cDivs[i].style.visibility='hidden';
				}
			}
		}
        if (imgTNav!='') { currImage = eval('document.images["'+imgTNav+'"].src'); }
    }
	if (browserType()=='ns4') {
		if (showID=='') {
			document.layers['menuOff'].visibility = 'hidden';
		} else {
			document.layers['menuOff'].visibility = 'visible';
		}

		for (i=0; i<document.layers.length; i++) {
			if ( (document.layers[i].id.substring(0,3)=='mi0') ) {
				if (document.layers[i].id.substring(0,4)==showID) {
					document.layers[i].visibility='visible';
				} else {
					document.layers[i].visibility='hidden';
				}
			}
		}
		if (which==1 || which==2 ) { hideSearchForm(); } else { showSearchForm(); }

        if (imgTNav!='') { currImage = eval('document.'+imgTNav+'.document.images["'+imgTNav+'"].src'); }
    }

//    alert(activeCat);
    if ( currImage.indexOf('_sel.gif')>=0 && selectedImage=='' ) { // set the current category image to gray on black (off)
        selectedImage=imgTNav;
        if (document.layers) {
            currCatImageSRC = eval('document.'+selectedImage+'.document.images["'+selectedImage+'"].src');
            selectedImageSRC = currCatImageSRC.substring(0,currCatImageSRC.indexOf('_sel.gif')) + '.gif';
            imgToSwitch = eval('document.'+selectedImage+'.document.images["'+selectedImage+'"]');
            imgToSwitch.src = selectedImageSRC;
        } else {
            currCatImageSRC = eval('document.images["'+selectedImage+'"].src');
            selectedImageSRC = currCatImageSRC.substring(0,currCatImageSRC.indexOf('_sel.gif')) + '.gif';
            imgToSwitch = eval('document.images["'+selectedImage+'"]');
            imgToSwitch.src = selectedImageSRC;
        }
        return;
    }

    if ( (imgTNav != selectedImage) && (selectedImage != '' ) ) { // set the current category image black on gray (on)
        if (document.layers) {
            currCatImageSRC = eval('document.'+selectedImage+'.document.images["'+selectedImage+'"].src');
            selectedImageSRC = currCatImageSRC.substring(0,currCatImageSRC.indexOf('.gif')) + '_sel.gif';
            imgToSwitch = eval('document.'+selectedImage+'.document.images["'+selectedImage+'"]');
            imgToSwitch.src = selectedImageSRC;
        } else {
            currCatImageSRC = eval('document.images["'+selectedImage+'"].src');
            selectedImageSRC = currCatImageSRC.substring(0,currCatImageSRC.indexOf('.gif')) + '_sel.gif';
            imgToSwitch = eval('document.images["'+selectedImage+'"]');
            imgToSwitch.src = selectedImageSRC
        }
        selectedImage='';
        return;
    }
}

function hideForms(menuNum) {
	var Drop, Search;
	Drop = document.getElementById('fund_drop');
	Search = document.getElementById('searchdiv');
	if(	menuNum == 5 ) {
		Search.style.visibility = 'hidden';
		Drop.style.visibility = 'visible';
	} else if ( menuNum == 3 || menuNum == 4 ) {
		Drop.style.visibility = 'hidden';
		Search.style.visibility = 'hidden';
	} else if ( menuNum == 0  ) {
		Drop.style.visibility = 'visible';
		Search.style.visibility = 'visible';
	} else {
		Drop.style.visibility = 'hidden';
		Search.style.visibility = 'visible';
	}
	
}
function showForms() {
	var Drop, Search;
	Drop = document.getElementById('fund_drop');
	Search = document.getElementById('searchdiv');
	Drop.style.visibility = 'visible';
	Search.style.visibility = 'visible';
}

function hideSearchForm() {	// Only necessary for NS4
	document.layers['quoteLookup'].visibility='hidden';
}

function showSearchForm() { // Only necessary for NS4
	document.layers['quoteLookup'].visibility='visible';
}

function showMarker(divID) {
	var iMarkerOffset=10;
	if ( browserType()=='ie' || browserType()=='dom' ) {
		var oDiv, oMarker;
		if (browserType()=='dom') {
			oDiv = document.getElementById(divID);
			oMarker=document.getElementById('mi0ddMarker');
		} else {
			oDiv = document.all(divID);
			oMarker=document.all.mi0ddMarker;
		}

		if (oMarker.style.visibility == 'hidden') oMarker.style.visibility='visible';
		oMarker.style.left=parseInt(oDiv.style.left)-iMarkerOffset;
		oMarker.style.top=parseInt(oDiv.style.top);
	}
	if (browserType()=='ns4') {
		var oDiv=document.layers[divID]
		var oMarker=document.layers['mi0ddMarker']
		if (oMarker.visibility == 'hidden') oMarker.visibility='visible';
		oMarker.x=oDiv.x-iMarkerOffset;
		oMarker.y=oDiv.y;
	}

}

function newMenuItem(cat,level,title,link,symbol) {
	this.cat   = cat;
	this.level = level;
	this.title = title;
	this.link  = link;
	this.symbol = symbol;
	this.open  = false;
	this.graphic = "";
	this.overGraphic = "";
	this.normalGraphic = "";
}

function getQuotes() {
	if (document.layers) {
		var ntsiForm = "document.div1.document.forms[0]"
		var ntForm = document.quoteLookup.document.forms[0];
	} else {
		var ntsiForm = "document.forms[0]";
		var ntForm = document.frmQuoteLookup;
	}

    var symbols = new String(ntForm.symbol.value);
    re = / /gi;
    var newSymbols = symbols.replace(re, ',');    
	var frmWin = window.open("","popUpNTSI","menubar=yes,scrollbars=yes,status=yes,resizable=yes,width=700,height=500,screenX=50,screenY=50,left=50,top=50")  //
	frmWin.document.write("<HTML>");
	frmWin.document.write("<HEAD>");
	frmWin.document.write("<TITLE>Northern Trust Securities, Inc.</TITLE>");
	frmWin.document.write("<\/HEAD>");
	frmWin.document.write("<BODY>");
	frmWin.document.write("<DIV id=\"div1\" style=\"position:absolute; visibility: hidden;\">");	// DIV used to keep form fields hidden prior to submit
	frmWin.document.write("<FORM METHOD=\"GET\" ACTION=\"http://invest.northerntrust.com/cgi/inet/mult_qt.trn\">");
    frmWin.document.write("<INPUT NAME=\"chk_quote_rt\" TYPE=checkbox  VALUE=\"y\">");
    frmWin.document.write("<INPUT TYPE=\"TEXT\" SIZE=\"42\" MAXLENGTH=\"120\" NAME=\"symbol\" VALUE=\"" + newSymbols + "\">");
    frmWin.document.write("<INPUT NAME=\"command\" TYPE=\"SUBMIT\" VALUE=\" Display \">");
    frmWin.document.write("<SCRIPT>" + ntsiForm + ".submit()<\/SCRIPT>");
	frmWin.document.write("<\/FORM>");
	frmWin.document.write("<\/DIV>");
	frmWin.document.write("<\/BODY>");
	frmWin.document.write("<\/HTML>");
	frmWin.document.close();
}

function setTopImages() {

	var tnColor="gold";
	if ((window.location.href.indexOf("/eq/") >= 0) || (window.location.href.indexOf("fundtype=eq") >= 0)) tnColor="red";
	if ((window.location.href.indexOf("/mm/") >= 0) || (window.location.href.indexOf("fundtype=mm") >= 0)) tnColor="green";
	if ((window.location.href.indexOf("/fi/") >= 0) || (window.location.href.indexOf("fundtype=fi") >= 0)) tnColor="blue";
	if (window.location.href.indexOf("/retirement/") >= 0) tnColor="purple";

	var imgTop = new Image(780,49); imgTop = '/incs/nav/images/topNav/'+tnColor+'_top.gif';
	// change Logo to have the service mark if we're on the home page
	if (window.location.pathname == "/" || window.location.pathname == "/index.html") tnColor="goldsm";
	var imgLogo = new Image(235,70); imgLogo = '/incs/nav/images/topNav/'+tnColor+'_logo.gif';

	if (browserType() == 'ns4') {
		document.layers['trustNorthern'].document.images['tnTop'].src = imgTop;
		document.layers['spacerLogo'].document.images['tnLogo'].src = imgLogo;
	} else {
		document.images['tnTop'].src = imgTop;
		document.images['tnLogo'].src = imgLogo;
	}
}

function displayPerfMonthly(height1, height2, fundNum) {
	var howManyTables = 2;
	
	if( howManyTables == 1 ) {
		document.write('<iframe id="perf_monthly"  marginheight="0" marginwidth="0" width="317" height="'+height1+'" hspace="0" vspace="0" frameborder="no" framespacing="0" framepadding="0" scrolling="no" src="/pws/jsp/display2.jsp?XML=http://web-xp2d-pws/funds/detail/ods/'+fundNum+'.xml&TYPE=perf_monthly"></iframe>');
	} else {
		document.write('<iframe id="perf_monthly"  marginheight="0" marginwidth="0" width="317" height="'+height2+'" hspace="0" vspace="0" frameborder="no" framespacing="0" framepadding="0" scrolling="no" src="/pws/jsp/display2.jsp?XML=http://web-xp2d-pws/funds/detail/ods/'+fundNum+'.xml&TYPE=perf_monthly"></iframe>');
	}
}

function displayDateOnScreen(where) {

	var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December");

	var mydate=new Date();
	var year=mydate.getYear();

	if (year < 1000)
		year += 1900;

	var day=mydate.getDay();
	var month = mydate.getMonth();

	var daym = mydate.getDate();
	var hours = mydate.getHours();

	var minutes = mydate.getMinutes();
	var seconds = mydate.getSeconds();
	var dn = "AM";

	if (hours >= 12)
		dn = "PM";

	if (hours > 12)
		hours = hours - 12;

	if (hours == 0)
		hours = 12;

	if (minutes <= 9)
		minutes = "0" + minutes;

	if (seconds <= 9)
		seconds="0"+seconds;

//change font size here
	var cdate = "<p>" + dayarray[day] + ", " + montharray[month] + " " + daym + ", " + year + "</p>";

	return cdate;
}

function displayNav(activeCat,activeTitle) {

/*****
Assume the following call was made: displayNav("funds","Technology Fund")
The following section tries to match activeCat (e.g. "funds") to a value in the menuItem array.
Once it finds a match it attempts to find a matching a title that matches the activeTitle (e.g. "Technology Fund").
Each time a category match is made the position in menuItem is recorded in levelIndex for the current level.  For example,
levelIndex[0]=0   menuItem("funds",0,"Funds & Performance","/funds/index.html")
levelIndex[1]=12  menuItem("funds",1,"Equity Funds","/funds/eq/index.html#")
levelIndex[2]=14  menuItem("funds",2,"Technology Fund","/funds/eq/index.html#")
Once activeTitle and menuItem.title match break out of the routine and start to build the nav
*****/														

	if (activeTitle=="") return;
	var strTag = "";
	(document.layers) ? strTag = "layer": strTag = "div";
	(document.layers) ? strStyle = " top=130 left=0" : strStyle = " id=\"leftnavdiv\" class=\"leftnavdiv\"";

	var levelIndex = new Array();


	for (i = 0; i < menuItem.length; i++)
		menuItem[i].display = false;
	
	for (i = 0; i < menuItem.length; i++) {
		if (menuItem[i].cat==activeCat) {
			levelIndex[menuItem[i].level]=i;
			if (menuItem[i].title == activeTitle) {  // this is the selected item.
				currentLevel = menuItem[i].level;  // walk backwards - this will find the items above that are open
				menuItem[i].display = true;
				for (j = i; j >= 0; j--) {
					if (menuItem[j].level == currentLevel - 1) 
						currentLevel = menuItem[j].level;
					menuItem[j].display = (menuItem[j].level == currentLevel);
				}
				if (i+1 < menuItem.length) {       // if not on the last item - walk forwards this time.
					currentLevel = menuItem[i+1].level;
					for (j = i+1; j < menuItem.length; j++) {
						if (menuItem[j].level < currentLevel) 
							currentLevel = menuItem[j].level;
						menuItem[j].display = (menuItem[j].level == currentLevel);
					}			
				}
				

				var maxLevel=menuItem[i].level; 
				levelIndex.length = menuItem[i].level+1;
				break;
			}
		}
	}

	var outHTML = "";
	outHTML += "<" + strTag + strStyle + ">\n";
	outHTML += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"162\">\n";
	outHTML += drawLine();

 	var writeSubLevel=false;
	var stopSubMenus=false;
	if (levelIndex.length <= 1 ) stopSubMenus=true;
	var currentLevel = 0;
	for (i=levelIndex[0]; i<menuItem.length; i++) {     // levelIndex[0] is the first menu item in the active category
		if ( (menuItem[i].cat != activeCat) ) break;	// if we're no longer in the active category stop building nav
		var markerStatus = "_on";

		if ( levelIndex[menuItem[i].level]==i ) {		// set the state of the marker open if it is part of the active menu
			markerStatus = "_open";
		} else {
			markerStatus = "_off";						// everything else is will be set to off
		}

		var imgSrc = eval('imgL'+menuItem[i].level + markerStatus);
		var intIndent = eval("intL" + menuItem[i].level + "indent");
		
		if ( menuItem[i].display) {
			if ( (levelIndex[1]==i) ) { // if this is a level 1 menu item for the opened item then
				outHTML += "  <tr bgcolor=\"#CCCCCC\" style=\"color: #FFFFFF\";>\n";	// gray background for level 1
				strBGColor = "#CCCCCC";
			} else {
				strBGColor = "#FFFFFF";
				if ( menuItem[i].level==1 ) {
					outHTML += drawLine();
				}
				outHTML += "  <tr>\n";			// no background for any other level
			}
		
			outHTML += '    <td bgcolor='+strBGColor+' valign=middle align=left><img name="lnM'+i+'" src="'+imgSrc+'" width=12 height=15></td>\n';
			outHTML += "    <td bgcolor=\"" + strBGColor + "\" valign='bottom'>\n";
			outHTML += "      <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
			outHTML += "        <tr>\n";
			outHTML += '          <td><img src="/images/transparent.gif" width="' + intIndent + '" height="1" border="0"></td>\n';
			
			// override the bottom margin if this is a fund name and symbol row
			if( menuItem[i].symbol != "" ) {
				outHTML += "          <td valign='bottom'><p class=\"lnLevel"+menuItem[i].level+"\" style='margin-bottom:0;'>";
			} else {
				outHTML += "          <td><p class=\"lnLevel"+menuItem[i].level+"\">";
			}
		
			if ( (levelIndex[menuItem[i].level]==i) ) {
				outHTML += '<a href="' + menuItem[i].link + '">' + menuItem[i].title + '</a>';
				
			} else {
				outHTML += '<a href="' + menuItem[i].link + '" onMouseOver="document.lnM' + i + '.src=imgL' + menuItem[i].level + '_on" onMouseOut="document.lnM' + i + '.src=imgL' + menuItem[i].level + '_off">' + menuItem[i].title + '</a>';
			}
		
			outHTML += "          </p></td>\n";
			outHTML += "        </tr>\n";

			outHTML += "      </table>\n";
			outHTML += "    </td>\n";
			outHTML += "  </tr>\n";
			
			// addition of ticker symbols on the fund detail pages 5/4/2004
			if( menuItem[i].symbol != "" ) {
				outHTML += "  <tr>\n";
				outHTML += "	<td>&nbsp;</td>\n";
				outHTML += "    <td bgcolor=\"" + strBGColor + "\" valign='top'>\n";
				outHTML += "      <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >\n";
				outHTML += "        <tr>\n";
				outHTML += '          <td><img src="/images/transparent.gif" width="' + intIndent + '" height="1" border="0"></td>\n';
				outHTML += "		  <td valign='top' style='padding: 0 0 0 0'; margin: 0 0 0 0'><p class='lnLevel"+menuItem[i].level+"' style='font-weight: normal; vertical-align: top; margin-top: 0;'>(" + menuItem[i].symbol + ")</p></td>\n";
				outHTML += "		</tr>\n";
				outHTML += "	  </table>\n";
				outHTML += "    </td>\n";
				outHTML += "  </tr>\n";
			}
		}
		
	}

	outHTML += drawLine();
	outHTML += "</table>\n";

// add the managed by NT at the bottom of the menu
//	outHTML += "<img src=/images/transparent.gif height=25 width=1><br><a href='javascript:void window.open(\"http://www.northerntrust.com\",\"northerntrustdotcom\",\" \");'><img src=/images/logo_managedby.jpg border=0></a>";

	outHTML += "</"+strTag+">\n";

	document.write(outHTML);

// set appropriate top navigation to selected
/* no longer needed in reskin2008
	if (document.layers) {
		eval("document.layers['tnav" + activeCat + "'].document.images['tnav" + activeCat + "'].src = '/incs/nav/images/topNav/tnav_" + activeCat + "_sel.gif'");
	} else {
		eval("document.images['tnav" + activeCat + "'].src = '/incs/nav/images/topNav/tnav_" + activeCat + "_sel.gif'");
	}
*/
	return;

}

function drawLine() {	// (called by displayNav)
	var lineHTML = "";
	lineHTML += "  <tr>\n";
	lineHTML += '    <td style="height:1px; font-size:1px;" valign="middle" align="left" colspan="2"><img src="/images/pixelLtGray.gif" width="162" height="1"></td>\n';
	lineHTML += "  </tr>\n";
	return lineHTML;
}

function addSpace(howMuch) {	// (called by displayNav)
	spaceHTML += "  <tr>\n";
	spaceHTML += '    <td valign="middle" align="left" colspan="2"><img src="/images/transparent.gif" width="162" height="' + howMuch + '"></td>\n';
	spaceHTML += "  </tr>\n";
	return spaceHTML;
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

var navContentServer;
var navFundXmlServer;
var selfURL = location.hostname;
var displayjsp = "/pws/jsp/display2.jsp?";
var newswireServer = "http://www.chi.northernfunds.com"

if (selfURL.toLowerCase().indexOf("web-is2") >= 0 ) {
var newswireServer = "http://web-is2c-pws:11131"
} 

if (selfURL.toLowerCase().indexOf("web-xa2") >= 0 ) {
	navFundXmlServer = "http://web-xa2d-pws:12084";
	navContentServer = "http://web-xa2a-pws:12081";
	//displayjsp = "/pws/jsp/display2x.jsp?";
	newswireServer = "http://web-xa2c-pws:12083"
	cobbledServer = "http://web-xa2c-pws:12083"
} else {
	navFundXmlServer = "http://web-xp2d-pws";
	navContentServer = "http://web-xp2a-pws";
	cobbledServer = "http://web-xp2c-pws"
}
	
var menuItem = new Array();
menuItem.length=0;

//menuItem[menuItem.length] = new newMenuItem("funds",0,"FUNDS & PERFORMANCE","/funds/index.html","");
menuItem[menuItem.length] = new newMenuItem("funds",0,"FUNDS & PERFORMANCE",displayjsp+"XML="+cobbledServer+"/xml/performance_funds.xml&TYPE=performance&fundtype=all","");
menuItem[menuItem.length] = new newMenuItem("funds",1,"Equity Funds",displayjsp+"XML="+cobbledServer+"/xml/performance_funds.xml&TYPE=performance&fundtype=eq","");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Emerging Markets Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOEMX.xml&TYPE=detail&fundtype=eq","NOEMX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Enhanced Large Cap",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOLCX.xml&TYPE=detail&fundtype=eq","NOLCX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Global Real Estate Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NGREX.xml&TYPE=detail&fundtype=eq","NGREX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Global Sustainability Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NSRIX.xml&TYPE=detail&fundtype=eq","NSRIX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Growth Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOGEX.xml&TYPE=detail&fundtype=eq","NOGEX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Income Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOIEX.xml&TYPE=detail&fundtype=eq","NOIEX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"International Equity Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOINX.xml&TYPE=detail&fundtype=eq","NOINX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"International Growth Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOIGX.xml&TYPE=detail&fundtype=eq","NOIGX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Large Cap Value",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOLVX.xml&TYPE=detail&fundtype=eq","NOLVX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Mid Cap Growth",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOMCX.xml&TYPE=detail&fundtype=eq","NOMCX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Mid Cap Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOMIX.xml&TYPE=detail&fundtype=eq","NOMIX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager Emerging Markets Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMMEX.xml&TYPE=detail&fundtype=eq","NMMEX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager Global Real Estate",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMMGX.xml&TYPE=detail&fundtype=eq","NMMGX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager International Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMIEX.xml&TYPE=detail&fundtype=eq","NMIEX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager Large Cap",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMMLX.xml&TYPE=detail&fundtype=eq","NMMLX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager Mid Cap",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMMCX.xml&TYPE=detail&fundtype=eq","NMMCX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager Small Cap",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMMSX.xml&TYPE=detail&fundtype=eq","NMMSX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Select Equity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOEQX.xml&TYPE=detail&fundtype=eq","NOEQX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Small Cap Core",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NSGRX.xml&TYPE=detail&fundtype=eq","NSGRX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Small Cap Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NSIDX.xml&TYPE=detail&fundtype=eq","NSIDX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Small Cap Value",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOSGX.xml&TYPE=detail&fundtype=eq","NOSGX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Stock Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOSIX.xml&TYPE=detail&fundtype=eq","NOSIX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Technology",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NTCHX.xml&TYPE=detail&fundtype=eq","NTCHX");
menuItem[menuItem.length] = new newMenuItem("funds",1,"Fixed Income Funds",displayjsp+"XML="+cobbledServer+"/xml/performance_funds.xml&TYPE=performance&fundtype=fi","");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Arizona Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOAZX.xml&TYPE=detail&fundtype=fi","NOAZX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Bond Index",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOBOX.xml&TYPE=detail&fundtype=fi","NOBOX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"California Intermediate Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NCITX.xml&TYPE=detail&fundtype=fi","NCITX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"California Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NCATX.xml&TYPE=detail&fundtype=fi","NCATX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Fixed Income",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOFIX.xml&TYPE=detail&fundtype=fi","NOFIX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Global Fixed Income",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOIFX.xml&TYPE=detail&fundtype=fi","NOIFX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"High Yield Fixed Income",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NHFIX.xml&TYPE=detail&fundtype=fi","NHFIX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"High Yield Municipal",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NHYMX.xml&TYPE=detail&fundtype=fi","NHYMX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Intermediate Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOITX.xml&TYPE=detail&fundtype=fi","NOITX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Multi-Manager High Yield Opportunity",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NMHYX.xml&TYPE=detail&fundtype=fi","NMHYX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Short-Intermediate Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NSITX.xml&TYPE=detail&fundtype=fi","NSITX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Short-Intermediate U.S. Government",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NSIUX.xml&TYPE=detail&fundtype=fi","NSIUX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Tax-Advantaged Ultra-Short Fixed Income",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NTAUX.xml&TYPE=detail&fundtype=fi","NTAUX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Tax-Exempt",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOTEX.xml&TYPE=detail&fundtype=fi","NOTEX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Ultra-Short Fixed Income",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NUSFX.xml&TYPE=detail&fundtype=fi","NUSFX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"U.S. Government",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOUGX.xml&TYPE=detail&fundtype=fi","NOUGX");
menuItem[menuItem.length] = new newMenuItem("funds",1,"Money Market Funds",displayjsp+"XML="+cobbledServer+"/xml/performance_funds.xml&TYPE=performance&fundtype=mm","");
menuItem[menuItem.length] = new newMenuItem("funds",2,"California Municipal Money Market",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOCXX.xml&TYPE=detail&fundtype=mm","NOCXX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Money Market",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NORXX.xml&TYPE=detail&fundtype=mm","NORXX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"Municipal Money Market",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOMXX.xml&TYPE=detail&fundtype=mm","NOMXX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"U.S. Government Money Market",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOGXX.xml&TYPE=detail&fundtype=mm","NOGXX");
menuItem[menuItem.length] = new newMenuItem("funds",2,"U.S. Government Select Money Market",displayjsp+"XML="+navContentServer+"/content/primary/fundinfo/NOSXX.xml&TYPE=detail&fundtype=mm","NOSXX");
menuItem[menuItem.length] = new newMenuItem("funds",1,"Risk/Reward Spectrum","/funds/choosing.html","");
menuItem[menuItem.length] = new newMenuItem("funds",1,"Morningstar Ratings","/funds/morningstar.html","");

menuItem[menuItem.length] = new newMenuItem("market_insights",0,"MARKET INSIGHTS","/resources/index.html","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Daily Global Commentary","/pws/jsp/display2.jsp?XML=/xsl/empty.xml&TYPE=econresearch&r=d","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Kasriel's Econtrarian","/pws/jsp/display2.jsp?XML=/xsl/empty.xml&TYPE=econresearch&r=w","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"U.S. Economic Outlook","/pws/jsp/display2.jsp?XML=/xsl/empty.xml&TYPE=econresearch&r=o","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Insights on Market Events","/resources/insights_market_events.html","");
//menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Investment Strategy Commentary","/resources/mrkt_newsletters/inv_strategy/index.html","");
//menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Northern Trust Perspective","/resources/mrkt_newsletters/index.html","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Podcasts","/resources/podcasts/index.html","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Webcasts","/resources/webcasts.html","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Economist Bios","/pws/jsp/display2.jsp?XML=/xsl/empty.xml&TYPE=econresearch&r=b","");
//menuItem[menuItem.length] = new newMenuItem("resources",1,"Northern Update","/resources/update/index.html","");
//menuItem[menuItem.length] = new newMenuItem("resources",2,"Fund Managers","/resources/archive/fund_mgr/index.html","");
//menuItem[menuItem.length] = new newMenuItem("resources",2,"Taxes","/resources/archive/taxes/index.html","");
menuItem[menuItem.length] = new newMenuItem("market_insights",1,"Economic Research","/pws/jsp/display2.jsp?XML=/xsl/empty.xml&TYPE=econresearch","");

menuItem[menuItem.length] = new newMenuItem("retirement",1,"Choosing an IRA","/retirement/choosing.html","");
menuItem[menuItem.length] = new newMenuItem("retirement",1,"Traditional IRA","/retirement/traditional.html","");


menuItem[menuItem.length] = new newMenuItem("forms_lit",0,"FORMS & LITERATURE","/investing/index.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"How to Invest","/investing/existing.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"New to Northern Funds","/investing/new_nf.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"Forms","/resources/forms/index.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"Fact Sheets","/funds/factsheets.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"Prospectuses","/resources/prospectuses/index.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"Financial Reports","/resources/financial/index.html","");
menuItem[menuItem.length] = new newMenuItem("forms_lit",1,"Publications","/resources/archive/taxes/index.html","");



menuItem[menuItem.length] = new newMenuItem("education",0,"EDUCATION","/retirement/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"IRAs","/retirement/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",2,"Roth IRA","/retirement/roth.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Rollover IRA","/retirement/rollover.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Education Savings Account","/retirement/education.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Other Investment Products","/retirement/other.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"White Papers","/resources/archive/fund_mgr/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Tax Center","/resources/tax_center/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Investing 101","/investing/new.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Glossary","/resources/glossary/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",1,"Article Archive","/resources/archive/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",2,"Financial Planning","/resources/archive/financial/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",2,"Funds","/resources/archive/funds/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",2,"Markets","/resources/archive/markets/index.html","");
menuItem[menuItem.length] = new newMenuItem("education",2,"Retirement Investing","/resources/archive/retire/index.html","");


menuItem[menuItem.length] = new newMenuItem("about",0,"ABOUT US","/about/index.html","");
menuItem[menuItem.length] = new newMenuItem("about",1,"About Northern Funds","/about/about.html","");
menuItem[menuItem.length] = new newMenuItem("about",1,"Client Service","/about/client.html","");
menuItem[menuItem.length] = new newMenuItem("about",1,"News","/about/news/index.html","");
menuItem[menuItem.length] = new newMenuItem("contact",0,"CONTACT US","/contact/index.html","");
menuItem[menuItem.length] = new newMenuItem("contact",1,"By E-Mail","https://www.northernfunds.com/contact/email.html","");
menuItem[menuItem.length] = new newMenuItem("contact",1,"By Phone","/contact/phone.html","");
menuItem[menuItem.length] = new newMenuItem("contact",1,"By Mail","/contact/mail.html","");
menuItem[menuItem.length] = new newMenuItem("contact",1,"Request Literature","https://www.northernfunds.com/contact/request.html","");
menuItem[menuItem.length] = new newMenuItem("end",1,"Placeholder","","");



///////////////////////////////////////////////////////////////////////////////
//Author: ARC World Wide

//Date: 10/10/2004

//Modified Date: 11/30/2004

//Purpose:

//Set a new cookie on User's computer if the cookie doesnot exist.
//Read the cookie and cookieid if cookie file does exist
//Set a date when the cookie will expire and new cookie will be set

//Code Version:2.0

//For questions or comments on this code please contact
//Debbie Hawickhorst, Client Partner
//312.220.3843 | fax 312.220.1995
//Arc Worldwide

///////////////////////////////////////////////////////////////////////////////


function arcww_readID()
	{
		var expDays = 10*365; // number of days the cookie should last
		var expDate = new Date();
		//This is where actual expire date is set
		expDate.setTime(expDate.getTime() +  (24 * 60 * 60 * 1000 * expDays));

		var id = arcww_GetCookie('trackarc'); //Check if the cookie exist or not
		if (id == null || id == "no id")
		{
			var randomnumber=Math.floor((Number(new Date())-Math.floor(Math.random()*999999999999)))+'-'+Math.floor(Math.random()*99999999999)+'-'+Math.floor(Number(new Date())) // Unique random number which will be used a cookie id

				//the first parameter is the name of the cookieid used in iPlanet webserver to caputer the id value
				//the second parameter is the actual random cookieid that gets generated when users visits the page for the first time
				//the third parameter is the expiry date when the cookie will expire
			arcww_SetCookie('trackarc', randomnumber, expDate);
		}
	}
//////////////////////////////////////////////////////
//Get the value of the cookie id
//////////////////////////////////////////////////////
function arcww_getCookieVal (offset)
	{
		var endstr = document.cookie.indexOf (";", offset);
		if (endstr == -1)
		endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}
//////////////////////////////////////////////////////////////////////////////////////
//Read the cookie and make sure it matches the name of the cookie
//It accepts the "name" parameter which is basically the name of the cookieid("trackarc")
//////////////////////////////////////////////////////////////////////////////////////
function arcww_GetCookie (name)
	{
		var arg = name + "=";
		var alen = arg.length;  //This is the length of name of the cookieid
		var clen = document.cookie.length;
		var i = 0;
		while (i < clen)
		{
			var j = i + alen;
			if (document.cookie.substring(i, j) == arg)
			return arcww_getCookieVal (j);
			i = document.cookie.indexOf(" ", i) + 1;
			if (i == 0) break;
		}
			return null;
	}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Set the new cookie
//the first parameter is the name of the cookieid used in iPlanet webserver to caputer the id value
//the second parameter is the actual random cookieid that gets generated when users visits the page for the first time
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	function arcww_SetCookie (name, value)
	{
		var argv = arcww_SetCookie.arguments;
		var argc = arcww_SetCookie.arguments.length;
		var expires = (argc > 2) ? argv[2] : null;
		var path = (argc > 3) ? argv[3] : null;
		var domain = (argc > 4) ? argv[4] : null;
		var secure = (argc > 5) ? argv[5] : false;
		document.cookie = name + "=" + escape (value) +
		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
		//the path is set as same on all the pages so that every page can share the same cookie
		("; path=" + "/") +
		//currently the way its setup cookie will take the default the name of the domain
		//ideally we would to set one domain for NT NF NIF so that all three sites can share the same cookie
		// we are not sure if this is possible or not consdering how the domains are set up and what kind
		// of security issues would come because of that
		((domain == null) ? "" : ("; domain=" + domain)) +
		((secure == true) ? "; secure" : "");
	}
    arcww_readID();



////////////////////////
// from std/passport.js
////////////////////////
function objExtensionAddEvent(eventName,functionToCall) {
if (typeof this.addEventListener == "function") {
	this.addEventListener(eventName,functionToCall,true);
} else {
	this.attachEvent("on" + eventName,functionToCall);
}
}
function objExtensionRemoveEvent(eventName,functionToCall) {
if (typeof this.removeEventListener == "function") {
	this.removeEventListener(eventName,functionToCall,true);
} else {
	this.detachEvent(eventName,functionToCall);
}
}
function objExtensionGetLocation(corner) {
var totalOffsetTop = this.offsetTop;
var totalOffsetLeft = this.offsetLeft;
var op = this.offsetParent;
while (op) {
	totalOffsetTop += op.offsetTop;
	totalOffsetLeft += op.offsetLeft;
	if (op == op.offsetParent)
		op = null;
	else
		op = op.offsetParent;
}

if (corner != null) {
	if (corner.toLowerCase().indexOf("b") >= 0) totalOffsetTop += this.offsetHeight;  // bottom
	if (corner.toLowerCase().indexOf("r") >= 0) totalOffsetLeft += this.offsetWidth;  // right
}
return [totalOffsetTop, totalOffsetLeft];
}
function objExtensionGetStyle(name) {
try {
	var response = "";

	if (window.getComputedStyle) {
		var mydivstyle = window.getComputedStyle(this, "");
		response = eval("mydivstyle." + name);
	} else {
		response = eval("this.currentStyle." + name);
	}
	return response;
} catch (e) {
	return "error: " + e.message;
}
}
function objExtensionHide() {
var objType = this.tagName.toLowerCase();
if (objType != 'iframe') {
	var orig = this.getStyle('display');
	this.style.display = "none";
	return orig;
} else { // iframes
	if (this.offsetHeight > 0) {
		this.objExtension_originalHeight = this.getStyle('height');
		this.objExtension_originalWidth  = this.getStyle('width');
	}

	this.style.overflow = 'hidden';
	this.style.width = 0;
	this.style.height = 0;
	return [this.objExtension_originalHeight,this.objExtension_originalWidth];
}
};
function objExtensionShow() {
var objType = this.tagName.toLowerCase();
if (objType != 'iframe') {
	var newStyle = "block";
	switch (objType) {
		case "li"		:	newStyle = "list-item";		break;
		case "table"	:	newStyle = "table"; 		break;
		case "tr"		:	newStyle = "table-row";		break;
		case "td"		:	newStyle = "table-cell";	break;
		case "th"		:	newStyle = "table-cell";	break;
		case "tfoot"	:	newStyle = "table-footer-group"; break;
		case "thead"	:	newStyle = "table-header-group"; break;
		case "colgroup"	:	newStyle = "table-column-group"; break;
		case "caption"	:	newStyle = "caption";		break;
	}

	try {
		this.style.display = newStyle;
	} catch (e) {
		this.style.display = "block";
	}
	return newStyle;
} else {  // iframes
	if (typeof what.objExtension_originalHeight != "undefined") {
		this.style.height = this.objExtension_originalHeight;
		this.style.width = this.objExtension_originalWidth;
	}
	return [this.objExtension_originalHeight, this.objExtension_originalWidth];
}

}
function objExtensionToggleDisplay() {

var objType = this.tagName.toLowerCase();
if (objType != 'iframe') {
	var currentStyle = this.getStyle('display');
	if (currentStyle.toLowerCase() == "none")
		this.show();
	else
		this.hide();
} else {
	var currentHeight = this.getStyle('height').toLowerCase();
	if (this.getStyle('height').toLowerCase() == '0px')
		this.show();
	else
		this.hide();
}
}

function objExtensionDisable(bgColor) {
try {
	this.disabled = true;
	if (bgColor != null) {
		this.style.backgroundColor = bgColor;
	}
} catch (e) {}
}
function objExtensionEnable(bgColor,setFocus) {
try {
	this.disabled = false;
	if (bgColor != null) {
		this.style.backgroundColor = bgColor;
	}
	if (setFocus) {
		this.focus();
	}
} catch (e) {}
}

function fw$(which) {
	if ( (typeof which == "string") || (typeof which == "String") )
		what = document.getElementById(which);
	else
		what = which;

	if ( (what != null ) && (typeof what == "object") && (what.nodeType == 1) ) {
		try {
			what.getStyle 		= objExtensionGetStyle;
			what.show 		    = objExtensionShow;
			what.hide 		    = objExtensionHide;
			what.toggleDisplay	= objExtensionToggleDisplay;
			what.addEvent     	= objExtensionAddEvent;
			what.removeEvent  	= objExtensionRemoveEvent;
			what.disable	  	= objExtensionDisable;
			what.enable			= objExtensionEnable;
			what.getLocation	= objExtensionGetLocation;
		} catch (e) {
//			alert(e.message());
		}
	}
	return what;
}
String.prototype.trim = function () {return this.replace(/^[ \t\n]*/g,'').replace(/[ \t\n]*$/g,'');}
String.prototype.substringBefore = function (text) {var loc = this.indexOf(text); return (loc == -1 ? "" : this.substr(0,loc));}
String.prototype.substringAfter  = function (text) {var loc = this.indexOf(text); return (loc == -1 ? "" : this.substr(loc+text.length));}

function checkDebug(text) { try { return (top.document.location.href.toLowerCase().indexOf(text.toLowerCase()) >= 0); } catch (e) { return false; } }



			function accountAccessGoPressed() {
				fw$('accountAccessErrNoUserPass').hide();
				var noUser  = fw$('accountAccessUsername').value == '' || fw$('accountAccessUsername').value == 'User ID';
				var noPass  = fw$('accountAccessPassword').value == '';
				//var noToken = fw$('accountAccessToken').value == '';
				//var tokenDisplayStyle = fw$('accountAccessNoTokenLogin').getStyle('display').toLowerCase();
				//var needToken = tokenDisplayStyle != 'none';
				//if (tokenDisplayStyle == "error: undefined value") {
				//	needToken = (fw$("accountAccessNoTokenLogin").style.display.toLowerCase() != 'none');
				//}

				//if (document.location.href.toLowerCase().indexOf("debugtoken") > 0) {
				//	alert("need token: " + needToken + "\ntokenDisplayStyle: " + tokenDisplayStyle);
				//}
				var treasuryId = fw$('accountAccessUsername').value.replace(/[a-zA-Z0-9 ]/g,'') != '';

				var okayToSubmit = true;
				if (noUser || noPass) {
					okayToSubmit = false;
					fw$('accountAccessErrNoUserPass').show();
				}

				if (okayToSubmit) {
					fw$('accountAccessUsernameField').value = fw$('accountAccessUsername').value;
					fw$('accountAccessPasswordField').value = fw$('accountAccessPassword').value;
//					if (! treasuryId) {
//						fw$('accountAccessTokenField').value = fw$('accountAccessToken').value;
//					}
				}

				//resetAccountAccess();

				if (okayToSubmit) {
					try {
						accountAccessForm.submit();
					} catch (e) {
						try {
							fw$("accountAccessForm").submit();
						} catch (e) {
							document.location.href = "https://ipl-xaj83s-ww36.ntrs.com/ptl/pcl/login";
						}
					}
					// set 90 day cookie
//					var nintyDays = new Date();
//					nintyDays.setTime(nintyDays.getTime() + (90*24*60*60*1000));
//					var expires = "; expires=" + nintyDays.toGMTString();
//					var ut = "c";
//					if (treasuryId)
//						ut = "t";

//					document.cookie = "ut=" + ut + expires + "; path=/";
//					logWebSideStory("nt","/accountAccess","attempt",null,null,getCookie("nthp"),null,null,null,ut)
				} else {
					fw$('accountAccessUsername').focus();
				}
				return false;
			}




// Search and Login functions - sdmc
function checkKeyPress() {
	if (event.keyCode == 13) 
	{ 
		if (this.value == 'Search Site') this.value = ''; 
		processSearchRequest(this.value); 
	}
}

function checkOnBlur(checkIt) {
	if (checkIt.value == '') 
	{ 
		checkIt.value='Search Site'; 
		checkIt.className='clsSearchFormTextA';
	}
}

function checkFocus(checkIt) {
	if (checkIt.value == 'Search Site') 
	{
		checkIt.value=''; 
		checkIt.className='clsSearchFormTextB';
	}
}

function searchIt() {

	if (window.document.frmSiteSearch.q.value == 'Search Site') 
	{
		window.document.frmSiteSearch.q.value = '';

	}
		
	 window.document.frmSiteSearch.submit();
}

function buildSearch()	{

	document.write("<form name='frmSiteSearch' action='/pws/jsp/display2.jsp'>");
	document.write("<input type='hidden' name='TYPE' value='search'/>");
	document.write("<input type='text' id='searchLink' name='q' onBlur='checkOnBlur(this)' onFocus='checkFocus(this)' class='clsSearchFormTextA' value='Search Site' style='margin:0px 0px 0px 19px; width:97px;' />");
	document.write("</form>");
}


function buildSearch_ORIG()	{
	prefix = "http://"
	jsp = "/pws/jsp/display2.jsp"
	if( location.hostname.toLowerCase().indexOf("web-xa2") >=0 ) {
		gserver = "web-xa2i-pws"
		gport = ":12107"
	} else if( location.hostname.toLowerCase().indexOf("web-is2") >=0 ) {
		gserver = "web-xa2i-pws"
		gport = ":12107"
	} else {
		gserver = "web-xp2i-pws.ntrs.com"
		gport = ""
	}

	document.write("<form name='frmSiteSearch' action='" + prefix + gserver + gport + jsp + "'>");
	document.write("<input type='hidden' name='XML' value='google.xml'/>")
	document.write("<input type='hidden' name='TYPE' value='search'/>")
	document.write("<input type='hidden' name='gsite' value='nf'/>")
	document.write("<input type='hidden' name='proxystylesheet' value='nf'/>")

	//document.write("<input type='text'   name='q' size='6' maxlength='250' class='srch'/>")
	document.write("<input type='text' name='q' onBlur='checkOnBlur(this)' onFocus='checkFocus(this)' class='clsSearchFormTextA' value='Search Site' style='margin:0px 0px 0px 19px; width:97px;' />")

	document.write("</form>")
}

function changePage() {
	var newPage = document.frmFundSelect.selectFund.options[document.frmFundSelect.selectFund.selectedIndex].value;

	if (newPage != "") {
		window.location.href = newPage;
	}


}

function isValidEmail(string) {
    if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
        return true;
    else
        return false;
}

function isBlank(fieldName) {
	re=/\w+/i;
	return ( (fieldName.value=="") || ( ! re.test(fieldName.value) ) );
}

function verifyInput ()  {

	if (document.layers)
        frm = document.main.document.contactme
    else
        frm = document.contactme

	strWarning = "You must supply:";
	strTopic = "You must supply:";

	if (frm.nfsendto.selectedIndex==0 && frm.ntsendto.selectedIndex==0) {
			strWarning=strWarning + "\n- A category that best describes your request";
	}

	if (isBlank(frm.first_name) ) {
			strWarning=strWarning + "\n- Your first name";
	}
	if (isBlank(frm.last_name) ) {
			strWarning=strWarning + "\n- Your last name";
	}

	if (frm.contactmode[0].checked) {
		if (! isValidEmail(frm.email.value))
			strWarning=strWarning + "\n- A valid email address to be contacted by email";
		else
			frm.sort.value += ",email";
	}

	if (frm.contactmode[1].checked ) {
		if (frm.phone.value=="" )
			strWarning=strWarning + "\n- Your telephone number to be contacted by telephone";
		else
			frm.sort.value += ",phone";
	}

	if (frm.contactmode[2].checked ) {
		if (frm.fax.value=="" )
			strWarning=strWarning + "\n- Your fax number to be contacted by fax";
		else
			frm.sort.value += ",fax";
	}

	if (frm.contactmode[3].checked ) {
		if ((frm.address.value=="" ) || (frm.city.value=="" ) || (frm.state.value=="" ) || (frm.zip.value=="" ))
			strWarning=strWarning + "\n- Your complete address to be contacted via the postal service"
		else
			frm.sort.value += ",address,city,state,zip,country";
	}

	if ((strWarning == "You must supply:") && (strTopic == "You must supply:"))	{ //okay to continue

    	frm.submit();

    } else  {
		if (strWarning != "You must supply:") {
			alert (strWarning);
		}
		if (strTopic != "You must supply:") {
			alert (strTopic);
		}
    }
}

function resetDropDowns(obj) {

    if (document.layers) {
        frm = document.main.document.contactme;
    } else {
        frm = document.contactme
    }
	switch (obj.name) {
		case 'nfsendto':
			frm.ntsendto.selectedIndex=0;
            frm.sendto.value=frm.nfsendto.options[frm.nfsendto.selectedIndex].value
            break;
		case 'ntsendto':
			frm.nfsendto.selectedIndex=0;
            frm.sendto.value=frm.ntsendto.options[frm.ntsendto.selectedIndex].value
			break;
	}
	// added for new SendMail program
	frm.recipient.value = frm.sendto.value;
}

