// array of images 
var swapImgs = new Array(9); 
	swapImgs[0] = "./images/bn2.gif";
  swapImgs[1] = "./images/1ro.png"; 
  swapImgs[2] = "./images/2ro.png"; 
  swapImgs[3] = "./images/3ro.png"; 
  swapImgs[4] = "./images/4ro.png"; 
  swapImgs[5] = "./images/5ro.png";
  swapImgs[6] = "./images/submit2.png";
  swapImgs[7] = "./images/wrap2.png";
  swapImgs[8] = "./images/ordertodayro.png";

  
  

  
var origImgs = new Array(9); 
	origImgs[0] = "./images/bn.gif";
  origImgs[1] = "./images/1.png"; 
  origImgs[2] = "./images/2.png"; 
  origImgs[3] = "./images/3.png"; 
  origImgs[4] = "./images/4.png"; 
  origImgs[5] = "./images/5.png";    
  origImgs[6] = "./images/submit.png"; 
  origImgs[7] = "./images/wrap.png";  
  origImgs[8] = "./images/ordertoday.png"; 


// preload the images 
function preload() { 
	var tmp = null; 
  for (var j = 0; j < swapImgs.length; j++) { 
    tmp = swapImgs[j]; 
    swapImgs[j] = new Image(); 
    swapImgs[j].src = tmp; 
  } 
} 

// swap images 
function imgSwap(img, swap) { 
 	img.src = swapImgs[swap].src; 
} 
function imgSwapBack(img, swap) { 
	img.src = origImgs[swap]; 
} 
