<!--
//SET IMAGE PATHS. Extend or contract array as needed
 paths = new Array()
 paths[0] = 'slide.php?path=mb/illawarra/photos/&title=Mark%20Brindle<br>Illawarra,%20NSW&menu=&photo='
 paths[1] = 'slide.php?path=mb/ssh/photos/&title=Mark%20Brindle<br>Sydney%20Southern%20Highlands,%20NSW&menu=&photo='
 paths[2] = 'slide.php?path=trips/cowranov2005/n4/&title=Cowra,%20November%204-6,%202005%3Cbr%3EFriday%204th%20-%20%20Perfect%20start%20to%20a%20weekend%20of%20flying&menu=trips/cowranov2005/&photo='
 paths[3] = 'slide.php?path=trips/cowranov2005/n5/&title=Cowra,%20November%204-6,%202005%3Cbr%3ESaturday%205th%20-%20%20BBQ%20breakfast%20at%20Wyangala%20Dam&menu=trips/cowranov2005/&photo='
 paths[4] = 'slide.php?path=mb/trips/grenfelloct2006/o21/&menu=mb/trips/grenfelloct2006/&title=Grenfell,%20October%2021-22,%202006<br>Saturday%2021stth%20-%20%20Local%20flight%20to%20Greenthorpe/&photo='
 paths[5] = 'slide.php?path=jm/illawarra/photos/&title=James%20Macdonald<br>Illawarra,%20NSW%20-%20Australia&menu=&photo='
 paths[6] = 'slide.php?path=jm/quirindi/photos/&title=James%20Macdonald<br>Quirindi,%20NSW&menu=&photo='
 paths[7] = 'slide.php?path=mb/oaks/photos/&title=Mark%20Brindle<br>The%20Oaks&menu=&photo='
 paths[8] = 'slide.php?path=mb/illawarra/photos/&title=Mark%20Brindle<br>Illawarra,%20NSW&menu=&photo='
 paths[9] = ''
 paths[10]= 'slide.php?path=mb/shoalhaven/photos/&title=Mark%20Brindle<br>Shoalhaven,%20NSW&menu=&photo='
 paths[11]= 'slide.php?path=trips/cowraapril2005/a30/&title=Cowra,%20April%2029-May%201,%202005%3Cbr%3ESaturday%2030th%20-%20%20BBQ%20breakfast%20at%20Grenfel&menu=trips/cowraapril2005/&photo='
 paths[12]= 'slide.php?path=trips/cowraapril2005/m1/&title=Cowra,%20April%2029-May%201,%202005%3Cbr%3ESunday%201st%20-%20%20Flight%20to%20Wyangalla%20Dam&menu=trips/cowraapril2005/&photo='
 paths[13] = ''
 paths[14] = ''
 paths[15] = ''
 paths[16]= 'slide.php?path=trips/cowrajan2006/j22/&menu=trips/cowrajan2006/&title=Cowra,%20January%2021-23,%202006%3Cbr%3ESunday%2022nd%20-%20%20Early%20flight%20to%20Grenfell,%20evening%20Canowindra/&photo='
 paths[17]= 'thumbs.php?path=trips/cowrajan2006/j23/&title=Cowra,%20January%2021-23,%202006%3Cbr%3EMonday%2023rd%20-%20%20Early%20flight%20to%20Reads%20Flat%20and%20Wyangala%20Dam&menu=trips/cowrajan2006/&photo='
 paths[18] = ''
 paths[19]= 'slide.php?path=trips/cowrafeb2006/f2/&menu=trips/cowrafeb2006/&title=Cowra,%20February%202-4,%202006%3Cbr%3EThursday%202nd%20-%20%20Flight%20to%20Canowindra%20and%20Gooloogong/&photo='
 paths[20] = ''

 var root = "random/"
 var image = new Array()
 var i = 0
  	
 image[i++] =  new Array(root+ '20050102-114532.jpg' , paths[0]+'20050102-114532.jpg', '')
 image[i++] =  new Array(root+ '20050102-114646.jpg' , paths[0]+'20050102-114646.jpg', '')
 image[i++] =  new Array(root+ '20050102-115220.jpg' , paths[0]+'20050102-115220.jpg', '')
 image[i++] =  new Array(root+ '20050222-204430.jpg' , paths[0]+'20050222-204430.jpg', '')
 image[i++] =  new Array(root+ '20050122-084058.jpg' , paths[0]+'20050122-084058.jpg', '')
 image[i++] =  new Array(root+ '20050827-151116.jpg' , paths[0]+'20050827-151116.jpg', '')
 image[i++] =  new Array(root+ '20050122-084650.jpg' , paths[0]+'20050122-084650.jpg', '')
 image[i++] =  new Array(root+ '20050107-124950.jpg' , paths[0]+'20050107-124950.jpg', '')
 image[i++] =  new Array(root+ '20050827-164544.jpg' , paths[0]+'20050827-164544.jpg', '')
 image[i++] =  new Array(root+ '20050111-112356.jpg' , paths[0]+'20050111-112356.jpg', '')
 image[i++] = new Array(root+ '20050224-131828.jpg' , paths[0]+'20050224-131828.jpg', '')
 image[i++] = new Array(root+ '20050107-130218.jpg' , paths[0]+'20050107-130218.jpg', '')
 image[i++] = new Array(root+ '20050107-125056.jpg' , paths[0]+'20050107-125056.jpg', '')
 image[i++] = new Array(root+ '20050129-082752.jpg' , paths[0]+'20050129-082752.jpg', '')
 image[i++] = new Array(root+ '20050224-132522.jpg' , paths[0]+'20050224-132522.jpg', '')
 image[i++] = new Array(root+ '20050129-080154.jpg' , paths[0]+'20050129-080154.jpg', '')
 image[i++] = new Array(root+ '20050129-080252.jpg' , paths[0]+'20050129-080252.jpg', '')
 image[i++] = new Array(root+ '20050129-115654.jpg' , paths[0]+'20050129-115654.jpg', '')
 image[i++] = new Array(root+ '20050111-111420.jpg' , paths[0]+'20050111-111420.jpg', '')
 image[i++] = new Array(root+ '20050107-130036.jpg' , paths[0]+'20050107-130036.jpg', '')
 image[i++] = new Array(root+ '20050111-104852.jpg' , paths[0]+'20050111-104852.jpg', '')
 image[i++] = new Array(root+ '20050206-184024.jpg' , paths[0]+'20050206-184024.jpg', '')
 image[i++] = new Array(root+ '20050206-182640.jpg' , paths[0]+'20050206-182640.jpg', '')
 image[i++] = new Array(root+ '20050224-132118.jpg' , paths[0]+'20050224-132118.jpg', '')
 image[i++] = new Array(root+ '20050111-104806.jpg' , paths[0]+'20050111-104806.jpg', '')
 image[i++] = new Array(root+ '20050111-105900.jpg' , paths[0]+'20050111-105900.jpg', '')
 image[i++] = new Array(root+ '20050102-115328.jpg' , paths[0]+'20050102-115328.jpg', '')
 image[i++] = new Array(root+ '20050129-120550.jpg' , paths[0]+'20050129-120550.jpg', '')
 image[i++] = new Array(root+ '20050109-100444.jpg' , paths[0]+'20050109-100444.jpg', '')
 image[i++] = new Array(root+ '20040215-075500.jpg' , paths[0]+'20040215-075500.jpg', '')

 image[i++] = new Array(root+ '20050422-103502.jpg' , paths[1]+'20050422-103502.jpg', '')
 image[i++] = new Array(root+ '20050422-103650.jpg' , paths[1]+'20050422-103650.jpg', '')
 image[i++] = new Array(root+ '20050422-110628.jpg' , paths[1]+'20050422-110628.jpg', '')
 image[i++] = new Array(root+ '20050422-111630.jpg' , paths[1]+'20050422-111630.jpg', '')

 image[i++] = new Array(root+ '20051104-164434.jpg' , paths[2]+'20051104-164434.jpg', '')
 image[i++] = new Array(root+ '20051104-164120.jpg' , paths[2]+'20051104-164120.jpg', '')
 image[i++] = new Array(root+ '20051104-195152.jpg' , paths[2]+'20051104-195152.jpg', '')
 image[i++] = new Array(root+ '20051104-180446.jpg' , paths[2]+'20051104-180446.jpg', '')
 image[i++] = new Array(root+ '20051104-171314.jpg' , paths[2]+'20051104-171314.jpg', '')
 image[i++] = new Array(root+ '20051104-164408.jpg' , paths[2]+'20051104-164408.jpg', '')
 image[i++] = new Array(root+ '20051104-164226.jpg' , paths[2]+'20051104-164226.jpg', '')
 image[i++] = new Array(root+ '20051104-170958.jpg' , paths[2]+'20051104-170958.jpg', '')

 image[i++] = new Array(root+ '20051105-083020.jpg' , paths[3]+'20051105-083020.jpg', '')
 image[i++] = new Array(root+ '20051105-083730.jpg' , paths[3]+'20051105-083730.jpg', '')
 image[i++] = new Array(root+ '20051105-083240.jpg' , paths[3]+'20051105-083240.jpg', '')
 image[i++] = new Array(root+ '20051105-092644.jpg' , paths[3]+'20051105-092644.jpg', '')
 image[i++] = new Array(root+ '20051105-092818.jpg' , paths[3]+'20051105-092818.jpg', '')
 image[i++] = new Array(root+ '20051105-093602.jpg' , paths[3]+'20051105-093602.jpg', '')
 image[i++] = new Array(root+ '20051105-094456.jpg' , paths[3]+'20051105-094456.jpg', '')
 image[i++] = new Array(root+ '20051105-120444.jpg' , paths[3]+'20051105-120444.jpg', '')
 image[i++] = new Array(root+ '20051105-121900-5.jpg' , paths[3]+'20051105-121900-5.jpg', '')
 image[i++] = new Array(root+ '20051105-122354-1.jpg' , paths[3]+'20051105-122354-1.jpg', '')
 image[i++] = new Array(root+ '20051105-122210.jpg' , paths[3]+'20051105-122210.jpg', '')
 image[i++] = new Array(root+ '20051105-161542.jpg' , paths[3]+'20051105-161542.jpg', '')
 image[i++] = new Array(root+ '20051105-161414.jpg' , paths[3]+'20051105-161414.jpg', '')
 image[i++] = new Array(root+ '20051105-175734.jpg' , paths[3]+'20051105-175734.jpg', '')
 image[i++] = new Array(root+ '20051105-180132.jpg' , paths[3]+'20051105-180132.jpg', '')
 image[i++] = new Array(root+ '20051105-205820.jpg' , paths[3]+'20051105-205820.jpg', '')
 image[i++] = new Array(root+ '20051105-210318.jpg' , paths[3]+'20051105-210318.jpg', '')
 image[i++] = new Array(root+ '20051105-211812.jpg' , paths[3]+'20051105-211812.jpg', '')
 image[i++] = new Array(root+ '20051105-091636.jpg' , paths[3]+'20051105-091636.jpg', '')

 //image[i++] = new Array(root+ '20050612-161246.jpg' , paths[5]+'20050612-161246.jpg', '')
 //image[i++] = new Array(root+ '20050612-160540.jpg' , paths[5]+'20050612-160540.jpg', '')
 //image[i++] = new Array(root+ '20050612-171944.jpg' , paths[5]+'20050612-171944.jpg', '')
 //image[i++] = new Array(root+ '20050215-082010.jpg' , paths[5]+'20050215-082010.jpg', '')

 //image[i++] = new Array(root+ '20050930-164044.jpg' , paths[6]+'20050930-164044.jpg', '')
 //image[i++] = new Array(root+ '20050930-164102.jpg' , paths[6]+'20050930-164102.jpg', '')
 //image[i++] = new Array(root+ '20050930-172318.jpg' , paths[6]+'20050930-172318.jpg', '')
 //image[i++] = new Array(root+ '20051002-115110.jpg' , paths[6]+'20051002-115110.jpg', '')
 //image[i++] = new Array(root+ '20051002-094152.jpg' , paths[6]+'20051002-094152.jpg', '')

 image[i++] = new Array(root+ '20050724-104648.jpg' , paths[7]+'20050724-104648.jpg', '')
 image[i++] = new Array(root+ '20050723-123746.jpg' , paths[7]+'20050723-123746.jpg', '')

 image[i++] = new Array(root+ '20050224-122232.jpg' , paths[8]+'20050224-122232.jpg', '')
 image[i++] = new Array(root+ '20050129-122820.jpg' , paths[8]+'20050129-122820.jpg', '')
 image[i++] = new Array(root+ '20050129-122820.jpg' , paths[8]+'20050129-122820.jpg', '')

 image[i++] = new Array(root+ '20050814-133846.jpg' , paths[10]+'050814-133846.jpg', '')
 image[i++] = new Array(root+ '20050814-133330.jpg' , paths[10]+'050814-133330.jpg', '')

 image[i++] = new Array(root+ '20050430-170956.jpg' , paths[11]+'20050430-170956.jpg', '')
 image[i++] = new Array(root+ '20050430-101516.jpg' , paths[11]+'20050430-101516.jpg', '')
 image[i++] = new Array(root+ '20050430-093934.jpg' , paths[11]+'20050430-093934.jpg', '')
 image[i++] = new Array(root+ '20050430-104540.jpg' , paths[11]+'20050430-104540.jpg', '')


 image[i++] = new Array(root+ '20050501-084502.jpg' , paths[12]+'20050501-084502.jpg', '')
 image[i++] = new Array(root+ '20050501-095700.jpg' , paths[12]+'20050501-095700.jpg', '')
 image[i++] = new Array(root+ '20050501-101006.jpg' , paths[12]+'20050501-101006.jpg', '')
 image[i++] = new Array(root+ '20050501-120548.jpg' , paths[12]+'20050501-120548.jpg', '')
 image[i++] = new Array(root+ '20050501-170912.jpg' , paths[12]+'20050501-170912.jpg', '')

 image[i++] = new Array(root+ '20051230-182150.jpg' , paths[0]+'20051230-182150.jpg', '')
 image[i++] = new Array(root+ '20051230-181916.jpg' , paths[0]+'20051230-181916.jpg', '')
 image[i++] = new Array(root+ '20051230-174636.jpg' , paths[0]+'20051230-174636.jpg', '')

 image[i++] = new Array(root+ '20060122-194312.jpg' , paths[16]+'20060122-194312.jpg', '')
 image[i++] = new Array(root+ '20060122-071914.jpg' , paths[16]+'20060122-071914.jpg', '')
 image[i++] = new Array(root+ '20060122-082422.jpg' , paths[16]+'20060122-082422.jpg', '')
 image[i++] = new Array(root+ '20060122-194302.jpg' , paths[16]+'20060122-194302.jpg', '')
 image[i++] = new Array(root+ '20060122-073526.jpg' , paths[16]+'20060122-073526.jpg', '')
 image[i++] = new Array(root+ '20060122-192230.jpg' , paths[16]+'20060122-192230.jpg', '')
 
 image[i++] = new Array(root+ '20060123-063120.jpg' , paths[17]+'20060123-063120.jpg', '')

 image[i++] = new Array(root+ '20060202-080910.jpg' , paths[19]+'20060202-080910.jpg', '')
 image[i++] = new Array(root+ '20060202-081348-1.jpg' , paths[19]+'20060202-081348-1.jpg', '')

 image[i++] = new Array(root+ '20061021-060436.jpg' , paths[4]+'20061021-060436.jpg', '')
 image[i++] = new Array(root+ '20061021-064646.jpg' , paths[4]+'20061021-064646.jpg', '')
 image[i++] = new Array(root+ '20061021-065316.jpg' , paths[4]+'220061021-065316.jpg', '')
 image[i++] = new Array(root+ '20061021-065454.jpg' , paths[4]+'20061021-065454.jpg', '')

var fadebgcolor = "#B1C0D3"
var fadearray = new Array() //array to cache fadeshow instances
var fadeclear = new Array()   //array to cache corresponding clearinterval pointers
var dom = (document.getElementById) //modern dom browsers
var ie4 = document.all

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, pause, displayorder){

	this.pause=pause
	this.degree=10 //initial opacity degree (10%)
	this.curimageindex=0
	this.nextimageindex=1
	fadearray[fadearray.length]=this
	this.slideshowid=eval(fadearray.length-1)
	this.canvasbase="canvas"+this.slideshowid
	this.curcanvas=this.canvasbase+"_0"
	if (typeof displayorder!="undefined")
		theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
	this.theimages=theimages
	this.imageborder=parseInt(borderwidth)
	this.postimages=new Array() //preload images
	for (p=0;p<theimages.length;p++){
		this.postimages[p]=new Image()
		this.postimages[p].src=theimages[p][0]
	}

	var fadewidth=fadewidth+this.imageborder*2
	var fadeheight=fadeheight+this.imageborder*2

	if (ie4||dom)
		document.write('<div style="position:relative;left:40px;top:2px;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0px;left:0px;filter:alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')
	else
		document.write('<img  class="indent" name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'">')

	if (ie4||dom)
		this.startit()
	else{
		this.curimageindex++
		var temp='setInterval("fadearray['+this.slideshowid+'].rotateimage()", '+this.pause+')'
		eval(temp)
	}
}

function fadepic(obj){
	if (obj.degree<100){
		obj.degree+=10
		if (obj.tempobj.filters)
			obj.tempobj.filters.alpha.opacity=obj.degree
		else if (obj.tempobj.style.MozOpacity)
			obj.tempobj.style.MozOpacity=obj.degree/101
		else if (obj.tempobj.style.KhtmlOpacity)
			obj.tempobj.style.KhtmlOpacity=obj.degree/100
	}
	else{
		clearInterval(fadeclear[obj.slideshowid])
		obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
		obj.tempobj=ie4? eval("document.all."+obj.nextcanvas) : document.getElementById(obj.nextcanvas)
		obj.populateslide(obj.tempobj, obj.nextimageindex)
		obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
		var temp='setTimeout("fadearray['+obj.slideshowid+'].rotateimage()", '+obj.pause+')'
		eval(temp)
	}
}

fadeshow.prototype.populateslide=function(picobj, picindex){
	var slideHTML=""
	if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
	slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
	if (this.theimages[picindex][1]!="") //if associated link exists for image
		slideHTML+='</a>'
	//slideHTML+='<br />' + picindex	//DEBUGGING
	picobj.innerHTML=slideHTML
}


fadeshow.prototype.rotateimage=function(){
	if (ie4||dom){
		this.resetit()
		var crossobj=this.tempobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
		crossobj.style.zIndex++
		var temp='setInterval("fadepic(fadearray['+this.slideshowid+'])",50)'
		fadeclear[this.slideshowid]=eval(temp)
		this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
	}
	else{
		var ns4imgobj=eval("document.images.defaultslide"+this.slideshowid)
		ns4imgobj.src=this.postimages[this.curimageindex].src
	}
	this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}

fadeshow.prototype.resetit=function(){
	this.degree=10
	var crossobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
	if (crossobj.filters)
		crossobj.filters.alpha.opacity=this.degree
	else if (crossobj.style.MozOpacity)
		crossobj.style.MozOpacity=this.degree/101
	else if (crossobj.style.KhtmlOpacity)
		crossobj.style.KhtmlOpacity=obj.degree/100
}

fadeshow.prototype.startit=function(){
	var crossobj=ie4? eval("document.all."+this.curcanvas) : document.getElementById(this.curcanvas)
	this.populateslide(crossobj, this.curimageindex)
	this.rotateimage()
}
-->

