function httprequest()
{
	var xreturn = false;
    if(window.XMLHttpRequest) 
    {
		try { xreturn = new XMLHttpRequest(); } catch(e) { return false; }
    } 
    else if(window.ActiveXObject) 
    {
		try 
		{ 
			xreturn = new ActiveXObject("Msxml2.XMLHTTP"); 
		} 
		catch(e) 
		{
            try 
            {
                xreturn = new ActiveXObject("Microsoft.XMLHTTP");
            } 
			catch(e) 
            {
                xreturn = false;
            }
		}
    }
    return xreturn;
}

var xhttp = httprequest();
  
function xpage(url)
{
	xhttp.open("GET", url, true);
	xhttp.onreadystatechange = function()
	{
		if(xhttp.readyState == 4)
		{
			var content = xhttp.responseText;
			var title = xhttp.getResponseHeader("Set-title");
			document.title = title;
			document.getElementById('content').innerHTML = content+'<div class="clear"></div>';
			window.location = "#"+url;	
		}
	};
	xhttp.send(null);
	if(xhttp) { return false; } else { return true; }
}
var xanch = window.location.href.split("#");
if(xanch[1]!=undefined) { xpage(xanch[1]); }
