function getPage( $obj, $pg = DEFUALT_PAGE ) {
$pg = ( !empty( $_GET[ 'pg' ] ) ) ? $_GET[ 'pg' ] : $pg;
$content = '<div class="container"><h1>Welcome to inside out - ' . $pg . '</h1></div><div class="container">Please contact the website administrator to report there is a problem with this page.</div>';
foreach ( $obj as $name => $value ) {
if ( $value[ 'PageID' ] === $pg ) {
$content = '<div class="container animated fadeIn"><h1>' . $value[ 'PageName' ] . '</h1></div><div class="container animated fadeIn">' . $value[ 'PageContent' ] . '</div>';
}
}return $content;
}