
function loadPicture(pictureName) {
    //parent.otherFrameName.location.href = "other.asp?" + pictureName;
  location.href = "showphoto1.asp?" + pictureName;
}

function loadPicture2(pictureName) {
    //parent.otherFrameName.location.href = "other.asp?" + pictureName;
  location.href = "showphoto2.asp?" + pictureName;
}
function loadPicture3(pictureName, heightval, widthval) {
    //parent.otherFrameName.location.href = "other.asp?" + pictureName;
  location.href = "showphoto3.asp?picname=" + pictureName + "&hval=" + heightval + "&wval=" + widthval;
}
var blackbeltclassphotos = 'JrAdv2.jpg,JrAdv3.jpg,JrAdv4.jpg,JrAdv6.jpg,JrAdv8.jpg,jrbb_oldsite1.jpg,JrBlk1.jpg,JrBlk12.jpg,JrBlk2.jpg,JrBlk3.jpg,JrBlk5.jpg,JrBlk8.jpg,NoonSr1.jpg,NoonSr2.jpg,SrBlk1.jpg';
var tournamentphotos = 'annualchampship.jpg,champ1.jpg,champ10.jpg,champ11.jpg,champ12.jpg,champ13.jpg,champ14.jpg,champ15.jpg,champ16.jpg,champ2.jpg,champ3.jpg,champ4.jpg,champ5.jpg,champ6.jpg,champ7.jpg,champ8.jpg,champ9.jpg,womenpoomse.jpg'
var colorbelttest_2004dec = 'PANA0096.jpg,PANA0097.jpg,PANA0100.jpg,PANA0101.jpg,PANA0102.jpg,PANA0103.jpg,PANA0104.jpg,PANA0105.jpg,PANA0107.jpg,PANA0109.jpg,PANA0110.jpg,PANA0111.jpg,PANA0113.jpg,PANA0114.jpg,PANA0115.jpg,PANA0117.jpg,PANA0118.jpg,PANA0120.jpg,PANA0123.jpg,PANA0125.jpg,PANA0126.jpg,PANA0127.jpg,PANA0129.jpg,PANA0130.jpg,PANA0132.jpg,PANA0133.jpg,PANA0134.jpg,PANA0135.jpg,PANA0136.jpg,PANA0138.jpg,PANA0140.jpg,PANA0141.jpg,PANA0143.jpg,PANA0144.jpg,PANA0145.jpg,PANA0146.jpg,PANA0147.jpg,PANA0148.jpg';
var breakathonphotos = 'momyoucan.jpg,taekwondobreakathon008.jpg,taekwondobreakathon009.jpg';
var colorclassphotos = 'Jr.Adv5.jpg,JrBeg.jpg,JrBeg12.jpg,JrBeg2.jpg,JrBeg3.jpg,JrBeg4.jpg,JrBeg5.jpg,JrBeg6.jpg,JrBeg9.jpg,JrGrn1.jpg,JrGrn11.jpg,JrGrn2.jpg,JrGrn3.jpg,JrGrn4.jpg,JrGrn6.jpg,JrIntBlu1.jpg,JrIntBlu2.jpg,JrIntBlu3.jpg,JrIntBlu4.jpg,JrIntBlu6.jpg,JrIntWhtYel1.jpg,JrIntWhtYel3.jpg,JrIntWhtYel4.jpg,JrIntYel-Red1.jpg,JrYelGrn1.jpg,JrYelGrn2.jpg,JrYelGrn3.jpg,JrYelGrn4.jpg,JrYelGrn5.jpg,JrYelGrn6.jpg,JrYelGrn7.jpg,JrYelGrn8.jpg,JrYelGrn9.jpg,Seniors1.jpg,Seniors10.jpg,Seniors11.jpg,Seniors12.jpg,Seniors13.jpg,Seniors3.jpg,Seniors4.jpg,Seniors5.jpg,Seniors6.jpg,Seniors8.jpg,SIMG0034.jpg,SIMG0050.jpg';
var blackbelttest_2004july_page1 = 'BB1.jpg,BB10.jpg,BB11.jpg,BB12.jpg,BB13.jpg,BB14.jpg,BB15.jpg,BB16.jpg,BB17.jpg,BB19.jpg,BB2.jpg,BB20.jpg,BB21.jpg,BB22.jpg,BB23.jpg,BB24.jpg,BB25.jpg,BB27.jpg,BB28.jpg,BB29.jpg,BB3.jpg,BB30.jpg,BB31.jpg,BB32.jpg,BB33.jpg,BB35.jpg,BB36.jpg,BB37.jpg,BB38.jpg,BB39.jpg,BB4.jpg,BB40.jpg,BB41.jpg,BB42.jpg,BB43.jpg,BB45.jpg,BB46.jpg,BB47.jpg,BB5.jpg,BB50.jpg,BB6.jpg,BB7.jpg,BB8.jpg,BB9.jpg';
var blackbelttest_2004july_page2 = 'anth138-R1-007-2.jpg,anth138-R1-009-3.jpg,anth138-R1-011-4.jpg,anth138-R1-013-5.jpg,anth138-R1-015-6.jpg,anth138-R1-017-7.jpg,anth138-R1-019-8.jpg,anth138-R1-021-9.jpg,anth138-R1-023-10.jpg,anth138-R1-025-11.jpg,anth138-R1-027-12.jpg,anth138-R1-029-13.jpg,anth138-R1-031-14.jpg,anth138-R1-033-15.jpg,anth138-R1-035-16.jpg,anth138-R1-037-17.jpg,anth138-R1-039-18.jpg,anth138-R1-041-19.jpg,anth138-R1-043-20.jpg,anth138-R1-045-21.jpg,anth138-R1-047-22.jpg,anth138-R1-049-23.jpg,anth138-R1-051-24.jpg,anth138-R1-053-25.jpg,anth138-R2-005-1.jpg,anth138-R2-007-2.jpg,anth138-R2-009-3.jpg,anth138-R2-011-4.jpg,anth138-R2-013-5.jpg,anth138-R2-015-6.jpg,anth138-R2-017-7.jpg,anth138-R2-019-8.jpg,anth138-R2-021-9.jpg,anth138-R2-023-10.jpg,anth138-R2-025-11.jpg,anth138-R2-027-12.jpg,anth138-R2-029-13.jpg,anth138-R2-031-14.jpg,anth138-R2-033-15.jpg,anth138-R2-035-16.jpg,anth138-R2-037-17.jpg,anth138-R2-039-18.jpg,anth138-R2-041-19.jpg,anth138-R2-043-20.jpg,anth138-R2-045-21.jpg,anth138-R2-047-22.jpg,anth138-R3-007-2.jpg,anth138-R3-009-3.jpg,anth138-R3-011-4.jpg,anth138-R3-013-5.jpg,anth138-R3-015-6.jpg,anth138-R3-017-7.jpg,anth138-R3-019-8.jpg,anth138-R3-021-9.jpg,anth138-R3-023-10.jpg,anth138-R3-025-11.jpg,anth138-R3-027-12.jpg,anth138-R3-029-13.jpg,anth138-R3-031-14.jpg,anth138-R3-033-15.jpg,anth138-R3-035-16.jpg,anth138-R3-037-17.jpg,anth138-R3-039-18.jpg,anth138-R3-041-19.jpg,anth138-R3-043-20.jpg,anth138-R3-045-21.jpg,anth138-R3-047-22.jpg,anth138-R3-049-23.jpg,anth138-R3-051-24.jpg,anth138-R3-053-25.jpg,anth138-R4-007-2.jpg,anth138-R4-009-3.jpg,anth138-R4-011-4.jpg,anth138-R4-013-5.jpg,anth138-R4-015-6.jpg,anth138-R4-017-7.jpg,anth138-R4-019-8.jpg,anth138-R4-021-9.jpg,anth138-R4-023-10.jpg,anth138-R4-025-11.jpg,anth138-R4-029-13.jpg,anth138-R4-031-14.jpg,anth138-R4-033-15.jpg,anth138-R4-035-16.jpg,anth138-R4-037-17.jpg,anth138-R4-039-18.jpg,anth138-R4-041-19.jpg,anth138-R4-043-20.jpg,anth138-R4-045-21.jpg,anth138-R4-047-22.jpg,anth138-R4-049-23.jpg,anth138-R4-051-24.jpg,anth138-R4-E071.jpg';
var bringafriendadultphotos = 'IMG_3422.jpg,IMG_3491.jpg,IMG_3492.jpg,IMG_3493.jpg,IMG_3494.jpg,IMG_3495.jpg,IMG_3496.jpg,IMG_3497.jpg,IMG_3498.jpg,IMG_3499.jpg,IMG_3500.jpg,IMG_3501.jpg,IMG_3502.jpg,IMG_3503.jpg,IMG_3504.jpg,IMG_3505.jpg,IMG_3506.jpg,IMG_3507.jpg,IMG_3508.jpg,IMG_3509.jpg,IMG_3510.jpg,IMG_3511.jpg,IMG_3512.jpg,IMG_3513.jpg,IMG_3514.jpg,IMG_3515.jpg,IMG_3516.jpg,IMG_3517.jpg,IMG_3518.jpg,IMG_3519.jpg,IMG_3520.jpg,IMG_3521.jpg,IMG_3522.jpg,IMG_3523.jpg,IMG_3524.jpg,IMG_3525.jpg,IMG_3526.jpg,IMG_3527.jpg,IMG_3528.jpg,IMG_3529.jpg,IMG_3530.jpg,IMG_3531.jpg,IMG_3532.jpg,IMG_3533.jpg,IMG_3534.jpg,IMG_3535.jpg,IMG_3536.jpg,IMG_3537.jpg,IMG_3538.jpg,IMG_3539.jpg';
var tournament2006photos = 'tournament2006_5181.jpg,tournament2006_5182.jpg,tournament2006_5184.jpg,tournament2006_5185.jpg,tournament2006_5186.jpg,tournament2006_5187.jpg,tournament2006_5188.jpg,tournament2006_5189.jpg,tournament2006_5190.jpg,tournament2006_5191.jpg,tournament2006_5192.jpg,tournament2006_5193.jpg,tournament2006_5194.jpg,tournament2006_5195.jpg,tournament2006_5196.jpg,tournament2006_5197.jpg,tournament2006_5198.jpg,tournament2006_5199.jpg,tournament2006_5200.jpg,tournament2006_5201.jpg,tournament2006_5202.jpg,tournament2006_5203.jpg,tournament2006_5204.jpg,tournament2006_5205.jpg,tournament2006_5206.jpg,tournament2006_5207.jpg,tournament2006_5208.jpg,tournament2006_5209.jpg,tournament2006_5210.jpg,tournament2006_5211.jpg,tournament2006_5212.jpg,tournament2006_5213.jpg,tournament2006_5214_mov.jpg,tournament2006_5215.jpg,tournament2006_5216.jpg,tournament2006_5217.jpg,tournament2006_5218.jpg,tournament2006_5219.jpg,tournament2006_5220.jpg,tournament2006_5221.jpg,tournament2006_5222.jpg,tournament2006_5223.jpg,tournament2006_5224.jpg,tournament2006_5225.jpg,tournament2006_5226.jpg,tournament2006_5227.jpg,tournament2006_5228.jpg,tournament2006_5229.jpg,tournament2006_5230.jpg,tournament2006_5231.jpg,tournament2006_5232.jpg,tournament2006_5233.jpg,tournament2006_5234.jpg,tournament2006_5235.jpg,tournament2006_5236.jpg,tournament2006_5237.jpg,tournament2006_5238.jpg,tournament2006_5239.jpg,tournament2006_5240.jpg,tournament2006_5241.jpg,tournament2006_5242.jpg,tournament2006_5243.jpg,tournament2006_5244.jpg,tournament2006_5245.jpg,tournament2006_5246.jpg,tournament2006_5247.jpg,tournament2006_5248.jpg,tournament2006_5249.jpg,tournament2006_5250.jpg,tournament2006_5251.jpg,tournament2006_5252.jpg,tournament2006_5253.jpg,tournament2006_5254.jpg,tournament2006_5255.jpg,tournament2006_5256.jpg,tournament2006_5257.jpg,tournament2006_5258.jpg,tournament2006_5259.jpg,tournament2006_5260.jpg,tournament2006_5261.jpg,tournament2006_5262.jpg,tournament2006_5263.jpg,tournament2006_5264.jpg,tournament2006_5265.jpg,tournament2006_5266.jpg,tournament2006_5267.jpg,tournament2006_5268.jpg,tournament2006_5269.jpg,tournament2006_5270.jpg,tournament2006_5271.jpg,tournament2006_5272.jpg,tournament2006_5273.jpg,tournament2006_5274.jpg,tournament2006_5275.jpg,tournament2006_5276.jpg,tournament2006_5277.jpg,tournament2006_5278.jpg,tournament2006_5279.jpg,tournament2006_5280.jpg,tournament2006_5281.jpg,tournament2006_5282.jpg,tournament2006_5283.jpg,tournament2006_5284.jpg,tournament2006_5285.jpg,tournament2006_5286.jpg,tournament2006_5287.jpg,tournament2006_5288.jpg,tournament2006_5289.jpg,tournament2006_5290.jpg,tournament2006_5291.jpg,tournament2006_5292.jpg,tournament2006_5293.jpg,tournament2006_5294.jpg,tournament2006_5295.jpg,tournament2006_5296.jpg,tournament2006_5297.jpg,tournament2006_5298.jpg,tournament2006_5299.jpg,tournament2006_5301.jpg,tournament2006_5302.jpg,tournament2006_5303.jpg,tournament2006_5304.jpg,tournament2006_5305.jpg,tournament2006_5306.jpg,tournament2006_5307.jpg,tournament2006_5308.jpg,tournament2006_5309.jpg,tournament2006_5310.jpg,tournament2006_5311.jpg,tournament2006_5312.jpg,tournament2006_5313.jpg,tournament2006_5314.jpg,tournament2006_5315_mov.jpg,tournament2006_5316.jpg,tournament2006_5317_mov.jpg,tournament2006_5318.jpg,tournament2006_5319.jpg,tournament2006_5320.jpg,tournament2006_5321_mov.jpg,tournament2006_5322_mov.jpg,tournament2006_5323.jpg,tournament2006_5324.jpg,tournament2006_5325.jpg,tournament2006_5326.jpg,tournament2006_5327.jpg,tournament2006_5328.jpg,tournament2006_5329.jpg,tournament2006_5330.jpg,tournament2006_5331.jpg,tournament2006_5332.jpg,tournament2006_5333_mov.jpg,tournament2006_5334_mov.jpg,tournament2006_5335.jpg,tournament2006_5336.jpg,tournament2006_5337.jpg,tournament2006_5338.jpg,tournament2006_5340.jpg,tournament2006_5341.jpg,tournament2006_5342.jpg,tournament2006_5343.jpg,tournament2006_5344.jpg,tournament2006_5345.jpg,tournament2006_5346.jpg,tournament2006_5347.jpg,tournament2006_5348.jpg,tournament2006_5349.jpg,tournament2006_5350.jpg,tournament2006_5351.jpg,tournament2006_5352.jpg,tournament2006_5353.jpg,tournament2006_5354.jpg,tournament2006_5355.jpg,tournament2006_5356.jpg,tournament2006_5357.jpg,tournament2006_5358.jpg,tournament2006_5359.jpg,tournament2006_5360.jpg,tournament2006_5361.jpg,tournament2006_5362.jpg,tournament2006_5363.jpg,tournament2006_5364.jpg,tournament2006_5366.jpg,tournament2006_5367.jpg,tournament2006_5368.jpg,tournament2006_5369.jpg,tournament2006_5370.jpg,tournament2006_5371.jpg,tournament2006_5372.jpg,tournament2006_5373.jpg,tournament2006_5374.jpg,tournament2006_5375.jpg'
var breakathon2007photos = '2007March BBT 003.jpg,2007March BBT 010.jpg,2007March BBT 026.jpg,2007March BBT 029.jpg,2007March BBT 030.jpg,2007March BBT 031.jpg,2007March BBT 037.jpg,2007March BBT 050.jpg,2007March BBT 057.jpg,2007March BBT 058.jpg,2007March BBT 071.jpg,2007March BBT 072.jpg,2007March BBT 079.jpg,2007March BBT 082.jpg,2007March BBT 089.jpg,2007March BBT 108.jpg,2007March BBT 109.jpg,2007March BBT 114.jpg,2007March BBT 130.jpg,2007March BBT 138.jpg,2007March BBT 139.jpg,2007March BBT 211.jpg,2007March BBT 235.jpg,2007March BBT 255.jpg,2007March BBT 293.jpg,2007March BBT 304.jpg,2007March BBT 311.jpg,2007March BBT 328.jpg,2007March BBT 329.jpg,2007March BBT 336.jpg,2007March BBT 355.jpg,2007March BBT 382.jpg,DSC_0066.jpg,DSC_0068.jpg,DSC_0075.jpg,DSC_0076.jpg,DSC_0124.jpg,DSC_0128.jpg,DSC_0144.jpg,DSC_0148.jpg,DSC_0173.jpg,DSC_0181.jpg,DSC_0198.jpg,DSC_0200.jpg,DSC_0205.jpg,DSC_0224.jpg,DSC_0236.jpg,DSC_0243.jpg,DSC_0273.jpg,DSC_0282.jpg,DSC_0291.jpg,DSC_0311.jpg,DSC_0320.jpg,DSC_0324.jpg,DSC_0328.jpg,DSC_0468.jpg,DSC_0473.jpg,DSC_0484.jpg,DSC_0490.jpg,DSC_0505.jpg,DSC_0528.jpg,IMG_8312.jpg,IMG_8321.jpg,IMG_8352.jpg,IMG_8353.jpg,IMG_8354.jpg,IMG_8355.jpg,IMG_8356.jpg,IMG_8361.jpg,IMG_8376.jpg,IMG_8377.jpg,IMG_8379.jpg,IMG_8409.jpg,IMG_8414.jpg,IMG_8426.jpg,IMG_8442.jpg,IMG_8454.jpg,IMG_8463.jpg,IMG_8469.jpg,IMG_8470.jpg,IMG_8471.jpg,IMG_8472.jpg,IMG_8487.jpg'
var breakathon2007videos = 'http://video.google.com/googleplayer.swf?docId=-6014228020868292898&hl=en,http://video.google.com/googleplayer.swf?docId=-8553262458128540152&hl=en,http://video.google.com/googleplayer.swf?docId=-7049452577757946591&hl=en,http://video.google.com/googleplayer.swf?docId=1904586686813551940&hl=en,http://video.google.com/googleplayer.swf?docId=-1942888003742005888&hl=en,http://video.google.com/googleplayer.swf?docId=-788238044815123521&hl=en,http://video.google.com/googleplayer.swf?docId=-1300893942304463598&hl=en,http://video.google.com/googleplayer.swf?docId=-3441222886780183449&hl=en,http://video.google.com/googleplayer.swf?docid=1066007820953888505&hl=en,http://video.google.com/googleplayer.swf?docid=5618138110756413893&hl=en,http://video.google.com/googleplayer.swf?docId=-604353551887677919&hl=en,http://video.google.com/googleplayer.swf?docId=-7483576473956152096&hl=en,http://video.google.com/googleplayer.swf?docId=-5685694018054845578&hl=en';
var breakathon2007videolabels = 'Grand Master Kyu Boong Yim,Master Sang Lee,Master Sang Lee,Master Dick Ross,Master Joanne Aronoff,Jerry Brockett,Steve Best,Mary Jane Adams,Dr. Bill Schutze,Angel Marshall,Pajmeon,Wes Davis,Willie Aguire';

function loadPicture4(photogroup,photonumber){
  var pictureName;
  var pictureArr;
  var nextimage;
  var indexurl;
  
  switch(photogroup){
    case 'blackbeltclass':
      pictureArr = blackbeltclassphotos.split(",");    
      pictureName = "images/blackbeltclass/" + pictureArr[photonumber];
      indexurl = "photos_blackbeltclass.asp";
      break;
    case 'tournament':
      pictureArr = tournamentphotos.split(",");    
      pictureName = "images/tournament/" + pictureArr[photonumber];
      indexurl = "photos_tournament.asp";
      break;
    case 'tournament2006':
      pictureArr = tournament2006photos.split(",");    
      pictureName = "images/tournament2006/" + pictureArr[photonumber];
      indexurl = "photos_tournament2006.asp";
      break;
    case 'colorbelttest_2004dec':
      pictureArr = colorbelttest_2004dec.split(",");    
      pictureName = "images/colorbelttest/2004dec/" + pictureArr[photonumber];
      indexurl = "photos_colorbelttest_2004dec.asp";
      break;
    case 'breakathon':
      pictureArr = breakathonphotos.split(",");    
      pictureName = "images/breakathon/" + pictureArr[photonumber];
      indexurl = "photos_breakathon.asp";
      break;
    case 'breakathon2007':
      pictureArr = breakathon2007photos.split(",");    
      pictureName = "images/breakathon2007/" + pictureArr[photonumber];
      indexurl = "photos_breakathon2007.asp";
      break;            
    case 'colorclass':
      pictureArr = colorclassphotos.split(",");    
      pictureName = "images/colorclass/" + pictureArr[photonumber];
      indexurl = "photos_colorclass.asp";
      break;            
    case 'blackbelttest_2004july_page1':
      pictureArr = blackbelttest_2004july_page1.split(",");    
      pictureName = "images/blackbelttest/2004july/page1/" + pictureArr[photonumber];
      indexurl = "photos_blackbelttest_2004july_page1.asp";
      break;            
    case 'blackbelttest_2004july_page2':
      pictureArr = blackbelttest_2004july_page2.split(",");    
      pictureName = "images/blackbelttest/2004july/page2/" + pictureArr[photonumber];
      indexurl = "photos_blackbelttest_2004july_page2.asp";
      break;            
    case 'bringafriendadult':
      pictureArr = bringafriendadultphotos.split(",");    
      pictureName = "images/bringafriendadult/" + pictureArr[photonumber];
      indexurl = "photos_bringafriendadult.asp";
      break;            
  }

  if (photonumber == pictureArr.length - 1){
    nextimage = -99;
  }
  else{
    nextimage = photonumber + 1;
  }
  
  location.href = "showphoto5.asp?photoname=" + pictureName + "&photogroup=" + photogroup + "&previmage=" + (photonumber - 1).toString() + "&nextimage=" + nextimage.toString() + "&indexurl=" + indexurl;
}

function loadVideo1(videogroup,videonumber){
  var videoName;
  var videoArr;
  var nextvideo;
  var indexurl;
  
  var labelText;
  var labelArr;
  
  switch(videogroup){
   case 'breakathon2007':
      videoArr = breakathon2007videos.split(",");    
      videoName = videoArr[videonumber];
      indexurl = "videos_breakathon2007.asp";
      
      labelArr = breakathon2007videolabels.split(",");    
      labelText = labelArr[videonumber];
      break;            
   }

  if (videonumber == videoArr.length - 1){
    nextvideo = -99;
  }
  else{
    nextvideo = videonumber + 1;
  }
  //alert(videoName);
  location.href = "showvideo1.asp?videoname=" + escape(videoName) + "&videogroup=" + videogroup + "&previmage=" + (videonumber - 1).toString() + "&nextimage=" + nextvideo.toString() + "&indexurl=" + indexurl + "&label=" + escape(labelText);
}

//function loadPicture4(pictureName, previmage, nextimage, previmage2, nextimage2) {
    //parent.otherFrameName.location.href = "other.asp?" + pictureName;
//    alert('load4');
//  location.href = "showphoto4.asp?picname=" + pictureName + "&previmage=" + previmage + "&nextimage=" + nextimage + "&previmage2=" + previmage2 + "&nextimage2=" + nextimage2;
//}

function create_thumbnails(root_name,pic_max,number_per_row,pic_width,page_title){
	for (pic_number = 1; pic_number <= pic_max; pic_number++) {
		if (pic_number == 1) {
			this_prefix="<tr>";
			this_suffix="";
		}
		else if (pic_number == pic_max) {
			this_prefix="";
			this_suffix="</tr>";
		}
		else {
			x=pic_number/number_per_row + ""
	
			if (x.indexOf(".")==-1) {
				this_prefix="";
				this_suffix="</tr><tr>";
			}
			else {
				this_prefix="";
				this_suffix="";
			}
		}
		
		document.write(this_prefix + "<td bgcolor='#666666' align='center'><a href='photos_show.asp?root_name=" + root_name + "&pic_number=" + pic_number + "&pic_max=" + pic_max + "&ptitle=" + page_title + "'><img src='images/photos/" + root_name + "_" + pic_number + ".jpg' border='0' width='" + pic_width + "'></a></td>" + this_suffix);
	}

}

// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// 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/front1.jpg'
Pic[1] = 'images/front2.jpg'
Pic[2] = 'images/front3.jpg'
Pic[3] = 'images/front4.jpg'
Pic[4] = 'images/front5.jpg'
Pic[5] = 'images/front6.jpg'
Pic[6] = 'images/front7.jpg'

// =======================================
// do not edit anything below this line 
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()

function setupSlideShow(){
  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()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
