window.onload = init;
function init() {
var m = new MainClass('a');
var d = document.getElementById("menu_01");
d.addEventListener("mouseover", m.method1, false);
}
function MainClass(a) {
MainClass.a = a;
}
MainClass.prototype = {
constructor: MainClass,
method1: function() {
console.log('a=', MainClass.a);
}
};