var revert = new Array();
var flipped = new Array();
// var inames must be defined in Layouter!

// Preloading
function imagePreload(lang) {
    if (document.images) {
        for (i = 0; i< inames.length; i++) {
            flipped[i] = new Image();
            flipped[i].src = "images/template/nav/" + inames[i] + ".over." + lang + ".png";
        }
    }
}

function imageOver(num) {
    if (document.images) {
        revert[num] = document.images[inames[num]].src;
        document.images[inames[num]].src = flipped[num].src;
    }
}
function imageOut(num) {
    if (document.images) document.images[inames[num]].src = revert[num];
}
