// JavaScript Document
	function switchImage(containerName, Src,imgTitle,imgLink,fileType){
		//alert(Src+'\r\n'+fileType);
		if(fileType.toLowerCase()=="swf"){
			document.getElementById(containerName).innerHTML='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"'+this.width+'\" height=\"'+this.height+'\"><param name=\"movie\" value=\"'+Src+'\" /><param name=\"quality\" value=\"high\" /><embed src=\"'+Src+'\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"'+this.width+'\" height=\"'+this.height+'\"></embed></object>';
		}
		else
		{
	  	document.getElementById(containerName).innerHTML='<a href=\"'+imgLink+'\" title=\"'+imgTitle+'\" id=\"link_$containerName\"><img src=\"'+Src+'\" width=\"'+this.width+'\" border=\"0\" height=\"'+this.height+'\" title=\"'+imgTitle+'\"/></a>';
		}		
	}	
	
	function SlideShow(SrcList, containerName, speed, name,imgTitleList,imgLinks,fileTypes,width,height){
	  this.SrcList 			= SrcList;
	  this.imgTitleList 	= imgTitleList;
	  this.imgLinks			= imgLinks;	  
	  this.containerName 	= containerName;	
	  this.speed 			= speed;
	  this.fileTypes 		= fileTypes;
	  this.name		 		= name;
	  this.width		 	= width;
	  this.height		 	= height;
	  this.current 			= 0;	
	  this.timer 			= 0;
	}	
	
	function SlideShow_play(){	
	
	  with(this){
		  
		if(current++ == SrcList.length-1) 
			current = 0;
		
		this.switchImg(containerName, SrcList[current],imgTitleList[current],imgLinks[current],fileTypes[current]);
		clearTimeout(timer);		
		timer = setTimeout(name+'.play()', speed);		
	  }
	}