/**
 * @author Julio Betta
 */
function pageload(hash) {
   // hash doesn't contain the first # character.
   if(hash) {
      // restore ajax loaded state
      //$("#content .body").load("pages/login/" + hash + ".html");
      $.ajax({
         url:"pages/login/" + hash + ".html",
         cache: false,
         success: function(html) {
            $("#content .body").html(html);
         }
      });
   } else {
      // start page
      $.ajax({
         url:"pages/login/home.html",
         cache: false,
         success: function(html) {
            $("#content .body").html(html);
         }
      });
   //return false;
   }
}

$(document).ready(function() {
   $(".rounded_content").corner("15px");
   //$.historyInit(pageload);
	
   //inicia carregando o HOME
   //$.historyLoad('home');

	
   // KEEP YOUR EYES ON REQUEST =======================================
   $("body").ajaxStart(function() {
      $("#loading").fadeIn('fast');
      $("#status").empty();
   })
   .ajaxStop(function() {
      $("#loading").fadeOut('fast');
      $("#content .body").fadeIn();
   });
//==============================================================

});