String.prototype.repeat = function( num ) {
  return new Array( num + 1 ).join( this );
}

function handleLoading(is_ie) {
  if (!document.getElementById) return;

  document.write(
    '<div id="loader"><div id="loaderContent" class="hidden">' +
    '<div id="loadingLogo">Vogel 50x50</div>' +
    '<ul id="loadingStatus">' +
    '<li></li>'.repeat(10) +
    '</ul></div></div>'
  );
  setTimeout(revealLoader, 350);
}

function revealLoader() {
  var e = document.getElementById('loaderContent');
  e.className='';

  var c = document.getElementById('container');
  c.style.overflow="visible";
}
