﻿if (document.images) {
    var searchon = new Image(203, 56); searchon.src = "/images/navigation/search_on.png";
    var searchoff = new Image(203, 56); searchoff.src = "/images/navigation/search.png";

    var reportcardson = new Image(190, 56); reportcardson.src = "/images/navigation/reportcards_on.png";
    var reportcardsoff = new Image(190, 56); reportcardsoff.src = "/images/navigation/reportcards.png";

    var progressreportson = new Image(190, 56); progressreportson.src = "/images/navigation/progressreports_roll_on.png";
    var progressreportsoff = new Image(190, 56); progressreportsoff.src = "/images/navigation/progressreports.png";

    var newsandnoteson = new Image(190, 56); newsandnoteson.src = "/images/navigation/newsandnotes_on.png";
    var newsandnotesoff = new Image(190, 56); newsandnotesoff.src = "/images/navigation/newsandnotes.png";

    var aboutuson = new Image(207, 56); aboutuson.src = "/images/navigation/aboutus_on.png";
    var aboutusoff = new Image(207, 56); aboutusoff.src = "/images/navigation/aboutus.png";
}

function over(imgName) {
    if (document.images) {
        imgOn = eval(imgName + "on.src");
        document.getElementById(imgName).src = imgOn;
    }
}

function out(imgName) {
    if (document.images) {
        imgOff = eval(imgName + "off.src");
        document.getElementById(imgName).src = imgOff;
    }
}

function winpic(URL, w, h) {
    swidth = (screen.width - w) / 2;
    sheight = (screen.availHeight - h) / 2
    var winpic = window.open(URL, 'winpic', 'width=' + w + ',height=' + h + ',top=' + sheight + ',left=' + swidth + ',resizable=no,scrollbars=no,menubar=no,location=no');
    winpic.focus();
    return false;
}
function winpic_noreturn(URL, w, h) {
    swidth = (screen.width - w) / 2;
    sheight = (screen.availHeight - h) / 2
    var winpic_noreturn = window.open(URL, 'winpic', 'width=' + w + ',height=' + h + ',top=' + sheight + ',left=' + swidth + ',resizable=no,scrollbars=no,menubar=no,location=no');
    winpic_noreturn.focus();
}
