var module_dealer_home = new Class(
	{
	initialize: function() {
		$('PromotionImg').set('opacity','0.1');
	    var photoPath = $('photoFileNames').get('value').split(",");
		
				
		 $('PromotionImgImg').set('src',PHP_CONST.RELADDR+photoPath[0]);

		var Site = { counter: 0, PhotoCounter:0 };
		var addCount = function()
		{
		
		 this.counter+=0.1; 
			if(this.counter >= 1)
			{
				this.counter = 0;
				this.PhotoCounter++;
				if(this.PhotoCounter < photoPath.length)
				{
						$('PromotionImgImg').set('src',PHP_CONST.RELADDR+photoPath[this.PhotoCounter]);
				}
				else
				{
					this.PhotoCounter=0;
				}
			}
		 
		 $('PromotionImg').set('opacity',this.counter); 
			
		};
		addCount.periodical(100, Site);
		/* */
		 //Will add the number of seconds at the Site.

		 
		 
		 
	}
	}
	);
window.addEvent('domready', function() {
	new module_dealer_home();
});
