I got this move div working with two buttons, up and down.
But problem was it keeps moving up on clicks
So I wanted to add a variable and 1 button, so if I click it checks if its "up or down" , if not moves up and sets variable.
Then on next click some again and moves down if up. Below my poor attempt at trying to code.. I am a designer really so appreciate any help.


Code:
<html>
<head>
	
<script type="text/javascript">

		
var menu = 0

function Menu_Up(d)
			{
			var menu = 1
			var obj = document.getElementById(d);
			var currentPosition = parseInt(obj.style.top)
			var amountToMove = -100

			obj.style.top = currentPosition+amountToMove+"pt";
			}


function Menu_Down(d)
			{
			var menu = 0
			var obj = document.getElementById(d);
			var currentPosition = parseInt(obj.style.top)
			var amountToMove = 100
			
			obj.style.top = currentPosition+amountToMove+"pt";
			}

function Menu_Up_down
			{
			if (menu == 0) {
      			Menu_Down();
			} else if (Menu == 1) {
      			Menu_up);
			} 
			

	</script>

</head>
 
<body  class="body">
       
      <div id="movingDiv" style="position:absolute; left:100pt; top:100pt; border:1px black outset; width:160px; text-align:center; background-color:white; font-weight:bold;"><a href="http://www.google.com" target="_blank">Google</a></div>
      
      <div style="position:absolute; top:200; left:20"><a href="javascript:Menu_Up_down('movingDiv')">MOVE UP</a></div>

      

       

 
    
</body>
</html>