var loadables = [];

function ajaxOverlay(expr)
{
  $(expr).html('<div class="ajaxOverlay"><div></div></div>');
  $(expr).each(function(index, domElement)
  {
    $("div.ajaxOverlay", $(domElement)).children().html("Loading...");
  });
}

$(document).ready(function()
{
  jQuery.each(loadables, function(i, val)
  {
    val();
  });
});

loadables.push(function()
{
  if ($("#headerFlash").length > 0)
  {
    $("#headerFlash").flashembed({
      bgcolor: "#ffffff",
      height: 97,
      src: "/flash/header-topleft.swf",
      width: 194,
      wmode: "transparent",
      version: [8, 0, 0]
    });
  }
});