var imageID = 1;

function doslideshow(height){
	var rand = Math.random() * 1000;
	var out ='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="450" HEIGHT="' + height + '" id="slideshow3" ALIGN="">' +
	         '<PARAM NAME=movie VALUE="slideshow3.swf?' + rand + '">' +
	         '<PARAM NAME=quality VALUE=high>' +
	         '<PARAM NAME=bgcolor VALUE=#FFFFFF>' +
	         '<EMBED src="slideshow3.swf?' + rand + '" quality=high bgcolor=#FFFFFF  WIDTH="450" HEIGHT="' + height + '" NAME="slideshow3" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>' +
		 '</OBJECT>';
	document.write (out);
}

function SwitchImage(id) {
	imageID = id;
	DisplayImage();
}

function DisplayImage() {
	if(document.images)
	   document.images['currentImage'].src = imageArray[imageID];

}