//------------------------------------------------------------------------------
// function to allow quick jump to site contents section
//------------------------------------------------------------------------------
//alert();
function QuickLink() {
	var LinkItem = document.QuickLinkForm.QuickLinkItem;
	if (LinkItem.options[LinkItem.selectedIndex].value == "_none_") return;
	if (LinkItem.options[LinkItem.selectedIndex].value == "_OLB_") {
		document.location.href = "https://olb2.nationet.com/signon/index.asp";
		return;
	}
	if (LinkItem.options[LinkItem.selectedIndex].value == "_SITEMAP_") {
		document.location.href = "/sitemap.asp?URL="+document.location.pathname;
		return;
	}
	if (LinkItem.options[LinkItem.selectedIndex].value == "http://www.ucbhomeloans.co.uk") {
	    window.open("http://www.ucbhomeloans.co.uk", "_top");
		return;
		}
	if (LinkItem.options[LinkItem.selectedIndex].value == "http://www.nationwideinternational.com") {
	    window.open("http://www.nationwideinternational.com", "_top");
		return;
		}
	else	{
		var ddlSource="bw";
		if (blnHomePage) ddlSource="hp";
	    window.open(LinkItem.options[LinkItem.selectedIndex].value + "?s=" + ddlSource, "_top");
		}
}

//------------------------------------------------------------------------------
// function to write out the DDL item itself
//------------------------------------------------------------------------------

function writeSiteContents()	{
document.write('<form name="QuickLinkForm" method="POST" target="_top">');
document.write('<div class="hiddenLabel"><label for="QuickLinkItem">Site Contents, please select an area of our site and then click the Go button</label></div>');
document.write('<select name="QuickLinkItem" id="QuickLinkItem" size="1" class="siteContentDDL" title="Site contents - please select a section then click on Go">');
document.write('<OPTION value="_none_">Site Contents</OPTION>');
document.write('<OPTION value="_none_">--------------------</OPTION>');
document.write('<OPTION VALUE="/about_nationwide/default.asp">About Nationwide</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/AGM.htm">AGM</OPTION>');
document.write('<OPTION VALUE="/banking/">Banking</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Bonds.htm">Bonds</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/BranchFinder.htm">Branch / ATM Finder</OPTION>');
document.write('<OPTION VALUE="/insurance/car_insurance/">Car Insurance</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Careers.htm">Careers</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/CashMatters.htm">CashMatters</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/CatsEyesForKids.htm">Cats Eyes For Kids</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/CityInformation.htm">City Information</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/CommercialLending.htm">Commercial Lending</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/communityRelations.htm">Community Relations</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/ContactUs.htm">Contact Us</OPTION>');
document.write('<OPTION VALUE="/creditcard/">Credit Card</OPTION>');
document.write('<OPTION VALUE="/banking/current-account/">Current Account</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/football.htm">Football</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Graduates.htm">Graduates</OPTION>');
document.write('<OPTION VALUE="/insurance/home_insurance/">Home Insurance</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/HousePrices.htm">House Prices</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Ill-Health-Insurance.htm">Ill Health Insurance</OPTION>');
document.write('<OPTION VALUE="/_codeSample/InstantAccessSavings.htm">Instant Access Savings</OPTION>');
document.write('<OPTION VALUE="/insurance/">Insurance</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/InterestRates.htm">Interest Rates</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/IntermediaryServices.htm">Intermediary Services</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/InternetBanking.htm">Internet Banking</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/InternetSavings.htm">Internet Savings</OPTION>');
document.write('<OPTION VALUE="/investments/">Investments</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/JobOpportunities.htm">Job Opportunities</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/LawyersInformation.htm">Lawyers Information</OPTION>');
document.write('<OPTION VALUE="/insurance/life_assurance/">Life Assurance</OPTION>');
document.write('<OPTION VALUE="/loans/">Loans</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/MediaCentre.htm">Media Centre</OPTION>');
document.write('<OPTION VALUE="/banking/internet-banking/ms_money/">Microsoft Money</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/MonthlyIncomeInvest.htm">Monthly Income Invest.</OPTION>');
document.write('<OPTION VALUE="/insurance/mortgage_insurance/">Mortgage Insurance</OPTION>');
document.write('<OPTION VALUE="/mortgage/">Mortgages</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/NoticeAccounts.htm">Notice Accounts</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/OffshoreAccounts.htm">Offshore Accounts</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Overdrafts.htm">Overdrafts</OPTION>');
document.write('<OPTION VALUE="/pensions/">Pensions</OPTION>');
document.write('<OPTION VALUE="/insurance/personal_acc/">Personal Accident</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/PersonalLoans.htm">Personal Loans</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Recruitment.htm">Recruitment</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/RegularSavings.htm">Regular Savings</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Results-and-Accounts.htm">Results & Accounts</OPTION>');
document.write('<OPTION VALUE="/savingsinvestments/">Savings and Investments</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Savings-Finder.htm">Savings Finder</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/Security.htm">Security</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/ServiceAvailability.htm">Service Availability</OPTION>');
document.write('<OPTION VALUE="/savingsinvestments/sharedealing/">Sharedealing</OPTION>');
document.write('<OPTION VALUE="/Communications_Centre/Products-and-Services/Sitemap.htm">Site map</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/SustainabilityReport.htm">Sustainability Report</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/TaxFreeSavings.htm">Tax Free Savings</OPTION>');
document.write('<OPTION VALUE="/insurance/travel_insurance/">Travel Insurance</OPTION>');
document.write('<OPTION VALUE="/banking/travel_money/">Travel Money</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/UCB-Home-Loans.htm">UCB Home Loans</OPTION>');
document.write('<OPTION VALUE="/banking/under19/">Under 19s</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/WebsiteFeedback.htm">Website Feedback</OPTION>');
document.write('<OPTION VALUE="/_SiteContents/YoungSavers.htm">Young Savers</OPTION>');
document.write('</select><img src="/_common_images/pixel.gif" height="10" width="10" border="0" alt=" "><a href="#"  onClick="QuickLink();return false;" onKeyPress="QuickLink();return false;"><img src="/_common_images/go-button-more-information.gif" width="22" height="22" border="0" alt="Submit" align="absmiddle"></a>');
}