function BImage (id, imageURL) {
  if (document.layers)
    document[id].background.src = imageURL == 'none' ? null : imageURL;
  else if (document.all) {
    document.all[id].style.backgroundImage = imageURL == 'none' ? 'none' : 'url(' + imageURL + ')';
    document.all[id].style.visibility = 'visible';
  }
  else if (document.getElementById)
    document.getElementById(id).style.backgroundImage = imageURL == 
'none' ? 'none' : 'url(' + imageURL + ')';

return false;
}

function IdChan(style,id)
{
	var id_a = document.getElementById(id);
	id_a.className = style;
}			
var i = "";
var a = 1;

function click_img(img, i) {
	if (a < 2) { a=3; }
	else {}
		BImage ("bild", "image/"+img+"_"+a+".jpg")
		if (a == i) { a=1; }
		a++;
	} 
	
function e_auf(){document.write('<a href="mailto:'); }
function e_mit(){document.write('">');} 
function e_zu(){document.write('</a>');}
function email_ad() {var email = "&#111;&#102;&#102;&#105;&#99;&#101;"; var s6013 = "&#97;&#110;&#116;&#97;&#45;&#100;&#101;&#115;&#105;&#103;&#110;";     document.write(email+'&#64;'+s6013+'&#46;&#100;&#101;')}
function email() { e_auf(); email_ad();e_mit();email_ad();e_zu() }
