document.HSMENU = new Object();
document.HSMENU.menu = new Object();
document.HSMENU.menu.dropdown = new Array();
var currentMenu = -1;
function hideMenuFAQ() {
document.all('FAQMENU').style.display = 'none';
}
function HSMENU_setCurrentMenu(ditem) {
currentMenu = ditem; 
}
function HSMENU_initializeToolbar(){
var i;
if (document.all) {
for(i = 0; i < document.all('container').all.length; i++){
if ((document.all('container').all[i].className == 'header') || (document.all('container').all[i].className == 'links')){
document.HSMENU.menu.dropdown[document.HSMENU.menu.dropdown.length] = document.all('container').all[i];
}
}
} else if (document.getElementsByTagName && document.getElementById){
var contained = document.getElementById('container').getElementsByTagName('div');
for(i = 0; i < contained.length; i++){
if ((contained[i].getAttribute('class') == 'header') || (contained[i].getAttribute('class') == 'links')){
document.HSMENU.menu.dropdown[document.HSMENU.menu.dropdown.length] = contained[i];
}
}
}
}
function HSMENU_collapse(item){
if (item == 100) {
var faqContainer = document.all('FAQMENU').all('FAQContent');
if (faqContainer.style.display == 'none') {
faqContainer.style.display = '';
} else {
faqContainer.style.display = 'none';
}
} else if (item >= 0) {
if(document.HSMENU.menu.dropdown.length){
if (document.HSMENU.menu.dropdown[item+1].style.display == 'none'){
document.HSMENU.menu.dropdown[item+1].style.display = '';
document.images[document.HSMENU.menu.dropdown[item].id].src = '/~site/images/accent/accent_minus_red_10x10.gif';
} else {
document.HSMENU.menu.dropdown[item+1].style.display = 'none';
document.images[document.HSMENU.menu.dropdown[item].id].src = '/~site/images/accent/accent_plus_red_10x10.gif';
}
}
}
}
