function delaypub(divId, iframeUrl, width, height, showWaitingImage, extraDelay) {
    showWaitingImage = showWaitingImage == null ? true : showWaitingImage; // Valeur par défaut : true
    document.write('<div id="'+divId+'" style="width:'+width+'px; height:'+height+'px">');
    if ( showWaitingImage )
        document.write('<table width="100%" height="100%"><tr><td align="center" valign="middle"><img src="http://www.fanhentai.com/images/wait.gif"></td></tr></table>');
    document.write('</div>');
    var funcName = 'delaypub_'+divId;
    eval(funcName+' = function() { document.getElementById(divId).innerHTML = \'<iframe src="'+iframeUrl+'" width="'+width+'" height="'+height+'" frameborder="0" scrolling="no" style="background-color:transparent" allowtransparency="true"></iframe>\';}');
    
    if ( extraDelay > 0 ) {
        var funcNameExtra = 'delaypub_extra_'+divId;
        eval(funcNameExtra+' = function() { setTimeout("'+funcName+'()", '+extraDelay+'); }');
        eval('delayedFunction='+funcNameExtra);
    }
    else {
        eval('delayedFunction='+funcName);
    }
    
    if (window.addEventListener)
        window.addEventListener("load", delayedFunction, false);
    else if (window.attachEvent)
        window.attachEvent("onload", delayedFunction);
    else
        window.onload = delayedFunction;
}

