	//Fade-in image slideshow- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

var slideshow_width='463px' //SET IMAGE WIDTH
var slideshow_height='311px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages0=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages0[0]="./imagesGTh45x3/Exactly_Golden_Triangle_N_Thailand_H45x3-BS.jpg"
fadeimages0[1]="./imagesGTh45x3/Yellow_brick_rd_N_Thailand_cropH45x3-BS.jpg"
fadeimages0[2]="./imagesGTh45x3/Sunlit_mts_N_Thailand_H45x3-BS.jpg"
fadeimages0[3]="./imagesGTh45x3/Lisu_smile_N_Thailand_H45x3-BS.jpg"
fadeimages0[4]="./imagesGTh45x3/3mcs_soft_trail_N_Thailand-H45x3-BS.jpg"
fadeimages0[5]="./imagesGTh45x3/MC_group_ThaTon_Buda_N_Thailand_H45x3-BS.jpg"
fadeimages0[6]="./imagesGTh45x3/Log_bridge_with_mcs_N_Thailand_H45x3-BS.jpg"
fadeimages0[7]="./imagesGTh45x3/2bikersONmcs_front_stupa_N_Thailand_H45x3-BS.jpg"
fadeimages0[8]="./imagesGTh45x3/Chinese_temple_roof_N_Thailand_H45x3-BS.jpg"
fadeimages0[9]="./imagesGTh45x3/MCs_bikers_pose_Sukhothai_N_Thailand_H45x3-BS.jpg"
fadeimages0[10]="./imagesGTh45x3/4mcs_Wstupa_N_Thailand_H45x3-BS.jpg"
fadeimages0[11]="./imagesGTh45x3/Bottle_feeding_gibbon_N_Thailand_H45x3-BS.jpg"
fadeimages0[12]="./imagesGTh45x3/RR_elephant_camp_N_Thailand_H45x3-BS.jpg"
fadeimages0[13]="./imagesGTh45x3/Emerald_Buda_Chiang_Mai_N_Thailand_H45x3-BS.jpg"
fadeimages0[14]="./imagesGTh45x3/Biker_with_4_hilltribe_night_N_Thailand_H45x3-BS.jpg"
fadeimages0[15]="./imagesGTh45x3/Bikers_dancing_with_Lisu_N_Thailand_H45x3-BS.jpg"
////NO need to edit beyond here/////////////

var preloadedimages0=new Array()
for (p=0;p<fadeimages0.length;p++){
preloadedimages0[p]=new Image()
preloadedimages0[p].src=fadeimages0[p]
}

var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden"><div  id="canvas00" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas01" style="position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
else
document.write('<img name="defaultslide0" src="'+fadeimages0[0]+'">')

var curpos0=10
var degree0=10
var curcanvas0="canvas00"
var curimageindex0=0
var nextimageindex0=1


function fadepic0(){
if (curpos0<100){
curpos0+=10
if (tempobj0.filters)
tempobj0.filters.alpha.opacity=curpos0
else if (tempobj0.style.MozOpacity)
tempobj0.style.MozOpacity=curpos0/100
}
else{
clearInterval(dropslide0)
nextcanvas0=(curcanvas0=="canvas00")? "canvas00" : "canvas01"
tempobj0=ie4? eval("document.all."+nextcanvas0) : document.getElementById(nextcanvas0)
tempobj0.innerHTML='<img src="'+fadeimages0[nextimageindex0]+'">'
nextimageindex0=(nextimageindex0<fadeimages0.length-1)? nextimageindex0+1 : 0
setTimeout("rotateimage0()",pause)
}
}

function rotateimage0(){
if (ie4||dom){
resetit0(curcanvas0)
var crossobj0=tempobj0=ie4? eval("document.all."+curcanvas0) : document.getElementById(curcanvas0)
crossobj0.style.zIndex++
var temp0='setInterval("fadepic0()",50)'
dropslide0=eval(temp0)
curcanvas0=(curcanvas0=="canvas00")? "canvas01" : "canvas00"
}
else
document.images.defaultslide0.src=fadeimages0[curimageindex0]
curimageindex0=(curimageindex0<fadeimages0.length-1)? curimageindex0+1 : 0
}

function resetit0(what){
curpos0=10
var crossobj0=ie4? eval("document.all."+what) : document.getElementById(what)
if (crossobj0.filters)
crossobj0.filters.alpha.opacity=curpos0
else if (crossobj0.style.MozOpacity)
crossobj0.style.MozOpacity=curpos0/100
}

function startit0(){
var crossobj0=ie4? eval("document.all."+curcanvas0) : document.getElementById(curcanvas0)
crossobj0.innerHTML='<img src="'+fadeimages0[curimageindex0]+'">'
rotateimage0()
}

if (ie4||dom)
window.onload=startit0
else
setInterval("rotateimage0()",pause)

