function showImgBall(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('img02').style.display = 'none';
	document.getElementById('img03').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,'onarrow00','title00');
	showBall1(target,'onarrow02','title02');
	showBall1(target,'onarrow03','title03');
	showMiniBall('','');
}


function showMiniBall(parent, target)  {
	if (parent != '')
		showBall( parent );
	showBall1(target,'onarrow0201','title0201');
	showBall1(target,'onarrow0202','title0202');
	showBall1(target,'onarrow0203','title0203');
	showBall1(target,'onarrow0304','title0304');
	showBall1(target,'onarrow0305','title0305');
	showBall1(target,'onarrow0306','title0306');
	showBall1(target,'onarrow0307','title0307');
	showBall1(target,'onarrow0308','title0308');
	showBall1(target,'onarrow0309','title0309');
	showBall1(target,'onarrow0310','title0310');
	showBall1(target,'onarrow0311','title0311');
}

function startShowBall(num) {
	if (num.length==2) {
		if ((num=="01")||(num=="02")||(num=="03")) {
				showImgBall('img' + num);

	} else {
				hiddenImg();
		}
		showBall('onarrow' + num);
		
	} else if (num.length==4) {
		nums=num.substring(0,2);
		if ((nums=="01")||(nums=="02")||(nums=="03")) {
				showImgBall('img' + nums);

		} else {
				hiddenImg();
		}
		showMiniBall('onarrow' + nums,'onarrow' + num);
	}
}
