function mock(message)
{
  alert("MOCK: this section has not been implemented \n\n" + message);
}

$(document).ready(function(){
  LoadFlash();
});


function enterSubmit(formSelector, buttonSelector)
{
  $(formSelector).keypress(function (e) {  
    //Enter key is the only one of interest.
    if (!((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)))
      return true;

    //Assume buttonSelector is always a link button.
    //Mozilla does not have a .click() event for <a>.
    //Launch the button with JS only.
    try
    {      
      eval($(buttonSelector).attr("href").substring("javascript:".length))
      return false;  
    } catch (e) {
      return true;
    }
  });  
}

function LoadFlash(defaultSkinDir)
{
  /* // these are loaded where the divs are located now
  //LOAD LOGO
  swfobject.embedSWF("breakaLogo", "9.0.0", "expressInstall.swf");
  //BACKGROUND FLASH 
  swfobject.embedSWF("flashBackground", "9.0.0", "expressInstall.swf");
  //MEDIA PLAYER FLASH
  swfobject.embedSWF("mediaPlayer", "9.0.0", "expressInstall.swf");
  */

  var height = $("#fBackground").height();
  if($("#cmsPageContainer1").height() > height)
    height = $("#cmsPageContainer1").height();
  $("#fBackground").css({ "height" : height + "px" });
}