	//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='467px' //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]="./imagesLaosH45x3/2mcs_creek_crossing_Laos_H45x3-BS.jpg"
fadeimages0[1]="./imagesLaosH45x3/Standing_on_jar_POJ_Laos_H45x3-BS.jpg"
fadeimages0[2]="./imagesLaosH45x3/2_Akha_women_bambu_pipe_H45x3-BS.jpg"
fadeimages0[3]="./imagesLaosH45x3/River_cruise_thru_Kanglor_Cave_Laos_H45x3-BS.jpg"
fadeimages0[4]="./imagesLaosH45x3/Joe_xing_rvr_Laos_H45x3-BS.jpg"
fadeimages0[5]="./imagesLaosH45x3/Royal_temple_Luang_Prabang_Laos_H45x3-BS.jpg"
fadeimages0[6]="./imagesLaosH45x3/Wat_Foon_slanted_Laos_H45x3-BS.jpg"
fadeimages0[7]="./imagesLaosH45x3/Bikers_meet_hunters_Laos_H45x3-BS.jpg"
fadeimages0[8]="./imagesLaosH45x3/Riding_UXO_Laos_H45x3-BS.jpg"
fadeimages0[9]="./imagesLaosH45x3/Souvenir_of_Laos_H45x3-BS.jpg"
fadeimages0[10]="./imagesLaosH45x3/Flower_wat_entrance_Laos_H45x3-BS.jpg"
fadeimages0[11]="./imagesLaosH45x3/3_Lahu_girls_Laos_H45x3-BS.jpg"
fadeimages0[12]="./imagesLaosH45x3/2MCs_thru_Laos_valley_H45x3-BS.jpg"
fadeimages0[13]="./imagesLaosH45x3/Mekong_sunset_Laos_H45x3-BS.jpg"
fadeimages0[14]="./imagesLaosH45x3/3_Akha_HT_girls_Laos_H45x3-BS.jpg"
fadeimages0[15]="./imagesLaosH45x3/Chad_with_kids_on_mc_Laos_H45x3-BS.jpg"
fadeimages0[16]="./imagesLaosH45x3/Boat_transport_Schiapani_Laos_H45x3-BS.jpg"
fadeimages0[17]="./imagesLaosH45x3/Group_Hmong_men_Laos_H45x3-BS.jpg"
fadeimages0[18]="./imagesLaosH45x3/Ecstatic_Laos_dancing_Laos_H45x3-BS.jpg"
fadeimages0[19]="./imagesLaosH45x3/Group_of_standing_Budas_Laos_H45x3-BS.jpg"
fadeimages0[20]="./imagesLaosH45x3/5MCs_thru_Laos_valley_floor_H45x3-BS.jpg"
fadeimages0[21]="./imagesLaosH45x3/UXO_fence_posts_Laos_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)

