MM_preloadImages(path+'images/btn_home_f2.gif',path+'images/btn_job_f2.gif',path+'images/btn_contact_f2.gif',path+'images/btn_chi_f2.gif',path+'images/sub_nav_01.gif',path+'images/sub_nav_02.gif',path+'images/sub_nav_03.gif',path+'images/sub_nav_04.gif');

if (location.href.lastIndexOf('/') !=-1) {
	firstpos = location.href.lastIndexOf('/')+1;
	lastpos = location.href.length;
	pageName = location.href.substring(firstpos,lastpos);
	pageURL = location.href;
}

document.write('<table width="777" border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr>');
document.write('        <td width="504" align="left"><img src="'+path+'images/logo_hld.gif" alt="Henderson Land Group" hspace="3"></td>');

if (section == "home") {
	document.write('        <td width="43">img src="'+path+'images/btn_home_f2.gif" alt="Home" name="Image2" width="43" height="12" border="0" id="Image2"></td>');
} else {
	document.write('        <td width="43"><a href="'+path+'index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image2\',\'\',\''+path+'images/btn_home_f2.gif\',1)"><img src="'+path+'images/btn_home.gif" alt="Home" name="Image2" width="43" height="12" border="0" id="Image2"></a></td>');
}

document.write('        <td width="5"><img src="'+path+'images/spacer.gif" width="5" height="10"></td>');

if (section == "job") {
	document.write('        <td width="109"><img src="'+path+'images/btn_job_f2.gif" alt="Job Opportunities" name="Image3" width="109" height="12" border="0" id="Image3"></td>');
} else {
	document.write('        <td width="109"><a href="'+path+'job/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image3\',\'\',\''+path+'images/btn_job_f2.gif\',1)"><img src="'+path+'images/btn_job.gif" alt="Job Opportunities" name="Image3" width="109" height="12" border="0" id="Image3"></a></td>');
}

document.write('        <td width="5"><img src="'+path+'images/spacer.gif" width="5" height="10"></td>');

if (section == "contact") {
	document.write('        <td width="69"><img src="'+path+'images/btn_contact_f2.gif" alt="Contact Us" name="Image4" width="69" height="12" border="0" id="Image4"></td>');
} else {
	document.write('        <td width="69"><a href="'+path+'contact/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image4\',\'\',\''+path+'images/btn_contact_f2.gif\',1)"><img src="'+path+'images/btn_contact.gif" alt="Contact Us" name="Image4" width="69" height="12" border="0" id="Image4"></a></td>');
}

document.write('        <td width="5"><img src="'+path+'images/spacer.gif" width="5" height="10"></td>');

document.write('        <td width="32"><a href="javascript:changeLanguage()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image5\',\'\',\''+path+'images/btn_chi_f2.gif\',1)"><img src="'+path+'images/btn_chi.gif" alt="Chinese" name="Image5" width="32" height="12" border="0" id="Image5"></a></td>');


document.write('        <td width="5"><img src="'+path+'images/spacer.gif" width="5" height="10"></td>');
document.write('      </tr>');


var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	
	document.write('      <tr>');
	document.write('        <td colspan="9">');
	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="777" height="268">');
	document.write('  <param name="movie" value="' + path + 'images/swf/home.swf">');
	document.write('  <param name="quality" value="high">');
	document.write('  <param name="scale" value="noscale">');
	document.write('  <param name="salign" VALUE="TL" >');
	document.write('  <param name="menu" value="false">');
	document.write('  <param name="flashVars" value="pageName=' + pageName + '&pageURL=' + pageURL +  '&section=' + section + '&mainPath=' + path + '">');
	document.write('  <embed src="' + path + 'images/swf/home.swf" flashVars="pageName=' + pageName + '&pageURL=' + pageURL +  '&section=' + section +  '&mainPath=' + path + '" width="777" height="268" salign="TL" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="noscale"></embed>');
	document.write('</object>');
	
	document.write('        </td>');
	document.write('      </tr>');
	
} else{
	
	document.write('      <tr>');
	document.write('        <td colspan="9">');
	
	document.write('<img src="'+path+'images/main_nav.gif" width="777" height="33" border="0" usemap="#NavMap"><map name="NavMap">');
	
	document.write('<area shape="rect" coords="1,1,150,33" href="#" onMouseOver="changeSubNav(1);">');
	document.write('<area shape="rect" coords="150,1,290,33" href="#" onMouseOver="changeSubNav(2);">');
	document.write('<area shape="rect" coords="290,1,372,33" href="#" onMouseOver="changeSubNav(3);">');
	document.write('<area shape="rect" coords="372,1,524,33" href="' + path + 'mgt/index.htm" onMouseOver="changeSubNav(0);">');
	document.write('<area shape="rect" coords="524,1,621,33" href="http://www.hld.com/english/construction/" onMouseOver="changeSubNav(0);">');
	document.write('<area shape="rect" coords="621,1,777,33" href="#" onMouseOver="changeSubNav(4);"></map>');
	
	document.write('        </td>');
	document.write('      </tr>');
	document.write('      <tr>');
	document.write('        <td colspan="9" height="235" background="'+path+'images/home_banner.jpg" valign="top">');
	
	document.write('<span id="subNavMenu"></span><br><img src="'+path+'images/spacer.gif" width="777" height="5" border="0" onMouseOver="changeSubNav(0);" onMouseOut="resetSubNav();">');
	
	document.write('</td>');
	document.write('      </tr>');
}

document.write('    </table>');

if ( !MM_FlashCanPlay ) {
	resetSubNav();
}
