// Bildtausch
// Button anlegen
function button(imgPath_out, imgPath_over) {
	  this.over	= new Image()
	  this.out	= new Image()
	  this.over.src	= imgPath_over
	  this.out.src	= imgPath_out
}

// Vorausladen der Bilder
var	picture	= new Array()
var themePath = '/objects/';
function preload() {
	  picture["sec-nav-01"]	= new button(themePath + "sec-nav-01.gif", themePath + "sec-nav-01-o.gif")
	  picture["sec-nav-02"]	= new button(themePath + "sec-nav-02.gif", themePath + "sec-nav-02-o.gif")
	  picture["sec-nav-03"]	= new button(themePath + "sec-nav-03.gif", themePath + "sec-nav-03-o.gif")
	  picture["sec-nav-04"]	= new button(themePath + "sec-nav-04.gif", themePath + "sec-nav-04-o.gif")
	  picture["sec-nav-05"]	= new button(themePath + "sec-nav-05.gif", themePath + "sec-nav-05-o.gif")
	  picture["pri-nav-01"]	= new button(themePath + "pri-nav-01.gif", themePath + "pri-nav-01-o.gif")
	  picture["pri-nav-02"]	= new button(themePath + "pri-nav-02.gif", themePath + "pri-nav-02-o.gif")
	  picture["pri-nav-03"]	= new button(themePath + "pri-nav-03.gif", themePath + "pri-nav-03-o.gif")
	  picture["pri-nav-04"]	= new button(themePath + "pri-nav-04.gif", themePath + "pri-nav-04-o.gif")
	  picture["pri-nav-05"]	= new button(themePath + "pri-nav-05.gif", themePath + "pri-nav-05-o.gif")
	  picture["pri-nav-06"]	= new button(themePath + "pri-nav-06.gif", themePath + "pri-nav-06-o.gif")
	  picture["pri-nav-07"]	= new button(themePath + "pri-nav-07.gif", themePath + "pri-nav-07-o.gif")
	  picture["ref-nav-01"]	= new button(themePath + "ref-nav-01.jpg", themePath + "ref-nav-01-o.jpg")
	  picture["ref-nav-02"]	= new button(themePath + "ref-nav-02.jpg", themePath + "ref-nav-02-o.jpg")
	  picture["ref-nav-03"]	= new button(themePath + "ref-nav-03.jpg", themePath + "ref-nav-03-o.jpg")
	  picture["ref-nav-04"]	= new button(themePath + "ref-nav-04.jpg", themePath + "ref-nav-04-o.jpg")
	  picture["ref-nav-05"]	= new button(themePath + "ref-nav-05.jpg", themePath + "ref-nav-05-o.jpg")
	  picture["ref-nav-06"]	= new button(themePath + "ref-nav-06.jpg", themePath + "ref-nav-06-o.jpg")
	  picture["ref-nav-07"]	= new button(themePath + "ref-nav-07.jpg", themePath + "ref-nav-07-o.jpg")
	  picture["mi"]       	= new button(themePath + "mi-banner-03.gif", themePath + "mi-banner-03-o.gif")
}
preload();

// img-Bild tauschen
function changeImg(Id,Event) {
	  if (Event == 'over') {
		  document.images[Id].src	= picture[Id].over.src
	  }
	  if (Event == 'out') {
		  document.images[Id].src	= picture[Id].out.src
	  }
}
function StyleSwitch(Id, lId)
 {
  if (document.getElementById)
   {
        Element = document.getElementById(Id);
        lElement = document.getElementById(lId);
            if (Element.style.display == "none")
             {
                Element.style.display = "block";
        				lElement.style.backgroundImage = 'url(/objects/list-arrow-d.gif)';
             }
             else
             {
                Element.style.display = "none";
        				lElement.style.backgroundImage = 'url(/objects/list-arrow.gif)';
             }
    }
}
   