var HF=null;

function openfoto(elem) // Fotopopups öffnen
{
  if (HF!=null) HF.close();
  switch (elem)
  {
    case 1:
      HF=window.open("./foto1.php", "HausdienstFoto", "width=319,height=470,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
    case 2:
      HF=window.open("./foto2.php", "HausdienstFoto", "width=320,height=470,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
    case 3:
      HF=window.open("./foto3.php", "HausdienstFoto", "width=470,height=351,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
    case 4:
      HF=window.open("./foto4.php", "HausdienstFoto", "width=470,height=355,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
    case 5:
      HF=window.open("./foto5.php", "HausdienstFoto", "width=470,height=315,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
    case 6:
      HF=window.open("./foto6.php", "HausdienstFoto", "width=470,height=360,dependent=yes,location=no,menubar=no,resizable=no,status=no,toolbar=no");break;
  }
  HF.focus();
  return false;
}
function quotesIE() // Anführungszeichen für den <q>-Tag ergänzen beim InternetExplorer
{
  var uagent = navigator.userAgent;
  if ((uagent.search(/Win/i)>=0 && document.getElementsByTagName("q")) && (uagent.search(/MSIE\s6.0/i)>=0 || uagent.search(/MSIE\s5./i)>=0) && !(uagent.search(/Opera/i)>=0)  && !(uagent.search(/Mozilla\/5/i)>=0))
      {
       var laquo, raquo;
       var quotArr = document.getElementsByTagName("q");
       for (i=0; i<quotArr.length; i++)
           {
            if (quotArr[i].firstChild.data != '„')
               {
                laquo = document.createTextNode('„');
                raquo = document.createTextNode('”');
                quotArr[i].insertBefore(laquo, quotArr[i].firstChild);
                quotArr[i].appendChild(raquo);
               }
           }
      }
}

function pageready() // gesammelte Funktionsaufrufe, die nach vollständigem Laden jeder.php-Seite ausgeführt werden sollen
{
  quotesIE();
}

