/*
realisationSlider = function(params){
	this._imgwraper = $(params.imgwraper),
	this._linkrealisation = $(params.linkrealisation),
	this._up = $(params.up),
	this._down = $(params.down),
	this._btns = $(params.btns),
	this._timer = params.timer,
	this._curindex = 0,
	this._previndex = 0,
	this._imgheight = params.imgheight,
	this._idtimer = null,
	
	this.start = function(){
		this._setEvents();
		this._startTimer();
	},
	
	this._setEvents = function(){
		instance = this;
		this._up.click(function(e){
					e.preventDefault();
					clearInterval(instance._idtimer);
					instance._idtimer = null;
					instance.prevRealisation();
					});
		this._down.click(function(e){
					e.preventDefault();
					clearInterval(instance._idtimer);
					instance._idtimer = null;
					instance.nextRealisation();
					});
		this._btns.each(function(){
			$(this).click(function(e){
				e.preventDefault();
				instance._previndex = instance._curindex;
				instance._curindex = instance._btns.index(this);
				clearInterval(instance._idtimer);
				instance._idtimer = null;
				instance._changeRealisation();
			});
		});
	},
	
	this._startTimer = function(){
		instance = this;
		this._idtimer = setInterval(function(){instance.nextRealisation();},this._timer);
	},
	
	this._changeRealisation = function(){
		instance = this;
		nbpx = (this._curindex-this._previndex)*this._imgheight;
		this._imgwraper.animate({top:'-='+nbpx},700,function(){instance._completeChange()})
	},
	
	this._completeChange = function(){
		if(this._idtimer==null){
			this._startTimer();
		}
		this._btns.each(function(){$(this).removeClass("selected");});
		this._btns.eq(this._curindex).addClass("selected");
		this._linkrealisation.attr("href",this._btns.eq(this._curindex).attr("href"));
	},
	
	this.nextRealisation = function(){
		this._previndex = this._curindex;
		this._curindex++;
		if(this._curindex>=this._btns.length){this._curindex=0;}
		this._changeRealisation();
	},
	
	this.prevRealisation = function(){
		this._previndex = this._curindex;
		this._curindex--;
		if(this._curindex<0){this._curindex=this._btns.length-1;}
		this._changeRealisation();
	}
};
*/


