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('img01').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,'onarrow01','title01');
	showBall1(target,'onarrow03','title03');
	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,'onarrow0109','title0109');
}

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

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

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

function showLeftBall(target,target_children) {
	var locationStr = window.location+"";
	var childStr = locationStr.substring(locationStr.lastIndexOf('#')+1,locationStr.length);

	hiddenAllBall();
	if (target_children != '') {
		showImg(target_children);
	}
	if (target=='onarrow01') {
		showBall1('onarrow01','title01');
		if (childStr=='arrows01') showBall1('onarrow0101','title0101');
		if (childStr=='arrows02') showBall1('onarrow0102','title0102');
		if (childStr=='arrows03') showBall1('onarrow0103','title0103');
		if (childStr=='arrows04') showBall1('onarrow0104','title0104');
		if (childStr=='arrows05') showBall1('onarrow0105','title0105');
		if (childStr=='arrows06') showBall1('onarrow0106','title0106');
		if (childStr=='arrows07') showBall1('onarrow0107','title0107');
		if (childStr=='arrows08') showBall1('onarrow0108','title0108');
		if (childStr=='arrows09') showBall1('onarrow0109','title0109');

	} else if (target=='onarrow03') {
		showBall1('onarrow03','title03');

	} else if (target=='onarrow04') {
		showBall1('onarrow04','title04'); 

	} else if (target=='onarrow00') {
		showBall1('onarrow00','title00');

	} 
}
