﻿// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000

// Duration of crossfade (seconds)
var crossFadeDuration = 5

// 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/banner2.jpg'
Pic[1] = 'images/banner3.jpg'

// =======================================
// do not edit anything below this line
// =======================================

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 yprunSlideShow(){
   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('yprunSlideShow()', slideShowSpeed)
}



 function PCase(STRING)
        {
            var strReturn_Value = "";
            var iTemp = STRING.length;
            if(iTemp==0)
            {
                return"";
            }
            var UcaseNext = false;
            strReturn_Value += STRING.charAt(0).toUpperCase();
            for(var iCounter=1;iCounter < iTemp;iCounter++)
            {
                if(UcaseNext == true)
                {
                  strReturn_Value += STRING.charAt(iCounter).toUpperCase();
                }
                else
                {
                  strReturn_Value += STRING.charAt(iCounter).toLowerCase();
                }
                var iChar = STRING.charCodeAt(iCounter);
                if(iChar == 32 || iChar == 45 || iChar == 46 || iChar == 44 || iChar == 39)
                {
                     UcaseNext = true;
                }
                else
                {
                     UcaseNext = false
                }
                if(iChar == 99 || iChar == 67)
                {
                    if(STRING.charCodeAt(iCounter-1)==77 || STRING.charCodeAt(iCounter-1)==109)
                    {
                    UcaseNext = true;
                    }
                }
            } //End For

            return strReturn_Value;

        }


        <!--
        function MM_reloadPage(init) {  //reloads the window if Nav4 resized
          if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
            document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
          else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
        }
        MM_reloadPage(true);

        function MM_openBrWindow(theURL,winName,features) { //v2.0
          window.open(theURL,winName,features);
        }
        //-->

