menufile=new Array;
menuname=new Array;

m=1;
menufile[m]="management/management.htm";
menuname[m]="Management";
m++;

menufile[m]="english/english.htm";
menuname[m]="English";
m++;

menufile[m]="maths/maths.htm";
menuname[m]="Maths&nbsp; &nbsp; ";
m++;

menufile[m]="science/science.htm";
menuname[m]="Science";
m++;

menufile[m]="history/history.htm";
menuname[m]="History";
m++;

menufile[m]="geography/geography.htm";
menuname[m]="Geography";
m++;

menufile[m]="art/art.htm";
menuname[m]="Art, Design & Technology";
m++;

menufile[m]="music/music.htm";
menuname[m]="Music&nbsp; &nbsp; ";
m++;

menufile[m]="communications/communications.htm";
menuname[m]="Communications";
m++;

menufile[m]="skills/skills.htm";
menuname[m]="Skills&nbsp;Development";
m++;

menufile[m]="thinking/thinking.htm";
menuname[m]="Thinking&nbsp;Skills";
m++;

menufile[m]="earlyyears/earlyyears.htm";
menuname[m]="Early Years";
m++;

menufile[m]="reviewbook/reviews.htm";
menuname[m]="Reviews: books";
m++;

menufile[m]="reviewsoftware/reviews.htm";
menuname[m]="Reviews:&nbsp;software";
m++;

menufile[m]="reviewhardware/reviews.htm";
menuname[m]="Reviews:&nbsp;hardware";
m++;

menufile[m]="reviewpack/reviews.htm";
menuname[m]="Reviews: packs";
m++;

menufile[m]="miscellaneous/miscellaneous.htm";
menuname[m]="Miscellaneous";
m++;

//--------------------------

function makemenu() {

w('<div align="center"><center>');
w('<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td><img src="../../images/blank.gif" width="5" height="5"></td>');

// SIDE MENU
w('<td valign="top"><a href="../../index.htm"><img border="0" src="../../naace_images/NAACE_small.gif" width="160" height="101"></a>');
w('<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#014979" width="160">');
w('<tr><td valign="top">');

w('<table border="0" width="100%" cellspacing="1" cellpadding="3">');

for(q=1;q<=(m-1);q++){

if((menusection==q)&&(menusubsection==0)) w('<td bgcolor="#FFFFFF"><img src="../../images/pointer0.gif" name="m'+q+'" width="12" height="8"><span class="menuselected">'+menuname[q]+'</span></a><br>');
else w('<tr><td bgcolor="#FFFFFF"><img src="../../images/pointer1.gif" name="m'+q+'" width="12" height="8"><a href="../'+menufile[q]+'" onmouseover="ona('+q+')" onmouseout="offa('+q+')"><span class="black12">'+menuname[q]+'</span></a><br>');

if(menusection==q) {
for(e=1;e<=submenutotal;e++){
if(menusubsection==e) w('<img src="../../images/pointer0.gif" name="m'+(90+e)+'" width="12" height="8"><span class="menuselected">'+submenuname[e]+'</span></a><br>');
else w('<img src="../../images/pointer1.gif" name="m'+(90+e)+'" width="12" height="8"><a href="'+submenufile[e]+'.htm" onmouseover="ona('+(90+e)+')" onmouseout="offa('+(90+e)+')"><span class="black12">'+submenuname[e]+'</span></a><br>');
}
}
w('</td></tr>');
}
w('</table>');
w('</td></tr></table>');
w('<p align="center"><a href="../../index.htm"><span class="menuselected">Primary index</span></a><br>');
w('<p align="right">');
if(printable==1) w('<a target="_blank" href="'+submenufile[menusubsection]+'x.htm"><img src="../../images/paper.gif" border="0" alt="Display the text in mono in a new window for printing" width="20" height="27"></a>');
w('<br><img src="../../images/blank.gif" width="124" height="1"></td>');

// end SIDE MENU

w('<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr>');
w('<td width="8"><img src="../../images/blank.gif" width="8" height="8"></td>');
w('<td width="1" bgcolor="#014979"><img src="../../images/blank.gif" width="1" height="8"></td>');
w('<td><table border="0" width="100%" cellspacing="0" cellpadding="10"><tr><td width="100%">');
w('<table border="0" cellpadding="0" cellspacing="0" bgcolor="#014979" width="100%"><tr>');
//w('<td align="center" class="curriculumtitle"><p class="curriculumtitle">Primary '+subtitle+'</td>');
w('<td align="center" class="curriculumtitle"><p class="curriculumtitle"><a name="top">Primary</a> '+subtitle+'</td>');
w('</tr></table>');
}

//--------------------------

function endbit() {
if(navigator.appName=="Netscape") win_width=innerWidth;
else win_width=document.body.clientWidth;
w('&nbsp;<img src="../../images/blank.gif" width="'+(win_width-224)+'" height="1">&nbsp;');
w('</td></tr></table></td>');
w('<td width="1" bgcolor="#014979"><img src="../../images/blank.gif" width="1" height="8"></td>');
w('<td width="4"><img src="../../images/blank.gif" width="4" height="8"></td>');
w('</tr></table></td></tr></table></center></div>');
}

//--------------------------

function w(s) {
document.write(s)
}