   $(document).ready(function(){
   
	// Menu Button Effects
   
    jQuery(".nav_home").css("opacity", "0.5");
	jQuery(".nav_flag").css("opacity", "0.5");
   
   $(".nav_home").hover(
	  function () {
		$(this).fadeTo('fast', 1);
	  }, 
	  function () {
		$(this).fadeTo('slow', 0.5);
	});
	$(".nav_flag").hover(
	  function () {
		$(this).fadeTo('fast', 1);
	  }, 
	  function () {
		$(this).fadeTo('slow', 0.5);
	});
	// OverlayMenuJS
	
	$(function() {
				var $oe_menu		= $('#oe_menu');
				var $oe_menu_items	= $oe_menu.children('li.ext');
				var $oe_overlay		= $('#oe_overlay');
				var $oe_menu_all_children = $oe_menu.children('li');
				var $oe_menu_items_not = $oe_menu_all_children.not('li.ext');
				
                $oe_menu_items.bind('mouseenter',function(){
					var $this = $(this);
					$this.addClass('slided selected');
					$oe_menu_items.not('.slided').children('div').hide();
						$this.children('div').css('z-index','9999').stop(true,true).css('opacity','0.97').slideDown(200,function(){
						$this.removeClass('slided');
						//$(this).delay(1000).fadeTo('slow', '1');
					});
				}).bind('mouseleave',function(){
					var $this = $(this);
					$this.removeClass('selected').children('div').css('z-index','1');
					
				});

				$oe_menu.bind('mouseenter',function(){
					var $this = $(this);
					$oe_overlay.stop(true,true).fadeTo(200, 0.6);
					$this.addClass('hovered');
				}).bind('mouseleave',function(){
					var $this = $(this);
					$this.removeClass('hovered');
					$oe_overlay.stop(true,true).fadeTo(200, 0);
					$oe_menu_items.children('div').hide();
				});
				
				$oe_menu_items_not.bind('mouseenter',function(){
					
					$oe_menu_items.children('div').hide();
				});
				
            });

	//$('#oe_menu').children('li.ext').children('div').css('display','block');
	
});
