﻿
document.write("<a name='top'>"); // For inline links

// Portal Details Declared
Portal1_Title = "Home Ownership";
Portal1_Folder = "home_ownership";

Portal2_Title = "Industry Professionals";
Portal2_Folder = "industry_professionals";

Portal3_Title = "Product Solutions";
Portal3_Folder = "product_solutions";


// Breadcrumbs
function Show_Breadcrumbs () {
 document.write ('<DIV id=breadcrumb><a href="../index.html">Home</a> &gt;');
 if ((current_level2!="") && (current_level2!=current_title)) {
  document.write (' <a href="'+current_url2+'">'+current_level2.replace("*","")+'</a> &gt;');
 }
 if ((current_level3!="") && (current_level3!=current_title)) {
  document.write (' <a href="'+current_url3+'">'+current_level3.replace("*","")+'</a> &gt;');
 }

 document.write ('</div><div valign="top" align="left" border="0"></div>');  
}

// Search and Replace
function searchAndReplace(holder, searchfor, replacement) {
	temparray = holder.split(searchfor);
	holder = temparray.join(replacement);
	return (holder);
}
//new content start
// switch language
function Switch_Language() {
	
	LanguageExtension = "";		
	if (typeof(language) != "undefined"){
		if (language != "english" && language != "french") {
			
			// Build the print link based on the filename		
			switch(language) {

				case "spanish": 
					LanguageExtension = "sp";
					break;			
				case "chinese":
					LanguageExtension = "ch";
					break;			
				case "farsi":
					LanguageExtension = "fa";
					break;				
				case "korean":
					LanguageExtension = "ko";
					break;				
				case "punjabi":
					LanguageExtension = "pu";
					break;					
				default:
					LanguageExtension = "";		
				}
		}
	}
	
	currentpage=window.location+"";
	if (currentpage.indexOf("/eng/") != -1) {
		// English variables
		ThisLanguageShort = "eng";
		OtherLanguageShort = "fre";
		OtherLanguageLabel = "Fran&ccedil;ais";
	} else {
		// French Variables
		ThisLanguageShort = "fre";
		OtherLanguageShort = "eng";
		OtherLanguageLabel = "English";
	
	}
	currentpage = searchAndReplace(currentpage, "_" + LanguageExtension + ".html", ".html");
	
	
	currentpage = searchAndReplace(currentpage, "/"+ThisLanguageShort+"/", "/"+OtherLanguageShort+"/");
	currentpage = searchAndReplace(currentpage, '&#92;'+ThisLanguageShort+'&#92;', '&#92;'+OtherLanguageShort+'&#92;');
	document.write ('<A href="'+currentpage+'">');
	document.write (OtherLanguageLabel+'</A>');
}
//new content end
// Pop Up Dev Centre
function popUp_dev_centre(redirect) {
	window.open(redirect,'dev_centre','menubar=no,scrollbars=no,toolbars=no,resizable=no,location=no,width=800,height=600')
}

// Pop Up Glossary
function popup_glossary(HelpTopic) {
	window.open("../misc_pages/popup_glossary.html?"+escape(HelpTopic),"help","menubar=no,scrollbars=no,toolbars=no,resizable=no,location=no,width=400,height=170");
}
   
// Pop Up Calculator
function popUp_calc(redirect) {
	window.open(redirect,'Calc','menubar=no,scrollbars=no,toolbars=no,resizable=no,location=no,width=736,height=552')
}
// Pop Up Calculator for larger calculators (What can I afford?)
function popUp_calcLarge(redirect) {
	window.open(redirect,'New','menubar=no,scrollbars=no,toolbars=no,resizable=no,location=no,width=800,height=645');
}


// Pop Up Calculator
function popUp_comments(redirect) {
	window.open(redirect,'Calc','menubar=no,scrollbars=yes,toolbars=no,resizable=no,location=no,width=800,height=552')
}


// Page Title - Graphic is based on title of html
function Show_Page_Title() { 
	if (current_title=="Applying Online"){
		fileName="GENWORTHjobs"
	}
	// the following is so that the graphics do not need to be duplicated for each filename, when pages share the same title
	if (current_title=="Leadership Team"){
		fileName="personnel"
	}
	if (current_title=="Homebuyer Privileges™"&&fileName!="homebuyer_priv_login"){
		fileName="homebuyer_priv_login"
	}
	if (current_title=="*Homebuyer Privileges™"){
		fileName="homebuyer_priv_login"
	}
	if (current_title=="Product Selector"){
		fileName="product_selector"
	}
	if (current_title=="Homebuyers Product Selector"){
		fileName="homebuyer_prdct_select"
	}
	if (current_title=="Appointed Appraisers"){
		fileName="appraisers"
	}
 	document.write ('<DIV id=headerContainer><TABLE cellSpacing=0 width=572><TBODY><TR><TD vAlign=bottom width=393><IMG alt="'+searchAndReplace(current_title, "*", "")+'" src="../images/ttl_'+fileName+'.gif" width=570 border=0></TD></TR></TBODY></TABLE></DIV>'); 
}


// Build drop down menu
function Show_Dropdown_Menu (Section,ImageName,ID,Width) {

	document.write ('</a><DIV id=dropNav'+ID+' onmouseover="Javascript: clearTimeout(timerID);" onmouseout="Javascript: hideCountdown();"><img src="../images/but_'+ImageName+'dropdown.gif" width="'+Width+'" height="23" alt="" border="0"><BR><DIV class=navContainer'+ID+'><DIV class=navList><UL>');
	for (var i=0; i < menu.length; i++) {
 		if (menu[i][Level]=="Level1") { temp_section = menu[i][Title];}
 		if ((temp_section==Section) && (menu[i][Level]=="Level2")) {
  			
  			document.write ('<LI><a href="'+menu[i][URL]+'">'+searchAndReplace(menu[i][Title],"*","")+'</a></LI>');
 		}
	}
	document.write ('</UL></DIV></DIV></DIV>'); 
}

//  Determine location of page within site and build menu array
function add_menu_item(level, title, urllink, graphic,tools) {
	if (tools==null) {var tools=""};
	if (item_found==false) { 
		if (level=="Level1") {current_level1=title;current_url1=urllink}
		if (level=="Level2") {
			current_level2=title;
			current_url2=urllink;
   			current_header_graphic=graphic;
			current_tools=tools;
		}
		if (level=="Level3") {current_level3=title;current_url3=urllink}
 	}
	if (current_title==title) {
   		item_found=true; current_level=level;
		if (level=="Level1") {
			current_level2="";
			current_level3="";
			current_level4="";
		}
		if (level=="Level2") {
			current_level3="";
			current_level4="";
		}
		if (level=="Level3") {current_level4=""}
 	}
	menu[menu.length]=[level, title, urllink, graphic,tools];
}


// Show dynamic sidebar based on Menu Array
function Show_Dynamic_Sidebar() {
	// 1st Level Sidebar Navigation 
	document.write ('<UL id=leftNav>');
	for (var i=0; i < menu.length; i++) {
	
  		if (menu[i][Level]=="Level1") {var temp_level1=menu[i][Title]}
  		if (menu[i][Level]=="Level2") {var temp_level2=menu[i][Title]}
  		if (menu[i][Level]=="Level3") {var temp_level3=menu[i][Title]}
		
		if (temp_level1==current_level1) {
			// 2nd Level Sidebar Navigation
 			if (menu[i][Level]=="Level2") { 
  				if (current_level2==menu[i][Title]) { // Selected
   					document.write ('<LI class=firstLevelActive><A href="'+menu[i][URL]+'">'+searchAndReplace(menu[i][Title], "*", "")+'</A></LI>');
  				} else { // Not Selected
   					document.write ('<LI class=firstLevel><A href="'+menu[i][URL]+'">'+searchAndReplace(menu[i][Title], "*", "")+'</A></LI>');
  				}
 			}
			// 3rd Level Sidebar Navigation
			if (temp_level2==current_level2) {
				document.write ('<UL class=leftSubNav>');
 				if (menu[i][Level]=="Level3") { 
  					if (current_level3==menu[i][Title]) { // Selected
   						document.write ('<LI class=secLevelActive><A href="'+menu[i][URL]+'">'+searchAndReplace(menu[i][Title], "*", "")+'</A></LI>');
  					} else { // Not Selected
   						document.write ('<LI class=secLevel><A href="'+menu[i][URL]+'">'+searchAndReplace(menu[i][Title], "*", "")+'</A></LI>');
  					}
 				} 
 				document.write ('</UL>');
			}
		}
	}
	document.write ('</UL>');
}


// Returns url strings (ie ?RequestedField=value)
function URLStringReturn(RequestedField){
   var RequestedResult = ""
   var queryString = location.search;
   // Convert & to %26 for Netscape
   queryString = searchAndReplace(queryString, "&", "%26");
   //-- get rid of ? at start --
   var RawURLString = queryString.slice(1,queryString.length);
   //-- Splits the string at the & and returns an array containing the parts,
	//variable=value pairs.Stored as single string. --
   URLStringSplit = RawURLString.split("%26");         
       for (j=0;j<URLStringSplit.length;j++){
			EachURLStringSplit = URLStringSplit[j].split("=");
			if (RequestedField == EachURLStringSplit[0]) {
				RequestedResult = EachURLStringSplit[1];
			}
       } 
	return RequestedResult;
}


// Launch code for print version
function LaunchPrinter() {
	
	PrintTarget = ""
	
	// For customized print pages, we id the filename
	// and open the relevant print friendly page
	ThisFileName = window.location.pathname + "";
	ThisFileName = ThisFileName.split("/");
	ThisFileName = ThisFileName[ThisFileName.length-1]
	
	// We need to pass on querystrings so the page
	// displays in print mode as well
	QueryStringValues = window.location.search + "";
	QueryStringValues = QueryStringValues.replace("?","");
		
	// Build the print link based on the filename		
	switch(ThisFileName) {

		case 'interest_rates.asp': 
			PrintTarget = "misc_pages/interest_rates.asp?print=true"
			break;
			
		case 'search.asp':
		    PrintTarget = "misc_pages/search.asp?print=true&"+QueryStringValues
			break;
			
		case 'site_map.html':
		    PrintTarget = "misc_pages/site_map_print.html?print=true"
			break;
			
		default:
			PrintTarget = "printfriendly.asp?printThis="+window.location.pathname+"&"+QueryStringValues

	}
	
//Loads print page for local testing
	webhome = window.location + " "
	if (webhome.indexOf("www.richmedia.ca")!=-1){
		window.open('../'+PrintTarget,'New','menubar=yes,scrollbars=yes,toolbars=no,resizable=no,location=no,width=700,height=600')
	}else{
		window.open('/mi/eng/'+PrintTarget,'New','menubar=yes,scrollbars=yes,toolbars=no,resizable=no,location=no,width=700,height=600')
	}
}


//
//*************SIDEBAR ITEMS START HERE
//


//*** Hombuyer Priveleges LOGIN
function Show_Homebuyer_Privileges_Login() {

	// First we identify optimum field width
	FieldSize = "20" // Default PC width

	if (isMac==true) { // Mac widths
		
		if (navigator.appName == "Netscape") {
			FieldSize = "17" // Mac Netscape
		} else {
			FieldSize = "22" // Other Macs
		}
	
	}

	if (fileName=="homebuyer_priv_login"||fileName=="homebuyer_priv_register") {

		document.write ('<form target="_self" name="SignInForm" method="post" action="homebuyer_privileges.asp">');
		document.write ('<input type="hidden" name="GEAction" value="<%=sGEAction%>">');
		document.write ('<input type="hidden" name="LangCode" value="ENUS">');

		document.write ('<table cellspacing="2" cellpadding="2" border="0" width="150"><tr>');
		document.write ('<td valign="bottom"><h3>Existing Members Login</h3></td><tr>');
		document.write ('<tr><td valign="bottom">');
		document.write ('<img src="../images/form_userID.gif" width="42" height="12" alt="" border="0"><br>');

		document.write ('<input type="Text" name="ConsumerID" maxlength="50" size="20" value="">');
//		document.write ('<input type="text" name="User_ID" size="'+FieldSize+'">');

		document.write ('</td></tr>');
		document.write ('<tr><td height="40" valign="bottom">');
		document.write ('<img src="../images/form_hp_ID.gif" width="137" height="12" alt="" border="0" vspace="2"><br>');

		document.write ('<input type="text" name="HBPID" size="20" value="">');
//		document.write ('<input type="text" name="HP_ID" size="'+FieldSize+'">');

		document.write ('</td></tr>');
		document.write ('<tr><td align="right">');

		document.write ('<input class="Graphic" type="image" src="../images/form_signin.gif" value="Sign In" width="56" height="13" alt="" border="0" id="SignIn" name="SignIn" onClick="Javascript:ValidateForm(this);">');
//		document.write ('<a href="homebuyer_privileges.html">');
//		document.write ('<img src="../images/form_signin.gif" width="56" height="13" alt="" border="0" vspace="2">');
//		document.write ('</a>');

		document.write ('</td></tr></table>');

		document.write ('</form>');

	}

	if (fileName=="broker_homebuyer_priv_login") {

		document.write ('<form target="_self" name="SignInForm" method="post" action="homebuyer_privileges.asp">');
		document.write ('<input type="hidden" name="GEAction" value="<%=sGEAction%>">');
		document.write ('<input type="hidden" name="LangCode" value="ENUS">');

		document.write ('<table cellspacing="2" cellpadding="2" border="0" width="150"><tr>');
		document.write ('<td valign="bottom"><h3>Broker Login</h3></td><tr>');
		document.write ('<tr><td valign="bottom">');
		document.write ('<img src="../images/form_userID.gif" width="42" height="12" alt="" border="0"><br>');

		document.write ('<input type="Text" name="UserID" maxlength="50" size="20" value="">');

		document.write ('</td></tr>');
		document.write ('<tr><td height="40" valign="bottom">');
		document.write ('<img src="../images/form_password.gif" width="60" height="12" alt="" border="0" vspace="2"><br>');

		document.write ('<input type="password" name="Password" size="20" value="">');

		document.write ('</td></tr>');
		document.write ('<tr><td align="right">');

		document.write ('<input class="Graphic" type="image" src="../images/form_signin.gif" value="Sign In" width="56" height="13" alt="" border="0" id="SignIn" name="SignIn" onClick="Javascript:ValidateForm(this);">');

		document.write ('</td></tr></table>');

		document.write ('<font size=-2><a href="javascript:ForgotUserID()">Forgot Your User ID?</a><br> or <a href="javascript:ForgotPassword()">Forgot Your Password?</a></font>');

		document.write ('</form>');

	}


}
	
//*************Useful_Links

//Home Ownership Privileges
function Show_Home_Ownership_Privileges() {
	document.write ('<div class="acctLogin">');
	document.write ('<div class="leftCallOut">');
	document.write ('<ul>');
	document.write ('<li class="leftCallOutHeader"><a href="../hbp/homebuyer_priv_login.asp"><IMG alt="Homebuyer Privileges" src="../images/lnav_call_hm_byrs.gif" border=0></a></li>');
	document.write ('<li><a href="../hbp/homebuyer_priv_login.asp">Take advantage of these offers - with your privileges.</a></li>');
	document.write ('<li class="leftCallOutFooter"><a href="../hbp/homebuyer_priv_login.asp"><IMG height=10 alt=Go src="../images/lnav_call_go.gif" width=23 border=0></a></li>');
	document.write ('</ul>');
	document.write ('</div>');
	document.write ('</div>');
}

//Bnr_Broker_Email_Winner
function Show_Bnr_Broker_Email_Winner () {
	document.write ('<img src="../images/bnr_broker_email_winner.jpg" width="141" height="240" alt="" border="0"><br><br>');
}

//Useful_Links_Products_Programs
function Show_Useful_Links_Products_Programs () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ("<LI><a href='https://www.genworth.ca/excel' target='new'>Genworth Financial&#39;s &nbsp;&nbsp;Excel™</a></LI>");
	document.write ("<LI><a href='https://www.gemiconnect.com/canada/' target='new'>Genworth Claims</a></LI>");
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.crea.ca" target="new">CREA</a></LI>');
	document.write ('<LI><a href="http://www.mapquest.ca" target="new">Map Quest</a></LI>');
	document.write ('<LI><a href="http://www.nationalhomewarranty.com" target="new">New Home Warranty Programs</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_Homebuyers
function Show_Useful_Links_Homebuyers () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.mapquest.ca" target="new">Map Quest</a></LI>');
	document.write ('<LI><a href="http://www.canadapost.ca" target="new">Canada Post</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_industry_professionals
function Show_Useful_Links_industry_professionals () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ("<LI><a href='https://www.genworth.ca/excel' target='new'>Genworth Financial's &nbsp;&nbsp;Excel™</a></LI>");
	document.write ("<LI><a href='https://www.gemiconnect.com/canada/' target='new'>Genworth Claims</a></LI>");
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><a href="http://www.transunion.ca/" target="new">TransUnion</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.ibac.ca" target="new">IBAC</a></LI>');
	document.write ('<LI><a href="http://imba.ca/" target="new">IMBA</a></LI>');
	document.write ('<LI><a href="http://www.chba.ca" target="new">CHBA</a></LI>');
	document.write ('<LI><a href="http://www.crea.ca" target="new">CREA</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_Brokers
function Show_Useful_Links_Brokers () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.ibac.ca" target="new">IBAC</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
	//Add MMS Link 
	document.write ('<center><br><a href="http://www.mymarketingsource.ca" target = "_new"><img src="../images/mms_banner.jpg"  width="132" height="128" alt="My Marketing Source" border="0"></a><br><br><a href=../misc_pages/genworth_newsletters.html><img src="../images/bnr_newsletter.jpg" width="132" height="100" alt="" border="0"></a></center>');
	
	
}


//Useful_Links_Lenders
function Show_Useful_Links_Lenders () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ("<LI><a href='https://www.genworth.ca/excel' target='new'>Genworth Financial's &nbsp;&nbsp;Excel™</a></LI>");
	document.write ("<LI><a href='https://www.gemiconnect.com/canada/' target='new'>Genworth Claims</a></LI>");
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.aicanada.ca/" target="new">AIC</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_Realtors
function Show_Useful_Links_Realtors () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.crea.ca" target="new">CREA</a></LI>');
	document.write ('<LI><a href="http://www.aicanada.ca/" target="new">AIC</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_Builders
function Show_Useful_Links_Builders () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.chba.ca" target="new">CHBA</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');
}

//Useful_Links_Equifax
function Show_Useful_Links_Equifax () {
	document.write ('<br><a  href=https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en target=new><img src="../images/bnr_Equifax_CheckCredit.gif" width="150" height="80" alt="" border="0"></a>');
}

//Useful_Links_Energy_Efficient
function Show_Useful_Links_Energy_Efficient_Housing_Program () {
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="../images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ('<LI><a href=http://oee.nrcan.gc.ca/residential/personal/home-improvement/service/contact-advisors.cfm?attr=12 target=new>Contact an Energy Advisor</a></LI>');
	document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	document.write ('<LI><a href="http://www.mapquest.ca" target="new">Map Quest</a></LI>');
	document.write ('<LI><a href="http://www.canadapost.ca" target="new">Canada Post</a></LI>');
	document.write ('<LI class=leftCallOutFooter>&nbsp;</LI></UL></DIV>');

}


//**********Tools and Resources


// Tools and Resources - Products and Programs
function Show_Tools_Products_Programs(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/benefits_mort_insurance.html">Benefits of Mortgage Default Insurance</a><LI><a href="../hbp/homebuyer_priv_login.asp">Homebuyer Privileges™</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
}

// Tools and Resources - Portal 1
function Show_Tools_Home_Ownership(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI><LI><A       href="../'+Portal1_Folder+'/homebuyers_worksheets.html">Home Buying Worksheets</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	
}


// Tools and Resources - Calculators Page
function Show_Tools_Calculators_Page(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI><LI><A       href="../'+Portal1_Folder+'/homebuyers_worksheets.html">Home Buying Worksheets</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a><LI><a href="../'+Portal1_Folder+'/FAQs_homebuyers.asp">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a><LI><a href="../'+Portal1_Folder+'/FAQs_homebuyers.asp">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
}


// Tools and Resources - Portal 2
function Show_Tools_Industry_Professionals(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI><LI><A       href="../'+Portal2_Folder+'/lender_worksheet.html">Lender Worksheets</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a><LI><a href="../'+Portal2_Folder+'/FAQs_profs.html">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a><LI><a href="../'+Portal2_Folder+'/FAQs_profs.html">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
}

// Tools and Resources - Lenders
function Show_Tools_Lenders(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a></UL><DIV class=divLine2></DIV></DIV></DIV>');
}


// Tools and Resources - Genworth Generic
function Show_Tools_Genworth(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI><LI><A       href="../'+Portal2_Folder+'/lender_worksheet.html">Lender Worksheets</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a><LI><a href="../'+Portal2_Folder+'/FAQs_profs.html">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal2_Folder+'/underwriting_guide.html">Underwriting Guidelines</a><LI><a href="../'+Portal2_Folder+'/FAQs_profs.html">FAQs</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
}

// Tools and Resources - Calculators
function Show_Tools_Calculators(redirect) {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI></UL></DIV></DIV>');
}

//Tools and Resource - EEHP
function Show_Tools_EEHP () {
	document.write ('<DIV id=rightColContainer><DIV class=rightColCallOut><DIV class=rightColHeadImg><IMG height=11 alt="Tools &amp; Resouces" src="../images/rtcol_hdr_tools_resources.gif" width=128 border=0></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href=http://oee.nrcan.gc.ca/residential/personal/home-improvement/service/contact-advisors.cfm?attr=12 target=new>Contact an Energy Advisor</a></LI><LI><a href="../'+Portal1_Folder+'/calculators.html">Calculators</a></li><LI><A       href="../'+Portal1_Folder+'/glossary.html">Glossary of Terms</a></LI><LI><A       href="../'+Portal1_Folder+'/which_product_me.html">Product Selector</a></LI><LI><A       href="../'+Portal1_Folder+'/homebuyers_worksheets.html">Home Buying Worksheets</a></LI></UL>');
	document.write ('<DIV class=divLine2></DIV><DIV class=rightColHeadImg><IMG alt="You may also be interested in these genworth products" src="../images/rtcol_hdr_also_interest.gif" width=128 border=0></DIV>');
	//document.write ('<UL class=ulSidebar><LI><a href="../'+Portal3_Folder+'/default_management.html">Default Management</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');
	document.write ('<UL class=ulSidebar><LI><a href="../'+Portal1_Folder+'/homeownerassistance.html">Homeowner Assistance</a><LI><a href="../'+Portal1_Folder+'/resource_ctr_related_links.html">Related Links</a></LI></UL><DIV class=divLine2></DIV></DIV></DIV>');

}

// Declare variables for menu array
var menu= new Array()
var item_found=false;
var current_level1="";var current_level2="";
var current_level3="";var current_level4="";
Level = 0; Title = 1; URL = 2; Header_Graphic = 3; Tools = 4;
//old removed for scotia bank issue  -- current_title=document.title.substring(21);
current_title = document.title.slice(document.title.indexOf("Genworth Financial - ")+21)
document.title = searchAndReplace(document.title, "*", "");

// Customized part of DOM - Platform
isMac = false
PlatformType = navigator.platform + "";

if (PlatformType.indexOf("Mac") != -1) {
	isMac = true
}

// Determine Base URL and filename
var baseurl = window.location+"";
fileName = baseurl.substring(baseurl.lastIndexOf("/")+1,baseurl.lastIndexOf("."));
baseurl = baseurl.substring(0,baseurl.lastIndexOf("/")+1)


//
// ************** Index Page Code 
//
//if (document.title == "Genworth Financial - Home") {
if (current_title == "Home") {
	// Build Drop Down Menus
	Show_Dropdown_Menu (Portal1_Title,"portal1","1","165")
	Show_Dropdown_Menu (Portal2_Title,"portal2","2","222")
	Show_Dropdown_Menu (Portal3_Title,"portal3","3","206")

	// select country div 
	document.write ('<DIV id=dropNav4 onmouseover="Javascript: clearTimeout(timerID);"onmouseout="Javascript: hideCountdown();"><IMG height=26 alt="Choose a Country" src="images/gnav_choose_country_ovr.gif" border=0><BR><DIV class=navContainerCountry><DIV class=navListCountry>'); 
	document.write ('<UL><LI><A href="http://www.genworth.com.au/" target="new">Australia</A>');  
	document.write ('<LI><A href="http://www.genworth.ca/en/index.html" target="new">Canada (English)</A>');
	document.write ('<LI><A href="http://www.genworth.ca/fr/index.html" target="new">Canada (French)</A>');
	document.write ('<LI><A href="http://www.genworth.dk/" target="new">Denmark</A>');
	document.write ('<LI><A href="http://www.genworth.com/ee" target="new">Estonia</A>');
	document.write ('<LI><A href="http://www.genworth.fi/" target="new">Finland </A>');  
	document.write ('<LI><A href="http://www.genworth.fr/" target="new">France</A>');  
	document.write ('<LI><A href="http://www.genworth.de/" target="new">Germany</A>');
	document.write ('<LI><A href="http://www.genworth.hu/" target="new">Hungary</A>');  
	document.write ('<LI><A href="http://www.genworth.ie/" target="new">Ireland (English)</A>');  
	document.write ('<LI><A href="http://www.genworth.it/" target="new">Italy</A>');  
	document.write ('<LI><A href="http://www.genworth.in/" target="new">India</A>');  
	document.write ('<LI><A href="http://www.genworth.jp/" target="new">Japan</A>');
	document.write ('<LI><A href="http://www.genworth.lv/" target="new">Latvia</A>');
	document.write ('<LI><A href="http://www.genworth.lt/" target="new">Lithuania</A>');
	document.write ('<LI><A href="http://www.genworth.com.mx/" target="new">Mexico</A>');  
	document.write ('<LI><A href="http://www.genworth.nl/" target="new">Netherlands</A>');  
	document.write ('<LI><A href="http://www.genworth.co.nz/" target="new">New Zealand</A>');
	document.write ('<LI><A href="http://www.genworth.no/" target="new">Norway</A>');
	document.write ('<LI><A href="http://www.genworth.pl/" target="new">Poland</A>'); 
	document.write ('<LI><A href="http://www.genworth.pt/" target="new">Portugal</A>');
	document.write ('<LI><A href="http://www.genworth.com.es/" target="new">Spain</A>');
	document.write ('<LI><A href="http://www.genworth.se/" target="new">Sweden</A>');  
	document.write ('<LI><A href="http://www.genworth.ch/" target="new">Switzerland (Deutsch)</A>');
	document.write ('<LI><A href="http://www.genworth.ch/fr/" target="new">Switzerlan (Francais)</A>');
	document.write ('<LI><A href="http://www.genworth.ch/it/" target="new">Switzerlan (Italiano)</A>');
	document.write ('<LI><A href="http://www.genworth.co.uk/" target="new">United Kingdom</A>');  
	document.write ('<LI><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/us/en/home.html" target="new">United States</A>'); 
	document.write ('</LI></UL></DIV></DIV></DIV>'); 
	// select country div ends here

	//*************Header Code 
	document.write ('<!--masterDiv--><DIV id=masterDiv>');  

	document.write ('<DIV id="searchContainer"><FORM name=search action="misc_pages/search.asp" method=post><INPUT name=crit value="Search" style="width: 100px; height: 15px; font-size: 9px; color: #5a5a5a;"> <INPUT style="BORDER-TOP-WIDTH: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN-BOTTOM: -4px;" type=image height=19 alt="submit search" width=17 src="images/search_arrow.gif">');
	document.write ('</FORM></DIV>');
	
	//document.write ('<DIV id="chooseCountryLarge"><select name="chooseCountry" onChange="location = this.options[this.selectedIndex].value;"><option>Choose a Country</option>');
	document.write ('<DIV id="chooseCountryLarge"> <select name="chooseCountry" id="chooseCountry" onChange="location = this.options[this.selectedIndex].value;"><option>Choose a Country</option>'); 
	document.write ('<option value="http://www.genworth.com.au/">Australia</option>');  
	document.write ('<option value="http://www.genworth.ca/mi/eng/index.html" selected>Canada (English)');
	document.write ('<option value="http://www.genworth.ca/mi/fre/index.html">Canada (French)');
	document.write ('<option value="http://www.genworth.dk/">Danmark | Denmark</option>');
	document.write ('<option value="http://www.genworth.de/">Deutschland | Germany</option>');
	document.write ('<option value="http://www.genworth.com/ee">Eestis | Estonia</option>');
	document.write ('<option value="http://www.genworth.ie/">Éire | Ireland (English)</option>');
	document.write ('<option value=""http://www.genworth.com.es/">España | Spain');  
	document.write ('<option value="http://www.genworth.fr/">France</option>');   
	document.write ('<option value="http://www.genworth.it/">Italia | Italy</option>');  
	document.write ('<option value="http://www.genworth.in/">India</option>'); 
	document.write ('<option value="http://www.genworth.jp/">Japan</option>');
	document.write ('<option value="http://www.genworth.lv/">Latvija | Latvia');
	document.write ('<option value="http://www.genworth.lt/">Lietuva | Lithuania');
	document.write ('<option value="http://www.genworth.hu/">Magyarorzág | Hungary');
	document.write ('<option value="http://www.genworth.com.mx/">México | Mexico</option>');
	document.write ('<option value="http://www.genworth.nl/">Nederland | Netherlands</option>');  
	document.write ('<option value="http://www.genworth.co.nz/">New Zealand</option>');
	document.write ('<option value="http://www.genworth.no/">Norge | Norway');
	document.write ('<option value="http://www.genworth.pl/">Polska | Poland'); 
	document.write ('<option value="http://www.genworth.pt/">Portugal</option>');
	document.write ('<option value="http://www.genworth.se/">Sweden</option>');
	document.write ('<option value="http://www.genworth.ch/">Schweiz | Switzerland (Deutsch)');
	document.write ('<option value="http://www.genworth.ch/fr/">Suisse | Switzerland (Francais)');
	document.write ('<option value="http://www.genworth.ch/it/">Sqizzera | Switzerland (Italiano)');
	document.write ('<option value="http://www.genworth.fi/">Suomi | Finland (Suomi)</option>');
	document.write ('<option value="http://www.genworth.fi/se/">Suomi | Finland (Svenska)</option>');
	document.write ('<option value="http://www.genworth.co.uk/">United Kingdom</option>');  
	document.write ('<option value="http://www.genworth.com/content/genworth/www_genworth_com/web/us/en/home.html/?cn=US">United States of America</option>');
	document.write('</select></DIV>');
	//*************Header Code Ends Here
	
	// Nav for top right START
	document.write ('<DIV id="mainNav"><TABLE cellpadding="0" cellspacing="0"><TBODY><TR>');
	document.write ('<TD><DIV id="mainNavCorpInfo"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/home.html" target="new">Corporate Information</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavAboutUs"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/about_genworth.html" target="new">About Genworth</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavInvestors"><A href="http://phx.corporate-ir.net/phoenix.zhtml?c=175970&p=irol-irhome" target="new">Investors</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavPressCenter"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/press_center.html" target="new">Press Center</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavEmployment"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/employment.html" target="new">Employment</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavGlobalComtacts"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/global_contacts.html" target="new">Global Contacts</A></DIV></TD>');
	document.write ('</TR></TBODY></TABLE></DIV>');
	// Nav for top right END

	// Header graphic index page
	document.write ('<DIV id=banner><IMG height=164 alt="" src="images/hdrpic_home.jpg" width=775 border=0></DIV>');

	// Secondary Nav main START 
	document.write ('<DIV id=secondaryNav_main>');
	document.write ('<p><a href="index.html">Home</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/about_us.html">Genworth Canada</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/interest_rates.asp">Interest Rates</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/media.html">Media</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/employment.html">Employment - Canada</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/our_community.html">Our Community</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="misc_pages/contact_us.html">Contact Us</a></p><img src="images/sec_nav_main_sep.gif">');
	document.write ('<p>');
	Switch_Language();
	document.write ('</p>');
	document.write ('</div>');
	// Secondary Nav main END
	
	document.write ('<TABLE cellSpacing=0><TBODY><TR><TD id=leftNavBackground vAlign=top><!--total width is 162--><DIV id=leftNavContainer>'); 

	//Homebuyer Privileges index page
	document.write ('<div class="leftCallOut">');
	document.write ('<ul>');
	document.write ('<li class="leftCallOutHeader"><a href="hbp/homebuyer_priv_login.asp"><IMG alt="Homebuyer Privileges" src="images/lnav_call_hm_byrs.gif" border=0></a></li>');
	document.write ('<li><a href="hbp/homebuyer_priv_login.asp">Take advantage of these offers - with your privileges.</a></li>');
	document.write ('<li class="leftCallOutFooter"><a href="hbp/homebuyer_priv_login.asp"><IMG height=10 alt=Go src="images/lnav_call_go.gif" width=23 border=0></a></li>');
	document.write ('</ul>');
	document.write ('</div>');
	document.write ('<br>');

	//Product Selector index page
	document.write ('<DIV class=leftCallOut><UL>');
	document.write ('<LI class=leftCallOutHeader><a href="'+Portal1_Folder+'/which_product_me.html"><IMG alt="Product Selector" src="images/lnav_productselector.gif" border=0></a></LI>');
	document.write ("<LI><a href='"+Portal1_Folder+"/which_product_me.html'>Find out which products are right for you.</a></LI>");
	document.write ('<li class="leftCallOutFooter"><a href="'+Portal1_Folder+'/which_product_me.html"><IMG height=10 alt=Go src="images/lnav_call_go.gif" width=23 border=0 alt="Go"></a></li>');
	document.write ('</ul>');
	document.write ('</div>');
	document.write ('<br>');
	//Useful Links index page
	document.write ('<DIV class=usefulLinks><UL>');
	document.write ('<LI class=usefulLinksHeader><IMG alt="Useful Links" src="images/lnav_call_useful.gif" border=0 hspace="8"></LI>');
	document.write ("<LI><a href='https://www.genworth.ca/excel' target='new'>Genworth Financial's&nbsp;Excel™</a></LI>");
	document.write ("<LI><br><a href='https://www.gemiconnect.com/canada/' target='new'>Genworth Claims</a></LI>");
	//document.write ('<LI><a href="https://www.econsumer.equifax.ca/ca/main?link=GECA&lang=en" target="new">Equifax</a></LI>');
	//document.write ('<LI><A href="http://www.caamp.org" target="new">CAAMP</A></LI>');
	//document.write ('<LI><A href="http://www.mls.ca" target="new">Homes for Sale</A></LI>');
	//document.write ('<LI><A href="http://www.crea.ca" target="new">CREA</A></LI>');
	//document.write ('<LI><A href="http://www.mapquest.ca" target="new">Map Quest</A></LI>');
	document.write ('<LI class=leftCallOutFooter><a href="'+Portal1_Folder+'/resource_ctr_related_links.html"><img src="images/lnav_call_more.gif" width="35" height="10" alt="More" border="0"></a></LI></UL></DIV>');
	document.write ('<br>');

	//Homeownership.ca, MMS Link index page
	document.write ('<center><a href="http://www.homeownership.ca" target = "_new"><img src="images/bnr_homeownership.jpg"  width="132" height="128" alt="Genworth Homeownership Portal",title="Genworth Homeownership Portal", border="0"></a><br><br><a href="http://www.mymarketingsource.ca" target = "_new"><img src="images/mms_banner.jpg"  width="132" height="128" title ="Genworth Marketing Resource Site" alt="Customizable Marketing Resource Centre" border="0"></a><br><br><a href=misc_pages/genworth_newsletters.html><img src="images/bnr_newsletter.jpg" width="132" height="100" alt="Prime Source Newsletter Archive" title="Genworth Prime Source Newsletters" border="0"></a><br><br><a href="../../contest/home.html" target="_blank"><img src="images/bnr_moh_contest_small.jpg" width="132" height="55" alt="Meaning of Home Contest Page" title="Meaning of Home Contest" border="0"></a></center>');
	//housing facts link (if needed) <br><br><a href=misc_pages/housing_reports.html><img src="images/bnr_housing_facts_small.jpg" width="132" height="100" alt="Housing reports archive" title="Genworth Housing Reports" border="0"></a>
	
	
	document.write ('</DIV><!--end leftNavContainer--></TD><TD vAlign=top><!--total width is 613--></DIV>');

} 
// end if
//
//******* Index Page Code Ends Here
//



//*********** NAVIGATION CONTROL ******
//
//   Use as follow: add_menu_item(Level,Title,URL,[optional: header graphic], Useful Links);
//   Include *'s to differentiate duplicate titles. Be sure to use the same title
//   on the page itself.  ex: "Resources", "*Resources" and "**Resources"
//
//Home
add_menu_item("Level1","Home");

//Search
add_menu_item("Level1","Search Page","");
add_menu_item("Level2","Search","../misc_pages/search.asp","../images/hdrpic_house");

//About Us
add_menu_item("Level1","NavAboutUs","");
add_menu_item("Level2","About Us","../misc_pages/about_us.html","../images/hdrpic_house2");
	add_menu_item("Level3","Leadership Team","../misc_pages/personnel.html","../images/hdrpic_house2");

//Contact Us
add_menu_item("Level1","NavContactUs","");
add_menu_item("Level2","Contact Us","../misc_pages/contact_us.html","../images/hdrpic_house3");
	add_menu_item("Level3","Head Office Team","../misc_pages/ge_talent.html");
	add_menu_item("Level3","National Team","../misc_pages/ge_talent_national.html");
	add_menu_item("Level3","Pacific Team","../misc_pages/ge_talent_pacific.html");
	add_menu_item("Level3","Prairies Team","../misc_pages/ge_talent_prairies.html");
	add_menu_item("Level3","Ontario Team","../misc_pages/ge_talent_ontario.html");
	add_menu_item("Level3","GTA Team","../misc_pages/ge_talent_gta.html");
	add_menu_item("Level3","Quebec Team","../misc_pages/ge_talent_quebec.html");
	add_menu_item("Level3","Atlantic Team","../misc_pages/ge_talent_atlantic.html");
	add_menu_item("Level3","National Underwriting Team","../misc_pages/ge_talent_nunderwriting.html");
	add_menu_item("Level3","Quebec Underwriting Team","../misc_pages/ge_talent_qunderwriting.html");

//Interest Rates
add_menu_item("Level1","NavInterestRates","");
add_menu_item("Level2","Interest Rates","../misc_pages/interest_rates.asp","../images/hdrpic_house20");

//Site Map
add_menu_item("Level1","NavSiteMap","");
add_menu_item("Level2","Site Map","../misc_pages/site_map.html","../images/hdrpic_house11");

//Privacy
add_menu_item("Level1","NavPrivacy","");
add_menu_item("Level2","Privacy Policy","../misc_pages/privacy.html","../images/hdrpic_house11");

//Terms
add_menu_item("Level1","NavTerms","");
add_menu_item("Level2","Terms and Conditions","../misc_pages/terms.html","../images/hdrpic_house11");

//Information Safety
add_menu_item("Level1","NavInfoSafety","");
add_menu_item("Level2","Information Safety","../misc_pages/info_safety.html","../images/hdrpic_house11");

//Country List
add_menu_item("Level1","NavCountryList","");
add_menu_item("Level2","Country List","../misc_pages/country_list.html","../images/hdrpic_house11");


//Media
add_menu_item("Level1","NavMedia","");
add_menu_item("Level2","Media","../misc_pages/media.html","../images/hdrpic_house6");	add_menu_item("Level3","News Releases","../misc_pages/news_releases.html","../images/hdrpic_house6");
add_menu_item("Level3","Newsletter Sign Up","../misc_pages/newsletter.asp","../images/hdrpic_house6");
add_menu_item("Level3","Genworth Newsletters","../misc_pages/genworth_newsletters.html","../images/hdrpic_house6");
add_menu_item("Level3","Housing Reports","../misc_pages/housing_reports.html","../images/hdrpic_house6");
add_menu_item("Level3","Podcasts","../misc_pages/podcasts.html","../images/hdrpic_house6");
add_menu_item("Level3","Ready To Use Articles","../misc_pages/ready_use.html","../images/hdrpic_house6");


//Employment
add_menu_item("Level1","NavEmployment","");
	add_menu_item("Level2","Employment - Canada","../misc_pages/employment.html","../images/hdrpic_house7");
	add_menu_item("Level3","Our Values","../misc_pages/our_values.html","../images/hdrpic_house7");
	add_menu_item("Level3","Working at Genworth Financial Canada","../misc_pages/working_at_gw.html","../images/hdrpic_house7");
	add_menu_item("Level3","Applying Online","../misc_pages/applying_online.html","../images/hdrpic_house7");

//Our Community
add_menu_item("Level1","NavOurCommunity","");
add_menu_item("Level2","Our Community","../misc_pages/our_community.html","../images/hdrpic_house8");
add_menu_item("Level3","Government Relations","../misc_pages/government_relations.html");
add_menu_item("Level3","Political Interns - 2007","../misc_pages/political_interns.html");
add_menu_item("Level3","Political Interns - 2006","../misc_pages/political_interns_2006.html");
	
add_menu_item("Level3","Dragon Boat Festival","../misc_pages/dragon_boat.html");
add_menu_item("Level3","Habitat for Humanity","../misc_pages/habitat.html");
add_menu_item("Level3","Habitat for Humanity - Quebec","../misc_pages/habitat_quebec.html");
add_menu_item("Level3","Volunteer of the Year","../misc_pages/volunteer_year.html");




//Portal 1
add_menu_item("Level1",Portal1_Title,"");

add_menu_item("Level2","Benefits of Mortgage Default Insurance","../"+Portal1_Folder+"/benefits_mort_insurance.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Advantages of Genworth Mortgage Default Insurance","../"+Portal1_Folder+"/advantage_of_genworth.html","Useful_Links_Homebuyers");
   add_menu_item("Level3","How Much Does Mortgage Default Insurance Cost?","../"+Portal1_Folder+"/how_much_cost.asp","Useful_Links_Homebuyers");
   add_menu_item("Level3","What Happens if I Can't Make a Payment?","../"+Portal1_Folder+"/what_happens_cant_pay.html");
  
add_menu_item("Level2","Homeowner Assistance Program","../"+Portal1_Folder+"/homeownerassistance.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Program Options","../"+Portal1_Folder+"/program_options.html");
   add_menu_item("Level3","How it Works","../"+Portal1_Folder+"/how_it_works.html");
   add_menu_item("Level3","Case Studies","../"+Portal1_Folder+"/case_studies.html");
  //add_menu_item("Level3","Contact Us*","../"+Portal1_Folder+"/contact_us.html");

add_menu_item("Level2","Buying a Home","../"+Portal1_Folder+"/buying_a_home.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Shopping for a Home","../"+Portal1_Folder+"/shopping_for_home.html");
   add_menu_item("Level3","Buying Process","../"+Portal1_Folder+"/buying_process.html");
   add_menu_item("Level3","Rent or Buy?","../"+Portal1_Folder+"/rent_or_buy.html");
   add_menu_item("Level3","What Can I Afford?","../"+Portal1_Folder+"/what_can_afford.html");
   add_menu_item("Level3","Reasons To Budget","../"+Portal1_Folder+"/budget_reasons.html");
   add_menu_item("Level3","Build a Budget","../"+Portal1_Folder+"/budget_build.html");
   add_menu_item("Level3","Saving","../"+Portal1_Folder+"/saving.html");



//new content start

if(typeof language == "undefined") {
language="english"
}

if (language=="english"){
add_menu_item("Level2","Recent Immigrant's Guide to Homebuying","../"+Portal1_Folder+"/recent_immigrant_guide.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","How to find a Builder or Realtor?","../"+Portal1_Folder+"/how_to_find_builder.html");
   add_menu_item("Level3","Finding the right home","../"+Portal1_Folder+"/finding_right_home.html");
   add_menu_item("Level3","Types of Housing","../"+Portal1_Folder+"/types_of_housing.html");
   add_menu_item("Level3","How Much Can I Afford?","../"+Portal1_Folder+"/how_much_afford.html");
   add_menu_item("Level3","Information on Mortgages","../"+Portal1_Folder+"/information_on_mortgages.html");
   add_menu_item("Level3","Downpayment Requirements","../"+Portal1_Folder+"/downpayment_requirements.html");
   add_menu_item("Level3","Your Credit History","../"+Portal1_Folder+"/credit_history.html");
   add_menu_item("Level3","Tips for New Home Buyers","../"+Portal1_Folder+"/tips_new_home_buyers.html");
   add_menu_item("Level3","Homeownership Assistance Programs","../"+Portal1_Folder+"/assistance_programs.html");
   add_menu_item("Level3","Making an Offer","../"+Portal1_Folder+"/making_an_offer.html");
   add_menu_item("Level3","Costs Associated with Closing a Home","../"+Portal1_Folder+"/closing_costs.html");
   add_menu_item("Level3","Study: The Homebuying Experiences of Canadian Immigrants","../"+Portal1_Folder+"/study_cdn_immigrants.html");
}
 else if (language=="chinese"){
add_menu_item("Level2","新移民购房指南","../"+Portal1_Folder+"/recent_immigrant_guide_ch.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","如果寻找建筑商或房产经纪？","../"+Portal1_Folder+"/how_to_find_builder_ch.html");
   add_menu_item("Level3","寻找中意的房子","../"+Portal1_Folder+"/finding_right_home_ch.html");
   add_menu_item("Level3","房屋类型","../"+Portal1_Folder+"/types_of_housing_ch.html");
   add_menu_item("Level3","我要付多少钱？","../"+Portal1_Folder+"/how_much_afford_ch.html");
   add_menu_item("Level3","关于按揭","../"+Portal1_Folder+"/information_on_mortgages_ch.html");
   add_menu_item("Level3","首付要求","../"+Portal1_Folder+"/downpayment_requirements_ch.html");
   add_menu_item("Level3","您的信用记录","../"+Portal1_Folder+"/credit_history_ch.html");
   add_menu_item("Level3","对新房购买者的建议","../"+Portal1_Folder+"/tips_new_home_buyers_ch.html");
   add_menu_item("Level3","房产帮助项目","../"+Portal1_Folder+"/assistance_programs_ch.html");
   add_menu_item("Level3","下出价单","../"+Portal1_Folder+"/making_an_offer_ch.html");
   add_menu_item("Level3","完成购房交易的相关费用","../"+Portal1_Folder+"/closing_costs_ch.html");
   add_menu_item("Level3","研究报告: 加拿大移民的购房经历","../"+Portal1_Folder+"/study_cdn_immigrants_ch.html");
} 

 else if (language=="korean"){
add_menu_item("Level2","신규이민자를 위한 주택 구매 가이드","../"+Portal1_Folder+"/recent_immigrant_guide_ko.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","건축업자나 부동산중개업자를 어떻게 찾나?","../"+Portal1_Folder+"/how_to_find_builder_ko.html");
   add_menu_item("Level3","알맞은 집 찾기","../"+Portal1_Folder+"/finding_right_home_ko.html");
   add_menu_item("Level3","주택의 종류","../"+Portal1_Folder+"/types_of_housing_ko.html");
   add_menu_item("Level3","내가 감당할 수 있는 비용은 얼마나 될까?","../"+Portal1_Folder+"/how_much_afford_ko.html");
   add_menu_item("Level3","주택융자 관련 정보","../"+Portal1_Folder+"/information_on_mortgages_ko.html");
   add_menu_item("Level3","선납금 조건","../"+Portal1_Folder+"/downpayment_requirements_ko.html");
   add_menu_item("Level3","신용경력","../"+Portal1_Folder+"/credit_history_ko.html");
   add_menu_item("Level3","주택 구매자를 위한 조언","../"+Portal1_Folder+"/tips_new_home_buyers_ko.html");
   add_menu_item("Level3","주택 구매 지원 프로그램","../"+Portal1_Folder+"/assistance_programs_ko.html");
   add_menu_item("Level3","구매 제의","../"+Portal1_Folder+"/making_an_offer_ko.html");
   add_menu_item("Level3","주택 구매 관련 비용","../"+Portal1_Folder+"/closing_costs_ko.html");
   add_menu_item("Level3","캐나다 이민자의 주택 구매 사례 조사","../"+Portal1_Folder+"/study_cdn_immigrants_ko.html");
} 

 else if (language=="farsi"){
add_menu_item("Level2","جدیدترین راهنمای خانه خریدن برای مهاجران تازه وارد به کانادا","../"+Portal1_Folder+"/recent_immigrant_guide_fa.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","چگونه پیمانکاران ساختمانی یا بنگاه های معاملات ملکی را پیدا کنیم؟","../"+Portal1_Folder+"/how_to_find_builder_fa.html");
   add_menu_item("Level3","یافتن خانه ی مورد نظر","../"+Portal1_Folder+"/finding_right_home_fa.html");
   add_menu_item("Level3","انواع مسکن","../"+Portal1_Folder+"/types_of_housing_fa.html");
   add_menu_item("Level3","قدرت خرید من چقدر است؟","../"+Portal1_Folder+"/how_much_afford_fa.html");
   add_menu_item("Level3","اطلاعاتی درباره وام بانکی","../"+Portal1_Folder+"/information_on_mortgages_fa.html");
   add_menu_item("Level3","شرایط پیش پراخت","../"+Portal1_Folder+"/downpayment_requirements_fa.html");
   add_menu_item("Level3","سابقه ی اعتباری شما","../"+Portal1_Folder+"/credit_history_fa.html");
   add_menu_item("Level3","نکاتی برای خریداران جدید","../"+Portal1_Folder+"/tips_new_home_buyers_fa.html");
   add_menu_item("Level3","تسهیل در خرید خانه","../"+Portal1_Folder+"/assistance_programs_fa.html");
   add_menu_item("Level3","پیشنهاد قیمت خرید در قولنامه","../"+Portal1_Folder+"/making_an_offer_fa.html");
   add_menu_item("Level3","هزینه های مربوط به تاریخ نهایی خرید خانه","../"+Portal1_Folder+"/closing_costs_fa.html");
   add_menu_item("Level3","برای خواندن: تجربه ی مهاجران کانادایی در خانه خریدن","../"+Portal1_Folder+"/study_cdn_immigrants_fa.html");
} 

 else if (language=="punjabi"){
add_menu_item("Level2","ਨਵੇਂ ਆਏ ਆਵਾਸੀਆਂ ਲਈ ਘਰ ਖਰੀਦਣ ਦੀ ਗਾਈਡ","../"+Portal1_Folder+"/recent_immigrant_guide_pu.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","ਬਿਲਡਰ ਜਾਂ ਰੀਅਲਟਰ ਕਿਸ ਤਰ੍ਹਾਂ ਲੱਭਣਾ?","../"+Portal1_Folder+"/how_to_find_builder_pu.html");
   add_menu_item("Level3","ਸਹੀ ਘਰ ਲੱਭਣਾ","../"+Portal1_Folder+"/finding_right_home_pu.html");
   add_menu_item("Level3","ਘਰਾਂ ਦੀਆ ਕਿਸਮਾਂ","../"+Portal1_Folder+"/types_of_housing_pu.html");
   add_menu_item("Level3","ਮੈਂ ਕਿੰਨੇ ਪੈਸੇ ਦੇ ਸਕਦਾ ਹਾਂ?","../"+Portal1_Folder+"/how_much_afford_pu.html");
   add_menu_item("Level3","ਮੋਰਟਗੇਜ ਦੀ ਜਾਣਕਾਰੀ","../"+Portal1_Folder+"/information_on_mortgages_pu.html");
   add_menu_item("Level3","ਡਾਊਨ ਪੇਮੈਂਟ ਵਾਸਤੇ ਲੋੜਾਂ","../"+Portal1_Folder+"/downpayment_requirements_pu.html");
   add_menu_item("Level3","ਤੁਹਾਡੇ ਕਰੈਡਿਟ ਦਾ ਲੇਖਾ-ਜੋਖਾ","../"+Portal1_Folder+"/credit_history_pu.html");
   add_menu_item("Level3","ਮਕਾਨ ਖਰੀਦਣ ਵਾਲੇ ਨਵੇਂ ਗਾਹਕਾਂ ਲਈ ਨੁਕਤੇ","../"+Portal1_Folder+"/tips_new_home_buyers_pu.html");
   add_menu_item("Level3","ਮਕਾਨ ਮਲਕੀਅਤ ਸਹਾਇਤਾ ਪ੍ਰੋਗਰਾਮ","../"+Portal1_Folder+"/assistance_programs_pu.html");
   add_menu_item("Level3","ਆਫਰ ਦੇਣਾ","../"+Portal1_Folder+"/making_an_offer_pu.html");
   add_menu_item("Level3","ਮਕਾਨ ਦੀ ਕਲੋਜ਼ਿੰਗ ਦੇ ਖਰਚੇ","../"+Portal1_Folder+"/closing_costs_pu.html");
   add_menu_item("Level3","ਅਧਿਐਨ: ਕੈਨੇਡੀਅਨ ਆਵਾਸੀਆਂ ਦਾ ਮਕਾਨ ਖਰੀਦਣ ਦਾ ਅਨੁਭਵ","../"+Portal1_Folder+"/study_cdn_immigrants_pu.html");
} 

 else if (language=="spanish"){
add_menu_item("Level2","Guía de compra de casa para recién inmigrados","../"+Portal1_Folder+"/recent_immigrant_guide_sp.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Cómo encontrar un constructor o agente inmobiliario?","../"+Portal1_Folder+"/how_to_find_builder_sp.html");
   add_menu_item("Level3","Cómo encontrar la casa adecuada","../"+Portal1_Folder+"/finding_right_home_sp.html");
   add_menu_item("Level3","Tipos de casas","../"+Portal1_Folder+"/types_of_housing_sp.html");
   add_menu_item("Level3","Cuánto puedo pagar?","../"+Portal1_Folder+"/how_much_afford_sp.html");
   add_menu_item("Level3","Información sobre hipotecas","../"+Portal1_Folder+"/information_on_mortgages_sp.html");
   add_menu_item("Level3","Requisitos de enganche","../"+Portal1_Folder+"/downpayment_requirements_sp.html");
   add_menu_item("Level3","Su historial crediticio","../"+Portal1_Folder+"/credit_history_sp.html");
   add_menu_item("Level3","Consejos para compradores de casas nuevas","../"+Portal1_Folder+"/tips_new_home_buyers_sp.html");
   add_menu_item("Level3","Programas de asistencia para propietarios de casas","../"+Portal1_Folder+"/assistance_programs_sp.html");
   add_menu_item("Level3","Haga una oferta","../"+Portal1_Folder+"/making_an_offer_sp.html");
   add_menu_item("Level3","Costos de cierre","../"+Portal1_Folder+"/closing_costs_sp.html");
   add_menu_item("Level3","Estudio: Experiencias de compra de casa de inmigrantes canadienses","../"+Portal1_Folder+"/study_cdn_immigrants_sp.html");
} 

 else {
add_menu_item("Level2","Recent Immigrant's Guide to Homebuying","../"+Portal1_Folder+"/recent_immigrant_guide.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","How to find a Builder or Realtor?","../"+Portal1_Folder+"/how_to_find_builder.html");
   add_menu_item("Level3","Finding the right home","../"+Portal1_Folder+"/finding_right_home.html");
   add_menu_item("Level3","Types of Housing","../"+Portal1_Folder+"/types_of_housing.html");
   add_menu_item("Level3","How Much Can I Afford?","../"+Portal1_Folder+"/how_much_afford.html");
   add_menu_item("Level3","Information on Mortgages","../"+Portal1_Folder+"/information_on_mortgages.html");
   add_menu_item("Level3","Downpayment Requirements","../"+Portal1_Folder+"/downpayment_requirements.html");
   add_menu_item("Level3","Your Credit History","../"+Portal1_Folder+"/credit_history.html");
   add_menu_item("Level3","Tips for New Home Buyers","../"+Portal1_Folder+"/tips_new_home_buyers.html");
   add_menu_item("Level3","Homeownership Assistance Programs","../"+Portal1_Folder+"/assistance_programs.html");
   add_menu_item("Level3","Making an Offer","../"+Portal1_Folder+"/making_an_offer.html");
   add_menu_item("Level3","Costs Associated with Closing a Home","../"+Portal1_Folder+"/closing_costs.html");
   add_menu_item("Level3","Study: The Homebuying Experiences of Canadian Immigrants","../"+Portal1_Folder+"/study_cdn_immigrants.html");
} 
 
//new content end


//***
add_menu_item("Level2","Homebuyer Privileges™","../hbp/homebuyer_priv_login.asp","../images/hdrpic_house18","Useful_Links_Homebuyers,Homebuyer_Privileges_Login");
//**
add_menu_item("Level2","Mortgage Fraud","../"+Portal1_Folder+"/mortgage_fraud.html","../images/hdrpic_house18","Useful_Links_Builders","Useful_Links_Homebuyers");
   add_menu_item("Level3","Types of Fraud","../"+Portal1_Folder+"/h_fraud_types.html");
//   add_menu_item("Level3","Genworth and Fraud","../"+Portal1_Folder+"/h_Genworth_fraud.html");
   add_menu_item("Level3","How to Protect Yourself","../"+Portal1_Folder+"/h_protect_yourself.html");
   add_menu_item("Level3","What to do if You're a Victim","../"+Portal1_Folder+"/h_What_to_do.html");
   add_menu_item("Level3","Helpful web sites and contacts","../"+Portal1_Folder+"/h_web_sites.html");


//Recent Immigrants Guide

//add_menu_item("Level2","Recent Immigrant's Guide to Homebuying","../"+Portal1_Folder+"/recent_immigrant_guide.html","../images/hdrpic_house18","Useful_Links_Homebuyers"); 
//add_menu_item("Level3","How to find a Builder or Realtor?","../"+Portal1_Folder+"/how_to_find_builder.html"); 
//add_menu_item("Level3","Finding the right home","../"+Portal1_Folder+"/finding_right_home.html"); 
//add_menu_item("Level3","Types of Housing","../"+Portal1_Folder+"/types_of_housing.html"); 
//add_menu_item("Level3","How Much Can I Afford?","../"+Portal1_Folder+"/how_much_afford.html"); 
//add_menu_item("Level3","Information on Mortgages","../"+Portal1_Folder+"/information_on_mortgages.html"); 
//add_menu_item("Level3","Downpayment Requirements","../"+Portal1_Folder+"/downpayment_requirements.html"); 
//add_menu_item("Level3","Your Credit History","../"+Portal1_Folder+"/credit_history.html"); 
//add_menu_item("Level3","Tips for New Home Buyers","../"+Portal1_Folder+"/tips_new_home_buyers.html"); 
//add_menu_item("Level3","Homeownership Assistance Programs","../"+Portal1_Folder+"/assistance_programs.html"); 
//add_menu_item("Level3","Making an Offer","../"+Portal1_Folder+"/making_an_offer.html"); 
//add_menu_item("Level3","Costs Associated with Closing a Home","../"+Portal1_Folder+"/closing_costs.html"); 
//add_menu_item("Level3","Study: The Homebuying Experiences of Canadian Immigrants","../"+Portal1_Folder+"/study_cdn_immigrants.html"); 



add_menu_item("Level2","Renovating","../"+Portal1_Folder+"/renovating.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
add_menu_item("Level2","Applying for a Mortgage","../"+Portal1_Folder+"/applying_for_mort.html","../images/hdrpic_house18","Useful_Links_Homebuyers,Useful_Links_Equifax");
   add_menu_item("Level3","Qualifying for a Mortgage","../"+Portal1_Folder+"/qualifying_for_mort.html");
   add_menu_item("Level3","Mortgage Pre-approval","../"+Portal1_Folder+"/mort_pre_approval.html");
   add_menu_item("Level3","Additional Costs","../"+Portal1_Folder+"/additional_costs.html");
   add_menu_item("Level3","Understanding Your Credit Rating","../"+Portal1_Folder+"/understand_your_credit.html");
   add_menu_item("Level3","Using an RRSP for Home Purchase","../"+Portal1_Folder+"/using_RRSP_purchase.html");
add_menu_item("Level2","Calculators","../"+Portal1_Folder+"/calculators.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Mortgage Comparison","javascript:popUp_calc('../calculators/genworth_comparison_expand.html');");
   add_menu_item("Level3","What Can I Afford?","javascript:popUp_calcLarge('../../../homeownership/Genworth_HomeOwnership.html');");
   add_menu_item("Level3","Mortgage Planning?","javascript:popUp_calc('../calculators/mortgage_planning.html');");
   add_menu_item("Level3","Rent or Buy?","javascript:popUp_calc('../calculators/genworth_rentbuy.html');");
   add_menu_item("Level3","Refinancing?","javascript:popUp_calc('../calculators/refinancing_calculator.html');");
add_menu_item("Level2","Resource Centre","../"+Portal1_Folder+"/resource_ctr_homebuyers.html","../images/hdrpic_house18","Useful_Links_Homebuyers");
   add_menu_item("Level3","Glossary","../"+Portal1_Folder+"/glossary.html");
   add_menu_item("Level3","Home Buying Worksheets","../"+Portal1_Folder+"/homebuyers_worksheets.html");
   add_menu_item("Level3","Product Selector","../"+Portal1_Folder+"/which_product_me.html");
//   add_menu_item("Level3","Mortgage Fraud","../"+Portal1_Folder+"/fraud.html");
   add_menu_item("Level3","Related Links","../"+Portal1_Folder+"/resource_ctr_related_links.html");
add_menu_item("Level2","Energy-Efficient Housing Program","../"+Portal1_Folder+"/energy_efficient_housing_program.html","../images/hdrpic_house18","Useful_Links_Energy_Efficient_Housing_Program");
add_menu_item("Level2","FAQs","../"+Portal1_Folder+"/FAQs_homebuyers.asp","../images/hdrpic_house18","Useful_Links_Homebuyers");






// Portal 2 Section
add_menu_item("Level1",Portal2_Title,"");
add_menu_item("Level2","Lenders","../"+Portal2_Folder+"/lenders.html","../images/hdrpic_house16","Useful_Links_Lenders");
   add_menu_item("Level3","Lender Services","../"+Portal2_Folder+"/lender_services.html");
   add_menu_item("Level3","Lender Worksheets","../"+Portal2_Folder+"/lender_worksheet.html");
   add_menu_item("Level3","Lender Updates","../"+Portal2_Folder+"/lender_updates.html","../images/hdrpic_house16");
   add_menu_item("Level3","Premiums","../"+Portal2_Folder+"/premiums.asp","../images/hdrpic_house16");
   //add_menu_item("Level3","*Fraud","../"+Portal2_Folder+"/fraud.html","../images/hdrpic_house16");
   add_menu_item("Level3","*FAQs","../"+Portal2_Folder+"/FAQs_profs.html","../images/hdrpic_house16");
add_menu_item("Level2","Brokers","../"+Portal2_Folder+"/brokers.html","../images/hdrpic_house16","Useful_Links_Brokers");
   //add_menu_item("Level3","*Homebuyer Privileges™","../HBP_Broker/homebuyer_priv_Blogin.html","../images/hdrpic_house7","Useful_Links_Brokers");
   //add_menu_item("Level3","*Homebuyer Privileges™","../HBP_Broker/homebuyer_privileges.asp","../images/hdrpic_house7","Useful_Links_Brokers");
   add_menu_item("Level3","*Homebuyer Privileges™","../HBP_Broker/broker_homebuyer_priv_login.asp","../images/hdrpic_house16","Useful_Links_Brokers");
add_menu_item("Level2","Realtors","../"+Portal2_Folder+"/realtors.html","../images/hdrpic_house16","Useful_Links_Realtors");
add_menu_item("Level2","Builders","../"+Portal2_Folder+"/builders.html","../images/hdrpic_house16","Useful_Links_Builders");
add_menu_item("Level2","*Mortgage Fraud","../"+Portal2_Folder+"/mortgage_fraudIP.html","../images/hdrpic_house16","Useful_Links_Homebuyers");
   add_menu_item("Level3","*Types of Fraud","../"+Portal2_Folder+"/ip_fraud_types.html");
   //add_menu_item("Level3","*Genworth and Fraud","../"+Portal2_Folder+"/ip_fraud_Genworth.html");
   add_menu_item("Level3","Tips to prevent mortgage fraud","../"+Portal2_Folder+"/ip_fraud_tips.html");
   add_menu_item("Level3","Help your client avoid identity thefts","../"+Portal2_Folder+"/ip_fraud_help.html");
   add_menu_item("Level3","Fraud watch web sites and contacts","../"+Portal2_Folder+"/ip_fraud_websites.html");
add_menu_item("Level2","Capital Markets","../"+Portal2_Folder+"/capital_markets.html","../images/hdrpic_house16","Useful_Links_Builders");
add_menu_item("Level2","*Resource Centre","../"+Portal2_Folder+"/resource_centre_profs.html","../images/hdrpic_house16","Useful_Links_industry_professionals");
   add_menu_item("Level3","Appointed Appraisers","../"+Portal2_Folder+"/appraisers.html","Useful_Links_industry_professionals");
   add_menu_item("Level3","Housing Market Information","../"+Portal2_Folder+"/housing_stats.html");
   add_menu_item("Level3","Underwriting Guidelines","../"+Portal2_Folder+"/underwriting_guide.html","Useful_Links_industry_professionals");
   add_menu_item("Level3","Initiating A Workout","../"+Portal2_Folder+"/initiat_default_manage.html"); 
   add_menu_item("Level3","Processing","../"+Portal2_Folder+"/processing.html");
   add_menu_item("Level3","Training for Industry Professionals","../"+Portal2_Folder+"/lender_training.html");
   add_menu_item("Level3","Ready to Use Articles","../"+Portal2_Folder+"/ready_use_articles.html");
   add_menu_item("Level3","Calculators for BlackBerry","../industry_professionals/blackberry_calcs.html","../images/hdrpic_house16");
   
   
   add_menu_item("Level2","Development Centre","../"+Portal2_Folder+"/dev_centre.html","../images/hdrpic_house7","Useful_Links_industry_professionals");
   //OLD add_menu_item("Level3","On-line Seminars and Games","javascript:popUp_dev_centre('../dev_centre/genworth_devcentre_work.html');");
   
   //-add_menu_item("Level3","eLearning Information","../"+Portal2_Folder+"/online_seminars.html","Useful_Links_industry_professionals");
   //-add_menu_item("Level3","AMP Continuing Education Courses","../"+Portal2_Folder+"/AMP_affiliation.html","Useful_Links_industry_professionals");
   //- add_menu_item("Level3","AMP Training Calendar","../"+Portal2_Folder+"/AMP_train_calendar.html","Useful_Links_industry_professionals");
   
	add_menu_item("Level3","eLearning Courses","elearning_information.html"); 
	add_menu_item("Level3","CAAMP AMP Continuing Education Courses","../"+Portal2_Folder+"/AMP_affiliation.html","Useful_Links_industry_professionals"); 
	add_menu_item("Level3","Event Calendar","../"+Portal2_Folder+"/AMP_train_calendar.html","Useful_Links_industry_professionals"); 
	add_menu_item("Level3","IMBA Professional Development Credits","../"+Portal2_Folder+"/IMBA_Credits.html","Useful_Links_industry_professionals"); 
   
   add_menu_item("Level3","Workshops for Mortgage Professionals","../"+Portal2_Folder+"/workshops_for_MP.html","Useful_Links_industry_professionals");
   add_menu_item("Level3","Homebuyer Seminars","../"+Portal2_Folder+"/homebuyer_seminars.html","Useful_Links_industry_professionals");
   //add_menu_item("Level3","On-line Seminar Information","../"+Portal2_Folder+"/online_seminars.html","Useful_Links_industry_professionals");
   add_menu_item("Level3","Realtor Training","../"+Portal2_Folder+"/realtor_training.html","Useful_Links_industry_professionals");
   //add_menu_item("Level3","Genworth Underwriting Certification Program","../"+Portal2_Folder+"/underwriting_courses.html","Useful_Links_industry_professionals");
   //add_menu_item("Level3","Underwriting Training Calendar","../"+Portal2_Folder+"/underwriting_calendar.html","Useful_Links_industry_professionals");
   add_menu_item("Level3","Event Registration","../"+Portal2_Folder+"/course_registration.asp","Useful_Links_industry_professionals");

//Portal 3
add_menu_item("Level1",Portal3_Title,"");
	//OCT. 15 remove the gnw difff.
	//add_menu_item("Level2","The Genworth Difference","../"+Portal3_Folder+"/genworth_difference.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	add_menu_item("Level2","Handy Reference Guide - Fast Facts","../"+Portal3_Folder+"/fastFacts.html","../images/hdrpic_house10","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	add_menu_item("Level2","Premium Rate Table","../"+Portal3_Folder+"/premiumRateTable.html","../images/hdrpic_house10","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	//OCT. 15 remove purchase prog. refi/reno
	//add_menu_item("Level2","Purchase Programs","../"+Portal3_Folder+"/purchase_programs.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	//add_menu_item("Level2","Refinance/Renovation Programs","../"+Portal3_Folder+"/refinance_renovation.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	add_menu_item("Level2","All Genworth Products","../"+Portal3_Folder+"/all_genworth_products.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
	//PRODUCTS LIST STARTS HERE L.T. OCT 15 Changes
	add_menu_item("Level3","Business For Self (Alt. A)","../"+Portal3_Folder+"/alt_A_1stmort.asp");
	add_menu_item("Level3","Cashback Equity Owner-Occupancy","../"+Portal3_Folder+"/cash_equity_prog.asp");
	add_menu_item("Level3","Cash-Out Refinance","../"+Portal3_Folder+"/cash_out_refinance.asp");
	//add_menu_item("Level3","CreditAssist™ Insurance Program","../"+Portal3_Folder+"/credit_assist.html");
	//add_menu_item("Level3","First Mortgage Family Plan","../"+Portal3_Folder+"/1st_mort_family.asp");
	add_menu_item("Level3","Family Plan","../"+Portal3_Folder+"/1st_mort_family.asp");
	add_menu_item("Level3","Homebuyer 95 Mortgage Insurance Program","../"+Portal3_Folder+"/homebuyer_95.asp");
	add_menu_item("Level3","Insured Progress Advance","../"+Portal3_Folder+"/insured_prgrs_advance.asp");
	add_menu_item("Level3","Investment Property Program","../"+Portal3_Folder+"/investment_property.asp");
	add_menu_item("Level3","New To Canada","../"+Portal3_Folder+"/newTO_canada_insrnce.asp"); 
	add_menu_item("Level3","Second Mortgage Insurance Program","../"+Portal3_Folder+"/second_mortgage_prog.asp");
	add_menu_item("Level3","Vacation/Secondary Homes","../"+Portal3_Folder+"/vacation.asp");
   //Remove creditAssist for self-employed l.t. Dec. 04,2006
   //add_menu_item("Level3","CreditAssist™ For Self-Employed Insurance Program","../"+Portal3_Folder+"/credit_assist_self_empl.html");   
   //add_menu_item("Level3","Default Management","../"+Portal3_Folder+"/default_management.html");  
   //OCT. 15 - REMOVE features & benefits
   //add_menu_item("Level3","Features and Benefits","../"+Portal3_Folder+"/features.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
   //OCT. 15 changes - remove hb100/hb97,1+2,3&4,40year,heloc add hb95
   //add_menu_item("Level3","First Mortgage Owner-Occupancy 1 and 2 Units","../"+Portal3_Folder+"/1st_mort_owner.asp");
   //add_menu_item("Level3","First Mortgage Owner-Occupancy 3 and 4 Units","../"+Portal3_Folder+"/1st_mort_owner34.asp");
   //add_menu_item("Level3","40 Year Amortization Program","../"+Portal3_Folder+"/40_year_amort.asp");
   //add_menu_item("Level3","Home Equity Line of Credit","../"+Portal3_Folder+"/home_equity_credit.asp");
   //add_menu_item("Level3","Homebuyer 100 Mortgage Insurance Program","../"+Portal3_Folder+"/homebuyer_100.asp");
   //add_menu_item("Level3","Homebuyer 97 Mortgage Insurance Program","../"+Portal3_Folder+"/homebuyer_97.asp");
   //FEATURES LIST STARTS HERE L.T. OCT 15 Changes
   add_menu_item("Level3","Energy-Efficient Housing Program","../"+Portal1_Folder+"/energy_efficient_housing_program.html","../images/hdrpic_house18","Useful_Links_Energy_Efficient_Housing_Program");
   add_menu_item("Level3","30 and 35 Year Amortizations","../"+Portal3_Folder+"/35_year_amort.asp");
   add_menu_item("Level3","Partial Coverage","../"+Portal3_Folder+"/partial_cover_insurance.asp");
   add_menu_item("Level3","Portability Feature","../"+Portal3_Folder+"/portability_feature.asp");  
   add_menu_item("Level3","Purchase Plus Improvements","../"+Portal3_Folder+"/purchase_plus_improve.asp");
   add_menu_item("Level3","Self-Directed RRSP","../"+Portal3_Folder+"/self_directed_RRSP.asp");
   //add_menu_item("Level3","RRSP Down Payment","../"+Portal3_Folder+"/RRSP_down_insurance.html");
   add_menu_item("Level3","Variable Rate","../"+Portal3_Folder+"/variable_rate_insurance.asp","Useful_Links_Products_Programs,Home_Ownership_Privileges");
add_menu_item("Level2","Lender Services & Technology","../"+Portal3_Folder+"/lender_serv_tech.html","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
   //add_menu_item("Level3","Doc Central","../"+Portal3_Folder+"/doc_central.html");
   add_menu_item("Level3","LRU","../"+Portal3_Folder+"/LRU.html");
add_menu_item("Level2","Portfolio Insurance","../"+Portal3_Folder+"/port_insurance.asp","../images/hdrpic_house11","Useful_Links_Products_Programs,Home_Ownership_Privileges");
   
   
   
if (current_title == "Site Map2") {
	document.title = "Genworth Financial - Site Map";
} else if (current_title == "Home") {
	document.title = "Genworth Financial - Home";
} else {
 
	// Build Drop Down Menus
	//Section,ImageName,ID,Width
	Show_Dropdown_Menu (Portal1_Title,"portal1","1","165");
	Show_Dropdown_Menu (Portal2_Title,"portal2","2","222");
	Show_Dropdown_Menu (Portal3_Title,"portal3","3","206");
	

	
	// select country div 
	document.write ('<DIV id=dropNav4 onmouseover="Javascript: clearTimeout(timerID);"onmouseout="Javascript: hideCountdown();"><IMG height=26 alt="Choose a Country"src="../images/gnav_choose_country_ovr.gif" border=0><BR><DIV class=navContainerCountry><DIV class=navListCountry>'); 

	document.write ('<UL><LI><a href="http://www.genworth.com.au/" target="new">Australia</a>');  
	document.write ('<LI><a href="http://www.genworth.ca/">Canada</a>');  
	document.write ('<LI><a href="http://www.genworth.dk/" target="new">Denmark</a>');
	document.write ('<LI><A href="http://www.genworth.com/ee" target="new">Estonia</A>');  
	document.write ('<LI><a href="http://www.genworth.fi/" target="new">Finland</a>');  
	document.write ('<LI><a href="http://www.genworth.fr/" target="new">France</a>');  
	document.write ('<LI><a href="http://www.genworth.de/" target="new">Germany</a>');
	document.write ('<LI><a href="http://www.genworth.ie/" target="new">Ireland</a>');  
	document.write ('<LI><a href="http://www.genworth.it/" target="new">Italy</a>');  
	document.write ('<LI><a href="http://www.genworth.in/" target="new">India</a>');
	document.write ('<LI><a href="http://www.genworth.jp/" target="new">Japan</a>');  
	document.write ('<LI><a href="http://www.genworth.com.mx/" target="new">Mexico</a>');  
	document.write ('<LI><a href="http://www.genworth.nl/" target="new">Netherlands</a>');  
	document.write ('<LI><a href="http://www.genworth.co.nz/" target="new">New Zealand</a>');  
	document.write ('<LI><a href="http://www.genworth.pt/" target="new">Portugal</a>'); 	
	document.write ('<LI><a href="http://www.genworth.se/" target="new">Sweden</a>');  
	document.write ('<LI><a href="http://www.genworth.ch/" target="new">Switzerland</a>');  
	document.write ('<LI><a href="http://www.genworth.co.uk/" target="new">United Kingdom</a>');  
	document.write ('<LI><a href="http://www.genworth.com" target="new">United States</a>'); 
	
	document.write ('</LI></UL></DIV></DIV></DIV>'); 
	// select country div ends here

	//*************Dropdown Code Ends Here


	//*************Header Code 
    //MADE SEARCH CHANGES HERE
	document.write ('<!--masterDiv--><DIV id=masterDiv>');
	
	document.write ('<DIV id="searchContainer"><FORM name=search action="../misc_pages/search.asp" method=post><INPUT name=crit value="Search" style="width: 100px; height: 15px; font-size: 9px; color: #5a5a5a;"> <INPUT style="BORDER-TOP-WIDTH: 0px; PADDING-LEFT: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; MARGIN-BOTTOM: -4px;" type=image height=20 alt="submit search" width=21 src="../images/search_arrow.gif">');
	document.write ('</FORM></DIV>');
	

	if (current_level == "Level1") {
		document.write('<DIV id="chooseCountryLarge">');
	} else if (current_level=="Level2") {
		document.write ('<DIV id="chooseCountrySmall">')
	} else {
		document.write ('<DIV id="chooseCountrySmall">')
	}
	//document.write ('<select name="chooseCountry" onChange="location = this.options[this.selectedIndex].value;"><option>Choose a Country</option>');
	document.write ('<select name="chooseCountry" id="chooseCountry" onChange="location = this.options[this.selectedIndex].value;"><option>Choose a Country</option>'); 
	document.write ('<option value="http://www.genworth.com.au/">Australia</option>');  
	document.write ('<option value="http://www.genworth.ca/mi/eng/index.html" selected>Canada (English)');
	document.write ('<option value="http://www.genworth.ca/mi/fre/index.html">Canada (French)');
	document.write ('<option value="http://www.genworth.dk/">Danmark | Denmark</option>');
	document.write ('<option value="http://www.genworth.de/">Deutschland | Germany</option>');
	document.write ('<option value="http://www.genworth.com/ee">Eestis | Estonia</option>');
	document.write ('<option value="http://www.genworth.ie/">Éire | Ireland (English)</option>');
	document.write ('<option value=""http://www.genworth.com.es/">España | Spain');  
	document.write ('<option value="http://www.genworth.fr/">France</option>');   
	document.write ('<option value="http://www.genworth.it/">Italia | Italy</option>');
	document.write ('<option value="http://www.genworth.in/">India</option>');
	document.write ('<option value="http://www.genworth.jp/">Japan</option>');
	document.write ('<option value="http://www.genworth.lv/">Latvija | Latvia');
	document.write ('<option value="http://www.genworth.lt/">Lietuva | Lithuania');
	document.write ('<option value="http://www.genworth.hu/">Magyarorzág | Hungary');
	document.write ('<option value="http://www.genworth.com.mx/">México | Mexico</option>');
	document.write ('<option value="http://www.genworth.nl/">Nederland | Netherlands</option>');  
	document.write ('<option value="http://www.genworth.co.nz/">New Zealand</option>');
	document.write ('<option value="http://www.genworth.no/">Norge | Norway');
	document.write ('<option value="http://www.genworth.pl/">Polska | Poland'); 
	document.write ('<option value="http://www.genworth.pt/">Portugal</option>');
	document.write ('<option value="http://www.genworth.se/">Sweden</option>');
	document.write ('<option value="http://www.genworth.ch/">Schweiz | Switzerland (Deutsch)');
	document.write ('<option value="http://www.genworth.ch/fr/">Suisse | Switzerland (Francais)');
	document.write ('<option value="http://www.genworth.ch/it/">Sqizzera | Switzerland (Italiano)');
	document.write ('<option value="http://www.genworth.fi/">Suomi | Finland (Suomi)</option>');
	document.write ('<option value="http://www.genworth.fi/se/">Suomi | Finland (Svenska)</option>');
	document.write ('<option value="http://www.genworth.co.uk/">United Kingdom</option>');  
	document.write ('<option value="http://www.genworth.com/content/genworth/www_genworth_com/web/us/en/home.html/?cn=US">United States of America</option>');
	document.write('</select></DIV>');
	
	// Nav for top right START
	document.write ('<DIV id="mainNav"><TABLE cellpadding="0" cellspacing="0"><TBODY><TR>');
	document.write ('<TD><DIV id="mainNavCorpInfo"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/home.html" target="new">Corporate Information</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavAboutUs"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/about_genworth.html" target="new">About Genworth</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavInvestors"><A href="http://phx.corporate-ir.net/phoenix.zhtml?c=175970&p=irol-irhome" target="new">Investors</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavPressCenter"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/press_center.html" target="new">Press Center</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavEmployment"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/employment.html" target="new">Employment</A>|</DIV></TD>');
	document.write ('<TD><DIV id="mainNavGlobalComtacts"><A href="http://www.genworth.com/content/genworth/www_genworth_com/web/corporate/en/global_contacts.html" target="new">Global Contacts</A></DIV></TD>');
	document.write ('</TR></TBODY></TABLE></DIV>');
	// Nav for top right END
	

	// Header graphic
	document.write ('<DIV id=banner><a href="#"><IMG height="');
	// Adjust image and height based on current level

/* No need to change banner height */
	if (current_level == "Level1") {
		document.write('176');
		bannerHeight = "";
	} else if (current_level=="Level2") {
		document.write ('107')
		bannerHeight = "_2";
	} else {
		//document.write ('72')
		document.write('107');
		bannerHeight = "_2";
	}

	document.write ('" alt="" src="'+current_header_graphic+bannerHeight+'.jpg" width=775 border=0></a></DIV>');
	
	// Secondary Nav main START
	document.write ('<DIV id=secondaryNav_main>');
	document.write ('<p><a href="../index.html">Home</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/about_us.html">Genworth Canada</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/interest_rates.asp">Interest Rates</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/media.html">Media</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/employment.html">Employment - Canada</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/our_community.html">Our Community</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p><a href="../misc_pages/contact_us.html">Contact Us</a></p><img src="../images/sec_nav_main_sep.gif">');
	document.write ('<p>');
	Switch_Language();
	document.write ('</p>');
	document.write ('</div>');
	// Secondary Nav main START
	
	document.write ('<TABLE cellSpacing=0><TBODY><TR><TD id=leftNavBackground vAlign=top><!--total width is 162--><DIV id=leftNavContainer>'); 


if (fileName=="homebuyer_priv_login"||fileName=="homebuyer_priv_register"||fileName=="broker_homebuyer_priv_login") {
Show_Homebuyer_Privileges_Login();
}

// Dynamic Sidebar	
Show_Dynamic_Sidebar();

// Useful links and sidebar info
	if (current_tools.search("Bnr_Broker_Email_Winner")!=-1) {
		Show_Bnr_Broker_Email_Winner();
	}
	
	if (current_tools.search("Home_Ownership_Privileges")!=-1) { 
		Show_Home_Ownership_Privileges();
	}
	if (current_tools.search("Useful_Links_Lenders")!=-1) {
		Show_Useful_Links_Lenders();
	}
	if (current_tools.search("Product_Selector")!=-1) {
		Show_Product_Selector();
	}
	if (current_tools.search("Useful_Links_Realtors")!=-1) {
		Show_Useful_Links_Realtors();
	}
	if (current_tools.search("Useful_Links_Brokers")!=-1) {
		Show_Useful_Links_Brokers();
	}
	if (current_tools.search("Useful_Links_Builders")!=-1) {
		Show_Useful_Links_Builders();
	}
	if (current_tools.search("Useful_Links_Products_Programs")!=-1) {
		Show_Useful_Links_Products_Programs();
	}
	if (current_tools.search("Useful_Links_Homebuyers")!=-1) {
		Show_Useful_Links_Homebuyers();
	}
	if (current_tools.search("Useful_Links_industry_professionals")!=-1) {
		Show_Useful_Links_industry_professionals();
	}
	if (current_tools.search("Useful_Links_Equifax")!=-1) {
		Show_Useful_Links_Equifax();
	}
	if (current_tools.search("Useful_Links_Energy_Efficient_Housing_Program")!=-1) {
		Show_Useful_Links_Energy_Efficient_Housing_Program();
	}

	document.write ('</DIV><!--end leftNavContainer--></TD><TD vAlign=top><!--total width is 613--></DIV>');


	//---------- Section Header 
	document.write ('<DIV id=contentContainer><!--usable width (613 - padding) is 572--><DIV id=primaryNav>');  

	//Homebuyers
	if(current_level1==Portal1_Title) {
		document.write ('<DIV id=primaryNavPortal_1><img onmouseover="toggleMenu(&#39;dropNav1&#39;);"onmouseout=hideCountdown(); src="../images/but_portal1_on.gif" width="159" height="19" alt="" border="0" name="portal1"></DIV>');  
	} else {
		document.write ('<DIV id=primaryNavPortal_1><img onmouseover="toggleMenu(&#39;dropNav1&#39;);"onmouseout=hideCountdown(); src="../images/but_portal1_off.gif" width="159" height="19" alt="" border="0" name="portal1"></DIV>');
	}

	//Portal 2
	if(current_level1==Portal2_Title) {
		document.write ('<DIV id=primaryNavPortal_2><img onmouseover="toggleMenu(&#39;dropNav2&#39;);" onmouseout=hideCountdown(); src="../images/but_portal2_on.gif" width="220" height="19" alt="" border="0" name="portal2"></DIV>');  
	} else {
		document.write ('<DIV id=primaryNavPortal_2><img onmouseover="toggleMenu(&#39;dropNav2&#39;);" onmouseout=hideCountdown(); src="../images/but_portal2_off.gif" width="220" height="19" alt="" border="0" name="portal2"></DIV>');  
	}

	//Products and Solutions
	if(current_level1==Portal3_Title) {
		document.write ('<DIV id=primaryNavPortal_3><img onmouseover="toggleMenu(&#39;dropNav3&#39;);"onmouseout=hideCountdown(); src="../images/but_portal3_on.gif" width="193" height="19" alt="" border="0" name="portal3"></DIV></DIV>');  
	} else {
		document.write ('<DIV id=primaryNavPortal_3><img onmouseover="toggleMenu(&#39;dropNav3&#39;);"onmouseout=hideCountdown(); src="../images/but_portal3_off.gif" width="193" height="19" alt="" border="0" name="portal3"></DIV></DIV>');  
	}

	// We need to add further line breaks if the user is  viewing with Mac IE
	if (isW3C && isMac && navigator.appName != "Netscape") { // 'Safari' is returned as 'Netscape' when calling appNames
		document.write("<br clear=all><br clear=all><br clear=all><br clear=all>");
		//alert(navigator.appName);
	}


	document.write ('<div><table cellpadding="0" cellspacing="0" border="0" width="570"><tr><td>');  

	Show_Breadcrumbs ();

	if(current_title=="Applying Online" ||current_title=="Homebuyer Privileges™" || current_title=="*Homebuyer Privileges™" || current_title=="Search" || current_title=="Newsletter Sign Up"){
		document.write ('</td></tr></table></div>'); 
	} else {
		document.write ('</td><td valign="top" align="right" class="print"><a href="javascript:LaunchPrinter();">Print Page</a></td></tr></table></div>'); 
	}

	Show_Page_Title();
	
}



