// JScript source code
  AC_FL_RunContent = 0;
  
  var myMonths=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var myDays= new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
  today=new Date();
  thisDay=myDays[today.getDay()];
  thisMonth=myMonths[today.getMonth()];
  thisYear=today.getFullYear();
  thisDate=today.getDate();
  todaysDate=thisDay+", "+thisDate+" "+thisMonth+" "+thisYear;

function topContent(FlashName, pageName)
{
  var temp;
  temp = '<tr>';
  temp+= '<TD align="center">';
  temp+= '<TABLE class="header" cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%">';
  temp+= '<tr valign="middle">';
  temp+= '<td align="left">';
  temp+= '<A href="index.htm">';
  temp+= '<IMG alt="House of Thai" src="images/HotLogo4.png" border="0">';
  temp+= '</A>';
  temp+= '</td>';
  document.write(temp);
	
	getFlash(FlashName);
  
  temp = '<td align="right">';
  temp+= '<div>';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'HoTbuilding.jpg';
  temp+= "'";
  temp+= ')">';
  temp+= '<IMG alt="House of Thai Building" src="images/building.jpg" border="0">';
  temp+= '</a>';
  temp+= '</div>';
  temp+= '</td>';
  temp+= '</tr>';
  document.write(temp);

  getNav(pageName);
  
  temp = '</TABLE>';
  temp+= '</TD>';
  temp+= '</tr>';
  document.write(temp);
}

function getFlash(name)
{
document.write('<td align="center" class="flashPart">');
document.write('<div class="flashPart">');

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '400',
			'height', '160',
			'src', name,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', name,
			'bgcolor', '#ffffff',
			'name', name,
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', name,
			'salign', ''
			); //end AC code
	}

document.write('</div>');
document.write('</td>');
}

function getNav(pageName)
{
  var temp;
  temp = '<tr valign="bottom">';
  temp+= '<td colspan="3" class="navigation_cell" align="center" valign="middle" height="28" width="100%">';
  temp+= '<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="White">';
  temp+= '<tr valign="middle">';
  temp+= '<td height="28" width="6" align="center">';
  temp+= '<img src="images/menuBack_left.jpg">';
  temp+= '</td>';
  temp+= '<td height="28" align="center" background="images/menuBack_middle';
  if (pageName == 'Home')
  {
    temp+= '_select';
  }
  temp+= '.jpg">';
  temp+= '<a class="navigation" href="index.htm" target="_top">';
  temp+= 'Home';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '<td height="28" align="center" background="images/menuBack_middle';
  if (pageName == 'Lunch')
  {
    temp+= '_select';
  }
  temp+= '.jpg">';
  temp+= '<a class="navigation" href="HoT_LunchMenu.htm" target="_top">';
  temp+= 'Lunch Menu';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '<td height="28" align="center" background="images/menuBack_middle';
  if (pageName == 'Dinner')
  {
    temp+= '_select';
  }
  temp+= '.jpg">';
  temp+= '<a class="navigation" href="HoT_DinnerMenu.htm" target="_top">';
  temp+= 'Dinner Menu';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '<td height="28" align="center" background="images/menuBack_middle.jpg">';
  temp+= '<a class="navigation" href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=house+of+thai+beavercreek&amp;sll=37.0625,-95.677068&amp;sspn=40.001301,92.8125&amp;ie=UTF8&amp;view=map&amp;ei=0yiXSbHQFYqwNvWR7LIJ&amp;attrid=&amp;cid=39721612,-84062118,5082984056641693863&amp;ll=39.731944,-84.057941&amp;spn=0.03802,0.090637&amp;z=14&amp;iwloc=A" target="_blank">';
  temp+= 'Location';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '<td height="28" align="center" background="images/menuBack_middle.jpg">';
  temp+= '<a class="navigation" href="http://www.urbanspoon.com/r/123/1346515/restaurant/Dayton/Dayton/House-of-Thai-Beavercreek" target="_blank">';
  temp+= 'Urbanspoon';
  temp+= '</a>';
  temp+= '</td>';

  temp+= '<td height="28" align="center" background="images/menuBack_middle.jpg">';
  temp+= '<table border="0" cellspacing="0" cellpadding="0">';
  temp+= '<tr valign="middle">';
  temp+= '<td align="right" width="16">';
  temp+= '<a class="navigation" href="http://www.facebook.com/pages/Beavercreek-OH/House-of-Thai/81035020266?ref=ts" target="_blank">';
  temp+= '<img src="images/facebook.gif">';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '<td height="28" align="left">';
  temp+= '<a class="navigation" href="http://www.facebook.com/pages/Beavercreek-OH/House-of-Thai/81035020266?ref=ts" target="_blank">';
  temp+= 'Facebook';
  temp+= '</a>';
  temp+= '</td>';
  temp+= '</tr>';
  temp+= '</table>';
  temp+= '</td>';


  temp+= '<td height="28" width="8" align="left">';
  temp+= '<img src="images/menuBack_right.jpg">';
  temp+= '</td>';
  temp+= '</tr>';
  temp+= '</table>';
  temp+= '</td>';
  temp+= '</tr>';
  document.write(temp);
}

function lunchBox()
{
  var temp;
  temp = '<TABLE width="400" cellSpacing="0" cellPadding="0" border="1" align="center">';
  temp+= '<TR>';
  temp+= '<TD colspan="3" align="center">';
  temp+= '<div class="lunchBoxTitle">Daily Lunch Box Express</div>';
  temp+= '</TD>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD colspan="3" align="center">';
  temp+= '<div class="lunchBoxWith">Served with steamed rice and appetizer samplers</div>';
  temp+= '</TD>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD align="right">';
  temp+= '<div class="lunchBoxDay">Mon:&nbsp;</div>';
  temp+= '</TD>';
  if (today.getDay()==1)
  {
    temp+= '<td align="left" class="lunchBoxDescToday">';
  }
  else
  {
    temp+= '<td align="left" class="lunchBoxDesc">';
  }
  temp+= '&nbsp;Pad Thai &amp; Red Curry</td>';
  temp+= '<td align="center">';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'Mon LB.jpg';
  temp+= "'";
  temp+= ')"><img src="images/thumbs/Mon LB.jpg" alt="Pad Thai & Red Curry"></a>';
  temp+= '</td>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD align="right">';
  temp+= '<div class="lunchBoxDay">Tue:&nbsp;</div>';
  temp+= '</TD>';
  if (today.getDay()==2)
  {
    temp+= '<td align="left" class="lunchBoxDescToday">';
  }
  else
  {
    temp+= '<td align="left" class="lunchBoxDesc">';
  }
  temp+= '&nbsp;Pad Thai &amp; Basil Chicken</td>';
  temp+= '<td align="center">';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'Tue LB.jpg';
  temp+= "'";
  temp+= ')"><img src="images/thumbs/Tue LB.jpg" alt="Pad Thai & Basil Chicken"></a>';
  temp+= '</td>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD align="right">';
  temp+= '<div class="lunchBoxDay">Wed:&nbsp;</div>';
  temp+= '</TD>';
  if (today.getDay()==3)
  {
    temp+= '<td align="left" class="lunchBoxDescToday">';
  }
  else
  {
    temp+= '<td align="left" class="lunchBoxDesc">';
  }
  temp+= '&nbsp;Pad See Ew &amp; Larb Gai</td>';
  temp+= '<td align="center">';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'Wed LB.jpg';
  temp+= "'";
  temp+= ')"><img src="images/thumbs/Wed LB.jpg" alt="Pad See Ew & Larb Gai"></a>';
  temp+= '</td>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD align="right">';
  temp+= '<div class="lunchBoxDay">Thu:&nbsp;</div>';
  temp+= '</TD>';
  if (today.getDay()==4)
  {
    temp+= '<td align="left" class="lunchBoxDescToday">';
  }
  else
  {
    temp+= '<td align="left" class="lunchBoxDesc">';
  }
  temp+= '&nbsp;Pad Kee Mow &amp; Yellow Curry</td>';
  temp+= '<td align="center">';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'Thu LB.jpg';
  temp+= "'";
  temp+= ')"><img src="images/thumbs/Thu LB.jpg" alt="Pad Kee Mow &amp; Yellow Curry"></a>';
  temp+= '</td>';
  temp+= '</TR>';
  temp+= '<TR>';
  temp+= '<TD align="right">';
  temp+= '<div class="lunchBoxDay">Fri:&nbsp;</div>';
  temp+= '</TD>';
  if (today.getDay()==5)
  {
    temp+= '<td align="left" class="lunchBoxDescToday">';
  }
  else
  {
    temp+= '<td align="left" class="lunchBoxDesc">';
  }
  temp+= '&nbsp;Pad Thai &amp; Panang Curry</td>';
  temp+= '<td align="center">';
  temp+= '<a href="javascript:get_pic(';
  temp+= "'";
  temp+= 'Fri LB.jpg';
  temp+= "'";
  temp+= ')"><img src="images/thumbs/Fri LB.jpg" alt="Pad Thai &amp; Panang Curry"></a>';
  temp+= '</td>';
  temp+= '</TR>';
  temp+= '</TABLE>';
  document.write(temp);
}
