
/*
Random-Order content script
By JavaScript Kit (http://www.javascriptkit.com)
This notice must stay intact for use
*/

//1) Specify content(s) to display and rotate
//   You can specify multiple "sets", each displayed in diff. areas of your page


//THIS is the number that must be updated to show new images.  
var randomListing=22;


//NO NEED TO EIT BELOW HERE


var content=new Array() 

for (a=0;a< randomListing;a++){
var b=a+1;	
content[a]='<a href="http://www.haverford.edu/music/images/headerimages/headerImage' + b + '.jpg" class="highslide" onclick="return hs.expand(this)"><img src="http://www.haverford.edu/music/images/headerimages/th_headerImage' + b + '.jpg" alt="Music at Haverford College Image" title="Click to enlarge" border=0 height=125 width=125></a>';
}


var diffcontent=new Array() 

for (a=0;a< randomListing;a++){
var b=a+1;	
diffcontent[a]='<a href="http://www.haverford.edu/physics-astro/images/headerimages/headerImage' + b + '.jpg" class="highslide" onclick="return hs.expand(this)"><img src="http://www.haverford.edu/physics-astro/images/headerimages/th_headerImage' + b + '.jpg" alt="Physics and Astronomy at Haverford College Image" title="Click to enlarge" border=0 height=125 width=125></a>';
}


function randomorder(targetarray, spacing, numberItems){

var randomorder=new Array()
var the_one
var z=0
for (i=0;i<numberItems;i++)
randomorder[i]=i

while (z<numberItems){
the_one=Math.floor(Math.random()*targetarray.length)
if (targetarray[the_one]!="_selected!"){
document.write(targetarray[the_one]+spacing)
targetarray[the_one]="_selected!"
z++
}
}
}
