// JavaScript Document
//This will incorporate JQuery into the ESM site manager.


$(document).ready(function(){

	var catID = 0;
	var over = 0;
	var o;
	var kill = 0;

	/*
	$("#main_win").bind("mouseenter", function (){
		if( Number(catID) > 0){
			o.hide();
			catID = 0;
		}
	});
	*/
	
	$(".category")
	.bind("mouseenter", function (){
		kill = 1;
	})
	.bind("mouseleave", function (){
		if(kill == 1){
			$(this).hide();
			catID = 0;
			kill = 0;
		}
	});

	$(".left_nav_td a").bind("mouseenter", function(){
		
		if( Number(catID) > 0)
			o.hide();
			
		catID = $(this).attr("block");
		o = $("#" + catID);
		
		if( !o.is(':visible') )
			o.show();
	});
	
});