// sw is switch variable to define onoff mode of header menu button. function menuOver(id) { document.getElementById(id).src ="graphics/"+id+"-over.jpg"; } function menuOut(id,sw) { document.getElementById(id).src ="graphics/"+id+"-"+sw+".jpg"; } function doOver(id){ document.getElementById(id).style.backgroundColor="#FFFFFF"; } function doOut(id){ document.getElementById(id).style.backgroundColor="#ebebed"; }