theButtons1=new Array("Welcome","School+News","Facilities","Organisation","Admissions","Staff","Governing Body","School+Uniform","School+Meals","Contact+Us");
theButtonsURLs1=new Array("welcome","news","facilities","organisation","admissions","staff","governors","uniform","schoolmeals","contact");

theButtons2=new Array("The+Curriculum","English","Maths","Science","ICT","History","Geography","Design+Tech","Art","Music","Religion","PE","Sex+Education","Special+Needs","Extra+Curriculum","Children's University");
theButtonsURLs2=new Array("curriculum","english","maths","science","ict","history","geography","designtechnology","art","music","re","pe","sexeducation","specialneeds","extracurricular","kidsuni");
theButtons3=new Array("Parental+Involvement","Helping+in+School","Community+Involvement","Behaviour+Policy","Code+of+Conduct","Attendance+Policy","Safety+&amp;+Security","Complaints+Procedure","Charging Policy","Health+Matters","Curriculum+Overview","Homework","Community Centre");
theButtonsURLs3=new Array("parental_involvement","helping","community_involvement","policy_behaviour","codeofconduct","attendance","safety","complaints_procedure","policy_charging","healthmatters","curriculum_overview","homework","community");
theButtons4=new Array("Nursery","Reception","Year+1","Year+2");
theButtonsURLs4=new Array("gallery_nursery","gallery_reception","gallery_year1","gallery_year2");

var topSuffix="1";
thetopButtons1=new Array("About+our+School","The+Curriculum","Parents+Information","School+Gallery");
thetopButtonURLs1=new Array("welcome","curriculum","parental_involvement","nursery");

   var theSect=wotSect;
   var thePage=wotPage;
   var buttonNum;

    if (theSect="1"){
    if (thePage=="welcome") {var buttonNum="1"};
    if (thePage=="news") {var buttonNum="2"};
    if (thePage=="facilities") {var buttonNum="3"};
    if (thePage=="organisation") {var buttonNum="4"};
    if (thePage=="admissions") {var buttonNum="5"};
    if (thePage=="staff") {var buttonNum="6"};
    if (thePage=="governors") {var buttonNum="7"};
    if (thePage=="uniform") {var buttonNum="8"};
    if (thePage=="schoolmeals") {var buttonNum="9"};
    if (thePage=="contact") {var buttonNum="10"};
    }
    if (theSect="2"){
    if (thePage=="curriculum") {var buttonNum="1"};
    if (thePage=="english") {var buttonNum="2"};
    if (thePage=="maths") {var buttonNum="3"};
    if (thePage=="science") {var buttonNum="4"};
    if (thePage=="ict") {var buttonNum="5"};
    if (thePage=="history") {var buttonNum="6"};
    if (thePage=="geography") {var buttonNum="7"};
    if (thePage=="designtechnology") {var buttonNum="8"};
    if (thePage=="art") {var buttonNum="9"};
    if (thePage=="music") {var buttonNum="10"};
    if (thePage=="re") {var buttonNum="11"};
    if (thePage=="pe") {var buttonNum="12"};
    if (thePage=="sexeducation") {var buttonNum="13"};
    if (thePage=="specialneeds") {var buttonNum="14"};
    if (thePage=="extracurricular") {var buttonNum="15"};
    if (thePage=="kidsuni") {var buttonNum="16"};
    }
    if (theSect="3"){
    if (thePage=="parental_involvement") {var buttonNum="1"};
    if (thePage=="helping") {var buttonNum="2"};
    if (thePage=="community_involvement") {var buttonNum="3"};
    if (thePage=="policy_behaviour") {var buttonNum="4"};
    if (thePage=="codeofconduct") {var buttonNum="5"};
    if (thePage=="attendance") {var buttonNum="6"};
    if (thePage=="safety") {var buttonNum="7"};
    if (thePage=="complaints_procedure") {var buttonNum="8"};
    if (thePage=="policy_charging") {var buttonNum="9"};
    if (thePage=="healthmatters") {var buttonNum="10"};
    if (thePage=="curriculum_overview") {var buttonNum="11"};
    if (thePage=="homework") {var buttonNum="12"};
    if (thePage=="community") {var buttonNum="13"};


    }
    if (theSect="4"){
    if (thePage=="gallery_nursery") {var buttonNum="1"};
    if (thePage=="gallery_reception") {var buttonNum="2"};
    if (thePage=="gallery_year1") {var buttonNum="3"};
    if (thePage=="gallery_year2") {var buttonNum="4"};
    }
