
//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() {
	document.getElementById('img03').style.display = 'none';
	document.getElementById('img04').style.display = 'none';
}
function showBall1(target, compare, titletarget) {

	if (target == compare) {
		document.getElementById(target).style.visibility='visible';
		document.getElementById(titletarget).style.color='#000000';
	} else {
		document.getElementById(compare).style.visibility='hidden';
		document.getElementById(titletarget).style.color='#000000';
	}
}
function showMiniTitle1(target, compare) {
	if (target == compare) {
		document.getElementById(target).style.color='#ee82ee';
	} else {
		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');
	showBall1(target,'onarrow06','title06');
	showMiniBall('','');
}

function showMiniBall(parent, target)  {
	if (parent != '')
		showBall( parent );
	showBall1(target,'onarrow0301','title0301');
	showBall1(target,'onarrow0302','title0302');
	showBall1(target,'onarrow0401','title0401');
	showBall1(target,'onarrow0402','title0402');
	showBall1(target,'onarrow0403','title0403');
	showBall1(target,'onarrow0404','title0404');
	showBall1(target,'onarrow0405','title0405');
	showBall1(target,'onarrow0406','title0406');
	showBall1(target,'onarrow0407','title0407');
	showBall1(target,'onarrow0408','title0408');
	showBall1(target,'onarrow0409','title0409');
	showBall1(target,'onarrow0410','title0410');
	showBall1(target,'onarrow0411','title0411');
	showBall1(target,'onarrow0412','title0412');
	showBall1(target,'onarrow0413','title0413');
	showBall1(target,'onarrow0414','title0414');
	showBall1(target,'onarrow0415','title0415');
	showBall1(target,'onarrow0416','title0416');
	showBall1(target,'onarrow0417','title0417');
	showBall1(target,'onarrow0418','title0418');
}
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);
		}
    }
}
/* mini size がある場合numを追加 */
function startShowBall(num) {
	if (num.length==2) {
		if ((num=="03")||(num=="04")) {
				show('img' + num);
		} else {
				hiddenImg();
		}
		showBall('onarrow' + num);
		
	} else if (num.length==4) {
		nums=num.substring(0,2);
		if ((nums=="03")||(nums=="04")) {
				show('img' + nums);
		} else {
				hiddenImg();
		}
		showMiniBall('onarrow' + nums,'onarrow' + num);
	}
}

