var path = "../images/" var img = new Array(12); 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"; ready = true; } } 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; }