var rootURL = "http://clf.deepmilk.co.uk/";
//var rootURL = "http://familymc/";
//var rootURL = "http://www.lgfl.net/lgfl/leas/harrow/schools/cannon-lane-first/web/homepage3/";
//var rootURL = "http://www.lgfl.net/lgfl/leas/harrow/schools/cannon-lane-first/homepage/";
var curriculumPage=0;


function writeCLFHeader()
{document.write ("<table id='banner_box' border=0 align='center' width=740 cellpadding=0 cellspacing=0 bgcolor='#ffcc33'margin=0><tr><td width=740 height=90><img src='" + rootURL + "images/logo/banner-with-logo-3D.jpg' border=0 width=740 height=100 align='top'></td></tr><tr><td width=740><img src='" + rootURL + "images/util/white_dot.gif' width=740 height=1 border=0></td></tr><tr><td width=740 height=20></td></tr><tr><td width=740><img src='" + rootURL + "images/util/white_dot.gif' width=740 height=1 border=0></td></tr></table>");}

function writeCLFFooter()
{document.write ("<table border=0 cellspacing=0 cellpadding=0><tr><td  width=20 height=20 bgcolor='#FFFFFF'><img src='" + rootURL + "images/util/left_foot_cnr.jpg' width=20 height=20  border=0></td><td width=700 height=20 bgcolor='#FFCC33'></td><td  width=20 height=20 bgcolor='#FFFFFF'><img src='" + rootURL + "images/util/right_foot_cnr.jpg' width=20 height=20  border=0></td></tr></table>");}

function writeMainMenu ()
{
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "index.php'>Home</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "about/about_intro.htm'>About the school</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "contact/contact_intro.htm'>Contact information</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "blog' target='_blank'>News</a></td></tr>");
//document.write("<tr><td id='mainMenuItem' valign='top'><a href='javascript:location=\"index.htm\";window.open(\"" + rootURL + "update/news/news_archive.htm\",\"update\",\"height=410,width=520,scrollbars=yes,left=20,top=20\")'><strong>News</strong></a></td></tr>");
//document.write("<tr><td id='mainMenuItem' valign='top'><a href='javascript:location=location.href;window.open(\"" + rootURL + "update/news/news_archive.htm\",\"update\",\"height=410,width=520,scrollbars=yes,left=20,top=20\")'><strong>News</strong></a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "curriculum/curriculum_intro.php'>Curriculum</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "diary/diary_intro.php'>Diary</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "governors/governors_intro.php'>Governors</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "friends/friends_intro.php'>Friends of Cannon Lane</a></td></tr>");
document.write("<tr><td id='mainMenuItem' valign='top'><a href='" + rootURL + "documents/documents_intro.php'>Letters home</a></td></tr>");
document.write("<tr><td valign='top' align='center'><img src='" + rootURL + "images/util/yellow_spacer.gif' width='142' height='20'></td></tr>");
document.write("<tr><td valign='top' align='center'><a href='http://www.adobe.com/products/acrobat/readstep2.html'><img id='acrobat_logo' src='" + rootURL + "images/acrobat/getacro.gif'></a></td></tr>");
document.write("<tr><td valign='top' align='center'><img src='" + rootURL + "images/util/yellow_spacer.gif' width='142' height='20'></td></tr>");
document.write("<tr><td valign='top' align='center'><a href='" + rootURL + "curriculum/curriculum_intro.htm#4RS'><img src='" + rootURL + "images/rrrr/main_ident.jpg' width='142' height='200'></td></tr>");

}



function write_feature_headers ()
{	
document.write("<div id='homefeature'>");


document.write("<!-- START OF FEATURED ITEM NUMBER 1 -->");

document.write("<table width='183' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr align='left' valign='top'>");

document.write("<td id='about_left' colspan='2' width='183' align='left' valign='top' bgcolor='#71075F'>");
document.write("<a id='home_feat_about_text' href='" + rootURL + "about/about_intro.htm'>");
document.write("<img src='" + rootURL + "images/home_feat/about_the_school.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</a>");
document.write("</td>");
document.write("</tr>");

document.write("<tr align='left' valign='top'>");

document.write("<td id='home_feat_image' width='76' align='left' valign='top' bgcolor='#F2ABE7'>");
document.write("<a id='home_feat_about_text' href='" + rootURL + "about/about_intro.htm'><img src='" + rootURL + "images/home_feat/about_side_image.jpg' width='76' height='127' border='0' alt='about_image'></a>");
document.write("</td>");
document.write("<td  width='107' align='left' valign='top' bgcolor='#F2ABE7'>");

document.write("<p  id='home_feat_about_text'>Essential information like admissions procedure, the full staff list, school uniform, the daily schedule and what to pack the kids for lunch<br /><br /><a id='home_feat_about_text' href='" + rootURL + "about/about_intro.htm'>More</a> >></p>");

document.write("</td>");
document.write("</tr>");
document.write("<tr align='left' valign='top'>");
document.write("<td colspan='2' width='183' align='left' valign='top'>");
document.write("<img src='" + rootURL + "images/home_feat/about_bottom_curve.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan='2' valign='top' >");
document.write("<img src='" + rootURL + "images/util/white_dot.gif' width=183 height=18  border=0>");
document.write("</td></tr>");
document.write("</table>");

document.write("<!-- START OF FEATURED ITEM NUMBER 2 -->");

document.write("<table width='183' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr align='left' valign='top'>");

document.write("<td colspan='2' width='183' align='left' valign='top' bgcolor='#F97AE5'>");
document.write("<a id='home_feat_curriculum_text' href='" + rootURL + "curriculum/curriculum_intro.htm'>");
document.write("<img src='" + rootURL + "images/home_feat/curriculum.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</a>");
document.write("</td>");
document.write("</tr>");

document.write("<tr align='left' valign='top'>");

document.write("<td id='home_feat_image' width='76' align='left' valign='top' bgcolor='#F2ABE7'>");
document.write("<a id='home_feat_curriculum_text' href='" + rootURL + "curriculum/curriculum_intro.php'><img src='" + rootURL + "images/home_feat/curriculum_side_image.jpg' width='76' height='127' border='0' alt='curriculum_image'></a>");
document.write("</td>");
document.write("<td  id='home_feat_curriculum_text' width='107' align='left' valign='top' bgcolor='#F2ABE7'>");

document.write("<p  id='home_feat_curriculum_text'>An entire section dedicated to the work the children do in school. You can find out what each year is working on this week, their sports activities and advice on helping your child with their school work<br /><br /><a id='home_feat_curriculum_text' href='" + rootURL + "curriculum/curriculum_intro.php'>More</a> >></p>");

document.write("</td>");
document.write("</tr>");
document.write("<tr align='left' valign='top'>");
document.write("<td colspan='2' width='183' align='left' valign='top'>");
document.write("<img src='" + rootURL + "images/home_feat/curriculum_bottom_curve.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan='2' valign='top' >");
document.write("<img src='" + rootURL + "images/util/white_dot.gif' width=183 height=18  border=0>");
document.write("</td></tr>");
document.write("</table>");

document.write("<!-- START OF FEATURED ITEM NUMBER 3 -->");

document.write("<table width='183' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr align='left' valign='top'>");

document.write("<td colspan='2' width='183' align='left' valign='top' bgcolor='#86330B'>");
document.write("<a id='home_feat_friends_text' href='" + rootURL + "friends/friends_intro.php'>");
document.write("<img src='" + rootURL + "images/home_feat/friends.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</a>");
document.write("</td>");
document.write("</tr>");

document.write("<tr align='left' valign='top'>");

document.write("<td id='home_feat_image' width='76' align='left' valign='top' bgcolor='#FFD462'>");

document.write("<a id='home_feat_friends_text' href='" + rootURL + "friends/friends_intro.php'><img src='" + rootURL + "images/home_feat/friends_side_image.jpg' width='76' height='127' border='0' alt='friends_image'></a>");

document.write("</td>");
document.write("<td  id='home_feat_text' width='107' align='left' valign='top' bgcolor='#FFD462'>");

document.write("<p  id='home_feat_friends_text'>Thousands of pounds are raised every year for the school by the Friends of Cannon Lane. See what events the've got planned...you might even be able to help with some of those events yourself!<br /><br /><a id='home_feat_friends_text' href='" + rootURL + "friends/friends_intro.php'>More</a> >></p>");

document.write("</td>");
document.write("</tr>");
document.write("<tr align='left' valign='top'>");
document.write("<td colspan='2' width='183' align='left' valign='top'>");
document.write("<img src='" + rootURL + "images/home_feat/friends_bottom_curve.jpg' width='183' height='18' border='0' alt='about_label'>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan='2' valign='top' >");
document.write("<img src='" + rootURL + "images/util/white_dot.gif' width=183 height=18  border=0>");
document.write("</td></tr>");
document.write("</table>");



document.write("</div>");
}


function writeLatestNews()
{
document.write("<a href='" + rootURL + "update/news/" + newsHeadlines[0][1] + "'><strong>" + newsHeadlines[0][0] + "</strong></a> <br/>");
document.write(newsHeadlines[0][2] + "<br/><br/>");

document.write("<a href='" + rootURL + "update/news/" + newsHeadlines[1][1] + "'><strong>" + newsHeadlines[1][0] + "</strong></a> <br/>");
document.write(newsHeadlines[1][2] + "<br/><br/>");

document.write("<a href='" + rootURL + "update/news/" + newsHeadlines[2][1] + "'><strong>" + newsHeadlines[2][0] + "</strong></a><br/> ");
document.write(newsHeadlines[2][2] + "<br/><br/>");

document.write("<a id='latestnews_more' href='update/news/" + newsHeadlines[0][1] + "'><strong>News archive</strong></a> >><br/>");
}


function writeForthcomingEvents()
{

if (diarydates[0][1] > "")
{document.write("<a href='" + rootURL + diarydates[0][1] + "'><strong>" + diarydates[0][0] + "</strong></a> <br/>");}
else
{document.write("<strong>" + diarydates[0][0] + "</strong> <br/>");}
document.write(diarydates[0][2] + "<br/>");
var formattedDate = tidyDate (diarydates[0][3] );
document.write("[" + formattedDate + "]<br/><br/>");

if (diarydates[1][1] > "")
{document.write("<a href='" + rootURL + diarydates[1][1] + "'><strong>" + diarydates[1][0] + "</strong></a> <br/>");}
else
{document.write("<strong>" + diarydates[1][0] + "</strong> <br/>");}
document.write(diarydates[1][2] + "<br/>");
var formattedDate = tidyDate (diarydates[1][3] );
document.write("[" + formattedDate + "]<br/><br/>");

if (diarydates[2][1] > "")
{document.write("<a href='" + rootURL + diarydates[2][1] + "'><strong>" + diarydates[2][0] + "</strong></a> <br/>");}
else
{document.write("<strong>" + diarydates[2][0] + "</strong> <br/>");}
document.write(diarydates[2][2] + "<br/>");
var formattedDate = tidyDate (diarydates[2][3] );
document.write("[" + formattedDate + "]<br/><br/>");
}


function writeAboutRightColumn ()
{document.write("<div id='aboutrightcolumn'>");
document.write("<table width='183' bgcolor='#71075F' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr>");

document.write("</tr><tr>");

if (CLFpageName == "about_intro"){document.write("<td id='menutext'><p><font color='#C13DAB'>Introduction</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_intro.htm'>Introduction</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_staff"){document.write("<td id='menutext'><p><font color='#C13DAB'>Staff</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_staff.php'>Staff</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_day"){document.write("<td id='menutext'><p><font color='#C13DAB'>School day</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_day.htm'>School day</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_attend"){document.write("<td id='menutext'><p><font color='#C13DAB'>Attendance and absences</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_attend.htm'>Attendance and absences</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_admission"){document.write("<td id='menutext'><p><font color='#C13DAB'>Admissions</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_admission.php'>Admissions</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_uniform"){document.write("<td id='menutext'><p><font color='#C13DAB'>School uniform</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_uniform.htm'>School uniform</a></td>");}
document.write("</tr><tr>");


//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_behaviour"){document.write("<td id='menutext'><p><font color='#C13DAB'>Behaviour in school</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_behaviour.htm'>Behaviour in school</a></td>");}
document.write("</tr><tr>");


//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "about_awards"){document.write("<td id='menutext'><p><font color='#C13DAB'>Achievements and awards</font></p></td>");}
else
{document.write("<td id='menutext'><a href='about_awards.htm'>Achievements and awards</a></td>");}

document.write("</tr><tr>");

//document.write("<td><img src='images/util/dk_purple_dot.gif' border=0 width=183 height=5></td>");
document.write("<td><img src='images/util/right_foot_menu_cnr.jpg' border=0 width=183 height=20></td>");

document.write("</tr>");
document.write("</table>");
document.write("</div>");
}


function writeCurriculumRightColumn ()
{document.write("<div id='curriculumrightcolumn'>");
document.write("<table border='0' bgcolor='#F2ABE6' cellspacing=0 cellpadding=0>");
document.write("<tr>");
//document.write("<td valign='top' width=183><img src='images/tudors.jpg' border=0></td>");
//document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
document.write("</tr><tr>");

if (CLFpageName == "curriculum_intro"){document.write("<td id='menutext'><p><font color='#C13DAB'>Introduction</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_intro.php'>Introduction</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
document.write("</tr><tr>");

/*if (CLFpageName == "curriculum_year"){document.write("<td id='menutext'><p><font color='#C13DAB'>Curriculum 2006-07</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_year.php'>Curriculum 2006-07</a></td>");}
document.write("</tr><tr>");
*/

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_reading"){document.write("<td id='menutext'><p><font color='#C13DAB'>Reading</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_reading.php'>Reading</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_sport"){document.write("<td id='menutext'><p><font color='#C13DAB'>Sport</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_sport.php'>Sport</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_helping"){document.write("<td id='menutext'><p><font color='#C13DAB'>Helping your child</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_helping.php'>Helping your child</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_religion"){document.write("<td id='menutext'><p><font color='#C13DAB'>Religious education</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_religion.php'>Religious education</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_needs"){document.write("<td id='menutext'><p><font color='#C13DAB'>Equal opportunities and special needs</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_specialneeds.php'>Equal opportunities and special needs</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_extra"){document.write("<td id='menutext'><p><font color='#C13DAB'>Extra curriculum</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_extra.php'>Extra curriculum</a></td>");}
document.write("</tr><tr>");

//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_trips"){document.write("<td id='menutext'><p><font color='#C13DAB'>School trips</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_trips.php'>School trips</a></td>");}

document.write("</tr><tr>");
//document.write("<td><img src='images/util/mid_pink_dot.gif' border=0 width=183 height=5></td>");
document.write("<td><img src='images/util/right_foot_menu_cnr_pink.jpg' border=0 width=183 height=20></td>");
document.write("</tr>");
document.write("</table>");


//***************** START WEEKLY WORK SCHEDULE LINKS ****************

document.write("<div id='rightcolumn_weekly'>");
//document.write("<table border='0' bgcolor='#F2ABE6' cellspacing=0 cellpadding=0>");
document.write("<table border='0' bgcolor='#FFFFFF' cellspacing=0 cellpadding=0>");
document.write("<tr>");
//document.write("<td valign='top' width=183><img src='images/tudors.jpg' border=0></td>");
//document.write("</tr><tr>");
document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=50></td>");
document.write("</tr><tr>");

document.write("<td><img src=\"images/headers/weekly-schedule-header.jpg\" width=183 height=55 ></td>");
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");


if (CLFpageName == "curriculum_recweek"){document.write("<td id='menutext'><p><font color='#C13DAB'>Reception</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_ws.php?ws_yeargroup=1'>Reception</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr1week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 1</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_ws.php?ws_yeargroup=2'>Year 1</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr2week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 2</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_ws.php?ws_yeargroup=3'>Year 2</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr3week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 3</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_ws.php?ws_yeargroup=4'>Year 3</a></td>");}
document.write("</tr><tr>");
// document.write("<td><img src='images/util/mid_pink_dot.gif' border=0 width=183 height=5></td>");
document.write("<td><img src='images/util/right_foot_menu_cnr_pink.jpg' border=0 width=183 height=20></td>");
document.write("</tr><tr>");

document.write("</tr>");
document.write("</table>");
document.write("<p>&nbsp;</p><p>&nbsp;</p>");

document.write("</div>");
document.write("</div>");
}


function mainmenu_workschedule ()
{
document.write("<table border='0' bgcolor='#FFFFFF' cellspacing=0 cellpadding=0>");
document.write("<tr>");
//document.write("<td valign='top' width=183><img src='images/tudors.jpg' border=0></td>");
//document.write("</tr><tr>");
document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=50></td>");
document.write("</tr><tr>");

document.write("<td><img src=\"" + rootURL + "images/worksched/narrow-weekly-schedule.jpg\" width=146 height=55 ></td>");
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");


if (CLFpageName == "curriculum_recweek"){document.write("<td id='menutext'><p><font color='#C13DAB'>Reception</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_yr0week.htm'>Reception</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr1week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 1</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_yr1week.htm'>Year 1</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr2week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 2</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_yr2week.htm'>Year 2</a></td>");}
document.write("</tr><tr>");
//document.write("<td><img src='images/util/white_dot.gif' border=0 width=183 height=5></td>");
//document.write("</tr><tr>");

if (CLFpageName == "curriculum_yr3week"){document.write("<td id='menutext'><p><font color='#C13DAB'>Year 3</font></p></td>");}
else
{document.write("<td id='menutext'><a href='curriculum_yr3week.htm'>Year 3</a></td>");}
document.write("</tr><tr>");
// document.write("<td><img src='images/util/mid_pink_dot.gif' border=0 width=183 height=5></td>");
document.write("<td><img src='images/util/right_foot_menu_cnr_pink.jpg' border=0 width=183 height=20></td>");
document.write("</tr><tr>");

document.write("</tr>");
document.write("</table>");
document.write("<p>&nbsp;</p><p>&nbsp;</p>");

document.write("</div>");
document.write("</div>");
}


function writeNewsRightColumn ()
{document.write("<div id='newsrightcolumn'>");
document.write("<table width='183' bgcolor='#FFD462' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr>");
document.write("<td><img src='images/util/white_dot.gif' border=0 width='183' height='5' align='top'></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td id='newsarchive_header'><img src='images/headers/news_archive_title.jpg' width='183' height='18'></td>");
//document.write("</tr><tr>");
//document.write("<td id='newsarchive'><p>&nbsp;</p></td>");
document.write("</tr>");

for (x=0;x<newsHeadlines.length;x++)
{document.write("<tr>");
document.write("<td id='newsarchive'><p><a href='" + newsHeadlines[x][1] + "'>" + newsHeadlines[x][0] + "</a></p></td>");
document.write("</tr><tr>");
var formattedDate = tidyDate (newsHeadlines[x][3]);
document.write("<td id='newsarchive'><p>" + newsHeadlines[x][2] + "<br />[" + formattedDate + "]</p></td>");
document.write("</tr>");
}

document.write("<tr>");
document.write("<td><img src='images/util/right_foot_menu_beige.jpg' border=0 width=183 height=20></td>");

document.write("</tr>");
document.write("</table>");
document.write("</div>");
}


//*************************************
function writeEventsMainPage ()
{document.write("<div id='eventsmain'>");


for (x=0;x<diarydates.length;x++)
{
if (diarydates[x][1] > "")
{document.write("<p><strong><a href='" + rootURL + diarydates[x][1] + "'>" + diarydates[x][0] + "</a> </strong><br/>");}
else
{document.write("<p><strong>" + diarydates[x][0] + "</strong> <br/>");}

var formattedDate = tidyDate (diarydates[x][3]);
document.write("[" + formattedDate + "] <br />");
document.write(diarydates[x][2] + "<br />");
if (diarydates[x][1] > "")
{document.write("<strong><a href='" + rootURL + diarydates[x][1] + "'>More >></a> </strong></p>");}

}

document.write("</div>");
}

//******************************************


function writeFriendsRightColumn ()
{document.write("<div id='friendsrightcolumn'>");
document.write("<table width='183' bgcolor='#FFD462' border=0 cellspacing=0 cellpadding=0>");

document.write("<tr>");
document.write("<td><a href='http://www.buy.at/cannonlaneschools'><img src='images/buy-at-ad.jpg' border='0' height='300' width='183'></a></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td><p id='boxheader'>Contacts</p></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p>Friends of Cannon Lane Committee<br />Carol Lee (Secretary)</p>");
document.write("</td>");
document.write("</tr><tr>");
document.write("<td>");
document.write("<p>Newsletter<br />Charlotte Long</p>");
document.write("</td>");
document.write("</tr>");



document.write("<tr>");
document.write("<td><img src='images/util/white_dot.gif' border=0 width='183' height='5' align='top'></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td><p id='boxheader'>Diary dates</p></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p>26th Jan 2008 <br />Quiz Night </p>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p>4th Apr 2008 <br />Cake Sale </p>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p>Date TBC <br />Bollywood </p>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p>28th Jun 2008 11am<br />Summer Fair </p>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><img src='images/util/white_dot.gif' border=0 width='183' height='5' align='top'></td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td><p id='boxheader'>Latest Newsletter</p></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");
document.write("<p><a href='../documents/friends/newsletter2008JAN.pdf'>Jan 2008 Newsletter</a></p>");
document.write("</td>");
document.write("</tr>");


document.write("</table>");
document.write("</div>");
}







