var path = "images/" var img = new Array(21); var ready = false; function preLoad() { if (document.images) { img[0] = new Image (); img[0].src = path + "aboutbtn.gif"; img[1] = new Image (); img[1].src = path + "aboutbtn-over.gif"; img[2] = new Image (); img[2].src = path + "supportbtn.gif"; img[3] = new Image (); img[3].src = path + "supportbtn-over.gif"; img[4] = new Image (); img[4].src = path + "inactionbtn.gif"; img[5] = new Image (); img[5].src = path + "inactionbtn-over.gif"; img[6] = new Image (); img[6].src = path + "eventsbtn.gif"; img[7] = new Image (); img[7].src = path + "eventsbtn-over.gif"; img[8] = new Image (); img[8].src = path + "contactbtn.gif"; img[9] = new Image (); img[9].src = path + "contactbtn-over.gif"; img[10] = new Image (); img[10].src = path + "servicesbtn.gif"; img[11] = new Image (); img[11].src = path + "servicesbtn-over.gif"; img[12] = new Image (); img[12].src = path + "emerg-no.gif" img[13] = new Image (); img[13].src = path + "bus-no.gif" img[14] = new Image (); img[14].src = path + "biglogo.gif" img[15] = new Image (); img[15].src = path + "spacer.gif" img[16] = new Image (); img[16].src = path + "goldline-tile.gif" img[17] = new Image (); img[17].src = path + "btm-lft-corner.gif" img[18] = new Image (); img[18].src = path + "btm-rght-corner.gif" img[19] = new Image (); img[19].src = path + "up-lft-corner.gif" img[20] = new Image (); img[20].src = path + "uprght-corner.gif" ready = true; if (ready == true && splashWin && !splashWin.closed) { splashWin.close(); } } } function winStat (){ window.defaultStatus = "Welcome to the Ridgewood Volunteer Ambulance Corps Website" return true; } function imgSwap (n,i) { if (ready == true) { document.images[n].src = img[i].src; } } function setMsg(msg) { window.status = msg; return true; }