/* PopupWindows alle */

function litpop(theURL) { //Popup fuer Quellenangaben, Literaturverzeichnis
 litfenster = window.open(theURL,'quellen','scrollbars=yes,resizable=yes,width=680,height=280');
 litfenster.focus(); 
 return false;
}

function photpop(theURL) { //Popup fuer Photos
  photfenster = window.open(theURL,'photos','scrollbars,resizable=yes,width=780,height=580');
  photfenster.focus();
  return false;
}

function navvladen(datei,topdatei)
{
if(parent.navv) { parent.navv.location.replace(datei); }
else { top.location.replace(topdatei); }
}

function ankermarkieren() { //bei Sprung zu Anker diesen farblich markieren

var urihash = window.location.hash;
var hashohne = urihash.slice(1);

if(hashohne!="") {
var anker = document.getElementById(hashohne);
    anker.style.color = "#FF6633";
}}


function mainanker(theURL) { //Popup schließen und Anker in main-Fenster anspringen
  if(opener) {
 if(opener.name=="main") {
  opener.location.href = theURL;
  opener.focus();
  self.close();
  return false; }}
  else { return true; }
}

