﻿function OpenWindow(url) {
    window.open(url);
}

function displayElement(name) {
    if (name != 'divAccess') {
        hideElement('divAccess');
    }
    document.getElementById(name).style.display = 'block';
    document.getElementById(name.replace('div', 'td')).className = "selectedHeader";
}

function hideElement(name) {
    if (name != 'divAccess') {
        displayElement('divAccess');
    }
    document.getElementById(name).style.display = 'none';
    document.getElementById(name.replace('div', 'td')).className = "accordionHeader";
}

function DisplayAccessCareerDescription() {
    displayElement('divAccess');
    /*    $("#divAccess").animate({
    width: "95%",
    marginTop: "0.4in",
    marginLeft: "0.1in",
    borderWidth: "1px"
    }, 1500);*/
}

function HideAccessCareerDescription() {
    //    $("#divAccess").fadeOut("fast");
    hideElement('divAccess');
};


function DisplayACCareerDescription() {
    //    $("#divAC").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divAC');
}

function HideACCareerDescription() {
    //    $("#divAC").fadeOut("fast");
    hideElement('divAC');
};

function DisplayBCCareerDescription() {
    //    $("#divBC").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divBC');
}

function HideBCCareerDescription() {
    //    $("#divBC").fadeOut("fast");
    hideElement('divBC');
};

function DisplayGCCareerDescription() {
    //    $("#divGC").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divGC');
}

function HideGCCareerDescription() {
    //    $("#divGC").fadeOut("fast");
    hideElement('divGC');
};

function DisplayLRCareerDescription() {
    //    $("#divLR").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divLR');
}

function HideLRCareerDescription() {
    //    $("#divLR").fadeOut("fast");
    hideElement('divLR');
};

function DisplayCHCareerDescription() {
    //    $("#divCH").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divCH');
}

function HideCHCareerDescription() {
    //    $("#divCH").fadeOut("fast");
    hideElement('divCH');
};

function DisplaySMCareerDescription() {
    //    $("#divSM").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divSM');
}

function HideSMCareerDescription() {
    //    $("#divSM").fadeOut("fast");
    hideElement('divSM');
};

function DisplayTCCareerDescription() {
    //    $("#divTC").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divTC');
}

function HideTCCareerDescription() {
    //    $("#divTC").fadeOut("fast");
    hideElement('divTC');
};

//function DisplayTCCareerDescription() {
//    $("#divTC").animate({
//        width: "95%",
//        marginTop: "0.4in",
//        marginLeft: "0.1in",
//        borderWidth: "1px"
//    }, 1500);
//}

//function HideTCCareerDescription() {
//    $("#divTC").fadeOut("fast");
//};

function DisplayBBCareerDescription() {
    //    $("#divBB").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divBB');
}

function HideBBCareerDescription() {
    //    $("#divBB").fadeOut("fast");
    hideElement('divBB');
};

function DisplayGBCareerDescription() {
    //    $("#divGB").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divGB');
}

function HideGBCareerDescription() {
    //    $("#divGB").fadeOut("fast");
    hideElement('divGB');
}

function DisplayPVCareerDescription() {
    //    $("#divPV").animate({
    //        width: "95%",
    //        marginTop: "0.4in",
    //        marginLeft: "0.1in",
    //        borderWidth: "1px"
    //    }, 1500);
    displayElement('divPV');
}

function HidePVCareerDescription() {
    //    $("#divPV").fadeOut("fast");
    hideElement('divPV');
};
