// (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 GlowShowSpeed (milliseconds)
var GlowShowSpeed = 8000

// Duration of crossfade (seconds)
var GlowFadeDuration = 999

// Specify the image files
var GlowPic3 = new Array() // don't touch this

// ============================================================================
// to add more images, just continue
// the pattern, adding to the array below, the next one will be GlowPic3[3]='blaaaa'; please note that siteimages is the folder which you store the header pictures.
//===========================================================================
GlowPic3[0] = '../siteimages/mainpic-green2.jpg'
GlowPic3[1] = '../siteimages/green1.jpg'
GlowPic3[2] = '../siteimages/green2.jpg'
GlowPic3[3] = '../siteimages/green3.jpg'
GlowPic3[4] = '../siteimages/green4.jpg'
// =======================================
// do not edit anything below this line
// =======================================

var tGlow;
var jGlow = 0;
var pGlow = GlowPic3.length;

var preLoadGlow = new Array()
for (iGlow = 0; iGlow < pGlow; iGlow++){
   
   preLoadGlow[iGlow] = new Image()
   preLoadGlow[iGlow].src = GlowPic3[iGlow]
   
}



function runGlowShow(){


   
   if (document.all){
      document.images.GlowShow3.style.filter="blendTrans(duration=2)";
      document.images.GlowShow3.style.filter="blendTrans(duration=GlowFadeDuration)";
      document.images.GlowShow3.filters.blendTrans.Apply();
	  
	  
   }
   
   jGlow = Math.round(Math.random()*(iGlow-1));
   document.images.GlowShow3.src = preLoadGlow[jGlow].src;
   
   
   
   if (document.all){
      document.images.GlowShow3.filters.blendTrans.Play();
	 
   }
   
   jGlow = Math.round(Math.random()*(iGlow-1));
   if (jGlow > (pGlow-1)) jGlow=Math.round(Math.random()*(iGlow-1))
   tGlow = setTimeout('runGlowShow()', GlowShowSpeed)
   
  
}

