$(function() {
	$(".dict-term").hover(function() {
		$(this).css("z-index","50");
		$(this).children(".dict-term-def").css("display","block");
		$(this).children(".dict-term-def").css("z-index","60");
	}, function() {		
		$(this).children(".dict-term-def").css("display","none");//children(".dict-term-def")
		$(this).children(".dict-term-def").css("z-index","0");
		$(this).css("z-index","0");
	});
});

window.onload = init;

function init()
{
	stripeAllTables();
}

function stripeTable(t)
{
	var i, odd = true;
	for(i = 0; i < t.rows.length; i++) {
		t.rows[i].className += odd ? ' odd' : ' even';
		odd = !odd;
	}
}

function stripeAllTables()
{
	var t = document.getElementsByTagName('TBODY');
	for(var i = 0; i < t.length; i++) {
		stripeTable(t[i]);
	}
}
