function treemenu(id,idBlok,img_dir,img_min,img_plus,img_open,img_close){
if(document.getElementById(idBlok).style.display == 'block'){
document.getElementById(idBlok).style.visibility = 'hidden';
document.getElementById(idBlok).style.display = 'none';
document.getElementById(id).innerHTML =
"<img src=\""+img_dir+img_plus+"\"><img src='"+img_dir+img_close+"' class=\"treemenu\">";
}else{
document.getElementById(idBlok).style.visibility = 'visible';
document.getElementById(idBlok).style.display = 'block';
document.getElementById(id).innerHTML =
"<img src=\""+img_dir+img_min+"\"><img src='"+img_dir+img_open+"' class=\"treemenu\">";
}
} |