
function displayBar(iLevel){
	var sTmp;
	var sLevels;
	var now   = new Date();
	var year  = now.getYear();
	
	if (iLevel == 1){
		sLevels = '../';
	}
	else if (iLevel == 2){
		sLevels = '../../';
	}
	else if (iLevel == 3){
		sLevels = '../../../';
	}
	else {
		sLevels = '';
	}

	sTmp = '<MAP title="Navigation Bar">';
	sTmp = sTmp + '<font size="-1" face="Arial, Helvetica, sans-serif" COLOR=#003366><center>';
	sTmp = sTmp + '<a title="Privacy and Security Information" href="/moainstfunds/webpriv.jsp">Privacy and Security Information</a> | ';
	sTmp = sTmp + '<a title="Business Resumption Plans" href="/moainstfunds/business_resumption.jsp">Business Resumption Plans</a> | ';
        sTmp = sTmp + '<a title="Terms of Use" href="/moainstfunds/legal.jsp">Terms of Use</a> | ';
	sTmp = sTmp + '<a title="Home" href="/" target="_top">Home</a></center></font>';	  
	sTmp = sTmp + '</MAP>';

	sTmp = sTmp + '<P align="center"><FONT size="-2" face="Arial, Helvetica, sans-serif">© Copyright 2003-'+year+' Mutual of America Institutional Funds, Inc. All rights reserved.</FONT></P>';
	
	document.write(sTmp);
	
}	

function getDocument(filename)
{
  var path = '/moainstfunds/Documents/GetDocument?prosp=' + filename;
  //alert("path = " + path);

window.open(path,'prospectus','width=745,height=500,top=15,left=15,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
}

function loadfunds(cd) {
   if (cd != ''){
     if (parent != self) {
   	if (cd.indexOf("ps=t") != -1){
           //  alert('ps=t');
      	   parent.location.href=cd;
    	}
        else {
	   //  alert('no ps=t');
           parent.main.location.href=cd;
        } 
     }
     else {
           //  alert('no frame ');
           location.href=cd; 
     }           
   }
}

