	var curTabMenu = null;
	$(document).ready( function() {
		$('#tabs_nav').each( function() {
			var container = $(this);
			
			container.each( function () {
				$(this).find("li.mainMenuItem").each ( function() {
					if ($(this).children("ul").size() > 0) {
						$(this).bind("mouseover", function () {
							clearTimeout();
							if (curTabMenu != null) {
								hideMenu();
							}
							$(this).children("ul").css("display", "block");
						});
						$(this).bind("mouseout", function () {
							curTabMenu = $(this).children("ul");
							window.setTimeout(hideMenu, 300);
							//$(this).children("ul").css("display", "none");
						});
						
						$(this).children("ul").children("li").each( function() {
							$(this).bind("mouseover", function() {
								$(this).css("background", "#ededed");
							});
							$(this).bind("mouseout", function() {
								$(this).css("background", "#fff");
							});
						});
					}
				});
			});
		});
	});	
	
	function hideMenu(obj) {
		if (curTabMenu != null) {
			curTabMenu.css("display", "none");
			curTabMenu = null;
		}
	}



// JavaScript Document
