﻿function slideOn(obj, nobj, all, id,style) {
    for (var i = 1; i < all + 1; i++) {
        document.getElementById(obj + "_" + i).className = style + "Off";
        if (nobj.length > 0) { document.getElementById(nobj + "_" + i).style.display = "none"; }
    }
    document.getElementById(obj + "_" + id).className = style + "On";
    if (nobj.length > 0) { document.getElementById(nobj + "_" + id).style.display = "block"; }
}

function subNavOff(obj,all, style) {
    for (var i = 1; i < all + 1; i++) {
        document.getElementById(obj + "_" + i).className = style + "Off";
    }
}
