function tmt_print() {
    if (document.all) {
        var OLECMDID_PRINT = 6;
        var OLECMDEXECOPT_DONTPROMPTUSER = 2;
        var OLECMDEXECOPT_PROMPTUSER = 1;
        var WebBrowser = "<OBJECT ID='WebBrowser1' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'></OBJECT>";
            document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
            WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);
            WebBrowser1.outerHTML = "";
    } else {
        self.print();
    }
}




if (document.images) {

  var onLoadBeforeImage = null;

  if (window.onload)
    onLoadBeforeImage = window.onload;

  window.onload = BildOeffnenInit;

}

function BildOeffnenInit()
{
  if (onLoadBeforeImage)
    onLoadBeforeImage();

  for (var i=0; i < document.links.length; i++) {

    var HREF = document.links[i].href.toLowerCase().split('.');
    if (HREF[HREF.length-1] == 'jpg' || HREF[HREF.length-1] == 'gif' || HREF[HREF.length-1] == 'png')
      document.links[i].onclick = OeffneBild;

  }
}

function OeffneBild()
{
  var BildName = this.href.split('.');
  var BildGroesse = BildName[BildName.length-2].split('x');

  var ModX=0, ModY=25, Dat=this.href.split('/'); Dat=Dat[Dat.length-1];
  if (!document.layers && !document.all) { ModX=0;ModY=25; }
  var Param = 'width='+(parseInt(BildGroesse[0])+ModX)+',height='+(parseInt(BildGroesse[1])+ModY)+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0';
  if (document.layers)
    Param += ',screenX='+(screen.width/2-BildGroesse[0]/2)+',screenY='+(screen.height/2-BildGroesse[1]/2);
  else if (document.all)
    Param += ',left='+(screen.width/2-BildGroesse[0]/2)+',top='+(screen.height/2-BildGroesse[1]/2);

  var neuwin = window.open('', 'neuwin', Param);

  with (neuwin.document) {
    open();
    write('<html>\n<head><title>www.homepagetreiber.de</title>\n</head>\n');
    write('<body bgcolor="#D4D0C7"  background="/__hpd/template/galerie/bg.jpg" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>\n');
    write('  <img src="'+this.href+'" width='+BildGroesse[0]+' height='+BildGroesse[1]+'>\n');
    write('<div align=center><a href="javascript:self.close()"><font size="2"><font face="VERDANA,ARIAL,HELVETICA"><font color="#0000FF">Fenster schlie&szlig;en</font></font></font></a></div>\n');
    write('</body>\n</html>\n');
    close();
  }

  return false;
}




Normal1 = new Image();
Normal1.src = "/__hpd/template/galerie/bild_02.gif";
Highlight1 = new Image();
Highlight1.src = "/__hpd/template/galerie/bild_malerei.jpg";

Normal2 = new Image();
Normal2.src = "/__hpd/template/galerie/bild_02.gif";
Highlight2 = new Image();
Highlight2.src = "/__hpd/template/galerie/bild_grafik.jpg";

Normal3 = new Image();
Normal3.src = "/__hpd/template/galerie/bild_02.gif";
Highlight3 = new Image();
Highlight3.src = "/__hpd/template/galerie/bild_plastik.jpg";

Normal4 = new Image();
Normal4.src = "/__hpd/template/galerie/bild_02.gif";
Highlight4 = new Image();
Highlight4.src = "/__hpd/template/galerie/bild_foto.jpg";

Normal5 = new Image();
Normal5.src = "/__hpd/template/galerie/bild_02.gif";
Highlight5 = new Image();
Highlight5.src = "/__hpd/template/galerie/bild_architektur.jpg";

Normal6 = new Image();
Normal6.src = "/__hpd/template/galerie/bild_02.gif";
Highlight6 = new Image();
Highlight6.src = "/__hpd/template/galerie/bild_design.jpg";

Normal7 = new Image();
Normal7.src = "/__hpd/template/galerie/bild_02.gif";
Highlight7 = new Image();
Highlight7.src = "/__hpd/template/galerie/logo_gym.gif";

Normal8 = new Image();
Normal8.src = "/__hpd/template/galerie/bild_02.gif";
Highlight8 = new Image();
Highlight8.src = "/__hpd/template/galerie/bild_alte.jpg";

Normal9 = new Image();
Normal9.src = "/__hpd/template/galerie/bild_02.gif";
Highlight9 = new Image();
Highlight9.src = "/__hpd/template/galerie/bild_02.gif";


function Bildwechsel (Bildnr, Bildobjekt) {
  window.document.images[Bildnr].src = Bildobjekt.src;
}




function auf() {
 document.getElementById("aufmachen1").style.display = "block";
}
function zu() {
 document.getElementById("aufmachen1").style.display = "none";
}

function auf2() {
 document.getElementById("aufmachen2").style.display = "block";
}
function zu2() {
 document.getElementById("aufmachen2").style.display = "none";
}

function auf3() {
 document.getElementById("aufmachen3").style.display = "block";
}
function zu3() {
 document.getElementById("aufmachen3").style.display = "none";
}
