// JavaScript Document
function drawFooter(pIsLandingPage) {
	var isLandingPage = 0;
		isLandingPage = (pIsLandingPage == "" ? 0 : pIsLandingPage);

	//getDate();

	var o  = "";
		o += '<div id="footer" class="copy">';
		// o += '<span class="title11">customer support: 0844 873 8586</span><br/><span class="smalltext">Lines are open 24 hours, 7 days a week (calls are charged at national rate and may be monitored for training purposes)</span><br />';
		// o += '<span class="title11">technical support: 09062 517 517</span><br/><span class="smalltext">Lines are open 24 hours, 7 days a week (calls are charged at 50p per minute and may be monitored for training purposes)';
		o += '<hr class="divider_2a" />'

	if (!isLandingPage) {
		o += '<div class="links_small">'
		o += '<ul>'
		o += '<li style="display: inline;"><a href="/terms" style="text-decoration: none;">terms and conditions</a>&nbsp;&nbsp;</li>'
		o += '<li style="display: inline;"><a href="/privacy" style="text-decoration: none;">privacy</a>&nbsp;&nbsp;</li>'
		o += '<li style="display: inline;"><a href="/help" style="text-decoration: none;">help</a>&nbsp;&nbsp;</li>'
		o += '</ul>'
		o += '</div>';
		o += fixOddIE();
		// o += '</span>';
		o += '</div>';
		o += '<div class="full_width" style="margin-top:20px; margin-bottom: 5px; float:left;"><a href="http://isis.imrg.org/screens/DisplayMerchant.asp" target="_blank"><img src="/images/shared/decoration/isis.gif" alt="internet shopping is safe" /></a></div>';
	}
	else {
		o += '</div>';
	}

	document.write(o);
}

function getDate(){
	// not currently used //
	var dateObj = new Date();
	var year = dateObj.getFullYear();
	todayYear= year;
}

function fixOddIE(){
	// Pages light on content seem to fall foul of a strange IE error, the last characters on the page are repeated //
	var spacer = ''
	if (isIE)(spacer += '&nbsp;&nbsp;&nbsp;&nbsp;');
	// Make sure there is enough spaces here so that real content is not repeated. //
	return spacer;
	// Kelvin Owers //
}
