function initial() {
	MM_preloadImages('images/m_home2.gif','images/m_info2.gif','images/m_unit2.gif','images/m_facility2.gif','images/m_location2.gif','images/m_news2.gif','images/m_contact2.gif');
}

function header() {
	document.write('<table width="815" border="0" align="center" cellpadding="0" cellspacing="0"><tr valign="top">');
	// title
	document.write('<td height="170" class="bg_content"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td height="107" colspan="2"></td></tr>');
	document.write('<tr><td width="33"></td><td><img src="images/title_project.png" width="397" height="28" /></td></tr>');
	document.write('</table></td>');
	// space
	document.write('<td width="4"></td>');
	// logo & switch language
	document.write('<td width="208" class="bg_right">');
	document.write('<table width="195" height="32" border="0" cellpadding="12" cellspacing="0"><tr>');
	document.write('<td align="right" class="switch_language"><a href="/th/project/baan_promptpatt/rama9" class="switch_language">TH</a> | <a href="/en/project/baan_promptpatt/rama9" class="switch_language_highlight">EN</a></td>');
	document.write('</tr></table>');
	document.write('<table width="100%" height="120" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td align="center" valign="middle"><img src="images/logo_bpp_rama9.png" width="102" height="99" /></td>');
	document.write('</tr></table>');
	document.write('</td>');
	
	document.write('</tr></table>');
}

function header_th() {
	document.write('<table width="815" border="0" align="center" cellpadding="0" cellspacing="0"><tr valign="top">');
	// title
	document.write('<td height="170" class="bg_content"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td height="107" colspan="2"></td></tr>');
	document.write('<tr><td width="33"></td><td><img src="images/title_project.png" width="335" height="28" /></td></tr>');
	document.write('</table></td>');
	// space
	document.write('<td width="4"></td>');
	// logo & switch language
	document.write('<td width="208" class="bg_right">');
	document.write('<table width="195" height="32" border="0" cellpadding="12" cellspacing="0"><tr>');
	document.write('<td align="right" class="switch_language"><a href="/th/project/baan_promptpatt/rama9" class="switch_language_highlight">TH</a> | <a href="/en/project/baan_promptpatt/rama9" class="switch_language">EN</a></td>');
	document.write('</tr></table>');
	document.write('<table width="100%" height="120" border="0" cellpadding="0" cellspacing="0"><tr>');
	document.write('<td align="center" valign="middle"><img src="images/logo_bpp_rama9.png" width="102" height="104" /></td>');
	document.write('</tr></table>');
	document.write('</td>');
	
	document.write('</tr></table>');
}

function menu(section) {
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>');
	document.write('<td width="23"></td>');
	document.write('<td bgcolor="#6e6f76"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td><img src="images/bg_menu.gif" width="185" height="70" /></td></tr>');
	document.write('<tr><td><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_home\',\'\',\'images/m_home2.gif\',1)"><img src="images/m_home'+ (section=='home'?'2':'1') +'.gif" alt="Home" name="m_home" width="185" height="29" border="0" id="m_home" /></a></td></tr>');
	document.write('<tr><td><a href="info.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_info\',\'\',\'images/m_info2.gif\',1)"><img src="images/m_info'+ (section=='info'?'2':'1') +'.gif" alt="Project Information" name="m_info" width="185" height="29" border="0" id="m_info" /></a></td></tr>');
	document.write('<tr><td><a href="unit.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_unit\',\'\',\'images/m_unit2.gif\',1)"><img src="images/m_unit'+ (section=='unit'?'2':'1') +'.gif" alt="House Type" name="m_unit" width="185" height="29" border="0" id="m_unit" /></a></td></tr>');
	document.write('<tr><td><a href="facility.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_facility\',\'\',\'images/m_facility2.gif\',1)"><img src="images/m_facility'+ (section=='facility'?'2':'1') +'.gif" alt="Facilities" name="m_facility" width="185" height="29" border="0" id="m_facility" /></a></td></tr>');
	document.write('<tr><td><a href="location.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_location\',\'\',\'images/m_location2.gif\',1)"><img src="images/m_location'+ (section=='location'?'2':'1') +'.gif" alt="Location" name="m_location" width="185" height="29" border="0" id="m_location" /></a></td></tr>');
	document.write('<tr><td><a href="news.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_news\',\'\',\'images/m_news2.gif\',1)"><img src="images/m_news'+ (section=='news'?'2':'1') +'.gif" name="m_news" width="185" height="29" border="0" id="m_news" /></a></td></tr>');
	document.write('<tr><td><a href="contact.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'m_contact\',\'\',\'images/m_contact2.gif\',1)"><img src="images/m_contact'+ (section=='contact'?'2':'1') +'.gif" alt="Contact Us" name="m_contact" width="185" height="29" border="0" id="m_contact" /></a></td></tr>');
	document.write('<tr><td><img src="images/bg_menu.gif" width="185" height="28" /></td></tr>');
	document.write('</table></td>');
	document.write('</tr></table>');
}

function right() {
	document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">');
	document.write('<tr><td><img src="images/logo_bpp.gif" width="203" height="120" /></td></tr>');
	document.write('<tr><td><img src="images/pic_bpp.jpg" width="203" height="280" /></td></tr>');
	document.write('</table>');
}

function footer() {
	document.write('<table width="815" height="20" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="right" class="comment">');
	document.write('Featured photography on website consists of photography on location, photography on location with simulated atmosphere and simulated graphic. <br>Should you have any questions regarding any photography, please contact our customer service staffs or visit our projects\' site. Call 1685.<br>Copyright&copy;2008 Promptpattana Property Co., Ltd. All right reserved.');
	counter();
	document.write('</td></tr></table>');
}

function counter() {
	//START OF SmartSource Data Collector TAG
	//Copyright (c) 1996-2006 WebTrends Inc.  All rights reserved.
	//$DateTime: 2006/03/01 12:51:54 $
	var gDomain="sdc.inetasia.com";
	var gDcsId="dcsw2bwtnticfv51rjwnl7yyn_3c6s";
	var gFpc="WT_FPC";
	var gConvert=true;
	if ((typeof(gConvert)!="undefined")&&gConvert&&(document.cookie.indexOf(gFpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
		document.write("<scr"+"ipt type='text/javascript' SRC='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+gDomain+"/"+gDcsId+"/wtid.js"+"'><\/scr"+"ipt>");
	}
	document.write('<script src="/include/dcs_tag.js" type="text/javascript"></script>');
	document.write('<noscript><img alt="" border="0" name="dcsimg" width="1" height="1" src="http://sdc.inetasia.com/dcsw2bwtnticfv51rjwnl7yyn_3c6s/njs.gif?dcsuri=/nojavascript&amp;WT.js=No">');
	//END OF SmartSource Data Collector TAG
}

	document.write('');
	document.write('');

