var writeMenu = function(subMenu,homeSwich){
	
	// set relative pathing string if used on homepage or /html pages
	var relPath = (!homeSwich ? "/" : "");
	
	document.write('<img src="'+relPath+'art/logo_starTop.gif" width="70" height="14" alt=""><br><a href="http://www.bnppfs.com"><img src="'+relPath+'art/bnppfs.gif" width="179" height="50" alt="" border="0"></a><img src="'+relPath+'art/menu_Solutions.gif" width="179" height="20" alt="Solutions and Services" style="margin-bottom:4px;"><div class="menuText">'
		+ 	'<div id="menu_sol_fundAdmin" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'html/solutions_fundAdmin.html">Fund Administration</a></div>'
				   + '<div id="sas70" class="menuInner"><img src="/art/sas70.JPG" ></div>' 
		+		'<div id="menu_sol_outsourcing" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'html/solutions_outsourcing.html">Middle/Back Office Outsourcing</a></div>'
		//+		'<div id="menu_sol_marketRisk" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'solutions_marketRisk.html">Market Risk Reporting</a></div>'
		+	'</div>'
		+	'<img src="'+relPath+'art/menu_SiteInfo.gif" width="179" height="20" alt="Site Information" style="margin-top:5px; margin-bottom:4px;"><div class="menuText">'
		+		'<div id="site_privacy" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'html/site_privacy.html">Privacy Statement</a></div>'
		+		'<div id="site_continuity" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'html/site_continuity.html">Business Continuity</a></div>'
		+		'<div id="site_help" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="'+relPath+'html/site_help.html">Site Help</a></div>'
		+	'</div>'		
		+	'<img src="'+relPath+'art/menu_ClientAccess.gif" width="179" height="20" alt="Client Access" style="margin-top:4px; margin-bottom:4px;">'
		+	'<div class="menuText" id="accessDiv">'
		+		'<div id="site_privacy" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="https://www.web-financialservices.com/cgi-bin/login.cgi">Web Reporting</a></div>'
		+'<div id="site_privacy" class="menuInner"><img src="'+relPath+'art/menu_bullet.gif" width="9" height="7" alt="" border="0"><a href="https://custody.bnppfs.com/">Web Instructing</a></div>'
		+	'</div>'
		);

		// style with correct background if required
		if(subMenu){
			document.getElementById(subMenu).style.backgroundColor = "#E1F4FD";
			}
	}

var oNavHome = new Object();
oNavHome.selectedText =	'<a href="/index.html"><img src="/art/nav_home_on.gif" width="63" height="47" alt="Home" style="margin-right:15px;" border="0" id="home" align="top"></a> ';
oNavHome.normalText = '<a href="/index.html" onMouseOver="buttonEffect(\'home\',1)" onMouseOut="buttonEffect(\'home\',0)"><img src="/art/nav_home_off.gif" width="63" height="47" alt="Home" style="margin-right:15px;" border="0" id="home" align="top"></a> ';
oNavHome.selectedTextHome =	'<a href="index.html"><img src="art/nav_home_on.gif" width="63" height="47" alt="Home" style="margin-right:15px;" border="0" id="home" align="top"></a> ';
oNavHome.normalTextHome = '<a href="index.html" onMouseOver="buttonEffect(\'home\',1)" onMouseOut="buttonEffect(\'home\',0)"><img src="art/nav_home_off.gif" width="63" height="47" alt="Home" style="margin-right:15px;" border="0" id="home" align="top"></a> ';

var oNavSolutions = new Object();
oNavSolutions.selectedText = '<a href="solutions.html"><img src="/art/nav_solutions_on.gif" id="solutions" width="81" height="47" alt="Solutions and Services" style="margin-right:15px;" border="0" align="top"></a> ';
oNavSolutions.normalText = '<a href="solutions.html" onMouseOver="buttonEffect(\'solutions\',1)" onMouseOut="buttonEffect(\'solutions\',0)"><img src="/art/nav_solutions_off.gif" id="solutions" width="81" height="47" alt="Solutions and Services" style="margin-right:15px;" border="0" align="top"></a> ';
oNavSolutions.selectedTextHome = '<a href="html/solutions.html"><img src="art/nav_solutions_on.gif" id="solutions" width="81" height="47" alt="Solutions and Services" style="margin-right:15px;" border="0" align="top"></a> ';
oNavSolutions.normalTextHome = '<a href="html/solutions.html" onMouseOver="buttonEffect(\'solutions\',1,1)" onMouseOut="buttonEffect(\'solutions\',0,1)"><img src="art/nav_solutions_off.gif" id="solutions" width="81" height="47" alt="Solutions and Services" style="margin-right:15px;" border="0" align="top"></a> ';

var oNavAbout = new Object();
oNavAbout.selectedText = '<a href="about.html"><img src="/art/nav_about_on.gif" id="about" width="80" height="47" alt="About Us" style="margin-right:15px;" border="0" align="top"></a> ';
oNavAbout.normalText = '<a href="about.html" onMouseOver="buttonEffect(\'about\',1)" onMouseOut="buttonEffect(\'about\',0)"><img src="/art/nav_about_off.gif" id="about" width="80" height="47" alt="About Us" style="margin-right:15px;" border="0" align="top"></a> ';
oNavAbout.selectedTextHome = '<a href="html/about.html"><img src="art/nav_about_on.gif" id="about" width="80" height="47" alt="About Us" style="margin-right:15px;" border="0" align="top"></a> ';
oNavAbout.normalTextHome = '<a href="html/about.html" onMouseOver="buttonEffect(\'about\',1,1)" onMouseOut="buttonEffect(\'about\',0,1)"><img src="art/nav_about_off.gif" id="about" width="80" height="47" alt="About Us" style="margin-right:15px;" border="0" align="top"></a> ';

var oNavContact = new Object();
oNavContact.selectedText = '<a href="contact.html"><img src="/art/nav_contact_on.gif" id="contact" width="72" height="47" alt="Contact" border="0" align="top"></a>';
oNavContact.normalText = '<a href="contact.html" onMouseOver="buttonEffect(\'contact\',1)" onMouseOut="buttonEffect(\'contact\',0)"><img src="/art/nav_contact_off.gif" id="contact" width="72" height="47" alt="Contact" border="0" align="top"></a>';
oNavContact.selectedTextHome = '<a href="html/contact.html"><img src="art/nav_contact_on.gif" id="contact" width="72" height="47" alt="Contact" border="0" align="top"></a>';
oNavContact.normalTextHome = '<a href="html/contact.html" onMouseOver="buttonEffect(\'contact\',1,1)" onMouseOut="buttonEffect(\'contact\',0,1)"><img src="art/nav_contact_off.gif" id="contact" width="72" height="47" alt="Contact" border="0" align="top"></a>';

var writeNav = function(theSelMenu, homeSwitch){
	if(!homeSwitch){
		document.write('<img src="/art/nav_desk.jpg" width="215" height="64" alt="">');
		document.write((theSelMenu == oNavHome ? oNavHome.selectedText : oNavHome.normalText));
		document.write((theSelMenu == oNavSolutions ? oNavSolutions.selectedText : oNavSolutions.normalText));
		document.write((theSelMenu == oNavAbout ? oNavAbout.selectedText : oNavAbout.normalText));
		document.write((theSelMenu == oNavContact ? oNavContact.selectedText : oNavContact.normalText));
		}
	else{
		document.write((theSelMenu == oNavHome ? oNavHome.selectedTextHome : oNavHome.normalTextHome));
		document.write((theSelMenu == oNavSolutions ? oNavSolutions.selectedTextHome : oNavSolutions.normalTextHome));
		document.write((theSelMenu == oNavAbout ? oNavAbout.selectedTextHome : oNavAbout.normalTextHome));
		document.write((theSelMenu == oNavContact ? oNavContact.selectedTextHome : oNavContact.normalTextHome));
		}
	}

var currDate = new Date();
var currYear = currDate.getFullYear();
var writeFooter = function(){
	document.write('<div class="footerDiv">'
		+ '&nbsp;&nbsp;&nbsp;Copyright &copy;'
		+ currYear
		+ ' BNP Paribas Financial Services LLC. A BNP Paribas Company. All rights reserved.'
		+ '</div>'
		);
	}
