
<!--

function OpenPage(URL)
{
   //Open URL in new window
   newwin=window.open("","","scrollbars,menubar,resizable,height=400,width=770,left=20,top=20,screenX=20,screenY=20");
   newwin.location=OpenPage.arguments[0];
}

function OpenPageToSize(URL, height, width)
{
   //Open URL in new window
   var parms = "scrollbars,menubar,resizable,height=" + height + ",width=" + width + ",left=20,top=20,screenX=20,screenY=20";
   newwin=window.open("","", parms);
   newwin.location=OpenPageToSize.arguments[0];
}

//**************************************
//******    Slide show code       ******
//**************************************

//http://www.codelifter.com/main/javascript/slideshow2.html
//Works in all common browser.   Fade effect only in IE; others degrade gracefully

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 10000

// Duration of crossfade (seconds)
var crossFadeDuration = 2;

// 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/homepage/homepage01.jpg';
Pic[1] = 'images/homepage/homepage02.jpg';
Pic[2] = 'images/homepage/homepage03.jpg';
Pic[3] = 'images/homepage/homepage04.jpg';
Pic[4] = 'images/homepage/homepage05.jpg';
Pic[5] = 'images/homepage/homepage06.jpg';
Pic[6] = 'images/homepage/homepage07.jpg';
Pic[7] = 'images/homepage/homepage08.jpg';
Pic[8] = 'images/homepage/homepage09.jpg';

var t;
var p = Pic.length;
var j = Math.floor(Math.random()*(4));

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()
   }
   document.images.SlideShow.style.visibility="visible";
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
//-->
