// The Table Ruler (http://www.alistapart.com/articles/tableruler/) von Christian Heilmann
// modified by Onkel Tom

function tableruler()
{
	if (document.getElementById && document.createTextNode)
  	{
   		var tables=document.getElementsByTagName('table');
   		for (var i=0;i<tables.length;i++)
   		{
    		if(tables[i].id == 'programm')
    		{
     			var trs=tables[i].getElementsByTagName('tr');
     			for(var j=0;j<trs.length;j++)
     			{
       				if(trs[j].className == 'prog_1')
       				{
       					trs[j].onmouseover=function(){this.className='prog_1_hover';return false}
       					trs[j].onmouseout=function(){this.className='prog_1';return false}
    				}
    	
    				if(trs[j].className == 'prog_2')
       				{
       					trs[j].onmouseover=function(){this.className='prog_2_hover';return false}
       					trs[j].onmouseout=function(){this.className='prog_2';return false}
    				}
       //trs[j].onmouseover=function(){this.className='hover';return false}
       //trs[j].onmouseout=function(){this.className='';return false}
     			}
   		 	}
 		
 			/*if(tables[i].className == 'angebot')
    		{
     			var trs=tables[i].getElementsByTagName('tr');
     			for(var j=0;j<trs.length;j++)
     			{
       				if(trs[j].className == '')
       				{
			       		trs[j].onmouseover=function(){this.className='angebot_dunkel';return false}
			       		trs[j].onmouseout=function(){this.className='';return false}
    				}
    	
    				if(trs[j].className == 'dunkel')
       				{
			       		trs[j].onmouseover=function(){this.className='prog_2_hover';return false}
			       		trs[j].onmouseout=function(){this.className='dunkel';return false}
			    	}
     			}
  			}*/
 		
 		}
	
	}
}
window.onload = function() {
    tableruler();
}

// inserted by Limi ;-)
function BildPopup( pict, titel, breite, hoehe )
{
  var b = breite + 80;
  var h = hoehe + 90;
  var optionen = "left=50,top=50,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes,dependent=yes,width="+b+",height="+h;
  var Fenster = window.open(pict, "Fenster", optionen);
  Fenster.document.write('<html><head><title>'
+ titel
+ '</title><style type="text/css"> body, a { font-weight: bold; font-family:Verdana,Arial,Helvetica,san-serif; font-size: 10pt; background-color: rgb(248,237,148);}'
+ 'a:link,a:visited { color:rgb(240,120,90); text-decoration:none; } a:active,a:hover { color:rgb(240,120,90); text-decoration:underline; }'
+ '</style></head><body><table align=center>'
+ '<tr align=center><td>'
+ '<img src= " '
+ pict
+ ' " alt=" '
+ titel
+ '" width='
+ breite
+ ' height='
+ hoehe
+ ' ></td></tr><tr align=center><td>'
+ '<a href="javascript:window.close()">Fenster schlie&szlig;en'
+ '</a></td></tr>'
+ '</table></body></html>');
}
