My Code Not Working

My Code Not Working

  1. <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js'></script>
  2. <script type="text/javascript">
  3.    
  4. for (var i =0; i>=50; i++) {
  5. var pos=($("portfolio-items").eq(i).position.top)+($("portfolio-items").eq(i).height())-($("portfolio-items").eq(i+4).position.top);
  6. $("#div").eq(i+4).css("margin-top", pos);
  7. }

  8. </script>