var accItem2 = document.getElementsByClassName('accordionItem2');
var accHD = document.getElementsByClassName('accordionItemHeading2');
for (i = 0; i < accHD.length; i++) {
accHD[i].addEventListener('click', toggleItem, false);
}
function toggleItem() {
var itemClass = this.parentNode.className;
for (i = 0; i < accItem2.length; i++) {
accItem2[i].className = 'accordionItem2 close';
}
if (itemClass == 'accordionItem2 close') {
this.parentNode.className = 'accordionItem2 open';
}
}