﻿/* 
SUB MENU ELEMENT ARRAYS
You can add or remove these values to enable them to display in the sub menu list. 
However - be caregul of the array length, as the menu element does not wrap.
*/
/*
var aboutMenu = new Array()
aboutMenu[0] = "<a href='InteriorRight.htm'>MVV</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
aboutMenu[1] = "<a href='InteriorRight.htm'>Corporate Info</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
aboutMenu[2] = "<a href='InteriorRight.htm'>News</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
aboutMenu[3] = "<a href='InteriorRight.htm'>Events</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
aboutMenu[4] = "<a href='InteriorRight.htm'>Foundation</a>";

var yourVisitMenu = new Array()
yourVisitMenu[0] = "<a href='InteriorRight.htm'>Patient Info</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[1] = "<a href='InteriorRight.htm'>Visitors Info</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[2] = "<a href='InteriorRight.htm'>Billing Info</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[3] = "<a href='InteriorRight.htm'>FAQs</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[4] = "<a href='InteriorRight.htm'>Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[5] = "<a href='InteriorRight.htm'>Maps & Directions</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[6] = "<a href='InteriorRight.htm'>Cafeteria</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
yourVisitMenu[7] = "<a href='InteriorRight.htm'>Gift Shop</a>";

var findAServiceMenu = new Array()
findAServiceMenu[0] = "<a href='Service.htm'>Women's</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[1] = "<a href='Service.htm'>Surgical</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[2] = "<a href='Service.htm'>Outpatient</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[3] = "<a href='Service.htm'>Community</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[4] = "<a href='Service.htm'>Surgical Weight Loss</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[5] = "<a href='Service.htm'>Convenient Care</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[6] = "<a href='Service.htm'>Schneck Cancer Center</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[7] = "<a href='Service.htm'>Women's DI Center</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
findAServiceMenu[8] = "<a href='Service.htm'>Bone & Joint Center</a>";

var givingBackMenu = new Array()
givingBackMenu[0] = "<a href='InteriorLeft.htm'>Foundation</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
givingBackMenu[1] = "<a href='InteriorLeft.htm'>Volunteer</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
givingBackMenu[2] = "<a href='InteriorLeft.htm'>Scholarships</a>";

var careersMenu = new Array()
careersMenu[0] = "<a href='InteriorLeft.htm'>Apply For A Job</a>&nbsp;&nbsp;|&nbsp;&nbsp;";
careersMenu[1] = "<a href='InteriorLeft.htm'>Job Opportunities</a>";
*/

/* 
SHOW-HIDE SUB MENU METHODS
*/

var Menu_PrevItem = null;

function showSub(item) {
    if (Menu_PrevItem != null) {
        document.getElementById("menusubitem_" + Menu_PrevItem).style.display = "none";
    }

    if (item != null) {
        document.getElementById("menusubitem_" + item).style.display = "block";
        Menu_PrevItem = item;
    }
    else {
        Menu_PrevItem = null;
    }
 
}

function hideSub() {
    var el = document.getElementById("menusub");
    el.style.display = "none";
}

/* 
DROP DOWN MENU METHODS
*/


function showDropDown() {
    
    var el = document.getElementById("menutop");
    var menu = document.getElementById("dropdownmenu");
    

    var pObj = Position.get(el);
    
    Position.set(menu, pObj.left + 95, pObj.top + 25);

    menu.style.display = "block";
}

function hideDropDown() {
    var menu = document.getElementById("dropdownmenu");
    
    menu.style.display = "none";
}


/* MENU ROLLOVER */

function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
    }
}

function MM_findObj(n, d) { //v4.01
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}






