var newwindow;
        function OpenPopUpWindow(url, features)
        {
	        newwindow=window.open(url,'name',features);
	        if (window.focus) {newwindow.focus()}
        }     


function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe').height=the_height;
}


var Pic = new Array (
"photoGallery/GADSDENALUMNI.jpg",
"photoGallery/JaxAlumni2.jpg",
"photoGallery/TallahasseeAlumni.jpg",
"photoGallery/nac_BlackAndWhite.jpg",
"photoGallery/HuntsvilleAlumni.jpg",
"photoGallery/JaxAlumni2.jpg",
"photoGallery/hamiltonandgtxb.jpg",
"photoGallery/MadisonAthens.jpg",
"photoGallery/daytonabeachalumni.jpg",
"photoGallery/MontgomeryAlumni.jpg",
"photoGallery/BHamAlumni.jpg",
"photoGallery/kjacksonandrange.jpg",
"photoGallery/TallahasseeAlumniChapter2.jpg",
"photoGallery/MobileAlumni.jpg",
"photoGallery/WestPalmBeach.jpg",
"photoGallery/TallahasseeAlumniChapter3.jpg",
"photoGallery/TuscaloosaAlumni.jpg",
"photoGallery/PensacolaAlumni.jpg",
"photoGallery/TallahasseeAlumniChapterOfficers.jpg",
"photoGallery/TampaAlumni.jpg",
"photoGallery/nacnupes2.jpg",
"photoGallery/DeltaTau.jpg",
"photoGallery/NorthportAlumni.jpg",
"photoGallery/TallahasseeAlumniChapter4.jpg",
"photoGallery/2ndFoundersDay1.jpg"



);

var slideShowSpeed = 8000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var randNumber = 0

var preLoad = new Array()
for (i = 0; i < p; i++){

   randNumber = Math.round(Math.random()*p-1)

   preLoad[i] = new Image()
   preLoad[i].src = Pic[randNumber]
   //document.write( 'Number: ' + randNumber  +'<br>')
}

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)
}
       
