var preloadFlag = false;

//preload
function doPreload() {
    if (document.images) {
		menu_02_on = new Image(); menu_02_on.src = baseurl + "menu_02_on.jpg";

		menu_02a_on = new Image(); menu_02a_on.src = baseurl + "menu_02a_on.jpg";
		menu_02b_on = new Image(); menu_02b_on.src = baseurl + "menu_02b_on.jpg";
		menu_02c_on = new Image(); menu_02c_on.src = baseurl + "menu_02c_on.jpg";
        menu_02d_on = new Image(); menu_02d_on.src = baseurl + "menu_02d_on.jpg";
		menu_02e_on = new Image(); menu_02e_on.src = baseurl + "menu_02e_on.jpg";
		menu_02f_on = new Image(); menu_02f_on.src = baseurl + "menu_02f_on.jpg";

	    return (preloadFlag = true);
    }
}
if (document.images) {
		menu_02_off = new Image(); menu_02_off.src = baseurl + "menu_02_off.jpg";

		menu_02a_off = new Image(); menu_02a_off.src = baseurl + "menu_02a_off.jpg";
		menu_02b_off = new Image(); menu_02b_off.src = baseurl + "menu_02b_off.jpg";
		menu_02c_off = new Image(); menu_02c_off.src = baseurl + "menu_02c_off.jpg";
        menu_02d_off = new Image(); menu_02d_off.src = baseurl + "menu_02d_off.jpg";
		menu_02e_off = new Image(); menu_02e_off.src = baseurl + "menu_02e_off.jpg";
		menu_02f_off = new Image(); menu_02f_off.src = baseurl + "menu_02f_off.jpg";
}

//rollover code
function rollIn(imgName) {
    if (document.images && (preloadFlag == true)) {
        document[imgName].src = eval(imgName + "_on.src");
    }
}

function rollOut(imgName) {
    if (document.images){
        document[imgName].src = eval(imgName + "_off.src");
    }
}