function initMaster() {
  new AjaxTiny("Footer", { width:"990px", height:"50px", toolbarLocation:'external' });

  var so = new SWFObject("flash/ferring_static_slide.swf", "people", "313", "79", "8", "#ffffff", false);
  so.addParam("wmode", "transparent");
  so.write("peopleflash");


  if (typeof AjaxPro != "undefined" && AjaxPro !== null) {
/*    AjaxPro.timeoutPeriod = 1000 * 10;
    AjaxPro.onTimeout = function(b, res) { ajaxTimeout(b, res); }
    AjaxPro.onLoading = function(b) { showBusy(b); }
    AjaxPro.onError = function(res) { ajaxError(res); }*/
  }
  try {
    initPage();
  }
  catch (e) {
    nfndebug(e.message);
  };
}

function ajaxTimeout(b, res) {
  showBusy(false);
  $('ajaxerr').innerHTML = "Timeout i funktionen " + res.method;
  $S('ajaxerr').display = "block";
  setTimeout("hideAjaxErr()", 3000);
}
function ajaxError(res) {
  showBusy(false);
  $('ajaxerr').innerHTML = res.Message;
  $S('ajaxerr').display = "block";
  setTimeout("hideAjaxErr()", 3000);
}
function showBusy(busy) {
  $S("ajaxbusy").display = (busy ? "block" : "none");
}
function hideAjaxErr() {
  $S('ajaxerr').display = "none";
}

function showMenuArr(a, show) {
  a.nextSibling.style.display = (show ? "inline" : "none");
}

function getP(url, delay) {
  var p = {
    path:"/flash/images/" + url,
    w:313,
    h:79,
    pantype:"none",
    fadetime:delay,
    timedelay:1,
    pandelay:0,
    link:"",
    target:"_blank"
  }
  return p;
}

function flashLoaded(flashid) {
  var imgarr = new Array();
  imgarr.push(getP("a1.jpg", 3));
  imgarr.push(getP("a4.jpg", 3));
  imgarr.push(getP("a2.jpg", 4));
  imgarr.push(getP("a3.jpg", 3));
  var thisMovie = $("people");
  thisMovie.sendArrToFlash(imgarr);
}

if (window.attachEvent) window.attachEvent("onload", initMaster);
else window.addEventListener("load", initMaster, false);

