function writenews(){
newsletter= "<div class=headline>NEWS</div>"
    + "<p><b>3.5.07</b> Die WIEWO berichtet &uuml;ber die letzten &quot;LesArt&quot;-Veranstaltungen. <a href=\"presse.html#070503\">Mehr...</a></p>"
    + "<p><b>2.5.07</b> Die RNZ berichtet &uuml;ber die Abschlu&szlig;&shy;veranstaltung. <a href=\"javascript:showimg('images/070502_RNZ_Abschlussveranstaltung.jpg', 'RNZ 2.5.07','RNZ 2.5.07')\">Mehr...</a></p>"
    + "<p><b>26.4.07</b> Die <a href=\"javascript:showimg('images/070426_RNZ_MS.jpg', 'RNZ 26.4.07','RNZ 26.4.')\">RNZ berichtet</a> &uuml;ber "
		+ "die Veranstaltung um den &quot;Faust-Zyklus&quot; von Armin M&uuml;ller-Stahl.</p>"
	+ "<p><b>22.4.07</b> Das vorletzte Lesebild der Woche. <a href=\"aktuell.html#070422\">Mehr...</a></p>"
    + "<p><b>21.4.07</b> Verwandtes Projekt in Mannheim. <a href=\"aktuell.html#070421\">Mehr...</a></p>"		
    + "<p><b>20.4.07</b> Der LEZARD wurde am Er&ouml;ffnungsabend von Bernhard Bentgens eingef&uuml;hrt. <a href=\"aktuell.html#070420\">Mehr...</a></p>"		
    + "<p><b>19.4.07</b> Gleich sechsfach berichtet die WIEWO heute &uuml;ber die LesArt. <a href=\"presse.html#070419\">Mehr...</a></p>"		
    + "<p><b>19.4.07</b> Zusatzveranstaltung: &Uuml;berlegungen zu Gerhard Richter. <a href=\"aktuell.html#070419\">Mehr...</a></p>"		
    + "<p><b>18.4.07</b> Grafik verdeutlicht Verh&auml;ltnis &quot;Wieslocher LesArt&quot; / &quot;B&uuml;rgerstiftung Wiesloch&quot;. <a href=\"images/LesArtBuergerstiftung.pdf\">Mehr...</a></p>"	
    + "<p><b>17.4.07</b> Werke der Albert-Schweitzer-Schule im Johann-Philipp-Bronner-Haus. <a href=\"aktuell.html#070417\">Mehr...</a></p>"	
    + "<p><b>16.4.07</b> RNZ berichtet &uuml;ber Auftaktveranstaltung und Tagesprogramm. <a href=\"presse.html#070416\">Mehr...</a></p>"	
	+ "<p><b>15.4.07</b> Zu den verschiedenen Ausstellungen im Rathaus gibt es n&auml;here Informationen. <a href=\"aktuell.html#070415\">Mehr...</a></p>"
    + "<p><b>14.4.07</b> RNZ berichtet dreifach. <a href=\"aktuell.html#070414\">Mehr...</a></p>"
	;
document.getElementById("newscell").innerHTML=newsletter;
}



function writemenu(activepage){
   thisopt=activepage.toUpperCase();
   indextitle="IDEE";
   optionen = new Array("IDEE", "AKTUELL",
	"BILDER", 
	"PARTNER", "PROGRAMM",
	"EINDR&Uuml;CKE",
	"PRESSE",
	"KONTAKT");
   str="<ul class=\"menue\">\n";
   for (i in optionen) {
       opt = optionen[i];
       cls = (thisopt != opt) ? "menuelnk" : "aktiv";
	   if (opt == indextitle) href = "index.html";
	   else if (opt == "EINDR&Uuml;CKE") href = "impressionen.html";
	   else href =  opt.toLowerCase() + '.html';
       str = str + "<li><a class=\"" + cls + "\" href=\"" + href
       	   + "\">" + optionen[i] + "</a></li>\n";
   }
   document.getElementById("menuearea").innerHTML = str + "</ul>";
}



function showimg(url,wtitle,text)
{

	var ih = screen.availHeight - 20;
	var iw = screen.availWidth - 20;
	var texthight =0;
	
	var win = window.open(url, "Bild","left=0,top=0,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=800,height=600,status=no");
	win.focus();
	win.document.clear();
	win.document.open();
	with (win.document)
	{
		write("<html><head>\n");
		write("<title>" + wtitle + "</title>\n");
		write("<link rel=STYLESHEET href='lesart.css'>");
		write("</head>");
		write("<body bgcolor='#c9c7b8'>\n");
		write("<center>");
		write("<img src='" + url + "' name='sampleImg'></p>");
		if (text.length > 3) {                        		
			write(text);
			texthight = 30;
		}
		write("<form><input type='button' value='Fenster schliessen' onClick='self.close()'></form>");
		write("</center>");
		iw = Math.min(sampleImg.width + 50, iw);
		ih = Math.min(sampleImg.height + 100 + texthight, ih);
		write("</body></html>");
	}
	win.resizeTo(iw, ih);
	var x0 = Math.max(0, (screen.availWidth - iw) / 2);
	var y0 = Math.max(0, (screen.availHeight - ih) / 2);
	win.moveTo(x0, y0);
}

function toggle(id) {
	display1=document.getElementById(id).style.display;
	display2=(display1 == 'none') ? 'block' : 'none';
	document.getElementById(id).style.display=display2;
}


function impressionen(stamm, suffix, anzahl){
   var dir = "images/impressionen/";
   for (var i = 1; i <= anzahl; i++) {
       var datei = stamm + i + '.' + suffix;   
       var mod = i % 3;
       if (mod == 1) {
		   document.write ("<tr>");	
	   }
	   document.write("<td><a href=\"javascript:showimg('" + dir + datei + "', '', '')\">");    
   	   document.write("<img border='0' src='" + dir + "klein/" + datei + "' width='120'>");
	   document.write("</a></td>");
		if (mod != 0) {
		   document.write("<td> </td>");
		}
	   else {
	   		document.write ("</tr>");
	   		document.write ("<tr height='20px'><td  colspan='5'> </td></tr>");
		}
   }
}

