
﻿
function select(item)
{$('div.subitem').hide();$("div.subitem#child"+item).show();$("div.parent ul li").removeClass("mn_active");$("div.parent ul li#pli"+item).addClass("mn_active");$('#nav a').removeClass("mn_hover");}
$(document).ready(function(){$("a.postcontent").click(function(){$("div.more_postcontent").show();});$("span.postcontent").click(function(){$("div.f_more_postcontent").show();});$("div.more_postcontent").mouseout(function(){$(this).hide();});$("div.more_postcontent").mousemove(function(){$(this).show();});$("div.f_more_postcontent").mouseout(function(){$(this).hide();});$("div.f_more_postcontent").mousemove(function(){$(this).show();});$('#nav a').hover(function(){select($(this).attr("id"));$(this).addClass("mn_hover");clearInterval(auto_menu);});$("div.child a").hover(function(){clearInterval(auto_menu);});$("div.child a").mouseout(function(){auto_menu=setInterval("backToSelected()",9000);});$('#nav a').mouseout(function(){auto_menu=setInterval("backToSelected()",9000);$(this).addClass("mn_hover");});});function backToSelected()
{if($("div.parent ul li#pli"+selectedItem).attr("class")!="mn_active")
{select(selectedItem);$("#nav a#"+selectedItem).addClass("mn_hover");}
else clearInterval(auto_menu);}
