var timerSession = window.setTimeout('sessionexpiredWarning();', (1000 * 60 * 17), 'JavaScript');
var size = (ns4 ? 11 : 9);
var sSessionExpirationWarning = '<html>' +
'<head><title>NissanUSA.com - Session About To Expire</title>' +
'<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">' +
'<style type="text/css">' +
'td { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: ' + size + 'px; font-weight: normal; color: #666666 }' +
'</style></head>' +
'<body bgcolor="#ffffff" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">' +
'<script language="JavaScript">var timerSessDie = window.setTimeout("top.location.href=\'/endsession.jsp\';", 120000, "JavaScript");' +
'var timerCountdown = window.setInterval("sessionexpiredCountdown();", 100, "JavaScript"); var iCD = 1200;' +
'function sessionexpiredCountdown(){ iM  = Math.floor(iCD/600); iS  = Math.floor(iCD%600/10); iDS = Math.floor(iCD%10);' +
'if(0 < iCD--) { sCD = "" + iM + ((iS < 10)?(":0"):(":")) + iS; if(document.all) {spanTime.innerHTML = sCD;}}' +
'else{sCD = "[session condition undefined]"; if(document.all) {	spanWarning.innerHTML = "Your session is probably expired.<br>Do you want to check session status?<br>&nbsp;";} }' +
'window.status = "session expires in " + sCD;}' +
'</script>' +
'<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
'<tr><td height="100">&nbsp;</td></tr>' +
'<tr><td align="center">' +
'<table width="460" border="0" cellpadding="0" cellspacing="0">' +
'<tr><td height="1" bgcolor="#666666" colspan="5"><spacer type="block" width="1" height="1"></spacer></td></tr>' +
'<tr><td width="1" nowrap bgcolor="#666666" rowspan="2"><spacer type="block" width="1" height="1"></spacer></td><td width="25" nowrap></td><td width="408" nowrap>' +
'<table width="408" border="0" cellpadding="0" cellspacing="0">' +
'<!-- BEGIN TITLE IMAGE -->' +
'<tr><td height="30"></td></tr>' +
'<tr><td><img src="/img/tril/expire.gif" alt="Session About To Expire" width="252" height="12" border="0"></td></tr>' +
'<tr><td height="15"></td></tr><!-- END TITLE IMAGE -->' +
'<!-- BEGIN INSTRUCTIONAL COPY SECTION -->' +
'<tr><td>You have been inactive for an extended period of time. To continue working with Design Your Nissan, you need to extend your session. If you do not extend ' +
'it, your selections will be reset and you will be taken back to the NissanUSA website.</td></tr>' +
'<!-- END INSTRUCTIONAL COPY SECTION -->' +
'<!-- BEGIN TIMER SECTION -->' +
'<tr><td height="20"></td></tr>' +
'<tr><td><span id="spanWarning">Your session will expire in <span id="spanTime">2:00</span>.</span></td></tr><tr><td height="25"></td></tr>' +
'<!-- END TIMER SECTION --></table></td><td width="25" nowrap></td>' +
'<td width="1" nowrap bgcolor="#666666" rowspan="2"><spacer type="block" width="1" height="1"></spacer></td></tr>' +
'<!-- BEGIN YES/NO SELECTION SECTION -->' +
'<tr><td colspan="3" bgcolor="#d0d0d0" align="center">' +
'<table width="400" border="0" cellpadding="0" cellspacing="0">' +
'<tr><td height="16"></td></tr>' +
'<tr><td colspan="3" align="center"><b>Would you like to extend it and continue your work with the site?</b></td></tr>' +
'<tr><td height="8"></td></tr>' +
'<tr><td width="193" nowrap align="right">' +
'<a target="_top" href="/Dispatch.jsp?.CurrentState=';

var sSessionExpirationWarning2 = '">' +
'<img src="/img/m/static/i/btn_gry_yes.gif" alt="YES" width="39" height="11" border="0"></a></td>' +
'<td width="14" nowrap></td><td width="193" nowrap><a href="/endsession.jsp">' +
'<img src="/img/m/static/i/btn_gry_no.gif" alt="NO" width="39" height="11" border="0"></a></td></tr>' +
'<tr><td height="16"></td></tr>' +
'</table></td></tr><!-- END YES/NO SELECTION SECTION -->' +
'<tr><td height="1" bgcolor="#666666" colspan="5"><spacer type="block" width="1" height="1"></spacer></td></tr>' +
'</table></td></tr>' +
'</table>' +
'</body>' +
'</html>';

function sessionexpiredWarning()
{
	var pagePartOne = sSessionExpirationWarning;
	var pageCurrentState = jsCurrentState + "&" + jsStateTokenName + "=" + escape(jsStateTokenValue);
	var pagePartTwo = sSessionExpirationWarning2;
	window.focus();
	document.clear();

	var page = pagePartOne + pageCurrentState + pagePartTwo;
	document.write(page);
	document.writeln();
	document.close();
}