var c=5000;
var k=4800;

function fadetopout(){ $('#bannertopdiv').fadeTo('fast', 0.2); clearInterval(rb); }
function fadeleftout(){ $('#bannerleftdiv').fadeTo('fast', 0.2); clearInterval(rb); }
function faderightout(){ $('#bannerrightdiv').fadeTo('fast', 0.2); clearInterval(rb); }

function fadetopin(){ $('#bannertopdiv').fadeTo('slow', 1); }
function fadeleftin(){ $('#bannerleftdiv').fadeTo('slow', 1); }
function faderightin(){ $('#bannerrightdiv').fadeTo('slow', 1); }


function starttimer(){
rflamingos=setInterval (flamingos, c);
rants=setInterval (ants, c);
clearInterval(rflamingos);
clearInterval(rants);
relephants=setInterval (elephants, c);
rb=setInterval (fadetopout, k);
}

function elephants(){
clearInterval(relephants);
fadetopout();
document.getElementById("bannertopdiv").innerHTML="<img src='images/bbc.jpg' id='banner'>";
fadetopin();
rants=setInterval (ants, c);
}

function ants(){
clearInterval(rants);
fadetopout();
document.getElementById("bannertopdiv").innerHTML="<img src='images/bbc2.jpg' id='banner'>";
fadetopin();
rflamingos=setInterval (flamingos, c);
}

function flamingos(){
clearInterval(rflamingos);
fadetopout();
document.getElementById("bannertopdiv").innerHTML="<img src='images/nameless.jpg' id='banner'>";
fadetopin();
relephants=setInterval (elephants, c);
}

