function splash_screen() 
 {
  this.is_initiated = false;
  
  this.init = function() 
   {
    var e = $('<div id="splash_screen" style="position:absolute;background-color:#000000;left:0px;top:0px;z-index:1000000" onclick="splash_screen.hide()"></div>');
    e.css({opacity: 0.5});
    $('body').append(e);
  
    var e = $('<div id="splash_screen_box" style="position:absolute;top:200px;background-color:#ffffff;border:1px solid #ffffff;z-index:1000001"><div id="splash_screen_box_content">&nbsp;</div><center><a style="color:#000000;font-weight:bold" href="javascript:splash_screen.hide()">sluiten</a></center></div>');
    $('body').append(e);  
   
    $(window).bind("resize", this.resize);
    
    this.is_initiated = true;   
   }
   
  this.resize = function() 
   { 
    var h = $(window).height(); 
    var w = $(window).width(); 
      
    $('#splash_screen').width(w);   
    $('#splash_screen').height(h);

    $('#splash_screen_box').css('left', (w - $('#splash_screen_box').width()) / 2);
   } 
   
  this.show = function(content, w, h)
   { 
    if (this.is_initiated == false)
     {
      this.init();
     } 
          
    $('#splash_screen_box').width(w);
    $('#splash_screen_box').height(h);
    $('#splash_screen_box_content').html(content); 
    
    this.resize();     
    $('#splash_screen').show();
    $('#splash_screen_box').show();  
   } 
   
  this.hide = function()
   {  
    $('#splash_screen').hide();
    $('#splash_screen_box').hide();      
    $('#splash_screen_box_content').html('');    
   } 
 }
