window.addEvent('domready',function(){
	
	//MULTIBOX Zoom images
	var box = new multiBox({
		mbClass: '.mb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
		container: $(document.body),//where to inject multiBox
		descClassName: 'zoomDesc',//the class name of the description divs
		path: '/js/mootools/multiBox/Files/',//path to mp3 and flv players
		useOverlay: false,//use a semi-transparent background. default: false;
		maxSize: {w:800, h:600},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		pathToDownloadScript: '/js/mootools/multiBox/Scripts/ForceDownload.asp',//if above is true, specify path to download script (classicASP and ASP.NET versions included)
		addRollover: true,//add rollover fade to each multibox link
		addOverlayIcon: false,//adds overlay icons to images within multibox links
		addChain: true,//cycle through all images fading them out then in
		recalcTop: false,//subtract the height of controls panel from top position
		addTips: false//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
	});
	
	
	// MULTIBOX Video
	var videobox = new multiBox({
		mbClass: '.vb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
		container: $(document.body),//where to inject multiBox
		descClassName: 'videoDesc',//the class name of the description divs
		path: '/js/mootools/multiBox/Files/',//path to mp3 and flv players
		useOverlay: false,//use a semi-transparent background. default: false;
		maxSize: {w:800, h:600},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		pathToDownloadScript: '/js/mootools/multiBox/Scripts/ForceDownload.asp',//if above is true, specify path to download script (classicASP and ASP.NET versions included)
		addRollover: true,//add rollover fade to each multibox link
		addOverlayIcon: false,//adds overlay icons to images within multibox links
		addChain: true,//cycle through all images fading them out then in
		recalcTop: false,//subtract the height of controls panel from top position
		addTips: false//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
	});
	
	
	// Article consultes mode vertical
	if($('slideArticlesConsultes')){
	
		var articlesConsultes = new noobSlide({
			mode: 'vertical',
			box: $('slideArticlesConsultes'),
			items: $$('#slideArticlesConsultes .slide_article_consulte'),
			size: 116,
			addButtons: { previous: $('prevArticlesConsultes'), next: $('nextArticlesConsultes') }
		});
	}
	
	// Article consultes mode horizontal
	if($('slideArticlesConsultesHorizontal')){ 
	 	if(navigator.appName=='Microsoft Internet Explorer'){
			var s=71;
		}else{
			var s=70;
		}
		var articlesConsultes = new noobSlide({
			box: $('slideArticlesConsultesHorizontal'),
			items: $$('#slideArticlesConsultesHorizontal .slide_article_consulte'),
			size: s,  
			addButtons: { previous: $('prevArticlesConsultesH'), next: $('nextArticlesConsultes') }
		});
		var nb_el=$$('#slideArticlesConsultesHorizontal .slide_article_consulte').length-1;
		articlesConsultes.walk(nb_el,false,true);
	}

	
});
