rendered paste bodyfunction Load_Content($page)
{
if ($page == home){
$includefile = "content/home.php";
$section = "section-1";
}else if ($page == articles){
$includefile = "content/articles.php";
$section = "section-2";
}else if ($page == graffiti){
$includefile = "content/graffiti.php";
$section = "section-3";
}else if ($page == downloads){
$includefile = "content/downloads.php";
$section = "section-4";
}else if ($page == resources){
$includefile = "content/resources.php";
$section = "section-5";
}
ob_start($includefile);
include $includefile;
$content = ob_get_clean();
$objResponse = new xajaxResponse();
$objResponse->assign("body","className","$section");
$objResponse->assign("content","innerHTML",$content);
return $objResponse;
}