﻿// JScript File

function ToggleColourMouseOver(theButton, theme)
{
    var button = document.getElementById('ctl00$Content$' + theButton);
    if(button != null)
    { 
        switch (theme)
        {
            case 'HR':              
                button.style.backgroundColor = "#555555";
                button.style.color = "#7ab800";
                button.style.cursor = "hand";
              break;
            default:
                button.style.backgroundColor = "#95b4cf";
                button.style.color = "#2c4c97";
                button.style.cursor = "hand";
        }
    }
}

function ToggleColourMouseOut(theButton, theme)
{
    var button = document.getElementById('ctl00$Content$' + theButton);
    if(button != null)
    { 
        switch (theme)
        {
            case 'HR': 
                button.style.backgroundColor = "#7ab800";
                button.style.color = "#555555";
                button.style.cursor = "default";
              break;
            default:
                button.style.backgroundColor = "#2c4c97";
                button.style.color = "ffffff";
                button.style.cursor = "default";
        }
    }
}