window.addEvent('domready', function(){
	Swiff.ExpressInstall = new Class({
		 Extends: Swiff,
			 options: {
			   expressInstall: '/swf/expressInstall.swf'
		   },
			 initialize: function(path, version, build, options){
			   if(Browser.Plugins.Flash.version >= version && Browser.Plugins.Flash.build >= build) this.parent(path, options);
			   else this.parent(this.options.expressInstall, $extend({vars: {
				   MMPlayerType: (Browser.Engine.trident) ? 'ActiveX' : 'PlugIn',
				   MMredirectURL: window.location,
				   MMdoctitle: document.title.slice(0, 47) + ' - Flash Player Installation'
			   }}, options));
		   }
	})
	
	if($('menu')){
		var accueil = new Swiff.ExpressInstall('/swf/menu.swf', 9, 0, {
			id: 'conteneur-menu',
			width: 955,
			height: 230,
			container: $('menu'),
			params: {wmode: 'transparent'}
		})
	}
	if($('colonne-droite')){
		var accueil = new Swiff.ExpressInstall('/swf/slideshow.swf', 9, 0, {
			id: 'slideshow',
			width: 260,
			height: 345,
			container: $('colonne-droite'),
			params: {wmode: 'transparent'}
		})
	}
})

function mdbox(element){
	Mediabox.open(element.href, element.title, '');
	return false;
}

function mdboxswf(element){
	Mediabox.open(element.href, element.title, '800 600');
	return false;
}