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_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 WM_preloadImages() {
// WM_preloadImages()
// LOADS IMAGES INTO THE BROWSER'S CACHE FOR LATER USE.
// Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);

  // DON'T BOTHER IF THERE'S NO DOCUMENT.IMAGES
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // LOOP THROUGH ALL THE ARGUMENTS.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // FOR EACH ARG, CREATE A NEW IMAGE.
      document.WM.loadedImages[arg] = new Image();
      // THEN SET THE SOURCE OF THAT IMAGE TO THE CURRENT ARGUMENT.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}


WM_preloadImages(
"http://images.marriagemissions.com.s3.amazonaws.com/top_home_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_home_on.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_about_us_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_about_us_on.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_privacy_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_privacy_on.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_donation_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_donation_on.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_store_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_store_on.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_contact_off.jpg",
"http://images.marriagemissions.com.s3.amazonaws.com/top_contact_on.jpg"
);
