Xml Portfolio

Hey all, i made a portfolio whit xml, and it has all gone well until now.

I got some different titles etc. Well just have a look :
http://www.intermediamakers.nl//test/Portfolio/Portfolio.swf

As you can seeif you switch between the titles, the thumbs start where the last one from the title before, and the last thumb he keeps cloning untill he is at the last thumb of the last image (detailhandel)

so i don’t know what i did wrong, it has to start at the first one, and it doesn’t need to clone…

Here is the action script

[xml]
var thumb_spacingx = 98;
var thumb_spacingy = 67;
var thumb_count = 0;
var rowcount = 0;
var rowcounter = 1;
var max = 4 * rowcounter;
var rowYcount = 1

function GeneratePortfolio(portfolio_xml){
var portfolioPictures = portfolio_xml.firstChild.childNodes;
for (var i = 0; i < portfolioPictures.length; i++){
if (portfolioPictures*.attributes.type == “auto”)

var currentPicture = portfolioPictures*;

var currentThumb_mc = menu_mc.createEmptyMovieClip(“thumbnail_mc”+i,i);

currentThumb_mc._x = thumb_count * thumb_spacingx;
thumb_count++;
currentThumb_mc.createEmptyMovieClip(“thumb_container”,0);
currentThumb_mc.thumb_container.loadMovie(currentPicture.attributes.thumb);

if ( rowcount == 3 ){
rowcount = rowcount - 3
rowYcount++;}

if ( thumb_count >= max ){
currentThumb_mc._x = rowcount * thumb_spacingx;
rowcount++;
currentThumb_mc._y = rowYcount * thumb_spacingy;}

currentThumb_mc.title = currentPicture.attributes.title;
currentThumb_mc.url = currentPicture.attributes.url;
currentThumb_mc.image = currentPicture.attributes.image;
currentThumb_mc.description = currentPicture.attributes.description;

currentThumb_mc.onRollOver = currentThumb_mc.onDragOver = function(){
info_txt.text = this.title;

}
currentThumb_mc.onRollOut = currentThumb_mc.onDragOut = function(){
info_txt.text = “”;
}
currentThumb_mc.onRelease = function(){
image_mc.loadMovie(this.image);
url_txt.htmlText = “<a href=’” + this.url + “’ target=’_blank’>” + this.description + “</a>”;
}
}
}

var portfolio_xml = new XML();
portfolio_xml.ignoreWhite = true;
portfolio_xml.onLoad = function(success){
if (success) GeneratePortfolio(this);
else trace(“Error loading XML file”);
}
portfolio_xml.load(“portfolio.xml”);

[/xml]

Can any one help me?