var tl = new Array("kontakt","jobs","referenzen","leistungen","unternehmen","home");
var im = new Array(10);

function li() {
  for (i=0;i<tl.length;i++) {
    im[i]=new Image();
    im[i].src="/i/n_"+tl[i]+"_a.gif";
  }
  im[9]=new Image();
  im[9].src="/i/pa.gif";
}

function m(ww) {
  if (ww=="c") document.write("</a>");
  else document.write("<a href='mailto:"+ww+"@eFactory.de'>");
}

function op (adr) {
  var w,h,t,l,x,y;
  if (window.innerWidth) {
    w=window.innerWidth;
    h=window.innerHeight;
  }
  else if (document.documentElement.clientWidth) {
    w=document.documentElement.clientWidth;
    h=document.documentElement.clientHeight-16;
  }
  else if (document.body.clientWidth) {
    w=document.body.clientWidth;
    h=document.body.clientHeight-16;
  }
  else { w=800; h=400; }
  if (window.screenX) x=window.screenX;
  else if (window.screenLeft) x=window.screenLeft;
  else x=1;
  if (window.screenY) { y=window.screenY; }
  else if (window.screenTop) { y=window.screenTop-116; }
  else y=1;
  if (h>400) { h=h-100; t=y+50; }
  else t=y;
  if (w>900) { w=w-100; l=x+50; }
  else if (w>800) { l=x+(w-800)/2; w=800; }
  else l=x;
  if (l<0) l=0;
  if (t<0) t=0;
  f=window.open(adr, "pop", "width="+w+",height="+h+",left="+l+",top="+t+",location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes");
  f.focus();
}
