var i;
var j;
var tmp; 
for(i = 1; i <= 7; i++ ) {
	document.getElementById('m'+i).onmouseover = function() {
		j = this.id.substring(1);
		tmp = document.getElementById('m' + (parseInt(j)-1));
		if(tmp != null) {
			tmp.className = 'po';
		}
		
		
		tmpa = document.getElementById('m'+(parseInt(j)+1));
		if(tmpa != null) {
			tmpa.className = 'no';
		}
	}
	document.getElementById('m'+i).onmouseout = function(){
		tmp = document.getElementById('m' + (parseInt(j)-1));
		if(tmp != null) {
			tmp.className = '';
		}
		tmp = document.getElementById('m'+(parseInt(j)+1));
		if(tmp != null) {
			tmp.className = '';
		}
	}
}

