if (window.document.images){
    img_aon = new Image(134,21);          // active images
    img_aon.src = "/images/n_choose_on.gif";
    img_bon = new Image(155,21);
    img_bon.src = "/images/n_work_on.gif";
    img_con = new Image(131,21);
    img_con.src = "/images/n_saveretire_on.gif";
    img_don = new Image(112,21);
    img_don.src = "/images/n_retire_on.gif";
    img_eon = new Image(117,21);
    img_eon.src = "/images/n_estate_on.gif";
    img_fon = new Image(126,21);
    img_fon.src = "/images/n_education_on.gif";

    img_aoff = new Image(134,21);		// inactive images
    img_aoff.src = "/images/n_choose_off.gif";
    img_boff = new Image(155,21);
    img_boff.src = "/images/n_work_off.gif";
    img_coff = new Image(131,21);
    img_coff.src = "/images/n_saveretire_off.gif";
    img_doff = new Image(112,21);
    img_doff.src = "/images/n_retire_off.gif";
    img_eoff = new Image(117,21);
    img_eoff.src = "/images/n_estate_off.gif";
    img_foff = new Image(126,21);
    img_foff.src = "/images/n_education_off.gif";
}

// Function to "activate" images.
function imgAct(imgName) {
    if (window.document.images) {
    document[imgName].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" images.
function imgInact(imgName) {
    if (window.document.images) {
    document[imgName].src = eval(imgName + "off.src");
    }
}

function ggaPop(page){
	newWindow=window.open(page,'mailwindow','width=580,height=480,toolbar=no,resizable=no,scrollbars=yes,status=no,location=no');
}

function EaF_openWindow(theURL,winName,features) { //v2.0
  theURL = theURL + "&url=" + window.location;
  window.open(theURL,winName,features);
}

function buildNav(){
	var n = 0;
	document.write("<table border='0' width='775' cellspacing='0' cellpadding='0'><tr bgcolor='#C0DBE9'><td><img src='images/h_" + header[(navValue-1)] + "_a.gif' alt='Getting good advice' width='237' height='63' border='0' usemap='#map1'><br><map name='map1'><area shape='rect' coords='2,1,236,61' href='index.html'></map></td><td><img SRC='images/h_" + header[(navValue-1)] + ".jpg' ALT='Getting good advice' width='167' height='63' border='0' align='top'></td><td><img src='images/h_global.gif' width='371' height='63' border='0' usemap='#map2'><br><map name='map2'><area shape='rect' coords='31,4,68,19' href='index.html' alt='Home'><area shape='rect' coords='76,4,151,19' href=javascript:ggaPop('contact_us.html'); alt='Contact us'><area shape='rect' coords='160,4,224,19' href='http://www.info-conseils.ca' alt='francais'><area shape='rect' coords='231,4,309,19' href='http://www.fidelity.ca' alt='fidelity.ca'><area shape='rect' coords='317,4,362,19' href=javascript:ggaPop('legal.html'); alt='Legal'></map></td></tr><tr><td colspan='3'>");
	while (n != name.length){
		if (n == (navValue-1))
			document.write("<IMG SRC=images/n_" + src[n] + "_on.gif ALT='" + alt[n] + "' NAME=" + name[n] + " WIDTH=" + width[n] + " HEIGHT=21 BORDER=0 ALIGN=top>");
		else
			document.write("<A HREF=" + url[n] + " onmouseover = imgAct('" + name[n] + "') onmouseout = imgInact('" + name[n] + "')><IMG SRC=images/n_" + src[n] + "_off.gif ALT='" + alt[n] + "' NAME=" + name[n] + " WIDTH=" + width[n] + " HEIGHT=21 BORDER=0 ALIGN=top></A>");
		n++;
	}
	document.write("<br></TD></TR></TABLE>");
}

function buildSide(){
	var n = 0;
	document.write("<TABLE BORDER='0' WIDTH='133' CELLSPACING='0' CELLPADDING='0' class='bgblue10' ALIGN='center'><TR VALIGN='top'><TD><IMG SRC='images/dot.gif' WIDTH='10' HEIGHT='1' BORDER='0' ALIGN='top'><br></TD><TD><IMG SRC='images/dot.gif' WIDTH='124' HEIGHT='1' BORDER='0' ALIGN='top'><br><br><DIV CLASS='nav'>");
	while (n != item.length){
		if (n == (sideValue-1))
			document.write(item[n] + "<BR>");
		else
			document.write("<A HREF='" + page[n] + ".html'>" + item[n] + "</A><BR>");
		n++;
	}
	document.write("</DIV></TD></TR></TABLE>");
}

