// Zenance - JavaScript Document
function ouvrirPopup(url, w, h){
	var x = (screen.width-w)/2;
	var y = (screen.height-h)/2;
	var popup = window.open(url, '', 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1, width='+w+', height='+h+', left='+x+', top='+y+', screenX='+x+', screenY='+y);
	return false;
}
function mediaboxDelegate(url, title, size){
	Mediabox.open(url, title, size);
}
window.addEvent('domready', function() {
	// SWIFF : EXPRESS INSTALL
	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));
		   }
	});
	// CUFON
	Cufon.replace('h2, h3', {fontFamily: 'Americana'});
});