document.write("<div style='"+pbboxstyle+"'>");

if (pbnoofitems==null) pbnoofitems=5;
if (pbscrollspeed==null) pbscrollspeed=4; 
if (pbnoofitems>10) pbnoofitems=10;
if (pbnoofitems<1) pbnoofitems=1;
if (pbscrollspeed<1) pbscrollspeed=1;
if (pbscrollspeed>10) pbscrollspeed=10;

if (pbmarquee) {

	if (pbmarqueevert) {
		pbdirection="direction=up";
	} else {
		pbdirection='';
	}
	
	if (pbmarqueeheight==null) {
		pbheight='';
	} else {
		pbheight="height="+pbmarqueeheight;
	}

	document.write("<marquee "+pbdirection+" "+pbheight+" scrollamount="+pbscrollspeed+" onMouseover='this.scrollAmount=1' onMouseout='this.scrollAmount="+pbscrollspeed+"' onMouseDown='this.scrollAmount=1' onMouseUp='this.scrollAmount="+pbscrollspeed+"'>");

}

for (i=1;i<=pbnoofitems;i++){
	
	if (pbmarquee && !pbmarqueevert) {
		pbbreak='&nbsp;&nbsp;';
	} else {
		pbbreak="<br>";
	}

	document.write("<span style='"+pbitemstyle+"'><a style='"+pblinkstyle+"' href='javascript:news("+i+")'>"+pbt[i]+"</a>"+pbbreak);
	document.write("<span style='"+pbdatestyle+"'>"+pbd[i]+"</span>");
	if (pbshowdesc) {
		document.write("<span style='"+pbdescstyle+"'>-&nbsp;"+pbf[i]+"</span>");
	}
	document.write("</span>"+pbbreak);
	if (pbmarquee && pbmarqueevert) {
		document.write(pbbreak);
	}
}

if (pbmarquee) document.write("</marquee>");

document.write("</div>");







