
//-----------------------------------------------------------------------------------------------
//
//
//                 ****************************************************************
//                 *                                                              *
//                 *         MODIFY THIS FILE ONLY (NOT sidemenu-code.js)         *
//                 *                                                              *
//                 ****************************************************************
//
//
// THIS FILE CONTAINS THE SIDEMENU OPTIONS DISPLAYED ON EACH PAGE IN THE WEBSITE.
//
// THE FIRST SECTION FORCES THE MENU ITEMS TO SHOW USING THE CORRECT COLORS AS INTERNET EXPLORER
// DOES NOT PICK THEM UP ATOMATICALLY ON PAGE LOAD.
//
// THE SECOND SECTION IS THE CODE THAT DISPLAYS THE SIDEMENU CHOSEN WHEN A PAGE LOADS.
//
//-----------------------------------------------------------------------------------------------
// SECTION ONE:
//
// IE does not set the menu colors on load, this code does it manually:
// Adjust the settings to match the menu opens you create:
//-----------------------------------------------------------------------------------------------

function set_menu(content)
	{
	if (dhtml == 'IE')
		{
		switch (content)
			{
			case 0 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				eval('link3.style.color = "#990000"');
				eval('link4.style.color = "#990000"');
				eval('link5.style.color = "#990000"');
				eval('link6.style.color = "#990000"');
				break ;
			case 1 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				break ;
			case 2 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				eval('link3.style.color = "#990000"');
				break ;
			case 3 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				eval('link3.style.color = "#990000"');
				eval('link4.style.color = "#990000"');
				eval('link5.style.color = "#990000"');
				break ;
			default:
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				eval('link3.style.color = "#990000"');
				eval('link4.style.color = "#990000"');
				eval('link5.style.color = "#990000"');
				eval('link6.style.color = "#990000"');
				eval('link7.style.color = "#990000"');
				eval('link8.style.color = "#990000"');
				eval('link9.style.color = "#990000"');
				eval('link10.style.color = "#990000"');
				eval('link11.style.color = "#990000"');
				eval('link12.style.color = "#990000"');
				eval('link13.style.color = "#990000"');
				eval('link14.style.color = "#990000"');
				eval('link15.style.color = "#990000"');
				break ;
			}
		}
	}

//-----------------------------------------------------------------------------------------------
// SECTION TWO:
//
// This code sets up the content for the side menu that is displayed on every page:
// Add or subtract the items as needed:
//-----------------------------------------------------------------------------------------------


function show_menu(show_sub,level)
	{
	switch (show_sub)
		{
		case 0 :
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=introduction.htm','Introduction');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=patron.htm','Patron\'s Message');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=chairman.htm','Chairman\'s Message');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=media.htm','Media Centre');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=news.htm','News');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=privacy.htm','Privacy Statement');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=Contact.htm','Contact Us');
			break ;
		case 1 :
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=1&content1=process.htm','Awards Process');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=1&content1=selection.htm','Teacher Selection');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=1&content1=nominate.htm','How To Nominate');
			break ;
		case 2 :
			bLink('openLoginWindow();','On Line<br>Nomination Form');
			bLink('openPortLogin();','On Line<br>Self Portrait Form');
			bLink('https://wic030u.server-secure.com/vs63858_secure/content/australia/email.asp?Type=nom','Nomination Password<br>Retrieval Form');
			bLink('https://wic030u.server-secure.com/vs63858_secure/content/australia/email.asp?Type=port','Self Portrait Password<br>Retrieval Form');
			break ;
		case 3 :
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=regionals09.htm','ASG State & Territory<br>Inspirational Teaching<br>Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=finalists-index09.htm','ASG Inspirational<br>Teaching Awards<br>Finalists');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=merits06.htm','ASG Community<br>Merit Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=regionals07.htm','NEiTA State & Territory<br>Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=profiles08-all.htm','NEiTA National Award<br>Recipients\'');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=summary.htm','Awards Recipients:<br>Past & Present');
			break ;
		default :
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=news.htm','News');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=introduction.htm','About');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=patron.htm','Patron\'s Message');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=chairman.htm','Chairman\'s Message');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=process.htm','Awards Process');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=selection.htm','Teacher Selection');
			cLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=nominate.htm','How To Nominate');			
			bLink('openLoginWindow();','On Line<br>Nomination Form');
			bLink('openPortLogin()','On Line<br>Self Portrait Form');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=regionals09.htm','ASG State & Territory<br>Inspirational Teaching<br>Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=finalists-index09.htm','ASG Inspirational<br>Teaching Awards<br>Finalists');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=merits06.htm','ASG Community<br>Merit Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=3&content1=regionals07.htm','NEiTA State & Territory<br>Awards');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=profiles08-all.htm','NEiTA National Award<br>Recipients');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=summary.htm','Awards Recipients:<br>Past & Present');
			bLink('http://www.neita.com.au/index.asp?menu1=aus2&menu2=0&content1=media.htm','<br><br>Media Centre');
			break ;
		}
	}
