function click_menu(menu_id){ img_obj = document.images["img_menu_"+menu_id]; if(img_obj.src.indexOf("collapse_menu2.gif")>=0){ img_obj.src = "/images/collapse_menu1.gif"; img_obj.alt = "Expand" document.getElementById("sub_menu_"+menu_id).style["display"] = "none"; }else{ img_obj.src = "/images/collapse_menu2.gif"; img_obj.alt = "Collapse" document.getElementById("sub_menu_"+menu_id).style["display"] = "block"; } } document.write('
Expand Home
Expand About
');