function redpost()
{
    if(active)
    {
        jQuery.get("/includes/red.php", function(data){
                jQuery('#riotredsection').fadeOut(1000, function() {
                    jQuery('#riotredsection').html(data);
                    jQuery('#riotredsection').fadeIn(1000);
                    });
                }); 
    }
}

function streams()
{
    if(active)
    {
        jQuery.get("/includes/streams.php", function(data){
                jQuery('#eastStream').fadeOut(1000, function() {
                    jQuery('#eastStream').html(data);
                    jQuery('#eastStream').fadeIn(1000);
                    });
                });
    }
}

$(function(){
    setInterval("redpost()", 120000 );
    setInterval("streams()", 200000 );
});

