// JavaScript Document
  $(document).ready(function(){
     $('#ex2').jqm({ajax: '@href', trigger: 'a.ex2trigger'});
     $(".logo").css('opacity',0);
        $(".logo_pict").css('opacity',0);
        $("#m_7").css('opacity',0);
        $("#m_6").css('opacity',0);
        $("#m_5").css('opacity',0);
        $("#m_4").css('opacity',0);
        $("#m_3").css('opacity',0);
        $("#m_2").css('opacity',0);
        $("#m_1").css('opacity',0);

        $("#main_bg_light").css('opacity',0);

        $("#m_7").css('width',0);
        $("#m_6").css('width',0);
        $("#m_5").css('width',0);
        $("#m_4").css('width',0);
        $("#m_3").css('width',0);
        $("#m_2").css('width',0);
        $("#m_1").css('width',0);

		$("body").ready(function() {
       		$(".main_bg_light").animate({opacity: "show"}, 2500);
       		$(".main_bg_light").animate({opacity: "hide"}, 2500);
       	});

        $(".logo").css('height', 200);
        $(".logo").animate({opacity: 1, height: 327}, 1250, function() {        $("#m_7").css('opacity',0.2);
        	$("#m_7").animate({opacity: 1, width: 100}, 50, function() {$("#m_6").css('opacity',0.2);
        	$("#m_6").animate({opacity: 1, width: 100}, 50,
        	function() {$("#m_5").css('opacity',0.2); $("#m_5").animate({opacity: 1, width: 100}, 50, function() {
        		$("#m_4").css('opacity',0.2);
        	$("#m_4").animate({opacity: 1, width: 100}, 50, function() {$("#m_3").css('opacity',0.2);
        	 $("#m_3").animate({opacity: 1, width: 200}, 50, function()
        	{$("#m_2").css('opacity',0.2); $("#m_2").animate({opacity: 1, width: 200}, 50,
			function() {$("#m_1").animate({opacity: 1, width: 200}, 50,
			function(){$(".logo_pict").animate({opacity: 1}, 1500)});}
        	);});});});});});
        } );
		$(".menu_top_txt_pos").hoverIntent({
				sensitivity: 1000,
				interval: 1,
				over: makeTall,
				timeout: 1,
				out: makeShort
			});

			function makeTall() {
				var id = this.id;
				var id_m = 'i_'+id.substr(2);
				var id = 'mb_'+id.substr(2);
				$('#'+id).css('opacity',0);
				$('#'+id).hide()
				$('#'+id).css('width',"125");
				$('#'+id_m).hide();
				$('#'+id).animate({opacity: 1, width: 168}, 50);
				$('#'+id_m).show();
				id = null;
			};
			function makeShort() {
				var id = this.id;
				var id_m = 'i_'+id.substr(2);
				var id = 'mb_'+id.substr(2);
				$('#'+id_m).hide();
				$('#'+id).animate({opacity: 0, width: 0}, 500);
				id = null;
			};
    });
