var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if (hasRightVersion)
{  // if we've detected an acceptable version
	document.write('<div class="main_flash" style="clear:both;">');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="675" height="310" id="avc-main" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME="MENU" VALUE="FALSE" />');
	var strSwfSrc = strPath + 'swf/avc-main.swf?xmlfile=' + strPath + 'swf/menu_' + strLocale + '.xml' ;
	document.write('<param name="movie" value="' + strSwfSrc + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="' + strSwfSrc + '" menu="false" quality="high" bgcolor="#ffffff" width="675" height="310" name="avc-main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	document.write('</div>');
} 
else 
{  // flash is too old or we can't detect the plugin
	document.write('<div class="main_flash" style="clear:both;">');
	document.write('<img src="' + strPath + 'swf/images/flash_temp_pic_static.jpg" alt="" width="675" height="250" 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"><img 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"><img 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"><img 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" id="banner_menu_item_right"><img 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"><img 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"><img 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"><img 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" id="banner_menu_item_right"><img src="' + strPath + 'swf/' + strLocale + '/m_contacts.gif" alt="" width="61" height="17" border="0"></div>');
	}
	document.write('</div>');
}
