<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>>
<head>
<base target="_top">
<?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title>

<?php include("$CFG->javascript"); ?>
<style type="text/css">
#course-view .section td.side,th.header,td.header,div.header,.navbar{
background-color:<?php
/* A Color a Day by Charles Kelly www.manythings.org/tesl/moodle
Started: 080319 Updated: 080326
*/
$colorlist = array("LightSkyBlue","Pink","BlanchedAlmond","Gold","LightGreen","Bisque","SkyBlue","Aquamarine","Lavender","PeachPuff","LightBlue","PaleGreen","Khaki","Cornsilk","PowderBlue","LightPink","MediumSpringGreen","AntiqueWhite","LightSteelBlue","Lime","Moccasin","MistyRose","LawnGreen","LightGrey","Wheat","LightCyan","PaleTurquoise","NavajoWhite","SpringGreen","PaleGoldenrod","LightSalmon");
$today = date (j);

//Instead of today, choose it randomly - uncomment the next line
//$today = array_rand($colorlist);
$todayscolor = $colorlist[$today-1];
echo $todayscolor;

?>;
}

.section h1,.section h2,.section h3{background-color:<?php echo $todayscolor; ?>;}

//body{border-left:8px solid <?php echo $todayscolor; ?>;border-right:8px solid <?php echo $todayscolor; ?>;}
#header-home,#header{background-color:<?php echo $todayscolor; ?>; }
#footer{background-color:<?php echo $todayscolor; ?>;}

/* Block Headers, Headings in Lessons, This week highlight color */
#course-view .weekscss .current,#course-view .current td.side,
.section h1,.section h2,.section h3,
.generaltable th.c0,.generaltable th.c1,.generaltable th.c2,.generaltable th.c3,.generaltable th.c4,th.header,td.header .left,.headingblock,.sideblock .header{
background-color:<?php echo $todayscolor; ?>;
color:Black;
}

</style>
</head>
<body<?php
echo " $bodytags";
if ($focus) {
echo " onload=\"setfocus()\"";
}
?>>

<div id="page">

<?php 
  if ($home) {  // FRONT PAGE
  

?>
<div id="header-home" class="clearfix">
<table width="100%"><tr><td valign="top">
<h1 class="headermain"><?php echo $heading ?></h1>

</td><td valign="top" align="right">
<?php echo $menu ?></div>
</td>

</tr></table>
</div>
<?php } else if ($heading) {  // COURSE PAGE AND OTHER 
?>
<div id="header" class="clearfix">

<table width="100%"><tr><td valign="top">
<small><?php echo $heading ?></small>

</td><td valign="top" align="right">
<?php echo $menu ?></div>
</td>

</tr></table>

</div>
<?php } ?>

<?php if ($heading) { 

?>

<?php } ?>
<?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
  if ($navigation) { // This is the navigation bar with breadcrumbs  ?>
<div class="navbar clearfix">
<div class="breadcrumb"><?php print_navigation($navigation); ?></div>
<div class="navbutton"><?php echo $button; ?></div>
</div>   
<?php } else if ($heading) { // If no navigation, but a heading, then print a line  
?>
<!--hr size="1" noshade="noshade" / -->
<?php } ?>
<!-- END OF HEADER -->
<div id="content">
