/**
 * @author pbretonfaguy
 */

function flashLoader(){

	var flashvars = {"path":root+"assets/file_library/slideshow/"};
	var params = {
	  wmode: "transparent"
	};
	var attributes = {};
	swfobject.embedSWF(root+"assets/flash/banniere_v1.1.swf", "flash_holder", "942", "389", "9.0.0", "expressInstall.swf", flashvars, params, attributes);	
}

window.addEvent("domready", function() {
	
	/* flash d'introduction */
 	if ($('flash_holder')) {
		flashLoader();
	}

	/* site map */
	var sideMapSlide = new Fx.Slide('sitemap').hide();
	$('sitemap_toggle').addEvent('click', function(e){
		e.stop();
		sideMapSlide.toggle();
	});

	
	/**
	 * That CSS selector will find all <a> elements with the
	 * class boxed
	 *
	 * The example loads the options from the rel attribute
	 */
	SqueezeBox.initialize({
        size: {x: 820, y: 480}
    });

	SqueezeBox.assign($$('a.boxed'), {
		parse: 'rel'
	});

});


