function writeFooter(level) {
	var footer
	var subLevel

	subLevel = ""
	if (level == '1')
	    subLevel = "../"
	if (level == '2')
	    subLevel = "../AOMProducts/"
	
	footer = '<table class="Default" align="center" cellpadding="0" cellspacing="0">'
	footer += '<tr><td colspan="2">&nbsp;</td></tr>'
	footer += '<tr><td background="' + subLevel + '../Img/footer.jpg" style="padding-left:15px;width:50%;height:21px;text-align:left;">'
	footer += '<font color="white">'
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" target="_blank" href="' + subLevel + 'terms.htm">Terms of use</a> | '
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" href="' + subLevel + 'addonmail.htm">About us</a> | '
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" href="' + subLevel + 'contact.htm">Contact</a></font>'
	footer += '</td>'
	footer += '<td background="' + subLevel + '../Img/footer.jpg" style="background-position:right;width:50%;text-align:right;padding-right:15px;">'
	footer += '<font color="white" style="font-size:9px;"><b>Copyright &copy; AddOnMail 2006-2010</b></font>'
	footer += '</td></tr></table>'
	footer += '<tr><td colspan="2">&nbsp;</td></tr>'
	footer += '</table>'

	document.write(footer);
}

function writeSolutionsAOMFooter(lang) {
	var footer
	var terms
	var about

	terms = "Terms of use"
	about = "About us"
	if (lang == 'fr') {
		terms = "Conditions d'utilisation"
		about = "A propos de"
	}
	
	footer = '<table class="Default" align="center" cellpadding="0" cellspacing="0">'
	footer += '<tr><td colspan="2">&nbsp;</td></tr>'
	footer += '<tr><td background="../Img/footer_solutions.png" style="padding-left:15px;width:50%;height:21px;text-align:left;">'
	footer += '<font color="white">'
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" target="_blank" href="terms.htm">' + terms + '</a> | '
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" href="addonmail.htm">' + about + '</a> | '
	footer += '<a class="menuBlanc" style="font-size:10px; font-weight:bold;" href="contact.htm">Contact</a></font>'
	footer += '</td>'
	footer += '<td background="../Img/footer_solutions.png" style="background-position:right;width:50%;text-align:right;padding-right:15px;">'
	footer += '<font color="white" style="font-size:9px;"><b>Copyright &copy; AddOnMail 2006-2010</b></font>'
	footer += '</td></tr></table>'
	footer += '<tr><td colspan="2">&nbsp;</td></tr>'
	footer += '</table>'

	document.write(footer);
}