if (document.images)
{
            // Active Images
            boxn01 = new Image(); 
            boxn01.src = "images/doors/sm/d01sm_on.jpg";

            boxn02 = new Image(); 
            boxn02.src = "images/doors/sm/d02sm_on.jpg";

            boxn03 = new Image(); 
            boxn03.src = "images/doors/sm/d03sm_on.jpg";
            
            boxn04 = new Image(); 
            boxn04.src = "images/doors/sm/d04sm_on.jpg";
            
            boxn05 = new Image(); 
            boxn05.src = "images/doors/sm/d05sm_on.jpg";
            
            boxn06 = new Image(); 
            boxn06.src = "images/doors/sm/d06sm_on.jpg";
            
            boxn07 = new Image(); 
            boxn07.src = "images/doors/sm/d07sm_on.jpg";
            
            boxn08 = new Image(); 
            boxn08.src = "images/doors/sm/d08sm_on.jpg";
            
            boxn09 = new Image(); 
            boxn09.src = "images/doors/sm/d09sm_on.jpg";
            
            // Inactive Images
            boxf01 = new Image(); 
            boxf01.src = "images/doors/sm/d01sm.jpg";

            boxf02 = new Image(); 
            boxf02.src = "images/doors/sm/d02sm.jpg";

            boxf03 = new Image(); 
            boxf03.src = "images/doors/sm/d03sm.jpg";
            
            boxf04 = new Image(); 
            boxf04.src = "images/doors/sm/d04sm.jpg";
            
            boxf05 = new Image(); 
            boxf05.src = "images/doors/sm/d05sm.jpg";
            
            boxf06 = new Image(); 
            boxf06.src = "images/doors/sm/d06sm.jpg";
            
            boxf07 = new Image(); 
            boxf07.src = "images/doors/sm/d07sm.jpg";
            
            boxf08 = new Image(); 
            boxf08.src = "images/doors/sm/d08sm.jpg";
            
            boxf09 = new Image(); 
            boxf09.src = "images/doors/sm/d09sm.jpg";
            
            // Active Images
            box01 = new Image(); 
            box01.src = "images/doors/d01.jpg";

            box02 = new Image(); 
            box02.src = "images/doors/d02.jpg";

            box03 = new Image(); 
            box03.src = "images/doors/d03.jpg";
            
            box04 = new Image(); 
            box04.src = "images/doors/d04.jpg";
            
            box05 = new Image(); 
            box05.src = "images/doors/d05.jpg";
            
            box06 = new Image(); 
            box06.src = "images/doors/d06.jpg";
            
            box07 = new Image(); 
            box07.src = "images/doors/d07.jpg";
            
            box08 = new Image(); 
            box08.src = "images/doors/d08.jpg";
            
            box09 = new Image(); 
            box09.src = "images/doors/d09.jpg";            
            
            // Inactive Images
            boxlf = new Image(); 
            boxlf.src = "images/background_left.jpg";
}

// FOR SMALL IMAGES
// Function to 'activate' the image.
function imgBoxN(imgNumber) {
        if (document.images) {
            document['d' + imgNumber].src = eval("boxn" + imgNumber + ".src");
        }
}

// Function to 'deactivate' the image.
function imgBoxF(imgNumber) {
        if (document.images) {
            document['d' + imgNumber].src = eval("boxf" + imgNumber + ".src");
        }
}


// FOR LARGE IMAGES
// Function to 'activate' the image.
function imgBoxLN(imgNumber) {
        if (document.images) {
            document['door'].src = eval("box" + imgNumber + ".src");
        }
}

// Function to 'deactivate' the image.
function imgBoxLF(){
        if (document.images) {
            document['door'].src = eval("boxlf.src");
        }
}
