
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2000
// Duration of crossfade (seconds)
var crossFadeDuration = 4

// Specify the image files 
var Pic = new Array()

// don't touch this
// to add more images, just continue
// the pattern, adding to the array below

	Pic[0] = 'images/slideshow/image6.jpg'
	Pic[1] = 'images/slideshow/image9.jpg'
	Pic[2] = 'images/slideshow/image7.jpg'
	//Pic[3] = 'images/slideshow/image1.jpg'
	Pic[3] = 'images/slideshow/image17.jpg'
	Pic[4] = 'images/slideshow/image15.jpg'
	//Pic[6] = 'images/slideshow/image4.jpg'
	Pic[5] = 'images/slideshow/image12.jpg'
	Pic[6] = 'images/slideshow/image8.jpg'
	Pic[7] = 'images/slideshow/image0.jpg'
	Pic[8] = 'images/slideshow/image14.jpg'
	Pic[9] = 'images/slideshow/image11.jpg'
	//Pic[12] = 'images/slideshow/image2.jpg'
	Pic[10] = 'images/slideshow/image18.jpg'
	Pic[11] = 'images/slideshow/image13.jpg'
	Pic[12] = 'images/slideshow/image5.jpg'
	//Pic[16] = 'images/slideshow/image3.jpg'
	Pic[13] = 'images/slideshow/image16.jpg'
	Pic[14] = 'images/slideshow/image10.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);
}

var revert = new Array();
var inames = new Array('home','news','calendar','meetings','officers','pictures','forsale','joinus','archives','links','member','message','bylaws');

// Preload
if (document.images) {
  var flipped = new Array();
  for(i=0; i< inames.length; i++) {
    flipped[i] = new Image();
    flipped[i].src = "images/"+inames[i]+"2.jpg";
  }
}
function over(num) {
  if(document.images) {
    revert[num] = document.images[inames[num]].src;
    document.images[inames[num]].src = flipped[num].src;
  }
}
function out(num) {
  if(document.images) document.images[inames[num]].src = revert[num];
}

function seeDiffPicture(picture, width, height) {
  var pic_width = 600;
  if(width > height) {
	pic_width = 600;
  } else {
	pic_width = 400;
  }
  WI = window.open('picture.html','newwindow', config='height=600,   width=600, toolbar=yes, menubar=yes, scrollbar=yes, resizable=yes, location=no,   directories=no, status=no');
  WI.document.open();
  WI.document.write("<img src=\"" + picture + "\" width=\""+pic_width+ "\" />");
  WI.document.focus();
}

