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];}}
}

// I had to make a separate preloader here because there is a bug in the passing of the onload 
// event through niceforms...basically, it doesn't, adn the niceforms call never gets made.
// So this preloader is set to load both the niceforms and the weddings menu preloader.

// This line doesn't work, and is the cause of the bug
//var existingResizeEvent = window.onresize || function() {};
window.onload = function () {
    preloadFamilies();
}

function preloadFamilies () {
	MM_preloadImages(
		        'common/bg-about.jpg',
		        'common/bg-christian.jpg',
		        'common/bg-connect.jpg',
		        'common/bg-edalia.jpg',
		        'common/bg-griffin.jpg',
		        'common/bg-samantha.jpg',
		        'common/bg-session.jpg',
		        'common/bg-yitl.jpg',
		        'common/bg.jpg',
		        'common/mMain.jpg',
		        'common/mSession.jpg',
		        'common/mYitl-4.jpg',
		        'common/mYitl.jpg',
		        'common/bullet-trans.png',
		        'common/corner-ll-trans.png',
		        'common/corner-lr-trans.png',
		        'common/corner-ul-trans.png',
		        'common/corner-ur-trans.png',
		        'common/frame.png',
		        'common/legal-trans.png',
		        'common/logo-white-tm-trans.png',
		        'common/rSeeAlso.png');
}
