
var Formulaire = $.Class.create({

	initialize : function() {
	},
	
	send: function(){
	ajustDimension('exec','contact_form',10,10);
    $('#exec').fadeIn('slow', function() {});
	protoAjax2("contact.php","POST","exec_data","contact","","");
	},
	
	closeAndClear: function(){
	document.getElementById('contact').reset();
	$('#exec').fadeOut()
	}
	

})

var Formulaire = new Formulaire();

/*

var slideShow = Class.create();
var idObjet = 0;  

slideShow.prototype = {
	initialize : function(dest,timing,pictures) {
		idObjet++; 
		this.idRef = "CONSTRUCTEUR" + idObjet; 
  		window[this.idRef ] = this;  
		this.dest = dest;
		this.timing = timing;
		this.pictures = pictures;
		this.totalPictures = this.pictures.length;
		this.currentPicture = 0;
		this.preload = new Image();
		this.nextPicture = (this.totalPictures > 1)? this.currentPicture + 1 : 0;
		
	},

	startSlideShow : function(){
		if(this.totalPictures > 1)
		this.LoadPicture();
		
	},
	
	LoadPicture : function() {
		$(this.dest).src = this.pictures[this.currentPicture];
		$(this.preload).src = this.pictures[this.nextPicture];
		$(this.preload).style.display ="none";
		new Effect.Appear($(this.dest), {duration:1});
		this.Display();
	},
	
	Display : function() {
	setTimeout("window."+this.idRef+".ChangePicture()",this.timing * 1000);  

	},
	
	ChangePicture : function(){
		
		this.currentPicture++;
		this.nextPicture = this.currentPicture + 1 ;
		// si c’est la dernière
		if (this.currentPicture == this.totalPictures)
			{
			this.currentPicture = 0;
			this.nextPicture = 1;
			}
		new Effect.Fade($(this.dest), {duration:1});
		this.Wait();
	},
	
	Wait : function () {
		setTimeout("window."+this.idRef+".LoadPicture()", 1000);
	}
}
*/
