/* FLASH */ 
var src = "anim/head.swf";
var idToReplace = "head";
var width = 1000;
var height = 115;
var minFlashVersion = "9.0.0";
var updater = null;
var flashvars = {};
var params = {
	wmode : 'transparent'
};
swfobject.embedSWF(src, idToReplace, width, height, minFlashVersion, updater, flashvars, params);

var src = "anim/sponsors.swf";
var idToReplace = "diapo";
var width = 1000;
var height = 96;
var minFlashVersion = "9.0.0";
var updater = null;
var flashvars = {};
var params = {
	wmode : 'transparent'
};
swfobject.embedSWF(src, idToReplace, width, height, minFlashVersion, updater, flashvars, params);

var src = "http://umapper.s3.amazonaws.com/templates/swf/embed.swf";
var idToReplace = "lacarte";
var width = 850;
var height = 360;
var minFlashVersion = "9.0.0";
var updater = null;
var flashvars = {};
var params = {
	wmode : 'transparent',
	FlashVars : 'kmlPath=http://umapper.s3.amazonaws.com/maps/kml/108148.kml',
	movie : 'http://umapper.s3.amazonaws.com/templates/swf/embed.swf',
	quality : 'high',
	allowScriptAccess : 'always',
	allowFullScreen : 'true'
};
swfobject.embedSWF(src, idToReplace, width, height, minFlashVersion, updater, flashvars, params);



/* gestion des fondus d'entrée */ 
	
	
/*$(document).ready(function() {
    $("body").css("display", "none");
 
    $("body").fadeIn(400);
 
    $("a.transition").click(function(event){
        event.preventDefault();
        linkLocation = this.href;
        $("body").fadeOut(400, redirectPage);
    });
 
    function redirectPage() {
        window.location = linkLocation;
    }
});*/


$(document).ready(function(){
	   $("#footer").delay(2000).fadeIn(500);
});

/* -------- */ 
   
 
/* gestion des scrolls */ 
jQuery(function( $ ){
	/**
	 * Most jQuery.localScroll's settings, actually belong to jQuery.ScrollTo, check it's demo for an example of each option.
	 * @see http://flesler.demos.com/jquery/scrollTo/
	 * You can use EVERY single setting of jQuery.ScrollTo, in the settings hash you send to jQuery.LocalScroll.
	 */
	// The default axis is 'y', but in this demo, I want to scroll both
	// You can modify any default like this
	$.localScroll.defaults.axis = 'xy';
	
	
	// Scroll initially if there's a hash (#something) in the url 
	$.localScroll.hash({
		target: 'body', // Could be a selector or a jQuery object too.
		queue:true,
		easing:'easeOutQuad',
		duration:2000
	});
	
	/**
	 * NOTE: I use $.localScroll instead of $('#navigation').localScroll() so I
	 * also affect the >> and << links. I want every link in the page to scroll.
	 */
	$.localScroll({
		target: 'body', // could be a selector or a jQuery object too.
		queue:true,
		duration:3000,
		easing:'easeInOutExpo',
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
	
	window.onload = function() { 
}
});
