Notorious IE "Invalid Argument", line 4618 of jquery-1.4.2.js

Notorious IE "Invalid Argument", line 4618 of jquery-1.4.2.js

I'm turning up an IE "Invalid Argument" error which the browser traces to line 4618, char 4 of jquery-1.4.2.js

I know enough to determine that that line part of a function that does something to set styles of elements, but I can't figure out much more than that. 

The call I'm making is as follows: 
  1.    $evtthis.css({
  2.                                 position: 'absolute',
  3.                                 top: topVal
  4.                             });
I assume that the issue has to do with topVal. I'm able to trace it out and it is a number that is different for each div in the loop... so I'm not sure what I'm doing wrong... pasting complete script below. Please disregard the multitude of console.logs :{

  1.  <script type="text/javascript">
  2.                 /* <![CDATA[ */
  3.                     var j = jQuery.noConflict();
  4.                     // Find selection of all time period divs and place them beside one another
  5.                     var $myTimes = j('.timeperiod');
  6.                     var pOff;
  7.                     var topVal = 0;

  8.                     function fineTune(){

  9.                         // Set the width for the two event divs that have to be 2 timeperiods wide
  10.                         var colWidth = String(parseInt(j('.timeperiod').css('width').replace('px', ''), 10) * 2 - 10) + 'px';
  11.                         //console.log(colWidth);

  12.                         j('#sentencing, #trial').css('width', colWidth);
  13.                         // Reset z-index for these columns so that the widened divs show properly
  14.                         j('#ninemos').css('z-index', 1000);
  15.                         j('#sixmos').css('z-index', 1001);
  16.                         //alert('placeholder');
  17.                         // Dynamically place each event div vertically lower than the one preceding it
  18.                         var $events = j('.event');
  19.                         for (var y = 1; y < $events.length; y++) {
  20.                             alert('place div loop, y = '+y);
  21.                             //console.log('move event index ' + y);
  22.                             var evtLess = y - 1;
  23.                             var $evtprev = j('.event:eq(' + evtLess + ')');
  24.                             var $evtthis = j('.event:eq(' + y + ')');
  25.                             alert('place div loop, y = '+y);
  26.                             var $thisheight = parseInt($evtprev.css('height').replace('px', ''), 10);
  27.                             //console.log('$thisheight is ' + $thisheight);
  28.                             pOff = $evtprev.offset();
  29.                             topVal = pOff.top + $thisheight;
  30.                             console.log(topVal);
  31.                             //console.log(pOff);
  32.                             alert('place div loop, y = '+y);
  33.                             $evtthis.css({
  34.                                 position: 'absolute',
  35.                                 top: topVal
  36.                             });
  37.                         }

  38.                     }


  39.                     // Dynamically position all timeperiod divs beside the first div, so they line up horizontally
  40.                     function positionCols(){
  41.                         for (var z = 1; z < $myTimes.length; z++) {
  42.                             var oneLess = z - 1;
  43.                             var $prev = j('.timeperiod:eq(' + oneLess + ')');
  44.                             //console.log($prev);
  45.                             var $this = j('.timeperiod:eq(' + z + ')');
  46.                             var $thiswidth = parseInt($this.css('width').replace('px', ''),10);
  47.                             //console.log($thiswidth);
  48.                             pOff = $prev.offset();
  49.                             //console.log(pOff);
  50.                             //console.log(pOff);
  51.                             $this.css({
  52.                                 position: 'absolute',
  53.                                 left: pOff.left + $thiswidth + 10,
  54.                                 top: 5
  55.                             });
  56.                         }

  57.                         fineTune();
  58.                     }


  59.                     // Call positioning function on page load
  60.                     positionCols();
  61.                     // Reposition all timeperiod and event divs whenever the window is resized
  62.                     j(window).resize(function(){
  63.                         positionCols();

  64.                     });
  65.                     // Upon click of an event div, display the metadata that event contains
  66.                     j('.event').click(function(e){
  67.                         //console.log('event clicked');
  68.                         $this = j(this);
  69.                         var $myData = $this.metadata().descr;
  70.                         //console.log($myData);
  71.                         j('#dialog').html($myData).dialog({
  72.                             modal:true,
  73.                             width: 600,
  74.                             height: 220
  75.                         });
  76.                     });
  77.             /* ]]> */
  78.         </script>

Thanks for *any* assistance.
brokenindex