Ext.onReady(function() {
	if(xmlPath){
	Ext.Ajax.request({
   		url: xmlPath,
   		success: onSuccess,
   		failure: onFail
	});
	}
	
	Ext.Ajax.on('requestcomplete', onRequestComplete, this);
	
	function onSuccess(p_ajax, p_fn){
		VideoListing.registerData(p_ajax.responseXML.firstChild, p_ajax.responseXML);
		//sendVideoToFlash(VideoListing.currentVideo.attributes[1].nodeValue);
	}
	
	function onFail(p_call, p_fn){
		//showProps("THERE WAS A PROBLEM LOADING THE XML :::: \n",p_call);
		alert("XML FAILED TO LOAD");
	}
	
	function onRequestComplete(p_conn, p_resp, p_options){
	}
	
	function showProps(p_str, p_obj){
		var str = "";
		for(var n in p_obj){
			if(n != "responseText"){
				str += "N :: "+n+" ::: "+p_obj[n]+"\n ";
			}
		}
		//console.log(p_str+str);
	}
	
});