/***********************************************
* Fade-in image slideshow script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Modified by Andrew McCafferty
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for original full source code
***********************************************/
var slideshow_width='400px' //SET IMAGE WIDTH
var slideshow_height='300px' //SET IMAGE HEIGHT
var subDirectory= '../slideshow//'  //image subdirectory, use // for /
var curimageindex=0  // first image to show (0 for image 1, etc.)
//don't change
var fadeimages=new Array()
var imageTitle= new Array()
var c = -1
//
//SET IMAGE S and Titles -- must be in slideshow sub-directory

//-- Add latest info form topˇ@----------------//




c = c + 1;
fadeimages[c]="2011.Retreat.MacKayTour.JPG"
imageTitle[c]="2011 Retreat MacKay Tour"
c = c + 1;
fadeimages[c]="2011.CRTSgraduation(44).JPG"
imageTitle[c]="2011 Graduation(1)"
c = c + 1;
fadeimages[c]="2011.CRTSgraduation(112).JPG"
imageTitle[c]="2011 Graduation(2)"
c = c + 1;
fadeimages[c]="2011.CRTSgraduation(80).JPG"
imageTitle[c]="2011 Graduation(3)"
c = c + 1;
fadeimages[c]="2011.Mini.1Timothy.JPG"
imageTitle[c]="2011 Mini-Course: 1 Timothy"
c = c + 1;
fadeimages[c]="2011.Th M.Lecture.Three in One.jpg"
imageTitle[c]="Th M. Lecture on Heidelberg Catechism"
c = c + 1;
fadeimages[c]="2010.Mini.Depression.Jiao.JPG"
imageTitle[c]="2010 Mini Course - Depression: Case Study "
c = c + 1;
fadeimages[c]="2010.Mini.1John.Wu.JPG"
imageTitle[c]="2010 Mini Course - 1 John"
c = c + 1;
fadeimages[c]="2010Puritan.JPG"
imageTitle[c]="2010 Dr. Carl Trueman's Open Lecture on John Owen"
c = c + 1;
fadeimages[c]="2010Rev.TongLecture.JPG"
imageTitle[c]="2010 Rev. Stephen Tong's Special Lectures on Marriage and Family"
c = c + 1;
fadeimages[c]="2009LillbackLecture(2).jpg"
imageTitle[c]="Dr. Peter Lillback's Lectures on Covenant Theology(2)"
c = c + 1;
fadeimages[c]="2009LillbackLecture(1).jpg"
imageTitle[c]="Dr. Peter Lillback's Lectures on Covenant Theology(1)"
c = c + 1;
fadeimages[c]="2009TongThLecture.jpg"
imageTitle[c]="24th Theological Lecture of Rev. Stephen Tong"
c = c + 1;
fadeimages[c]="2009S.LingSeminar.jpg"
imageTitle[c]="2009 June 8-9, Psychology and Bible seminar, Focused Audiences"
c = c + 1;
fadeimages[c]="2009S.LingSeminar(4).jpg"
imageTitle[c]="2009 June 8-9, Psychology and Bible seminar, by Dr. Samuel Ling"
c = c + 1;
fadeimages[c]="2009CRTSgraduation(30).jpg"
imageTitle[c]="2009 June 3, Dr. Stephen Tong's Graduation Sermon"
c = c + 1;
fadeimages[c]="2009GraduatedStudents.jpg"
imageTitle[c]="2009 Seven Graduated Students"
c = c + 1;
fadeimages[c]="2009Rev.TongLecture.jpg"
imageTitle[c]="2009 June 3, Pregraduation Lecture, by Dr. Stephen Tong"
c = c + 1;
fadeimages[c]="2008FallThMSeminarOnWCF.jpg"
imageTitle[c]="2008 ThM seminar on WCF"
c = c + 1;
fadeimages[c]="2008ThMonWCF(1).jpg"
imageTitle[c]="1st ThM class on Westminster Confession of Faith"
c = c + 1;
fadeimages[c]="2008ThMonWCF(2).jpg"
imageTitle[c]="1st ThM class on Westminster Confession of Faith"
c = c + 1;
fadeimages[c]="2008FallOpeningWorship.jpg"
imageTitle[c]="CRTS fall 08 opening worship"
c = c + 1;
fadeimages[c]="2008AllSchoolRetreat.jpg"
imageTitle[c]="2008 CRTS all school retreat"
c = c + 1;
fadeimages[c]="2008RetreatDeanUlrichandMosesWong.jpg"
imageTitle[c]="Dean Ulrich and Moses Wong on 2008 School Retreat"
c = c + 1;
fadeimages[c]="2008FallMiniClassWong.jpg"
imageTitle[c]="2008 Moses Wong's Joshua mini-class Sept 08"
c = c + 1;
fadeimages[c]="2008FallDean'sofficeYates.jpg"
imageTitle[c]="Tim's CRTS  Dean's office"
c = c + 1;
fadeimages[c]="2008birthdayMcCafferty(1).jpg"
imageTitle[c]="2008 Andy McCafferty's 53 birthday cake"
c = c + 1;
fadeimages[c]="2008birthdayMcCafferty(2).jpg"
imageTitle[c]="2008 Andy McCafferty's 53 birthday cake"
c = c + 1;
fadeimages[c]="2008parenting.jpg"
imageTitle[c]="2008 Parenting course"
c = c + 1;
fadeimages[c]="2008prayer1.jpg"
imageTitle[c]="2008 weekly prayer meeting"
c = c + 1;
fadeimages[c]="2008prayer2.jpg"
imageTitle[c]="2008 weekly prayer meeting"
c = c + 1;
fadeimages[c]="2008prayer3.jpg"
imageTitle[c]="2008 weekly prayer meeting"
c = c + 1;
fadeimages[c]="2008opening.jpg"
imageTitle[c]="2008 opening worship"
c = c + 1;
fadeimages[c]="2008opening1.jpg"
imageTitle[c]="2008 opening worship"
c = c + 1;
fadeimages[c]="2008Ulrich1.jpg"
imageTitle[c]="2008 Dr. Dean Ulrich"
c = c + 1;
fadeimages[c]="2008Ulrich2.jpg"
imageTitle[c]="2008 Ulrich couple at National Palace Museum"
c = c + 1;
fadeimages[c]="2008Ulrich3.jpg"
imageTitle[c]="2008 Jeremiah mini-course"
c = c + 1;
fadeimages[c]="2007NationalPalaceMuseum.jpg"
imageTitle[c]="2007 Omerly couple at National Palace Museum"
c = c + 1;
fadeimages[c]="2007president.jpg"
imageTitle[c]="2007 student association president"
c = c + 1;
fadeimages[c]="2007thanksgiving01.jpg"
imageTitle[c]="2007 Thanksgiving big table"
c = c + 1;
fadeimages[c]="2007thanksgiving02.jpg"
imageTitle[c]="2007 Thanksgiving big table"
c = c + 1;
fadeimages[c]="2007thanksgiving03.jpg"
imageTitle[c]="2007 Big fruit"
c = c + 1;
fadeimages[c]="2007thanksgiving04.jpg"
imageTitle[c]="2007 FCC sisters"
c = c + 1;
fadeimages[c]="2007thanksgiving05.jpg"
imageTitle[c]="2007 We are satified"
c = c + 1;
fadeimages[c]="2007thanksgiving06.jpg"
imageTitle[c]="2007 We are joyful"
c = c + 1;
fadeimages[c]="2007thanksgiving07.jpg"
imageTitle[c]="2007 We are peaceful"
c = c + 1;
fadeimages[c]="2007thanksgiving08.jpg"
imageTitle[c]="2007 Taste the fresh"
c = c + 1;
fadeimages[c]="2007thanksgiving09.jpg"
imageTitle[c]="2007 ladies dinning"
c = c + 1;
fadeimages[c]="2007thanksgiving10.jpg"
imageTitle[c]="2007 We are full"
c = c + 1;
fadeimages[c]="2007thanksgiving11.jpg"
imageTitle[c]="2007 We are grateful"
c = c + 1;
fadeimages[c]="2007jiayistudents.jpg"
imageTitle[c]="2007 distance students"
c = c + 1;
fadeimages[c]="2007gospel.jpg"
imageTitle[c]="2007 Stephen Tong Christmas Gospel Rally"
c = c + 1;
fadeimages[c]="2007Freshmen.jpg"
imageTitle[c]="2007 Freshmen"
c = c + 1;
fadeimages[c]="2007ToonYeo.jpg"
imageTitle[c]="2007 Rev. Toon Yeo mini-course"
c = c + 1;
fadeimages[c]="2007libraryworkers1.jpg"
imageTitle[c]="2007 Summer super good helpers"
c = c + 1;
fadeimages[c]="2007libraryworkers.jpg"
imageTitle[c]="2007 Library catalog Jiang & Wang"
c = c + 1;
fadeimages[c]="2007LeeJianAn.jpg"
imageTitle[c]="2007 Dr. Lee Ken Ang Gospel & Culture course"
c = c + 1;
fadeimages[c]="2007SongShanYouthFellowship.jpg"
imageTitle[c]="2007 Song Shan Youth help Reformed Press to move"
c = c + 1;
fadeimages[c]="2007GraduationKim.jpg"
imageTitle[c]="2007 Graduation Dr. Kim Eui Huan preaching"
c = c + 1;
fadeimages[c]="2007GraduationChorus.jpg"
imageTitle[c]="2007 Graduation student chorus"
c = c + 1;
fadeimages[c]="2007Graduation.jpg"
imageTitle[c]="2007 Graduation praise"
c = c + 1;
fadeimages[c]="2007Graduates.jpg"
imageTitle[c]="2007 Graduation graduates and teachers"
c = c + 1;
fadeimages[c]="2007LukeLu.jpg"
imageTitle[c]="2007 Luke Lu mini-course N.T. Theology"
c = c + 1;
fadeimages[c]="2007OpeningWorship.jpg"
imageTitle[c]="2007 Opening Worship"
c = c + 1;
fadeimages[c]="2007OpeningWorshipTheYao.jpg"
imageTitle[c]="2007 Opening Worship - Rev. & Mrs. Yao"
c = c + 1;
fadeimages[c]="2007OpeningWorshipTheWhite.jpg"
imageTitle[c]="2007 Opening Worship - Rev. & Mrs. White"
c = c + 1;
fadeimages[c]="2007OpeningWorshipChen.jpg"
imageTitle[c]="2007 Opening Worship - M.Div. student preaching"
c = c + 1;
fadeimages[c]="2007ResearchMethod.jpg"
imageTitle[c]="2007 Paper Writing & Research Methods"
c = c + 1;
fadeimages[c]="2007ResearchMethod1.jpg"
imageTitle[c]="2007 Paper Writing & Research Methods"
c = c + 1;
fadeimages[c]="2006StudentsDinetogether.jpg"
imageTitle[c]="2006 Students and teacher dine together"
c = c + 1;
fadeimages[c]="2006NEWYatesfamily.JPG"
imageTitle[c]="2006 NEW Yates family"
c = c + 1;
fadeimages[c]="2006DutchCoworkers.jpg"
imageTitle[c]="2006 Dutch Reformed Coworkers visiting"
c = c + 1;
fadeimages[c]="2006GospelRally.jpg"
imageTitle[c]="2006 Dr. Stephen Tong Christmas Gospel Rally"
c = c + 1;
fadeimages[c]="2006Thanksgiving1.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving2.JPG"
imageTitle[c]="2006 Thanksgiving Table"
c = c + 1;
fadeimages[c]="2006Thanksgiving3.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving4.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving5.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving6.JPG"
imageTitle[c]="2006 Thanksgiving Lilian and Zhu En"
c = c + 1;
fadeimages[c]="2006Thanksgiving7.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving8.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving9.JPG"
imageTitle[c]="2006 Thanksgiving"
c = c + 1;
fadeimages[c]="2006Thanksgiving10.JPG"
imageTitle[c]="2006 Thanksgiving Dr. Yates' Family"
c = c + 1;
fadeimages[c]="2006Thanksgiving11.JPG"
imageTitle[c]="2006 Thanksgiving Pastor Li and Pastor Yao"
c = c + 1;
fadeimages[c]="2006JinShan3.jpg"
imageTitle[c]="2006 National Day - JinBaoLi Rd. stone bridge"
c = c + 1;
fadeimages[c]="2006jinShan4.jpg"
imageTitle[c]="2006 National Day - JinBaoLi Rd. stone bridge"
c = c + 1;
fadeimages[c]="2006YeLiu.jpg"
imageTitle[c]="2006 National Day - children of students"
c = c + 1;
fadeimages[c]="2006JinShan.jpg"
imageTitle[c]="2006 National Day - JinBaoLi Rd. old lodge"
c = c + 1;
fadeimages[c]="2006JinShan2.jpg"
imageTitle[c]="2006 National Day - JinBaoLi Rd. on Yang Ming Mt."
c = c + 1;
fadeimages[c]="2006retreatOpening.JPG"
imageTitle[c]="2006 Retreat - Rev. Huang Bing Xun"
c = c + 1;
fadeimages[c]="2006retreatDinner.JPG"
imageTitle[c]="2006 Retreat dinner"
c = c + 1;
fadeimages[c]="2006retreatRevival.JPG"
imageTitle[c]="2006 Retreat - Rev. Huang Ying Hang"
c = c + 1;
fadeimages[c]="2006retreatPrayer.JPG"
imageTitle[c]="2006 Retreat prayer - Rev. Tim Yates"
c = c + 1;
fadeimages[c]="2006retreatGroupA.JPG"
imageTitle[c]="2006 Retreat prayer"
c = c + 1;
fadeimages[c]="2006retreatGroupB.JPG"
imageTitle[c]="2006 Retreat prayer"
c = c + 1;
fadeimages[c]="2006retreatClosing.JPG"
imageTitle[c]="2006 Retreat Closing Worship - Rev. Cai En ci"
c = c + 1;
fadeimages[c]="2006retreat.JPG"
imageTitle[c]="2006 Retreat"
c = c + 1;
fadeimages[c]="2006LukeLu0.jpg"
imageTitle[c]="2006 Luke Lu mini-course"
c = c + 1;
fadeimages[c]="2006LukeLu1.jpg"
imageTitle[c]="2006 Luke Lu mini-course"
c = c + 1;
fadeimages[c]="2006LukeLu2.jpg"
imageTitle[c]="2006 Luke Lu mini-course"
c = c + 1;
fadeimages[c]="2006ChongShin03.jpg"
imageTitle[c]="2006 Chong Shin University students visiting"
c = c + 1;
fadeimages[c]="2006ChongShin04.jpg"
imageTitle[c]="2006 Chong Shin University students"
c = c + 1;
fadeimages[c]="2006ChongShin02.jpg"
imageTitle[c]="2006 Global Missions Seminar"
c = c + 1;
fadeimages[c]="2006ChongShin01.jpg"
imageTitle[c]="2006 Global Missions Seminar"
c = c + 1;
fadeimages[c]="2006ChongShin05.jpg"
imageTitle[c]="2006 Global Missions Seminar"
c = c + 1;
fadeimages[c]="2006Graduation.jpg"
imageTitle[c]="2006 Graduation"
c = c + 1;
fadeimages[c]="2006peterzhou.jpg"
imageTitle[c]="2006 Rev. Peter Zhou - Ephesians"
c = c + 1;
fadeimages[c]="2006RTAMeeting.jpg"
imageTitle[c]="2006 Reformed Theological Meeting"
c = c + 1;
fadeimages[c]="2006silman.jpg"
imageTitle[c]="2006 Rev. Andrew Silman mini-course"
c = c + 1;
fadeimages[c]="2006bbqbaby.jpg"
imageTitle[c]="2006 BBQ our youngest sister"
c = c + 1;
fadeimages[c]="2006bbq.jpg"
imageTitle[c]="2006 Barbeque"
c = c + 1;
fadeimages[c]="2006bbqidea.jpg"
imageTitle[c]="2006 BBQ crazy idea"
c = c + 1;
fadeimages[c]="2006bbqCMI.jpg"
imageTitle[c]="2006 BBQ CMI student"
c = c + 1;
fadeimages[c]="2006bbqchildren.jpg"
imageTitle[c]="2006 BBQ teach children"
c = c + 1;
fadeimages[c]="2006SpringRetreat.jpg"
imageTitle[c]="2006 A Nice Rainy Retreat in Spring"
c = c + 1;
fadeimages[c]="2006domestic.jpg"
imageTitle[c]="2006 Domestic Violence and Sexual Assault"
c = c + 1;
fadeimages[c]="2006TimLim.jpg"
imageTitle[c]="2006 Tim Lim Course"
c = c + 1;
fadeimages[c]="2005asia.jpg"
imageTitle[c]="2005 Consultation on Christian Faith, Malaysia"
c = c + 1;
fadeimages[c]="2005sexeduLin.jpg"
imageTitle[c]="2005 Single Parent Sex Education - Sister Lin"
c = c + 1;
fadeimages[c]="2005sexeduTim.jpg"
imageTitle[c]="2005 Single Parent Sex Education - Rev. Yates"
c = c + 1;
fadeimages[c]="2005SungShanChurch.jpg"
imageTitle[c]="2005 End of course party at Rev. Tsai's Church"
c = c + 1;
fadeimages[c]="2005thanksgiving2.jpg"
imageTitle[c]="2005 Thanksgiving Table"
c = c + 1;
fadeimages[c]="2005thanksgiving1.jpg"
imageTitle[c]="2005 Thanksgiving most freshman"
c = c + 1;
fadeimages[c]="2005vocationalclass.jpg"
imageTitle[c]="2005 Single Parent Vocational training"
c = c + 1;
fadeimages[c]="2005vocational.jpg"
imageTitle[c]="2005 Single Parent Vocational training"
c = c + 1;
fadeimages[c]="2005rtameeting.jpg"
imageTitle[c]="2005 RTA Board Meeting"
c = c + 1;
fadeimages[c]="2005retreatChen.jpg"
imageTitle[c]="2005 Retreat - Rev. Steven Chen's lecture"
c = c + 1;
fadeimages[c]="2005retreat.jpg"
imageTitle[c]="2005 Retreat"
c = c + 1;
fadeimages[c]="2005retreatDavid.jpg"
imageTitle[c]="2005 Retreat - Rev. David White's lecture"
c = c + 1;
fadeimages[c]="2005RetreatEnd.jpg"
imageTitle[c]="2005 End of Retreat"
c = c + 1;
fadeimages[c]="2005andy50.jpg"
imageTitle[c]="2005 Rev. McCafferty's 50th birthday party"
c = c + 1;
fadeimages[c]="2005timhouse.jpg"
imageTitle[c]="2005 End of course party at Rev. Yates' house"
c = c + 1;
fadeimages[c]="2005LukeLu.jpg"
imageTitle[c]="2005 Luke Lu 2005 mini-course"
c = c + 1;
fadeimages[c]="2005Bossom.jpg"
imageTitle[c]="2005 Dr. Bossom May mini-course"
c = c + 1;
fadeimages[c]="2005Graduation.jpg"
imageTitle[c]="2005 Graduation"
c = c + 1;
fadeimages[c]="2005.LuBossomCourses.jpg"
imageTitle[c]="May-June 2005 mini-courses"
c = c + 1;
fadeimages[c]="2005BickelMccaffertyInDanSh.jpg"
imageTitle[c]="2005 Dr. Bickel In DanShui"
c = c + 1;
fadeimages[c]="2005BickelClass.jpg"
imageTitle[c]="2005 Bickel Class"
c = c + 1;
fadeimages[c]="2004MonsmaParty.jpg"
imageTitle[c]="2004 Monsma Party"
c = c + 1;
fadeimages[c]="2004Retreat.jpg"
imageTitle[c]="2004 Retreat"
c = c + 1;
fadeimages[c]="2004StevenLee.jpg"
imageTitle[c]="2004 Steven Lee Course"
c = c + 1;
fadeimages[c]="2004StruthersClass.jpg"
imageTitle[c]="2004 Struthers Class"
c = c + 1;
fadeimages[c]="2004FriendsCRTS.jpg"
imageTitle[c]="2004 Friends of CRTS"
c = c + 1;
fadeimages[c]="2004MrsSilman.jpg"
imageTitle[c]="2004 Mrs Silman at gorge"
c = c + 1;
fadeimages[c]="2004LukeLuCourse.jpg"
imageTitle[c]="2004 Luke Lu Course"
c = c + 1;
fadeimages[c]="2004GraduationReception.jpg"
imageTitle[c]="2004 Graduation Reception"
c = c + 1;
fadeimages[c]="2004Graduation_1.jpg"
imageTitle[c]="2004 Graduation"
c = c + 1;
fadeimages[c]="2004GrablesDanShui.jpg"
imageTitle[c]="2004 Graybills in DanShui"
c = c + 1;
fadeimages[c]="2004GaffinCourse.jpg"
imageTitle[c]="2004 Gaffin Course"
c = c + 1;
fadeimages[c]="2004GabelCourse.jpg"
imageTitle[c]="2004 Graybill Course"
c = c + 1;
fadeimages[c]="2003StudentTripSouth.jpg"
imageTitle[c]="2003 Student Trip South"
c = c + 1;
fadeimages[c]="2003MrsGramn.jpg"
imageTitle[c]="2003 Mrs. James Grahmn"
c = c + 1;
fadeimages[c]="2003McCaffertyIndonesiaClas.jpg"
imageTitle[c]="2003 Indonesia Class"
c = c + 1;
fadeimages[c]="2003GraduationTaylor.jpg"
imageTitle[c]="2003 Graduation Taylor"
c = c + 1;
fadeimages[c]="2003Graduation.jpg"
imageTitle[c]="2003 Graduation"
c = c + 1;
fadeimages[c]="2003GaffinCourse.jpg"
imageTitle[c]="2003 Gaffin Course"
c = c + 1;
fadeimages[c]="2002WangClass.jpg"
imageTitle[c]="2002 Wang Class"
c = c + 1;
fadeimages[c]="2002StruthersClass.jpg"
imageTitle[c]="2002 Struthers Class"
c = c + 1;
fadeimages[c]="2002RtaIncorporating.jpg"
imageTitle[c]="2002 RTA Incorporating"
c = c + 1;
fadeimages[c]="2002RetreatYates.jpg"
imageTitle[c]="2002 Retreat Yates"
c = c + 1;
fadeimages[c]="2002PresbyteryRetreat.jpg"
imageTitle[c]="2002 Presbytery Retreat"
c = c + 1;
fadeimages[c]="2002PingPong.jpg"
imageTitle[c]="2002 Ping Pong"
c = c + 1;
fadeimages[c]="2002OurYoungestStudent.jpg"
imageTitle[c]="2002 Our Youngest Student"
c = c + 1;
fadeimages[c]="2002LukeLuClass.jpg"
imageTitle[c]="2002 Luke Lu Class"
c = c + 1;
fadeimages[c]="2002GuoClass2.jpg"
imageTitle[c]="2002 Guo Class"
c = c + 1;
fadeimages[c]="2002GraduationZhang.jpg"
imageTitle[c]="2002 Graduation Zhang"
c = c + 1;
fadeimages[c]="2002GraduationLiu.jpg";
imageTitle[c]="2002 Graduation Liu";


//-- Don't Change beyond hereˇ@----------------//
var ie4=document.all
var dom=document.getElementById
var curpos=10
var degree=10
var curcanvas="canvas0"
var tempobj
var t

////Don't Change beyond here/////////////
////Don't Change beyond here/////////////
//var preloadedimages=new Array()
//for (p=0;p<fadeimages.length;p++){
//preloadedimages[p]=new Image()
//preloadedimages[p].src=fadeimages[p]
//}



if (ie4||dom){
	//put the options in str
	var str = ""
	for (count = 0; count<fadeimages.length; count++){
		str = str+'<option value='+String(count)+'>'+ String(count+1) +'. '+imageTitle[count] ;
		}
   	str =str.replace("\'","\"");  
  	document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"> <div  id="canvas0" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10;visibility: hidden"></div></div>');
   	document.write('<table width='+slideshow_width+'  align="center"><tr><td align="left"> <form><select style="linkLine" OnChange="prevSlide()"  id="slideshow">'+ str +'</select></form></td><td align="right"><p><a href="javascript:nextSlide()">Next</a></p></td></tr></table>');
   	}
else
	{document.write('<img name="defaultslide" src="'+subDirectory+fadeimages[0]+'">')}

//fade the picture in
function fadepic(){
	if (curpos<100){
	t = window.setTimeout('fadepic()', 50);
	curpos+=3
	if (tempobj.filters)
		{tempobj.filters.alpha.opacity=curpos}
	else if (tempobj.style.MozOpacity)
		{tempobj.style.MozOpacity=curpos/101}
}
else{
	//update the slide tiitle  -- curimageindex has already been updated by 1
	var tempobj6=ie4? eval("document.all.slideshow") : document.getElementById("slideshow")
	tempobj6.selectedIndex = (curimageindex==0)? fadeimages.length-1:curimageindex-1
	// reset the curcanvas and next canvas
	curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
	nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
	// reset the <img> tag of the nextcanvas and hide the division -- ? download image
	var tempobj2=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
	tempobj2.innerHTML='<img src="'+subDirectory+fadeimages[curimageindex]+'">'
	tempobj2.style.visibility="hidden"
}
}

function rotateimage(){
if (ie4||dom){
	//swap the title of the current image
	//tempobj4=ie4? eval("document.all.imageTitle") : document.getElementById("imageTitle")
	//tempobj4.innerHTML = imageTitle[curimageindex]
	//set opacity of <div> to be shown back to 10  (i.e. the curcanvas division)
	resetit(curcanvas)
	//Get divsion
	tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	//show the division
	var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	crossobj.style.zIndex++
	tempobj.style.visibility="visible"
	//begin to fade the new image / div in
	var t = window.setTimeout('fadepic()', 50);

	// var temp ='setInterval("fadepic()",50)'
	// dropslide=eval(temp)
// moved 	
}
else
	document.images.defaultslide.src=''+subDirectory+fadeimages[curimageindex]
	curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}

//set opacity of <div> to be shown back to 10
function resetit(what){
curpos=10
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj.filters)
	crossobj.filters.alpha.opacity=curpos
else if (crossobj.style.MozOpacity)
	crossobj.style.MozOpacity=curpos/101
}

function nextSlide(){
	startit()
}

function prevSlide(){
	if (ie4||dom){
		var tempobj5=ie4? eval("document.all.slideshow") : document.getElementById("slideshow")
		if (tempobj5.selectedIndex!==(curimageindex==0)? fadeimages.length-1:curimageindex-1){
			curimageindex = tempobj5.selectedIndex  // 0 based
			startit()
		}		
	}	
}

function startit(){
	//curcanvas is the one that is about to be loaded  
	var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	crossobj.innerHTML='<img src="'+subDirectory+fadeimages[curimageindex]+'">'
	rotateimage()  //this fades the image in after rotating
    window.clearTimeout(t);	// incase they enter next to fast
}

if (ie4||dom)
	window.onload=startit
else
	setInterval("rotateimage()",pause)

