﻿function mouseOverMenu(item) {
    setCursorSelect();
    document.getElementById(item).style.textDecoration = 'underline';
}

function mouseOutMenu(item) {
    setCursorDefault();
    document.getElementById(item).style.textDecoration = 'none';
}

function setCursorSelect() {
    document.body.style.cursor = 'pointer';
}

function setCursorDefault() {
    document.body.style.cursor = 'default';
}

//Select a menu item.
function selectSubMenu(menuItem) {
    setCursorSelect();
    document.getElementById(menuItem).style.color = '#AA0000';
}

//Unselect a menu item.
function unSelectSubMenu(menuItem) {
    setCursorDefault();
    document.getElementById(menuItem).style.color = '#222222';
}

//Display the correct picture indicating which NZ office an OCS contact is associated with.
function showOfficeForOCSContact(office) {
    document.getElementById("imgPersonalSupportContactsWatermark").src = "Images/PresenceOffice.png";
    if (office == 'Auckland') {
        document.getElementById("imgPersonalSupportContactsWatermark").src = "Images/PresenceOfficeAuckland.png";
    }
    else if (office == 'Wellington') {
        document.getElementById("imgPersonalSupportContactsWatermark").src = "Images/PresenceOfficeWellington.png";
    }
    else if (office == 'Christchurch') {
        document.getElementById("imgPersonalSupportContactsWatermark").src = "Images/PresenceOfficeChristchurch.png";
    }
}

function UpdatePatchesIFrame(type) {
    if (type == 'NICE') {
        //document.getElementById("iframePatches").src = "./Docs/NicePatches.pdf";
        document.getElementById('trAvaya').style.display = "none";
        document.getElementById('trNICE').style.display = "block";
    }
    else if (type == 'Avaya') {
        document.getElementById('trNICE').style.display = "none";
        document.getElementById('trAvaya').style.display = "block";
        //document.getElementById("iframePatches").src = "./Docs/ACM Compatibility Matrix.pdf";
    }
}

