
var tweener1FunctionIn  = function() {
	$('tweener1').tween('marginLeft', '0px');
}

var tweener1FunctionOut  = function() {
	$('tweener1').tween('marginLeft', '-210px');
}

var tweener11FunctionIn  = function() {
	$('accueil_diapo').tween('height', '0px');    
    setTimeout("diapomarques()",'100');
}

var diapomarques = function() {
    document.getElementById ('accueil_diapo').style.padding='0';
    setTimeout("redirectmarques()",'500');
}
var redirectmarques = function() {
    document.location="marques.html";
}

var tweener2FunctionIn  = function() {
	$('tweener2').tween('marginLeft', '0px');
}

var tweener2FunctionOut  = function() {
	$('tweener2').tween('marginLeft', '-210px');
}

var tweener21FunctionIn  = function() {
	$('accueil_diapo').tween('height', '0px');    
    setTimeout("diapowmorand()",'100');
}

var diapowmorand = function() {
    document.getElementById ('accueil_diapo').style.padding='0';
    setTimeout("redirectwmorand()",'500');
}
var redirectwmorand = function() {
    document.location="wmorand.html";
}

var tweener3FunctionIn  = function() {
	$('tweener3').tween('marginLeft', '0px');
}

var tweener3FunctionOut  = function() {
	$('tweener3').tween('marginLeft', '-210px');
}

var redirectcoulisses = function() {
    document.location="coulisses.html";
}

var tweener31FunctionIn  = function() {
	$('accueil_diapo').tween('height', '0px');    
    setTimeout("diapocoulisses()",'100');
}

var diapocoulisses = function() {
    document.getElementById ('accueil_diapo').style.padding='0';
    setTimeout("redirectcoulisses()",'500');
}
 
window.addEvent('domready', function() {
        $('tween_over1').addEvent('mouseenter', tweener1FunctionIn);
        $('tween_over1').addEvent('mouseleave', tweener1FunctionOut);
        $('tween_over1').addEvent('click', tweener11FunctionIn);
        $('tween_over2').addEvent('mouseenter', tweener2FunctionIn);
        $('tween_over2').addEvent('mouseleave', tweener2FunctionOut);
        $('tween_over2').addEvent('click', tweener21FunctionIn);
        $('tween_over3').addEvent('mouseenter', tweener3FunctionIn);
        $('tween_over3').addEvent('mouseleave', tweener3FunctionOut);
        $('tween_over3').addEvent('click', tweener31FunctionIn);
});
