// Image rollover code

if (document.images) {
 R4C1_on =new Image(); R4C1_on.src ="Images/DestinyArt_Aboutus_Rollover.jpg"; 
 R4C1_off=new Image(); R4C1_off.src="Images/DestinyArt_Aboutus.jpg"; 

 R4C2_on =new Image(); R4C2_on.src ="Images/DestinyArt_Parentstudent_Rollover.jpg"; 
 R4C2_off=new Image(); R4C2_off.src="Images/DestinyArt_Parentstudent.jpg"; 

 R4C3_on =new Image(); R4C3_on.src ="Images/DestinyArt_Educators_Rollover.jpg"; 
 R4C3_off=new Image(); R4C3_off.src="Images/DestinyArt_Educators.jpg"; 

 R4C4_on =new Image(); R4C4_on.src ="Images/DestinyArt_Funders_Rollover.jpg"; 
 R4C4_off=new Image(); R4C4_off.src="Images/DestinyArt_Funders.jpg"; 

 R4C5_on =new Image(); R4C5_on.src ="Images/DestinyArt_Contact_Rollover.jpg"; 
 R4C5_off=new Image(); R4C5_off.src="Images/DestinyArt_Contact.jpg"; 
 
 }

function MNMOvr(k) {
 if (document.images) 
  eval('document.R4C'+k+'.src=R4C'+k+'_on.src');
}

function MNMOut(k) {
 if (document.images) 
  eval('document.R4C'+k+'.src=R4C'+k+'_off.src');
}

// End of Image rollover code

/* Image slideshows/animation code*/
//#1 SPECIFY number of slideshows

var number_of_slideshows=5
//#2 SPECIFY interval between slide (1000=1 seconds)
var interval=3000
var slideshows=new Array(number_of_slideshows)
for (i=0; i <number_of_slideshows; i++)


slideshows[i]=new Array()

//#4 SPECIFY image paths of 1st slideshow
slideshows[0][0]='Images/DestinyArt_Photo1.jpg'
slideshows[0][1]='Images/DestinyArt_Photo2.jpg'
slideshows[0][2]='Images/DestinyArt_Photo3.jpg'
slideshows[0][3]='Images/DestinyArt_Photo4.jpg'
slideshows[0][4]='Images/DestinyArt_Photo5.jpg'


function clickredir(){
window.location=slidelinks[maininc][subinc]
}

var maininc=0
var subinc=0

//This line of code is to show the image in webpage
//document.write('<img src="'+slideshows[0][0]+'" name="multislide">')

function slideit(){
subinc= (subinc<slideshows[maininc].length-1)? subinc+1: 0
document.images.multislide.src=slideshows[maininc][subinc]
}

function setslide(which){
clearInterval(runit)
maininc=which
subinc=0
runit=setInterval("slideit()",interval)
}

runit=setInterval("slideit()",interval)

//End of code