//moveTo V1.1
//7th July 2000
//ben.cotton@oyster.co.uk

//ammended 26 feb 2001
//ben.howey@oyster.co.uk

function divObjectMoveTo(x,y) {
	if (x!=null) {
		this.x = x
		if (ns) this.css.left = this.x
		else this.css.pixelLeft = this.x
	}
	if (y!=null) {
		this.y = y
		if (ns) this.css.top = this.y
		else this.css.pixelTop = this.y
	}
}

divObject.prototype.moveTo = divObjectMoveTo

//extension to moveTo, fixes some probs in IE

function divObjectMoveTo2(x,y) {
	//should only be used on elements with a posTop (in IE)
	var iChangeY
	var iChangeX
	
	if (x!=null) {
		if (ns) this.css.left = x
		else{
			iChangeX = x - this.x
			this.ref.style.posLeft = this.ref.style.posLeft + iChangeX
		}
		this.x = x
	}
	if (y!=null) {
		if (ns) this.css.top = y
		else{
			iChangeY = y - this.y
			this.ref.style.posTop = this.ref.style.posTop + iChangeY
		}
		this.y = y
	}
}

divObject.prototype.moveTo2 = divObjectMoveTo2
