<!-- 
// ABSTRACT
// LIBopenWindow start (dr-010223)
function LIBopenWindow( url, winname, width, height, left, top, switches){
	function LIBopenWindowUtility( attribute ){ return ","+attribute+"="+(switches.indexOf(attribute)>-1?"yes":"no") }
	var attributes = (width?",width="+width:"")+ (height?",height="+height:"")+ (left?",left="+left:"")+ (top?",top="+top:"")+		
		LIBopenWindowUtility("toolbar")+LIBopenWindowUtility("directories")+LIBopenWindowUtility("status")+LIBopenWindowUtility("scrollbars")+
		LIBopenWindowUtility("resizable")+LIBopenWindowUtility("menubar")+LIBopenWindowUtility("location")
	return window.open( url, (winname?winname:"_blank"), attributes);
}
/* Sample
	var schalter="toolbar, directories, status, scrollbars, resizable, menubar, location"
	LIBopenWindow("http://www.google.de",null,null,null,null,null,schalter)
*/
// LIBopenWindow end

function openPopupBildbetrachter(image){	
	width = 647
	height = 400
	LIBopenWindow("/content/de/bildbetrachter/bildbetrachter.jsp?image=" + image,'poupBildbetrachter',width,height,null,null,"scrollbars,resizable,status").focus()
}

//reloads the window if Nav4 resized
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//reloads the window if Nav4 resized


// initialisieren des highlightscripts
 
function init(){
	var gruppen = new Array()
	var types = new LIBHLtype()	
	types.addtype( "norm", "" )
	types.addtype( "high", "_hl" )
	types.addtype( "stat", "_hl" )
	LIBHLloadAllImages( document, types, gruppen )
	window.LIBHLhighlighted = "";
}
window.onload=init
// layer anzeigen und dynamisch positionieren
window.lastpopup = false
function showsitesHome(name){ 
	if (!getLayer(name)) return
	//if (window.lastpopup) hidesitesHome(window.lastpopup)
	window.lastpopup = name
	positionLayer(name); 
	if (window.LIBbw.ns4){ // ns4 ausnahme
		var ref = getLayer(name)
		ref.onmouseover = function showMenuNS4(){ showLayer( getLayer(name) ) }
		ref.onmouseout  = function hideMenuNS4(){ hideLayer( getLayer(name) ) }
	}
	if(getLeft(getLayer(name))== 0) return;
	showLayer(getLayer(name)); 
}
function hidesitesHome(name){
	hideLayer(getLayer(name)); 
}
function positionLayer(name){
	x = (LIBHLisLoaded(name+"_pos")) ? getImagePageLeft( window.LIBHLimages[name+"_pos"].object ) : 0
	y = (LIBHLisLoaded(name+"_pos")) ? getImagePageTop( window.LIBHLimages[name+"_pos"].object ) : 0
	moveLayerTo(getLayer(name), x, y );
}
// layer anzeigen und dynamisch positionieren end

//-->
