//
// Freepages header/footer scripts
//

document.write('<link rel="stylesheet" href="http://images.rootsweb.com/css/fp.css" type="text/css">');

function clearBoxFP(box) {
	if(box.value==box.defaultValue) {
		box.value="";
	}
}

function writeHeaderFP() {
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" ');
	document.write('background="http://images.rootsweb.com/fp/rootsweb_header_bg.jpg">');
	document.write('<tr>');
	document.write('<td><table width="100" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="17%"><a href="http://www.rootsweb.com/"><img src="http://images.rootsweb.com/fp/rootsweb_logo.jpg" width="155" height="38" border=0></a></td>');
	document.write('<td><table width="100" border="0" align="left" cellpadding="0" cellspacing="2">');
	document.write('<form method="get" action="http://www.ancestry.com/s20736/t7115/rd.ashx">');
	document.write('<tr>');
	document.write('<td width="22%"><font face="Georgia, Times New Roman, Times, serif"><strong><font color="#3C4E73">&nbsp;Family&nbsp;Finder:</font></strong></font>&nbsp;</td>');
	document.write('<td width="22%"> <input name="fn" type="text" value="Ancestor\'s First Name" size="20" onFocus="clearBoxFP(this);"></td>');
	document.write('<td width="13%"><input name="ln" type="text" value="Ancestor\'s Last Name" size="20"  onFocus="clearBoxFP(this);"></td>');
	document.write('<td width="43%"><input type=submit name=subh value="Search" class="searchBtnFP"></td>');
	document.write('</tr>');
	document.write('</form>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('<div id=\"userContentFP\" style="padding: 8px;">');
}

function writeFooterFP() {
	document.write('</div>');
	document.write('<table width="100%" height="38" border="0" cellpadding="0" cellspacing="0" ');
	document.write('background="http://images.rootsweb.com/fp/rootsweb_footer_bg.jpg">');
	document.write('<tr>');
	document.write('<td><table width="100" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="17%"><a href="http://www.ancestry.com/learn/"><img src="http://images.rootsweb.com/fp/rootsweb_ancestry_logo.jpg" width="127" height="38" border=0></a>');
	document.write('</td>');
	document.write('<td><table width="718" border="0" align="left" cellpadding="0" cellspacing="2">');
	document.write('<tr>');
	document.write('<td width="714"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=census">');
	document.write('Census Records</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=birth">');
	document.write('Vital Records</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=trees">');
	document.write('Family Trees &amp; Communities</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=immigration">');
	document.write('Immigration Records</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=military">');
	document.write('Military Records<br></a>');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=directories">');
	document.write('Directories &amp; Member Lists</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=histories">');
	document.write('Family &amp; Local Histories</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=newspaper">');
	document.write('Newspapers &amp; Periodicals</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=court">');
	document.write('Court, Land &amp; Probate</a> | ');
	document.write('<a href="http://www.ancestry.com/learn/contentcenters/contentCenter.aspx?page=reference">');
	document.write('Finding Aids</a></font></td>');
	document.write('</tr>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('</table></td>');
	document.write('</tr>');
	document.write('</table>');
}
