
// begin of MSN Frame function ----------------------------------------------------------------------------------------------------------------------------------------------------



function getCookie(NameOfCookie){
	if (document.cookie.length > 0){              
		begin = document.cookie.indexOf(NameOfCookie+"=");       
		if (begin != -1) { 
			begin += NameOfCookie.length+1; end = document.cookie.indexOf(";", begin);
			if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin, end));
		}
	}
	return null;
}
	
function setCookie(NameOfCookie, value, expirehours, path, domain){
	var ExpireDate = new Date ();
	ExpireDate.setTime(ExpireDate.getTime() + (expirehours * 60 * 1000));		
	mycookie = NameOfCookie + "=" + escape(value) +	((expirehours == null) ? "" : "; expires=" + ExpireDate.toGMTString());
	mycookie=mycookie+((path) ? "; path=" + path : "");
	document.cookie = mycookie;
	//alert(ExpireDate.toGMTString());
}






function draw_msn_header(){

/*
document.writeln('<LINK href="http://www.msn.co.th/webinclude/th-th/global/cn/css/win-ie6.css?V=1.08" rel="STYLESHEET"><LINK REL="stylesheet" href="http://www.msn.co.th/webinclude/th-th/global/msn/css/msnhf-mb.css?V=1.08" /></HEAD><BODY id="">');
document.writeln('								<SCRIPT LANGUAGE="JavaScript">');
document.writeln('								var cImage; cImage = new Image; cImage.src = \'http://c.msn.co.th/c.gif?DI=3949&PI=72643&TP=\'+self.location+\'&PS=10322&NA=1154&NC=1236\'</SCRIPT>');
document.writeln('								<NOSCRIPT><img height="1" width="1" src="http://c.msn.co.th/c.gif?DI=3949&PI=72643&TP=http://www.msn.co.th/houseandhome/channelizer/default.asp&PS=10322&NA=1154&NC=1236" /></NOSCRIPT>');
document.writeln('	<TABLE width="780" height="21" cellpadding="0" cellspacing="0" border="0" class="dMSNME_1" ID="Table1">');
document.writeln('		<TR><TD valign="top" class="big7"><SPAN><A target=_top href=\'http://g.msn.co.th/0nwthth0/00/00??PS=10322&NC=1236&CE=11&CP=874&HL=%CB%B9%E9%D2%E1%C3%A1\'>หน้าแรก</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/02??PS=10322&NC=1236&CE=12&CP=874&HL=Hotmail\'>Hotmail</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/03??PS=10322&NC=1236&CE=13&CP=874&HL=%A4%E9%B9%CB%D2\'>ค้นหา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/06??PS=10322&NC=1236&CE=14&CP=874&HL=%BC%D9%E9%A4%B9%E1%C5%D0%A1%D2%C3%CA%B9%B7%B9%D2\'>ผู้คนและการสนทนา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/27??PS=10322&NC=1236&CE=15&CP=874&HL=Messenger\'>Messenger</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/46??PS=10322&NC=1236&CE=16&CP=874&HL=Mobile\'>Mobile</A></SPAN></TD></TR>');
document.writeln('	</TABLE>');
document.writeln('	<div style="width:780px" class="addc"><table border="0" cellpadding="0" cellspacing="0"  class="adtc" ID="Table2"><tr valign="middle">	<td ><a href="http://g.msn.co.th/0AD0001F/708076.1??PID=2683537&amp;UIT=M&amp;TargetID=1071634&amp;AN=1357&amp;PG=THMHHB" target="_blank"><img src="http://global.msads.net/ads/1/0000000001_000000000000000163044.jpg" width="728" height="90" alt="&#46;" border="0" /></a></td></tr></TABLE></div>');
document.writeln('	<TABLE width="780" cellpadding="0" cellspacing="0" class="sf" border="0" ID="Table3">');
document.writeln('		<TR>');
document.writeln('			<TD rowspan="2" width="118" class="sfl"><A TARGET="_top" HREF="http://g.msn.co.th/0nwthth0/00/14??PS=10322&NC=1236&CE=i01&CP=874&HL=%CB%B9%E9%D2%E1%C3%A1"><IMG width="118" height="35" src="http://www.msn.co.th/webinclude/th-th/images/msn.gif" alt="หน้าแรก"  border="0"/></A></TD>');
document.writeln('			<TD rowspan="2" width="1"  class="sfl" valign="bottom" nowrap="true"><A href="http://g.msn.co.th/THTHCONH4/19894.0?http://www.msn.co.th/houseandhome/&&CP=65001&CE=nl&CM=nhlc01&HL=%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%B2%E0%B8%84%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%94%E0%B8%B4%E0%B8%99"><NOBR>บ้านอาคารที่ดิน</NOBR></A></TD>');
document.writeln('			<TD rowspan="3" width="113" class="sfm"><IMG src="http://www.msn.co.th/webinclude/images/msn/sft-mb.jpg" width="113" height="44" border="0"/></TD>');
document.writeln('			<TD width="100%" valign="bottom" align="left">');
document.writeln('				</TD><TD height="10" colspan="2"></TD>');
document.writeln('		</TR>');
document.writeln('		<TR ><TD class="sfi"align="right" rowspan="2"><A target=_top href="http://g.msn.co.th/THTHCONH4/19894.0?http://www.msn.co.th/Help&&ce=21&CP=874&HL=%A4%D3%B5%D4%AA%C1%A2%CD%A7%A4%D8%B3">คำติชมของคุณ</A>&nbsp;</TD><TD height="25" width="1" class="sfx">&nbsp;&nbsp;</TD></TR>');
document.writeln('		<TR><TD colspan="2"  height="9" class="sflb">&nbsp;</TD><TD class="sflb" id="sfi">&nbsp;</TD></TR>');
document.writeln('	</TABLE>');
	
document.writeln('			<TABLE width="780" height="20" cellpadding="4" cellspacing="0" border="0" class="tb" ID="Table5">');
				
document.writeln('				<TR valign="bottom"><TD class="tb">');
document.writeln('<!--modified the path above so that searchconfig.asp is generated by the tool-->');
document.writeln('');
document.writeln('');
document.writeln('		  <TABLE cellpadding=0 cellspacing=0 border=0 width=100% class=LSearch>');
document.writeln('		');
document.writeln('		<TR>');
document.writeln('		');
document.writeln('			');	
document.writeln('<FORM id=searchtheweb method=post action="http://www.msn.co.th/include/searchexecute.asp" name=searchfrm>');
document.writeln('');
document.writeln('	    <TD class=LSearchText align=left nowrap><B>ค้นหาเว็บ</B></TD>');
document.writeln('	  ');
document.writeln('		<TD class=LSearchItem align=right width=100% height=25><INPUT accesskey=S type=text class=LSearchInput name=SearchText maxlength=300></TD>');
document.writeln('		<TD class=LSearchItem>');
document.writeln('	&nbsp;<INPUT TYPE="HIDDEN"VALUE="MSN Search"></INPUT>');
document.writeln('		</TD><TD class="LSearchItem"><INPUT type="Submit" class="LSearchButton" value="ค้นหา" /></TD>');
document.writeln('');	
document.writeln('');
document.writeln('<TD><IMG src="http://www.msn.co.th/webinclude/images/pw/s.gif" border="0" height="1" width="5" alt=""></IMG></TD>');
document.writeln('');
document.writeln('	');
document.writeln('');
document.writeln('</FORM>');
document.writeln('');
document.writeln('');
document.writeln('</TR>');
document.writeln('</TABLE>');
document.writeln('</TD><TD width="150" class="tb"></TD></TR>');
document.writeln('				');
document.writeln('			</TABLE>');
document.writeln('		<div style="width:780px;background-color:#5AA8DA" >');
document.writeln('		<DIV CLASS="hzl"><span id="n"><A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/news/&&HL=%E0%B8%82%E0%B9%88%E0%B8%B2%E0%B8%A7&CP=65001&CE=l01">ข่าว</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/mobile/&&HL=%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%96%E0%B8%B7%E0&CP=65001&CE=l02">มือถือ</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/money/&&HL=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%87%E0&CP=65001&CE=l03">การเงิน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.homedd.com/msn2homedd.html&&HL=%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%AD%E0&CP=65001&CE=l04">บ้านอาคารที่ดิน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/personals&&HL=%E0%B8%AB%E0%B8%B2%E0%B9%80%E0%B8%9E%E0%B8%B7%E0&CP=65001&CE=l05">หาเพื่อน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/gamezone&&HL=Game%20Zone&CP=65001&CE=l06">Game Zone</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/classifieds&&HL=Classifieds&CP=65001&CE=l07">Classifieds</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/technology&&HL=%E0%B9%80%E0%B8%97%E0%B8%84%E0%B9%82%E0%B8%99%E0&CP=65001&CE=l08">เทคโนโลยี</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://msn.jobsdb.co.th&&HL=%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B9%81%E0%B8%A5%E0&CP=65001&CE=l09">งานและอาชีพ</A> &nbsp;</span></DIV>');
document.writeln('</div>');
*/


document.writeln('<LINK href="http://www.msn.co.th/webinclude/th-th/global/cn/css/win-ie6.css?V=1.08" rel="STYLESHEET">');
document.writeln('<LINK REL="stylesheet" href="http://www.msn.co.th/webinclude/th-th/global/msn/css/msnhf-mb.css?V=1.08" /></HEAD><BODY id="">');
document.writeln('                                <SCRIPT LANGUAGE="JavaScript">');
document.writeln('                                var cImage; cImage = new Image; cImage.src = \'http://c.msn.co.th/c.gif?DI=3949&PI=72643&TP=\'+self.location+\'&PS=10322&NA=1154&NC=1236\'</SCRIPT>');
document.writeln('                                <NOSCRIPT><img height="1" width="1" src="http://c.msn.co.th/c.gif?DI=3949&PI=72643&TP=http://www.msn.co.th/houseandhome/channelizer/default.asp&PS=10322&NA=1154&NC=1236" /></NOSCRIPT>');
document.writeln('	<TABLE width="780" height="21" cellpadding="0" cellspacing="0" border="0" class="dMSNME_1" ID="Table1">');
document.writeln('		<TR><TD valign="top" class="big7"><SPAN><A target=_top href=\'http://g.msn.co.th/0nwthth0/00/00??PS=10322&NC=1236&CE=11&CP=874&HL=%CB%B9%E9%D2%E1%C3%A1\'>หน้าแรก</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/02??PS=10322&NC=1236&CE=12&CP=874&HL=Hotmail\'>Hotmail</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/03??PS=10322&NC=1236&CE=13&CP=874&HL=%A4%E9%B9%CB%D2\'>ค้นหา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/06??PS=10322&NC=1236&CE=14&CP=874&HL=%BC%D9%E9%A4%B9%E1%C5%D0%A1%D2%C3%CA%B9%B7%B9%D2\'>ผู้คนและการสนทนา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/27??PS=10322&NC=1236&CE=15&CP=874&HL=Messenger\'>Messenger</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/46??PS=10322&NC=1236&CE=16&CP=874&HL=Mobile\'>Mobile</A></SPAN></TD></TR>');
document.writeln('	</TABLE>');

/*
document.writeln('	<div style="width:780px" class="addc"><table border="0" cellpadding="0" cellspacing="0"  class="adtc" ID="Table2"><tr valign="middle">	<td >');


//<![CDATA['

var pathString;
var MSAdsEmbed=0, MSAdsUseFlash=0, MSNadsBGCOLOR="#FFFFFF", MSNadsMENU="FALSE", MSNadsWIDTH=728, MSNadsHEIGHT=90;
function dlWrite_761823(){document.write('<a target="_blank" href="http://g.msn.co.th/0AD0001V/761823.2??PID=2708465&amp;UIT=M&amp;TargetID=1071634&amp;AN=2131&amp;PG=THMHHB"><img src="http://global.msads.net/ads/59157/0000059157_000000000000000209433.gif" width=728 height=90 border="0" alt="Click&#32;here&#33;" /></a>');}
var g_bShowFlash=false;
if (navigator.appVersion.indexOf("Win")>=0 && parseFloat(navigator.appVersion.substr(navigator.appVersion.indexOf("MSIE ")+5))>=4) {document.write('<SCR' + 'IPT LANGUAGE=VBScript> \n');document.write('on error resume next \n');document.write('g_bShowFlash = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');document.write('</SCR' + 'IPT\>');}
if(g_bShowFlash != true)
{
	var sFlashObjName = "msn_click" + Math.floor(10000*Math.random());
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0" id="' + sFlashObjName + '" width="' + MSNadsWIDTH + '"  height="' + MSNadsHEIGHT + '" style="z-index:-1"><param name="movie" value="http://global.msads.net/ads/59157/0000059157_000000000000000209432.swf?fd='+ location.hostname + '&clickTAG=' + escape('http://g.msn.co.th/0AD0001V/761823.1??PID=2708465&amp;UIT=M&amp;TargetID=1071634&amp;AN=2131&amp;PG=THMHHB') + '"><param name="wmode" value="opaque"><param name="quality" value="high"><param name="loop" value="true"></object>');
	document.all[sFlashObjName].attachEvent("fscommand", function (cmd,args) {if (cmd=="URL1") {window.open("http://g.msn.co.th/0AD0001V/761823.1??PID=2708465&amp;UIT=M&amp;TargetID=1071634&amp;AN=2131&amp;PG=THMHHB","_blank");}});
}
else
{
dlWrite_761823();
}
//]]>

document.writeln('</td></tr></TABLE></div>');
*/


//<!--Super Banner Hardcoded -->

var iRand = Math.floor(1000000*Math.random()+1);

//<!-- GetAD --> 
document.writeln('<div style="width:779px" class="addc"><table border="0" cellpadding="0" cellspacing="0"  class="adtc" ID="Table2"><tr valign="middle"><td >');
document.writeln('<IFRAME SCROLLING=no WIDTH=728 HEIGHT=90 MARGINHEIGHT=0 MARGINWIDTH=0 FRAMEBORDER=0 FRAMESPACING=0 SRC="http://arc9.msn.com/ADSAdClient31.dll?GetAd?PG=THMHHB?AN=1.0'+iRand+'"> ');
document.writeln('<!-- GetImage --> ');
document.writeln('<A HREF="http://arc9.msn.com/ADSAdClient31.dll?Redirect?PG=THMHHB?AN=1.0'+iRand+'"> ');
document.writeln('<IMG SRC="http://arc9.msn.com/ADSAdClient31.dll?GetImage?PG=THMHHB?AN=1.0'+iRand+'"> ');
document.writeln('</A> ');
document.writeln('</IFRAME>');
document.writeln('</td></tr></TABLE></div>');



document.writeln('	<TABLE width="780" cellpadding="0" cellspacing="0" class="sf" border="0" ID="Table3">');
document.writeln('		<TR>');
document.writeln('			<TD rowspan="2" width="118" class="sfl"><A TARGET="_top" HREF="http://g.msn.co.th/0nwthth0/00/14??PS=10322&NC=1236&CE=i01&CP=874&HL=%CB%B9%E9%D2%E1%C3%A1"><IMG width="118" height="35" src="http://www.msn.co.th/webinclude/th-th/images/msn.gif" alt="หน้าแรก"  border="0"/></A></TD>');
document.writeln('			<TD rowspan="2" width="1"  class="sfl" valign="bottom" nowrap="true"><A href="http://g.msn.co.th/THTHCONH4/19894.0?http://www.msn.co.th/houseandhome/&&CP=65001&CE=nl&CM=nhlc01&HL=%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%AD%E0%B8%B2%E0%B8%84%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%94%E0%B8%B4%E0%B8%99"><NOBR>บ้านอาคารที่ดิน</NOBR></A></TD>');
document.writeln('			<TD rowspan="3" width="113" class="sfm"><IMG src="http://www.msn.co.th/webinclude/images/msn/sft-mb.jpg" width="113" height="44" border="0"/></TD>');
document.writeln('			<TD width="100%" valign="bottom" align="left">');
document.writeln('				</TD><TD height="10" colspan="2"></TD>');
document.writeln('		</TR>');
document.writeln('		<TR ><TD class="sfi"align="right" rowspan="2"><A target=_top href="http://g.msn.co.th/THTHCONH4/19894.0?http://www.msn.co.th/Help&&ce=21&CP=874&HL=%A4%D3%B5%D4%AA%C1%A2%CD%A7%A4%D8%B3">คำติชมของคุณ</A>&nbsp;</TD><TD height="25" width="1" class="sfx">&nbsp;&nbsp;</TD></TR>');
document.writeln('		<TR><TD colspan="2"  height="9" class="sflb">&nbsp;</TD><TD class="sflb" id="sfi">&nbsp;</TD></TR>');
document.writeln('	</TABLE>');
document.writeln('	');
document.writeln('			<TABLE width="780" height="20" cellpadding="4" cellspacing="0" border="0" class="tb" ID="Table5">');
document.writeln('				');
document.writeln('				<TR valign="bottom"><TD class="tb">');
document.writeln('<!--modified the path above so that searchconfig.asp is generated by the tool-->');
document.writeln('');

document.writeln('		  <TABLE cellpadding=0 cellspacing=0 border=0 width=100% class=LSearch>');
		
document.writeln('		<TR>');
		
				
document.writeln('<FORM id=searchtheweb method=post action="http://www.msn.co.th/include/searchexecute.asp" name=searchfrm>');

document.writeln('	    <TD class=LSearchText align=left nowrap><B>ค้นหาเว็บ</B></TD>');
	  
document.writeln('		<TD class=LSearchItem align=right width=100% height=25><INPUT accesskey=S type=text class=LSearchInput name=SearchText maxlength=300></TD>');
document.writeln('		<TD class=LSearchItem>');
document.writeln('	&nbsp;<INPUT TYPE="HIDDEN"VALUE="MSN Search"></INPUT>');
document.writeln('		</TD><TD class="LSearchItem"><INPUT type="Submit" class="LSearchButton" value="ค้นหา" /></TD>');
	

document.writeln('<TD><IMG src="http://www.msn.co.th/webinclude/images/pw/s.gif" border="0" height="1" width="5" alt=""></IMG></TD>');

	

document.writeln('</FORM>');


document.writeln('</TR>');
document.writeln('</TABLE>');
document.writeln('</TD><TD width="150" class="tb"></TD></TR>');
document.writeln('			</TABLE>');
document.writeln('		<div style="width:780px;background-color:#5AA8DA" >');
document.writeln('		<DIV CLASS="hzl" width="780px"><span id="n"><A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/news/&&HL=%E0%B8%82%E0%B9%88%E0%B8%B2%E0%B8%A7&CP=65001&CE=l01">ข่าว</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/mobile/&&HL=%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%96%E0%B8%B7%E0&CP=65001&CE=l02">มือถือ</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/money/&&HL=%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%87%E0&CP=65001&CE=l03">การเงิน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.homedd.com/msn2homedd.html&&HL=%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B8%AD%E0&CP=65001&CE=l04">บ้านอาคารที่ดิน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/personals&&HL=%E0%B8%AB%E0%B8%B2%E0%B9%80%E0%B8%9E%E0%B8%B7%E0&CP=65001&CE=l05">หาเพื่อน</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/gamezone&&HL=Game%20Zone&CP=65001&CE=l06">Game Zone</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/classifieds&&HL=Classifieds&CP=65001&CE=l07">Classifieds</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://www.msn.co.th/technology&&HL=%E0%B9%80%E0%B8%97%E0%B8%84%E0%B9%82%E0%B8%99%E0&CP=65001&CE=l08">เทคโนโลยี</A> &nbsp;|</span><span id="n">&nbsp; <A HREF="http://g.msn.co.th/THTHCONH4/19894.1?http://msn.jobsdb.co.th&&HL=%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B9%81%E0%B8%A5%E0&CP=65001&CE=l09">งานและอาชีพ</A> &nbsp;</span></DIV></div>');

setCookie(msn_cookie_name,'yes', 7/60 ,'/'); // edit delay frame
	

}

function draw_msn_footer(){
	//return;
	tempsrt='';
	tempsrt+='<DIV class="spc">&nbsp;</DIV><DIV class="col"></DIV><br></DIV><TABLE width="780" height="21" cellpadding="0" cellspacing="0" border="0" class="dMSNME_1"><TR><TD class="big7"><A target=_top href=\'http://g.msn.co.th/0nwthth0/00/00??PS=10322&NC=1236&CE=31&CP=874&HL=%CB%B9%E9%D2%E1%C3%A1\'>หน้าแรก</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/02??PS=10322&NC=1236&CE=32&CP=874&HL=Hotmail\'>Hotmail</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/03??PS=10322&NC=1236&CE=33&CP=874&HL=%A4%E9%B9%CB%D2\'>ค้นหา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/06??PS=10322&NC=1236&CE=34&CP=874&HL=%BC%D9%E9%A4%B9%E1%C5%D0%A1%D2%C3%CA%B9%B7%B9%D2\'>ผู้คนและการสนทนา</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/27??PS=10322&NC=1236&CE=35&CP=874&HL=Messenger\'>Messenger</A>&nbsp; | &nbsp;<A target=_top href=\'http://g.msn.co.th/0nwthth0/00/46??PS=10322&NC=1236&CE=36&CP=874&HL=Mobile\'>Mobile</A></TD><TD class="fhelp" align="right"><A href="http://g.msn.co.th/THTHCONH4/19894.0?http://www.msn.co.th/Help&&ce=21&CP=874&HL=%A4%D3%B5%D4%AA%C1%A2%CD%A7%A4%D8%B3">คำติชมของคุณ</A>&nbsp;</TD></TR></TABLE>';

	tempsrt+='<TABLE width="780" height="16" cellpadding="0" cellspacing="0" border="0" ID="Table1"><TR><TD height="15" class="terms"><NOBR>&nbsp; &copy; 2005 Microsoft and its suppliers. All rights reserved.</NOBR> <NOBR>&nbsp; <A href="http://g.msn.co.th/0nwthth0/00/18??PS=10322&NC=1236&CE=41&CP=874&HL=%A2%E9%CD%A1%D3%CB%B9%B4%A1%D2%C3%E3%AA%E9">ข้อกำหนดการใช้</A></NOBR> <NOBR>&nbsp; <A href="http://g.msn.co.th/0nwthth0/00/19??PS=10322&NC=1236&CE=42&CP=874&HL=%C5%A7%E2%A6%C9%B3%D2%BA%B9%E4%AB%B7%EC%B9%D5%E9">ลงโฆษณาบนไซท์นี้</A></NOBR> <NOBR>&nbsp; <A href="http://g.msn.co.th/0nwthth0/00/20??PS=10322&NC=1236&CE=43&CP=874&HL=%A4%D3%AA%D5%E9%E1%A8%A7%CA%D4%B7%B8%D4%CA%E8%C7%B9%BA%D8%A4%A4%C5">คำชี้แจงสิทธิส่วนบุคคล</A></NOBR> <NOBR>&nbsp; <A href="http://g.msn.co.th/0nwthth0/00/58??PS=10322&NC=1236&CE=44&CP=874&HL=%B9%E2%C2%BA%D2%C2%B5%E8%CD%B5%E9%D2%B9%CA%E1%BB%C1%CD%D5%E0%C1%C5%A2%CD%A7">นโยบายต่อต้านสแปมอีเมลของ</A></NOBR></TD></TR></TABLE>';


	return tempsrt;
	
}





var msn_cookie_name='msnframe';
var msn_ref=getCookie(msn_cookie_name);
var msn_header=false;

//msn_ref='yes'; // make it

if (msn_ref=='yes') {		
	draw_msn_header();
	msn_header=true;	

	window.onunload=function () {		
		if (msn_header){
		setCookie(msn_cookie_name,'yes', 7/60 ,'/'); // edit delay frame 7 sec
		setCookie('myref','homedd', 7/60 ,'/'); // edit delay frame 7 sec
		//alert('set cookie expires 7 sec');
		}
	}

}else{
	setCookie(msn_cookie_name,'no', -1 ,'/');
}


var timehandle=null
var timedelay=0;
function wait_put_footer(){
	timedelay++;		
	if (timedelay>3 && loaddoc){
		TBObjects = document.all.tags("TABLE");
		if (TBObjects.length>20){
			clearTimeout(timehandle);
			show_msn_footer();
			//window.status="set footer";
			return;
		}	
	}
	timehandle=setTimeout('wait_put_footer()',1000);
}



function show_msn_footer() {
	if (!msn_header) return;
	

	var TBObjects = document.all.tags("TABLE");
	for (i=0;i<TBObjects.length;i++){			
			//alert(i+'\n\n'+TBObjects[i].innerHTML);
			//alert(TBObjects[i].bgColor);	
			if (TBObjects[i].id=='Table5') continue;
			if ((i>=3)&&(i<=10)) TBObjects[i].style.background='FFFFFF';
	}

	if (msn_header) {		
		//TBObjects[i-2].style.background='1A60A8';
		TBObjects[i-1].outerHTML=draw_msn_footer();
	}

	// -----MSN Function----------------------------------
	/*
	function shSky(){
		var sSky=document.getElementById('sky').style;iW=document.body.clientWidth; 
		if(iW>950){ 
		sSky.display='';
		} 
		else { 
		 sSky.display='none'; 
		} 
	} 
	window.onresize=shSky;shSky(); 
	*/
}


var loaddoc=false;
window.onload=function () {
	loaddoc=true;
	if (msn_header){
		setCookie(msn_cookie_name,'yes', 15/60,'/');	 // 15 sec	
		//alert('set cookie expires 20 hour ');
	}
}


wait_put_footer();




// end of MSN Frame function ----------------------------------------------------------------------------------------------------------------------------------------------------



function MM_openSugMailWindow(theURL) { //v2.0


  var features = "width=400,height=350,screenx=0,screeny=0,top=0,left=0";
  var winName = "popmail";
  window.open(theURL,winName,features);

}



//  THIS FUNCTION OPENS AND CLOSES BEST BETS
function toggleBB(srcElement, srcArrow, nav) {
	if (srcElement.style.display == "none") {
		srcElement.style.display = "";
		//srcArrow.src = "/HomeddWeb/images/front/home/ml0"+nav+"_l.gif";
	} else {
		srcElement.style.display = "none"
		//srcArrow.src = "/HomeddWeb/images/front/home/ml0"+nav+"_d.gif";
	}
	
	//toggleColor(srcElement.id);
}



// THIS FUNCTION CHANGES THE COLOR AND ADDS TEST DECORATION TO BEST BETS
function toggleColor(elem) {
//	e = eval("inner" + elem);
//	e = eval(elem);
//	p = eval(elem);
	if (e.style.color != '#000000')
	{
		e.style.color='#000000';
		e.style.textDecoration='none';
		p.style.color='#000000';
		p.style.textDecoration='none';
	}
	else
	{
		e.style.color='#003399';
		e.style.textDecoration='none';
		p.style.color='#003399';
		p.style.textDecoration='none';

	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function WinPop(FileName, PicName,Message,wWidth,hHeight,Popname) 
{
	if (navigator.userAgent.substring(0,9) == "Mozilla/4") {
		res_w = screen.width;
		res_h = screen.height;
		}else 	// For netscape 3.0
	{
	res_w = 800;	// enter Screen resolution width
	res_h = 600;		// enter Screen resolution height
	}
		win_width			= wWidth;
		win_height		= hHeight;
		resideBar		= 'no';
		scrollb			= 'yes';

	screen_x = (res_w - win_width)  /  2;
	screen_y = (res_h - win_height) /  2;
	Message = escape(Message);
//	alert(PicName)
//	alert(Message)
newWin = window.open('' + FileName + '?Pic=' + PicName + '&Msg=' + Message + '','' + Popname + '', 'width=' + win_width + ',height=' + win_height + ',screenx=' + screen_x + ',screeny=' + screen_y + ',left=' + screen_x + ',top=' + screen_y + ',scrollbars=' + scrollb + ',resizable=' + resideBar + '')	
//alert('htmlPopup.htm?Pic=' + PicName + '&Msg=' + Message + '','pop', 'width=' + win_width + ',height=' + win_height + ',screenx=' + screen_x + ',screeny=' + screen_y + ',left=' + screen_x + ',top=' + screen_y + ',scrollbars=' + scrollb + ',resizable=' + resideBar + '')
newWin.focus();
}

function GoToPage(frm,sztmp,sztmp2){
	frm.go_url.value = sztmp;
	frm.action = sztmp2;
	frm.submit();
}

function GoToPage2(frm, sztmp, sztmp2, strFType){
	frm.go_url.value = sztmp;
	frm.hFType.value = strFType;
	frm.action = sztmp2;
	frm.submit();
}

function showCalculator_new(arg) {
var win;
 if (win == null || win.closed){
win = window.open(arg, "cal_finance", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=720,height=500,top=0,left=0")
		}else{
				if (navigator.appName.substring(0.8) == "Netscape"){
						win.location.href = arg;
						this.win.focus();
				}else{
						win = window.open(arg, "win_cal", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=720,height=500,top=0,left=0")
				}
		}
}

function MM_openMailToWindow(theURL) { //v2.0
  var features = "width=400,height=382,screenx=0,screeny=0,top=0,left=0";
  var winName = "popmail";
  window.open(theURL,winName,features);
}

function MM_openMailToWindow400(theURL) { //v2.0
  var features = "width=400,height=340,screenx=0,screeny=0,top=0,left=0";
  var winName = "popmail";
  window.open(theURL,winName,features);
}

function pop_AddStore() { 
  var onURL = "/HomeddWeb/homedd/A_garden/frontweb/addStore_pop.jsp";
  var features = "width=581,height=520,screenx=0,screeny=0,top=0,left=0,scrollbars=yes";
  var winName = "Register_Your_Shop";
  window.open(onURL,winName,features);
}

function pop_AddStore_decor() { 
  var onURL = "/HomeddWeb/homedd/A_home_decor/frontweb/pop_FwStoreAdd.jsp";
  var features = "width=581,height=520,screenx=0,screeny=0,top=0,left=0,scrollbars=yes";
  var winName = "Register_Your_Shop";
  window.open(onURL,winName,features);
}

function pop_AddStore_Service() { 
  var onURL = "/HomeddWeb/homedd/A_home_services/frontweb/pop_FwStoreAdd.jsp";
  var features = "width=581,height=468,screenx=0,screeny=0,top=0,left=0,scrollbars=yes";
  var winName = "Register_Your_Shop";
  window.open(onURL,winName,features);
}