
   function changeImage(imgID,newImg) {
	document.images[imgID].src=newImg;

   }

   function changeImageWipe(imgID,newImg) {
	document.images[imgID].src='/images/blank_light.gif';
	document.images[imgID].src=newImg;

   }

   function changeLocation(newlocation) {
	document.getElementById('largeImage').style.top=newlocation;
   }

   var currentdate = 0
   var core = 0

   function StringArray (n) {
     this.length = n;
     for (var i =1; i <= n; i++) {
       this[i] = ' '

     }
   }

   image = new StringArray(10)
   image[0] = 'welcome_01.jpg'
   image[1] = 'welcome_02.jpg'
   image[2] = 'welcome_03.jpg'
   image[3] = 'welcome_04.jpg'
   image[4] = 'welcome_05.jpg'
   image[5] = 'welcome_06.jpg'
   image[6] = 'welcome_07.jpg'
   image[7] = 'welcome_08.jpg'
   image[8] = 'welcome_09.jpg'
   image[9] = 'welcome_10.jpg'
   image[10] = 'welcome_11.jpg'
   image[11] = 'welcome_12.jpg'
   image[12] = 'welcome_13.jpg'
   image[13] = 'welcome_14.jpg'
   image[14] = 'welcome_15.jpg'
   image[15] = 'welcome_16.jpg'

   var ran = 60/image.length

   function ranimage() {
     currentdate = new Date()
     core = currentdate.getSeconds()
     core = Math.floor(core/ran)
       document.images['welcomeImage'].src='/images/welcome/'+image[core];
   }
