<!--

function RE_checkFrameset() {
  if (top.frames.length < 1)
    location.href = "../frameset.cfm?url=" + location.href;
}

function RE_setDocumentTitle() {
  if((!document.layers) && (navigator.userAgent.toLowerCase().indexOf("opera") < 0))
    top.frames.document.title = document.title;
}

function RE_openBrWindowCentered(theURL,winName,width,height) {
  theURLStrArr = theURL.split("/")

  width = RE_openBrWindowCentered.arguments[2] ? RE_openBrWindowCentered.arguments[2] : 550;
  height = RE_openBrWindowCentered.arguments[3] ? RE_openBrWindowCentered.arguments[3] : 550;

  if (is_nav4up||is_opera) {
    middleX = Math.round((window.outerWidth/2) - (width/2)) + window.screenX;
    middleY = Math.round((window.outerHeight/2)- (height/2))+ window.screenX;
    str = 'width='+width+',height='+height+',screenX=' + middleX + ',screenY=' + middleY;
  }
  
  if (is_ie4up) {
    middleX= Math.round((top.document.body.clientWidth/2) - (width/2));
    middleY= Math.round((top.document.body.clientHeight/2) - (height/2));
    str = 'width='+width+',height='+height+',left=' + middleX + ',top=' + middleY;
  }

  winObj = window.open(theURL,winName,str);
  winObj.focus();
}

function RE_openDetailViewCentered(source, wintitle, text, weite, hoehe) {

  weiteInt = weite;
  hoeheInt = hoehe;
  
  RE_openBrWindowCentered("","popupWin",weiteInt,hoeheInt);
  
  with(eval(window.open("","popupWin")).document) {
    write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
    write('<html><head><title>' + wintitle + '</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
    write('<meta http-equiv="imagetoolbar" content="no">');
    write('<link rel="stylesheet" href="../styles/buergerstiftung.css" type="text/css">');
    write('<scr'+'ipt language="JavaScript1.2" type="text/javascript">');
    write('var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0; var isMinNS6 = (isMinNS4 && navigator.userAgent.indexOf("Gecko")>=0) ? 1 : 0; var isMinIE4 = (document.all) ? 1 : 0; var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.")) >= 0 ? 1 : 0; var isDOM = (document.getElementById) ? 1 : 0;\n\n');
    write('function getLayer(name) { if (isDOM) return document.getElementById(name); if (isMinIE4) return eval("document.all." + name);  if (isMinNS4) return findLayer(name, document); return null;}\n\n function findLayer(name, doc) { var i, layer; for (i = 0; i < doc.layers.length; i++) { layer = doc.layers[i]; if (layer.name == name) return layer; if (layer.document.layers.length > 0) { layer = findLayer(name, layer.document); if (layer != null) return layer; } } return null;}\n\n');
    write('function hideLayer(layer) { layer = getLayer(layer); if (isMinIE4||isDOM) layer.style.visibility = "hidden"; if (isMinNS4)layer.visibility = "hide";}\n\n function showLayer(layer) { layer = getLayer(layer); if (isMinIE4||isDOM)layer.style.visibility = "visible"; if (isMinNS4) layer.visibility = "show";}\n\n');
    write('function setTop(layer, y) { layer = getLayer(layer); if (isDOM) layer.style.top = y + "px"; if (isMinIE4) layer.style.pixelTop = y; if (isMinNS4) layer.top = y;  return -1;}\n\n');
    write('function getHeight(layer) { layer = getLayer(layer); if (isDOM) { if (layer.style.height && (layer.style.height != "auto")) return(parseInt(layer.style.height)); else{ return(layer.offsetHeight); } } if (isMinIE4) { if (false && layer.style.pixelHeight) return(layer.style.pixelHeight); else return(layer.clientHeight); } if (isMinNS4) { if (layer.document.height) return(layer.document.height); else return(layer.clip.bottom - layer.clip.top); } return -1;}\n\n');
    write('function setEvent() { document.links[0].onmouseover=new Function("hoeheInt =' + hoeheInt + '; showGalleryAnnotation(hoeheInt)");}\n\n');
    write('var ieOpInt = 0; var opIdObj = 0;\n\n function incrementOpacity(){ if(ieOpInt <= 70){ ieOpInt += 7; if(isMinIE4) bildbeschreibungDiv.style.filter="alpha(opacity="+ieOpInt+")"; if(isMinNS6) getLayer("bildbeschreibungDiv").style.MozOpacity=ieOpInt/100; opIdObj = setTimeout("incrementOpacity()", 50); } if(ieOpInt > 70) { clearTimeout(opIdObj); ieOpInt = 70; }}\n\n function decrementOpacity(){ if(ieOpInt > 0){ ieOpInt -= 7; if(isMinIE4) bildbeschreibungDiv.style.filter="alpha(opacity="+ieOpInt+")"; if(isMinNS6) getLayer("bildbeschreibungDiv").style.MozOpacity=ieOpInt/100; opIdObj = setTimeout("decrementOpacity()", 50); } if(ieOpInt <= 0) { clearTimeout(opIdObj); ieOpInt = 0; }}\n\n function showGalleryAnnotation(hoehe) { if(isMinIE4) bildbeschreibungDiv.style.filter="Alpha(opacity=0)"; if(isMinNS6) getLayer("bildbeschreibungDiv").style.MozOpacity=0; setTop("bildbeschreibungDiv", hoehe - getHeight("bildbeschreibungDiv") - 10); showLayer("bildbeschreibungDiv"); incrementOpacity();}\n\n function hideGalleryAnnotation() { decrementOpacity(); if (document.layers) hideLayer("bildbeschreibungDiv");}');
    write('<\/scr'+'ipt>');
    write('</head><body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0"');
    if (text != "")
      write(' onLoad="showGalleryAnnotation(' + hoeheInt + ');setEvent()"');
    write('>');
    write('<a href="javascript:void(0)"');
    if (text != "")   
      write(' onMouseOut="hideGalleryAnnotation()" onMouseMove="showGalleryAnnotation(' + hoeheInt + ')"');
    write('><img alt="" border="0" src="' + source + '" width="' + weite + '" height="' + hoehe + '" name="bildImg"></a>');
    write('<div id="bildbeschreibungDiv" style="position:absolute; left: 10px; top: 0px; z-index:1; visibility: hidden"><table width="' + (weite - 20) +'" border="0" cellspacing="0" cellpadding="5">');
    write('<tr><td bgcolor="#FFFFFF">' + text+ '</td></tr></table></div>');
    write('</body></html>');
    close();
  }
    window.open("","popupWin").focus();
}

// -->
