function content_cb(z)
{	
	if (z != "")
	{
	document.getElementById('RightContent').innerHTML = z;
	}
}
function content(page)
{	
	BottomNavigation();
	ImageSwap(page);
	Name(page);
	GetURL(page);
	
	x_content(page, content_cb );
	
}
function BottomNavigation()
{
	x_BottomNavigation(BottomNavigation_cb );
}
function BottomNavigation_cb(z)
{
	
		document.getElementById('Footer').innerHTML = z;
}
function GetURL(page)
{
	x_GetURL(page,GetURL_cb);
}
function GetURL_cb(z)
{
		//alert(z.charAt(0));
		if (z.charAt(0) !=  "1" && z!= "" && z.charAt(0) != "?" && z.charAt(0) !=  "~")
		{
			document.location.href = z;
		}
		else if (z.charAt(0) ==  "~" && z!= "" && z.charAt(0) != "?")
		{
			var s;
			s = new String(z);
			s = s.replace("~", "");
			//alert (s);
			
			window.open(s);
		}
}
