function loading(){
  var o = document.getElementById('loading');
  o.style.display = 'none';
}

function delay(){
  var o = document.getElementById('delayDIV');
  o.style.display = 'block';
}
window.onload = function(){
  setTimeout("loading()",3000);setTimeout("delay()",3000); // 3 seconds after user (re)load the page
};

