//Dimension ecran
	resolutionH = screen.height;
	resolutionL = screen.width;
	
	if(resolutionH>768){
		//document.styleSheets[0].cssRules[1].style.setProperty('height','80%',null);
		//document.styleSheets[0].cssRules[1].style.setProperty('width','80%',null);
	}
//Popup simple centree	
function popup(width, height, url, option) {
	var dessus = (screen.height/2)-(height/2);
	var gauche = (screen.width/2)-(width/2);
	var features = 'height='+height+',width='+width+',top='+dessus +',left='+gauche+","+option;
	window.open(url,'', features);
}
window.addEvent('domready', function() {
	//call multiBox
	/*var initMultiBox = 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: 'multiBoxDesc',//the class name of the description divs
		path: './Files/',//path to mp3 and flv players
		useOverlay: true,//use a semi-transparent background. default: false;
		maxSize: {w:null, h:null},//max dimensions (width,height) - set to null to disable resizing
		addDownload: false,//do you want the files to be downloadable?
		pathToDownloadScript: './Scripts/ForceDownload.asp',//if above is true, specify path to download script (classicASP and ASP.NET versions included)
		addRollover: false,//add rollover fade to each multibox link
		addOverlayIcon: false,//adds overlay icons to images within multibox links
		addChain: false,//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)
	});*/
	
function fct1(){
	delai = 3000;
	setTimeout(fct2,delai);
}

function fct2(){
	var el = $('rideauD');
		
	var morph = new Fx.Morph(el, {duration: '3000'});
	
	morph.start({
		width: '50px',
		margin: '0 0 0 940px'
	});
	
	var el2 = $('rideauG');
	el2.set('tween', {duration: '3000'});
	el2.tween('margin-left', '-432');
	
}

if($('rideauD')){
	fct1();
}
	/*******************/
	//    ACCORDEON    //
	/*******************/
	
		//create our Accordion instance
		if($('accordion')){
			var myAccordion = new Accordion($('accordion'), 'h4.toggler', 'div.element', {
				opacity: false,
				onActive: function(toggler, element){
					toggler.setStyle('color', '#41464D');
				},
				onBackground: function(toggler, element){
					toggler.setStyle('color', '#528CE0');
				}
			});
		}
});
