function floaterShow (aw,ah,url) 
{
	exthtml=window.open(url,"exthtml","screenX=180,left=180,screenY=120,top=120,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,menubar=no,toolbar=no,width="+aw+",height="+ah+"");
	exthtml.focus();
}

function floaterShow2 (aw,ah,url) 
{
	exthtml2=window.open(url,"exthtml2","screenX=200,left=200,screenY=100,top=100,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,menubar=no,toolbar=no,width="+aw+",height="+ah+"");
	exthtml2.focus();
}

function ZoomShow (aw,ah,url) 
{
	// scollbars = yes
	// resizable = no
	// menubar, toolbar = yes
	zoomimage=window.open(url,"zoomimage","screenX=180,left=180,screenY=120,top=120,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,menubar=no,toolbar=no,width="+aw+",height="+ah+"");
	zoomimage.focus();
}

function checkRadio (num) {
	radio = document.getElementById('radio'+num);
	radio.checked = true;
}

// Schriftskalierung 
function FontSize(_size, _targets, _exceptions) {
	this.size = _size || 11;
	this.min = 9;
	this.max = 22;
	this.targets = _targets || ['main','fsHeadbold','fsHeadnormal'];
	this.exceptions = _exceptions || 'haferbrei#hirsebrei#';
	this.lucky = this.checkBrowser();
}
FontSize.prototype = {
larger : function() {
	(this.size < this.max) ? ++this.size : this.size;
	if (this.lucky) this.scale();
},
smaller : function() {
	(this.size > this.min) ? --this.size : this.size + 'px';    
	if (this.lucky) this.scale();
},
scale : function() {
	var oTarget = null;
	for (var k = 0; k < this.targets.length; k++) {
		oTarget = document.getElementById(this.targets[k]);
		if (oTarget) this.changeSize(oTarget);  
	}
},
changeSize : function(oo) {
	if (oo.style) {
		oo.style.fontSize = this.size + 'px';
		oo.style.lineHeight = '1.3em';
	}
	for (var k = 0; k < oo.childNodes.length; k++) if (this.exceptions.indexOf((oo.childNodes[k].id || '#') + '#') == -1) this.changeSize(oo.childNodes[k]);
},
checkBrowser : function() {
	if (document.all && document.getElementById) return true;
	if (navigator.userAgent.indexOf('Netscape6/') >= 0 || navigator.userAgent.indexOf('Gecko') >= 0) return true;
	return false;
},
inc : function(oo) {
	this.larger(); this.larger();
	if (oo) oo.blur();
	return false;	
},
dec : function(oo) {
	this.smaller(); this.smaller();
	if (oo) oo.blur();
	return false;	
}
}
font_size = new FontSize();

function oeffne(datei) {
  var f=open(datei,"PLOEN_POPUP","width=600,height=450,screenX=10,screenY=10,resizable=no,scrollbars=yes");
  f.moveTo(10,10);
  f.focus();
  return false;
}
function oeffne2(datei,weite,hoehe) {
  var f=open(datei,"PLOEN_POPUP","width="+weite+",height="+hoehe+",screenX=10,screenY=10,resizable=no,scrollbars=yes");
  f.moveTo(10,10);
  f.focus();
  return false;
}

function openLink(url){
  if(opener && (url.search(/miniartikel.+/) == -1)){
    opener.location.href = url;
    top.close();
  } else {
    document.location.href = url;
  }
}