function ipsclass(){
	
		this.get_obj_leftpos=function(obj){
			var curleft=0;
			if(obj.offsetParent){
				while(obj.offsetParent){
					if(obj.id != 'container')	curleft+=obj.offsetLeft;
					obj=obj.offsetParent;
				}
			}
			else if(obj.x){
				curleft+=obj.x;
			}
			return curleft;
		};

		this.get_obj_toppos=function(obj){
			var curtop=0;
			if(obj.offsetParent){
				while(obj.offsetParent){
					curtop+=obj.offsetTop;
					obj=obj.offsetParent;
				}
			}
			else if(obj.y){
				curtop+=obj.y;
			}
			return curtop;
		};

		this.cancel_bubble=function(obj,extra){
			if(extra!==false){
				extra=true;
			}
			if(!obj||is_ie){
				if(extra){
					window.event.returnValue=false;
				}
				window.event.cancelBubble=true;
				return window.event;
			}
			else{
				obj.stopPropagation();
				if(extra){
					obj.preventDefault();
				}
				return obj;
			}
		};
/*		*/
		this.cancel_bubble_all=function(obj){
			return ipsclass.cancel_bubble(obj,true);
		};
		
		this.cancel_bubble_low=function(obj){
			return ipsclass.cancel_bubble(obj,false);
		};
		
}
