function restoreUserNameAAII(){
// search coockie:
var userNameAAII=getCookie("userNameAAII");
if (!userNameAAII) return; // the cookie doesn't exist...
document.forms.logon.AAIILogon__userName.value=userNameAAII;
}
function saveUserNameAAII(){
// store it as a cookie that will expire in 2 years
var now=new Date();
expdelay=1000*60*60*24*365*2; // persistence: 2 years
var expdate=new Date(Date.parse(now)+expdelay);
if (document.forms.logon.checkbox.checked){
setCookie("userNameAAII",document.forms.logon.AAIILogon__userName.value,expdate);
}
}
//
// setCookie and getCookie are from: Netscape's Javascript User Guide
//
function setCookie(name, value, expire) {
document.cookie = name + "=" + escape(value)
+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}
function getCookie(Name) {
var search = Name + "="
if (document.cookie.length > 0) { // if there are any cookies
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset)
// set index of end of cookie value
if (end == -1)
end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
}
}
function popupWin800x550(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 800;
var h = 550;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes';
MyWindow=window.open(url,'PrivacyWindow',propStr);
MyWindow.focus();
}
function popupSupport(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 800;
var h = 600;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'Support',propStr);
MyWindow.focus();
}
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
if (document.getElementById){
document.write('\n')
}
function SwitchMenu(obj){
if(document.getElementById){
var el = document.getElementById(obj);
var ar = document.getElementById("zonal").getElementsByTagName("span");
if(el.style.display != "block"){
for (var i=0; i 0)
if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
return theLyr;
}
return null;
}
}
function init(id,lyr) {
var lnk = getElemRefs(id);
swapLayers(lnk,lyr);
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function popupWin(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 665;
var h = 475;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'MyWindow',propStr);
MyWindow.focus();
}
function popupWinPrivacy(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 665;
var h = 530;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'PrivacyWindow',propStr);
MyWindow.focus();
}
function popupWinAddress(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 665;
var h = 350;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'MyWindow',propStr);
MyWindow.focus();
}
function popupExtURLAddress(temp,exttemp){
url = temp+'?exturl='+exttemp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 665;
var h = 350;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'MyWindow',propStr);
MyWindow.focus();
}
function popupExtURLWebPay(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 760;
var h = 350;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'MyWindow',propStr);
MyWindow.focus();
}
//Glossary PopUp
function jump(url) {
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 438;
var h = 438;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
TheNewWin = window.open(url, 'Glossary', propStr);
TheNewWin.focus();
}
/////////////////GLOSSARY//////////////////////////
function changeCategory(category) {
window.location="/glossary/glossary_main.jhtml?id=0&account=1&category=" + category;
}
/////////////////// BROWSER DETECT ///////////////////////////
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
},
searchString: function (data) {
for (var i=0;i");
}
else if ((navigator.appVersion.indexOf("Mac") != -1)) {
document.write("");
var bVer = "MacIE"; }
else if (((navigator.appName.indexOf("Netscape") != -1)) && ((navigator.appVersion.indexOf("MSIE") == -1))) {
document.write(""); }
else {
document.write(""); }
//quick link pulldown menu
function jumper(foo, index) {
if (index == 3) {
window.open("https://www.acctaccess.com/aaii?REQUEST_CLASS=AccountAccessController&display=true&BrandID=lan&CountryCode=US&LanguageCode=en");
}
else {
location = foo;
}
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i', '', '', '');
var num = Math.floor(Math.random() * ar.length);
//secured messaging code
function NewWindow1(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 640;
var h = 350;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 80) * .5) + ',toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'MyWindow',propStr);
MyWindow.focus();
}
//for opening new pop up window
function openWin(theURL,winName)
{
var win=window.open(theURL,winName,'width=800,height=550,scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes,status=yes');
}
function popupWin(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 665;
var h = 530;
//var h = 475;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'Privacy',propStr);
MyWindow.focus();
}
function popupWin1(temp){
url = temp;
var leftX = screen.availWidth;
var topY = screen.availHeight;
var w = 550;
var h = 300;
var propStr = 'width=' + w + ',height=' + h + ',left=' + ((leftX - w - 10) * .5) + ',top=' + ((topY - h - 30) * .5) + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes';
MyWindow=window.open(url,'Copyright',propStr);
MyWindow.focus();
}
function omni_twitter_clik()
{
var s=s_gi(s_account);
s.linkTrackVars='channel,hier1,eVar14,eVar15,prop14,prop15,prop5,eVar4,prop4,eVar11,prop11';
s.pageName="";
s.channel="home";
s.hier1 = "home";
s.eVar4 = s.prop4= "eng" ;
s.eVar14 = s.prop14 = "fmcc";
s.eVar15= s.prop15="fordcredit.com";
s.eVar11 = s.prop11 = "flmc: home: homepage";
s.prop5= "social: twitter" ;
s.tl(this,'e','exit: social');
}