function MM_swapImgRestore()
{ //v3.0
  var i,x,a=document.MM_sr;
  for(i=0; a && i<a.length && (x=a[i]) && x.oSrc; i++)
    x.src=x.oSrc;
}

function MM_preloadImages()
{ //v3.0
  var d=document;
  if(d.images)
  {
    if(!d.MM_p)
      d.MM_p=new Array();
    var i,j=d.MM_p.length, a=MM_preloadImages.arguments;
    for(i=0; i<a.length; i++)
      if(a[i].indexOf("#")!=0)
      {
        d.MM_p[j]=new Image;
        d.MM_p[j++].src=a[i];
      }
  }
}

function MM_findObj(n, d)
{ //v4.01
  var p,i,x;
  if(!d)
    d=document;
  if((p=n.indexOf("?"))>0 && parent.frames.length)
  {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
  }
  if(!(x=d[n]) && d.all)
    x=d.all[n];
  for(i=0; !x && i<d.forms.length; i++)
    x=d.forms[i][n];
  for(i=0; !x && d.layers && i<d.layers.length; i++)
    x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById)
    x=d.getElementById(n);
  return x;
}

function MM_swapImage()
{ //v3.0
  var i,j=0,x, a=MM_swapImage.arguments;
  document.MM_sr=new Array;
  for(i=0; i<(a.length-2); i+=3)
    if((x=MM_findObj(a[i]))!=null)
    {
      document.MM_sr[j++]=x;
      if(!x.oSrc)
        x.oSrc=x.src;
      x.src=a[i+2];
    }
}

var msgWnd=0;
function JF_closeWnd()
{
  if(msgWnd)
  {
    if(!msgWnd.closed) msgWnd.close();
  }
}

var title = new Array;
var mess1 = new Array;
var mess2 = new Array;
title[1] = 'Bericht Marchegg 2002';         mess1[1] = 'Bericht Marchegg 03.08.2002';
mess2[1] = 'Hündin gut geformt, korrekter Kopf, gute Rücken- und untere Linie, korrekt in der Bewegung.';
title[2] = 'Bericht Wels 2003';             mess1[2] = 'Bericht Wels 06.12.2003';
mess2[2] = '3 jährige, schwarze Hündin vom Renntyp, ideale Größe, gute Proportionen, vorzüglich bemuskelt und behaart, typvolle Bewegungen, nettes Wesen.';
title[3] = 'Bericht Tulln 2003';            mess1[3] = 'Bericht Tulln 08.11.2003';
mess2[3] = 'Black bitch with a lovely head, proper neck, slightly long body, good angulation, strong chest.';
title[4] = 'Bericht Krenglbach 2003';       mess1[4] = 'Bericht Krenglbach 05.07.2003';
mess2[4] = 'Sehr schöner femininer Kopf, exzellenter Hals, sehr gute Rückenlinie, sehr gute Kruppe, sehr gute Winkelung der Vorder- und Hinterhand, schönes ausgreifendes Gangwerk,<br>in der Hinterhand etwas zu eng.';
title[5] = 'Bericht Untersiebenbrunn 2003'; mess1[5] = 'Bericht Untersiebenbrunn 21.06.2003';
mess2[5] = '3 years old, black, excellent colour and coatcondition,<br>nice head, eye expression, excellent ears, neck, shoulderangulation and chest, excellent wide moves.';
title[6] = 'Bericht Wieselburg 2003';       mess1[6] = 'Bericht Wieselburg 05.04.2003';
mess2[6] = 'Sehr elegante und sehr gut bemuskelte Hündin,<br>schöner, typischer Kopf, schöne Rosenohren, eleganter Hals, korrekte Winkelungen, korrekte Vorder- und Hinterhand,<br>gute Bewegung.';
title[7] = 'Bericht Graz 2003';             mess1[7] = 'Bericht Graz 01.03.2003';
mess2[7] = 'Gebiss korrekt, kräftiger Unterkiefer, Ohren gut angelegt, obere Körperlinie gut, Hinterhand etwas eng.';
title[8] = 'Bericht Namesti 2004';          mess1[8] = 'Bericht Namesti 20.06.2004';
mess2[8] = 'Sehr schöne schwarze Hündin von sehr gutem Typ und Körperbau, vorzüglich in allen Punkten, schöner Kopf,<br>vorzüglicher starker Hals, vorzügliche Oberlinie, sehr gute Brust und Winkelungen, fantastische Seitenbewegung,<br>hinten ein wenig eng.';
title[9] = 'Bericht Freiburg 2004';          mess1[9] = 'Bericht Freiburg 17.07.2004';
mess2[9] = '4 jährige, schwarze Hündin, gute Größe, vollz. Schere, ansprechender Kopf, gut geschwungener Hals, korrekte Ober- und Unterlinie, gute Winkelungen vorne wie hinten, Gangwerk hinten leicht eng, zeigt sich gut.';

function berichtWnd(nr,height)
{
  JF_closeWnd();
  var width = 420;
//  var height = 120;
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  msgWnd = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title[nr]+'</title><link href="balifail.css" rel="stylesheet" type="text/css"></head>';
  var body = '<body bgcolor="#9c9e63"><center><p class="bv12">'+mess1[nr]+'</p><p class="v12">'+mess2[nr]+'</p></center></body>';
  msgWnd.document.write(head + body);
}

var title1 = new Array;
var img = new Array;
var w = new Array;
var h = new Array;
title1[1] = 'ÖKWZR-Rennchampion 2002';         img[1] = 'rennen/2002.jpg';        w[1] = '346'; h[1] = '480';
title1[2] = 'ÖKWZR-Rennchampion 2003';         img[2] = 'rennen/2003.jpg';        w[2] = '400'; h[2] = '533';
title1[3] = 'ÖKWZR-Ausstellungschampion 2003'; img[3] = 'ausstellungen/2003.jpg'; w[3] = '400'; h[3] = '533';

function imgWnd(nr, width, height)
{
  JF_closeWnd();
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  msgWnd = window.open("","msgWindow", styleStr);
  var head = '<head><title>'+title1[nr]+'</title></head>';
  var body = '<body bgcolor="#9c9e63"><center><p><img src="'+img[nr]+'" alt="" height="'+h[nr]+'" width="'+w[nr]+'" border="0"></p></center></body>';
  msgWnd.document.write(head + body);
}

var title2 = new Array;
var gal = new Array;
var gw = new Array;
var gh = new Array;
title2[1] = 'Arda als Junghund';                 gal[1]  = 'gallery/01.jpg'; gw[1]  = 402; gh[1]  = 550;
title2[2] = '';                                  gal[2]  = 'gallery/02.jpg'; gw[2]  = 595; gh[2]  = 398;
title2[3] = 'F-Wurf of Champ`s Runners.';        gal[3]  = 'gallery/03.jpg'; gw[3]  = 590; gh[3]  = 394;
title2[4] = '';                                  gal[4]  = 'gallery/04.jpg'; gw[4]  = 600; gh[4]  = 400;
title2[5] = 'Zucchinidieb';                      gal[5]  = 'gallery/05.jpg'; gw[5]  = 600; gh[5]  = 400;
title2[6] = '';                                  gal[6]  = 'gallery/06.jpg'; gw[6]  = 600; gh[6]  = 400;
title2[7] = '';                                  gal[7]  = 'gallery/07.jpg'; gw[7]  = 600; gh[7]  = 400;
title2[8] = '';                                  gal[8]  = 'gallery/08.jpg'; gw[8]  = 600; gh[8]  = 400;
title2[9] = '';                                  gal[9]  = 'gallery/09.jpg'; gw[9]  = 600; gh[9]  = 400;
title2[10] = '';                                 gal[10] = 'gallery/10.jpg'; gw[10] = 600; gh[10] = 400;
title2[11] = '';                                 gal[11] = 'gallery/11.jpg'; gw[11] = 600; gh[11] = 400;
title2[12] = 'Finale Hündinnen';                 gal[12] = 'gallery/12.jpg'; gw[12] = 600; gh[12] = 400;
title2[13] = 'Finale Hündinnen';                 gal[13] = 'gallery/13.jpg'; gw[13] = 600; gh[13] = 400;
title2[14] = 'Finale Hündinnen';                 gal[14] = 'gallery/14.jpg'; gw[14] = 600; gh[14] = 400;
title2[15] = 'Grand Prix';                       gal[15] = 'gallery/15.jpg'; gw[15] = 600; gh[15] = 400;
title2[16] = 'Grand Prix';                       gal[16] = 'gallery/16.jpg'; gw[16] = 600; gh[16] = 400;
title2[17] = 'Grand Prix';                       gal[17] = 'gallery/17.jpg'; gw[17] = 600; gh[17] = 400;
title2[18] = '';                                 gal[18] = 'gallery/18.jpg'; gw[18] = 600; gh[18] = 400;
title2[19] = '';                                 gal[19] = 'gallery/19.jpg'; gw[19] = 600; gh[19] = 400;
title2[20] = '';                                 gal[20] = 'gallery/20.jpg'; gw[20] = 600; gh[20] = 400;
title2[21] = '';                                 gal[21] = 'gallery/21.jpg'; gw[21] = 600; gh[21] = 400;
title2[22] = '';                                 gal[22] = 'gallery/22.jpg'; gw[22] = 600; gh[22] = 400;
title2[23] = '';                                 gal[23] = 'gallery/23.jpg'; gw[23] = 600; gh[23] = 400;
title2[24] = '';                                 gal[24] = 'gallery/24.jpg'; gw[24] = 600; gh[24] = 400;
title2[25] = '';                                 gal[25] = 'gallery/25.jpg'; gw[25] = 600; gh[25] = 400;
title2[26] = '';                                 gal[26] = 'gallery/26.jpg'; gw[26] = 600; gh[26] = 400;
title2[27] = '';                                 gal[27] = 'gallery/27.jpg'; gw[27] = 600; gh[27] = 400;
title2[28] = '';                                 gal[28] = 'gallery/28.jpg'; gw[28] = 600; gh[28] = 400;
title2[29] = '';                                 gal[29] = 'gallery/29.jpg'; gw[29] = 600; gh[29] = 400;
title2[30] = '';                                 gal[30] = 'gallery/30.jpg'; gw[30] = 600; gh[30] = 400;
title2[31] = '';                                 gal[31] = 'gallery/31.jpg'; gw[31] = 600; gh[31] = 400;
title2[32] = '';                                 gal[32] = 'gallery/32.jpg'; gw[32] = 600; gh[32] = 400;
title2[33] = '';                                 gal[33] = 'gallery/33.jpg'; gw[33] = 600; gh[33] = 400;
title2[34] = '';                                 gal[34] = 'gallery/34.jpg'; gw[34] = 600; gh[34] = 400;
title2[35] = '';                                 gal[35] = 'gallery/35.jpg'; gw[35] = 600; gh[35] = 400;
title2[36] = '';                                 gal[36] = 'gallery/36.jpg'; gw[36] = 600; gh[36] = 400;
title2[37] = '';                                 gal[37] = 'gallery/37.jpg'; gw[37] = 600; gh[37] = 400;
title2[38] = '';                                 gal[38] = 'gallery/38.jpg'; gw[38] = 600; gh[38] = 400;
title2[39] = '';                                 gal[39] = 'gallery/39.jpg'; gw[39] = 600; gh[39] = 400;
title2[40] = '';                                 gal[40] = 'gallery/40.jpg'; gw[40] = 600; gh[40] = 400;
title2[41] = '';                                 gal[41] = 'gallery/41.jpg'; gw[41] = 600; gh[41] = 400;
title2[42] = '';                                 gal[42] = 'gallery/42.jpg'; gw[42] = 600; gh[42] = 400;
title2[43] = '';                                 gal[43] = 'gallery/43.jpg'; gw[43] = 600; gh[43] = 400;
title2[44] = '';                                 gal[44] = 'gallery/44.jpg'; gw[44] = 600; gh[44] = 400;
title2[45] = '';                                 gal[45] = 'gallery/45.jpg'; gw[45] = 600; gh[45] = 400;
title2[46] = '';                                 gal[46] = 'gallery/46.jpg'; gw[46] = 600; gh[46] = 400;
title2[47] = '';                                 gal[47] = 'gallery/47.jpg'; gw[47] = 600; gh[47] = 400;
title2[48] = '';                                 gal[48] = 'gallery/48.jpg'; gw[48] = 600; gh[48] = 400;
title2[49] = '';                                 gal[49] = 'gallery/49.jpg'; gw[49] = 600; gh[49] = 400;
title2[50] = '';                                 gal[50] = 'gallery/50.jpg'; gw[50] = 600; gh[50] = 400;


var globNr;
/*
function galleryWnd(nr, wid, hgt)
{
  JF_closeWnd();
  globNr =  nr;
  var www = gw[nr] + 22;
  var hhh = gh[nr] + 70;
  var left = (screen.width/2) - (www/2);
  var top = (screen.height/2) - (hhh/2);
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+www+',height='+hhh+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  msgWnd = window.open('galwindow.htm','', styleStr);
  msgWnd.document.images[0].width = gw[globNr];
  msgWnd.document.images[0].height = gh[globNr];
}
*/
function globalVar(nr)
{
  globNr = nr;
}
function previous()
{
  globNr--;
  if(globNr<1) globNr=1;
  if(document.images)
  {
	  alert(globNr);
    var www = gw[globNr] + 22;
    var hhh = gh[globNr] + 70;
//    resizeTo(www,hhh);
    document.images[0].src = gal[globNr];
  }
}
function next()
{
  globNr++;
  if(globNr>18) globNr=18;
  if(document.images)
  {
//	  resizeTo(gw[globNr],gh[globNr]);
    document.images[0].src = gal[globNr];
  }
}

function galleryWnd(nr,wid,hgt)
{
  JF_closeWnd();
  var www = gw[nr] + 22;
  var hhh = gh[nr] + 40;
  var left = (screen.width/2) - (www/2);
  var top = (screen.height/2) - (hhh/2);
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+www+',height='+hhh+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  msgWnd = window.open("","msgWindow", styleStr);
  var jscr = '<script language="JavaScript" type="text/JavaScript" src="menu.js"></script>';
  var h = '<head><title>'+title2[nr]+'</title><link href="balifail.css" rel="stylesheet" type="text/css">'+jscr+'</head>';
  var im = '<img src="'+gal[nr]+'" alt="'+title2[nr]+'" height="'+gh[nr]+'" width="'+gw[nr]+'" border="0" name="xxx" id="xxx"><br>';
  if(nr == 3)    title2[3] = 'F-Wurf of Champ`s Runners. Fly over mit Ball';
  if(nr == 15)  title2[15] = '';
  var descr = '<span class="bv12">'+title2[nr]+'</span>';
  var minus = nr-1;
  var plus = nr+1;
  var menu = '<p class="bv12"><a href="#" onMouseUp="previous()"><< PREVIOUS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onMouseUp="next()">NEXT >></a></p>';
//  var b = '<body onLoad="globalVar('+nr+')" bgcolor="#CCCC99"><center>'+im+descr+menu+'</center></body>';
  var b = '<body onLoad="globalVar('+nr+')" bgcolor="#CCCC99"><center>'+im+descr+'</center></body>';
  msgWnd.document.write(h + b);
}

