// Opera didn't do it !
var browser = navigator.appName;
//if (browser.indexOf("Opera") > -1 ) hc_Go=false;

if (hc_Go) {
  // hc_Go is sent from php and activates the banner .. but can also stop it here manually,
  var browser = navigator.appName;
  var browserIE = false;

  // IE 8 is much slower / but quicker timer may be impossible.
  if (browser=="Microsoft Internet Explorer") {
    scrollSpeed = 20;
    targetFramesPerMilliSecond = .03;
    browserIE = true;
  } else {
    scrollSpeed = 30;
    targetFramesPerMilliSecond = .03;
  }

  var waitBeforScroll = 2000;
  var moveAmount = false;
  var startScroll = "moveAmount = new gt ();scrollInterval = setInterval(\"doAdjusts ()\","+scrollSpeed+");";
  var spaceBetween = 10;
  var css_borders = 1;
  var headerHeight = 25;
  var rowHeightInclusive = thumbHeightsfromPHP + (4*css_borders) + headerHeight + spaceBetween;
  var htlm_S = "<div id=\"b-0\" style='height:"+(rowHeightInclusive*numCats-spaceBetween)+"px;'>";
  var headTop = 0;

  for (var cat_id in categorieNames) {
    htlm_S += "<div class=\"bh0\" style=\"top:"+headTop+"px\"><a class=\"hCat\" onclick=\"goToCatURL("+cat_id+")\" >"+categorieNames[cat_id]+"</a></div>";
    headTop += rowHeightInclusive;
  }

  htlm_S += "<div id=\"hcBannerText\"></div>";
  htlm_S += "<div id=\"b-99\"  onMouseOver=\"stop(this)\"   onMouseOut=\"go()\">";
  //htlm_S += "<br class=\"bh0\" />";

  // Offset from header - which is z-above.
  var b_top = headerHeight;

  for (var cat_id in categorieNames) {
    for (ii = 0; ii<reserveDivs; ii++) {
      backRefs[cat_id][ii] = new refsObj ();
      imgNameIdArray[ii] = "i_" + cat_id + "_" + ii;
      htlm_S += '<img style="top:'+b_top+'px;height:'+ thumbHeightsfromPHP + 'px" id=\"'+ imgNameIdArray[ii] + '\" class=\"b-3\" alt="" ' +
      ' onclick="goToURL(this)"' +
      ' onMouseOver=\"showText(true, this);\" >';
    }
    b_top += rowHeightInclusive;      
  }

  // htlm_S += "<br class=\"bh0\" />";
  htlm_S += "</div></div>";

  document.write(htlm_S);

  // HTML is in place - can start scroll method.
  canStart();

}
