﻿
/*
    Computer Science Group, LLC
    225-766-2397 office
    225-205-0263 cell
    darrell@computersciencegroup.com
    Copyright © 2010 Computer Science Group, LLC, All rights reserved.
*/

var ofilterString = "progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)";

function bigToolbarTdMouseDown(opElement) {if (opElement.children[0].style.filter == "") { opElement.className = "csgBigToolbarTdMouseDown"; }  }
function bigToolbarTdMouseOut(opElement) { if (opElement.children[0].style.filter == "") { opElement.className = "csgBigToolbarTdMouseOut"; } }
function bigToolbarTdMouseOver(opElement) { if (opElement.children[0].style.filter == "") { opElement.className = "csgBigToolbarTdMouseOver"; } }
function bigToolbarTdMouseUp(opElement) { if (opElement.children[0].style.filter == "") { opElement.className = "csgBigToolbarTdMouseUp"; } }
function bigToolbarTdClick(opElement)
{
    if (bigToolbarTdIsDisabled(opElement) == false)
    {
        if (window.windowBigToolbarTdClick) { window.windowBigToolbarTdClick(opElement); }
    }
}

//bigToolbarTdSetDisabled(<opElement>, [<opDisabled>])
//12/04/2010
//<opElement> is a TD element that contains an image (children[0]) and text (children[1]).
//[<opDisabled>] - if this is true, the element is diabled.
//NOTE: the default is to enable
function bigToolbarTdSetDisabled(opElement, opDisabled)
{
    if (opElement)
    {
        if (opDisabled) { opElement.children[0].style.filter = ofilterString; }
        else { opElement.children[0].style.filter = ""; } 
    }
}

function bigToolbarTdIsDisabled(opElement) { return (opElement.children[0].style.filter == ofilterString); }

