function initPage() {
  $('#cards').scroller({vertScroller:false, horizScroller:true, imagepath: 'img/scroller'});
  if (!_loggedin)
    $("#infoscroll").scroller({imagepath: 'img/scroller'});

  $("#Info").ajaxcontrol();
  $("#Info2").ajaxcontrol();
  $("#BigCard").ajaxcontrol();
}

function hlCard(card, hl) {
  card.className = (hl ? "selcard" : "unselcard");
}

function showAmbassador(div, infoid, info2id, bcardid) {
  var tr = N$('ctable').firstChild.firstChild;
  for (var i=0; i < tr.childNodes.length; i++) {
    tr.childNodes[i].childNodes[0].style.display = 'none';
    tr.childNodes[i].childNodes[1].style.display = 'inline';
  }
  div.parentNode.style.display = "none";
  div.parentNode.previousSibling.style.display = "inline";

  $("#Info").ajaxcontrol_setPropertyId(infoid, infoSet);
  $("#Info2").ajaxcontrol_setPropertyId(info2id);
  $("#BigCard").ajaxcontrol_setPropertyId(bcardid);
}

function infoSet() {
  if (!_loggedin)
    $("#infoscroll").scroller_contentChanged(false);
}