function preloader() { if (document.images) { var img1 = new Image(); img1.src = "/img/connect_facebook_24x24_rollover.png"; var img2 = new Image(); img2.src = "/img/connect_twitter_24x24_rollover.png"; var img3 = new Image(); img3.src = "/img/connect_youtube_24x24_rollover.png"; var img4 = new Image(); img4.src = "/img/connect_instagram_24x24_rollover.png"; var img5 = new Image(); img5.src = "/img/site_navigation_jld_about_rollover.gif"; var img6 = new Image(); img6.src = "/img/site_navigation_jld_repertory_rollover.gif"; var img7 = new Image(); img7.src = "/img/site_navigation_jld_performances_rollover.gif"; var img8 = new Image(); img8.src = "/img/site_navigation_jld_media_rollover.gif"; var img9 = new Image(); img9.src = "/img/site_navigation_jld_education_rollover.gif"; var img10 = new Image(); img10.src = "/img/site_navigation_jld_news_rollover.gif"; var img11 = new Image(); img11.src = "/img/site_navigation_jld_support_rollover.gif"; var img12 = new Image(); img12.src = "/img/site_navigation_jld_contact_rollover.gif"; var img13 = new Image(); img13.src = "/img/connect_join_jld_rollover.png"; } } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(preloader);