

// JavaScript Document
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerhtml = unescape(newText);
}
//-->
var newwindow = '';

function popitup(url) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'name','scrollbars=yes,height=700,width=500');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}
function popitup2(url) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'name','scrollbars=yes,height=700,width=500');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}


var Found=false
var Current = new Array()
var MaxValue=17 //(Example 2 is equal to: 0,1,2)
var NumUnique=2  //The number of unique numbers required
var Count=0
var Current = new Array(NumUnique)
GetUnique()

  function GetUnique()
  {
    for (i=0;Count<NumUnique;Count++)
    {
      Found=false
      var rndValue = get_random()
      var j=0
      for (j=0;j<Current.length;j++)
      {
        if (Current[j] == rndValue)
        {
          Found=true
          break
        }
      }
      if (Found)
      {
        Count--
      } else {
        Current[Count]=rndValue
      }
    }
  }
  
function get_random()
  {
    var ranNum= Math.floor(Math.abs(Math.random()-.0000001)*MaxValue);
    return ranNum;
  }


 // This script was supplied free by Hypergurl 
// http://www.hypergurl.com 
// JavaScript to interpolate random images into a page.
var ic = 17; 
// Number of alternative images
var ad = new Array(ic); 
// Array to hold filenames
ad[0] = "images/ad_side_1.jpg";  
ad[1] = "images/ad_side_2.jpg";  
ad[2] = "images/ad_side_3.jpg";  
ad[3] = "images/ad_side_4.jpg";  
ad[4] = "images/ad_side_7.jpg";
ad[5] = "images/ad_side_5.jpg";
ad[6] = "images/BOD-NoBull_Banner145x195.jpg";
ad[7] = "images/PIN_reset_ad_1.jpg";
ad[8] = "images/106825_Echecking_side_1.jpg";
ad[9] = "images/106843_DebitOverdraft_side_FN.jpg";
ad[10] = "images/117183_MoneyPass-Jeanie_small_1FN.jpg";
ad[11] = "images/117158_commercial_loan_small-ad_1FN.jpg";
ad[12] = "images/117310_E-SwitchKit_side_2.jpg";
ad[13] = "images/117291_NetTeller_ad_side_1.jpg";
ad[14] = "images/homedeposit_ad_side2.jpg";
ad[15] = "images/ad_side_8.jpg";
ad[16] = "images/BOD-NoBull_Banner145x195.jpg";;


var url = new Array(ic); 
// Array to hold filenames
url[0] = "'ad_desktop_deposit.cfm'";  
url[1] = "'ad_merchant.cfm'";  
url[2] = "'ad_business_visa.cfm'";  
url[3] = "'ad_e-checking.cfm'";  
url[4] = "'ad_IDSafeChoiceFamily.cfm'";
url[5] = "'ad_personal_visa.cfm'";
url[6] = "'business_services_merchant.cfm'"; 
url[7] = "'ad_security_question.html'";
url[8] = "'ad_e-checking_2.html'";
url[9] = "'ad_debitOverdraft_FNa.html'";
url[10] = "'ad_moneypass-jeanie_fn.html'";
url[11] = "'ad_commercial-loans_fn.html'";
url[12] = "'117310-ad-pop-up.html'";
url[13] = "'117291-ad-pop-up.html'";
url[14] = "'ad_homedeposit.html'";
url[15] = "'ad_homedeposit.html'";
url[16] = "'business_services_merchant.cfm'";
var choice1 = Current[0];
var choice2 = Current[1];
// -->
