var streamrefresh=0;

function menu () {
	return Menu = "<table width=\"210\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td height=\"27\" style=\"background-image: url(images/box_top.png);\" colspan=\"3\"><p style=\"margin-left: 10px; text-align: center; color: red;\"><b>Streaming</b></p></td></tr><tr style=\"height: 74px;\"><td width=\"2\" style=\"background-image: url(images/box_left.png);\"/><td width=\"206\" style=\"background-image: url(images/box_center.png);\"><p style=\"font-size: 15px; margin-left: 5px; text-align: center; color: black;\">" +
	
		"<a href=\"#\" onclick=\"streamBox(1, 135000)\"><span style=\"color: red;\">Guarda la presentazione</span></a>" +

"</p></td><td width=\"2\" style=\"background-image: url(images/box_left.png);\"/></tr><tr><td height=\"4\" style=\"background-image: url(images/box_bottom.png);\" colspan=\"3\"/></tr></tbody></table>";
}


function Stream (file)
{
	return "<embed src=\"stream/" + file + "\" width=\"254\" height=\"217\" autostart=\"1\" showcontrols=\"1\" type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/windows/windowsmedia/download/\" />";
}

function streamBox(show, flength) {
	var contenuti = new Array();

	contenuti[0] = menu();    
 	contenuti[1] = Stream("ParatiTG3.mpg");
 	contenuti[2] = Stream("ParatiTG3_2.mpg");
     
	document.getElementById("streamdiv").innerHTML = contenuti[show];

	if (flength != 0)
		streamrefresh = setTimeout("streamBox(0)", flength);
}
