$().ready(function() {
	setInterval("checkAnchor()", 10);
});
var currentAnchor = null;

function checkAnchor() {
	
	if(currentAnchor != document.location.hash){
		currentAnchor = document.location.hash;
		if(!currentAnchor) {
			query = "";
		}
		else {
			var splits = currentAnchor.substring(1).split('&');
			var section = splits[0];
			delete splits[0];
			var params = splits.join('&');
			var query = "#" + section + params;
		}
		$.get("index.php",query, function(data){	
			if (query) {
			$(".aq_content_divs").each(function() {
				$(this).hide();
			});
			}
			$(query).fadeIn();
		});
	}
}

