//Engineering Navigation//////////////////////////////////////////////////////////////

function show(id){
	hiddenImg();
	if (document.all){
		if (document.all[id]) {
			if(document.all[id].style.display == 'none'){
				document.all[id].style.display = '';
			} else {
				document.all[id].style.display = 'none';
			}
		}
	} else if (document.getElementById){
		if(document.getElementById(id).style.display == 'none'){
			document.getElementById(id).style.display = 'block';
		} else {
			document.getElementById(id).style.display = 'none';
		}
	} else if(document.layers) {
		if(parseInt(id + 1)){
			ditem = id + 1;
		} else {
			ditem = document.WM.hirelist.names[id];
		}
	}
}

function hiddenImg() {
// IE
/*
	document.getElementById('img01').style.display = 'none';
	document.getElementById('img02').style.display = 'none';
	document.getElementById('img03').style.display = 'none';
*/
// Netscape
	document.getElementById('img01').style.display = 'none';
	document.getElementById('img02').style.display = 'none';
	document.getElementById('img03').style.display = 'none';
}

function showBall1(target, compare, titletarget) {
	if (target == compare) {
/* IE
		document.getElementById(target).style.visibility='visible';
		document.getElementById(titletarget).style.color='#000000';
*/
/* Netscape */
		document.getElementById(target).style.visibility='visible';
		document.getElementById(titletarget).style.color='#000000';

	} else {
/* IE
		document.getElementById(compare).style.visibility='hidden';
		document.getElementById(titletarget).style.color='#000000';
*/
// Netscape
		document.getElementById(compare).style.visibility='hidden';
		document.getElementById(titletarget).style.color='#000000';
	}
}

function showMiniTitle1(target, compare) {
	if (target == compare) {
/* IE 			document.getElementById(target).style.color='#ee82ee'; */
/* Netscape */	document.getElementById(target).style.color='#ee82ee';
	} else {
/* IE
		document.getElementById(compare).style.color='#000000'; */
//Netscape
		document.getElementById(compare).style.color='#000000';
	}
}

function showBall(target)  {
	showBall1(target,'onarrow01','title01');
	showBall1(target,'onarrow02','title02');
	showBall1(target,'onarrow03','title03');
	showBall1(target,'onarrow04','title04');
	showBall1(target,'onarrow05','title05');
	showMiniBall('','');
}


function showMiniBall(parent, target)  {
	if (parent != '')
		showBall( parent );
	showBall1(target,'onarrow0101','title0101');
	showBall1(target,'onarrow0102','title0102');
	showBall1(target,'onarrow0103','title0103');
	showBall1(target,'onarrow0104','title0104');
	showBall1(target,'onarrow0105','title0105');
	showBall1(target,'onarrow0106','title0106');
	showBall1(target,'onarrow0107','title0107');
	showBall1(target,'onarrow0108','title0108');
	
	showBall1(target,'onarrow0201','title0201');
	showBall1(target,'onarrow0202','title0202');

	showBall1(target,'onarrow0301','title0301');
	showBall1(target,'onarrow0302','title0302');
	showBall1(target,'onarrow0303','title0303');
	showBall1(target,'onarrow0304','title0304');
}

function reloadPage() {
	var frm = window.parent.frames;
	var frmString = "";
	for (i=0; i<frm.length; i++) {
		if (frm(i).name == "right") {
			frm(i).reload();
    		alert(frm(i).name);
		}
    }
    	
}

function startShowBall(num) {
	if (num.length==2) {
		if ((num=="01")||(num=="02")||(num=="03")) {
				show('img' + num);

		} else {
				hiddenImg();
		}
		showBall('onarrow' + num);
		
	} else if (num.length==4) {
		nums=num.substring(0,2);
		if ((nums=="01")||(nums=="02")||(nums=="03")) {
				show('img' + nums);

		} else {
				hiddenImg();
		}
		showMiniBall('onarrow' + nums,'onarrow' + num);
	}
}
