//バルーンを表示する
function onOverFunc(balloonID,row){
	var target = document.getElementById(balloonID);

//バルーンを右側に表示する
	if(balloonID % row == 0){
		if (target.className == 'out'){ 
			target.className="overR";
			target.style.zIndex="1";
			}
			
	}
	else{
	//バルーンを左側に表示する
			if (target.className == 'out'){ 
			target.className="overL";
			target.style.zIndex="1";
			}
	}
}
//バルーンを非表示にする
function onOutFunc(balloonID){
	var target = document.getElementById(balloonID);
	if (target.className == 'overR' || 'overL'){ 
		target.className="out";
		target.style.zIndex="0";
		}
}

//バルーンを表示する
function onOverFunc2(balloonID,row){
	var target = document.getElementById("item" + balloonID);

//バルーンを右側に表示する
	if(balloonID % row == 0){
		if (target.className == 'out'){ 
			target.className="overR";
			target.style.zIndex="1";
			}
			
	}
	else{
	//バルーンを左側に表示する
			if (target.className == 'out'){ 
			target.className="overL";
			target.style.zIndex="1";
			}
	}
}
//バルーンを非表示にする
function onOutFunc2(balloonID){
	var target = document.getElementById("item" + balloonID);
	if (target.className == 'overR' || 'overL'){ 
		target.className="out";
		target.style.zIndex="0";
		}
}
