
if (document.images) {  // If the image object exists    
      // Preload images
        off = new Array(8)
        on = new Array(8)
	off[0] = new Image();          
    off[0].src = "images/btnreservations.gif"; 
	off[1] = new Image();          
    off[1].src = "images/btnwebmaster.gif";
	off[2] = new Image();          
    off[2].src = "images/btnemailus.gif";
	off[3] = new Image();          
    off[3].src = "images/btnreservations.gif";
	off[4] = new Image();          
    off[4].src = "images/btnrates.gif";
	off[5] = new Image();          
    off[5].src = "images/btnsitenews.gif";
	
	on[0] = new Image();          
    on[0].src = "images/btnreservationson.gif";    
	on[1] = new Image();          
    on[1].src = "images/btnwebmasteron.gif";
	on[2] = new Image();          
    on[2].src = "images/btnemailuson.gif";
	on[3] = new Image();          
    on[3].src = "images/btnreservationson.gif";
	on[4] = new Image();          
    on[4].src = "images/btnrateson.gif";
	on[5] = new Image();          
    on[5].src = "images/btnsitenewson.gif";
	
     } 

    function buttonOn(buttonName,num) {  
        if (document.images) { // If the image object exists   
          // Change images on the page
          document[buttonName].src = on[num].src;
        }
    }

    function buttonOff(buttonName,num) {  
        if (document.images) { // If the image object exists   
          // Change images on the page
          document[buttonName].src = off[num].src;
        }
    }
function qOn(num) {
	buttonOn("button"+num,num);  
 	return true;
    }

    function qOff(num) {  
	buttonOff("button"+num,num);  
 	return true;
    }
    

