// RANDOM TEXT
function random_text()
{};
var random_text1 = new random_text();
var text_desc1 = new Array();
var number = 0;
var random_text2 = new random_text();
var text_desc2 = new Array();

text_desc1[number] = "<span style='font-size:14px;'><table border='0' cellpadding='2' cellspacing='0'><tr><td width='200px;'><b>HIGH SCHOOL OPEN HOUSE<b/></td><td width='130px;'><b>DATE<b/></td><td width='200px;'><b>TIME<b/></td></tr><tr><td>Tommy Douglas Collegiate </td><td>Tues, Feb 2nd</td><td>7:00 PM</td></tr><tr><td>Centennial Collegiate </td><td>Wed, Feb 3rd </td><td>7:00 PM</td></tr><tr><td>Aden Bowman Collegiate </td><td>Thurs, Feb. 4th </td><td>7:00 PM</td></tr><tr><td>City Park Collegiate </td><td>Thurs, Feb 4th </td><td>During the school day</td></tr><tr><td>Bedford Road Collegiate </td><td>Thurs, Feb 4th </td><td>7:00 PM</td></tr><tr><td>Evan Hardy Collegiate </td><td>Tues, Feb 9th </td><td>7:00 PM</td></tr><tr><td>Marion Graham Collegiate </td><td>Tues, Feb 9th </td><td>7:00 PM</td></tr><tr><td>Nutana Collegiate </td><td>Tues, Feb 9th </td><td>7:00 pm </td></tr><tr><td>Saskatoon Christian School </td><td>Tues, Feb 9th </td><td>7:00 PM</td></tr><tr><td>Mount Royal Collegiate </td><td>Wed, Feb. 10th </td><td>7:00 PM</td></tr><tr><td>Walter Murray Collegiate </td><td>Thurs, Feb 11th </td><td>7:00 PM</td></tr></table><br/>Locate a high school <a href='files/newsReleases/OpenHouseHS.pdf'>here.</a></span><br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text1[number++] = "<span style='font-size:22px;'>Check out our high schools up close!  Attend a February Open House!</span>";

text_desc1[number] = "Kindergarten registration has begun for the 2010-2011 school year.  Children, who will be five years old by January 31, 2011, can start Kindergarten in September 2010.  We invite you to bring your child to visit our Kindergarten classes, tour our school and meet our staff!<br/>For more information on our Kindergarten classes, click  <a href='files/events/KindergartenRegistration.pdf'>here</a>.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text1[number++] = "<span style='font-size:22px;'>It's time to register for Kindergarten! Reserve your spot now!</span>";

text_desc1[number] = "<span style='font-size:14px;'><b>The International Baccalaureate Diploma Programme at Bedford Road Collegiate Institute</b><br/><br/>Bedford Road Collegiate Institute is a candidate school* for the International Baccalaureate (IB) Diploma Programme.  Bedford Road is awaiting final authorization to become an IB World School and, once authorized, the IB Diploma Programme will commence in September 2010.<br/><br/>  The IB Diploma Programme is a <u>two year</u> programme that starts in Grade 11 for students who are academically motivated, service oriented and who desire the rigorous international curriculum that focuses on our role as citizens in a global society.  The International Baccalaureate Organization's goal is to provide students with the values and opportunities that will enable them to develop sound judgement, make wise choices and respect others in our global community.<br/><br/><b>On Wednesday, January 13, 2010 at 7 p.m., there will be a public information session held at the Hilton Garden Inn Hotel (90 - 22nd Street East) in Saskatoon.</b><br/><br/>  Click <a href='files/events/IBDiplomaProgrammeBRCI.pdf'> here </a> or <a href='files/events/IBDPFormofInterest.pdf'> here </a> for more information about the IB Diploma Programme at Bedford Road Collegiate.<br/><br/></span><span style='font-size:12px;'>*Only schools authorized by the IB organization can offer any of its three academic programmes: the Primary Years Programme (PYP), the Middle Years Programme (MYP), or the Diploma Programme (DP).  Candidate status gives no guarantee that authorization will be granted.</span><br><font style='font-size:14px;'>Click this box to close.</font>";
random_text1[number++] = "<span style='font-size:17px;'>Bedford Road Collegiate Awaits Final Authorization from International Baccalaureate Organization</span>";

text_desc1[number] = "<b>&#201cole Henry Kelsey School Turns 50!</b><br/><br/>Click <a href='files/events/HenryKelseyinvitation.pdf'>here</a> for more information.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text1[number++] = "<span style='font-size:26px;'>&#201cole Henry Kelsey School Turns 50!</span>";

var rn1 = Math.floor(Math.random() * number);
var max1_num = number-1;

//document.getElementById('random1').innerHTML=random_text1[rn1];
//document.getElementById('text_desc1').innerHTML=text_desc1[rn1];

number = 0;

text_desc2[number] = "<b>$450,000</b><br/><br/>The amount saved because of energy efficiency measures implemented by Saskatoon Public Schools in 2008-2009.  The (carbon dioxide) emissions avoided equates to taking approximately 1,000 vehicles off the road.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "$450,000";

text_desc2[number] = "<b>10 Years</b><br/><br/>In December 2008, our <i>Outdoor School</i> program at Marion M. Graham Collegiate celebrated its 10th Anniversary.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "10 Years";

text_desc2[number] = "<b>Top 20</b><br/><br/><span style='font-size:22px;'>Two Saskatoon public schools -- John Dolan and Montgomery -- made <i>Today's Parent</i> magazine's list of the Top 20 Great Schools in Canada. John Dolan School won in the 'serving special needs' category.  The school was recognized for its highly individualized and specialized program offerings, including its <i>Snoezelen</i> multisensory room and music therapy.  Montgomery School won in the 'punched up programming' category thanks to its <i>ScienceTrek</i> program for Grade 8 students and its school-wide focus on science.</span><br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "Top 20";

text_desc2[number] = "<b>380 Kilograms</b><br/><br/>The amount of garbage collected at Aden Bowman Collegiate in one week in February 2009 by students involved in the <i>Earthkeepers</i> program (a Grade 10 course).  The students performed a waste audit and implemented a waste reduction plan at the school.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "380 Kilograms";

text_desc2[number] = "<b>93%</b><br/><br/>This percentage of Saskatoon residents who do not currently have children attending Saskatoon Public Schools have the impression that Saskatoon Public Schools is satisfactory or better.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "93%";

text_desc2[number] = "<b>92%</b><br/><br/>This percentage of Saskatoon's business owners and managers have the overall impression that Saskatoon Public Schools is satisfactory or better.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "92%";

text_desc2[number] = "<b>1st in Saskatoon</b><br/><br/>Bedford Road Collegiate has been named an International Baccalaureate Program candidate school (with the launch of the I.B. program slated for fall 2010).<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "1st in Saskatoon";

text_desc2[number] = "<b>53</b><br/><br/>The total number of Greystone Scholars at Saskatoon Public Schools in the 2008-2009 school year.  The University of Saskatchewan's <i>Greystone Scholars Society</i> is an elite group of students comprised of successful Grade 12 nominees who, in Grade 11, achieve an average of 95% or higher.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "53";

text_desc2[number] = "<b>17,411</b><br/><br/>The number of Saskatoon Public Schools staff and students who registered as readers on September 8, 2008 in celebration of International Literacy Day.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "17,411";

text_desc2[number] = "<b>1st in Saskatoon</b><br/><br/>In 2009, Fairhaven Public School became home to Saskatoon's first-ever Early Learning Care Centre.<br/><br/><font style='font-size:14px;'>Click this box to close.</font>";
random_text2[number++] = "1st in Saskatoon";


// this code prevents the same number being picked by both boxes - if the lists are different the loop is not needed.
var rn2 = Math.floor(Math.random() * number);
var max2_num = number-1;


function show_text1(n1) {
   document.getElementById('text_desc1').innerHTML=text_desc1[n1];
}

function show_text2(n2) {
   document.getElementById('text_desc2').innerHTML=text_desc2[n2];
}

function next_text1() {

   rn1++;
   if (rn1 > max1_num) {
      rn1 = 0;
   }
   document.getElementById('random1').innerHTML=random_text1[rn1];
   document.getElementById('text_desc1').innerHTML=text_desc1[rn1];

};

function previous_text1() {

   rn1--;
   if (rn1 < 0) {
      rn1 = max1_num;
   }
   document.getElementById('random1').innerHTML=random_text1[rn1];
   document.getElementById('text_desc1').innerHTML=text_desc1[rn1];

};


function next_text2() {

   rn2++;
   if (rn2 > max2_num) {
      rn2 = 0;
   }
   document.getElementById('random2').innerHTML=random_text2[rn2];
   document.getElementById('text_desc2').innerHTML=text_desc2[rn2];

};

function previous_text2() {

   rn2--;
   if (rn2 < 0) {
      rn2 = max2_num;
   }
   document.getElementById('random2').innerHTML=random_text2[rn2];
   document.getElementById('text_desc2').innerHTML=text_desc2[rn2];

};

