// The IE 4.x and 5.x DOM Object
//
//*************************************************************************************
function ie_object(obj) {
	this.css2 = obj;
	this.name = obj.id;
	this.objResizeBy = domResizeBy;
	this.objHide = domHide;
	this.objShow = domShow;
	this.objDisplay = domDisplay;
	this.objGetLeft = domGetLeft;
	this.objGetPageLeft = ieGetPageLeft;
	this.objGetTop = domGetTop;
	this.objGetPageTop = ieGetPageTop;
	this.objSetTop = domSetTop;
	this.objSetLeft = domSetLeft;
	this.objMoveAbsolute = domMoveAbsolute;
	this.objMoveRelative = domMoveRelative;
	this.objGetWidth = domGetWidth;
	this.objGetHeight = ieGetHeight;
	this.objSetHeight = domSetHeight;
	this.objSetWidth = domSetWidth;
	this.objSetZIndex = domSetZIndex;
	this.objGetZIndex = domGetZIndex;
	this.objSetClipRect = domSetClipRect;
	this.objGetClipRect = domGetClipRect;
	this.objGetClipLeft = domGetClipLeft;
	this.objGetClipRight = domGetClipRight;
	this.objGetClipTop = domGetClipTop;
	this.objGetClipBottom = domGetClipBottom;
	this.replace_html = ieReplaceHTML;
	this.objReplaceHTML = ieParamReplaceHTML;
	this.objReplaceText = domReplaceText;
	this.objGetVisibility = domGetVisibility;
}



// The IE Object Implementations
//
//*************************************************************************************


// get element's page left position.
function ieGetPageLeft()
{
	var x = 0;
	var obj;
	
	obj = this.css2;
	do
	{
		x += obj.offsetLeft;
		obj = obj.offsetParent;
	}	while ( obj.nodeName !='BODY' )
	return x;
}
	
// get element's page top position.
function ieGetPageTop()
{
	var y = 0;
	var obj;
	
	obj = this.css2;
	do
	{
		y += obj.offsetTop;
		obj = obj.offsetParent;
	}	while ( obj.nodeName !='BODY' )
	return y;
}

// replace html (innerHTML)
function ieReplaceHTML(html_string) {
	this.css2.innerHTML = html_string;
} 

// replace html (with specific element)
function ieParamReplaceHTML(tag, clss, id, contents) {
    var strng = "<" + tag + " class='" + clss + "' id='" + id + "'>";
    strng = strng + contents;
    strng = strng + "</" + tag +  ">";
    this.css2.innerHTML = strng;
}

// get element's height using offsetHeight
function ieGetHeight() {
        var ht = parseInt(this.css2.offsetHeight);
	return ht;
}

