

window.addEvent('domready', function() {
  //We can use one Request object many times.

    //We can use one Request object many times.
    var req1 = new Request.HTML({
        url:'FlashInfo/saepe_news_1.html',
        onSuccess: function(html) {
            //Clear the text currently inside the results div.
            $('flashinfo1').set('text', '');
            //Inject the new DOM elements into the results div.

            var myEffect = new Fx.Morph('flashinfo1', {
                duration: 'long',
                transition: Fx.Transitions.Sine.easeOut,
                onStart: function(){
                    $('flashinfo1').setStyle('color','#999999').fade('hide');
                    $('flashinfo1').adopt(html);
                    $('flashinfo1').set('tween',{
                        duration: 1
                    }).fade('in')
                },
                onComplete: function(){
                    
                 }
            });
           myEffect.start({
                'height': [10,50], //Morphs the 'height' style from 10px to 100px.
                'width': [100,900]  //Morphs the 'width' style from 900px to 300px.
            });
        },
        //Our request will most likely succeed, but just in case, we'll add an
        //onFailure method which will let the user know what happened.
        onFailure: function() {
            $('flashinfo1').set('text', 'The request failed.');
        }
    });


  req1.send(); 

});
/*
// Événement qui se déclenchera lorsque le Dom
// aura été chargé
window.addEvent('domready', function() {
    $('eventDomReady').set('text', 'Le dom est chargé');
});




// Événement qui se déclenchera lorsque la page
// aura été chargé
window.addEvent('load', function() {
    $('eventLoad').set('text', 'Le page est chargée');



});
*/
