rem: var previewPane = document.getElementById("portlet-mail-msgs-preview-pane"); var previewTitle = document.getElementById("portlet-mail-msgs-preview-pane-title"); 
context: 	scrollToSelected : function() {		var previewPane = document.getElementById("portlet-mail-msgs-preview-pane");		var previewTitle = document.getElementById("portlet-mail-msgs-preview-pane-title");		var element = Mail.lastSelected.row[1];				var paneTop = Coordinates.southeastOffset(previewTitle, true).y;		var paneBottom = paneTop + previewPane.offsetHeight;				var elTop = Coordinates.northwestOffset(element, true).y - previewPane.scrollTop;		var elBottom = elTop + element.offsetHeight;		if (elTop < paneTop) {			previewPane.scrollTop -= paneTop - elTop;		}				if (elBottom > paneBottom) {			previewPane.scrollTop += (elBottom - paneBottom);		}				//previewPane.scrollTop = 500;	},
meta: 10143	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10143/8e7d5a3d546d49d37d7604b66c2e60eed8620601/mail.js/buggy/portal-web/docroot/html/js/portlet/mail.js