rem: e_dim = Position.cumulativeOffset($(this.options.get("popup_by"))); e_top = e_dim[1]; e_left = e_dim[0]; e_height = $(this.options.get("popup_by")).getDimensions().height; e_bottom = e_top + e_height; 
add: e_dim = Element.Methods.cumulativeOffset($(this.options.get("popup_by"))); e_top = e_dim[1]; e_left = e_dim[0]; e_height = $(this.options.get("popup_by")).getDimensions().height; e_bottom = e_top + e_height; 
context:   positionCalendarDiv: function() {    above=false;    c_pos = Position.cumulativeOffset(this.calendar_div); c_left = c_pos[0]; c_top = c_pos[1]; c_dim = this.calendar_div.getDimensions(); c_height = c_dim.height; c_width = c_dim.width;     w_top = window.f_scrollTop(); w_height = window.f_height();    e_dim = Position.cumulativeOffset($(this.options.get("popup_by"))); e_top = e_dim[1]; e_left = e_dim[0]; e_height = $(this.options.get("popup_by")).getDimensions().height; e_bottom = e_top + e_height;        if ( (( e_bottom + c_height ) > (w_top + w_height)) && ( e_bottom - c_height > w_top )) above=true;    left_px = e_left.toString() + "px";    top_px = (above ? (e_top - c_height ) : ( e_top + e_height )).toString() + "px";        this.calendar_div.style.left = left_px;  this.calendar_div.style.top = top_px;        this.calendar_div.setStyle({visibility:""});        // draw an iframe behind the calendar -- ugly hack to make IE 6 happy    if(navigator.appName=="Microsoft Internet Explorer") this.iframe = $(document.body).build("iframe", {className: "ie6_blocker"}, { left: left_px, top: top_px, height: c_height.toString()+"px", width: c_width.toString()+"px", border: "0px"})  },
meta: 9859	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9859/c07d56abc5e5def0d363792c603f81834fc80353/calendar_date_select.js/buggy/public/javascripts/calendar_date_select/calendar_date_select.js