var ObjXMLResponse = Class.create({
	initialize:function(parmXMLRequest){
		this.xmlRequest = parmXMLRequest;
		this._getXmlCurrentShowing();
		this._populateHtmlCurrentShowing();
	}, // End constructor
	_getXmlCurrentShowing:function(){
		this.xmlFragment = this.xmlRequest.responseXML;
		this.nodeCurrentShowing = this.xmlFragment.getElementsByTagName('currentShowingText')[0];
		this.nodeXmlCurrentShowingText = this.nodeCurrentShowing.childNodes[0].nodeValue;
	}, // End instended private instance method _getXmlCurrentShowing
	_populateHtmlCurrentShowing:function(){
		this.nodeHtmlCurrentShowing = $$('.malaikaNextShowing h2')[0];
		this.nodeHtmlCurrentShowing.innerHTML = this.nodeXmlCurrentShowingText;
	} // End intended private instance method _populateHtmlCurrentShowing
	
});

var ObjXMLRequest = Class.create({
	initialize:function(parmXMLPath){
		this._AjaxRequest(parmXMLPath);
	}, // End constructor
	_AjaxRequest:function(parmXMLFilePath){
		new Ajax.Request(parmXMLFilePath, {
						 	method:'get', 
						 	onComplete:function(parmRequest){new ObjXMLResponse(parmRequest)}
						 });
	} // End intended private instance method
});



document.observe('dom:loaded', function(){
	/* create an instance of an XmlRequest Object */
	var XMLRequest = new ObjXMLRequest('xml/index.xml');
});
