function initPage() {
  new AjaxTiny("ColContent", { toolbarLocation: 'external' });
  new AjaxTiny("Cover", { toolbarLocation: 'external' });
  new AjaxTiny("NewsBanner1", { toolbarLocation: 'external' , onInitDone:news1Done });
  new AjaxTiny("NewsBanner2", { toolbarLocation: 'external' , onInitDone:news2Done});

  var news = document.getElementsByName('newscontent');
  for (var i=0; i < news.length; i++) {
    var id = parseInt(news[i].id.substring(5));
    new AjaxTiny(news[i].id, { toolbarLocation: 'external' }, id);
  }
}

function news1Done() {
  if (document.getElementById("NewsBanner1").innerHTML.length > 0) {
    document.getElementById("NewsBanner1").style.borderBottom = "1px solid #E4E4E4";
    document.getElementById("NewsBanner1").style.marginBottom = "20px";
    document.getElementById("NewsBanner1").style.paddingBottom = "20px";
  }
}

function news2Done() {
  if (document.getElementById("NewsBanner2").innerHTML.length > 0) {
    document.getElementById("NewsBanner2").style.borderBottom = "1px solid #E4E4E4";
    document.getElementById("NewsBanner2").style.marginBottom = "20px";
    document.getElementById("NewsBanner2").style.paddingBottom = "20px";
  }
}

