		window.addEvent('domready', function(){
			//menu ajax
			var list = $$('#idList li');
			list.each(function(element) {
				
				var fx = new Fx.Styles(element, {duration:200, wait:false});
				
				element.addEvent('mouseenter', function(){
					fx.start({
						'margin-left': 5,
						'background-color': '#666',
						color: '#ff8'
					});
				});
				
				element.addEvent('mouseleave', function(){
					fx.start({
						'margin-left': 0,
						'background-color': '#EDEDED',
						'color': '#888'
					});
				});
				
			});
			
			//infos bulle
			    var Tips2 = new Tips($$('.Tips'), {
				initialize:function(){
			    this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
				},
				onShow: function(toolTip) {
				this.fx.start(1);
				},
				onHide: function(toolTip) {
				this.fx.start(0);
				}
			    });

			
			
			
			//bandeau
			var mySlide = new Fx.Slide('test');
			
			
			$('toggle').addEvent('click', function(e){
				e = new Event(e);
				mySlide.toggle();
				e.stop();
			});
			
			
			
			//Upload
			var input = $('photoupload-filedata-1');
			var uplooad = new FancyUpload(input, {
				swf: 'lib/mootools/Swiff.Uploader.swf',
				queueList: 'photoupload-queue',
				container: $E('h1')
			});

			$('photoupload-status').adopt(new Element('a', {
				href: 'javascript:void(null);',
				events: {
					click: uplooad.clearList.bind(uplooad, [false])
				}
			}).setHTML('Effacer'));
			
			
			
			
		}); 

