
// navi
function changeNavi(id,which){
  if(document.getElementById(id)){
    document.getElementById(id).src = which;
  }
}

function preloadImages() {
  var doc=document;
  if(doc.images){
    if(!doc.p)
      doc.p=new Array();
    var i,j=doc.p.length,a=preloadImages.arguments;
    for(i=0; i<a.length; i++){
      if (a[i].indexOf("#")!=0){
        doc.p[j]=new Image;
        doc.p[j++].src=a[i];
      }
    }
  }
}


// new window
function openWin(which,w,h) {
  fenster = window.open(which,'','width='+w+',height='+h);
  fenster.moveTo(((window.screen.availWidth/2)-(w/2)),((window.screen.availHeight/2)-(h/2)));
  fenster.focus();
}