
//-----------------------------------------------------------------------------------------------
//
//
//                 ****************************************************************
//                 *                                                              *
//                 *         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"');
				break ;
			case 1 :
				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"');
				break ;
			case 2 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.style.color = "#990000"');
				break ;
			case 3 :
				eval('link0.style.color = "#990000"');		
				eval('link1.style.color = "#990000"');
				eval('link2.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=nz2&menu2=0&content1=introduction.htm','About NEiTA');
			bLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=asg.htm','About ASG<br>Education Programs');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=cognition.htm','About Cognition<br>Education Trust');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=contact.htm','Contact us');
			break ;
		case 1 :
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=nominate.htm','How to Nominate');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=categories.htm','Awards Categories');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=eligibility.htm','Teacher Eligibility');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=process.htm','Selection Process');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=faq.htm','FAQs');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=news.htm','News');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=media.htm','Media Centre');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=privacy.htm','Privacy Statement');
			break ;
		case 2 :
			bLink('openLoginWindow();','Online<br>nomination form');
			bLink('openPortLogin()','Online<br>self portrait form');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=privacy.htm','Privacy Statement');
			break ;
		case 3 :
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=3&content1=regionals10-all.htm','2010');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=3&content1=summary.htm','Previous years');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=3&content1=media.htm','Media Centre');
			break ;
		default :
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=introduction.htm','About NEiTA');
			bLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=asg.htm','About ASG<br>Education Programs');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=cognition.htm','About Cognition<br>Education Trust');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=0&content1=contact.htm','Contact us');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=nominate.htm','How to Nominate');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=categories.htm','Awards Categories');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=eligibility.htm','Teacher Eligibility');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=process.htm','Selection Process');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=faq.htm','FAQs');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=news.htm','News');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=media.htm','Media Centre');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=1&content1=privacy.htm','Privacy Statement');
			bLink('openLoginWindow();','Online<br>nomination form');
			bLink('openPortLogin()','Online<br>self portrait form');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=3&content1=regionals10-all.htm','2010');
			cLink('http://www.neita.com.au/index.asp?menu1=nz2&menu2=3&content1=summary.htm','Previous years');
			break ;
		}
	}
