function redirect() { // Redirect page to fcebank.com if entering via fordfinancialeurope.com or fordcrediteurope.com
	var currentUrl = window.location.href;
	var currentUrlBase = currentUrl.substring(0, currentUrl.lastIndexOf("/"));
	if(currentUrlBase == "http://www.fordfinancialeurope.com" ||
	   currentUrlBase == "http://www.fordcrediteurope.com") {
		window.location.href = "http://www.fcebank.com" + currentUrl.substring(currentUrl.lastIndexOf("/"));
	}
}

function writeCommonNavItems(titleText){
document.writeln("" +
"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+
"	<tr>"+
"		<td>"+
"			<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+
"				<tr>"+
"					<td rowspan='2' width='150'><a href='index.html'><img src='images/header_logo.gif' alt='FCE Logo' border='0'></a></td>"+
"					<td width='90%' align='right' class='TitleText'>"+titleText+"</td>"+
"				</tr>"+
"				<tr> </tr>"+
"				<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#003399'>"+
"					<tr>"+
"						<td>"+
"							<div align='center'>"+
"								<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+
"									<tr>"+
"						  				<td>&nbsp;</td>"+
"						  				<td width='200'><div align='center'><a class='head-links' href='index.html'>Ford&nbsp;Credit&nbsp;Home</a></div></td>"+
"						  				<td width='11'><img src='images/space.gif' width='11' height='11'></td>"+
"						  				<td width='200'><div align='center'><a class='head-links' href='investorindex.html'>Investor Information</a></div></td>"+
"						  				<td width='11'><img src='images/space.gif' width='11' height='11'></td>"+
"						  				<td width='200'><div align='center'><a class='head-links' href='customerinformation.html'>Customer Information</a></div></td>"+
"						  				<td width='200'><img src='images/space.gif' width='11' height='11'></td>"+
"						  				<td width='80' height='40'>&nbsp;</td>"+
"									</tr>"+
"					  			</table>"+
"							</div>"+
"				  		</td>"+
"					</tr>"+
"			  	</table>"+
"			</table>"+
"		</td>"+
"	</tr>"+
"</table>"+
"");
}

function writeDate(){

					function longMonthArray() {
					this[0] = "January";    this[1] = "February";   this[2] = "March";
					this[3] = "April";      this[4] = "May";        this[5] = "June";
					this[6] = "July";       this[7] = "August";     this[8] = "September";
					this[9] = "October";    this[10] = "November";  this[11] = "December";
					return (this);
					}
					function longDayArray() {
					this[0] = "Sunday";     this[1] = "Monday";     this[2] = "Tuesday";
					this[3] = "Wednesday";  this[4] = "Thursday";   this[5] = "Friday";
					this[6] = "Saturday";
					return (this);
					}
					function writeDateLong()
					{
					longDays = new longDayArray();
					longMonths = new longMonthArray();
					d = new Date();
					day = d.getDate();
					month = d.getMonth();
					year = d.getFullYear();
					str = longDays[d.getDay()] + " " + longMonths[month] + " " + day + ", " + year;
					return str;
					}
					today = writeDateLong();

					document.writeln("" +
									"	<table width='910' border='0' cellspacing='0' cellpadding='0' style='padding: 15pt 0pt' align='center'>"+
									"		<tr bgcolor='#ffffff'>"+
									"			<td>"+
									"				<p align='right'>"+
														today+
									"				</p>"+
									"			</td>"+
									"		</tr>"+
									"	</table>"+
									"");
}
