var class0
var class1
var class2
var dev0
var dev1
var dev2
var about0
var about1
var about2
var parent0
var parent1
var parent2
var incl0
var incl1
var remv0
var remv1

{
	class0=new Image();
	class0.src="Pictures/Menu_Images/Lessons_and_Exercises_Off.png";
	class1=new Image();
	class1.src="Pictures/Menu_Images/Lessons_and_Exercises_On.png";
	class2=new Image();
	class2.src="Pictures/Menu_Images/Lessons_and_Exercises_Select.png";   
	
	dev0=new Image();
	dev0.src="Pictures/Menu_Images/Forums_and_Literature_Off.png";
	dev1=new Image();
	dev1.src="Pictures/Menu_Images/Forums_and_Literature_On.png";
	dev2=new Image();
	dev2.src="Pictures/Menu_Images/Forums_and_Literature_Select.png"; 
	
	about0=new Image();
	about0.src="Pictures/Menu_Images/Links_Off.png";
	about1=new Image();
	about1.src="Pictures/Menu_Images/Links_On.png";
	about2=new Image();
	about2.src="Pictures/Menu_Images/Links_Select.png"; 
	
	parent0=new Image();
	parent0.src="Pictures/Menu_Images/Teaching_Resources_Off.png";
	parent1=new Image();
	parent1.src="Pictures/Menu_Images/Teaching_Resources_On.png";
	parent2=new Image();
	parent2.src="Pictures/Menu_Images/Teaching_Resources_Select.png"; 
}


// main nav functions

function navOn(imgName) {
	if (document.images) {
		if (document.images[imgName].src != eval(imgName + '2.src')) {
			document.images[imgName].src = eval(imgName + '1.src');
		}
	}
}

function navOff(imgName) {
	if (document.images) {
		if (document.images[imgName].src != eval(imgName + '2.src')) {
			document.images[imgName].src = eval(imgName + '0.src');
		}
	}
}

function navSelect(imgName) {
	if (document.images) {
		document.images[imgName].src = eval(imgName + '2.src');
	}
}


// util nav function

function utilSelect(navName) {
	if (document.getElementById) {
		document.getElementById(navName).style.color = '#666666';
		document.getElementById(navName).style.background = 'none';
		document.getElementById(navName).style.cursor = 'default';
	}
}


// footer nav function

function footerSelect(navName) {
	if (document.getElementById) {
		document.getElementById(navName).style.color = '#666666';
		document.getElementById(navName).style.background = 'none';
		document.getElementById(navName).style.cursor = 'default';
	}
}


// show/hide share links

function openShare() {
	if (document.getElementById) {
		if (document.getElementById('share')) {
			document.getElementById('share').style.display = 'block';
		}
		if (document.getElementById('share-l')) {
			document.getElementById('share-l').style.display = 'block';
		}
	}
}

function closeShare() {
	if (document.getElementById) {
		if (document.getElementById('share')) {
			document.getElementById('share').style.display = 'none';
		}
		if (document.getElementById('share-l')) {
			document.getElementById('share-l').style.display = 'none';
		}
	}
}

// show/hide feature bottom

function openBottom() {
	if (document.getElementById) {
		document.getElementById('featured-bottom-2').style.display = 'block';
		document.getElementById('featured-bottom-1').style.display = 'none';
	}
}

function closeBottom() {
	if (document.getElementById) {
		document.getElementById('featured-bottom-2').style.display = 'none';
		document.getElementById('featured-bottom-1').style.display = 'block';
	}
}


/*

// 2 main tabs

function select2MainTab(tabNum) {
	if (document.getElementById) {	
		for (i = 1; i <= 2; i++) {
			if ('main-tab-' + tabNum == 'main-tab-' + i) {
				document.getElementById('main-tab-' + i).className = 'main-tab-on';
				document.getElementById('main-info' + i).style.display = 'block';
				document.getElementById('main-tab-' + i).style.zIndex = '201';
				document.getElementById('main-tab-' + i + '-l').src = 'images/main-tab-' + i + '-on-l.gif';
			}
			else {
				document.getElementById('main-tab-' + i).className = 'main-tab-off';
				document.getElementById('main-info' + i).style.display = 'none';
				document.getElementById('main-tab-' + i).style.zIndex = '200';
				document.getElementById('main-tab-' + i + '-l').src = 'images/main-tab-' + i + '-off-l.gif';
			}
		}
	}
}


// 2 regular tabs

function select2Tab(tabNum) {
	if (document.getElementById) {	
		for (i = 1; i <= 2; i++) {
			if ('tab' + tabNum == 'tab' + i) {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-on-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-on-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-select';
				document.getElementById('tab' + i + '-info').style.display = 'block';
			}
			else {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-off-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-off-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-off';
				document.getElementById('tab' + i + '-info').style.display = 'none';
			}
		}
	}
}


// 3 regular tabs

function select3Tab(tabNum) {
	if (document.getElementById) {	
		for (i = 1; i <= 3; i++) {
			if ('tab' + tabNum == 'tab' + i) {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-on-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-on-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-select';
				document.getElementById('tab' + i + '-info').style.display = 'block';
			}
			else {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-off-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-off-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-off';
				document.getElementById('tab' + i + '-info').style.display = 'none';
			}
		}
	}
}


// 4 regular tabs

function select4Tab(tabNum) {
	if (document.getElementById) {	
		for (i = 1; i <= 4; i++) {
			if ('tab' + tabNum == 'tab' + i) {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-on-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-on-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-select';
				document.getElementById('tab' + i + '-info').style.display = 'block';
			}
			else {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-off-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-off-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-off';
				document.getElementById('tab' + i + '-info').style.display = 'none';
			}
		}
	}
}


// 5 regular tabs

function select5Tab(tabNum) {
	if (document.getElementById) {	
		for (i = 1; i <= 5; i++) {
			if ('tab' + tabNum == 'tab' + i) {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-on-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-on-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-select';
				document.getElementById('tab' + i + '-info').style.display = 'block';
			}
			else {
				document.getElementById('tab'+ i).style.background = 'url(images/tab-off-back.gif) top right no-repeat';
				document.getElementById('tab' + i + '-img').src = 'images/tab-off-l.gif';
				document.getElementById('tab' + i + '-a').className = 'tab-off';
				document.getElementById('tab' + i + '-info').style.display = 'none';
			}
		}
	}
}

*/


/* ADDED AFTR 2009-08-25 */

function grMenuOn(liName) {
	if (document.getElementById) {	
		if (document.getElementById(liName).className != 'gr-select') {
			document.getElementById(liName).className = 'gr-on';
		}
	}
}

function grMenuOff(liName) {
	if (document.getElementById) {	
		if (document.getElementById(liName).className != 'gr-select') {
			document.getElementById(liName).className = 'gr-off';
		}
	}
}

function grMenuSelect(liName) {
	if (document.getElementById) {	
		document.getElementById(liName).className = 'gr-select';
	}
}

function coMenuOn(liName) {
	if (document.getElementById) {	
		if (document.getElementById(liName).className != 'co-select') {
			document.getElementById(liName).className = 'co-on';
		}
	}
}

function coMenuOff(liName) {
	if (document.getElementById) {	
		if (document.getElementById(liName).className != 'co-select') {
			document.getElementById(liName).className = 'co-off';
		}
	}
}

function coMenuSelect(liName) {
	if (document.getElementById) {	
		document.getElementById(liName).className = 'co-select';
	}
}

function showMenu(menuName) {
	if (document.getElementById) {	
		document.getElementById(menuName).style.display = 'block';
	}
}

function hideMenu(menuName) {
	if (document.getElementById) {	
		document.getElementById(menuName).style.display = 'none';
	}
}

