var footerActiveTab = [],
	footerIdTab = [],
	footerTime = [];

function footerTimeout()
{
	var l = footerActiveTab.length;
	for(k in footerActiveTab)
	{
		if (footerActiveTab[k] != null)
		{
			$(footerActiveTab[k]).children('ul:hidden').slideDown('fast');
			footerActiveTab[k] = null;
		}
	}
}

function footerMouseenter()
{
	footerActiveTab[this.id] = this;
	footerTime[this.id] = setTimeout('footerTimeout()', 600);
}

function footerMouseLeave()
{
	hide_id = this.id;

	footerActiveTab[hide_id] = null;
	if (footerTime[hide_id])
		clearTimeout(footerTime[hide_id]);
	$(this).find('ul:visible').slideUp('fast');
}

function collectFooterId(o)
{
	o.each(function(i, v){
		footerIdTab.push(v.id);
	});
}

$(function(){
	var oFooter = $('#footerContentTab div');
	
	collectFooterId( oFooter );
	oFooter.mouseenter(footerMouseenter);
	oFooter.mouseleave(footerMouseLeave);
});