
function GetMenu(GetA){
	
	$(GetA).parents("ul:first").children("li").removeClass('openDir');
	$(GetA).parents("ul:first").children("li").children("ul").hide(800);
	
	var Toggle = $(GetA).next().css("display");
	if (Toggle=="block"){
		$(GetA).next().hide(800);
		$(GetA).parent().removeClass('openDir');
	}else{
		$(GetA).next().show(800);
		$(GetA).parent().addClass('openDir');
	}
	
}

function OpenNav(GetID){
	$("#m_"+GetID).addClass('current');
	$("#m_"+GetID).parents("ul").css("display","block");
	$("#m_"+GetID).parents("li").addClass('openDir');
}


function closeBottom(){
	document.getElementById('bottomFlashIn').style.height="165px";
	document.getElementById('bottomFlashIn').style.marginTop="-95px";
}

$(document).ready(function(){
	$(".leftBar li").children("ul").parent().addClass('Dir');
	
	
	 $(".menu li").hover(function(){
	   ItemHeight	= (($('.menu',this).height())/2)-11;
	   ItemWidth = ($('.menu',this).parent().width());
	   $('.menu',this).css('margin-top', '-'+ItemHeight+'px');
	   $('.menu',this).css('margin-left', ItemWidth+'px');
	 });
	
	
	$(".bottomFlashIn").hover(function(){
		$(".bottomFlashIn").css("height","430px");
		$(".bottomFlashIn").css("margin-top","-360px");
	},function(){
		setTimeout('closeBottom()',1000);
	 });


});
