/*
 Driver
 */
 
 /*Globale Einstellung der Geschwindigkeit bzw. Dauer*/
 var theSpeed = 700
 var NavNewPos = 300
 

 
 
function NaviStart() {
	speed = 2000
	easingKind = "easeOutBack"
	theEndposition = 100
	setTimeout(function(){
				$("#navigator").animate({
					top: theEndposition + "px"
			}, {
					duration: speed,
					easing: easingKind
		});
			}, 1);
	
};

function navControler(DivID1) {
		var currPosition = $(DivID1).position().top;
			theEndposition = currPosition*-1;
			speed = theSpeed
			easingKind = "easeOutBack"
			driveDown();
			return false;
};
 
function backToStart() {
			theEndposition = 0;
			speed = theSpeed
			easingKind = "easeOutBack"
			driveDown();
			return false;
};
 
function driveDown(){
	 	/*Funktionen zum Animieren des Navigators easeInOutQuad */
	 	$("#location").animate({
					top: theEndposition + "px"
			}, {
					duration: speed,
					easing: "easeInOutQuad"
		});
};
