
/***********************************************
* MultiFrame Image Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var seqslides=new Array()
//Set Path to Image plus optional URL ("" for no URL):
seqslides[0]=["images/2008awards/dsc01330_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[1]=["images/2008Awards/dsc01327_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[2]=["images/2008Awards/dsc01370_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[3]=["images/2008Awards/dsc01371_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[4]=["images/2008Awards/dsc01328_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[5]=["images/2008Awards/dsc01360_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[6]=["images/2008Awards/dsc01342_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[7]=["images/2008awards/dsc01343_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[8]=["images/2008awards/dsc01361_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[9]=["images/2008awards/dsc01358_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[10]=["images/2008awards/dsc01368_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[11]=["images/2008awards/dsc01325_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[12]=["images/2008awards/dsc01377_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[13]=["images/2008awards/dsc01352_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[14]=["images/2008awards/dsc01353_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[15]=["images/2008awards/dsc01374_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[16]=["images/2008awards/dsc01326_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[17]=["images/2008awards/dsc01329_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[18]=["images/2008awards/dsc01359_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[19]=["images/2008awards/dsc01375_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[20]=["images/2008awards/dsc01369_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[21]=["images/2008awards/dsc01379_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[22]=["images/2008awards/dsc01365_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[23]=["images/2008awards/dsc01364_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[24]=["images/2008awards/dsc01336_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[25]=["images/2008awards/dsc01354_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[26]=["images/2008awards/dsc01373_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[27]=["images/2008awards/dsc01376_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[28]=["images/2008awards/dsc01372_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[29]=["images/2008awards/dsc01337_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[30]=["images/2008awards/dsc01355_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[31]=["images/2008awards/dsc01323_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[32]=["images/2008awards/dsc01357_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[33]=["images/2008awards/dsc01347_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[34]=["images/2008awards/dsc01363_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[35]=["images/2008awards/dsc01366_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[36]=["images/2008awards/dsc01356_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[37]=["images/2008awards/dsc01341_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[38]=["images/2008awards/dsc01346_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[39]=["images/2008awards/dsc01367_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[40]=["images/2008awards/dsc01362_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[41]=["images/2008awards/dsc01338_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[42]=["images/2008awards/dsc01340_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[43]=["images/2008awards/dsc01378_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[44]=["images/2008awards/dsc01350_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[45]=["images/2008awards/dsc01333_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[46]=["images/2008awards/dsc01351_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[47]=["images/2008awards/dsc01324_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[48]=["images/2008awards/dsc01339_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[49]=["images/2008awards/dsc01344_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[50]=["images/2008awards/dsc01331_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[51]=["images/2008awards/dsc01345_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[52]=["images/2008awards/dsc01332_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[53]=["images/2008awards/dsc01349_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[54]=["images/2008awards/dsc01348_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[55]=["images/2008awards/dsc01334_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[56]=["images/2008awards/dsc01335_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]
seqslides[57]=["images/2008awards/dsc01322_small.jpg", "http://pennhillssoccer.org/images/2008awards/default.htm"]

//Set pause between each image display (2000=2 second):
var slidedelay=2000

//Set how many images to show at once (must be less than total # of images above):
var slidestoreveal=2

//Specify code to insert between each slide (ie: "<br>" to insert a line break and create a vertical layout)
//"" for none (or horizontal):
var slideseparater="<br>"

//Set optional link target to be added to all images with a link:
var optlinktarget="secwindow"

//Set image border width:
var imgborderwidth=0

//Set opacity value of each image when it's "dimmed", and when it's not, respectively (1=100% opaque/normal).
//Change 0.2 to 0 to completely hide image when it's dimmed:
var opacityvalues=[0.2,1]

///No need to edit beyond here///////////

function processimgcode(theimg){
var imghtml=""
if (theimg[1]!="")
imghtml='<a href="'+theimg[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'" style="filter:alpha(opacity='+(opacityvalues[0]*100)+');-moz-opacity:'+opacityvalues[0]+'" height="178" width="240">'
if (theimg[1]!="")
imghtml+='</a>'
return imghtml
}

var curslide=1 //var to track current slide (total: slidestoreveal)
var curimgindex=0 //var to track current image (total: seqslides.length)
var isfirstcycle=1 //boolean to indicate whether this is the first cycle

if (document.getElementById){
for (i=0;i<slidestoreveal;i++)
document.write('<span id="seqslide'+i+'" class="seqslidestyle">'+processimgcode(seqslides[i])+'</span>'+slideseparater)
curimgindex=slidestoreveal
illuminateslide(0,opacityvalues[1])
}

function illuminateslide(slideindex, amt){
var slideobj=document.getElementById("seqslide"+slideindex).getElementsByTagName("IMG")[0]
if (slideobj.filters)
slideobj.filters.alpha.opacity=amt*100
else if (slideobj.style.MozOpacity)
slideobj.style.MozOpacity=amt
}

function displayit(){
if (curslide<slidestoreveal){
if (!isfirstcycle)
changeimage(curslide)
illuminateslide(curslide, opacityvalues[1])
curslide++
}
else{
isfirstcycle=0
for (i=0;i<slidestoreveal;i++)
illuminateslide(i, opacityvalues[0])
changeimage(0)
illuminateslide(0, opacityvalues[1])
curslide=1
}
}

function changeimage(slideindex){
document.getElementById("seqslide"+slideindex).innerHTML=processimgcode(seqslides[curimgindex])
curimgindex++
if (curimgindex>=seqslides.length)
curimgindex=0
}

if (document.getElementById)
setInterval("displayit()",slidedelay)

