function regError(msg)
{
  alert(msg);
}

function loadPage(page) {
  var oRPC = new jsRPC();
  oRPC.href = page + ((page.indexOf('?') != -1)?'&':'?') + 'html_load=1';
  oRPC.execute();
}

$.fn.pause = function(duration) {
  $(this).animate({ dummy: 1 }, duration);
  return this;
};
     
$(window).load(function () {
});
      
$(document).ready(function() {

});

function rotateImages()
{
  var img = $('#hp-slider img:first');
  if (img.is(':visible'))
  {
    $('#hp-slider img:first').next().fadeIn(1000);
    $('#hp-slider img:first').fadeOut(1000, function() { 
      $(this).appendTo(this.parentNode);
    });
  }
  else
    img.fadeIn(1000);
    
  if (img.size() != 0)
    setTimeout('rotateImages()', 5000);
}  
