/*Global Variables*/
	/*RO = rollover.  There are three main menu roll-overs*/	
	//Parallel arrays of Links and Link Titles
	RO1Array = new Array("Tutoring:  Grades 1-6", "Tutoring:  Grades 7-12", "Drop-In Classes", "Books, Supplies  Materials");
	RO1Links = new Array("tutelem.html", "tuthigh.html", "dropin.html","supplies.html"); 
	RO2Array = new Array("Essential Math Skills 1: Gr. 9", "Essential Math Skills 2: Gr. 10", "Advanced Functions: Gr. 11", "Calculus", "University Calculus", "Workshops", "English Prep", "Credit Courses");
	RO2Links = new Array("prepgr9.html", "prepgr10.html", "prepgr11.html", "prepgr12.html", "prepuni.html", "workshops.html", "englishprep.html", "creditcalculus.html");	
	RO3Array = new Array("Contact Information", "Address, Directions & Map", "About Our Company and Staff", "F.A.Q. & Cancellation Policy", "Site Map");
	RO3Links = new Array("contact.html", "location.html", "about.html","faq.html", "sitemap.html");	
	CourseDates = new Array("Call to Find out Dates");
	ImportantDates = new Array ("February 15/10 Family Day", "March 16-20/2010 March Break", "Apr.3/10 Good Friday", "Apr.4/10 Easter Monday", "May 24/10 Victoria Day");


//Displays First Menu
function ShowMenu(rollover)
{
   if (rollover == 'RO1')
   {
    string = '<IMG SRC="./images/RO1.gif" USEMAP="#RO1" WIDTH=140 HEIGHT=130 BORDER="0" onmouseover="this.style.display=\'block\'" onmouseout="this.style.display=\'none\'">';
    string += '<MAP NAME="RO1">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./tutelem.html";ClearMenu(\'RO1\',0) ALT="Private Tutoring Gr. 1-6" COORDS="17,14, 110,32" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./tuthigh.html";ClearMenu(\'RO1\',1) ALT="Private Tutoring Gr. 7-12" COORDS="23,33, 119,51" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./dropin.html";ClearMenu(\'RO1\',2) ALT="$10 Drop-In Classes Prepaid" COORDS="33,54, 129,69"  target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./supplies.html";ClearMenu(\'RO1\',3) ALT="Books, Supplies, Materials" COORDS="36,71, 133,88" target="MainFrame">';
    string += '</MAP>';
	//Writes image map
	document.getElementById("RO1ID").innerHTML = string;  	
   }
   if (rollover == 'RO2')
   {
    string = '<IMG SRC="./images/RO2.gif" USEMAP="#RO2" WIDTH=140 HEIGHT=130 BORDER="0"onmouseover="this.style.display=\'block\'" onmouseout="this.style.display=\'none\'">';
    string += '<MAP NAME="RO2">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./prepgr9.html";ClearMenu(\'RO2\',0)  ALT="Prep-Class Gr. 9" COORDS="16,15, 106,33" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./prepgr10.html";ClearMenu(\'RO2\',1) ALT="Prep Class Gr. 10" COORDS="24,32, 114,52" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./prepgr11.html";ClearMenu(\'RO2\',2) ALT="Prep Class Gr. 11" COORDS="30,51, 122,71" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./prepgr12.html";ClearMenu(\'RO2\',3) ALT="Prep Class Gr.12" COORDS="37,71, 131,89"  target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./prepuni.html";ClearMenu(\'RO2\',4) ALT="University Bound" COORDS="37,90, 128,107" target="MainFrame">';
    string += '</MAP>';
	//Writes image map	
	document.getElementById("RO2ID").innerHTML = string;
	
   }
   if (rollover == 'RO3')
   {
    string = '<IMG SRC="./images/RO3.gif" USEMAP="#RO3" WIDTH=140 HEIGHT=130 BORDER="0" onmouseover="this.style.display=\'block\'" onmouseout="this.style.display=\'none\'">';
    string += '<MAP NAME="RO3">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./contact.html";ClearMenu(\'RO3\',0)  ALT="Phone, Email Info" COORDS="20,14, 101,34" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./location.html";ClearMenu(\'RO3\',1) ALT="Address, Map" COORDS="25,35, 112,51" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./about.html";ClearMenu(\'RO3\',2) ALT="About Our Tutors" COORDS="29,52, 115,70" target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./faq.html";ClearMenu(\'RO3\',3) ALT="Frequently Asked Questions" COORDS="38,71, 130,89"  target="MainFrame">';
    string += '<AREA SHAPE="RECT" HREF="" onClick=top.MainFrame.location.href="./sitemap.html";ClearMenu(\'RO3\',4) ALT="Show All Links" COORDS="42,89, 124,105" target="MainFrame">';
    string += '</MAP>';
	//Writes image map	
	document.getElementById("RO3ID").innerHTML = string;
   }
   
}

//Removes Image Map & Prints Title Of Page
function ClearMenu(RO,position)
{

   var string = '<img src="./images/WhiteTile.gif" width="1" height="1" border="0">';
   var output = '<h3>' + eval(RO+'Array['+position+']') + '</h3>';
   document.getElementById("TITLEID").innerHTML = output;  
   if (RO == 'RO1')  
   {
   	  document.getElementById("RO1ID").innerHTML = string;
   }
  if (RO == 'RO2')  
   {
   	  document.getElementById("RO2ID").innerHTML = string;
   }
  if (RO == 'RO3')  
   {
   	  document.getElementById("RO3ID").innerHTML = string;
   }      	 
}

function ShowSideMenu(RO)
{
	string = '<ul>';
	for (i=0; i<eval(RO+'Array.length'); i++)
	{
		string += '\n<li><a href="./' + eval(RO+'Links['+i+']') + '" title="' + eval(RO+'Array['+i+']') + '" target="MainFrame">' + eval(RO+'Array['+i+']') + '</a></li>';
	}
	string += '\n</ul>';
	document.write(string);
}

function ShowCourseDates()
{
 	string = "<ul>";
 	for (i=0; i<eval('CourseDates.length'); i++)
	{
	 	string += '\n<li>' + window["CourseDates"][i] + '</li>'; 
	}
	string += '\n</ul>';
	document.write(string);
}

function ShowImportantDates()
{
 	string = "<ul>";
 	for (i=0; i<eval('ImportantDates.length'); i++)
	{
	 	string += '\n<li>' + window["ImportantDates"][i] + '</li>'; 
	}
	string += '\n</ul>';
	document.write(string);



}