
function IncludeControl () {
	
	var jump = new AnchorJump();
	
	this.objectList = document.body.getElementsByTagName("*");
	
	for (var items = 0; items < this.objectList.length; items++) {
		
		this.targetAtt = this.objectList[items].getAttribute(this.attName);
		
		if (this.targetAtt != null) {
			this.target = this.objectList[items];
			this.target.removeAttribute(this.attName);
			break;
		}
		
	}
	
	if (this.targetAtt != null) {
		
		this.request = new URLRequest(this.targetAtt);
		this.loader = new URLLoader(this.target, {name: IncludeControl, scope: this});
		this.loader.load(this.request);
		
		//iePNGFix comes from iePNGFix.js
		if (this.userAgent.getIEVer() < 7) new iePNGFix().update();
		
	}	
	
}

Class(IncludeControl);

IncludeControl.prototype.objectList = new Object();
IncludeControl.prototype.target = null;
IncludeControl.prototype.targetAtt = null;
IncludeControl.prototype.attName = "include";
IncludeControl.prototype.userAgent = new UADetector();
IncludeControl.prototype.request = new Object();
IncludeControl.prototype.loader = new Object();
IncludeControl.prototype.hash = false;
