function fnWriteRotator(sfile,sPath)
{
	var oeTags ='';
	if('undefined' == typeof sPath) {sPath = sitePath;} 
	if(hasRightVersion) {
		var oeTags = oeTags + '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="162" HEIGHT="204"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="'+sitePath+'flash/img-rotator.swf?sfile=' + sfile + '&nDelay=10&sPath=' + escape(sPath) +'&rnd=' +  Math.round(Math.random()*1000) +'">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<param name="wmode" value="transparent" >'
		+ '<EMBED SRC="'+sitePath+'flash/img-rotator.swf?sfile=' + sfile + '&nDelay=10&sPath=' + escape(sPath) +'&rnd=' +  Math.round(Math.random()*1000) +'"'
		+ 'WIDTH="162" HEIGHT="204"'
		+ 'PLAY="true"'
		+ 'LOOP="false"'
		+ 'QUALITY="high"'
		+ 'wmode="transparent"'
		+ 'MENU="false"'
		+ 'TYPE="application/x-shockwave-flash"'
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '<\/EMBED>'
		+ '<\/OBJECT>';
	} else {
		var alternateContent = '';
    	var oeTags = oeTags + alternateContent;
 	}
	document.write(oeTags);
}