var popPers;
var contentWindow;
  /*IE4 = (document.all) ? true : false;*/
  if(document.all != null) IE = true;
  else				IE = false;
  NS4 = (document.layers) ? true : false;
  xsize = 750; //hier die Breite des neuen Fensters
  ysize = 480; //hier die Hoehe des neuen Fensters
  ScreenWidth = screen.width;
  ScreenHeight = screen.height;
  xpos = (ScreenWidth/2)-(xsize/2);
  ypos = (ScreenHeight/2)-(ysize/2);
  ver4 = (IE||NS4);

function openPersDetail(id){
		w = 640;
		h = 480;
		popPers = window.open("persDetail.php?id="+id, "popPersDetail","width="+w+",height="+h+",left="+((screen.width/2)-(w/3))+",top="+((screen.height/2)-(h/3))+",dependent=no,resizable=no,scrollbars=no,location=no,toolbar=no,menubar=no,status=no");
		popPers.focus();
}
function openLtDetail(id){
		w = 780;
		h = 520;
		popLt = window.open("ltDetail.php?id="+id, "popLtDetail","width="+w+",height="+h+",left="+((screen.width/2)-w/2)+",top="+((screen.height/2)-h/2)+",dependent=no,resizable=no,scrollbars=no,location=no,toolbar=no,menubar=no,status=no");
		popLt.focus();
}
function openToDetail(id){
		w = 780;
		h = 520;
		popTo = window.open("toDetail.php?id="+id, "popToDetail","width="+w+",height="+h+",left="+((screen.width/2)-w/3)+",top="+((screen.height/2)-h/2)+",dependent=no,resizable=no,scrollbars=no,location=no,toolbar=no,menubar=no,status=no");
		popTo.focus();
}
//Abrogans - Einbindung des HdBG-Glossars
function abrogans() {
	if (top.contentFrame && top.contentFrame.content) {
		var url = top.contentFrame.content.location.href
		top.contentFrame.content.location.replace('http://www.datenmatrix.de/cgi-local/hdbg-glossar/abrogans.cgi?url=' + escape(url))
	}
}
//Abrogans - Einbindung des HdBG-Glossars
function abrogansPop() {
		var url = window.location.href
		window.location.replace('http://www.datenmatrix.de/cgi-local/hdbg-glossar/abrogans.cgi?url=' + escape(url))
}

//aktiven Menupunkt markieren
menuItems = new Array("start", "abriss", "landtage", "personen", "persAlpha", "persOrte", "persBerufe", "tagOrte", "glossar", "literatur", "feedback", "verfolgte", "info");
function menuSetActiveItem (item) {
		for (i=0;i<menuItems.length;i++){
			parent.frames.menu.document.getElementById(menuItems[i]).className = "neutral";
			}
		parent.frames.menu.document.getElementById(item).className = "aktiv";
}
function menuSetNeutral () {
		for (i=0;i<menuItems.length;i++){
			parent.frames.menu.document.getElementById(menuItems[i]).className = "neutral";
			}
}
function gotoItem (item) {
		for (i=0;i<menuItems.length;i++){
			parent.frames.menu.document.getElementById(menuItems[i]).className = "neutral";
			}
		parent.frames.content.location.href = item+".html";
		parent.frames.menu.document.getElementById(item).className = "aktiv";
}
