	
	function clsFadeShow_SetPictureName( strName ){ this.strPictureName = strName; }
	function clsFadeShow_SetLabelName( strName ){ this.strLabelName = strName; }
	function clsFadeShow_SetPath( strPath ){ this.strPath = strPath ; }
	function clsFadeShow_SetDuration( intDuration ){ this.intDuration = intDuration ; }
	function clsFadeShow_SetTimeSpan( intTimeSpan ){ this.intTimeSpan = intTimeSpan ; }
	function clsFadeShow_AddPicture( strPicturePath ){ this.arrPictures.push( strPicturePath ) ; }
	function clsFadeShow_AddLabel( strLabel ){ this.arrLabels.push( strLabel ) ; }
	function clsFadeShow_AddUrl( strLabel ){ this.arrUrls.push( strLabel ) ; }
	function clsFadeShow_HideLabel(){ this.blnShowLabel = 0 ; }
	function clsFadeShow_ShowLabel(){ this.blnShowLabel = 1 ; }
	
	function clsFadeShow_SetElements()
	{
		for ( var intI = 0; intI < arguments.length; intI++ )
		{ 
			if( ! typeof arguments[ intI ] == 'Array' ) continue;
				this.addPicture( arguments[ intI ][0] );
			if( arguments[ intI ][1] )
				this.addLabel( arguments[ intI ][1] );
			if( arguments[ intI ][2] )
				this.addUrl( arguments[ intI ][2] ); 
		}
	}
	
	function clsFadeShow_Preload()
	{
		for ( var intI = 0; intI < this.arrPictures.length; intI++ ){ 
			this.arrPreload[intI] = new Image(); 
			this.arrPreload[intI].src = this.strPath + this.arrPictures[ intI ];
		}
	}
	
	function clsFadeShow_SetTimeSpan( intValue )
	{
		this.intTimeSpan = intValue ;
	}
	
	function clsFadeShow_SetDuration( intValue )
	{
		this.intDuration = intValue ;
	}
	
	function clsFadeShow_Run()
	{
		/*if( SlideShow_Counter >= 5 ){
			clearTimeout(SlideShow_TimeOut)
			return
		}*/
		this.preload();
		
		me = this;
		me.redo = function redo(){
			setTimeout( me.redo , me.intTimeSpan );
			me.play();
		}
		me.redo();
	}
	
	function clsFadeShow_Play()
	{ 
		// Transition
		if (document.all)
		{
			document.images[ this.strPictureName ].style.filter="blendTrans(duration=this.intDuration)";
			document.images[ this.strPictureName ].filters.blendTrans.Apply();
		}
		document.images[ this.strPictureName ].src = this.arrPreload[ this.intCounter ].src;
		
		// Href
		if ( document.getElementById && this.arrUrls[ this.intCounter ] )
			document.getElementById( this.strPictureName+"Url" ).href= this.arrUrls[ this.intCounter ];
		else if( this.arrUrls[ this.intCounter ] )
			document.all[ this.strPictureName+"Url" ].href= this.arrUrls[ this.intCounter ];
		
		if ( document.getElementById && this.blnShowLabel ) 
			document.getElementById( this.strLabelName ).innerHTML= this.arrLabels[ this.intCounter ];
		else if( this.blnShowLabel )
			document.all[ this.strLabelName ].innerHTML= this.arrLabels[ this.intCounter ];
		
		if (document.all && !checkIt('mac') ) 
			document.images[ this.strPictureName ].filters.blendTrans.Play();
		
		this.intCounter++;
		
		if ( this.intCounter >= this.arrPictures.length )
			this.intCounter = 0;
	}
		
	function clsFadeShow()
	{
		this.blnShowLabel = false;
		this.strPictureName = false;
		this.strLabelName = false;
		this.strPath = "i/slideshow/";
		this.intCounter = 0;
		this.intTimeSpan = 2500;
		this.intDuration = 1; 
		
		this.arrUrls = new Array(); 
		this.arrLabels = new Array(); 
		this.arrPictures = new Array();
		this.arrPreload = new Array(); 
		
		this.objTimeOut = null; 
		
		this.setPictureName = clsFadeShow_SetPictureName;
		this.setLabelName = clsFadeShow_SetLabelName;
		this.setPath = clsFadeShow_SetPath;
		this.setDuration = clsFadeShow_SetDuration;
		this.setTimeSpan = clsFadeShow_SetTimeSpan;
		this.setElements = clsFadeShow_SetElements;
		this.addPicture = clsFadeShow_AddPicture;
		this.addLabel = clsFadeShow_AddLabel;
		this.addUrl = clsFadeShow_AddUrl;
		this.showLabel = clsFadeShow_ShowLabel;
		this.hideLabel = clsFadeShow_HideLabel;
		this.play = clsFadeShow_Play;
		this.preload = clsFadeShow_Preload;
		this.run = clsFadeShow_Run;
	}




