/* check to ensure that rollovers work */ 
if (document.images) 
{ 
/* preload image */ 
buttonoff = new Image(); 
buttonoff.src = "images/home1.gif"; 
buttonon = new Image(); 
buttonon.src = "images/home2.gif"; 
} 
{ 
/* preload image */ 
button1off = new Image(); 
button1off.src = "images/post1.gif"; 
button1on = new Image(); 
button1on.src = "images/post2.gif"; 
} 
{ 
/* preload image */ 
button2off = new Image(); 
button2off.src = "images/map1.gif"; 
button2on = new Image(); 
button2on.src = "images/map2.gif"; 
}
/* function to set image on state */ 
function On(imageName) 
{ 
 if (document.images) 
  { 
    document[imageName].src = eval(imageName+"on.src"); 
   } 
} 
 
/* function to reset image back to off state */ 
function Off(imageName) 
{ 
 if (document.images) 
   { 
    document[imageName].src = eval(imageName+"off.src"); 
    } 
} 
//--> 
