function popImage(imgName,imgCaption){
	w = window.open('','PhotoPopupWin','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100');
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31)\n");
	w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#000000 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<img src='"+imgName+"' border=0 alt='"+imgCaption+"'>" );
	w.document.write( "</body></html>" );
	w.document.close();
}









// Speed (milliseconds)
var slideShowSpeed = 5000

// Crossfade Duration (seconds)
var crossFadeDuration = 2

var Pic = new Array()
Pic[0] = 'images/collage11.jpg'
Pic[1] = 'images/collage7.jpg'
Pic[2] = 'images/collage1.jpg'
Pic[3] = 'images/collage9.jpg'
Pic[4] = 'images/collage2.jpg'
Pic[5] = 'images/collage3.jpg'
Pic[6] = 'images/collage6.jpg'
Pic[7] = 'images/collage8.jpg'
Pic[8] = 'images/collage4.jpg'
Pic[9] = 'images/collage5.jpg'

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
