function changeLanguage(what) {
	langValue = what.options[what.selectedIndex].value;
	what.options[what.selectedIndex].value="";
    	loc = window.location.href;
    	loc = loc.substring(7,loc.length);

    	tmpWords = loc.split("/");
	if (langValue=="french") {
		tmpWords[tmpWords.length-1]="fr/"+tmpWords[tmpWords.length-1];
		newLoc="http:/";
		for (i=0;i<tmpWords.length;i++) {
			newLoc += "/" + tmpWords[i];
		}
		window.location.href=newLoc;
	}
}


function sideNav(obj,doc,path) {
	switch(obj) {
		case 0:	imgSrc = path+"about_on.gif";
				break;
		case 1:	imgSrc = path+"about_off.gif";
				break;
		case 2:	imgSrc = path+"product_on.gif";
				break;
		case 3:	imgSrc = path+"product_off.gif";
				break;
		case 4:	imgSrc = path+"service_on.gif";
				break;
		case 5:	imgSrc = path+"service_off.gif";
				break;
		case 6:	imgSrc = path+"news_on.gif";
				break;
		case 7:	imgSrc = path+"news_off.gif";
				break;
	}
	doc.src = imgSrc;
}

var topnavButton = new Array();

for (i=1;i<=6;i++) {
	ind = (i-1)*2;
	topnavButton[ind] = new Image();
	topnavButton[ind].src = "images/nav/top/topnav"+i+"_on.gif";
	topnavButton[ind+1] = new Image();
	topnavButton[ind+1].src = "images/nav/top/topnav"+i+"_off.gif";
}

function topnav(doc,obj) {
	doc.src = topnavButton[obj].src;
}

function writeTopNav(section) {
	switch(section) {
		case 0:	// home page
				area=0;
				imgPath = "images/nav/home/";
				break;
		case 1:	// about us
				area=1;
				imgPath = "images/nav/about/";
				break;
		case 2:	// products & solutions center
		case 21:
		case 22:
		case 23:
		case 24:
		case 25:
		case 26:
		case 27:
		case 28:
		case 211:
		case 212:
		case 213:
		case 214:
		case 215:
		case 216:
		case 241:
		case 242:
		case 243:
		case 244:
		case 245:
		case 246:
		case 247:
		case 248:
				area=2;
				imgPath = "images/nav/product/";
				break;
		case 3:	// customer service & tech support
				area=3;
				imgPath = "images/nav/service/";
				break;
		case 4:	// news & events
				area=4;
				imgPath = "images/nav/news/";
				break;
		case 81:	// top nav elements
		case 82:
		case 83:
		case 84:
		case 85:
		case 86:
				area = 8;
				imgPath = "images/nav/top/";
				break;
		default:	// use home page
				area=0;
				imgPath = "images/nav/home/";
				break;
	}

	document.write('			<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
	document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" COLSPAN="2" WIDTH="774" HEIGHT="69" BACKGROUND="images/topbar_back.jpg">\n');
	document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
	document.write('							<TR>\n');
	document.write('								<TD VALIGN="top" WIDTH="240" BACKGROUND="images\spacer.gif">&nbsp;</TD>\n');
	document.write('								<TD VALIGN="top" WIDTH="235" BACKGROUND="images\spacer.gif">\n');
	document.write('									<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">\n');
	document.write('										<TR>\n');
	document.write('											<TD VALIGN="bottom" COLSPAN="3" HEIGHT=17 WIDTH="224"><IMG SRC="images/nav/top/overview.gif"></TD>\n');
	document.write('										</TR>\n');
	document.write('										<TR>\n');
// ***** VISTA *****
	document.write('											<TD VALIGN="top"><a href="product_generators_vista.html"><IMG SRC="images/nav/top/vista.gif" WIDTH="71" HEIGHT="49" border="0" alt="Vista"></a></TD>\n');

// ***** SYMSYS *****
	document.write('											<TD VALIGN="top"><a href="product_generators_simsys.html"><IMG SRC="images/nav/top/simsys.gif" WIDTH="74" HEIGHT="49" border="0" alt="SimSys"></a></TD>\n');

// ***** AQUADYN *****
	document.write('											<TD VALIGN="top"><a href="product_water.html"><IMG SRC="images/nav/top/aquadyn.gif" WIDTH="79" HEIGHT="49" border="0" alt="Aquadyn"></a></TD>\n');

	document.write('										</TR>\n');
	document.write('									</TABLE>\n');
	document.write('								</TD>\n');
	document.write('								<TD VALIGN="top" WIDTH="110" BACKGROUND="images\spacer.gif">\n');
	document.write('									<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">\n');
	document.write('										<TR>\n');
	document.write('											<TD VALIGN="top" ROWSPAN="4" WIDTH="15" HEIGHT=65><IMG SRC="images/nav/top/topbar1.gif"></TD>\n');
	document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=11><IMG SRC="images/spacer.gif" HEIGHT=11 WIDTH=1></TD>\n');
	document.write('											<TD VALIGN="top" ROWSPAN="4" WIDTH="10" HEIGHT=65><IMG SRC="images/nav/top/topbar2.gif"></TD>\n');
	document.write('										</TR>\n');
	document.write('										<TR>\n');
	if (section==85)
		document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=17><A HREF="sitemap.html"><IMG SRC="images/nav/top/topnav5_on.gif" NAME="topnav5" BORDER="0"></A></TD>\n');
	else
		document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=17><A HREF="sitemap.html" onMouseOver="topnav(document.topnav5,8)" onMouseOut="topnav(document.topnav5,9)"><IMG SRC="images/nav/top/topnav5_off.gif" NAME="topnav5" BORDER="0"></A></TD>\n');
	document.write('										</TR>\n');
	document.write('										<TR>\n');
	document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=12><IMG SRC="images/spacer.gif" HEIGHT=12 WIDTH=1></TD>\n');
	document.write('										</TR>\n');
	document.write('										<TR>\n');
	if (section==86)
		document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=25><A HREF="index.html"><IMG SRC="images/nav/top/topnav6_on.gif" NAME="topnav6" BORDER="0"></A></TD>\n');
	else
		document.write('											<TD VALIGN=top WIDTH=80 HEIGHT=25><A HREF="index.html" onMouseOver="topnav(document.topnav6,10)" onMouseOut="topnav(document.topnav6,11)"><IMG SRC="images/nav/top/topnav6_off.gif" NAME="topnav6" BORDER="0"></A></TD>\n');
	document.write('										</TR>\n');
	document.write('									</TABLE>\n');
	document.write('								</TD>\n');
	document.write('							</TR>\n');
	document.write('						</TABLE>\n');
	document.write('					</TD>\n');
	document.write('				</TR>\n');
	document.write('				<TR>\n');
	if ((section==21) || (section>=210 && section<=219)) {
		document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_none.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
		switch (section) {
			case 21:	// POWER GENERATORS
				document.write('					<TD VALIGN="top" WIDTH="572"><IMG SRC="images/topbar_shadow_spacer.gif"><A HREF="product_generators_vista.html" ONMOUSEOVER="buttonBar(0,document.vista)" ONMOUSEOUT="buttonBar(1,document.vista)"><IMG SRC="'+imgPath+'vista_off.gif" NAME="vista" BORDER="0"></A><A HREF="product_generators_hydrovantage.html" ONMOUSEOVER="buttonBar(2,document.hydrovantage)" ONMOUSEOUT="buttonBar(3,document.hydrovantage)"><IMG SRC="'+imgPath+'hydrovantage_off.gif" NAME="hydrovantage" BORDER="0"></A><A HREF="product_generators_simsys.html" ONMOUSEOVER="buttonBar(4,document.simsys)" ONMOUSEOUT="buttonBar(5,document.simsys)"><IMG SRC="'+imgPath+'simsys_end_off.gif" NAME="simsys" BORDER="0"></A></TD>\n');
				break;
			case 211:	// POWER GENERATORS - VISTA
				document.write('					<TD VALIGN="top" WIDTH="572"><IMG SRC="images/topbar_shadow_spacer.gif"><A HREF="product_generators_vista.html"                                                                                   ><IMG SRC="'+imgPath+'vista_off.gif" NAME="vista" BORDER="0"></A><A HREF="product_generators_hydrovantage.html" ONMOUSEOVER="buttonBar(2,document.hydrovantage)" ONMOUSEOUT="buttonBar(3,document.hydrovantage)"><IMG SRC="'+imgPath+'hydrovantage_off.gif" NAME="hydrovantage" BORDER="0"></A><A HREF="product_generators_simsys.html" ONMOUSEOVER="buttonBar(4,document.simsys)" ONMOUSEOUT="buttonBar(5,document.simsys)"><IMG SRC="'+imgPath+'simsys_end_on.gif"  NAME="simsys" BORDER="0"></A></TD>\n');
				break;
			case 213:	// POWER GENERATORS - HYDROVANTAGE
				document.write('					<TD VALIGN="top" WIDTH="572"><IMG SRC="images/topbar_shadow_spacer.gif"><A HREF="product_generators_vista.html" ONMOUSEOVER="buttonBar(0,document.vista)" ONMOUSEOUT="buttonBar(1,document.vista)"><IMG SRC="'+imgPath+'vista_off.gif" NAME="vista" BORDER="0"></A><A HREF="product_generators_hydrovantage.html"                                                                                                 ><IMG SRC="'+imgPath+'hydrovantage_on.gif" NAME="hydrovantage" BORDER="0"></A><A HREF="product_generators_simsys.html" ONMOUSEOVER="buttonBar(4,document.simsys)" ONMOUSEOUT="buttonBar(5,document.simsys)"><IMG SRC="'+imgPath+'simsys_end_off.gif" NAME="simsys" BORDER="0"></A></TD>\n');
				break;
			case 212:	// POWER GENERATORS - SimSys
				document.write('					<TD VALIGN="top" WIDTH="572"><IMG SRC="images/topbar_shadow_spacer.gif"><A HREF="product_generators_vista.html" ONMOUSEOVER="buttonBar(0,document.vista)" ONMOUSEOUT="buttonBar(1,document.vista)"><IMG SRC="'+imgPath+'vista_on.gif" NAME="vista" BORDER="0"></A><A HREF="product_generators_hydrovantage.html" ONMOUSEOVER="buttonBar(2,document.hydrovantage)" ONMOUSEOUT="buttonBar(3,document.hydrovantage)"><IMG SRC="'+imgPath+'hydrovantage_off.gif" NAME="hydrovantage" BORDER="0"></A><A HREF="product_generators_simsys.html"                                                                                      ><IMG SRC="'+imgPath+'simsys_end_off.gif" NAME="simsys" BORDER="0"></A></TD>\n');
				break;
			}
	}
	else if ((section==24) || (section>=240 && section<=249)) {
		switch(section) {
			case 24:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 241:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_on.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html"><IMG SRC="'+imgPath+'partners_on.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 242:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html"><IMG SRC="'+imgPath+'execution_on.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 243:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html"><IMG SRC="'+imgPath+'demand_on.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 244:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html"><IMG SRC="'+imgPath+'portfolio_on.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 245:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html"><IMG SRC="'+imgPath+'transaction_on.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 246:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html"><IMG SRC="'+imgPath+'client_on.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 247:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html"><IMG SRC="'+imgPath+'contactus_on.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html" ONMOUSEOVER="buttonBar2(14,document.faq)" ONMOUSEOUT="buttonBar2(15,document.faq)"><IMG SRC="'+imgPath+'faq_off.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
			case 248:
				document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_off.jpg" HEIGHT="33" WIDTH="202" NAME="topleft" BORDER="0"></TD>\n');
				document.write('					<TD VALIGN="top" WIDTH="572"><A HREF="product_energy_partners.html" ONMOUSEOVER="buttonBar2(0,document.partners)" ONMOUSEOUT="buttonBar2(1,document.partners)"><IMG SRC="'+imgPath+'partners_off.gif" NAME="partners" BORDER="0"></A><A HREF="product_energy_execution.html" ONMOUSEOVER="buttonBar2(2,document.execution)" ONMOUSEOUT="buttonBar2(3,document.execution)"><IMG SRC="'+imgPath+'execution_off.gif" NAME="execution" BORDER="0"></A><A HREF="product_energy_demand.html" ONMOUSEOVER="buttonBar2(4,document.demand)" ONMOUSEOUT="buttonBar2(5,document.demand)"><IMG SRC="'+imgPath+'demand_off.gif" NAME="demand" BORDER="0"></A><A HREF="product_energy_portfolio.html" ONMOUSEOVER="buttonBar2(6,document.portfolio)" ONMOUSEOUT="buttonBar2(7,document.portfolio)"><IMG SRC="'+imgPath+'portfolio_off.gif" NAME="portfolio" BORDER="0"></A><A HREF="product_energy_transaction.html" ONMOUSEOVER="buttonBar2(8,document.transaction)" ONMOUSEOUT="buttonBar2(9,document.transaction)"><IMG SRC="'+imgPath+'transaction_off.gif" NAME="transaction" BORDER="0"></A><A HREF="product_energy_client.html" ONMOUSEOVER="buttonBar2(10,document.client)" ONMOUSEOUT="buttonBar2(11,document.client)"><IMG SRC="'+imgPath+'client_off.gif" NAME="client" BORDER="0"></A><A HREF="product_energy_contactus.html" ONMOUSEOVER="buttonBar2(12,document.contactus)" ONMOUSEOUT="buttonBar2(13,document.contactus)"><IMG SRC="'+imgPath+'contactus_off.gif" NAME="contactus" BORDER="0"></A><A HREF="product_energy_faq.html"><IMG SRC="'+imgPath+'faq_on.gif" NAME="faq" BORDER="0"></A></TD>\n');
				break;
		}
	}
	else {
		document.write('					<TD VALIGN="top" WIDTH="202"><IMG SRC="images/topleft_none.jpg"></TD>\n');
		document.write('					<TD VALIGN="top" WIDTH="572"><IMG SRC="images/topbar_shadow.gif"></TD>\n');
	}
	document.write('				</TR>\n');
	document.write('			</TABLE>\n');
}

function writeSideNav(section) {
	var heights = new Array();
	heights[0] = [0,45,43,39];
	heights[1] = [0,45,47,46];
	heights[2] = [0,45,43,39];
	heights[3] = [0,45,43,39];
	heights[4] = [0,45,43,39];
	
	switch(section) {
		case 0:	// home page
				area=0;
				imgPath = "images/nav/home/";
				break;
		case 1:	// about us
		case 11:
		case 12:
		case 13:
				area=1;
				imgPath = "images/nav/about/";
				break;
		case 2:	// products & solutions center
		case 21:
		case 22:
		case 23:
		case 24:
		case 25:
		case 26:
		case 27:
		case 28:
		case 211:
		case 212:
		case 213:
		case 214:
		case 215:
		case 216:
		case 241:
		case 242:
		case 243:
		case 244:
		case 245:
		case 246:
		case 247:
		case 248:
				area=2;
				imgPath = "images/nav/product/";
				break;
		case 3:	// customer service & tech support
		case 31:
		case 32:
		case 33:
				area=3;
				imgPath = "images/nav/service/";
				break;
		case 4:	// news & events
		case 41:
		case 42:
		case 43:
		case 44:
				area=4;
				imgPath = "images/nav/news/";
				break;
		case 81:	// top nav elements (quick overview, sitemap, library)
		case 82:
		case 83:
		case 84:
		case 85:
		case 86:
				area=0;
				imgPath="images/nav/home/";
				break;
		default:	// use home page
				imgPath = "images/nav/home/";
				break;
	}

	document.write('		<TD WIDTH="202" VALIGN="top" BACKGROUND="images\spacer.gif">\n');
	document.write('			<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">\n');
	document.write('				<TR>\n');
	if (section==0)
		document.write('		<TD WIDTH="202" VALIGN="top" BACKGROUND="images/sidebar_home.jpg">\n');
	else
		document.write('		<TD WIDTH="202" VALIGN="top" BACKGROUND="images/sidebar_back.jpg">\n');
	document.write('			<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top" WIDTH="5" HEIGHT="560" BACKGROUND="images\spacer.gif"><IMG SRC="images/spacer.gif" HEIGHT="1" WIDTH="5"></TD>\n');
	document.write('					<TD VALIGN="top" WIDTH="197" BACKGROUND="images\spacer.gif">\n');
	document.write('			<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">\n');
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top" HEIGHT="67" BACKGROUND="images\spacer.gif">\n');
	document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
	document.write('							<TR><TD VALIGN="top" HEIGHT=45 BACKGROUND="images\spacer.gif">\n');
	document.write('								<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>\n');
	document.write('									<TR>\n');
	document.write('										<TD VALIGN="top" WIDTH=65><IMG SRC="images/spacer.gif" HEIGHT=4 WIDTH=1><BR CLEAR=all><IMG SRC="images/language.gif" BORDER=0></TD>\n');
	document.write('										<TD VALIGN="top" CLASS="languageDropDown">\n');
	document.write('											<FORM CLASS="languageDropDown"><SELECT TYPE="combo" NAME="language" CLASS="languageDropDown" onChange="javascript: changeLanguage(this);">\n');
	document.write('												<OPTION NAME="lang" SELECTED VALUE="english" CLASS="languageDropDown">English</OPTION>\n');
	document.write('												<OPTION NAME="lang" VALUE="french" CLASS="languageDropDown">Francais</OPTION>\n');
	document.write('											</SELECT></FORM>\n');
	document.write('										</TD>\n');
	document.write('									</TR>\n');
	document.write('								</TABLE>\n');
	document.write('							</TD></TR>\n');
	document.write('							<TR><TD VALIGN="top" BACKGROUND="images\spacer.gif"><A HREF="contact_us.html"><IMG SRC="images/contact_us.gif" BORDER=0></A></TD></TR>\n');
	document.write('						</TABLE>\n');
	document.write('					</TD>\n');
	document.write('				</TR>\n');
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top" BACKGROUND="images\spacer.gif"><IMG SRC="images/divider1.gif"></TD>\n');
	document.write('				</TR>\n');
	if (area==1) {		// ********** ABOUT US **********
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="bottom" HEIGHT='+heights[area][1]+' BACKGROUND="images\spacer.gif"><A HREF="aboutus.html"><IMG SRC="'+imgPath+'about_on.gif" NAME="about" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT=45>\n');
		document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
		for (i=1;i<=2;i++) {
			if (section==(10+i))
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_on.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+aboutSubNavLinks[i]+'"><IMG SRC="'+imgPath+'subnav'+i+'_on.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
			else
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_off.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+aboutSubNavLinks[i]+'" ONMOUSEOVER="aboutSubNav('+i+',document.arrow'+i+',document.subnav'+i+',0)" ONMOUSEOUT="aboutSubNav('+i+',document.arrow'+i+',document.subnav'+i+',1)"><IMG SRC="'+imgPath+'subnav'+i+'_off.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
		}
		document.write('						</TABLE>\n');
		document.write('					</TD>\n');
		document.write('				</TR>\n');
	}
	else {
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="bottom" HEIGHT='+heights[area][1]+'><A HREF="aboutus.html" ONMOUSEOVER="sideNav(0,document.about,\''+imgPath+'\')" ONMOUSEOUT="sideNav(1,document.about,\''+imgPath+'\')"><IMG SRC="'+imgPath+'about_off.gif" NAME="about" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
	}
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top"><IMG SRC="'+imgPath+'divider2.gif"></TD>\n');
	document.write('				</TR>\n');
	if (area==2) {		// ********** PRODUCT & SOLUTIONS CENTER **********
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="bottom" HEIGHT='+heights[area][2]+'><A HREF="product.html"><IMG SRC="'+imgPath+'product_on.gif" NAME="product" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT=52>\n');
		document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
		for (i=1;i<=2;i++) {
			if ((section==(20+i)) || (Math.floor(section/10)==(20+i)))
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_on.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+productSubNavLinks[i]+'"><IMG SRC="'+imgPath+'subnav'+i+'_on.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
			else
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_off.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+productSubNavLinks[i]+'" ONMOUSEOVER="productSubNav('+i+',document.arrow'+i+',document.subnav'+i+',0)" ONMOUSEOUT="productSubNav('+i+',document.arrow'+i+',document.subnav'+i+',1)"><IMG SRC="'+imgPath+'subnav'+i+'_off.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
		}
		document.write('						</TABLE>\n');
		document.write('					</TD>\n');
		document.write('				</TR>\n');
	}
	else {
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="bottom" HEIGHT='+heights[area][2]+'><A HREF="product.html" ONMOUSEOVER="sideNav(2,document.product,\''+imgPath+'\')" ONMOUSEOUT="sideNav(3,document.product,\''+imgPath+'\')"><IMG SRC="'+imgPath+'product_off.gif" NAME="product" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
	}
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top"><IMG SRC="'+imgPath+'divider3.gif"></TD>\n');
	document.write('				</TR>\n');
	if (area==3) {		// ********** CUSTOMER SERVICE & TECH SUPPORT **********
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT='+heights[area][3]+'><A HREF="service.html"><IMG SRC="'+imgPath+'service_on.gif" NAME="service" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT=90>\n');
		document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
		for (i=1;i<=3;i++) {
			if (section==(30+i))
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_on.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+serviceSubNavLinks[i]+'"><IMG SRC="'+imgPath+'subnav'+i+'_on.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
			else
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_off.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+serviceSubNavLinks[i]+'" ONMOUSEOVER="serviceSubNav('+i+',document.arrow'+i+',document.subnav'+i+',0)" ONMOUSEOUT="serviceSubNav('+i+',document.arrow'+i+',document.subnav'+i+',1)"><IMG SRC="'+imgPath+'subnav'+i+'_off.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
		}
		document.write('						</TABLE>\n');
		document.write('					</TD>\n');
		document.write('				</TR>\n');
	}
	else {
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT='+heights[area][3]+'><A HREF="service.html" ONMOUSEOVER="sideNav(4,document.service,\''+imgPath+'\')" ONMOUSEOUT="sideNav(5,document.service,\''+imgPath+'\')"><IMG SRC="'+imgPath+'service_off.gif" NAME="service" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
	}
	document.write('				<TR>\n');
	document.write('					<TD VALIGN="top"><IMG SRC="'+imgPath+'divider4.gif"></TD>\n');
	document.write('				</TR>\n');
	if (area==4) {		// ********** NEWS & EVENTS **********
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top"><A HREF="news.html"><IMG SRC="'+imgPath+'news_on.gif" NAME="news" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top" HEIGHT=90>\n');
		document.write('						<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">\n');
		for (i=1;i<=4;i++) {
			if (section==(40+i))
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_on.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+newsSubNavLinks[i]+'"><IMG SRC="'+imgPath+'subnav'+i+'_on.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
			else
				document.write('							<TR><TD VALIGN="top"><IMG SRC="'+imgPath+'arrow'+i+'_off.gif" NAME="arrow'+i+'"></TD><TD VALIGN="top"><A HREF="'+newsSubNavLinks[i]+'" ONMOUSEOVER="newsSubNav('+i+',document.arrow'+i+',document.subnav'+i+',0)" ONMOUSEOUT="newsSubNav('+i+',document.arrow'+i+',document.subnav'+i+',1)"><IMG SRC="'+imgPath+'subnav'+i+'_off.gif" NAME="subnav'+i+'" BORDER="0"></A></TD></TR>\n');
		}
		document.write('						</TABLE>\n');
		document.write('					</TD>\n');
		document.write('				</TR>\n');
	}
	else {
		document.write('				<TR>\n');
		document.write('					<TD VALIGN="top"><A HREF="news.html" ONMOUSEOVER="sideNav(6,document.news,\''+imgPath+'\')" ONMOUSEOUT="sideNav(7,document.news,\''+imgPath+'\')"><IMG SRC="'+imgPath+'news_off.gif" NAME="news" BORDER="0"></A></TD>\n');
		document.write('				</TR>\n');
	}
	document.write('			</TABLE>\n');
	document.write('					</TD>\n');
	document.write('				</TR>\n');
	document.write('			</TABLE>\n');
	document.write('		</TD>\n');
	document.write('				</TR>\n');
	document.write('			</TABLE>\n');
	document.write('		</TD>\n');
}
