rem: var cp = document.createElement("div"); var s = cp.style; s.position = "absolute"; s.right = s.bottom = s.width = s.height = "0px"; document.body.appendChild(cp); var br = Calendar.getAbsolutePos(cp); document.body.removeChild(cp); 
add: if (Calendar.is_ie5_mac) { var br = Calendar.getAbsolutePos(el); br.x = document.body.offsetWidth; br.y = document.body.offsetHeight; } else { var cp = document.createElement("div"); var s = cp.style; s.position = "absolute"; s.right = s.bottom = s.width = s.height = "0px"; document.body.appendChild(cp); var br = Calendar.getAbsolutePos(cp); document.body.removeChild(cp); } 
context: 	function fixPosition(box) {		if (box.x < 0)			box.x = 0;		if (box.y < 0)			box.y = 0;		var cp = document.createElement("div");		var s = cp.style;		s.position = "absolute";		s.right = s.bottom = s.width = s.height = "0px";		document.body.appendChild(cp);		var br = Calendar.getAbsolutePos(cp);		document.body.removeChild(cp);		if (Calendar.is_ie) {			br.y += document.body.scrollTop;			br.x += document.body.scrollLeft;		} else {			br.y += window.scrollY;			br.x += window.scrollX;		}		var tmp = box.x + box.width - br.x;		if (tmp > 0) box.x -= tmp;		tmp = box.y + box.height - br.y;		if (tmp > 0) box.y -= tmp;	};
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/748a78888fc9542bdab5bfcf7763e6d52744c0c7/calendar.js/clean/phpgwapi/js/jscalendar/calendar.js