function lang()
{
	var langCode = "";
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
      	  	langCode = navigator.userLanguage;
	else
        	langCode = navigator.language;
	return langCode.toLowerCase(); 
}

function us_directory(firstname,surname)
{
	firstname = firstname || "First name";
	surname = surname || "Last name";

document.write('<table border="0" cellpadding="0" cellspacing="0" width="728" height="90">' +
'<tr>' +
' <td rowspan="3" width="390" height="90"><img src="http://www.exploreos.com/creative/html_forms/728_90img/main.gif" width="390" height="90" border="0" /></td>' +
' <td colspan="6" width="338" height="19"><img src="http://www.exploreos.com/creative/html_forms/728_90img/tab_top.gif" width="338" height="19" border="0" /></td>' +
' </tr>' +
' <tr style="font-size: 12px;" bgcolor="#f4f4f4">' +
'   <td width="20" height="55"><img src="http://www.exploreos.com/creative/html_forms/728_90img/tab_left.gif" width="20" height="55" border="0" /></td><form action="http://www.tkqlhce.com/interactive" method="get">' +
'   <INPUT type="hidden" name="layout" value="people">' +
'   <td height="55" align="left" valign="middle" width="79"> ' +
'   First Name:<br />' +
'   <input name="first_name" type="text" size="8" style="width: 75px; height: 24px; font-size: 12px;" value="' + firstname + '"/>' +
'   </td>' +
'   <td align="left" valign="middle" width="79">Last Name:<br />' +
'   <input name="last_name" type="text" size="8" style="width: 75px; height: 24px; font-size: 12px;" value="' + surname + '"/> </td>' +
'   <td align="left" valign="middle" width="55">State:<br />' +
'<select name="state" style="width: 50px; height: 24px; font-size: 12px;">' +
'	<option value="AL">AL</option>' +
'	<option value="AK">AK</option>' +
'	<option value="AZ">AZ</option>' +
'	<option value="AR">AR</option>' +
'	<option value="CA">CA</option>' +
'	<option value="CO">CO</option>' +
'	<option value="CT">CT</option>' +
'	<option value="DE">DE</option>' +
'	<option value="DC">DC</option>' +
'	<option value="FL">FL</option>' +
'	<option value="GA">GA</option>' +
'	<option value="HI">HI</option>' +
'	<option value="ID">ID</option>' +
'	<option value="IL">IL</option>' +
'	<option value="IN">IN</option>' +
'	<option value="IA">IA</option>' +
'	<option value="KS">KS</option>' +
'	<option value="KY">KY</option>' +
'	<option value="LA">LA</option>' +
'	<option value="ME">ME</option>' +
'	<option value="MD">MD</option>' +
'	<option value="MA">MA</option>' +
'	<option value="MI">MI</option>' +
'	<option value="MN">MN</option>' +
'	<option value="MS">MS</option>' +
'	<option value="MO">MO</option>' +
'	<option value="MT">MT</option>' +
'	<option value="NE">NE</option>' +
'	<option value="NV">NV</option>' +
'	<option value="NH">NH</option>' +
'	<option value="NJ">NJ</option>' +
'	<option value="NM">NM</option>' +
'	<option value="NY">NY</option>' +
'	<option value="NC">NC</option>' +
'	<option value="ND">ND</option>' +
'	<option value="OH">OH</option>' +
'	<option value="OK">OK</option>' +
'	<option value="OR">OR</option>' +
'	<option value="PA">PA</option>' +
'	<option value="RI">RI</option>' +
'	<option value="SC">SC</option>' +
'	<option value="SD">SD</option>' +
'	<option value="TN">TN</option>' +
'	<option value="TX">TX</option>' +
'	<option value="UT">UT</option>' +
'	<option value="VT">VT</option>' +
'	<option value="VA">VA</option>' +
'	<option value="WA">WA</option>' +
'	<option value="WV">WV</option>' +
'	<option value="WI">WI</option>' +
'	<option value="WY">WY</option>' +
'</select></td>' +
'   <td align="center" valign="middle" width="83"> <br />' +
' <INPUT type="image" src="http://www.exploreos.com/creative/html_forms/728_90img/search.gif" width="81" height="24"></td>' +
'   <td width="22" height="55">' +
'<input type="hidden" name="aid" value="10895256"/>' +
'<input type="hidden" name="pid" value="3317594"/>' +
'<input type="hidden" name="url" value="http://www.exploreos.com/loading.php"/>' +
'</form><img src="http://www.exploreos.com/creative/html_forms/728_90img/tab_right.gif" width="22" height="55" border="0" /></td>' +
'   </tr>' +
' <tr>' +
'   <td colspan="6" width="338" height="16"><img src="http://www.exploreos.com/creative/html_forms/728_90img/tab_bot.gif" width="338" height="16" border="0" /></td>' +
'   </tr>' +
'   </table><img src="http://www.awltovhc.com/image-3317594-10895256" width="1" height="1" border="0"/>');
}
function uk_directory(firstname,surname)
{
	firstname = firstname || "First name";
	surname = surname || "Last name";

document.write('<div style="font-family:Arial, Helvetica, sans-serif; font-size:10px;width:468px; height:60px; overflow:hidden; margin:0; padding:0;">' +
'<a href="http://clkgb.tradedoubler.com/click?p=195225&amp;a=1993526&amp;g=18992002&amp;url=http://www.192.com" target="_blank">' +
'<img src="http://www.192.com/assets/images/affiliates/relatives_back2.jpg" width="224" height="60"' +
'alt="Find missing relatives with 192.com" title="Find missing relatives with 192.com" style="float:left; border:0;"></a>' +
'<div style="height:60px; margin:0 0 0 224px; padding:0; position:relative;">' +
'<img src="http://www.192.com/assets/images/affiliates/bg_white.jpg" width="244" height="60" alt="Find missing relatives on 192.com"' +
' title="Find missing relatives on 192.com" style="position:absolute; top:0; right:0; border:0;">' +
'<a href="http://clkgb.tradedoubler.com/click?p=195225&amp;a=1993526&amp;g=18992002&amp;url=http://www.192.com" target="_blank">' +
'<img src="http://www.192.com/assets/images/affiliates/192_sm_web.gif" width="114" height="15" alt="192.com" title="192.com"' +
'style="position:absolute; bottom:5px; right:5px; border:0;"></a>' +
'<div style="position:absolute; top:4; right:1px;">' +
'<form action="http://clkgb.tradedoubler.com/click?p=195225&amp;a=1993526&amp;g=18992002&amp;url=http://www.192.com/all/search/"' +
'method="POST" style="margin:0; padding:0;" target="_blank">' +
'<div style="padding:0; margin:0;">' +
'<p style="float:left; padding:0; margin:2px 3px 0 0; font-weight:bold;">Name<br>' +
'<input type="text" style="font-size:10px; font-weight:normal; width:65px; height:14px; background-color:#FFF; border:1px' +
'solid #000; margin:0; padding:0 2px 0 2px;" name="td_looking_for" value="' + firstname + ' ' + surname + '">' +
'</p>' +
'<p style="float:left; padding:0; margin:2px 3px 0 0; font-weight:bold;">Location<br>' +
'<input type="text" style="font-size:10px; font-weight:normal; width:65px; height:14px; background-color:#FFF; border:1px' +
'solid #000; margin:0; padding:0 2px 0 2px;" name="td_location" value="">' +
'</p>' +
'<p style="float:left; padding:0; margin:11px 3px 0 0; font-weight:bold;">' +
'<input type="image" src="http://www.192.com/assets/images/affiliates/searchnow_white.gif" alt="Search Now!" title="Search Now!"' +
'style="margin:0; padding:0;">' +
'</p>' +
'</div>' +
'</form>' +
'</div>' +
'</div>' +
'</div>');

}

function youtube()
{
	if (lang() == 'en-gb')
	{
		document.write('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/cXQsr8QwqLo&amp;hl=en_GB&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/cXQsr8QwqLo&amp;hl=en_GB&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>');
	}
	else
	{
		document.write('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/tFtVn8q6SR8&amp;hl=en_GB&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/tFtVn8q6SR8&amp;hl=en_GB&amp;fs=1&amp;color1=0x234900&amp;color2=0x4e9e00" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>');
	}
}

function christmas_banner()
{
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10836520" target="_top"><img src="http://www.lduhtrp.net/image-3317594-10836520" width="728" height="90" alt="Trace your family\'s war heros!" border="0"/></a>');
	}
	else
	{
		document.write('<a href="http://www.anrdoezrs.net/click-3317594-10847211"><img src="http://www.awltovhc.com/image-3317594-10847211" width="728" height="90" alt="Gift Memberships" border="0"/></a>');
	}
}

function skyscraper_general()
{
	var date = new Date("June 20, 2011");
	var now = new Date();
	var diff = date.getTime() - now.getTime();

	if (lang() == 'en-gb')
	{
		if (diff > 0)
			document.write('<a href="http://www.dpbolvw.net/click-3317594-10599151" target="_top"><img src="http://www.awltovhc.com/image-3317594-10599151" width="160" height="600" alt="Start Looking" border="0"/></a>');
		else
			document.write('<a href="http://www.tkqlhce.com/click-3317594-10666480" target="_top"><img src="http://www.lduhtrp.net/image-3317594-10666480" width="160" height="600" alt="160x600: I am your Nan" border="0"/></a>');
	}
	else
	{
		if (diff > 0)
			document.write('<a href="http://www.dpbolvw.net/click-3317594-10599151" target="_top"><img src="http://www.awltovhc.com/image-3317594-10599151" width="160" height="600" alt="Start Looking" border="0"/></a>');
		else
			document.write('<a href="http://www.dpbolvw.net/click-3317594-10596728" target="_top"><img src="http://www.awltovhc.com/image-3317594-10596728" width="160" height="600" alt="My Canvas" border="0"/></a>');
	}
}

function facebook()
{
	if (lang() == 'en-gb')
	{
	//	document.write('<a href="http://www.phoenix-trading.co.uk/web/emmelineskinner/area/shop-online/category/christmas-cards/"><img src="../images/snowman.png" border="0" alt="Get your Christmas Cards here!" /></a>'); 
		document.write('<a href="http://apps.facebook.com/ftamyname/"><img src="../images/facebooklink.png" border="0" alt="Add our application on facebook" /></a>'); 
	}
	else
	{
		document.write('<a href="http://apps.facebook.com/ftamyname/"><img src="../images/facebooklink.png" border="0" alt="Add our application on facebook" /></a>'); 
	}
}

function ebay()
{
	if (lang() == 'en-gb')
	{
		document.write('<script src="http://adn.ebay.com/files/js/min/ebay_activeContent-min.js"></script><script src="http://adn.ebay.com/cb?programId=15&campId=5336637937&toolId=10026&keyword=Genealogy&sortBy=2&width=728&height=90&font=1&textColor=333366&linkColor=333333&arrowColor=8BBC01&color1=ccdab5&color2=FFFFFF"></script>');
	}
	else
	{
		document.write('<script src="http://adn.ebay.com/files/js/min/ebay_activeContent-min.js"></script><script src="http://adn.ebay.com/cb?programId=1&campId=5336637938&toolId=10026&keyword=Genealogy&sortBy=2&width=728&height=90&font=1&textColor=333366&linkColor=333333&arrowColor=8BBC01&color1=ccdab5&color2=FFFFFF"></script>');
	}
}


function start_tree()
{
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//trees.ancestry.co.uk/Default.aspx%3Freq%3Dtree" target="_blank">Start your FREE Family Tree at Ancestry.co.uk</a><img src="http://www.ftjcfx.com/image-3317594-10400327" width="1" height="1" border="0"/>');
	}
	else
	{
		document.write('<a href="http://www.kqzyfj.com/click-3317594-10491253" target="_blank">Start your FREE Family Tree at Ancestry.com</a><img src="http://www.awltovhc.com/image-3317594-10491253" width="1" height="1" border="0"/>');
	}
}

function start_searching()
{
	document.write('Start searching now with an ');
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.anrdoezrs.net/click-3317594-10400327" target="_blank">Ancestry.co.uk FREE trial</a><img src="http://www.ftjcfx.com/image-3317594-10400327" width="1" height="1" border="0"/>');
	}
	else
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10467614" target="_blank">Ancestry.com FREE trial</a><img src="http://www.tqlkg.com/image-3317594-10467614" width="1" height="1" border="0"/>');
	}
}

function top_line(surname)
{
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.anrdoezrs.net/click-3317594-10400327" target="_blank"><marquee bgcolor="#304d8d" width="100%" direction="left" loop="infinite" scrollamount="2"><strong><font color="#ffffff">CLICK HERE to start researching your ' + surname + ' family tree with an Ancestry.co.uk FREE trial!</font></strong></marquee></a>'); 
	}
	else
	{
		document.write('Start searching now with an <a href="http://www.dpbolvw.net/click-3317594-10467614" target="_blank"><marquee bgcolor="#304d8d" width="100%" direction="left" loop="infinite" scrollamount="2"><strong><font color="#ffffff">CLICK HERE to start researching your ' + surname + ' family tree with an Ancestry.com FREE trial!</font></strong></marquee></a>'); 
	}
}

function free_trial()
{
	document.write('Start searching now with an ');
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.anrdoezrs.net/click-3317594-10400327" target="_blank">Ancestry.co.uk FREE trial</a><img src="http://www.ftjcfx.com/image-3317594-10400327" width="1" height="1" border="0"/>');
	}
	else
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10467614" target="_blank">Ancestry.com FREE trial</a><img src="http://www.tqlkg.com/image-3317594-10467614" width="1" height="1" border="0"/>');
	}
}

function origins(surname)
{
	if (lang() == 'en-gb')
	{
		document.write('<p>View <a href="http://www.dpbolvw.net/click-3317594-10470501?url=http%3A%2F%2Fwww.ancestry.co.uk/facts/' + surname + '-places-origin.ashx" target="_blank">countries of origin</a> for people with the ' + surname + ' surname.</p>');
	}
	else
	{
		document.write('<p>View <a href="http://www.anrdoezrs.net/click-3317594-10470501?sid=originscolumn&url=http%3A%2F%2Flanding.ancestry.com/learn/clues/fact.aspx?html=freetrial&fid=5&ln=' + surname + '&submit=go" target="_blank">countries of origin</a> for people with the ' + surname + ' surname.</p>');
	}
}

function smallbutton()
{
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10391801" target="_top"><img src="http://www.ftjcfx.com/image-3317594-10391801" width="120" height="60" alt="The World Number 1 Genealogy Site" border="0" class="floatLeft"/></a>');
	}
	else
	{
		document.write('<a href="http://www.jdoqocy.com/click-3317594-10467608" target="_top"><img src="http://www.familytreeassistant.com/images/ancestrytrial.png" width="120" height="60" alt="The World Number 1 Genealogy Site" border="0" class="floatLeft"/></a>');
	}
}

function store()
{
	if (lang() == 'en-gb')
	{
		document.write('<iframe src="http://astore.amazon.co.uk/famitreeassi-21" width="100%" height="4000" frameborder="0" scrolling="no"></iframe>');
	}
	else
	{
		document.write('<iframe src="http://astore.amazon.com/famitreeassi-20" width="100%" height="4000" frameborder="0" scrolling="no"></iframe>');
	}
}


function ftm()
{
	if (lang() == 'en-gb')
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-deluxe-edition">Family Tree Maker 2011 Deluxe Edition</a> contains all you need to get started including 3 months membership of Ancestry (essentials package).  ');
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-world-edition">Family Tree Maker 2011 World Edition</a> is the cheapest way to get access to Ancestry\'s worldwide membership.  ');
	}
	else
	{
		document.write('<a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//store.ancestry.com/ProductDetail.aspx?p=P-4825&PT=Software">Family Tree Maker 2011</a> is the World\'s most popular Family Tree Software - a good choice for beginner and expert alike.  ');
	}
}

function wdytya_book()
{
	if (lang() == 'en-gb')
	{
		document.write('<iframe src="http://rcm-uk.amazon.co.uk/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&nou=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=famitreeassi-21&o=2&p=8&l=as1&m=amazon&f=ifr&md=0M5A6TN3AXP2JHJBWT02&asins=0007261993" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
	}
	else
	{
		document.write('<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&nou=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=famitreeassi-20&o=1&p=8&l=as1&m=amazon&f=ifr&md=10FE9736YVPPT7A0FBG2&asins=0670021636" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
	}
}

function book_text()
{
	if (lang() == 'en-gb')
	{
		document.write('A good general book to start with is the <a href="http://www.amazon.co.uk/gp/product/0007261993?ie=UTF8&tag=famitreeassi-21&linkCode=as2&camp=1634&creative=19450&creativeASIN=0007261993">Who do you think you are? Encyclopedia of Genealogy</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=famitreeassi-21&l=as2&o=2&a=0007261993" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  ');
		document.write('For a book dedicated to researching your tree online try <a href="http://www.amazon.co.uk/gp/product/1905615396?ie=UTF8&tag=famitreeassi-21&linkCode=as2&camp=1634&creative=19450&creativeASIN=1905615396">The Genealogist\'s Internet</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=famitreeassi-21&l=as2&o=2&a=1905615396" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  ');
	}
	else
	{
		document.write('A good general book to start with is the <a href="http://www.amazon.com/gp/product/0670021636?ie=UTF8&tag=famitreeassi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0670021636">Who Do You Think You Are?: The Essential Guide to Tracing Your Family History</a><img src="http://www.assoc-amazon.com/e/ir?t=famitreeassi-20&l=as2&o=1&a=0670021636" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  ');
		document.write('For a book dedicated to researching your tree online try <a href="http://www.amazon.com/gp/product/1598694979?ie=UTF8&tag=famitreeassi-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1598694979">The Everything Guide to Online Genealogy: A complete resource to using the Web to trace your family history</a><img src="http://www.assoc-amazon.com/e/ir?t=famitreeassi-20&l=as2&o=1&a=1598694979" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.  ');
	}
}

function internet_book()
{
	if (lang() == 'en-gb')
	{
		document.write('<iframe src="http://rcm-uk.amazon.co.uk/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&nou=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=famitreeassi-21&o=2&p=8&l=as1&m=amazon&f=ifr&md=0M5A6TN3AXP2JHJBWT02&asins=1905615396" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
	}
	else
	{
		document.write('<iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&nou=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=famitreeassi-20&o=1&p=8&l=as1&m=amazon&f=ifr&md=10FE9736YVPPT7A0FBG2&asins=1598694979" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>');
	}
}

function skyscrapers()
{
	document.write('<a href="http://www.anrdoezrs.net/click-3317594-9713701" target="_top"><img src="http://www.tqlkg.com/image-3317594-9713701" width="160" height="600" alt="Find your ancestors at OneGreatFamily.com" border="0"/></a>');
//	if (lang() == 'en-gb')
//	{
//      	 	if (Math.floor(Math.random()*3) == 0)
//                	document.write('<a href="http://www.jdoqocy.com/click-3317594-10493534" target="_blank"><img src="http://www.tqlkg.com/image-3317594-10493534" width="160" height="600" alt="Discover your ancestors at Genes Reunited.co.uk" border="0"/></a>');
//        	else
//                	document.write('<a href="http://www.anrdoezrs.net/click-3317594-10666480" target="_blank"><img src="http://www.awltovhc.com/image-3317594-10666480" width="160" height="600" alt="London Metropolitan Archives" border="0"/></a>');
//	}
//	else
//	{
//        	if (Math.floor(Math.random()*2) == 0)
//                	document.write('<a href="http://www.dpbolvw.net/click-3317594-10471823" target="_blank"><img src="http://www.tqlkg.com/image-3317594-10471823" width="160" height="600" alt="Leaf" border="0"/></a>');
//        	else
//                	document.write('<a href="http://www.jdoqocy.com/click-3317594-10688298" target="_blank"><img src="http://www.ftjcfx.com/image-3317594-10688298" width="160" height="600" alt="My Story" border="0"/></a>');
//	}

	document.write('<br /><br />');
}


function skyscraper_novice(firstname,surname)
{
	firstname = firstname || "First name";
	surname = surname || "Last name";

	document.write('<div style="background-image:url(http://c.mfcreative.com/affiliate/widgets/0909/160_600_tree1.jpg);height:600px;position:relative;width:160px;overflow:hidden;">' +
'<form style="height:600px;margin:0;padding:0;width:160px;" target="_blank" action="http://www.dpbolvw.net/interactive" method="get">' +
'<div style="padding:207px 13px;text-align:center;">' +
'<input type="text" id="ancestryFN" name="fn" value="' + firstname + '" style="border-width:1px;border-style:solid;border-color:#aaadb2 #dcdfe6 #e2e9ef #e2e2ec;color:#695e49;font:11px/13px Tahoma, Arial, Helvetica, sans-serif;height:16px;margin:0 0 14px;padding:1px 5px;width:120px;" onfocus="javascript:if(this.value==\'First name\'){this.value=\'\'}" onblur="javascript:if(this.value==\'\'){this.value=\'First name\';}" />' +
'<input type="text" id="ancestryLN" name="ln" value="' + surname + '" style="border-width:1px;border-style:solid;border-color:#aaadb2 #dcdfe6 #e2e9ef #e2e2ec;color:#695e49;font:11px/13px Tahoma, Arial, Helvetica, sans-serif;height:16px;margin:0 0 20px;padding:1px 5px;width:120px;" onfocus="javascript:if(this.value==\'Last name\'){this.value=\'\'}" onblur="javascript:if(this.value==\'\'){this.value=\'Last name\';}" />' +
'<span style="color:#566c11;font:700 11px/12px Tahoma, Arial, Helvetica, sans-serif;vertical-align:middle;">Gender</span>' +
'<select id="gen" name="gen" style="border-width:1px;border-style:solid;border-color:#aaadb2 #dcdfe6 #e2e9ef #e2e2ec;color:#695e49;font:12px/16px Tahoma, Arial, Helvetica, sans-serif;margin:0 0 0 3px;padding:0;width:70px;vertical-align:middle;" >' +
'<option value="M">M</option>' +
'<option value="F">F</option>' +
'</select>' +
'<input name="startTree" type="image" src="http://c.mfcreative.com/affiliate/widgets/0909/lg_tree.gif" style="border:none;cursor:pointer;height:27px;margin:31px 0 0;padding:0;width:116px;" onclick="if( document.getElementById(\'ancestryFN\').value==\'First name\')document.getElementById(\'ancestryFN\').value=\'\'; if( document.getElementById(\'ancestryLN\').value==\'Last name\')document.getElementById(\'ancestryLN\').value=\'\';" />' +
'</div>    ' +
'<input type="hidden" name="aid" value="10533472"/>' +
'<input type="hidden" name="pid" value="3317594"/>' +
'<input type="hidden" name="url" value="http://trees.ancestry.com/pt/StartPed.aspx"/>' +
'</form>' +
'</div>');

}

function banner_novice(firstname,surname,sex)
{
	firstname = firstname || "First name";
	surname = surname || "Last name";
	sex = sex || "M";
	if (sex == "M")
	{ 
		option1value="M";
		option1desc="Male";
		option2value="F";
		option2desc="Female";
	}
	else
	{
		option1value="F";
		option1desc="Female";
		option2value="M";
		option2desc="Male";
	}

	document.write('<div style="width:468px;height:60px;background-image:url(http://c.mfcreative.com/affiliate/widgets/trees/tree_468x60.jpg);text-align:left;">' +
	'<form id="ancTreeForm" style="padding:0;margin:0;" target="_blank" action="http://www.tkqlhce.com/interactive" method="get">' +
		'<div style="position:relative;">' +
			'<p style="color:#665c48;font:400 19px/22px Tahoma, Geneva, sans-serif;margin:0;padding:3px 15px;">Discover your family\'s story.<span style="color:#695f4a;font:400 11px/14px Tahoma, Geneva, sans-serif;;margin-left:7px;">Start with your name.</span></p>' +
			'<div style="padding-left:15px;"><input id="acomFn" name="fn" style="color:#676767;font:400 11px/16px \'Trebuchet MS\', Arial, Helvetica, sans-serif;width:130px;text-align:center;" value="' + firstname + '" onfocus="this.select();" onkeypress="if(event.keyCode==13){document.getElementById(\'acomLn\').focus();}"/><input id="acomLn" name="ln" style="color:#676767;font:400 11px/16px \'Trebuchet MS\', Arial, Helvetica, sans-serif;margin-left:7px;width:130px;text-align:center;" value="' + surname + '" onfocus="this.select();" onkeypress="if(event.keyCode==13){document.getElementById(\'ancTreeForm\').submit();}"/><select id="gen" name="gen" style="color:#676767;font:400 11px/16px \'Trebuchet MS\', Arial, Helvetica, sans-serif;margin-left:5px;" onkeypress="if(event.keyCode==13){document.getElementById(\'ancTreeForm\').submit();}">' +
				'<option value="' + option1value + '">' + option1desc + '</option>' +
				'<option value="' + option2value + '">' + option2desc + '</option>' +
			'</select></div>' +
			'<div style="background:url(http://c.mfcreative.com/affiliate/widgets/trees/tree_468x60_btn.png);width:72px;height:24px;overflow:hidden;position:absolute;top:7px;right:15px;cursor:pointer;text-indent:-99999px;" onclick="document.getElementById(\'ancTreeForm\').submit();">Start Now</div>' +
		'</div>' +
'<input type="hidden" name="aid" value="10499726"/>' +
'<input type="hidden" name="pid" value="3317594"/>' +
'<input type="hidden" name="url" value="http://trees.ancestry.com/pt/StartPed.aspx"/>' +
'</form>' +
'</div><img src="http://www.tqlkg.com/image-3317594-10499726" width="1" height="1" border="0"/>');
}

function skyscraper_books()
{
	if (lang() == 'en-gb')
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_9036a5ab-111e-4423-9b08-1fbd580d9c1c"  WIDTH="160px" HEIGHT="600px"> <PARAM NAME="movie" VALUE="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Ffamitreeassi-21%2F8010%2F9036a5ab-111e-4423-9b08-1fbd580d9c1c&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Ffamitreeassi-21%2F8010%2F9036a5ab-111e-4423-9b08-1fbd580d9c1c&Operation=GetDisplayTemplate" id="Player_9036a5ab-111e-4423-9b08-1fbd580d9c1c" quality="high" bgcolor="#ffffff" name="Player_9036a5ab-111e-4423-9b08-1fbd580d9c1c" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="600px" width="160px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Ffamitreeassi-21%2F8010%2F9036a5ab-111e-4423-9b08-1fbd580d9c1c&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT>');
	}
	else
	{
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_07db7244-b85e-4628-9a0b-2d7125a979da"  WIDTH="160px" HEIGHT="600px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ffamitreeassi-20%2F8010%2F07db7244-b85e-4628-9a0b-2d7125a979da&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ffamitreeassi-20%2F8010%2F07db7244-b85e-4628-9a0b-2d7125a979da&Operation=GetDisplayTemplate" id="Player_07db7244-b85e-4628-9a0b-2d7125a979da" quality="high" bgcolor="#ffffff" name="Player_07db7244-b85e-4628-9a0b-2d7125a979da" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="600px" width="160px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ffamitreeassi-20%2F8010%2F07db7244-b85e-4628-9a0b-2d7125a979da&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT>');
	}
}

function skyscraper_software()
{
	document.write('<a href="http://www.dpbolvw.net/click-3317594-10535545" target="_blank"><img src="http://www.lduhtrp.net/image-3317594-10535545" width="160" height="600" alt="Protection" border="0"/></a>');
}

function small()
{
	if (lang() == 'en-gb')
	{
		document.write('<div align=center><a href="http://www.dpbolvw.net/click-3317594-10412260" target="_blank"><img src="http://www.awltovhc.com/image-3317594-10412260" width="120" height="60" alt="Ancestry free trial" border="0"/></a></div>');
	}
	else
	{
		document.write('<div align=center><a href="http://www.jdoqocy.com/click-3317594-10467608" target="_top"><img src="http://www.familytreeassistant.com/images/ancestrytrial.png" width="120" height="60" alt="Ancestry free trial" border="0"/></a></div>');
	}
}

function small_familytreesoftware()
{
	if (lang() == 'en-gb')
	{
		document.write('<div align=center><a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-deluxe-edition"><img src="http://www.familytreeassistant.com/images/FTM2011.png" alt="Family Tree Maker 2011"/></a></div>');
	}
	else
	{
		document.write('<div align=center><a href="http://www.tkqlhce.com/click-3317594-10493475" target="_top"><img src="http://www.lduhtrp.net/image-3317594-10493475" width="120" height="90" alt="Family Tree Maker 2011" border="0"/></a></div>');
	}
}

function banner_familytreesoftware()
{
	if (lang() == 'en-gb')
	{
		document.write('<p><a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-deluxe-edition">Family Tree Maker 2011 Deluxe Edition</a></p>');
		document.write('<p><a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-platinum-edition">Family Tree Maker 2011 Platinum Edition</a></p>');
		document.write('<p><a href="http://www.dpbolvw.net/click-3317594-10505988?url=http%3A//www.ancestryshop.co.uk/products/software/family-tree-maker-2011-world-edition">Family Tree Maker 2011 World Edition</a></p>');
		document.write('<p><a href="http://www.rootsmagic.co.uk/">RootsMagic</a></p>');
		document.write('<p><a href="http://www.family-historian.co.uk/">Family Historian</a></p>');
	}
	else
	{
		document.write('<p><a href="http://www.kqzyfj.com/click-3317594-10488504" target="_top">Family Tree Maker 2011</a><img src="http://www.tqlkg.com/image-3317594-10488504" width="1" height="1" border="0"/></p>');
		document.write('<p><a href="http://www.rootsmagic.com/">RootsMagic</a></p>');
		document.write('<p><a href="http://www.legacyfamilytree.com/">Legacy Family Tree</a></p>');
	}
}

