var Site = {
	
	start: function(){
		
		if( $('utilisateur') && $('password') ) Site.loginBox();
		
		
		$$('.external').addEvent('click', function(ev){
				window.open(this.href); 
				new Event(ev).stop(); 
				return; 
		});
		
	},
	
	loginBox : function(){
		
		$('utilisateur').addEvents({
			
			'focus': function() {
				if(this.value=='E-mail') 
					this.value='';			
			},	
			
			'blur': function() {
				if(this.value=='') 
					this.value = 'E-mail';			
			}
				
		});	
	
		$('password').addEvents({
			
			'focus': function() {
				if(this.value=='Mot de passe') 
					this.value='';			
			},	
			
			'blur': function() {
				if(this.value=='') 
					this.value = 'Mot de passe';			
			}
				
		});	
	}
	
}



window.addEvent('domready', function(){
	Site.start();
});



