var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if (hasRightVersion)
{  // if we've detected an acceptable version
	document.write('<div class="local_flash" style="clear:both;">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="675" height="105">');
	var strSwfSrc = strPath + 'swf/avc-serv_' + strLocale + '.swf?xmlfile=' + strPath + 'swf/chapter-info_' + strLocale + '.xml&chapter=' + strChapterPict ;
	document.write('<param name="movie" value="' + strSwfSrc + '"><param name="quality" value="high">');
	document.write('<embed src="' + strSwfSrc + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="675" height="105"></embed>');
	document.write('</object>');
	document.write('</div>');
}
else
{  // flash is too old or we can't detect the plugin
	document.write('<div class="local_flash_static" style="clear:both">');
	document.write('<img src="' + strPath + 'swf/images/'+strBannerImage+'" alt="" width="675" height="77" border="0"><br />');

	if (strLocale == "en")
	{
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'investors.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:7px" src="' + strPath + 'swf/en/m_investors.gif" alt="" width="82" height="11" border="0" /></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'tenantry.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:7px" src="' + strPath + 'swf/en/m_insurance.gif" alt="" width="71" height="11" border="0"></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'partners.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:7px" src="' + strPath + 'swf/en/m_partners.gif" alt="" width="78" height="11" border="0"></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'contacts.html\'" class="banner_menu_item_s" id="banner_menu_item_right"><img style="vertical-align:top; padding-top:7px" src="' + strPath + 'swf/en/m_contacts.gif" alt="" width="66" height="11" border="0"></div>');
	}
	else
	{
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'investors.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:3px" src="' + strPath + 'swf/' + strLocale + '/m_investors.gif" alt="" width="87" height="17" border="0" /></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'tenantry.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:3px" src="' + strPath + 'swf/' + strLocale + '/m_insurance.gif" alt="" width="88" height="17" border="0"></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'partners.html\'" class="banner_menu_item_s"><img style="vertical-align:top; padding-top:3px" src="' + strPath + 'swf/' + strLocale + '/m_partners.gif" alt="" width="68" height="17" border="0"></div>');
		document.write('<div onMouseOver="this.style.background=\'#0088bb\';" onMouseOut="this.style.background=\'#0064a1\';" onClick="window.location.href=\'' + strTargFolder + 'contacts.html\'" class="banner_menu_item_s" id="banner_menu_item_right"><img style="vertical-align:top; padding-top:3px" src="' + strPath + 'swf/' + strLocale + '/m_contacts.gif" alt="" width="61" height="17" border="0"></div>');
	}
	document.write('</div>');
}
