// This javascript file is for brand specific variables and routines.
document.write('<\script language="JavaScript" src="' + m_Cache + '/js/utility.js"><\/script>');

// This variable is used for adbanners. Each brand should have a unique sitepage.
var g_sitepage = "www.ancestry.netscape.com/";

// If using .js file to display the brand header then set this variable and create a writeheader.js file
var g_bUsesJSFile = true;

function writeBrandHeader(strDomain)
{
	var showNone = ( (typeof g_hdShowNone) != 'undefined' ) ? g_hdShowNone : false;
	
	document.write('<center>');

	if (showNone == false && GetPageScheme() == 'http')	
	{
		document.write('<style type="text/css">');
		document.write('body{margin: 0px auto ! important;} ');
		document.write('</style>');
		document.write('<'+'SCRIPT LANGUAGE="JavaScript1.1" SRC="http://hat.netscape.com/header/ns/myfamily/nsheader.js"><'+'/SCRIPT>');
	}
}

function writeBrandFooter(strDomain)
{
	var showNone = ( (typeof g_ftShowNone) != 'undefined' ) ? g_ftShowNone : false;

	if (showNone == false && GetPageScheme() == 'http')
	{
		document.write('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="' + m_PageWidth + '" align="center">');
		document.write('<TR>');
		document.write('	<TD BGCOLOR="#CCCCCC" WIDTH="1"><IMG src="' + m_Cache + '/i/pixel.gif" ALT="" WIDTH="1" HEIGHT="24" BORDER="0"></TD>');
		document.write('	<TD BGCOLOR="#EEEEEE" WIDTH="' + (m_PageWidth-2) + '" align="center">');
		document.write('		<FONT FACE="sans-serif, Arial, Helvetica" SIZE="-1">&nbsp;&nbsp;');
		document.write('		<A href="http://home.netscape.com/misc/nav_redir/help.html">Help</A>');
		document.write('		&nbsp;&nbsp;&#45;&nbsp;&nbsp;');
		document.write('		<A HREF="http://home.netscape.com/misc/nav_redir/site_map.html">Site Help Map</A>');
		document.write('		&nbsp;&nbsp;&#45;&nbsp;&nbsp;');
		document.write('		<A HREF="http://home.netscape.com/misc/nav_redir/ad.html">Advertise with Us</A>');
		document.write('		&nbsp;&nbsp;&#45;&nbsp;&nbsp;');
		document.write('		<a href="http://home.netscape.com/netcenter/new.html">What\'s New</a>');
		document.write('		&nbsp;&nbsp;&#45;&nbsp;&nbsp;');
		document.write('		<a href="http://home.netscape.com/netcenter/cool.html">What\'s Cool</a> ');
		document.write('		</FONT>');
		document.write('	</TD>');
		document.write('	<TD BGCOLOR="#CCCCCC" WIDTH="1"><IMG src="' + m_Cache + '/i/pixel.gif" ALT="" WIDTH="1" HEIGHT="24" BORDER="0"></TD>');
		document.write('</TR>');
		document.write('<TR>');
		document.write('	<TD BGCOLOR="#CCCCCC" COLSPAN="3"><IMG src="' + m_Cache + '/i/pixel.gif" ALT="" WIDTH="1" HEIGHT="1" BORDER="0"></TD>');
		document.write('</TR>');
		document.write('</TABLE>');
	//<!-- /BOTTOM LINKS -->
		document.write('<TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" WIDTH="' + m_PageWidth + '" align="center">');
		document.write('	<TR>');
		document.write('		<TD align="center"><FONT FACE="sans-serif, Arial, Helvetica" SIZE="-2">');
		document.write('			Copyright&nbsp;&copy;&nbsp;');
		document.write(new Date().getFullYear());
		document.write('			 Netscape.&nbsp;&nbsp;All rights reserved.&nbsp;&nbsp;<a href="http://home.netscape.com/terms/index.html">Terms of Use</a>&nbsp;|&nbsp;<a href="http://home.netscape.com/privacy/index.html">Privacy Policy</a></FONT>');
		document.write('		</TD>');
		document.write('	</TR>');
		document.write('</TABLE>');
	}
	document.write('</center>');

	// This code adds Omniture include files at the end of the page footer, for convenience on some stacks.
	// Other stacks include the files via a .NET module or ISAPI filter and should not be tagged here.
	// List the domains that should NOT be tagged here:
	var m_sExcludeDomains = 'ancestry.com::www.ancestry.com::search.ancestry.com::content.ancestry.com::shops.ancestry.com::'+
		'landing.ancestry.com::trees.ancestry.com::';

	var sSimpleHostname = window.document.location.hostname.replace("dev.",".").replace("stage.",".").replace("netscape.","").replace("ancestryaol","ancestry");
	if (m_sExcludeDomains.indexOf(sSimpleHostname) == -1)
	{
		document.write('<\script language="JavaScript" src="' + m_CachePartner + '/js/omniture_tracking.js"><\/script>');
		document.write('<\script language="JavaScript" src="' + m_Cache + '/js/omniture_base.js"><\/script>');
	}
}