// 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 () {
    preloadWedding();
}

function preloadWedding () {
	MM_preloadImages(
		        'common/bullet-trans.png',
		        'common/legal-trans.png',
		        'common/logo-white-tm-trans.png',
		        'common/logo-white.png',
		        'common/rSeeAlso-trans.png',
		        'common/shadow40-trans.png',
		        'common/bg-about.jpg',
		        'common/bg-connect.jpg',
		        'common/bg-dark.jpg',
		        'common/bg-gallery2.jpg',
		        'common/bg-gallery3.jpg',
		        'common/bg-investment.jpg',
		        'common/mEngagements.jpg',
		        'common/mMain.jpg',
		        'common/mWeddings.jpg');
}

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