theUrl = 'video.swf?video='+theVideo+'&amp;zoom='+theZoom+'&amp;width='+theWidth+
	'&amp;height='+theHeight+'&amp;side='+theSide+'&amp;fullurl='+theFullUrl+
	'&amp;autoplay='+autoPlay;
if (typeof(clickHere) != 'undefined') theUrl += '&amp;clickhere='+clickHere;

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
document.write('codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
document.write('width="'+theWidth+'" height="'+theHeight+'" id="video-object">');
document.write('	<param name="allowScriptAccess" value="sameDomain" />');
document.write('	<param name="movie" value="'+theUrl+'" />');
document.write('	<param name="loop" value="false" />');
document.write('	<param name="menu" value="false" />');
document.write('	<param name="quality" value="autohigh" />');
document.write('	<param name="scale" value="noscale" />');
document.write('	<param name="salign" value="lt" />');
document.write('	<param name="wmode" value="transparent" />');
document.write('	<embed src="'+theUrl+'" loop="false" menu="false" quality="autohigh" ');
document.write('scale="noscale" salign="lt" wmode="transparent" width="'+theWidth+'" height="'+theHeight+'" ');
document.write('id="video-embed" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" ');
document.write('pluginspage="https://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');

function setClass (theClass) {
	document.getElementById('video').className = theClass;
}
