if (rollover_underline==null) { var rollover_underline =1;}
if (font_underline==null) { var font_underline =0;}
if (fontbold==null) { var fontbold=0;}
if (rollover_underline==0) { var textdecoration_underline = 'none';}
else {var textdecoration_underline = 'underline';}
if (font_underline==1) { var font_underline = 'underline';}
else {var font_underline = 'none';}
if (fontbold==1) { var textdecoration_fontbold = 'bold';}
else {var textdecoration_fontbold = 'normal';}


document.open();
document.write('<style type=\"text/css\">');            
document.write('.shortnews:link{color:'+fontcolor+';text-decoration:'+font_underline+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px};'); 
document.write('.shortnews:visited{color:'+fontcolor+';text-decoration:'+font_underline+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px};'); 
document.write('.shortnews:hover{color:'+rollovercolor+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px;text-decoration:'+textdecoration_underline+'};'); 
document.write('.shortnews:active{color:'+fontcolor+';font-weight:'+textdecoration_fontbold+';text-decoration:none;font-family:'+font+';font-size:'+fontsize+'px};'); 
document.write('.x1{color:'+fontcolor+';font-weight:'+textdecoration_fontbold+';text-decoration:none;font-family:'+font+';font-size:'+fontsize+'px};'); 
document.write('</style>') 
document.close();


if (fehler==true)
{
news=new Array()
news[0]="<a class='shortnews' onclick='return false' href='x.htm'>ShortNews wird gewartet, wir bitten um Verständnis.</a>";
news[1]="<a class='shortnews' onclick='return false' href='x.htm'>Der Newsticker ist in Kürze wieder verfügbar.</a>";
news[2]="<a class='shortnews' onclick='return false' href='x.htm'>ShortNews wird gewartet, wir bitten um Verständnis.</a>";
news[3]="<a class='shortnews' onclick='return false' href='x.htm'>Der Newsticker ist in Kürze wieder verfügbar.</a>";
news[4]="<a class='shortnews' onclick='return false' href='x.htm'>ShortNews wird gewartet, wir bitten um Verständnis.</a>";
news[5]="<a class='shortnews' onclick='return false' href='x.htm'>Der Newsticker ist in Kürze wieder verfügbar.</a>";
}

switch(transparent)
{
 case 0:
document.write('<table class="shortnews" height="'+tickerheight+'" width="'+tickerwidth+'" bgcolor="'+tickercolor+'"cellspacing="'+cellspacing+'" cellpadding="'+cellpadding+'" border="'+bordersize+'" bordercolor="'+bordercolor+'" >')
 break;
 case 1:
document.write('<table class="shortnews" height="'+tickerheight+'" width="'+tickerwidth+'"cellspacing="'+cellspacing+'" cellpadding="'+cellpadding+'" border="'+bordersize+'" bordercolor="'+bordercolor+'">')
 break;
} 

var numbernews_ad;
numbernews_ad = numbernews

 for(i = 0; i <= numbernews_ad; i++)
  {
   var x = i + i;

      if (news[i]==null) {break;}

      if (news[i].indexOf("href='http://shortnews.de/gotoklick.cfm?")==-1)
{
   
   document.write('<tr>')

	if (window.img_src) 
		{
 	document.write('<td width="10" align="left" valign="top"><img src="'+img_src+'"></td>')
		} 
		else 
		{
   document.write('<td class="x1" width="10" align="left" valign="top">&raquo;</td>')
	}   
   document.write('<td class="shortnews" valign="top">'+news[i]+'</td>')
   document.write('</tr>')
}
}

document.write('</table>')
