﻿window.onload = Bootstrap_Menu;
var intid = setInterval(function () { Check_Loaded() }, 500);
var bootstrapped = false;

function Check_Loaded() {
    if (bootstrapped == false) {
        Bootstrap_Menu();
    }
    else {
        clearInterval(intid);
    }
}

function Bootstrap_Menu() {
    bootstrapped = true;
    var elements = document.getElementsByTagName("*");
    for (var i = 0; i < elements.length; i++) {
        var thiselement = elements[i];
        if (thiselement.className == "Image_Navigator") {
            var image = new Image();
            image.src = thiselement.src.replace(".png", "_Over.png");
            thiselement.onmouseover = mouseoverimagenav;
            thiselement.onmouseout = mouseoutimagenav;
        }
    }
}
var original;
var first = 0;
function mouseoverimagenav() {
    if (first == 0) {
        first = 1;
    }
    document.body.style.cursor = "Pointer";
    original = this.src;
    this.src = this.src.replace(".png", "_Over.png");
}
function mouseoutimagenav() {
    if (first == 1) {
        this.src = original;
        document.body.style.cursor = "Auto";
    }
}
