if (document.images){
     sub1off= new Image(90,16);
     sub1off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/staffstudents-0.gif";
     sub1on= new Image(90,16); 
     sub1on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/staffstudents-1.gif"; 
     
     sub2off= new Image(78,16);
     sub2off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/studentoffice-0.gif";
     sub2on= new Image(78,16); 
     sub2on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/studentoffice-1.gif";
     
     sub3off= new Image(57,16);
     sub3off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/helpdesk-0.gif";
     sub3on= new Image(57,16); 
     sub3on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/helpdesk-1.gif";
     
     sub4off= new Image(109,16);
     sub4off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/developmentoffice-0.gif";
     sub4on= new Image(109,16); 
     sub4on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/developmentoffice-1.gif";

     sub5off= new Image(20,16);
     sub5off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/csg-0.gif";
     sub5on= new Image(20,16); 
     sub5on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/csg-1.gif";
     
     sub6off= new Image(34,16);
     sub6off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/fipras-0.gif";
     sub6on= new Image(34,16); 
     sub6on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/fipras-1.gif";
     
     sub7off= new Image(48,16);
     sub7off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/facilities-0.gif";
     sub7on= new Image(48,16); 
     sub7on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/facilities-1.gif";
     
     sub8off= new Image(48,16);
     sub8off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/hosunit-0.gif";
     sub8on= new Image(48,16); 
     sub8on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/hosunit-1.gif";
     
     sub9off= new Image(34,16);
     sub9off.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/stores-0.gif";
     sub9on= new Image(34,16); 
     sub9on.src="/system/modules/au.edu.unsw.cse.new/resources/submenu/people/stores-1.gif";
}

function submenuTurnOn(imgName){
   if (document.images){
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
   }
 }

function submenuTurnOff(imgName){
   if (document.images){
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
   }
}
