
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 = ""
//if (Current_Page=="contest" || Current_Page=="vote") {	
//	NavRoot = "http://www.genworth.ca/contest/"
//}
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="'+NavRoot+'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="'+NavRoot+'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="'+NavRoot+'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="'+NavRoot+'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>')



if (Current_Page=="student") {	
document.write('<td valign="top"><a href="'+NavRoot+'student.html"><img align="left" src="images/nav_student_on.gif" width="100" height="95" alt="Students" border="0" hspace="0" vspace="0" name="tabstudent"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}

if (Current_Page=="parent") {	
document.write('<td valign="top"><a href="'+NavRoot+'parent.html"><img align="left" src="images/nav_parent_on.gif" width="100" height="95" alt="Parents" border="0" hspace="0" vspace="0" name="tabparent"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}

if (Current_Page=="teacher") {	
document.write('<td valign="top"><a href="'+NavRoot+'teacher.html"><img align="left" src="images/nav_teacher_on.gif" width="100" height="95" alt="Teachers" border="0" hspace="0" vspace="0" name="tabteacher"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}


if (Current_Page=="community") {	
document.write('<td valign="top"><a href="'+NavRoot+'community.html"><img align="left" src="images/nav_community_on.gif" width="100" height="95" alt="Importance of Community" border="0" hspace="0" vspace="0" name="tabcommunity"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}

if (Current_Page=="contest" || Current_Page=="vote") {	
document.write('<td valign="top"><a href="'+NavRoot+'contest.html"><img align="left" src="images/nav_contest_on.gif" width="100" height="95" alt="Contest Entry" border="0" hspace="0" vspace="0" name="tabcontest"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'contest.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>')
}

if (Current_Page=="refer") {	
document.write('<td valign="top"><a href="'+NavRoot+'refer.html"><img align="left" src="images/nav_refer_on.gif" width="100" height="95" alt="Refer A Friend" border="0" hspace="0" vspace="0" name="tabrefer"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}
if (Current_Page=="media") {	
document.write('<td valign="top"><a href="'+NavRoot+'media.html"><img align="left" src="images/nav_media_on.gif" width="100" height="95" alt="Media" border="0" hspace="0" vspace="0" name="tabmedia"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'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>')
}
if (Current_Page=="winners") {	
document.write('<td valign="top"><a href="'+NavRoot+'winners_2009.html"><img align="left" src="images/nav_winners_on.gif" width="100" height="95" alt="2009 Winners" border="0" hspace="0" vspace="0" name="tabwinners"></a></td>')
} else {
document.write('<td valign="top"><a href="'+NavRoot+'winners_2009.html" onMouseOver="showImage(\'tabwinners\')" onMouseOut="hideImage(\'tabwinners\')"><img align="left" src="images/nav_winners_off.gif" width="100" height="95" alt="2009 Winners" border="0" hspace="0" vspace="0" name="tabwinners"></a></td>')
}

document.write('</tr></table>')
document.write('</td></tr>')