var browserType;

if (document.layers) { browserType = "nn4" }
if (document.all) { browserType = "ie" }
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
    browserType = "gecko"
}


function Underline(obj, doIT) {

    if (doIT == 'true') {
        obj.style.borderBottom = '1px dashed #0B4F9B';
    }
    else {
        obj.style.borderBottom = 'none';
    }
}

function ColorizeButton(obj, toOrig) {
    if (toOrig == 'false') {
        obj.style.color = '#0B4F9B';
        obj.style.border = '1px dotted #0B4F9B';
    }
    else {
        obj.style.color = 'black';
        obj.style.border = 'dashed 1px black';
    }
}

function ColorizeMenu(obj, doIT) {
    if (doIT == 'true') {
        obj.style.color = '#FBC212';
    }
    else {
        obj.style.color = '#0B4F9B';
    }
}

function ColorizeMenuSpecial(obj, doIT, color) {
    //if (doIT == 'true')
    //{
    obj.style.color = color;
    //}
    //else
    //{
    //	obj.style.color = color;
    //}
}

function ColorizeSubMenu(obj, doIT) {
    if (doIT == 'true') {
        obj.style.color = '#FBC212';
    }
    else {
        obj.style.color = '#898989';
    }
}

function hoverMenu(obj, colorFr, colorBg, cursor, fontweight) {
    if (colorBg != '') {
        obj.style.backgroundColor = colorBg;
        obj.style.color = colorFr;
        obj.style.fontWeight = fontweight;
    }
    if (cursor != '')
        obj.style.cursor = cursor;
}

function toggleVisibility(elementId) {
    if (browserType == "gecko")
        document.poppedLayer =
         eval('document.getElementById(elementId)');
    else if (browserType == "ie")
        document.poppedLayer =
        eval('document.getElementById(elementId)');
    else
        document.poppedLayer =
        eval('document.layers[elementId]');

    if (document.poppedLayer.style.display == "none")
        document.poppedLayer.style.display = "inline";
    else
        document.poppedLayer.style.display = "none";
}

