﻿function changePage(num, bid, cid){
  new Ajax.Updater('entryContainer' + cid, '/b/BlogAjax.ashx?m=getlimitedmediaentries&id=' + bid + '&page=' + num + '&cid=' + cid, {evalScripts:true});
}
function setContainerHeight(cid, count, gotPaging){
  if(count == 0){
    $('entryContainer' + cid).hide();
    return;
  }
  var rows = Math.ceil(count / 8);
  var height = (rows * 53) + (rows * 6);
  if(gotPaging){
    height += 20;
  }
  $('entryContainer' + cid).style.height = height + 'px';
}


