/* inserisce un elemento flash */
function printVFlash(divid, divclass, pureHtml, nomefile, width, height, version, fallback, commonmarkup) {
	var xclose = (pureHtml)? '' : ' /';
	var isMSIE = /*@cc_on!@*/false;
	var divtag;
	var str;
	var commonstr;

	if (!version) {
		version = '8,0,0,0';
	}
	if (!fallback) {
		fallback = 'Please install Flash Player plugin.'
	}

	divtag = '<div';
	if (divid.length > 0) { divtag += ' id="' + divid + '"'; }
	if (divclass.length > 0) { divtag += ' class="' + divclass + '"'; }
	divtag += '>';

	commonstr = ('<param name="quality" value="high"' + xclose + '>');
	if (commonmarkup) {
		commonstr += commonmarkup;
	}

	if (isMSIE) {
		str = ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version);
		str += ('" width="' + width + '" height="' + height + '">');
		str += ('<param name="movie" value="' + nomefile + '"' + xclose + '>');
		str += (commonstr + '<\/object>');
	} else {
		str = ('<object data="' + nomefile + '" width="' + width + '" height="' + height);
		str += ('" type="application/x-shockwave-flash">' + commonstr);
		str += ('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer"' + xclose + '>');
		str += (fallback + '<\/object>');
	}

	document.write(divtag + str + '<\/div>');
}
