function regError(msg)
{
  alert(msg);
}

function loadPage(page) {
  var oRPC = new jsRPC();
  oRPC.href = page + ((page.indexOf('?') != -1)?'&':'?') + 'html_load=1&rnd=' + Math.random();
  oRPC.execute();
}

function onHTMLLoader_load(href) {
	$('.message').pause(2000).animate({ opacity: 0 }).slideUp(200, 'easeOutCubic');
	setContainerHeight();
}

$.fn.pause = function(duration) {
  $(this).animate({ dummy: 1 }, duration);
  return this;
};

$(window).load(function () {
});

$(document).ready(function() {

});

function setContainerHeight()
{
	var c = $('#content').outerHeight() - 24;
  $('#container-left').height(c);
  $('#container-right').height(c);
}
