function openBrWindowFever(theURL,winName,features,ref,center){
  
	eval("var "+winName);

	if (eval(winName)==true && !winName.closed) {
	
	winName.focus();
	}
	else {
		if(ref) {
			var refURL=theURL+"?URL="+document.location;
		}
		else {
			var refURL=theURL;
		}

		if(center!="vals") {
		
			a=new Array();
			a=center.split('|');
			l=((screen.width)-a[1])/2;
			t=((screen.height)-a[0])/2;
			features=features+",top="+t+",left="+l;
		}
		winName=window.open(refURL,winName,features);
		winName.focus();
		winName = true;
	}
}

function OpenTeaser(teaser, teaserSelectVal) {
  
  if(teaser[teaserSelectVal]['name'] == 'teaser_quellen') {
	
	HilfeFenster('bezugsquelle',4);
  }
  else {
    openBrWindowFever(teaser[teaserSelectVal]['link'],'JunkersTeaser','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + teaser[teaserSelectVal]['width'] + ',height=' + teaser[teaserSelectVal]['height'],true,teaser[teaserSelectVal]['width'] + '|' + teaser[teaserSelectVal]['height']);
  }
}

// Teaser 1: <a href="javascript:OpenTeaser('1');">mehr...</a>
