// JavaScript Document
// 
// Scripts for the index.html page
//
// This script and many more are available free online at 
// The JavaScript Source!! http://javascript.internet.com 
// 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] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-01.jpg'
theImages[1] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-02.jpg'
theImages[2] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-03.jpg'
theImages[3] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-04.jpg'
theImages[4] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-05.jpg'
theImages[5] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-06.jpg'
theImages[6] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-07.jpg'
theImages[7] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-08.jpg'
theImages[8] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-09.jpg'
theImages[9] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-10.jpg'
theImages[10] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-11.jpg'
theImages[11] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-12.jpg'
theImages[12] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-13.jpg'
theImages[13] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-14.jpg'
theImages[14] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-15.jpg'
theImages[15] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-16.jpg'
theImages[16] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-17.jpg'
theImages[17] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-18.jpg'
theImages[18] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-19.jpg'
theImages[19] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-20.jpg'
theImages[20] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-21.jpg'
theImages[21] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-22.jpg'
theImages[22] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-23.jpg'
theImages[23] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-24.jpg'
theImages[24] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-25.jpg'
theImages[25] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-26.jpg'
theImages[26] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-27.jpg'
theImages[27] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-28.jpg'
theImages[28] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-29.jpg'
theImages[29] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-30.jpg'
theImages[30] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-31.jpg'
theImages[31] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-32.jpg'
theImages[32] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-33.jpg'
theImages[33] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-34.jpg'
theImages[34] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-35.jpg'
theImages[35] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-36.jpg'
theImages[36] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-37.jpg'
theImages[37] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-38.jpg'
theImages[38] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-39.jpg'
theImages[39] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-40.jpg'
theImages[40] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-41.jpg'
theImages[41] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-42.jpg'
theImages[42] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-43.jpg'
theImages[43] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-44.jpg'
theImages[44] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-45.jpg'
theImages[45] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-46.jpg'
theImages[46] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-47.jpg'
theImages[47] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-48.jpg'
theImages[48] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-49.jpg'
theImages[49] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-50.jpg'
theImages[50] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-51.jpg'
theImages[51] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-52.jpg'
theImages[52] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-53.jpg'
theImages[53] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-54.jpg'
theImages[54] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-55.jpg'
theImages[55] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-56.jpg'
theImages[56] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-57.jpg'
theImages[57] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-58.jpg'
theImages[58] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-59.jpg'
theImages[59] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-60.jpg'
theImages[60] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-61.jpg'
theImages[61] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-62.jpg'
theImages[62] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-63.jpg'
theImages[63] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-64.jpg'
theImages[64] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-65.jpg'
theImages[65] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-66.jpg'
theImages[66] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-67.jpg'
theImages[67] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-68.jpg'
theImages[68] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-69.jpg'
theImages[69] = 'http://henrico.k12.va.us/hs/deeprun/assets/images/studentArt/image-70.jpg'
// Set up the titles to be used.
var theTitles = new Array() // do not change this

theTitles[0] = 'Alyson A. - Class of 2007'
theTitles[1] = 'Lindsey J. - Class of 2006'
theTitles[2] = 'Introduction Page - Design IV Brochure - 2006'
theTitles[3] = 'Collaborative Painting: Art IV - Class of 2006'
theTitles[4] = 'Table of Contents - 2007 by Sarah Z - Class of 2007'
theTitles[5] = 'Anthony F - Class of 2006 Strong depth'
theTitles[6] = 'Alyson A - Class of 2007'
theTitles[7] = 'Chris D - Class of 2007'
theTitles[8] = 'Alyson A - Class of 2007'
theTitles[9] = 'Jeanne H - Class of 2009'
theTitles[10] = 'Dylan L - Class of 2008'
theTitles[11] = 'Kristin J - Class of 2007'
theTitles[12] = 'Sam D - Class of 2009'
theTitles[13] = 'Rebecca R - Class of 2009'
theTitles[14] = 'Lauren A - Class of 2007'
theTitles[15] = 'Chris D - Class of 2007'
theTitles[16] = 'Sunny K - Class of 2008'
theTitles[17] = 'Kristin J - Class of 2007'
theTitles[18] = 'Kristin J - Class of 2007'
theTitles[19] = 'Alyson A - Class of 2007'
theTitles[20] = 'Jessie O - Class of 2009'
theTitles[21] = 'Farah C - Class of 2006'
theTitles[22] = 'Farah C - Class of 2006'
theTitles[23] = 'Alyson A - Class of 2007'
theTitles[24] = 'Sunny K - Class of 2008'
theTitles[25] = 'Kristin J - Class of 2007'
theTitles[26] = 'Geohan L - Class of 2007'
theTitles[27] = 'Geohan L - Class of 2007'
theTitles[28] = 'Kathryn M - Class of 2008'
theTitles[29] = 'Tini D - Class of 2009'
theTitles[30] = 'Rebecca K - Class of 2009'
theTitles[31] = 'Mandy F - Class of 2009'
theTitles[32] = 'Jeanne H - Class of 2009'
theTitles[33] = 'Katy R - Class of 2008'
theTitles[34] = 'Sarah Z - Class of 2007'
theTitles[35] = 'Farah C - Class of 2006'
theTitles[36] = 'Alex B - Class of 2006'
theTitles[37] = 'Peter S - Class of 2005'
theTitles[38] = 'Kristin J - Class of 2007'
theTitles[39] = 'Lindsey J - Class of 2006'
theTitles[40] = 'Field K - Class of 2008'
theTitles[41] = 'Hannah M - Class of 2010'
theTitles[42] = 'Audrey H - Class of 2010'
theTitles[43] = 'Jacob R - Class of 2010'
theTitles[44] = 'Timmothy Y - Class of 2009'
theTitles[45] = 'Casey V - Class of 2008'
theTitles[46] = 'Jeb C - Class of 2010'
theTitles[47] = 'Erika V - Class of 2009'
theTitles[48] = 'Cody R - Class of 2010'
theTitles[49] = 'Rebecca H - Class of 2010'
theTitles[50] = 'Lida A - Class of 2008'
theTitles[51] = 'Erica F - Class of 2008'
theTitles[52] = 'Amanda M - Class of 2008'
theTitles[53] = 'Emily A - Class of 2008'
theTitles[54] = 'Jackie M - Class of 2008'
theTitles[55] = 'Jackie M - Class of 2008'
theTitles[56] = 'Jeanne H - Class of 2009'
theTitles[57] = 'Jacob R - Class of 2010'
theTitles[58] = 'Kathryn M - Class of 2008'
theTitles[59] = 'Katy R - Class of 2008'
theTitles[60] = 'James B - Class of 2009'
theTitles[61] = 'Jeb C - Class of 2010'
theTitles[62] = 'Hannah M - Class of 2010'
theTitles[63] = 'Audrey H - Class of 2010'
theTitles[64] = 'Kayla B - Class of 2009'
theTitles[65] = 'Casey V - Class of 2008'
theTitles[66] = 'Ryan B - Class of 2010'
theTitles[67] = 'Eric W - Class of 2008'
theTitles[68] = 'Pari V - Class of 2008'
theTitles[69] = 'Eric W - Class of 2008'

// do not edit anything below this line
// 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));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'"><br />');
document.write(theTitles[whichImage]);
}

//  End 

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

//  End 

// copyright 1999-2001 Idocs, Inc. http://www.idocs.com/tags/
// Distribute this script freely, but keep this 
// notice with the code.
var submitRolls = new Object();

function submitRoll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Submit Query";
this.write=submitRoll_write;
}

function submitRoll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;

document.write
	(
	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
	' HREF="javascript:'
	);

if (this.sendfield)
	{
	if (! this.sendvalue)
		this.sendvalue = 1;
	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
	}

document.write(thisform + '.submit();void(0);"');
if (this.msg)document.write(' onClick="return confirm(\'' , this.msg, '\')"');
document.write('>');

document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
	{
	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
	document.forms[document.forms.length - 1].elements[this.sendfield].value='';
	}
}

