Jquery Preloader stopped working IE
<p>Edit:</p>

<p>I have a multiple image preloading script that I'm having problems with on IE, and people have mentioned that the reason is because of caching. I'm currently exporing any alternatives that would allow me to:</p>

<ul>
<li>Preload a <em>predefined</em> set of images because my content is loaded via ajax</li>
<li>Be allowed to set those images as css backgrounds</li>
</ul>

<p><a href="http://nightlifebratislava.com/demos/verzia4/" rel="nofollow">Here's the demo site</a>
(works in all browsers except IE)</p>

<p>And here's what the code looks like right now:</p>

<p><em>It looks long, however it's mostly just repeat code</em></p>

<pre><code>    var  src1 = 'img/map_bg_1680.jpg'
    , $img1 = $( '&lt;img src="' + src1 + '"&gt;' );

    var  src2 = 'img/menu-background.png'
    , $img2 = $( '&lt;img src="' + src2 + '"&gt;' );

    var  src3 = 'img/button01.png'
    , $img3 = $( '&lt;img src="' + src3 + '"&gt;' );

    var  src4 = 'img/button02.png'
    , $img4 = $( '&lt;img src="' + src4 + '"&gt;' );

    var  src5 = 'img/button03.png'
    , $img5 = $( '&lt;img src="' + src5 + '"&gt;' );

    var  src6 = 'img/button04.png'
    , $img6 = $( '&lt;img src="' + src6 + '"&gt;' );

    var  src7 = 'img/button05.png'
    , $img7 = $( '&lt;img src="' + src7 + '"&gt;' );

    var  src8 = 'img/button06.png'
    , $img8 = $( '&lt;img src="' + src8 + '"&gt;' );

    var  src9 = 'img/all_events_button.png'
    , $img9 = $( '&lt;img src="' + src9 + '"&gt;' );

    var  src10 = 'img/all_venues_button.png'
    , $img10 = $( '&lt;img src="' + src10 + '"&gt;' );

    var  src11 = 'img/event_finder_button.png'
    , $img11 = $( '&lt;img src="' + src11 + '"&gt;' );

    var  src12 = 'img/today-button.png'
    , $img12 = $( '&lt;img src="' + src12 + '"&gt;' );

    var  src13 = 'img/tomorrow-button.png'
    , $img13 = $( '&lt;img src="' + src13 + '"&gt;' );

    var  src14 = 'img/some-other-day-button.png'
    , $img14 = $( '&lt;img src="' + src14 + '"&gt;' );

    var  src15 = 'img/choose-button.png'
    , $img15 = $( '&lt;img src="' + src15 + '"&gt;' );

    var  src16 = 'img/newsearch-button.png'
    , $img16 = $( '&lt;img src="' + src16 + '"&gt;' );

    var  src17 = 'img/showresults-button.png'
    , $img17 = $( '&lt;img src="' + src17 + '"&gt;' );

$(document).ready(function() { 

    $(".ajax").colorbox();




var img1loaded = false
  , img2loaded = false
  , img3loaded = false
  , img4loaded = false
  , img5loaded = false
  , img6loaded = false
  , img7loaded = false
  , img8loaded = false
  , img9loaded = false
  , img10loaded = false
  , img11loaded = false
  , img12loaded = false
  , img13loaded = false
  , img14loaded = false
  , img15loaded = false
  , img16loaded = false
  , img17loaded = false;

$img1.bind( 'load', function(){
    img1loaded = true;
    finish();
} );

$img2.bind( 'load', function(){
    img2loaded = true;
    finish();
} );

$img3.bind( 'load', function(){
    img3loaded = true;
    finish();
} );

$img4.bind( 'load', function(){
    img4loaded = true;
    finish();
} );

$img5.bind( 'load', function(){
    img5loaded = true;
    finish();
} );

$img6.bind( 'load', function(){
    img6loaded = true;
    finish();
} );

$img7.bind( 'load', function(){
    img7loaded = true;
    finish();
} );

$img8.bind( 'load', function(){
    img8loaded = true;
    finish();
} );

$img9.bind( 'load', function(){
    img9loaded = true;
    finish();
} );

$img10.bind( 'load', function(){
    img10loaded = true;
    finish();
} );

$img11.bind( 'load', function(){
    img11loaded = true;
    finish();
} );

$img12.bind( 'load', function(){
    img12loaded = true;
    finish();
} );

$img13.bind( 'load', function(){
    img13loaded = true;
    finish();
} );

$img14.bind( 'load', function(){
    img14loaded = true;
    finish();
} );

$img15.bind( 'load', function(){
    img15loaded = true;
    finish();
} );

$img16.bind( 'load', function(){
    img16loaded = true;
    finish();
} );

$img17.bind( 'load', function(){
    img17loaded = true;
    finish();
} );

function finish(){
    if( !img1loaded || !img2loaded || !img3loaded || !img4loaded || !img5loaded || !img6loaded || !img7loaded || !img8loaded || !img9loaded || !img10loaded || !img11loaded || !img12loaded || !img13loaded || !img14loaded || !img15loaded || !img16loaded || !img17loaded ){ return; }
            jQuery('#main-content-fiftyfive').load('index2.html', function() {
                $( '#bgDiv' ).css( 'background-image', 'url( ' + src1 + ')' ); 
                jQuery( '#viewport-container' ).css( 'background-image', 'url( ' + src2 + ')' );
                jQuery( '#events_map_button' ).css( 'background-image', 'url( ' + src3 + ')' );
                jQuery( '#event_search_tool_button' ).css( 'background-image', 'url( ' + src4 + ')' );
                jQuery( '#party_photos_button' ).css( 'background-image', 'url( ' + src5 + ')' );
                jQuery( '#taxi_finder_button' ).css( 'background-image', 'url( ' + src6 + ')' );
                jQuery( '#weather_forecast_button' ).css( 'background-image', 'url( ' + src7 + ')' );
                jQuery( '#contact_button' ).css( 'background-image', 'url( ' + src8 + ')' );

                $('#right-content').load('partytool.html', function() {

                    setPartyToolsButtons();

                    $('#whole-ajax-content-one').load('events.html', function() {
                        setDayChooserButtons();
                        $( '.preloader' ).fadeOut('slow', function() {
                            $( '#bgDiv' ).fadeIn('slow', function() {
                                $( '#table-holder' ).fadeIn('slow', function() {
                                initialConfig();
                        });
                    });
                });
            });     
        });
    });
}
if( $img1[0].width ){ $img1.trigger( 'load' ); }
if( $img2[0].width ){ $img2.trigger( 'load' ); }
if( $img3[0].width ){ $img3.trigger( 'load' ); }
if( $img4[0].width ){ $img4.trigger( 'load' ); }
if( $img5[0].width ){ $img5.trigger( 'load' ); }
if( $img6[0].width ){ $img6.trigger( 'load' ); }
if( $img7[0].width ){ $img7.trigger( 'load' ); }
if( $img8[0].width ){ $img8.trigger( 'load' ); }
if( $img9[0].width ){ $img9.trigger( 'load' ); }
if( $img10[0].width ){ $img10.trigger( 'load' ); }
if( $img11[0].width ){ $img11.trigger( 'load' ); }
if( $img12[0].width ){ $img12.trigger( 'load' ); }
if( $img13[0].width ){ $img13.trigger( 'load' ); }
if( $img14[0].width ){ $img14.trigger( 'load' ); }
if( $img15[0].width ){ $img15.trigger( 'load' ); }
if( $img16[0].width ){ $img16.trigger( 'load' ); }
if( $img17[0].width ){ $img17.trigger( 'load' ); }


});
</code></pre>

<p>I appreciate everyone's input, thank you :)</p>
