function popWindow(tin) {
	window.open(tin,'Image','height=520,width=770,resizable=1')
}
var menuTitle = function(tin) {
	var tag = tin;
	var child;
	var rollOut = function() {
		child.style.display = "block";
	}
	var rollIn = function() {
		child.style.display = "none";
	}
	this.setChild = function(tin) {
		child = tin;
		child.style.display = "none";
		tag.onmouseover = rollOut;
		tag.onmouseout = rollIn;
	}
}
var initialize = function(){
	handler = document.getElementsByTagName("div");
	var child,subchild,handle;
	for(var i=0;i<handler.length;i++) {
		if(handler[i].className == "menuitem") {
			handle = new menuTitle(handler[i]);
			child = handler[i].firstChild;
			while(child) {
				if(child.className == "m-big") {
					handle.setChild(child);
					child = child.firstChild;
				} else if(child.className == "m-main") {
					handle = new menuTitle(child);
					subchild = child.firstChild;
					while(subchild) {
						if(subchild.className == "m-sub") {
							handle.setChild(subchild);
							subchild = subchild.parentNode;
						}
						subchild = subchild.nextSibling;
					}
				}
				child = child.nextSibling;
			}
		}
	}
}
initialize();
