function setState(statevalue) {
var state = statevalue;
document.cookie = "state="+state;
}
function prepareAreas() {
	var areas = document.getElementsByTagName("area");
	for (var i = 0; i < areas.length; i++) {
		areas[i].onclick = function() {
			setState(this.getAttribute('title'));
		}
	}
}
function deleteCookie() {
var c = new Date();
   document.cookie = "state=1;expires="+c.toGMTString()+";"+";";
}

window.onload = function() {
	prepareAreas()
}
