GKP = new Class ({
	
	Implements: [Options],
	
	options: {},


	/**
	 * Constructeur
	 */
	initialize: function( params ){
		this.mooquee();
		this.carrousel();
	},
	
	
	mooquee: function() {
		if ( $('marquee_news') ) 
		{
			new mooquee($('marquee_news'), {direction: 'left'});
		}
	},
	
	
	carrousel: function(){
		if ( $('carrousel') ) {
	
			/* Les éléments */
			carrouselDiv = $('carrousel');
			bigIllustration = carrouselDiv.getElement('.bigIllustration img');
			counter = 0;
		
			/* L'action à faite toutes les périodes */
			var changeNews = function(){
				counter++;
				if ( counter >= this.carrouselImagesList.length ) {
					counter = 0
				}
				bigIllustration.fade('hide');
				bigIllustration.setProperty( 'src', this.carrouselImagesList[counter]);
				bigIllustration.fade('in')
			};
			
			/* La période*/
			timer = changeNews.periodical(5000, this );
		}
	}

	
});

window.addEvent('domready', function() {
	gkp = new GKP({});
});
