// JavaScript Document
//var timeoutID = window.setTimeout(3000);

window.setTimeout(function(){
    // The window.load event guarantees that
    // all the images are loaded before the
    // auto-advance begins.
   //function onLoadDelay () {$(window).delay(3000)};
    $('#header_navigation .jFlowNext').delay(5000);
    var timeOut = null;
    $('#header_navigation .jFlowPrev').click(function(e,simulated){
        // The simulated parameter is set by the
        // trigger method.
        if(!simulated){
            // A real click occured. Cancel the
            // auto advance animation.
            clearTimeout(timeOut);
        }
    });
    // A self executing named function expression:           
    (function autoAdvance(){
        // Simulating a click on the next arrow.
        $('#header_navigation .jFlowNext').trigger('click',[true]);
        // Scheduling a time out in 5 seconds.
        timeOut = setTimeout(autoAdvance,10000);
    })();
}, 3500);
