function objectOffset(Id) {
	var classObj = this ;
	
	var theLeft = 0 ;
	var theTop = 0 ;
	var newId = document.getElementById(Id);
	var theWidth = newId.offsetWidth ;
	var theHeight = newId.offsetHeight ;
	while (newId.offsetParent) {
		theTop += parseInt(newId.offsetTop,10) ;
		theLeft += parseInt(newId.offsetLeft,10) ;
		newId = newId.offsetParent ;
	}
	
	this.offsetLeft = theLeft ; 
	this.offsetTop = theTop ; 
	this.offsetRight = theLeft + theWidth ; 
	this.offsetBottom = theTop + theHeight ; 
	this.offsetWidth = theWidth ; 
	this.offsetHeight = theHeight ; 
	
	this.getOffsetById = getOffsetById ;
	function getOffsetById() {
		return classObj ;
	}
	
}

