<!--
function div_ref_style (id) {
   var el;	
   if      (document.layers)         return document.layers[id];
   else if (document.all)            el = document.all[id];
   else if (document.getElementById) el = document.getElementById(id);
   else return null;
   
   var ret = null;
   if (el != null) {
	   ret = el.style;
   }
   return ret;
}

function geScrollt() {
	if (self.pageYOffset) 				return self.pageYOffset;
	else if (document.documentElement && document.documentElement.scrollTop) return document.documentElement.scrollTop;
	else if (document.body) 			return document.body.scrollTop;
}

function hoehe() {
	if (self.innerHeight) 				return (self.innerHeight-22); // all except Explorer
	else if (document.documentElement && document.documentElement.clientHeight) return (document.documentElement.clientHeight-22); // Explorer 6 Strict Mode
	else if (document.body) 			return (document.body.clientHeight-22); // other Explorers
}

function init() {
	var el = div_ref_style("fusszeile");
	if (el != null) {
		el.position = 'absolute';
		el.left = 0 + (document.documentElement? "px" : "");
		var aktiv = window.setInterval("positionieren()",1);
	}
}

function positionieren() {
	div_ref_style("fusszeile").top = hoehe()+geScrollt() + (document.documentElement? "px" : "");
}

function PrintView () {
        window.print();
        /*
	if (ie) {
		var prompt = 1; // 1 PROMPT & 2 DONT PROMPT USER
		var WebBrowser = '<OBJECT ID="webbrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		webbrowser1.ExecWB(7, prompt);
		webbrowser1.outerHTML = "";
	} else {
		window.print();
	}
        */
}

// VTG

function centeredWindow() {	//Zentriertes Fenster Bilder der Woche Kopfzeile
	var breite = 500; //Breite des neuen Fensters
	var hoehe = 500;  //Höhe des neuen Fensters

	var seite = (screen.availWidth - breite) / 2;
	var oben = (screen.availHeight - hoehe) / 2;

	params = ('width='+ breite +',height='+ hoehe +',left='+ seite +',top='+ oben);
        link = '../servlet/PublicArticleServlet?action=show&maxrows=1&articlegroupid=14&url=../presse/bilder.jsp'

	F4 = window.open( link,'name',params);
}

function centeredWindowVlk(id) { //Zentriertes Fenster VLK Rechter Frame

	var breite = 400; //Breite des neuen Fensters
	var hoehe = 630;  //Höhe des neuen Fensters

	var seite = (screen.availWidth - breite) / 2;
	var oben  = (screen.availHeight - hoehe) / 2;

	var params = ('width='+ breite +',height='+ hoehe +',left='+ seite +',top='+ oben +',scrollbars=yes');

	//F4 = window.open('../servlet/PublicArticleServlet?action=showimages&id=' + id,'name',params)
        F4 = window.open('../dist/aktuellebilder.html?id=' + id,'name',params);
}

function centeredWindowVOL(link) {	//Zentriertes Fenster VLK Audio-Link VLK Rechter Frame

     var breite = 340; //Breite des neuen Fensters
     var hoehe = 95;  //Höhe des neuen Fensters

     var seite = (screen.availWidth - breite) / 2;
     var oben = (screen.availHeight - hoehe) / 2;

     var params = ('width='+ breite +',height='+ hoehe +',left='+ seite +',top='+ oben);

     var F4 = window.open( link,'name',params);
}

function subWindowWithScrollbar( link, width, height ){
  if ( width==null || width<=0 )
    width = 390;
  if ( height==null || height<=0 )
    height = 235;
  var params = ("width=" + width +" ,height=" + height + ",top=0,left=0,resizable=no,scrollbars=auto,menubar=no,toolbar=no,status=no,location=no");
  var x=window.open( link ,"RADIO",params);
}
// -->
