jQuery.fn.initContent=
function(callback)
{
 
 return this.each
 (
  function()
  {
   var hash=window.location.hash.substr(1);
   var search=window.location.search.substr(1);
   
    if(hash!="")
    {
     jQuery(this).animate
     (
      {opacity:0},
      "slow",
      function()
      {
       jQuery(this).load
       (
        hash,
        null,
        function()
        {
         jQuery(this).find("a[href*=\"?\"]").attr("href",function(){return this.href.replace("?","#")});
         jQuery(this).animate({opacity:1},"slow",callback)
        }
       )
      }
     );
    }
    else
    {
     if(search!="")
     {
      window.location.hash=search;
     }
//     else
//     {
//      window.location.hash=index[0][1];
//     }
    }
  }
 );
 
};

