﻿function setIMG(imgID)
{
document.rollimg.src = "images/white.gif";
document.rollimg.width = 1;
document.rollimg.height = 1;

setNewIMG(imgID);
}

function setNewIMG(imgID)
{


switch (imgID)
{
case 0:
    document.rollimg.src = image0.src;
    document.rollimg.width = aryWidth[0];
    document.rollimg.height =aryHeight[0];
    break;
    
    
case 1:
    document.rollimg.src = image1.src;
    document.rollimg.width = aryWidth[1];
    document.rollimg.height =aryHeight[1];
    break;

case 2:
    document.rollimg.src = image2.src;
    document.rollimg.width = aryWidth[2];
    document.rollimg.height =aryHeight[2];
    break;


case 3:
    document.rollimg.src = image3.src;
    document.rollimg.width = aryWidth[3];
    document.rollimg.height =aryHeight[3];
    break;


case 4:
    document.rollimg.src = image4.src;
    document.rollimg.width = aryWidth[4];
    document.rollimg.height =aryHeight[4];
    break;


case 5:
    document.rollimg.src = image5.src;
    document.rollimg.width = aryWidth[5];
    document.rollimg.height =aryHeight[5];
    break;


case 6:
    document.rollimg.src = image6.src;
    document.rollimg.width = aryWidth[6];
    document.rollimg.height =aryHeight[6];
    break;


case 7:
    document.rollimg.src = image7.src;
    document.rollimg.width = aryWidth[7];
    document.rollimg.height =aryHeight[7];
    break;


case 8:
    document.rollimg.src = image8.src;
    document.rollimg.width = aryWidth[8];
    document.rollimg.height =aryHeight[8];
    break;


case 9:
    document.rollimg.src = image9.src;
    document.rollimg.width = aryWidth[9];
    document.rollimg.height =aryHeight[9];
    break;


case 10:
    document.rollimg.src = image10.src;
    document.rollimg.width = aryWidth[10];
    document.rollimg.height =aryHeight[10];
    break;


case 11:
    document.rollimg.src = image11.src;
    document.rollimg.width = aryWidth[11];
    document.rollimg.height =aryHeight[11];
    break;


case 12:
    document.rollimg.src = image12.src;
    document.rollimg.width = aryWidth[12];
    document.rollimg.height =aryHeight[12];
    break;


case 13:
    document.rollimg.src = image13.src;
    document.rollimg.width = aryWidth[13];
    document.rollimg.height =aryHeight[13];
    break;


case 14:
    document.rollimg.src = image14.src;
    document.rollimg.width = aryWidth[14];
    document.rollimg.height =aryHeight[14];
    break;


case 15:
    document.rollimg.src = image15.src;
    document.rollimg.width = aryWidth[15];
    document.rollimg.height =aryHeight[15];
    break;


case 16:
    document.rollimg.src = image16.src;
    document.rollimg.width = aryWidth[16];
    document.rollimg.height =aryHeight[16];
    break;


case 17:
    document.rollimg.src = image17.src;
    document.rollimg.width = aryWidth[17];
    document.rollimg.height =aryHeight[17];
    break;


case 18:
    document.rollimg.src = image18.src;
    document.rollimg.width = aryWidth[18];
    document.rollimg.height =aryHeight[18];
    break;

case 19:
    document.rollimg.src = image19.src;
    document.rollimg.width = aryWidth[19];
    document.rollimg.height =aryHeight[19];
    break;
}
}
