function ShowHideLayer(id, behaviour){
  document.getElementById(id).style.visibility = behaviour;
}

function PreLoadPicts(){
  if(!document.Pic){
    document.Pic = new Array();
    var i, j=document.Pic.length, x=PreLoadPicts.arguments;

    for(i=0;i<x.length;i++){
      document.Pic[j] = new Image;
      document.Pic[j++].src=x[i];
    }
  }
}

function ChangePic(imgName, picId){
  document.getElementById(picId).src = "picts/"+imgName;
}

function newWindow(pageName){
	myPage=pageName;
	h=500;
	w= 750;
	myName="Impressum";
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h-45)/2 : 0;

	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizeable=no';//
	win = window.open(myPage,myName,settings);

	if(win.window.focus){win.window.focus();}

}
