﻿function switchBoxes(boxId, indicatorId, status) {
    var divCat = document.getElementById(boxId);
    var divTri = document.getElementById(indicatorId);

    if (status == "show") {
        Effect.Appear(boxId);
        //divCat.style.display = "block";
        divTri.className = "divArrowDown";
    } else {
        Effect.Fade(boxId);
        //divCat.style.display = "none";
        divTri.className = "divArrowRight";
    }
}
function switchs(boxId, indicatorId,box2, status) {
    var divCat = document.getElementById(boxId);
    var divTri = document.getElementById(indicatorId);
    var divEd = document.getElementById(box2);

    if (status == "show") {
        Effect.Appear(boxId);
        divEd.style.display = "none";
        divTri.style.display = "inline";
    } else {
        Effect.Fade(boxId);
        divTri.style.display = "none";
        divEd.style.display = "inline";
    }
}
function RowToggle(row, bHover) {
    if (bHover) {
        row.style.backgroundColor = '#ece9d8';
    }
    else {
        row.style.backgroundColor = '';
    }
}

function switchDiv(boxId, indicatorId,imgRight,imgDown) {
    var divCat = document.getElementById(boxId);
    var divTri = document.getElementById(indicatorId);
    var imgr = document.getElementById(imgRight);
    var imgd = document.getElementById(imgDown);

    if (divCat.style.display == "none") {
        Effect.Appear(boxId);
        imgr.style.display = "none";
        imgd.style.display = "inline";
        divTri.className = "divDown";
    } else {
        Effect.Fade(boxId);
        imgd.style.display = "none";
        imgr.style.display = "inline";
        divTri.className = "divRight";
    }
}
function setfocus(Element) {
    if (document.forms.length > 0) {
        document.forms[0][Element].focus()
    }
}