// This javascript file is for brand specific variables and routines.

// This variable is used for adbanners. Each brand should have a unique sitepage.
var g_sitepage = "www.ancestry.com/";

// Include other funtions and variables that are brand specific

function writeBrandHeader(strDomain)
{
	document.write('<center>');
}


function writeBrandFooter(strDomain)
{
	document.write('</center>');

	// Omniture tracking has been moved to header.js/header.ascx. This test prevents double tracking during transition:
	if (typeof(g_ftNeedTrack)=='undefined' || g_ftNeedTrack)
	{
		// 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.",".");
		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>');
		}
		g_ftNeedTrack=false;	// Don't repeat again
	}
}