			$(document).ready(function(){
					$('#nav-wrapper').Draggable(
						{
							handle:	'div#move'
						}
					);
					
					$("#arrow a").click(function(event){
						event.preventDefault();
						$("#arrow").toggleClass("on");
						$("#dropdown-menu").toggleClass("on");
						$("#nav-wrapper").toggleClass("on");
					});
					
					$("#dropdown-menu").hover(
						function () {
							mouseAssign = 1;
	 					},
						function () {
							mouseAssign = 2;
						}
					);
					
					$("html").click(function () {
						if (mouseAssign == 1) {
						}
						if (mouseAssign == 2) {
							$("#arrow").removeClass("on");
							$("#dropdown-menu").removeClass("on");
							$("#nav-wrapper").removeClass("on");
							mouseAssign = 0;
						}
					});
			});