Code:
imagesXML.onLoad = function() {
	images = this.firstChild.childNodes;
	for (var i = 0; i<images.length; i++) {
		imgPaths.push(images[i].attributes.path);
	}
	totalImages = imgPaths.length;
	autoSS = this.firstChild.attributes.slideshow == "true" ? 1 : 0;
	intervalSS = parseInt(this.firstChild.attributes.interval)*1000;
	galleryTitle = this.firstChild.attributes.title;
	client_txt.text = this.firstChild.childNodes[0].attributes.client;
	description_txt.text = this.firstChild.childNodes[0].attributes.description;
	state_txt.text = this.firstChild.childNodes[0].attributes.state;
	XMLLoaded = true;
};