/***********************************************
* Image Thumbnail Viewer II script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify image paths and optional link (set link to "" for no link):
var dynimages=new Array()
// QOHS
dynimages[0]=["./gr/portfolio/qohs_1.jpg", "http://www.qohs.org"]
dynimages[1]=["./gr/portfolio/qohs_2.jpg", "http://www.qohs.org/athletics/"]
dynimages[2]=["./gr/portfolio/qohs_3.jpg", "http://www.qohs.org/media_center/"]
dynimages[3]=["./gr/portfolio/qohs_4.jpg", "http://www.qohs.org/calendar/"]
dynimages[4]=["./gr/portfolio/qohs_5.jpg", "http://www.qohs.org/orgs/"]
dynimages[5]=["./gr/portfolio/qohs_6.jpg", "http://www.qohs.org/depts/"]

// QO Alumni
dynimages[6]=["./gr/portfolio/qoalumni_1.jpg", "http://www.qoalumni.org"]
dynimages[7]=["./gr/portfolio/qoalumni_2.jpg", "http://www.qoalumni.org"]
dynimages[8]=["./gr/portfolio/qoalumni_3.jpg", "http://www.qoalumni.org"]
dynimages[9]=["./gr/portfolio/qoalumni_4.jpg", "http://www.qoalumni.org"]
dynimages[10]=["./gr/portfolio/qoalumni_5.jpg", "http://www.qoalumni.org"]
dynimages[11]=["./gr/portfolio/qoalumni_6.jpg", "http://www.qoalumni.org"]

// QOHS Zeus
dynimages[12]=["./gr/portfolio/qozeus_1.jpg", ""]
dynimages[13]=["./gr/portfolio/qozeus_2.jpg", ""]
dynimages[14]=["./gr/portfolio/qozeus_3.jpg", ""]
dynimages[15]=["./gr/portfolio/qozeus_4.jpg", ""]
dynimages[16]=["./gr/portfolio/qozeus_5.jpg", ""]
dynimages[17]=["./gr/portfolio/qozeus_6.jpg", ""]

// MCPS Zeus
dynimages[18]=["./gr/portfolio/mcpszeus_1.jpg", ""]
dynimages[19]=["./gr/portfolio/mcpszeus_2.jpg", ""]
dynimages[20]=["./gr/portfolio/mcpszeus_3.jpg", ""]
dynimages[21]=["./gr/portfolio/mcpszeus_4.jpg", ""]
dynimages[22]=["./gr/portfolio/mcpszeus_5.jpg", ""]
dynimages[23]=["./gr/portfolio/mcpszeus_6.jpg", ""]

// MCPS PlantOps
dynimages[24]=["./gr/portfolio/plantops_1.jpg", ""]
dynimages[25]=["./gr/portfolio/plantops_2.jpg", ""]
dynimages[26]=["./gr/portfolio/plantops_3.jpg", ""]
dynimages[27]=["./gr/portfolio/plantops_4.jpg", ""]
dynimages[28]=["./gr/portfolio/plantops_5.jpg", ""]
dynimages[29]=["./gr/portfolio/plantops_6.jpg", ""]

//Preload images ("yes" or "no"):
var preloadimg="yes"

//Set optional link target to be added to all images with a link:
var optlinktarget=""

//Set image border width
var imgborderwidth=0

//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstring="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

///////No need to edit beyond here/////

if (preloadimg=="yes"){
	for (x=0; x<dynimages.length; x++){
	var myimage=new Image()
	myimage.src=dynimages[x][0]
	}
}

function returnimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

function modifyimage(loadarea, imgindex){
if (document.getElementById){
var imgobj=document.getElementById(loadarea)
if (imgobj.filters && window.createPopup){
imgobj.style.filter=filterstring
imgobj.filters[0].Apply()
}
imgobj.innerHTML=returnimgcode(dynimages[imgindex])
if (imgobj.filters && window.createPopup)
imgobj.filters[0].Play()
return false
}
}
// Loading boxes
	function loadFile(boxToLoad,whereToLoad)
	{
			document.getElementById(whereToLoad).innerHTML=document.getElementById(boxToLoad).innerHTML;
	}
