$(document).ready(function(){
						   setTimeout("displaywelcome()",4000);
						   });
						   
// function envalloop(){
// 						   $("#welcome p, #welcome h1").delay(3000).fadeOut(1000);
// 						   $("#news1 p, #news1 h1").delay(3000).fadeIn(1000).delay(3000).fadeOut(1000);
// 						   $("#news2 p, #news2 h1").delay(3000).fadeIn(1000).delay(3000).fadeOut(1000);
// 						   $("#welcome p, #welcome h1").delay(3000).fadeIn(1000);
// 						   envalloop();
// }
function displaywelcome(){
						   $("#welcome p, #welcome h1").fadeIn(1000).delay(4000).fadeOut(1000);
						   setTimeout("displaynews1()", 5000);
}
function displaynews1(){
						   $("#news1 p, #news1 h1").fadeIn(1000).delay(4000).fadeOut(1000);
						   setTimeout("displaynews2()", 5000);
}
function displaynews2(){
						   $("#news2 p, #news2 h1").fadeIn(1000).delay(4000).fadeOut(1000);
						   setTimeout("displaywelcome()", 5000);
}

/*
function slideSwitch() {
    var $active = $('#slideshow p.active');

    if ( $active.length == 0 ) $active = $('#slideshow p:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow p:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});*/

