<!--
//RollOver
function showLayer(x){
if (document.layers) 
	document.layers[x].visibility="show";
else
   	document.all[x].style.visibility="visible";
}

function hideLayer(x){
if (document.layers) 
	document.layers[x].visibility="hide";
	else
    document.all[x].style.visibility="hidden";
}

//neues Fenster
function externWindow() 
{
var newWindow=window.open("","extern","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=600,height=500");
newWindow.focus();
}

function laborauftragWindow() 
{
var newWindow=window.open("","laborauftrag","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=650,height=580");
newWindow.focus();
}

function infoWindow() 
{
var newWindow=window.open("","info","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=250,height=150");
newWindow.focus();
}

function popupWindow() 
{
var newWindow=window.open("","popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=454,height=570");
newWindow.focus();
}

function impressumWindow() 
{
var newWindow=window.open("","impressum","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=500,height=550");
newWindow.focus();
}

function webdesignWindow() 
{
var newWindow=window.open("","webdesign","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=300,height=360");
newWindow.focus();
}

function anfahrtWindow() 
{
var newWindow=window.open("popups/anfahrt.html","anfahrt","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1,width=540,height=530");
newWindow.focus();
}

function anfahrtFrWindow() 
{
var newWindow=window.open("popups/anfahrtFr.html","anfahrt","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=0,resizable=1,width=540,height=530");
newWindow.focus();
}
// Diashow
function diabild(bildurl)
{
this.bild = new Image();
this.bild.src = bildurl;
}

function diashow(einblendung)
{
if (einblendung>dia.length-1)
	einblendung = 0;
self.document.anim_bild.src = dia[einblendung].bild.src;
timeOutString = "diashow("+(einblendung+1).toString()+")"; // function diashow als string
timerID = setTimeout(timeOutString,3000); // Intervall 3s
}

//Popups
function chgImg(img1, obj1)
{
	window.document.images[img1].src = obj1.src;
}

druckOff = new Image(); druckOff.src = "../img/druckOff.gif";
druckOn = new Image(); druckOn.src = "../img/druckOn.gif";

function makeBorderPopup(text)
{
document.write('<div id="border" style="position:absolute; left:2px; leftmargin:2; top:0px; z-index:2;">');
headerPopup(text);
document.write('<img src="../../img/dot.gif" width=1 height=460 border="0">');
footerPopup();
document.write('</div>');
}

function footerPopup()
{
document.write('</td></tr></table><br>');
document.write('<table width="420" cellspacing="3" cellpadding="0" border="0">');
document.write('<tr>');
document.write('<td width="150"><p class="small">Treffert GmbH &amp; Co.KG<br>');
document.write('In der Weide 17<br>');
document.write('D-55411 Bingen</p></td>');
document.write('<td width="150"><p class="small">Telefon: +49 (0) 67 21 403-0<br>');
document.write('Telefax: +49 (0) 67 21 403-27<br>');
document.write('<a href="mailto:info@treffert.org">info@treffert.org</a></td>');
document.write('<td width="120" align="right" valign="bottom">');
document.write('<a href="javascript:self.print()" onMouseOut="chgImg(\'druck\',druckOff)" onMouseOver="chgImg(\'druck\',druckOn)">');
document.write('<img src="../img/druckOff.gif" width=26 height=26 alt="" name="druck" border="0"></a>&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td></tr></table>');
}

function footerPopupEn()
{
document.write('</td></tr></table><br>');
document.write('<table width="420" cellspacing="3" cellpadding="0" border="0">');
document.write('<tr>');
document.write('<td width="150"><p class="small">Treffert GmbH &amp; Co.KG<br>');
document.write('In der Weide 17<br>');
document.write('D-55411 Bingen</p></td>');
document.write('<td width="165"><p class="small">Telephone: +49 (0) 67 21 403-0<br>');
document.write('Telefax: +49 (0) 67 21 403-27<br>');
document.write('<a href="mailto:info@treffert.org">info@treffert.org</a></td>');
document.write('<td width="105" align="right" valign="bottom">');
document.write('<a href="javascript:self.print()" onMouseOut="chgImg(\'druck\',druckOff)" onMouseOver="chgImg(\'druck\',druckOn)">');
document.write('<img src="../img/druckOff.gif" width=26 height=26 alt="" name="druck" border="0"></a>&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td></tr></table>');
}

function footerPopupFr()
{
document.write('</td></tr></table><br>');
document.write('<table width="420" cellspacing="3" cellpadding="0" border="0">');
document.write('<tr>');
document.write('<td width="180"><p class="small">Treffert S.A.S.<br>');
document.write('Z.I. &#150; rue de la Jonti&egrave;re &#150; B.P.46<br>');
document.write('57255 Sainte-Marie-aux-Ch&ecirc;nes</p></td>');
document.write('<td width="165"><p class="small">T&eacute;l&eacute;phone: +33 (0) 387 31 84 84<br>');
document.write('T&eacute;l&eacute;copie: +33 (0) 387 31 84 85<br>');
document.write('<a href="mailto:info@treffert.fr">info@treffert.fr</a></td>');
document.write('<td width="75" align="right" valign="bottom">');
document.write('<a href="javascript:self.print()" onMouseOut="chgImg(\'druck\',druckOff)" onMouseOver="chgImg(\'druck\',druckOn)">');
document.write('<img src="../img/druckOff.gif" width=26 height=26 alt="" name="druck" border="0"></a>&nbsp;');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td></tr></table>');
}

function headerPopup(text)
{
document.write('<table class="rahmen" cellspacing="0" cellpadding="0" border="1"><tr><td>');
document.write('<table width="420" cellspacing="0" cellpadding="0" border="0">');
document.write('<tr bgcolor="#333399">');
document.write('<td width="153"><img src="../../img/dot.gif" width=153 height=1 border="0"></td>');
document.write('<td width="177"><img src="../../img/dot.gif" width=177 height=1 border="0"></td>');
document.write('<td width="90"><img src="../../img/dot.gif" width=96 height=1 border="0"></td>');
document.write('</tr>');
document.write('<tr bgcolor="#333399">');
document.write('<td valign="bottom"><img src="../img/logoDb.gif" width=150 height=50 alt="" border="0"></td>');
document.write('<td valign="bottom" class="m"><font color="White"><b>' +text+ '</b></font></td>');
document.write('<td valign="bottom" align="right" class="m">');
document.write('<font color="White"><b>');
var now = new Date();
document.write(now.getDate());
document.write('.', monNames[now.getMonth()]);
document.write('.', t4(now.getYear()));
document.write('&nbsp;&nbsp;</b></b></td>');
document.write('</tr>');
document.write('</table>');
document.write('<table cellspacing="0" cellpadding="0" border="0"><tr>');
document.write('<td><img src="../../img/dot.gif" width=1 height=440 border="0"></td><td valign="top"><br>');

}

function printDatenblatt()
{
document.write('<a href="javascript:self.print()" onMouseOut="chgImg(\'druck\',druckOff)" onMouseOver="chgImg(\'druck\',druckOn)">');
document.write('<img src="../img/druckOff.gif" width=26 height=26 alt="" name="druck" border="0"></a>&nbsp;');
}

//Datum generieren
function gMon() {
this[0] = '01';
this[1] = '02';
this[2] = '03';
this[3] = '04';
this[4] = '05';
this[5] = '06';
this[6] = '07';
this[7] = '08';
this[8] = '09';
this[9] = '10';
this[10] = '11';
this[11] = '12';
}

var monNames = new gMon();
var monNames = new Array('01', '02', '03',
                         '04', '05', '06',
                         '07', '08', '09',
                         '10', '11', '12');

function t4(y) {
  return (y < 1000 ? y+1900 : y);
}

function aktuellesDatum()
{
var now = new Date();
document.write(now.getDate());
document.write('.', monNames[now.getMonth()]);
document.write('.', t4(now.getYear()));
}

//Dreamweaver Funktionen
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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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_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];}
}
//-->