  var currentAnchor = null;
  //Function which chek if there are anchor changes, if there are, sends the ajax petition
  function checkAnchor(){
	//Check if it has changes
	if(currentAnchor != document.location.hash){
		currentAnchor = document.location.hash;
		if (currentAnchor.length  > 0)
		{ if(!currentAnchor)  { query = "iss=1&idp="; }
		  else
		  { splits = currentAnchor.substring(1).split('&');
			  section = splits[0]; delete splits[0];
			  params = splits.join('&');
			  query = "iss=1&idp=" + section + params; };

		  //$("#loading").show();
  		  $.get("index.php",query, function(data){
          $("#continut").html(data);
		  	//$("#loading").hide();
		    }); }; }; };

//  $().ready(function(){  setInterval("checkAnchor()", 300);  });
  $().ready(function(){
    
      checkAnchor();
      $("a").live("click", function(){ setTimeout(function () { checkAnchor();  }, 200); });
  
    });     