// menue hover
Normal1 = new Image();
Normal1.src = "img/button_band.jpg";     /* erste Standard-Grafik */
Highlight1 = new Image();
Highlight1.src = "img/button_band_hover.jpg"; /* erste Highlight-Grafik */

Normal2 = new Image();
Normal2.src = "img/button_pics.jpg";     /* zweite Standard-Grafik */
Highlight2 = new Image();
Highlight2.src = "img/button_pics_hover.jpg"; /* zweite Highlight-Grafik */

Normal3 = new Image();
Normal3.src = "img/button_tourdaten.jpg";     /* dritte Standard-Grafik */
Highlight3 = new Image();
Highlight3.src = "img/button_tourdaten_hover.jpg"; /* dritte Highlight-Grafik */

Normal4 = new Image();
Normal4.src = "img/button_downloads.jpg";     /* dritte Standard-Grafik */
Highlight4 = new Image();
Highlight4.src = "img/button_downloads_hover.jpg"; /* dritte Highlight-Grafik */

Normal5 = new Image();
Normal5.src = "img/button_kontakt.jpg";     /* dritte Standard-Grafik */
Highlight5 = new Image();
Highlight5.src = "img/button_kontakt_hover.jpg"; /* dritte Highlight-Grafik */

Normal6 = new Image();
Normal6.src = "img/button_gb.jpg";     /* dritte Standard-Grafik */
Highlight6 = new Image();
Highlight6.src = "img/button_gb_hover.jpg"; /* dritte Highlight-Grafik */

//impressum:
button7= new Image();
button7.src = "img/button_impressum.jpg"
button8= new Image();
button8.src = "button_impressum_hover.jpg"

function Bildwechsel (Bildnr, Bildobjekt) {
  window.document.images[Bildnr].src = Bildobjekt.src;
}

/*
//zentriertes copyright
var x,y;
if (self.innerHeight) // all except Explorer
{
	x = self.innerWidth;
	y = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
	// Explorer 6 Strict Mode
{
	x = document.documentElement.clientWidth;
	y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
	x = document.body.clientWidth;
	y = document.body.clientHeight;
}

left = x/2;

left-=150;
document.write("\<!-- Last but not least: the copyright hint-->");
document.write("\<div style='position:absolute; width:300px; top:688px; left:");
document.write(left);
document.write("px;'>");
document.write("\<a href='http://www.sigma-stern.de' target='_blank' style='font-size:smaller; color:#5555BB'>Programmierung und CMS von &#931;* - Sigma-Stern.de<\/a>");
document.write("<\/div>");*/



	// lässt html-Elemente sanft verschwinden (dimmen)
    function fadeOut(id) {
        _fading(id, 0, 0);
    }
	
    // lässt sonstige Menü-Elemente verschwinden
    function fadeOutBut(but) {
	  for(i=1;i<7;i++) {
	  	if (i!=but) {
	  		var string='sub' + i;
			var item = document.getElementById(string);						
			item.style.visibility = "hidden";  
      	}
	  }	
    }
    
	 
    // lässt html-Elemente sanft einblenden
    function fadeIn(id) {
			document.getElementById(id).style.visibility = "visible";			
        	_fading(id, 0.1, 1);
    }
    
    // blendet ein, wartet 'delay' und blendet wieder aus
    function fadeInOut(id, delay) {
        window.setTimeout("fadeIn('"+id+"');", 1);
        window.setTimeout("fadeOut('"+id+"');", delay+1000);
    }
    
    function _fading(id, counter, direction) {
        var val = counter/10;
        var newVal = counter + 1;
        var item = document.getElementById(id);
        if (item!=null) {
            if (direction==0) {  // fade out
                val = 1-val;
                newVal = counter + 1;
            }
            val = Math.round(val*10)/10;
            if (val<=0.8 && val>=0) {
                item.style['opacity'] = val;
                item.style['-moz-opacity'] = val;
                item.style['filter'] = "alpha(opacity="+(val*100)+")";
                window.setTimeout("_fading('" + id + "', " + newVal + ", " + direction + ");", 70);
            }
        }
    }
	

