////////////////////////////////////////////////////////////////////////////////
//    FONCTIONS pour la page de contact redéfinissant celles du main          //
////////////////////////////////////////////////////////////////////////////////

function initCurtains(){   
	Element.setStyle("curtain_1", {width: px(400), height: '3000px', top: '0px',   left: '-400px' } );      
	Element.setStyle("curtain_2", {width: px(100), height: '3000px', top: '0px',   left: px(window_w) } ); 
	new Effect.Move('curtain_1', {delay:0, duration: 1.5, x:400, mode: 'relative'});
	new Effect.Opacity('curtain_1', {delay:0, duration: 1.5, from : 0, to : 0.90 } );
	new Effect.Move('curtain_2', {delay:0, duration: 1.5, x:-100, mode: 'relative' });
	new Effect.Opacity('curtain_2', {delay:0, duration: 1.5, from : 0, to : 0.90 } ); 
	window.setTimeout(function() {
						  Element.setStyle("curtain_2", {left: '', right: '200px'} );
						  document.getElementById("curtain_2").style.bottom = px(0);      
					  }, 2000);
	new Effect.Appear('content', {delay:1.5, duration: 0 } );
}

/*
function initCurtains(){
    
    if (horizontalCurtains){
        Element.setStyle("curtain_1", {width: '3000px', height: '250px', top: '-250px',   left: '0px' } );      
        Element.setStyle("curtain_2", {width: '3000px', height: '70px',  top: px(window_h), left: '0px' } );       
        new Effect.Move('curtain_1', {delay:0, duration: 1.5, y:250, mode: 'relative'});
        new Effect.Opacity('curtain_1', {delay:0, duration: 1.5, from : 0, to : 0.90 } );
        new Effect.Move('curtain_2', {delay:0, duration: 1.5, x: 0, y:-70, mode: 'relative' });
        new Effect.Opacity('curtain_2', {delay:0, duration: 1.5, from : 0, to : 0.90 } );               
        window.setTimeout(function() {    
                              Element.setStyle("curtain_2", {top: '', bottom: '0px'} );
                              document.getElementById("curtain_2").style.bottom = px(0);      
                          }, 2000);    
    }
    else{
        Element.setStyle("curtain_1", {width: px(300), height: '3000px', top: '0px',   left: '-300px' } );      
        Element.setStyle("curtain_2", {width: px(100), height: '3000px', top: '0px',   left: px(window_w) } ); 
        new Effect.Move('curtain_1', {delay:0, duration: 1.5, x:300, mode: 'relative'});
        new Effect.Opacity('curtain_1', {delay:0, duration: 1.5, from : 0, to : 0.90 } );
        new Effect.Move('curtain_2', {delay:0, duration: 1.5, x:-100, mode: 'relative' });
        new Effect.Opacity('curtain_2', {delay:0, duration: 1.5, from : 0, to : 0.90 } ); 
        window.setTimeout(function() {
                              Element.setStyle("curtain_2", {left: '', right: '200px'} );
                              document.getElementById("curtain_2").style.bottom = px(0);      
                          }, 2000);
    }  
     
    new Effect.Appear('content', {delay:1.5, duration: 0 } );

}
*/