<!--Preload Nav Bar Buttons

if (document.images) {

    homeon = new Image();
    homeon.src = "images/home_hover.png";

    homeoff = new Image();
    homeoff.src = "images/home_off.png";

    abouton = new Image();
    abouton.src = "images/about_hover.png";

    aboutoff = new Image();
    aboutoff.src = "images/about_off.png";

    resumeon = new Image();
    resumeon.src = "images/resume_hover.png";

    resumeoff = new Image();
    resumeoff.src = "images/resume_off.png";

    portfolioon = new Image();
    portfolioon.src = "images/portfolio_hover.png";

    portfoliooff = new Image();
    portfoliooff.src = "images/portfolio_off.png";

    contacton = new Image();
    contacton.src = "images/contact_hover.png";

    contactoff = new Image();
    contactoff.src = "images/contact_off.png";

    photoson = new Image();
    photoson.src = "images/photos_hover.png";

    photosoff = new Image();
    photosoff.src = "images/photos_off.png";

    portlefton = new Image();
    portlefton.src = "images/portLeftOn.png";

    portleftoff = new Image();
    portleftoff.src = "images/portLeftOff.png";

    portrighton = new Image();
    portrighton.src = "images/portRightOn.png";

    portrightoff = new Image();
    portrightoff.src = "images/portRightOff.png";

    portleftpixon = new Image();
    portleftpixon.src = "images/portLeftPix.png";

    portleftpixoff = new Image();
    portleftpixoff.src = "images/portLeftOff.png";

    portrightpixon = new Image();
    portrightpixon.src = "images/portRightPix.png";

    portrightpixoff = new Image();
    portrightpixoff.src = "images/portRightOff.png";

}

function reviewWindow(url, name, w, h) {
    var left = Math.round((screen.availWidth - w)/2);
    var top = Math.round((screen.availHeight-h)/2);
    win = window.open(url, name, "scrollbars=yes,toolbar=no,resizable=yes,menubar=no" + ",width=" + w + ",height=" + h + ",left=" + left + ",top=" + top);
    win.location.href = url;
    win.focus();
}

// -->

