﻿var rot = new Array('rotator-operator','rotator-customer','rotator-other');
var count_rot = 1;

function hidetor(div){
for(h=0;h<rot.length;h++){
if(rot[h] != div){ disp = 'none'; aclass = ''; }else{ disp = 'block'; aclass = 'active'; }
document.getElementById('link-' + rot[h]).className=aclass;
document.getElementById(rot[h]).style.display=disp;
}

}

function rotator(rotdiv){
if(rot.length == count_rot){ count_rot = 0; }
hidetor(rotdiv[count_rot]);
count_rot++;
}

function opensection(div){
hidetor(div);
clearTimeout(repeator);
}


function openmenu(id){
menuid = document.getElementById(id);
if(menuid.style.display == 'block' || menuid.style.display == ""){
menuid.style.display='none';
}
else{
menuid.style.display='block';
}

return false;

}

repeator = window.setInterval('rotator(rot)', 4000);
