var flag = false;

if (document.images)
{
	img1off = new Image(); img1off.src = "../graphics/menu/menu_about.gif";
	img2off = new Image(); img2off.src = "../graphics/menu/menu_seminars.gif";
	img3off = new Image(); img3off.src = "../graphics/menu/menu_consultations.gif";
	img4off = new Image(); img4off.src = "../graphics/menu/menu_schedule.gif";
	img5off = new Image(); img5off.src = "../graphics/menu/menu_testimonials.gif";
	img6off = new Image(); img6off.src = "../graphics/menu/menu_singersresources.gif";
	img7off = new Image(); img7off.src = "../graphics/menu/menu_contact.gif";
	img8off = new Image(); img8off.src = "../graphics/menu/menu_aboutcindy.gif";
	img10off = new Image(); img10off.src = "../graphics/menu/menu_send.gif";
	img11off = new Image(); img11off.src = "../graphics/menu/menu_back.gif";
	img12off = new Image(); img12off.src = "../graphics/menu/menu_enter.gif";
}


function imageLoad() {  // called with onLoad()
    if (document.images) {
        img1on = new Image(); img1on.src = "../graphics/menu/menuactive_about.gif";
        img2on = new Image(); img2on.src = "../graphics/menu/menuactive_seminars.gif";
        img3on = new Image(); img3on.src = "../graphics/menu/menuactive_consultations.gif";
        img4on = new Image(); img4on.src = "../graphics/menu/menuactive_schedule.gif";
        img5on = new Image(); img5on.src = "../graphics/menu/menuactive_testimonials.gif";
        img6on = new Image(); img6on.src = "../graphics/menu/menuactive_singersresources.gif";        
        img7on = new Image(); img7on.src = "../graphics/menu/menuactive_contact.gif";
        img8on = new Image(); img8on.src = "../graphics/menu/menuactive_aboutcindy.gif";        
        img10on = new Image(); img10on.src = "../graphics/menu/menuactive_send.gif";        
        img11on = new Image(); img11on.src = "../graphics/menu/menuactive_back.gif";        
        img12on = new Image(); img12on.src = "../graphics/menu/menuactive_enter.gif";        

        return (flag = true);  // set the flag and let the function know it can work
    }
}


function rollIn(imgName) {
    if (document.images && (flag == true)) {
        document[imgName].src = eval(imgName + "on.src");
    }
}

function rollOut(imgName) {  // the normal onMouseOut function
    if (document.images && (flag == true)){
        document[imgName].src = eval(imgName + "off.src");
    }
}
