
if (document.images) {  // If the image object exists    
      // Preload images
        off = new Array(6)
        on = new Array(6)
	off[0] = new Image();          
    off[0].src = "buttons/btntraining.jpg"; 
	off[1] = new Image();          
    off[1].src = "buttons/btncontact.jpg";
	off[2] = new Image();          
    off[2].src = "buttons/btnwhitepapers.jpg";
	off[3] = new Image();          
    off[3].src = "buttons/btncasestudies.jpg";
    off[4] = new Image();
    off[4].src = "buttons/btncourses.jpg";	
    off[5] = new Image();
    off[5].src = "buttons/btnaboutus.jpg";
	
	on[0] = new Image();          
    on[0].src = "buttons/btntrainingon.jpg";    
	on[1] = new Image();          
    on[1].src = "buttons/btncontacton.jpg";
	on[2] = new Image();          
    on[2].src = "buttons/btnwhitepaperson.jpg";
	on[3] = new Image();          
    on[3].src = "buttons/btncasestudieson.jpg";
	on[4] = new Image();          
    on[4].src = "buttons/btncourseson.jpg";
    on[5] = new Image();          
    on[5].src = "buttons/btnaboutuson.jpg";	
	
     } 

    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;
    }
    

