$(document).ready(function(){
	$("li.page-item-9 a").parent().append("<span class=\"arrow links\"><img src=\"http://s7p.net/delta/wp-content/themes/deltadesign/images/arrow.png\" width=\"10\" height=\"10\" /></span>");
	$("li.page-item-11 a").parent().append("<span class=\"arrow blog\"><img src=\"http://s7p.net/delta/wp-content/themes/deltadesign/images/arrow.png\" width=\"10\" height=\"10\" /></span>");
	$("li.page-item-43 a").parent().append("<span class=\"arrow projects\"><img src=\"http://s7p.net/delta/wp-content/themes/deltadesign/images/arrow.png\" width=\"10\" height=\"10\" /></span>");

// {queue:false, duration:600, easing: 'easeOutBounce'}

$(".page-item-11 a").mouseover(function(){
	var position = $("#blogmenu").css("top");
	var closed = "-325px";
	if (position == closed) {
		// Close the others
		$("#projectsmenu").animate( { top:"-325px" }, 0);
		$("#projectcontents").animate( { height:"0px" }, {queue:false, duration:0, easing: 'easeOutBounce'});

		$("#linksmenu").animate( { top:"-230px" }, 0);
		$("#linkcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});

		$("#blogmenu").animate( { top:"-225px" }, {queue:true, duration:0});
		$("#blogcontents").animate( { height:"360px" }, {queue:true, duration:1200, easing: 'easeOutBounce'});
	}
	else {
		$("#blogmenu").animate( { top:"-325px" }, 0);
		$("#blogcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
	}
)

$("#blogcontents").mouseover(function() {
	$("#blogmenu").animate( { top:"-225px" }, 0);
	$("#blogcontents").animate( { height:"360px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
)

$("#blogcontents").mouseout(function() {
	$("#blogmenu").animate( { top:"-325px" }, 0);
	$("#blogcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)

$(".page-item-11 a").mouseout(function() {
	$("#blogmenu").animate( { top:"-325px" }, 0);
	$("#blogcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)



$(".page-item-43 a").mouseover(function(){
	var position = $("#projectsmenu").css("top");
	var closed = "-255px";
	if (position == closed) {
		// Close the others
		$("#blogmenu").animate( { top:"-325px" }, 0);
		$("#blogcontents").animate( { height:"0px" }, {queue:false, duration:0, easing: 'easeOutBounce'});

		$("#linksmenu").animate( { top:"-230px" }, 0);
		$("#linkcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});

		$("#projectsmenu").animate( { top:"-200px" }, {queue:true, duration:0});
		$("#projectcontents").animate( { height:"425px" }, {queue:true, duration:1200, easing: 'easeOutBounce'});
	}
	else {
		$("#projectsmenu").animate( { top:"-255px" }, 0);
		$("#projectcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
	}
)

$("#projectcontents").mouseover(function() {
	$("#projectsmenu").animate( { top:"-200px" }, 0);
	$("#projectcontents").animate( { height:"425px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
)

$("#projectcontents").mouseout(function() {
	$("#projectsmenu").animate( { top:"-255px" }, 0);
	$("#projectcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)

$(".page-item-43 a").mouseout(function() {
	$("#projectsmenu").animate( { top:"-255px" }, 0);
	$("#projectcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)



$(".page-item-9 a").mouseover(function(){
	var position = $("#linksmenu").css("top");
	var closed = "-230px";
	if (position == closed) {
		// Close the others
		$("#projectsmenu").animate( { top:"-325px" }, 0);
		$("#projectcontents").animate( { height:"0px" }, {queue:false, duration:0, easing: 'easeOutBounce'});

		$("#blogmenu").animate( { top:"-325px" }, 0);
		$("#blogcontents").animate( { height:"0px" }, {queue:false, duration:0, easing: 'easeOutBounce'});

		$("#linksmenu").animate( { top:"-180px" }, {queue:true, duration:0});
		$("#linkcontents").animate( { height:"325px" }, {queue:true, duration:1200, easing: 'easeOutBounce'});
	}
	else {
		$("#linksmenu").animate( { top:"-230px" }, 0);
		$("#linkcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
	}
)


$("#linkcontents").mouseover(function() {
	$("#linksmenu").animate( { top:"-180px" }, 0);
	$("#linkcontents").animate( { height:"325px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
	}
)

$("#linkcontents").mouseout(function() {
	$("#linksmenu").animate( { top:"-230px" }, 0);
	$("#linkcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)

$(".page-item-9 a").mouseout(function() {
	$("#linksmenu").animate( { top:"-230px" }, 0);
	$("#linkcontents").animate( { height:"0px" }, {queue:false, duration:1200, easing: 'easeOutBounce'});
}
)

});
