var old = 0;
var current = 0;

function rm(c,x){
    var rl = '/bn/af/ru/';
    //Loading...
    trytogetsource(rl+'eaf'+c+'.html', 'ban'+x, '', 'Error');
}

function rf(firststart){
    var rndm_scroll;
    while ((current == old) & (current <= (arr_imprtbr.length-3))) {
        rndm_scroll = Math.random();
        current = Math.abs(Math.round(Math.random() * (arr_imprtbr.length-3) ));
    }
    old = current;

   // var s = new String(location.href);

    // (/\/ru\/[^\/]*$/.test(s) ) ? document.body.style.backgroundColor = '#e7eff7' : document.body.style.backgroundColor = '#ffffff';

       setTimeout('rm(' + arr_imprtbr[current]   + ', 1)',    0*firststart);
       setTimeout('rm(' + arr_imprtbr[current+1] + ', 2)', 2000*firststart);
       setTimeout('rm(' + arr_imprtbr[current+2] + ', 3)', 4000*firststart);

    //delay
    setTimeout('rf(1)', 60000); //ms default    60000


}


//
