 // -----------------------------------------------------------
 // selfaccess Menu Control Script.
 // Version 1.6
 // Copyright 2002 English-To-Go Limited
 // Developed by H G Laughland
 // -----------------------------------------------------------
 // Revised 05.01.2002 Version 3.0
 
 
// var strBlank = '<img src="images/blank-1.gif" width="42" height="8" border="0" alt="" align="left"><br>';
 var strBlank = '';
 
 var strLogos = '<table align="center" border="0" cellspacing="0" cellpadding="0" height="120" width="680">';
     strLogos += '<tr><td width="171" align="center" valign="middle">'; 
     strLogos += '&nbsp;&nbsp;<a href="http://www.selfaccess.com/index.htm" target="_top"><img src="http://www.selfaccess.com/www/sa/images/logo5.gif" width="100" height="100" border="0" alt="English lessons for self study by students."></a>';
     strLogos += '</td><td align="left" valign="middle" width="509"><a href="http://www.selfaccess.com/index.htm" target="_top">';
     strLogos += '<img src="http://www.selfaccess.com/www/sa/images/banner.gif" width="406" height="70" border="0" alt="English lessons for self study by students."></a></td></tr></table>';
	 
 var strLogos2 = '<table align="center" border="0" cellspacing="0" cellpadding="0" width="680">';
     strLogos2 += '<tr><td width="171" align="center" valign="middle">'; 
     strLogos2 += '&nbsp;&nbsp;<a href="http://www.selfaccess.com/index.htm"><img src="http://www.selfaccess.com/www/sa/images/logo5.gif" width="100" height="100" border="0" alt="English lessons for self study by students."></a>';
     strLogos2 += '</td><td align="left" valign="middle"><a href="http://www.selfaccess.com/index.htm">';
     strLogos2 += '<img src="http://www.selfaccess.com/www/sa/images/banner.gif" width="406" height="70" border="0" alt="English lessons for self study by students."></a></td></tr></table>';
 
 var strCopyright = '<table align="center" border="0" cellspacing="0" cellpadding="0" width="680">';
     strCopyright += '<tr><td align="center" colspan="2"><a href="http://www.english-to-go.com" target="_top">';
	 strCopyright += '<img src="http://www.selfaccess.com/www/sa/images/etgs.gif" width="142" height="35" border="0" align="absmiddle" alt="ETG Homepage"></a>';
	 strCopyright += '<font class="stCopyright">©2007 English-To-Go Limited </font>'; 
	 strCopyright += '</td></tr></table>';
     
 var strCopyright2 = '<table align="center" border="0" cellspacing="0" cellpadding="0">';
     strCopyright2 += '<tr><td align="center"><br><a href="http://www.english-to-go.com">';
	 strCopyright2 += '<img src="http://www.selfaccess.com/www/sa/images/etgs.gif" width="142" height="35" border="0" align="absmiddle" alt="ETG Homepage"></a><br>';
	 strCopyright2 += '<font class="stCopyright">©2006 English-To-Go Limited </font><br>'; 
	 strCopyright2 += '</td></tr></table>';
	
 var strFooter = '<table align="center" border="0" width="150"><TR><TD align="center" valign="top">';
     strFooter += '<A target="_top" style="text-decoration : none; color:#000080" href="http://www.english-to-go.com">';
     strFooter += '<IMG border="0" src="http://www.selfaccess.com/www/sa/images/etgs.gif" width="160" height="34"><BR>';
     strFooter += '<FONT class="stCopyright2">&copy 2006 English-To-Go Limited </FONT></A></TD></TR></table>';	
	 
var  strFooter_R1999 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 strFooter_R1999 += 'News articles © 1999 Reuters, used with permission. Not to be reproduced or ';
     strFooter_R1999 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 strFooter_R1999 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
     strFooter_R1999 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     strFooter_R1999 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';
	 
 var strFooter_R2000 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 strFooter_R2000 += 'News articles © 2000 Reuters, used with permission. Not to be reproduced or ';
     strFooter_R2000 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 strFooter_R2000 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
     strFooter_R2000 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     strFooter_R2000 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';
 
 var strFooter_R2001 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 strFooter_R2001 += 'News articles © 2001 Reuters, used with permission. Not to be reproduced or ';
     strFooter_R2001 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 strFooter_R2001 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
     strFooter_R2001 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     strFooter_R2001 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';
		 
		 var strFooter_R2002 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 strFooter_R2002 += 'News articles © 2002 Reuters, used with permission. Not to be reproduced or ';
     strFooter_R2002 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 strFooter_R2002 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
     strFooter_R2002 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     strFooter_R2002 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';

  var strFooter_R2003 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 		strFooter_R2003 += 'News articles © 2003 Reuters, used with permission. Not to be reproduced or ';
     	strFooter_R2003 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 		strFooter_R2003 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
    	strFooter_R2003 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     	strFooter_R2003 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';
 
 var strFooter_R2004 = '<p align="left"><font size="-2">© 2006 English-To-Go Limited. All rights reserved. '; 
	 		strFooter_R2004 += 'News articles © 2004 Reuters, used with permission. Not to be reproduced or ';
     	strFooter_R2004 += 'stored in any way without the permission of English-To-Go Ltd. ';
	 		strFooter_R2004 += '<a href="http://www.english-to-go.com">http://www.english-to-go.com</a>. &nbsp;';
    	strFooter_R2004 += 'English-To-Go and SelfAccess are the trade marks of English-To-Go Ltd. ';
     	strFooter_R2004 += 'Email: <a href="mailto:editor@selfaccess.com">editor@selfaccess.com</a> </font></p>';

 var strFreebar = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Go to the selfaccess home page"><strong>home</strong></a><font class="stLinks">|</font>';
     strFreebar += '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Tell us what you think of selfaccess."><strong>feedback</strong></a>';
	 	  
 var strNavbar = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Go to the selfaccess home page"><strong>home</strong></a><font class="stLinks">|</font>';
     strNavbar += '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Tell us what you think of selfaccess."><strong>feedback</strong></a><font class="stLinks">|</font>';
     strNavbar += '<a class="stLinks" href="../../blocks.htm" title="Go back to the main lessons page."><strong>lessons</strong></a><font class="stLinks">|</font>';
     strNavbar += '<a class="stLinks" href="../../ieltsB1.htm" title="Go back to the block menu."><strong>menu</strong></a>';   
 
 var strNavbar2 = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Go to the selfaccess home page"><strong>home</strong></a><font class="stLinks">|</font>';
     strNavbar2 += '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Tell us what you think of selfaccess."><strong>feedback</strong></a><font class="stLinks">|</font>';
     strNavbar2 += '<a class="stLinks" href="../../blocks.htm" title="Go back to the main lessons page."><strong>lessons</strong></a><font class="stLinks">|</font>';
     strNavbar2 += '<a class="stLinks" href="../../ieltsB2.htm" title="Go back to the block menu."><strong>menu</strong></a>';
 
 var strNavbar3 = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Go to the selfaccess home page"><strong>home</strong></a><font class="stLinks">|</font>';
     strNavbar3 += '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Tell us what you think of selfaccess."><strong>feedback</strong></a><font class="stLinks">|</font>';
     strNavbar3 += '<a class="stLinks" href="http://www.selfaccess.com/library.htm" title="Go back to the main lessons page."><strong>library</strong></a><font class="stLinks"></font>';
 
 var strNavbar4 = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Go to the selfaccess home page"><strong>home</strong></a><font class="stLinks">|</font>';
     strNavbar4 += '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Tell us what you think of selfaccess."><strong>feedback</strong></a><font class="stLinks">|</font>';
     strNavbar4 += '<a class="stLinks" href="../../blocks.htm" title="Go back to the main lessons page."><strong>lessons</strong></a><font class="stLinks">|</font>';
     strNavbar4 += '<a class="stLinks" href="../../ieltsB1.htm" title="Go back to the block menu."><strong>menu</strong></a>';   
 
 var strTable = '<table  cellspacing="0" cellpadding="0" border="1" bordercolor="#ffffff" width="120">';
     strTable += '<tr bordercolor="#0066cc" valign="top"><td bgcolor="#0066cc" align="center">';
	 strTable += '<font class="stText" color="#ffffff"><strong>Menu</strong></font>';
	 strTable += '</td></tr><tr bordercolor="#000000"><td align="center">' + strBlank ; 
 
 var strMenu; 
 var strVspacer = '<span class="menuspacer">&nbsp;&nbsp; <br> </span>';
 var strHomeA = '<a class="stLinks" href="http://www.selfaccess.com/index.htm" title="Return to the selfaccess home page." target="_top"><strong>Home</strong></a><br>' + strBlank;
 var strTeachersA = '<a class="stLinks" href="http://www.selfaccess.com/teachers.htm" title="Information for Teachers about IELTS." target="_top"><strong>Teachers</strong></a><br>' + strBlank;
 var strAboutA = '<a class="stLinks" href="http://www.selfaccess.com/about.htm" title="Information about selfaccess.com" target="_top"><strong>About</strong></a><br>' + strBlank;
 var strGuestbookA = '<a class="stLinks" href="http://www.selfaccess.com/vbpro/htdocs/guestbk/entries.html" title="Take a minute to fill in our guestbook." target="_top"><strong>Guestbook</strong></a><br>' + strBlank;
 var strFeedbackA = '<a class="stLinks" href="http://www.selfaccess.com/feedback.htm" title="Send us your feedback on selfaccess." target="_top"><strong>Feedback</strong></a><br>' + strBlank;
 var strContactsA = '<a class="stLinks" href="http://www.selfaccess.com/contacts.htm" title="Helpful contact addresses." target="_top"><strong>Contacts</strong></a><br>' + strBlank;
 var strLibraryA = '<a class="stLinks" href="http://www.selfaccess.com/library.htm" title="Go to the selfaccess lesson library." target="_top"><strong>Lessons</strong></a><br>' + strBlank;
 
 var strTail = '</td></tr></table>';
	 
 var strAboutI = '<font class="stLocked"><strong>About</strong></a></font><br>' + strBlank;
 var strFeedbackI = '<font class="stLocked"><strong>Feedback</strong></a></font><br>' + strBlank; 
 var strGuestbookI = '<font class="stLocked"><strong>Guestbook</strong></a></font><br>' + strBlank;
 var strHomeI = '<font class="stLocked"><strong>Home</strong></a></font><br>' + strBlank; 
 var strTeachersI = '<font class="stLocked"><strong>Teachers</strong></a></font><br>' + strBlank;
 var strContactsI = '<font class="stLocked"><strong>Contacts</strong></a></font><br>' + strBlank;
 var strLibraryI = '<font class="stLocked"><strong>Lessons</strong></a></font><br>' + strBlank;
 
 function CreateMenu(iPage) {
  switch(iPage) {
   case 0: // Main menu - all active.
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackA + strVspacer+ strTail;
   break;
   case 1: // Homepage menu.
    strMenu = strTable + strHomeI  + strLibraryA + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackA + strVspacer+ strTail;
   break;
   case 2: //Lessons menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackA + strVspacer + strTail;
   break;
   case 3: //Teachers menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersI  + strContactsA +  strGuestbookA + strFeedbackA + strVspacer + strTail;
   break;
   case 4: //About menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutI + strTeachersA  + strContactsA +  strGuestbookA + strFeedbackA  + strVspacer+ strTail;
   break;
   case 5: //Guestbook menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersA  + strContactsA + strGuestbookI + strFeedbackA  + strVspacer+ strTail;
   break;
   case 6: //Feedback menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackI + strVspacer + strTail;
   break;
   break;
   case 7: //Contacts menu
    strMenu = strTable + strHomeA + strLibraryA + strAboutA + strTeachersA  + strContactsI + strGuestbookA + strFeedbackA  + strVspacer + strTail;
   break;
   case 8: //Library menu
    strMenu = strTable + strHomeA + strLibraryI + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackA + strVspacer + strTail;
   break;
   case 9: //Beta menu
    strMenu = strTable + strHomeA + strLibraryI + strAboutA + strTeachersA  + strContactsA + strGuestbookA + strFeedbackA + strVspacer + strTail;
   break;
   default: strMenu = "";
  }
  document.write(strMenu);
 }
 
 var months=new Array(13);
 months[1]="January";
 months[2]="February";
 months[3]="March";
 months[4]="April";
 months[5]="May";
 months[6]="June";
 months[7]="July";
 months[8]="August";
 months[9]="September";
 months[10]="October";
 months[11]="November";
 months[12]="December";

 function SetDate(){
  	document.write('<right><font class="body" color=#ffffff>');
  	var time=new Date();
 	var day=time.getDate();
 	var lmonth= months[time.getMonth() + 1];
 	var year = time.getFullYear();
  	var DateStr = day + " " + lmonth + " " + year;
  	document.write(DateStr + "</font>");
 }
 
 function GetDate(){
  	var time=new Date();
 	var day=time.getDate();
 	var lmonth= months[time.getMonth() + 1];
 	var year = time.getFullYear();
  	var DateStr = day + " " + lmonth + " " + year;
	return DateStr;
 }