function changex(nr, x)
{

  //  alert(nr);
    document.getElementsByName(nr)[0].src = x;

}


function bt1()
{
document.bt1x.src="bt1r.gif";
}

function br1()
{
document.bt1x.src="bt1.gif";
}

function bt2()
{
document.bt2x.src="bt2r.gif";
}

function br2()
{
document.bt2x.src="bt2.gif";
}

function bt3()
{
document.bt3x.src="bt3r.gif";
}

function br3()
{
document.bt3x.src="bt3.gif";
}

function bt4()
{
document.bt4x.src="bt4r.gif";
}

function br4()
{
document.bt4x.src="bt4.gif";
}

function bt5()
{
document.bt5x.src="bt5r.gif";
}

function br5()
{
document.bt5x.src="bt5.gif";
}

function bt6()
{
document.bt6x.src="bt6r.gif";
}

function br6()
{
document.bt6x.src="bt6.gif";
}

function bt7()
{
document.bt7x.src="bt7r.gif";
}

function br7()
{
document.bt7x.src="bt7.gif";
}

function bt8()
{
document.bt8x.src="bt8r.gif";
}

function br8()
{
document.bt8x.src="bt8.gif";
}

function bt9()
{
document.bt9x.src="bt9r.gif";
}

function br9()
{
document.bt9x.src="bt9.gif";
}

function bt10()
{
document.bt10x.src="bt10r.gif";
}

function br10()
{
document.bt10x.src="bt10.gif";
}

function bt20()
{
document.bt20x.src="bt20r.gif";
}

function br20()
{
document.bt20x.src="bt20.gif";
}

function bt21()
{
document.bt21x.src="bt21r.gif";
}

function br21()
{
document.bt21x.src="bt21.gif";
}

function bt22()
{
document.bt22x.src="bt22r.gif";
}

function br22()
{
document.bt22x.src="bt22.gif";
}

function bt23()
{
document.bt23x.src="bt23r.gif";
}

function br23()
{
document.bt23x.src="bt23.gif";
}

function bt24()
{
document.bt24x.src="bt24r.jpg";
}

function br24()
{
document.bt24x.src="bt24.jpg";
}

function bt25()
{
document.bt25x.src="bt25r.jpg";
}

function br25()
{
document.bt25x.src="bt25.jpg";
}

function bt26()
{
document.bt26x.src="bt26r.jpg";
}

function br26()
{
document.bt26x.src="bt26.jpg";
}

function bt27()
{
document.bt27x.src="bt27r.jpg";
}

function br27()
{
document.bt27x.src="bt27.jpg";
}

function bt28()
{
document.bt28x.src="bt28r.jpg";
}

function br28()
{
document.bt28x.src="bt28.jpg";
}

function bt29()
{
document.bt29x.src="bt29r.gif";
}

function br29()
{
document.bt29x.src="bt29.gif";
}

function bt30()
{
document.bt30x.src="bt30r.gif";
}

function br30()
{
document.bt30x.src="bt30.gif";
}

function bt31()
{
document.bt31x.src="bt31r.gif";
}

function br31()
{
document.bt31x.src="bt31.gif";
}

function bt32()
{
document.bt32x.src="bt32r.gif";
}

function br32()
{
document.bt32x.src="bt32.gif";
}

function bt33()
{
document.bt33x.src="bt33r.gif";
}

function br33()
{
document.bt33x.src="bt33.gif";
}

function bt34()
{
document.bt34x.src="bt34r.gif";
}

function br34()
{
document.bt34x.src="bt34.gif";
}

function bt35()
{
document.bt35x.src="bt35r.gif";
}

function br35()
{
document.bt35x.src="bt35.gif";
}

function bt36()
{
document.bt36x.src="bt36r.gif";
}

function br36()
{
document.bt36x.src="bt36.gif";
}

function bt37()
{
document.bt37x.src="bt37r.gif";
}

function br37()
{
document.bt37x.src="bt37.gif";
}

function bt38()
{
document.bt38x.src="bt38r.gif";
}

function br38()
{
document.bt38x.src="bt38.gif";
}

function bt39()
{
document.bt39x.src="bt39r.gif";
}

function br39()
{
document.bt39x.src="bt39.gif";
}


function laden(welche)
 {
   if (welche == 1)
   {
        images = new Array
        images[1] = "f1.jpg"
        images[2] = "f2.jpg"
        images[3] = "f3.jpg"
        images[4] = "f4.jpg"
        images[5] = "f5.jpg"
        images[6] = "f6.jpg"
        images[7] = "f7.jpg"
        images[8] = "f8.jpg"
        images[9] = "f9.jpg"

        descriptio = new Array;
        descriptio[1] = "Fenster 1"
        descriptio[2] = "Fenster 2"
        descriptio[3] = "Fenster 3"
        descriptio[4] = "Fenster 4"
        descriptio[5] = "Fenster 5"
        descriptio[6] = "Fenster 6"
        descriptio[7] = "Fenster 7"
        descriptio[8] = "Fenster 8"
        descriptio[9] = "Fenster 9"
    }

 if (welche == 2)
       {   
         images = new Array
        images[1] = "tuer11.jpg"
        images[2] = "tuer22.jpg"
        images[3] = "tuer33.jpg"
        images[4] = "tuer44.jpg"
        images[5] = "tuer55.jpg"
        images[6] = "tuer66.jpg"
        images[7] = "tuer77.jpg"
        images[8] = "tuer88.jpg"
        images[9] = "tuer99.jpg"
        images[10] = "tuer100.jpg"
        images[11] = "tuer110.jpg"
        images[12] = "tuer120.jpg"
        images[13] = "tuer130.jpg"
        images[14] = "tuer140.jpg"
        images[15] = "tuer150.jpg"
        images[16] = "tuer160.jpg"
        images[17] = "tuer170.jpg"
        images[18] = "tuer180.jpg"
        images[19] = "tuer190.jpg"
        images[20] = "tuer200.jpg"

        descriptio = new Array
        descriptio[1] = "Nr. 1 Modell Abstrakta  "
        descriptio[2] = "Nr. 2 Modell Achat      "
        descriptio[3] = "Nr. 3 Modell Amurm      "
        descriptio[4] = "Nr. 4 Modell Biedermeier"
        descriptio[5] = "Nr. 5 Modell Diabolo    "
        descriptio[6] = "Nr. 6 Modell Figaro     "
        descriptio[7] = "Nr. 7 Modell Futura     "
        descriptio[8] = "Nr. 8 Modell Geo        "
        descriptio[9] = "Nr. 9 Modell Indigo     "
        descriptio[10] = "Nr. 10 Modell Logo     "
        descriptio[11] = "Nr. 11 Modell Matrix   "
        descriptio[12] = "Nr. 12 Modell Mikado   "
        descriptio[13] = "Nr. 13 Modell Otello   "
        descriptio[14] = "Nr. 14 Modell Prisma   "
        descriptio[15] = "Nr. 15 Modell Rubin    "
        descriptio[16] = "Nr. 16 Modell Solitär  "
        descriptio[17] = "Nr. 17 Modell Tribut   "
        descriptio[18] = "Nr. 18 Modell Trio     "
        descriptio[19] = "Nr. 19 Modell Usedom   "
        descriptio[20] = "Nr. 20 Modell Zenit    "
       }  
 
    if (welche == 3)
    {
        images = new Array
        images[1] = "winter01.jpg"
        images[2] = "winter02.jpg"
        images[3] = "winter03.jpg"
        images[4] = "winter04.jpg"
        images[5] = "winter05.jpg"
        images[6] = "winter06.jpg"
        images[7] = "winter07.jpg"

        descriptio = new Array
        descriptio[1] = "Muster 1"
        descriptio[2] = "Muster 2"
        descriptio[3] = "Muster 3"
        descriptio[4] = "Muster 4"
        descriptio[5] = "Muster 5"
        descriptio[6] = "Muster 6"
        descriptio[7] = "Muster 7"
      }

}
  
function gallery(welche){
    
 if (welche ==1)
      {
        images = new Array
        images[1] = "f1.jpg"
        images[2] = "f2.jpg"
        images[3] = "f3.jpg"
        images[4] = "f4.jpg"
        images[5] = "f5.jpg"
        images[6] = "f6.jpg"
        images[7] = "f7.jpg"
        images[8] = "f8.jpg"
        images[9] = "f9.jpg"

        descriptio = new Array;
        descriptio[1] = "Fenster 1"
        descriptio[2] = "Fenster 2"
        descriptio[3] = "Fenster 3"
        descriptio[4] = "Fenster 4"
        descriptio[5] = "Fenster 5"
        descriptio[6] = "Fenster 6"
        descriptio[7] = "Fenster 7"
        descriptio[8] = "Fenster 8"
        descriptio[9] = "Fenster 9"
       }
 
       if (welche == 2)
       {   
         images = new Array
        images[1] = "tuer11.jpg"
        images[2] = "tuer22.jpg"
        images[3] = "tuer33.jpg"
        images[4] = "tuer44.jpg"
        images[5] = "tuer55.jpg"
        images[6] = "tuer66.jpg"
        images[7] = "tuer77.jpg"
        images[8] = "tuer88.jpg"
        images[9] = "tuer99.jpg"
        images[10] = "tuer100.jpg"
        images[11] = "tuer110.jpg"
        images[12] = "tuer120.jpg"
        images[13] = "tuer130.jpg"
        images[14] = "tuer140.jpg"
        images[15] = "tuer150.jpg"
        images[16] = "tuer160.jpg"
        images[17] = "tuer170.jpg"
        images[18] = "tuer180.jpg"
        images[19] = "tuer190.jpg"
        images[20] = "tuer200.jpg"

        descriptio = new Array
        descriptio[1] = "Nr. 1 Modell Abstrakta  "
        descriptio[2] = "Nr. 2 Modell Achat      "
        descriptio[3] = "Nr. 3 Modell Amurm      "
        descriptio[4] = "Nr. 4 Modell Biedermeier"
        descriptio[5] = "Nr. 5 Modell Diabolo    "
        descriptio[6] = "Nr. 6 Modell Figaro     "
        descriptio[7] = "Nr. 7 Modell Futura     "
        descriptio[8] = "Nr. 8 Modell Geo        "
        descriptio[9] = "Nr. 9 Modell Indigo     "
        descriptio[10] = "Nr. 10 Modell Logo     "
        descriptio[11] = "Nr. 11 Modell Matrix   "
        descriptio[12] = "Nr. 12 Modell Mikado   "
        descriptio[13] = "Nr. 13 Modell Otello   "
        descriptio[14] = "Nr. 14 Modell Prisma   "
        descriptio[15] = "Nr. 15 Modell Rubin    "
        descriptio[16] = "Nr. 16 Modell Solitär  "
        descriptio[17] = "Nr. 17 Modell Tribut   "
        descriptio[18] = "Nr. 18 Modell Trio     "
        descriptio[19] = "Nr. 19 Modell Usedom   "
        descriptio[20] = "Nr. 20 Modell Zenit    "
       }  
   
       if (welche == 3)
       {
        images = new Array;
        images[1] = "winter01.jpg"
        images[2] = "winter02.jpg"
        images[3] = "winter03.jpg"
        images[4] = "winter04.jpg"
        images[5] = "winter05.jpg"
        images[6] = "winter06.jpg"
        images[7] = "winter07.jpg"

        descriptio = new Array;
        descriptio[1] = "Muster 1"
        descriptio[2] = "Muster 2"
        descriptio[3] = "Muster 3"
        descriptio[4] = "Muster 4"
        descriptio[5] = "Muster 5"
        descriptio[6] = "Muster 6"
        descriptio[7] = "Muster 7"
      }

           i=1;
           document.gallery.varia.value = i;
           document.img.src = images[1];

           if (i == 1){
                document.gallery.desc.value = descriptio[1]
                document.gallery.previous.value=""}
}

function previmg(){
        i=document.gallery.varia.value;
        if (i != 1) {
                i --
                document.gallery.varia.value=i
                document.img.src = images[i]
                document.gallery.desc.value = descriptio[i]
                document.gallery.next.value = "Nächstes >"}
        if (i == 1) {
                document.gallery.previous.value=""}

}

function nextimg(max){
        i=document.gallery.varia.value;
        if (i != max) {
                i ++
                document.gallery.varia.value=i
                document.gallery.previous.value="< Vorheriges"
                image = images[i]
                document.img.src = image
                document.gallery.desc.value = descriptio[i]}
        if (i == max){
                document.gallery.next.value="";}
}

function pickrand(){
        var imagenumber = 9 ;
        var randomnumber = Math.random() ;
        var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1;
        var randimage = images[rand1]
        document.img.src = randimage
        document.gallery.desc.value = descriptio[rand1];
        i = rand1
        document.gallery.varia.value=i
        if (i == 1){
                document.gallery.previous.value="";}
        else {
                document.gallery.previous.value="< Vorheriges";}
        if (i == 9){
                document.gallery.next.value="";}
        else {
                document.gallery.next.value="Nächstes ";}
}

function firstimg(){
        i = 1
        document.gallery.varia.value=i
        document.img.src = images[i];
        document.gallery.desc.value = descriptio[i];
        document.gallery.previous.value="";
        document.gallery.next.value="Nächstes "
}

function lastimg(){
        i = 9
        document.gallery.varia.value=i
        document.img.src = images[i];
        document.gallery.desc.value = descriptio[i];
        document.gallery.next.value=""
        document.gallery.previous.value="< Vorheriges"
}

function Go(x)
{

     parent.frames[1].document.img.src = images[x];
     parent.frames[1].document.gallery.varia.value = x;
     parent.frames[1].document.gallery.desc.value = descriptio[x];
     if (x != 1)
     {
     parent.frames[1].document.gallery.previous.value="< Vorheriges";
     }
     if (x == 1)
     {
     parent.frames[1].document.gallery.previous.value=" ";
     }

}

function werbwindow(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=1,location=center,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=550,height=550');
hWnd.focus();
}

function btech(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=center,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=650');
hWnd.focus();
}

function binfo(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=center,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=900,height=700');
hWnd.focus();
}


function cinfo(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=center,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=350,height=250');
hWnd.focus();
}



function gbild(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=center,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=650');
hWnd.focus();
}


function eigenwerbung(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=400');
hWnd.focus();
}


function laufschrift ()
{
     // Jetzt erfolgt die Ausgabe
        a=a+1;
      message_ausgabe=message.substring(a,zeichenlaenge);
      window.status=message_ausgabe;
   if (a>=zeichenlaenge)
     {
        a=0;
     }
   // Die Funktion wird neu aufgerufen
   setTimeout ('laufschrift()', 100);
}

