
// divObject GetRelative Methods
// retrieves the real location of a relatively positioned layer
function divObjectGetRelativeX() {
	return ns ? this.css.pageX : this.ref.offsetLeft
}
function divObjectGetRelativeY() {
	return ns ? this.css.pageY : this.ref.offsetTop
}
divObject.prototype.getRelativeX = divObjectGetRelativeX
divObject.prototype.getRelativeY = divObjectGetRelativeY

// divObject GetContent Width/Height Methods
// retrieves the total width/height of the contents of the layer when they are not known
function divObjectGetContentWidth() {
	return ns? this.doc.width : this.ref.scrollWidth
}
function divObjectGetContentHeight() {
	return ns? this.doc.height : this.ref.scrollHeight
}
divObject.prototype.getContentWidth = divObjectGetContentWidth
divObject.prototype.getContentHeight = divObjectGetContentHeight


// provides fading for IE/win


divObject.prototype.fadeOut=divObjectFadeOut;

function divObjectFadeOut(duration){
	if (duration==null) duration="0.5"
	if(ie&&!isMac){	
		this.css.filter='blendTrans(duration='+duration+')';
		this.ref.filters[0].apply();
		this.hide();
		this.ref.filters[0].play();
		
	}
	else
	{
		this.hide();
	}
}


divObject.prototype.fadeIn=divObjectFadeIn;

function divObjectFadeIn(duration){
	if (duration==null) duration="0.5"
	if(ie&&!isMac){
		this.css.filter='blendTrans(duration='+duration+')';
		this.ref.filters[0].apply();
		this.show();
		this.ref.filters[0].play();
		
	}
	else
	{
		this.show();
	}
}

divObject.prototype.reposition=divObjectRePosition;

function divObjectRePosition(deltaX){

	if(ie5_5 || ie6|| ie5  & !isMac)
	{
		this.css.filter='blendTrans(duration=0.6)';
		this.ref.filters[0].apply();
		this.moveTo(this.x+deltaX,this.y)
		this.ref.filters[0].play();
	}
	else
	{
		var newX=parseInt(this.x)+parseInt(deltaX)
		this.moveTo(newX,parseInt(this.y))
	}

	
}