function swf(URL)
{
var string, code;
var index = URL.indexOf("v=");
if (index > 0){
	code = URL.substring(index+2,index+13);
}
else{
	index = URL.indexOf("/v/");
	code = URL.substring(index+3,index+14);
}
string = 'http://www.youtube.com/v/' + code + '&hl=it&fs=1&';
if (index > 0){
	document.write('<object width="425" height="344"><param name="movie" value="' + string + '"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="' + string + '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>');
}
else{
	document.write('<br><br>- Errore caricameto video -<br><br>');
}
}