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] = "Vicky & Beggi Moorhof"
        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&auml;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){
     var number = 2 ;
     var randomnumber = Math.random() ;
     var ran1 = Math.round( (number-1) * randomnumber) + 1;
    welche=ran1
    welche=1
 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"
  
        descriptio = new Array;
        descriptio[1] = "Islandpferde-Gest&uuml;t Barghof"
        descriptio[2] = "Islandpferde-Gest&uuml;t Barghof"
        descriptio[3] = "Islandpferde-Gest&uuml;t Barghof"
        descriptio[4] = "Islandpferde-Gest&uuml;t Barghof"
        descriptio[5] = "Islandpferde-Gest&uuml;t Barghof"
        }

       if (welche == 2)
       {

        images = new Array
        images[1] = "f11.jpg"
        images[2] = "f22.jpg"
        images[3] = "f33.jpg"
        images[4] = "f22.jpg"
        images[5] = "f11.jpg"


        descriptio = new Array
        descriptio[1] = "Moorhof Vicky & Beggi "
        descriptio[2] = "Moorhof Vicky & Beggi "
        descriptio[3] = "Moorhof Vicky & Beggi"
        descriptio[4] = "Moorhof Vicky & Beggi "
        descriptio[5] = "Moorhof Vicky & Beggi"
        parent.frames[2].document.img.height=130;
        parent.frames[2].document.img.widtht=193;
     }

       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.img.src = images[1];
          bildwechsler();

}

function previmg(){
             if (i != 1) {
                i --

                document.gallery.img.src = images[i]
                document.gallery.desc.value = descriptio[i]
                document.gallery.next.value = "N&auml;chstes >"}
        if (i == 1) {
                document.gallery.previous.value=""}

}

function nextimg(max){

        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 = 4;
        var randomnumber = Math.random() ;
        var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1;
        var randimage = images[rand1]
         document.img.src = randimage;

         bildwechsler();

}

function firstimg(){
        i = 1

        document.img.src = images[i];
        document.gallery.desc.value = descriptio[i];
        document.gallery.previous.value="";
        document.gallery.next.value="N&auml;chstes "
}

function lastimg(){
        i = 9

        document.img.src = images[i];
        document.gallery.desc.value = descriptio[i];
        document.gallery.next.value=""
        document.gallery.previous.value="< Vorheriges"
}

function bildwechsler()
{
   setTimeout ('pickrand()',4000);
}

function Change(x)
{

    document.img.src = x;

}

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 gox(x)
{

        anzahl=top.frames.length

	if(anzahl == 0)
	{
		location.href = x;
		document.forms[0].reset();
		document.forms[0].elements[0].blur();
	}
}

function fenster(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=center,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=420, height=300');
hWnd.focus();
}



function gfenster(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=1,location=center,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=800, height=600');
hWnd.focus();
}


function apas(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=1,location=center,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=600, height=380');
hWnd.focus();
}



function werbwindow(url)
{
var hWnd = window.open(url, "Hengstparade", 'toolbar=1,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=700,height=600');
hWnd.focus();
}


function NewWindow(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=550');
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=650,height=460');
hWnd.focus();
}

function tinfo(url)
{
var hWnd = window.open(url, "Info", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=550');
hWnd.focus();
}

function bildup(url)
{
var hWnd = window.open(url, "Info", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=0,resizable=1, width=400, height=230');
hWnd.focus();
}

function info(url)
{
var hWnd = window.open(url, "Info", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=530');
hWnd.focus();
}


function neuesfenster(url)
{
var hWnd = window.open(url, "Ausstellung", 'toolbar=0,location=top,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=400,height=350');
hWnd.focus();
}


function weerstext()
{
  var message="+++ Herzlich Willkommen bei Weers +++";
  var a=0;
  var b;
  var leerzeichen=" ";
  var zeichenlaenge;
  var message_ausgabe;

  // Dem Text werden Leerzeichen vorangestellt
  for (b=120; b>=0; b--)
   {
     leerzeichen=leerzeichen+" ";
   }
   message=leerzeichen+message;
   zeichenlaenge=message.length;
  // laufschrift();
}

function laufschrift ()
{
   
}

//-Version mit frames
//parent.frames[0].location.href = x;



     function WGo(x)
     {
      if(x == "nothing")
      {
        document.forms[0].reset();
        document.forms[0].elements[0].blur();
        return;
      }
      else if(x == "end") top.location.href = location;
      else
      {
        location.href = x;
        document.forms[0].reset();
        document.forms[0].elements[0].blur();
      }
    }


