//This is used for the big slideshow on the homepage.
	
	var slideShowSpeed = 5000
	var crossFadeDuration = 10

	var Pic = new Array() 
	for (i=0;i< MySlideshow.length; i++){
		Pic[i]= "images/" + MySlideshow[i]
	}
	//Pic[0] = 'images/2.jpg'
	//Pic[1] = 'images/3.jpg'
	//Pic[2] = 'images/4.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()
//   }
   if (document.all){
		 document.images.SlideShow.style.filter="progid:DXImageTransform.Microsoft.Fade(duration=2) progid:DXImageTransform.Microsoft.Blinds(duration=2, direction=left, bands=1)";
		 //document.images.SlideShow.style.filter="progid:DXImageTransform.Microsoft.Blinds(duration=2, direction=left, bands=1)";
		document.images.SlideShow.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=1.5, WipeStyle=0, motion=forward)";
		 document.images.SlideShow.filters[0].apply();
		 document.images.SlideShow.filters[0].play();
   }

   document.images.SlideShow.src = preLoad[j].src
   document.images.SlideShow.width = "100%"
   //if (document.all){
	//  document.images.SlideShow.filters.blendTrans.Play()
   //}
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}


function getElementObject( element ){
	if( document.getElementById )
		return document.getElementById( element );
	else if( document.all )
		return document.all[element];
	else 
		return null;
}