function initPage() {
  new AjaxTiny("Shot1", { width:1030, height:700 });
  new AjaxTiny("ShotText1", { width:800, height:200 });
  new AjaxTiny("Shot2", { width:1030, height:700 });
  new AjaxTiny("ShotText2", { width:800, height:200 });
  new AjaxTiny("Shot3", { width:1030, height:700 });
  new AjaxTiny("ShotText3", { width:800, height:200 });
  new AjaxTiny("TopText", { toolbarLocation:"external" });
  new AjaxTiny("Screenshots", { toolbarLocation:"external" });
}

function openWindow() {
  openFilm();
}
function openFilm() {
  document.getElementById("film").innerHTML = "";
  document.getElementById("speakermess").style.display = "block";
  $S('flv_player').display = 'block';
  setTimeout(openFilm2, 2000);
}

function openFilm2() {
  document.getElementById("speakermess").style.display = "none";

  var so = new SWFObject("flash/flv_player.swf", "film", "1280", "745", "8", "#666666", true);

  so.addParam("salign", "lt");
  so.addParam("scale", "noscale");
  so.addParam("wmode", "transparent");
  so.addParam("allowFullScreen", "true");

  so.addVariable("control_mode", "BOTTOM");
  so.addVariable("play_mode", "PLAY");
  /*so.addVariable("color_theme_on", "0000FF");
  so.addVariable("color_theme_bg", "FF0000");*/
  so.addVariable("movie_path", "/flash/Sequence_2-H_1280.flv");
  so.addVariable("movie_width", "1280");
  so.addVariable("movie_height", "720");
  so.addVariable("color_theme", "ffffff");
  so.addVariable("show_interface", "1");
  so.addVariable("update_message", "Your flashplayer\nis too old.");
  so.addVariable("update_button", "Update now");
  so.write("film");
}

function quickreg() {
  var email = document.getElementById("quickreg").value;
  var response = Start.QuickReg(email);
  if (response.value.length > 0) {
    document.getElementById("regtext").style.color = "#ff0000";
    document.getElementById("regtext").innerHTML = response.value;
  }
  else {
    document.getElementById("regform").style.display = "none";
    document.getElementById("regthanks").style.display = "block";
  }
}

var screenshot1 = new DivObj("screenshot1","screenshot1");
var screenshot2 = new DivObj("screenshot2","screenshot2");
var screenshot3 = new DivObj("screenshot3","screenshot3");

function showDump(nr) {
  eval("screenshot" + nr).fadeIn();
}

function closeFilm() {
  document.getElementById('flv_player').style.display = 'none'
  document.getElementById('film').innerHTML = "";
}