		function loadMenu() {
			$('#nojs').remove();
			$('.menu li').hover(function () {
				$(this).children('ul').css({ opacity: 0, display: "block" });
				$(this).children('ul').animate({
					opacity: 1
				});
			}, function () {
				$(this).children('ul').animate({
					opacity: 0
				}, function f() {
					$(this).css({ display: "none" });
				});
			});
		}

		function animatePlane() {
		    if (typeof(window.planeTxt) !== 'undefined') {
		        var container = $("<div class='planeHolder'></div>");
                var txt = decodeURIComponent(planeTxt);
                var div= null;
                while(txt.indexOf('+') > -1){
                    txt = txt.replace("+", " ");
                }
		        div = $("<div id='plane' class='plane'>" + txt + "</div>");
		        container.append(div);
		        $("body").append(container);
		        div.animate({
		            left: ($(window).width())
		        }, 30000, function () {
		            div.remove();
		            container.remove();
		        });
		    }
		}

		// Called onload
		$(function () {
			loadMenu();
			animatePlane();
		});
