			function getX(node) {
				var x = 0;
				while(node.offsetParent) {
					x = x + node.offsetLeft;
					node = node.offsetParent;
				}
				return parseInt(x);
			}
			
			function getY(node) {
				var y = 0;
				while(node.offsetParent) {
					y = y + node.offsetTop;
					node = node.offsetParent;
				}
				return parseInt(y);
			}
		
			function getWidth(someObject){
				var width = 0;
		      if (someObject.style.width){
		         // alert('style.width: ' + someObject.style.width);
		         width = someObject.style.width;
		      }
		      if (someObject.style.pixelWidth){
		         // alert('style.pixelWidth: ' + someObject.style.pixelWidth);
		         width = someObject.style.pixelWidth;
		      }
		
		      if (someObject.offsetWidth){
		         // alert('.offsetWidth: ' + someObject.offsetWidth);
		         width = someObject.offsetWidth;
		      }
		
		      if (document.defaultView && document.defaultView.getComputedStyle) {
		         // alert('computedStyle: ' + document.defaultView.getComputedStyle(someObject,'').getPropertyValue('width'));
					width = document.defaultView.getComputedStyle(someObject,'').getPropertyValue('width');
		      }
		      return parseInt(width);
		   }
	
		   function getHeight(someObject) {
				var height = 0;
		      if (someObject.style.height){
		         height = someObject.style.height;
		      }
		      
		      if (someObject.style.pixelHeight){
		         height = someObject.style.pixelHeight;
		      }
		
		      if (someObject.offsetHeight){
		         height = someObject.offsetHeight;
		      }
		
		      if (document.defaultView && document.defaultView.getComputedStyle) {
					height = document.defaultView.getComputedStyle(someObject,'').getPropertyValue('height');
		      }
		      return parseInt(height);
		   }
	
		
			