<?PHP
$updated = "January 16th, 2014";
echo "<!--Last updated: $updated-->";
$print = "";
if( array_key_exists( "print", $_GET ))
	$print = "?print=".$_GET["print"];
?>


<?PHP
if( !isset($doctype) ){
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
			\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
}
else{
	if( $doctype=="transitional" ){
		echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
	}
	else{
	echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
			\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
	}
		
}
?>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<title><?PHP echo $title;?> :: Kaslai's Site</title>
		<link rel="stylesheet" href="/styles/common.php<?PHP echo $print;?>" type="text/css" />
		<link rel="stylesheet" href="/styles/table.php<?PHP echo $print;?>" type="text/css" />
		<link rel="stylesheet" href="/styles/links.php<?PHP echo $print;?>" type="text/css" />
		
		<?PHP 
		if( isset($cssfiles))
		foreach( $cssfiles as $cssfile ){
			echo "<link rel=\"stylesheet\" href=\"/styles/$cssfile.php$print\" type=\"text/css\" />";
		}?>
	</head>
	<body>
		<div class="position">
		<div id="container">
			<?PHP include($_SERVER['DOCUMENT_ROOT']."resources/navbar.php"); ?>
			
			<div class="pad">