window.onload = function () {

    var i = 0,
        max = 0,
        o = null,

        // list of stuff to preload
        preload = [
            'http://www.departure-blvd.net/css/main.css',
            'http://www.departure-blvd.net/css/content_tbl.css',
            'http://www.departure-blvd.net/Scripts/AC_RunActiveContent.js',
			'http://departure-blvd.net/js/mootools-1.2.1-core-yc.js',
			'http://www.departure-blvd.net/js/mootools-1.2-more.js',
			'http://www.departure-blvd.net/js/jd.gallery.js',
			'http://www.departure-blvd.net/css/jd.gallery.css',
			'http://www.departure-blvd.net/mycarousel/jMyCarousel.css',
			'http://www.departure-blvd.net/mycarousel/jMyCarousel.js',
			'http://www.departure-blvd.net/mycarousel/jquery-1.2.1.pack.js',
			'http://www.departure-blvd.net/mycarousel/jMyCarousel.pack.js',
			'http://www.departure-blvd.net/mycarousel/jMyCarousel.min.js'
        ],	
			
        isIE = navigator.appName.indexOf('Microsoft') === 0;

    for (i = 0, max = preload.length; i < max; i += 1) {

        if (isIE) {
            new Image().src = preload[i];
            continue;
        }
        o = document.createElement('object');
        o.data = preload[i];

        // IE stuff, otherwise 0x0 is OK
        //o.width = 1;
        //o.height = 1;
        //o.style.visibility = "hidden";
        //o.type = "text/plain"; // IE 
        o.width  = 0;
        o.height = 0;

        // only FF appends to the head
        // all others require body
        document.body.appendChild(o);
    }

};


