function initialise(a) {

$("#chkPass").text("radio_button_checked"), $("#chkFail").text("radio_button_checked"), $("#chkPending").text("radio_button_checked");
var b = JSON.parse(a);
for (console.log("suits: ", b), console.log("suits: ", b.length), i = 0; i < b.length; i++) {
    var c = "#" + b[i] + "Accordion";
    console.log("acc: ", c), $(c).text("arrow_drop_down")
}
var d = $('[id^="Exception_"]').get();
for (i = 0; i < d.length; i++) {
    var e = "#" + d[i].id;
    $(e).hide()
}
$("html, body").animate({ scrollTop: 0 }, 300), showToTopButton()

}

function showToTopButton() { $(window).scroll(function() { $(this).scrollTop() > 200 ? $(“.goTop”).fadeIn(500) : $(“.goTop”).fadeOut(500) }) }

function navigateToTop() { $(“.goTop”).click(function(a) { $(“html, body”).animate({ scrollTop: 0 }, slow), a.preventDefault() }) }

function openNav() { $(“#slideMenu”).width(350) }

function closeNav() { $(“#slideMenu”).width(0) }

function toggleCheck(a) {

if (unCheckText = "radio_button_unchecked", checkText = "radio_button_checked", "P" === a) {
    var b = $('[id^="Boundary_passed_"]').get();
    if ($("#chkPass").text() === checkText)
        for ($("#chkPass").text(unCheckText), i = 0; i < b.length; i++) {
            var c = "#" + b[i].id;
            $(c).hide("slow")
        } else
            for ($("#chkPass").text(checkText), i = 0; i < b.length; i++) {
                var c = "#" + b[i].id;
                $(c).show("slow")
            }
}
if ("F" === a) {
    var d = $('[id^="Boundary_failed_"]').get();
    if ($("#chkFail").text() === checkText)
        for ($("#chkFail").text(unCheckText), i = 0; i < d.length; i++) {
            var c = "#" + d[i].id;
            $(c).hide("slow")
        } else
            for ($("#chkFail").text(checkText), i = 0; i < d.length; i++) {
                var c = "#" + d[i].id;
                $(c).show("slow")
            }
}
if ("W" === a) {
    var e = $('[id^="Boundary_pending_"]').get();
    if ($("#chkPending").text() === checkText)
        for ($("#chkPending").text(unCheckText), i = 0; i < e.length; i++) {
            var c = "#" + e[i].id;
            $(c).hide("slow")
        } else
            for ($("#chkPending").text(checkText), i = 0; i < e.length; i++) {
                var c = "#" + e[i].id;
                $(c).show("slow")
            }
}

}

function navigateToSuit(a) {

var b = "#Main_" + a,
    c = 0;
c = 110 == $(b).offset().top ? 60 : $(b).offset().top, $("html,body").animate({ scrollTop: c }, "slow"), closeNav()

}

function toggleAccordion(a) {

downArrow = "arrow_drop_down", upArrow = "arrow_drop_up";
var b = "#" + a + "Accordion";
$(b).text() == downArrow ? $(b).text(upArrow) : $(b).text(downArrow)

}

function showErrorDetails(a, b) {

var c = "#Exception_" + a,
    d = "#Boundary_" + b + "_" + a;
"failed" == b && ($(d).toggleClass("errorBoundary"), $(c).toggle()), "pending" == b && ($(d).toggleClass("warningBoundary"), $(c).toggle())

}