$(document).ready(function(){
  // Your code here...
  
  //////////Rollover & Swap
		$('#mainMenu li').find('a').each(function () {
			var $img = $('img.hover', this).css("opacity", "0");
			var $img = $('img.hover', this).css("display", "block");
			$(this).hover(function () {
				$img.stop().fadeTo(350, 1);
			}, function () {
				$img.stop().fadeTo(450, 0);
			});
		});	

	////////////////////////
	$("#mainMenu ul ul ").css('opacity', 0);
	$("#mainMenu ul ul ").css({display: "none"}); // Opera Fix
	$("#mainMenu li").hover(function(){
			$(this).find('ul:first').css({visibility: "visible",display: "none"}).animate({ 
			"height": "toggle",
			opacity: 1      
		  }, 300 );
			},function(){
			$(this).find('ul:first').css({visibility: "hidden"}).animate({ 
			"height": "toggle",
			opacity: 0      
		  }, 200 );
			});
			
	//////////Print me me me...
		$("#print").click(function(){
			window.print();
		});
		
	
			
	//////////Little bubble falling from the sky
		$("#bubble-fr").css('opacity', 0);
		$("#soon-fr").hover(function(){
			$("#bubble-fr")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({top: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-fr").stop()
			.animate( { opacity:0 }, {duration:500 })
			.animate({top: "-45px"},{duration:1});
		});
		$("#bubble-bottom-fr").css('opacity', 0);
		$("#soon-bottom-fr").hover(function(){
			$("#bubble-bottom-fr")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({bottom: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-bottom-fr").stop()
			.animate({ opacity:0 }, {queue:false, duration:500}/*, complete: function(){$(this).css(display, "none");} }*/)
			.animate({bottom: "-45px"}, {queue:false, duration:500, complete: function(){$(this).css({display: "none"});} });
		});
		
		$("#bubble-en").css('opacity', 0);
		$("#soon-en").hover(function(){
			$("#bubble-en")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({top: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-en").stop()
			.animate( { opacity:0 }, {duration:500 })
			.animate({top: "-45px"},{duration:1});
		});
		
		$("#bubble-bottom-en").css('opacity', 0);
		$("#soon-bottom-en").hover(function(){
			$("#bubble-bottom-en")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({bottom: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-bottom-en").stop()
			.animate({ opacity:0 }, {queue:false, duration:500}/*, complete: function(){$(this).css(display, "none");} }*/)
			.animate({bottom: "-45px"}, {queue:false, duration:500, complete: function(){$(this).css({display: "none"});} });
		});
		
		$("#bubble-cn").css('opacity', 0);
		$("#soon-cn").hover(function(){
			$("#bubble-cn")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({top: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-cn").stop()
			.animate( { opacity:0 }, {duration:500 })
			.animate({top: "-45px"},{duration:1});
		});
		$("#bubble-bottom-cn").css('opacity', 0);
		$("#soon-bottom-cn").hover(function(){
			$("#bubble-bottom-cn")
			.css({
				display: "block"
			})
			.animate( { opacity:1 }, { queue:false, duration:500 })
			.animate({bottom: "0px"},{ queue: false, duration:500});
		}, function(){
			$("#bubble-bottom-cn").stop()
			.animate({ opacity:0 }, {queue:false, duration:500}/*, complete: function(){$(this).css(display, "none");} }*/)
			.animate({bottom: "-45px"}, {queue:false, duration:500, complete: function(){$(this).css({display: "none"});} });
		});
		
		
  
});