
var g_Domain='http://msn.ancestry.com';
var g_Cache='http://c.mfcreative.com/';
var g_CachePartner='http://c.mfcreative.com/s/0/p/5541/';


var d=document;
function w(s){d.write(s);}
w('<\script language="JavaScript" src="http://c.mfcreative.com//js/utility.js"><\/script>');



w('<\style type="text/css">');


w('body {margin: 0px ! important; width: 100% ! important; background: #D64300;}');
w('.g_body {text-align: left ! important; background: #ffffff;}');
w('.g_bodytable {margin: 0 ! important; background: #ffffff;}}');

w('<\/style>');

var m_Domain = 'http://msn.ancestry.com';
var m_Cache = 'http://c.mfcreative.com/';
var m_CachePartner = 'http://c.mfcreative.com/s/0/p/5541/';
var m_PageWidth	= '779';
w('<\script language="JavaScript" src="' + m_CachePartner + '/js/brand.js"><\/script>');

var dynad='noad';

var m_Domain = ( (typeof g_Domain) != 'undefined' ) ? g_Domain : '';
var m_Cache = ( (typeof g_Cache) != 'undefined' ) ? g_Cache : 'http://c.mfcreative.com/';
var m_CachePartner = ( (typeof g_CachePartner) != 'undefined' ) ? g_CachePartner : 'http://c.mfcreative.com/s/0/p/5541/';


var CPAGEWIDTH = "760";
var m_PageWidth = ( (typeof g_PageWidth) != 'undefined' ) ? g_PageWidth : CPAGEWIDTH;


var C_HOME =		"home";
var C_LIBHOME =		"libhome";
var C_MYANCESTRY =	"myancestry";
var C_SEARCH =		"search";
var C_ADVSEARCH =	"advsearch";
var C_TREES =		"trees";
var C_BOARDS =		"boards";
var C_LEARN =		"learn";
var C_SHOPS =		"shops";
var C_CHARTFORM =	"chartform";

function Tab(name, URL, tooltip, id)
{
	this.name = name;
	this.URL = URL;
	this.tooltip = tooltip;
	this.id = id;
}


var tabs = new Array();
tabs[C_HOME] =		new Tab("Home",		m_Domain + "/",						"Ancestry Home Page",			C_HOME);
tabs[C_LIBHOME] =	new Tab("Home",		m_Domain + "/",						"Ancestry Library Edition Home Page",	C_HOME);
tabs[C_MYANCESTRY] =new Tab("My Ancestry", m_Domain + "/myancestry/",		"My Ancestry - Store personal information",	C_MYANCESTRY);
tabs[C_SEARCH] =	new Tab("Search",	m_Domain + "/search/",				"Genealogy Search - Find Birth Records, Death Records, Marriage Records and US Census Records.",		C_SEARCH);
tabs[C_ADVSEARCH] =	new Tab("Search",m_Domain + "/search/",				"Genealogy Search - Find Birth Records, Death Records, Marriage Records and US Census Records.",	C_SEARCH);
tabs[C_TREES] =		new Tab("Family Trees",	m_Domain + "/trees/",				"Family Trees - Build your family tree using our pedigree files.",		C_TREES);
tabs[C_CHARTFORM] =	new Tab("Charts and Forms",m_Domain + "/charts/ancchart.aspx",	"Record the ancestors from whom you directly descend.",	C_CHARTFORM);
tabs[C_BOARDS] =	new Tab("Community",	m_Domain + "/community/",			"Genealogy Message Boards - Find others who are researching your ancestors.",		C_BOARDS);
tabs[C_LEARN] =		new Tab("Learning Center",	m_Domain + "/learn/",				"Resources to help you research your family history, including books, articles, and genealogy archives.",		C_LEARN);
tabs[C_SHOPS] =		new Tab("Store",	m_Domain + "/rx/shops.asp?lfl=m",	"Discover, preserve, and celebrate your heritage with unique products.",		C_SHOPS);


if (typeof CTabs == 'undefined' )
	var CTabs = new Array(tabs[C_HOME], tabs[C_MYANCESTRY], tabs[C_SEARCH], tabs[C_TREES], tabs[C_BOARDS], tabs[C_LEARN], tabs[C_SHOPS]);

if (typeof CNoShopsTabs == 'undefined' )
	var CNoShopsTabs = new Array(tabs[C_HOME], tabs[C_MYANCESTRY], tabs[C_SEARCH], tabs[C_TREES], tabs[C_BOARDS], tabs[C_LEARN]);

function Link(text, URL)
{
	this.text = text;
	this.URL = URL;
}

if (typeof CFooterLinks == 'undefined' )
{
	var contactURL = "http://ancestryhelp.custhelp.com/cgi-bin/ancestryhelp.cfg/php/enduser/ask.php";
	var p = m_CachePartner.substring(m_CachePartner.lastIndexOf("/")+1);
	if (p == "0")
		contactURL = "http://ancestry.custhelp.com/cgi-bin/ancestry.cfg/php/enduser/ask.php";
	else if (p == "4300")
		contactURL = "http://ancestryaol.custhelp.com/cgi-bin/ancestryaol.cfg/php/enduser/ask.php";
		
	var CFooterLinks = new Array(new Link("Corporate Info",		"http://www.myfamilyinc.com"),
								 new Link("Affiliate Program",	m_Domain + "/home/partner/main.htm"),
								 new Link("PRIVACY STATEMENT",	m_Domain + "/legal/privacy.aspx"),
								 new Link("Contact Us",			contactURL),
								 new Link("Terms and Conditions",	m_Domain + "/legal/terms.aspx"));
}


var g_hdPageWidth = m_PageWidth;	
var g_hdStrActiveTab = C_HOME;		
var g_hdStrDomain;					
var g_hdATabs;						
var g_hdACrumbs;					
var g_hdStrHelpLink;				
var g_hdStrCampaign;				
var g_hdShowFlags = CSHOW_ALL;		

var g_ftPageWidth;		
var g_ftALinks;			
var g_ftLegalLink;		
var g_ftStrCampaign;	
var g_ftShowFlags;		
var g_ftNeedTrack=true;	

var g_bEnclosingTableUsed = false;			
var CSHOW_NONE					= 0x00000000;
var CSHOW_ALL 					= 0xFFFFFFFF;
var CSHOW_MASTHEAD				= 0x00000001;
var CSHOW_LARGE_LOGO			= 0x00000002;
var CSHOW_SMALL_LOGO			= 0x00000004;
var CSHOW_LOGIN					= 0x00000008;
var CSHOW_LINE					= 0x00000010;
var CSHOW_TABS					= 0x00000020;
var CSHOW_SUBNAV				= 0x00000040;
var CSHOW_BREADCRUMB			= 0x00000080;
var CSHOW_HELP					= 0x00000100;
var CSHOW_BANNERS				= 0x00000200;
var CSHOW_TOP_WHITESPACE		= 0x00000400;
var CSHOW_BOTTOM_WHITESPACE		= 0x00000800;
var CSHOW_UPGRADE_PROMPT		= 0x00001000;
var CENCLOSING_TABLE			= 0x00002000;
var CSHOW_FOOTER_HR				= 0x00004000;
var CSHOW_COPYRIGHT				= 0x00008000;
var CSHOW_CENTERED				= 0x00010000;
var CSHOW_MYACCOUNT				= 0x00020000;
var CSHOW_WELCOMEUSER			= 0x00040000;
var CSHOW_BRAND_ONLY			= 0x00080000;

var CSTANDARD_HEADER			= CSHOW_ALL;
var CSTANDARD_SMALL_HEADER		= CSHOW_ALL ^ CSHOW_LARGE_LOGO;
var CSHOW_ALL_BUT_BANNERS		= CSHOW_ALL ^ CSHOW_BANNERS ^ CSHOW_TOP_WHITESPACE;
var CSHOW_CUSTOMERINFO			= CSHOW_LOGIN | CSHOW_HELP | CSHOW_MYACCOUNT | CSHOW_WELCOMEUSER;


w('<\link rel="stylesheet" href="' + m_Cache + '/s/0/css/global.css" type="text/css">');
w('<\script language="JavaScript" src="' + m_Cache + '/js/global.js"><\/script>');
w('<\script language="JavaScript" src="' + m_Cache + '/js/security_shared.js"><\/script>');
w('<\script language="JavaScript" src="' + m_Cache + '/js/AB.js"><\/script>');

function doTab(aTab, bActive, strDomain)
{
	w('<a href="'+ prependDomain(strDomain, aTab.URL) + '" id="' + aTab.id.toLowerCase() + '" ' + (bActive ? 'class="g_activeNav"' : '') + ' title="' + aTab.tooltip + '">' + aTab.name + '</a>');
}

function WriteTabs(activeTab, strDomain, aTabs)
{
	w('<div class="g_nav">');

	var bActive = false;
	
	if (aTabs != null)
	{
		for (i=0; i < aTabs.length; i++)
		{
			bActive = (aTabs[i].id == activeTab);
			if (bActive)
				currentNav = aTabs[i].id;
			
			doTab(aTabs[i], bActive, strDomain);
		}
	}

	w('</div>');
}

function WriteSubNav()
{
	
	var bShowCrumb = (((g_hdShowFlags & CSHOW_BREADCRUMB) != 0) && (g_hdACrumbs != null));

	
	if (bShowCrumb  || g_hdStrActiveTab == C_BOARDS)
	{
		if (g_hdStrActiveTab == C_BOARDS && !IsInstitutionalAccount()) 
		{
			w('<div class="g_tools"><a href="' + g_hdStrDomain + '/community/member/profile.aspx">My&nbsp;Public&nbsp;Profile</a>');
			w('<a href="' + g_hdStrDomain + '/myancestry/myaccount/communityprefs.aspx" style="padding-left: 4px;">My&nbsp;Preferences</a>');
			if (IsLoggedIn())
			{
				w('<a href="' + g_hdStrDomain + '/myancestry/myfavorites.aspx?types=1&nav=boards" style="padding-left: 4px;">My&nbsp;Favorites</a>');
				w('<a href="http://boards.msn.ancestry.com/editwatches!default.jspa" style="padding-left: 4px;">My&nbsp;Alerts</a>');
			}
			w('</div>');
		}
		
		w('<div class="g_crumbs">');

		if (bShowCrumb)
			WriteBreadcrumb(g_hdACrumbs);
		
		w('</div>');
		
		
	}
}

function WriteBreadcrumb(aCrumbs)
{
	
	if (aCrumbs != null)
	{
		w('You are here: ');
		
		for (i = 0; i < aCrumbs.length; i ++)
		{
			if (i < (aCrumbs.length - 1))
			{
				w('<a href="' + aCrumbs[i].split("::")[1] + '">' + aCrumbs[i].split("::")[0] + '</a> &gt; ');
			}
			else
			{
				w('<b>' + aCrumbs[i].split("::")[0] + '</b>');
			}
		}
	}
}

function WriteMasthead(showFlags, pageWidth, activeTab, strDomain)
{
	
	
	w('<div class="g_masthead">');		
	
	if ((g_hdShowFlags & CSHOW_CUSTOMERINFO) != 0)
		WriteCustomerInfo (strDomain);
		
	
	w( '<table cellspacing-top=2 cellpadding=0><tr><td width=236px>' );
	w('	<img alt="Search Genealogy Records" src="' + m_CachePartner + '/i/logo.gif" alt="" border="0" style="height:38px;width:175px; margin-top:0px;"/>');
	w(' </td></tr>');
	w(' </table>' );
	w('</div>');
}

function WriteCustomerInfo(strDomain)
{
 	var name = getLoginName();
	var p = m_CachePartner.substring(m_CachePartner.lastIndexOf("/")+1);
 	if ( null == name || "" == name ) 
 	{ 
 		name = "Welcome"; 
 	}
 	else 
 	{ 
 		name = 'Welcome, <strong>' + name +'</strong> '; 
 	}
				
 	if ( !IsInstitutionalAccount() && ((g_hdShowFlags & CSHOW_LOGIN) != 0))
 	{
 		if ( IsLoggedIn() )
 		{
 			w('<div class="g_customerinfo">');
 			w(name);
			w('<a href="' + strDomain + '/security/loginredir.aspx?logout=true&home=true">Log Out</a>');
			w('<a href="' + strDomain + '/myancestry/myaccount/default.aspx">Upgrade</a>');

			if ((g_hdShowFlags & CSHOW_MYACCOUNT) != 0)
			{
				w('<a href="' + strDomain + '/myancestry/myaccount/default.aspx">My Account</a>');
			}
			w('<a href="' + strDomain + '/rx/help.asp">Help</a>');
			w('</div>');
 		}
 		else
 		{
 			w('<div class="g_customerinfo" style="margin-top: 42px;">');
			w('	<a href="' + strDomain + '/subscribe/subscribeplanstx.asp">Subscribe</a>');
			w('	<a href="' + strDomain + '/rx/help.asp">Help</a>');	
			w('</div>');
 			w('<div class="g_headLogin">');
			w('<table border="0" cellpadding="0" cellspacing="0">');
			w('<form action="https://secure.ancestry.com/security/passwordlogin.aspx" method="post">');
			w('	<tr>');
			w('		<td colspan="3" style="padding-bottom: 4px;"><strong>Member Login</strong></td>');
			w('	</tr>');
			w('	<tr>');
			w('		<td><input name="username" type="text" class="data" /></td>');
			w('		<td><input name="password" type="password" class="data" /></td>');
			w('		<td><input type="submit" value="Login" class="g_btnSmall"/></td>');
			w('	</tr>');
			w('	<tr style="padding-top: 3px;">');
			w('		<td>Username</td>');
			w('		<td>Password  (<a href="' + strDomain + '/default.aspx?rlin=1">Forgot?</a>)</td>');
			w('		<td>&nbsp;</td>');
			w('	</tr>');
			w('<input type="hidden" name="ti" value="' + p + '">');
			w('<input type="hidden" name="kurl" value="' + d.URL + '">');
			w('<input type="hidden" name="curl" value="' + strDomain + '">');
			w('<input type="hidden" name="furl" value="">');
			w('</form>');
			w('</table>');
			w('</div>');
 			//w('<img align="middle" src="' + m_Cache + '/i/home/arrow16.gif" alt="" border="0" style="height:16px;width:16px;" />');
 			//w('<a href="' + strDomain + '/security/loginredir.aspx">Already a member? Login</a>')

			//if ((g_hdShowFlags & CSHOW_UPGRADE_PROMPT) != 0)
			//	w('<a href="' + strDomain + '/subscribe/subscribeplanstx.asp">Subscribe</a>');
 		}
 	}
}

function testShowHeaderAd(showFlags)
{
	

	if ((showFlags & CSHOW_BANNERS) == 0)
		return false;

	

	return (ShowAdOnPage() && !IsInstitutionalAccount());
}

function prependDomain (strDomain, strLink)
{
	strResult = strLink;
	strCheckURL = strLink.substring(0,6).toLowerCase();

	if (strCheckURL != "http:/"
			&& strCheckURL != "https:"
			&& strCheckURL != "javasc")
		strResult = strDomain + strLink;

	
	return strResult;
}


function writeHeaderMessage()
{
	var cachePath = ( 'undefined' == (typeof m_Cache) ) ? "http://c.ancestry.com/i/warning.gif" : m_Cache + "/i/warning.gif";
	var changeMailPath = ( 'undefined' == (typeof m_Domain) ) ? "/myancestry/myaccount/changeemail.aspx" : m_Domain + "/myancestry/myaccount/changeemail.aspx";	
	
	w('<div class="g_error" style="margin-bottom: 5px;"> ');
	w("	There appears to be a problem with your email address. ");
	w("	<a href='" + changeMailPath + "'>Click here to verify your email address</a>. ");
	w('</div> ');
}


function writeHeader(pageWidth,				
						activeTab,			
						strDomain,			
						aTabs,				
						aCrumbs,			
						strHelpLink,		
						strCampaign,		
						showFlags)			
{
	var p = m_CachePartner.substring(m_CachePartner.lastIndexOf("/")+1);

	if ( "5542" == p || "5561" == p) 
	{
		aTabs = new Array(tabs[C_LIBHOME], tabs[C_ADVSEARCH], tabs[C_BOARDS], tabs[C_CHARTFORM]);
		showFlags &= (CSHOW_ALL ^ CSHOW_LOGIN);
	}
	else if (IsInstitutionalAccount())
	{
		if ( "5538" == p )
			aTabs = new Array(tabs[C_HOME], tabs[C_SEARCH], tabs[C_BOARDS]);
		else
			aTabs = new Array(tabs[C_HOME], tabs[C_SEARCH], tabs[C_BOARDS], tabs[C_LEARN]);
	}
	else if ( "5538" == p || "5543" == p || "5544" == p || "5545" == p || "5546" == p || "5547" == p)
		aTabs = new Array(tabs[C_HOME], tabs[C_MYANCESTRY], tabs[C_SEARCH], tabs[C_TREES], tabs[C_BOARDS]);	
	else
		aTabs = new Array(tabs[C_HOME], tabs[C_MYANCESTRY], tabs[C_SEARCH], tabs[C_TREES], tabs[C_BOARDS], tabs[C_LEARN], tabs[C_SHOPS]);

	
	g_hdPageWidth = pageWidth;	
	g_hdStrActiveTab = activeTab;
	g_hdStrDomain = strDomain;
	g_hdACrumbs = aCrumbs;
	g_hdATabs = aTabs;
	g_hdStrHelpLink = strHelpLink;
	g_hdStrCampaign = strCampaign;
	g_hdShowFlags = showFlags;

	if ( CSHOW_NONE != showFlags )
	{
		
			writeBrandHeader(strDomain);
		
		var m_bUsesJSFile = ( (typeof g_bUsesJSFile) != 'undefined' ) ? g_bUsesJSFile : false;
		if (m_bUsesJSFile == true)
		{
			
			d.writeln('<\script LANGUAGE="JavaScript1.1" SRC="' + m_CachePartner + '/js/writeheader.js"><\/script>');
		}
		else
		{
			writeCommonHeader();
		}
	}
	
	
	if ( 'undefined' != (typeof touchCcr) ) touchCcr('/security/concurrencyupdate.aspx','ancestry');
}

function writeBoardsHeader(showPrintHeader)
{
	document.write('<\link rel="stylesheet" href="http://c.mfcreative.com//css/lw/anc/community.css" type="text/css">');
	if (!showPrintHeader)
		writeHeader('100%',C_BOARDS,g_Domain,CTabs,'',g_Domain + '/rx/help.asp?lfl=m','',CSTANDARD_HEADER ^ (CSHOW_BREADCRUMB|CSHOW_BANNERS|CSHOW_TOP_WHITESPACE|CSHOW_UPGRADE_PROMPT));
}


function writeCommonHeader()
{
	if ((g_hdShowFlags & CENCLOSING_TABLE) != 0)
	{
		w('<style type="text/css">');
		if(g_hdPageWidth != 760) w('body {width:' + g_hdPageWidth + ' !important; max-width:' + g_hdPageWidth + ' !important; padding: 0 !important;}');
		w('.g_body{background-color:#ffffff; width: ' + g_hdPageWidth + '} ');
		w('</style>');
		w('<div class="g_body"><table class="g_bodytable" width="' + g_hdPageWidth + '"><tr><td>');
		g_bEnclosingTableUsed = true;
	}
	
	if ( hasBouncedEmail() ) 
		writeHeaderMessage();
			

	
	WriteMasthead(g_hdShowFlags, g_hdPageWidth, g_hdStrActiveTab, g_hdStrDomain);

	
	if ((g_hdShowFlags & CSHOW_TABS) != 0)
		WriteTabs(g_hdStrActiveTab, g_hdStrDomain, g_hdATabs);

	
	if ((g_hdShowFlags & CSHOW_SUBNAV) != 0)
		WriteSubNav();

	
	if (testShowHeaderAd(g_hdShowFlags))
	{
		DisplayAdBanner("Top", 468, 60, g_hdStrCampaign);
	}

	

	d.close();
}

function writeFooter(pageWidth,				
					aLinks,					
					legalLink,				
					strCampaign,			
					showFlags)				
{
	var p = m_CachePartner.substring(m_CachePartner.lastIndexOf("/")+1);

	
	if (writeFooter.arguments.length == 5)
	{
		g_ftPageWidth = writeFooter.arguments[0];	
		g_ftALinks = writeFooter.arguments[1];	
		g_ftLegalLink = writeFooter.arguments[2];	
		g_ftStrCampaign = writeFooter.arguments[3];
		g_ftShowFlags = writeFooter.arguments[4];
	}
	else
	{
		g_ftPageWidth = writeFooter.arguments[0];	
		g_ftALinks = writeFooter.arguments[1];	
		g_ftLegalLink = m_Domain + "/legal/terms.aspx";	
		g_ftStrCampaign = writeFooter.arguments[2];
		g_ftShowFlags = writeFooter.arguments[3];
	}

	

	if ((CSHOW_NONE != g_ftShowFlags))
	{  
		if ( "5542" != p && "5561" != p )
		{
			
			var iRights	= getUserRights();
			if (!IsLoggedIn() || (IsLoggedIn() && (getSubscriptionAll() & iRights) == 0) )
			{	
				var l_Domain = ( (typeof g_Domain) != 'undefined' ) ? g_Domain : '';	
				w('<div class="g_footerGenealogy">');
				w('	<b style="font-size: 11px;">Genealogy Links:&nbsp;</b>');
				w('	<a href="' + l_Domain + '/rd/landing.aspx?html=/family_trees/family_tree.aspx">Family Trees</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + l_Domain + '/rd/landing.aspx?html=/census_records/census_records.aspx">Census Records</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + l_Domain + '/rd/landing.aspx?html=/immigration/immigration_records.aspx">Immigration Records</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + l_Domain + '/rd/landing.aspx?html=/genealogy/genealogy_records.aspx">Genealogy Records</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + l_Domain + '/rd/landing.aspx?html=/uk_genealogy/uk_genealogy.aspx">U.K. Records</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + l_Domain + '/rd/landing.aspx?html=/newspapers/historical_newspapers.aspx">Historical Newspapers</a>');
				w('</div>');
			}
			
			w('<div class="g_footer">');
			w('	<div style="float: left;">');
			if (g_ftALinks != null)
			{
				var i = 0;
				var bHash = false;

				while (i < g_ftALinks.length)
				{
					if (g_ftALinks[i].text != "Terms and Conditions")
					{
						if (bHash)
							w(' | ');
						w('<a href="' + prependDomain(m_Domain, g_ftALinks[i].URL) + '">' + g_ftALinks[i].text + '</a>');
						bHash = true;
					}
					i++;
				}
			}
			w('	</div>');
			w('	<div style="float: right;">');
			if ((g_ftShowFlags & CSHOW_COPYRIGHT) != 0)
			{
				w('Copyright &copy; 1998-2009, MyFamily.com, Inc.');
				w(' &#150; <a href="' + g_ftLegalLink + '"><b>Terms and Conditions</b></a>');
			}
			w('	</div>');
			w('</div>');
		
			writeVerticalSpace(10);

			
			if (testShowFooterAd(g_ftShowFlags))
			{
				DisplayAdBanner("Bottom", 468, 60, "");
				writeVerticalSpace(10);
			}
		}
		else
		{
			w('<div class="g_footer"><div style="float: left;">');
			w('<a href="http://www.proquest.com"><img src="' + m_CachePartner + '/i/proquest.gif" width="175" height="27"/></a></div>');
			w('<div style="float: right;">');
			w('<img src="' + m_CachePartner + '/i/powered.gif" width="175" height="27"/></div></div></div>');
		}
		
	}
	if ((g_hdShowFlags & CENCLOSING_TABLE) != 0 && g_bEnclosingTableUsed == true)
		w('</td></tr></table></div>'); 
	writeOmniture(); 

	if ((CSHOW_NONE != g_ftShowFlags))
	{ 
		
		writeBrandFooter(m_Domain); 
	}

	d.close();
}


function writeOmniture()
{
		if (typeof(g_ftNeedTrack)=='undefined' || g_ftNeedTrack)
		{
			s_channel = "5541";	
			s_account = "ancestrymsn";


//				s_visitorSampling=10;		
//				s_visitorSamplingGroup=1;	

			w("<\script type='text/javascript' src='http://c.mfcreative.com//js/omniture_base.js'><\/script>");
		}
	g_ftNeedTrack=false;	
}

function writeBoardsFooter()
{
	writeFooter("100%",CFooterLinks,"mmmmoards",CSTANDARD_HEADER ^ (CSHOW_MASTHEAD|CSHOW_BANNERS|CSHOW_MYACCOUNT|CSHOW_UPGRADE_PROMPT|CSHOW_BREADCRUMB|CSHOW_TOP_WHITESPACE));
}

function writeVerticalSpace(vSpace)
{
	w('<table border="0" cellspacing="0" cellpadding="0"><tr><td height="' + vSpace + '"><spacer type="block" height="1" width="1"></td></tr></table>');
}

function testShowFooterAd(showFlags)
{
	return (((showFlags & CSHOW_BANNERS) != 0)
				&& ShowAdOnPage()
				&& !IsInstitutionalAccount());
}

