﻿<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'DILCOM/Dil_images/random images/a0200006.jpg'  
theImages[1] = 'DILCOM/Dil_images/random images/a0210009.jpg'
theImages[2] = 'DILCOM/Dil_images/random images/a0580107.jpg'
theImages[3] = 'DILCOM/Dil_images/random images/a0580339.jpg'
theImages[4] = 'DILCOM/Dil_images/random images/a0580340.jpg'
theImages[5] = 'DILCOM/Dil_images/random images/a0750023.jpg'
theImages[6] = 'DILCOM/Dil_images/random images/ab171223.jpg'
theImages[7] = 'DILCOM/Dil_images/random images/aj020122.jpg'
theImages[8] = 'DILCOM/Dil_images/random images/aj070501.jpg'
theImages[9] = 'DILCOM/Dil_images/random images/as030046.jpg'
theImages[10] = 'DILCOM/Dil_images/random images/b0400037.jpg'
theImages[11] = 'DILCOM/Dil_images/random images/B0670019.jpg'
theImages[12] = 'DILCOM/Dil_images/random images/b0680256.jpg'
theImages[13] = 'DILCOM/Dil_images/random images/ca010008.jpg'
theImages[14] = 'DILCOM/Dil_images/random images/ca020048.jpg'
theImages[15] = 'DILCOM/Dil_images/random images/cc435075.jpg'
theImages[16] = 'DILCOM/Dil_images/random images/d0040105.jpg'
theImages[17] = 'DILCOM/Dil_images/random images/d0241143.jpg'
theImages[18] = 'DILCOM/Dil_images/random images/ec030010.jpg'
theImages[19] = 'DILCOM/Dil_images/random images/ec210175.jpg'
theImages[20] = 'DILCOM/Dil_images/random images/ec280313.jpg'
theImages[21] = 'DILCOM/Dil_images/random images/hm030217.jpg'
theImages[22] = 'DILCOM/Dil_images/random images/hm030230.jpg'
theImages[23] = 'DILCOM/Dil_images/random images/k0625476.jpg'
theImages[24] = 'DILCOM/Dil_images/random images/kl345506.jpg'
theImages[25] = 'DILCOM/Dil_images/random images/kl598880.jpg'
theImages[26] = 'DILCOM/Dil_images/random images/lk010033.jpg'
theImages[27] = 'DILCOM/Dil_images/random images/n0410033.jpg'
theImages[28] = 'DILCOM/Dil_images/random images/NADN_D___DBLRU__1108.jpg'
theImages[29] = 'DILCOM/Dil_images/random images/tm070271.jpg'
theImages[30] = 'DILCOM/Dil_images/random images/tm221890.jpg'
theImages[31] = 'DILCOM/Dil_images/random images/NSHAR_C__BK_MA__1008.jpg'

//MD UPDATE
var theText = new Array() // do not change this
theText[0] = 'a0200006'
theText[1] = 'a0210009'
theText[2] = 'a0580107'
theText[3] = 'a0580339'
theText[4] = 'a0580340'
theText[5] = 'a0750023'
theText[6] = 'ab171223'
theText[7] = 'aj020122'
theText[8] = 'aj070501'
theText[9] = 'as030046'
theText[10] = 'b0400037'
theText[11] = 'B0670019'
theText[12] = 'b0680256'
theText[13] = 'ca010008'
theText[14] = 'ca020048'
theText[15] = 'cc435075'
theText[16] = 'd0040105'
theText[17] = 'd0241143'
theText[18] = 'ec030010'
theText[19] = 'ec210175'
theText[20] = 'ec280313'
theText[21] = 'hm030217'
theText[22] = 'hm030230'
theText[23] = 'k0625476'
theText[24] = 'kl345506'
theText[25] = 'kl598880'
theText[26] = 'lk010033'
theText[27] = 'n0410033'
theText[28] = 'NADN D   DBLRU  1108'
theText[29] = 'tm070271'
theText[30] = 'tm221890'
theText[31] = 'NSHAR C  BK MA  1008'

//END MD UPDATE




// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

//MD UPDATE
//function showImage(){
//document.write('<img src="'+theImages[whichImage]+'">');
//}

function showImage() {
    document.getElementById('ImageBlock').innerHTML = '<img src="'+theImages[whichImage]+'">';
    document.getElementById('TextBlock').innerHTML = theText[whichImage]; 

	
	
}

function showNext() {
    if ( whichImage == theImages.length - 1 ) {
        whichImage = 0;
    }
    else {
        whichImage = whichImage + 1;
    }
    showImage();
}
function showPrevious() {
    if ( whichImage == 0 ) {
        whichImage = theImages.length - 1;
    }
    else {
        whichImage = whichImage - 1;
    }
    showImage();
}
//END MD UPDATE

showImage();
//  End -->