Buttonscript+array+gallery function

Hi
Two questions regarding the Button-script part of this gallery.

-How can I display the elements of

var titel = new Array();

instead of the “Titel 1”, “Titel 2” etc contained in the titel_arr?

-Each released Button should load a different gallery:

th_Slider.setGal(thumbnails1, images1, 1);
th_Slider.setGal(thumbnails2, images2, 2); 
//etc. =total 6 Gallerys

How must this be done?

Thanks to everbody for a little help.

Complete code

_global.gal_root = this;
// Hauptebene der Galerie
var gal_root:MovieClip = this;
var titel = new Array();
//array  mit Titeln von allen Galerien
var images1 = new Array();
//grosse Bilder gallery1
var thumbnails1 = new Array();
//miniaturen gallery1
var info1 = new Array();
//Bildbezeichnungen gallery1
var images2 = new Array();
//grosse Bilder gallery2
var thumbnails2 = new Array();
//miniaturen gallery2
var info2 = new Array();
//Bildbezeichnungen gallery2
var images3 = new Array();
//grosse Bilder gallery3
var thumbnails3 = new Array();
//miniaturen gallery3
var info3 = new Array();
//Bildbezeichnungen gallery3
var images4 = new Array();
//grosse Bilder gallery4
var thumbnails4 = new Array();
//miniaturen gallery4
var info4 = new Array();
//Bildbezeichnungen gallery4
var images5 = new Array();
//grosse Bilder gallery5
var thumbnails5 = new Array();
//miniaturen gallery5
var info5 = new Array();
//Bildbezeichnungen gallery5
var images6 = new Array();
//grosse Bilder gallery6
var thumbnails6 = new Array();
//miniaturen gallery6
var info6 = new Array();
//Bildbezeichnungen gallery6
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success) {
 if (success) {
  for (i=0; i<this.firstChild.childNodes.length; i++) {
   //trace(this.firstChild.childNodes*.attributes.titel);
   titel.push(this.firstChild.childNodes*.attributes.titel);
   for (j=0; j<this.firstChild.childNodes*.childNodes.length; j++) {
    //trace(this.firstChild.childNodes*.childNodes[j].attributes.image);
    //trace(i +" / "+j);
    gal_root["thumbnails"+(i+1)].push(this.firstChild.childNodes*.childNodes[j].attributes.thumb);
    gal_root["images"+(i+1)].push(this.firstChild.childNodes*.childNodes[j].attributes.image);
    gal_root["info"+(i+1)].push(this.firstChild.childNodes*.childNodes[j].attributes.info);
   }
   gal_slider.slider1.mc1.onRelease();
  }
  //trace(info1);
  //trace(titel);
 }
};
my_xml.load("gallery.xml");
//###################################################
aktBtn = null;
// Referenz zum aktuellen Button
titel_arr = ["Titel1", "Titel2", "Titel3", "Titel4", "Titel5", "Titel6"];
gal_info.autoSize = "center";
for (var i = 1; i<=3; i++) {
 for (var k = 1; k<=titel_arr.length; k++) {
  var tempBtn = this.gal_slider["slider"+i]["mc"+k];
  tempBtn.titel = titel_arr[k-1];
  tempBtn.onRollOver = function() {
   if (!this.pressed) {
    gal_info.text = this.titel;
    this.gotoAndStop("over");
   }
  };
  tempBtn.onRollOut = tempBtn.onReleaseOutside=function () {
   if (!this.pressed) {
    gal_info.text = aktBtn.titel;
    this.gotoAndStop("out");
   }
  };
  tempBtn.onRelease = function() {
   if (!this.pressed) {
    gal_info.text = this.titel;
    aktBtn.gotoAndStop("up");
    // das aktuelle Btn auf normalzustand bringen
    aktBtn.pressed = false;
    this.gotoAndStop("press");
    this.pressed = true;
    aktBtn = this;
   }
   // dieses Btn als Aktuelles Btn speichern.
  };
  // if
 }
}
// for
delete tempBtn;
aktBtn = gal_slider.slider1.mc1;
gal_info.text = aktBtn.titel;