
$(window).bind("load", function() {
	$(".box1").animate({left: 0, opacity: 1}, 500, function(){
		$(".box2, .box3, .box4").animate({opacity: 1}, 100);
		});

})

$(document).ready(function() {
	$(".box1, .box2, .box3, .box4").css("opacity", 0);
	$(".box1").css("left", "-500px");
	
	$(window).bind("resize", resizeWindow);
		function resizeWindow( e ) {
			var newWindowHeight = $(window).height();
			xPos = (newWindowHeight/2) - ($("#menues").height()/2);
			$("#menues").animate({top: (xPos)+"px"}, 300);
		}
	resizeWindow()

	/* menu */
	var ul11 = $("#menu1 ul");
	var ul11li = $("#menu1 ul li");
	if(ul11li.length > 0){
		ul11.find('li:last-child').addClass('lastli');
	}
	var defaults = {
		innerObj: "#menu1 ul",
		scrollType: "Y",
		velFactor: 50,
		safeAreaX: 50,
		safeAreaY: 50,
		intervalT: 10,
		useArrows: true,
		activedArrClass: '.blue-arrowActived'
		}
	$("#menu1").overflowMe(defaults);
});
