var menu = {
	init: function() {
		this.bind();
	},
	bind: function() {
		var items = $("#menu td");
		
		$.each(items, function(i) {
			var c = i;
			$(this).bind("mouseenter",function() {
				var lnk = $(this).children("a");
				var off = $(lnk).offset();
				$("#submenu" + (c + 1)).css({top:off.top + 46,left:off.left + 0,display:"inline"})
			}).bind("mouseleave",function() {
				$("#submenu" + (c + 1)).css({display:"none"})
			});
		})
	}
}

$(function() {
	menu.init();
});
