function getLabel(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[0].firstChild.nodeValue);
}
function getLink(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[1].firstChild.nodeValue);
}
function getWidth(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[2].firstChild.nodeValue);
}
function getHeight(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[3].firstChild.nodeValue);
}
function getPic(_arg1) {
return (baseNode.childNodes[_arg1].childNodes[4].firstChild.nodeValue);
}
function alphaIn(_arg1) {
if (_arg1.txt.txt._currentframe<9) {
_arg1.txt.txt.play();
}
}
function alphaOut(_arg1) {
_arg1.txt.txt.gotoAndStop(1);
}
function launchProject(_arg1) {
myURL = new String(("'gallery/popup"+_arg1.launchURL)+"'");
myHeight = new String(("'height="+_arg1.launchHeight)+",");
myWidth = new String(("width="+_arg1.launchWidth)+",");
getURL((((("javascript

penNewWindow("+myURL)+",'HMX',")+myHeight)+myWidth )+"toolbar=no,scrollbars=no')");
}
baseNode = featXML.firstChild;
var child = baseNode.firstChild;
while (child != null) {
numItems++;
child = child.nextSibling;
}
_root.gallery.createEmptyMovieClip("featuredProjec ts", 1);
featuredProjects._y = 6;
featuredProjects._visible = false;
i = 0;
while (i<numItems) {
featuredProjects.attachMovie("thumb", "thumb"+i, i);
myN = eval("featuredProjects.thumb"+i);
myN.hitArea = myN.hA;
myN.createEmptyMovieClip("pic", 1);
myN.createEmptyMovieClip("txt", 2);
myN.txt._y = -5;
myN.hA._visible = false;
myN.attachMovie("thumbLabel", "thumbLabel", 2);
myN.thumbLabel.txt = getLabel(i);
myN.thumbLabel._y = -33;
myN.thumbLabel._alpha = 0;
myPic = getPic(i);
myLabel = getLabel(i);
myN.pic.loadMovie("gallery/images/"+myPic, 1);
myN.txt.attachMovie("txt", "txt", 2);
myN.txt.txt.txt = myLabel;
myN.launchURL = getLink(i);
myN.launchWidth = getWidth(i);
myN.launchHeight = getHeight(i);
myN.onPress = function() {
};
i++;
}