// JavaScript Document
function ky_abcContentObj ()
{
	var _meGlobal = "";
	var div_ele = null;
}

ky_abcContentObj.prototype.initialize = function (url, div_id , cmsURL, liveFoldeBaseUrl)
{
	var ref = window.location.toString();
	if (ref.indexOf(liveFoldeBaseUrl)== -1)
		url = cmsURL;
	this.div_id = div_id;
	this.content = new ky_loadJSONObj();
	this.content._meGlobal = this._meGlobal+".content";
	this.content.url = url;
	
	this.content.initialize();	
	this.xtimer = setInterval(this._meGlobal+".loadContent()" , 30);
}
ky_abcContentObj.prototype.loadContent = function ()
{
	if (this.content.loadDone) 
	{
		this.div_ele = document.getElementById(this.div_id);
		if (this.div_ele)
			clearInterval(this.xtimer);
		else
			return;
	}
	else
		return;
		
	this.div_ele.innerHTML = "";
	var cont = this.content.JSONData.HTML.htmlEntitiesDecode().replace('Â','');//Hardcoded ABC footer issue
	this.div_ele.innerHTML = cont;
}
