﻿// Drop Down Menu Function
function hover() {
    try {
        var menuElements = document.getElementById("ctl00_PageWrapper_tm_tm").getElementsByTagName("LI");
        for (var i = 0; i < menuElements.length; i++) {

            // Remove dotted button border
            var links = menuElements[i].getElementsByTagName("a");
            for (var x = 0; x < links.length; x++) {
                links[x].onfocus = function() {
                    if (this.blur)
                        this.blur();
                }
            }

            menuElements[i].onmouseover = function() {
                this.className += "over";
                var desc = this.getElementsByTagName("div");
                var idx = 0;
                var curr = this;

            }
            menuElements[i].onmousedown = function() {
                return null;
            }
            menuElements[i].onmouseout = function() {
                this.className = "";
            }
        }
    }
    catch (e) {

    }
}


// Submenu Functions
function rotate(id) {
    try {
        thisMovie(id).startRotate();
    }
    catch (e) {
        //
    }

}

function stop(id) {
    try {
        thisMovie(id).stopRotate();
    }
    catch (e) {
        //
    }
}

function thisMovie(movieName) {
    try {
        if (navigator.appName.indexOf("Microsoft") != -1) {
            return document[movieName];
        } else {
            return document[movieName];
        }
    }
    catch (e) {
        //
    }
} 