
function toggleLanguage() {
  var locStr = location.pathname;
  locStr = locStr.replace(/\/contest\//, "/contestfr/");
  window.location.assign(locStr);
}
// Had to host voting pages temporarily on RM server, but wanted other pages to remain at genworth, December 14, 2009, slr.
NavRoot = ""

document.write('<tr><td valign="top" width="230"><img align="left" src="images/logo_genworth_hm.gif" width="225" height="76" alt="Genworth Financial" border="0" hspace="0" vspace="0"></td>')
document.write('<td  valign="top" align="right" width="570">')
document.write('<a href="home.html" onMouseOver="showImage(\'txthome\')" onMouseOut="hideImage(\'txthome\')"><img src="images/txt_home_off.gif" alt="Home" border="0" name="txthome"></a>')
document.write('<img src="images/txt_divider.gif" width="8" height="16" alt="" border="0">')
document.write('<a href="about_genworth.html" onMouseOver="showImage(\'txtgenworth\')" onMouseOut="hideImage(\'txtgenworth\')"><img src="images/txt_genworth_off.gif" alt="About Genworth Financial Canada" border="0" name="txtgenworth"></a>')
document.write('<img src="images/txt_divider.gif" width="8" height="16" alt="" border="0">')
document.write('<a href="about_habitat.html" onMouseOver="showImage(\'txthabitat\')" onMouseOut="hideImage(\'txthabitat\')"><img src="images/txt_habitat_off.gif" alt="About Habitat for Humanity" border="0" name="txthabitat"></a>')
document.write('<img src="images/txt_divider.gif" width="8" height="16" alt="" border="0">')
document.write('<a href="contact.html" onMouseOver="showImage(\'txtcontact\')" onMouseOut="hideImage(\'txtcontact\')"><img src="images/txt_contact_off.gif" alt="Contact" border="0" name="txtcontact"></a>')

// The following two lines were added on July 6, 2009 to link to the french site
// Brian Devet
document.write('<img src="images/txt_divider.gif" width="8" height="16" alt="" border="0">')
document.write('<a href="javascript:toggleLanguage();" onMouseOver="showImage(\'txtlang\')" onMouseOut="hideImage(\'txtlang\')"><img src="images/txt_lang_off.gif" alt="Français" border="0" name="txtlang"></a>')

document.write('<img src="images/spacer.gif" width="1" height="1" alt="" border="0" vspace="2">')
document.write('</td></tr><tr><td colspan="2" valign="top">')

document.write('<table cellspacing="0" cellpadding="0" border="0"><tr>')


document.write('<td valign="top"><img align="left" src="images/nav_blank_hm.gif" width="0" height="95" alt="" border="0" hspace="0" vspace="0"></td>')



// HEADER NAV
// **********


// ** STUDENTS **
document.write('<td valign="top"><a href="student.html" onMouseOver="showImage(\'tabstudent\')" onMouseOut="hideImage(\'tabstudent\')"><img align="left" src="images/nav_student_off.gif" width="100" height="95" alt="Students" border="0" hspace="0" vspace="0" name="tabstudent"></a></td>')


// ** PARENTS **
document.write('<td valign="top"><a href="parent.html" onMouseOver="showImage(\'tabparent\')" onMouseOut="hideImage(\'tabparent\')"><img align="left" src="images/nav_parent_off.gif" width="100" height="95" alt="Parents" border="0" hspace="0" vspace="0" name="tabparent"></a></td>')


// ** TEACHERS **
document.write('<td valign="top"><a href="teacher.html" onMouseOver="showImage(\'tabteacher\')" onMouseOut="hideImage(\'tabteacher\')"><img align="left" src="images/nav_teacher_off.gif" width="100" height="95" alt="Teachers" border="0" hspace="0" vspace="0" name="tabteacher"></a></td>')


// ** COMMUNITY **
document.write('<td valign="top"><a href="community.html" onMouseOver="showImage(\'tabcommunity\')" onMouseOut="hideImage(\'tabcommunity\')"><img align="left" src="images/nav_community_off.gif" width="100" height="95" alt="Importance of Community" border="0" hspace="0" vspace="0" name="tabcommunity"></a></td>')


// ** CONTEST **
document.write('<td valign="top"><a href="contest_entry.html" onMouseOver="showImage(\'tabcontest\')" onMouseOut="hideImage(\'tabcontest\')"><img align="left" src="images/nav_contest_off.gif" width="100" height="95" alt="Contest Entry" border="0" hspace="0" vspace="0" name="tabcontest"></a></td>')


// ** REFER A FRIEND **
document.write('<td valign="top"><a href="refer.html" onMouseOver="showImage(\'tabrefer\')" onMouseOut="hideImage(\'tabrefer\')"><img align="left" src="images/nav_refer_off.gif" width="100" height="95" alt="Refer A Friend" border="0" hspace="0" vspace="0" name="tabrefer"></a></td>')


// ** MEDIA **
document.write('<td valign="top"><a href="media.html" onMouseOver="showImage(\'tabmedia\')" onMouseOut="hideImage(\'tabmedia\')"><img align="left" src="images/nav_media_off.gif" width="100" height="95" alt="Media" border="0" hspace="0" vspace="0" name="tabmedia"></a></td>')


// ** WINNERS **

// WITH WINNERS >>
//document.write('<td valign="top"><a href="winners_2011.html" onMouseOver="showImage(\'tabwinners\')" onMouseOut="hideImage(\'tabwinners\')"><img align="left" src="images/nav_winners_off.gif" width="100" height="95" alt="2010 Winners" border="0" hspace="0" vspace="0" name="tabwinners"></a></td>')


// WITH SEMI-FINALISTS >>
document.write('<td valign="top"><a href="winners_2011.html" onMouseOver="showImage(\'tabwinners\')" onMouseOut="hideImage(\'tabwinners\')"><img align="left" src="images/nav_winners_off.gif" width="100" height="95" alt="2010 Winners" border="0" hspace="0" vspace="0" name="tabwinners"></a></td>')

document.write('</tr></table>')
document.write('</td></tr>')



// SUB NAV ON WINNERS/SEMI-FINALISTS PAGE

function writeWinnersNav(thisPage) {

document.write('<div style="margin-top:15px;">')
document.write('<a style="color:#666; font-size:10px; margin-left:7px;" href="vote.aspx">View 2011 Semi-finalists</a>&nbsp;')

if (thisPage != "2011") {
	// 2011 winners page - uncomment when launched
	//document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2011.html">View 2011 Winners</a>')
	document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2011.html">View 2011 Winners</a>&nbsp;')
	}

if (thisPage != "2010") {
	document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2010.html">View 2010 Winners</a>&nbsp;')
}
if (thisPage == "2008" || thisPage == "2007") {
	document.write('<br>')
}
if (thisPage != "2009") {
	document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2009.html">View 2009 Winners</a>&nbsp;')
	if(thisPage == "2008" || thisPage == "2007")
	{
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
	}
}
if (thisPage != "2008") {
	if(thisPage !="2007")
	{
	document.write('<br/>')
	}
	document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2008.html">View 2008 Winners</a>&nbsp;')
	if(thisPage == "2011" || thisPage =="2010"||thisPage=="2009")
	{
	document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;')
	}
}
if (thisPage != "2007") {
	document.write('<a style="color:#666; font-size:10px;margin-left:7px" href="winners_2007.html">View 2007 Winners</a>&nbsp;')
}
document.write('</div>')

}
