var shown=undefined;
function menu_show(node){
$(node).find('>ul').show('slow');
if (shown)
$(shown).find('>ul').hide('slow');
shown=node;
}
$(document).ready(function(){
if ((a=$("div.rubriques a.on").eq(0)).length){
a.parents('li').eq(0).siblings('li').show().find('>ul').hide();
shown = a.parents('li').get(0);
}
else
$("div.rubriques >ul>li>ul").hide();
t=null;
$("div.rubriques>ul>li").hover(function(){$(this).addClass('hover');
if (t) {clearTimeout(t);t=null;}
me = this;
if (me!=shown)
t=setTimeout(function(){menu_show(me);},300);
},function(){
if (t) {clearTimeout(t);t=null;}
$(me).removeClass('hover');}
);
});
