if (!window.matrix) {
    window.matrix = new Matrix(
        799,
        'today',
        14,
        'en',
        true);
    window.matrix.enableXDomain('rates.asiawebdirect.com');
}
displayMatrix({"startDate":1329004800000,"endDate":1330128000000,"today":1329004800000,"dates":[{"ts":1329004800000,"fmt":"20120212","inRes":false},{"ts":1329091200000,"fmt":"20120213","inRes":false},{"ts":1329177600000,"fmt":"20120214","inRes":false},{"ts":1329264000000,"fmt":"20120215","inRes":false},{"ts":1329350400000,"fmt":"20120216","inRes":false},{"ts":1329436800000,"fmt":"20120217","inRes":false},{"ts":1329523200000,"fmt":"20120218","inRes":false},{"ts":1329609600000,"fmt":"20120219","inRes":false},{"ts":1329696000000,"fmt":"20120220","inRes":false},{"ts":1329782400000,"fmt":"20120221","inRes":false},{"ts":1329868800000,"fmt":"20120222","inRes":false},{"ts":1329955200000,"fmt":"20120223","inRes":false},{"ts":1330041600000,"fmt":"20120224","inRes":false},{"ts":1330128000000,"fmt":"20120225","inRes":false}],"allDates":[{"ts":1329004800000,"fmt":"20120212","inRes":false},{"ts":1329091200000,"fmt":"20120213","inRes":false},{"ts":1329177600000,"fmt":"20120214","inRes":false},{"ts":1329264000000,"fmt":"20120215","inRes":false},{"ts":1329350400000,"fmt":"20120216","inRes":false},{"ts":1329436800000,"fmt":"20120217","inRes":false},{"ts":1329523200000,"fmt":"20120218","inRes":false},{"ts":1329609600000,"fmt":"20120219","inRes":false},{"ts":1329696000000,"fmt":"20120220","inRes":false},{"ts":1329782400000,"fmt":"20120221","inRes":false},{"ts":1329868800000,"fmt":"20120222","inRes":false},{"ts":1329955200000,"fmt":"20120223","inRes":false},{"ts":1330041600000,"fmt":"20120224","inRes":false},{"ts":1330128000000,"fmt":"20120225","inRes":false}],"hasPrevious":false,"detail":{"beginDate":"20120212","startDate":"20120212","endDate":"20120225"},"currency":"THB","currency_symbol":"&#3647;","currencies":[{"code":"USD","rate":"30.6900005196","name":"United States Dollars","symbol":"&#36;","selected":false},{"code":"GBP","rate":"48.5229754275","name":"United Kingdom Pounds","symbol":"&#163;","selected":false},{"code":"EUR","rate":"40.7461901966","name":"Euro","symbol":"&#8364;","selected":false},{"code":"JPY","rate":"0.3952703952","name":"Japan Yen","symbol":"&#165;","selected":false},{"code":"SGD","rate":"24.5842421749","name":"Singapore Dollars","symbol":"&#36;","selected":false},{"code":"MYR","rate":"10.2095808775","name":"Malaysia Ringgit","symbol":"&#82;&#77;","selected":false},{"code":"HKD","rate":"3.9571593826","name":"Hong Kong Dollars","symbol":"&#36;","selected":false},{"code":"NZD","rate":"25.5685768817","name":"New Zealand Dollars","symbol":"&#36;","selected":false},{"code":"AUD","rate":"33.0482408112","name":"Australia Dollars","symbol":"&#36;","selected":false},{"code":"SEK","rate":"4.6253049695","name":"Sweden Krona","symbol":"&#107;&#114;","selected":false},{"code":"THB","rate":"1.0000000000","name":"Thailand Baht","symbol":"&#3647;","selected":true},{"code":"ZAR","rate":"4.0416149654","name":"South Africa Rand","symbol":"&#82;","selected":false},{"code":"CAD","rate":"30.8306834361","name":"Canada Dollars","symbol":"&#36;","selected":false},{"code":"CNY","rate":"4.8742139202","name":"China Yuan Renmimbi","symbol":"&#165;","selected":false},{"code":"MXN","rate":"2.4199568402","name":"Mexico Pesos","symbol":"&#36;","selected":false},{"code":"INR","rate":"0.6199422351","name":"India Rupees","symbol":"\u20a8","selected":false},{"code":"CHF","rate":"33.6427303855","name":"Switzerland Francs","symbol":"&#67;&#72;&#70;","selected":false},{"code":"DKK","rate":"5.4826884212","name":"Denmark Kroner","symbol":"&#107;&#114;","selected":false}],"skins":{"matrix":{"template_matrix":"<!-- MATRIX -->\n<div id=\"currencyGroup\" name=\"currencyGroup\" isoCode=\"<%=currency%>\">\n  <div name=\"dealBlock\" id=\"dealBlock\" class=\"mtx_dealBlock\">\n  <table id=\"thematrix\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"mtx_theMatrixTable\" align=\"left\">\n<% var col_span = dates.length+2; %>\n<tr class=\"mtx_rowWHITE\">\n\t<td style=\"padding: 0 0 10px 0\" colspan=\"<%=col_span%>\">\n\t<div style=\"float:left\">\n\t\t\t\t<label class=\"rates_in_label\">Show rates in <\/label>\n\t\t\t\t<select name='ccSelect' onchange='setCurrency(this);' class=\"mtx_ccSelect\">\n\t\t\t\t  <% var currCcy; %>\n\t\t\t\t  <% for (var i = 0; i < currencies.length; i++) {\n\t\t\t\t\t   var c = currencies[i];\n\t\t\t\t  %>\n\t\t\t\t\t<option value=\"<%=c.code%>|<%=c.rate%>|<%=c.symbol%>\"<%if (c.selected) { currCcy = c; %> selected=\"selected\"<%}%>><%=c.code%> - <%=c.name%><\/option>\n\t\t\t\t  <% } %>\n\t\t\t\t<\/select>\n\t\t<\/div>\n\t<div style=\"float:left; padding-left:15px\">\n\t\t<span id=\"mtx_loading\" class=\"mtx_legendLoading\"><a class='mtx_loading'>&nbsp;<\/a><\/span>\n\t<\/div>\n\n\t<div style=\"float:right\">\n\t\t\t<div style=\"font-size:11px;\">\n\t\t\t\t<div class=\"mtx_awd_portal\">Check the boxes below<\/div>\n\t\t\t\t<% var tax_string = (parseFloat(ServicePercent)>0) ? 'exclude all' : '<span class=\"mtx_include_word\">include<\/span>'; %>\n\n\t\t\t<\/div>\n\t<\/div>\n\t<div style=\"clear: both; padding-top: 4px;\">\n\t\t<div style=\"float: right; font-weight: bold; font-size: 13px;\">Hover mouse over rates to see inclusions.<\/div>\n\t\t<span style=\"font-size: 13px;\">Prices below are per room and <%=tax_string%> taxes and service fees and will be charged in <strong><%=currCcy.name%><\/strong><\/span>\n\t<\/div>\n\t<\/td>\n<\/tr>\n\n    <%=dateRow%>\n\n<tr id=\"checkbox_row\">\n\t<td class=\"mtx_rowWHITE\">\n\t\t<span class=\"mtx_legendIcon\"><a class='mtx_legendRestrictions'><\/a>*<\/span>&nbsp;<span class=\"mtx_header_smallFont\">Additional restrictions apply.<\/span>\n\t<\/td>\n\t<% for (var i = 0; i < dates.length; i++) { %>\n\t<td class=\"mtx_date_select mtx_date_select_td col<%=i%> head\" style=\"text-align:center;\">\n\t\t<div class=\"mtx_date_select_div\">\n\t\t<input type=\"checkbox\" id=\"deal_check<%=[i]%>\" onclick=\"return toggleDate(this, '<%=dates[i].fmt%>', <%=i%>);\" \/>\n\t\t<span class=\"tip\"><\/span>\n\t\t<\/div>\n\t<\/td>\n\t<% } %>\n\t\n\t<td class=\"mtx_rowWHITE\">&nbsp;<\/td>\n<\/tr>\n\n\n    <!-- Rate Plan Row -->\n    <% for (var i = 0; i < results.length; i++) {\n         var result = results[i];\n         var even = (i % 2) == 1;\n         var cssClass = \"mtx_rowTitle\";\n         var cssRowClass = \"mtx_rowODD\";\n\t\t if (even) {\n\t\t\tcssClass = cssClass + \" mtx_rowTitle_even\";\n\t\t\tcssRowClass = \"mtx_rowEVEN\";\n\t\t }\n    %>\n<% if ((i % 16 == 0) && (i != 0)) { %><%=dateRow%><% } %>\n\t<tr id=\"<%=result.id%>\" class=\"deal_row <%=cssRowClass%>\" onmouseover=\"hilightRow(this);\" onmouseout=\"unHilightRow(this);\">\n        <td id=\"<%=result.id%>_title\" class=\"<%=cssClass%>\">\n        <% if (result.minNightStr!=\"\" || result.freeNights) { %>\n\t\t<div class=\"freenight-cover\">\n        <% if (result.freeNights) { %>\n        \t<div class=\"icon-freenight\" title=\"<%=result.freeNights%>\">FREE NIGHT<\/div>\n        <% } %>\n\t\t  <% if (result.minNightStr != \"\") { %>\n\t\t  <div class=\"min-night\">Min <%=result.minNightStr %> nights<\/div>\n\t\t  <% } %>\n\t\t<\/div>\n\t\t<% } %>\n          <span class=\"room_name\"><%=(result.room_type_name)?result.room_type_name:result.title%><\/span>\n          <% if (result.room_type_name) { %><br \/><%=result.title%><% } %>\n          <div id=\"more_info_wrapper\">\n            <% if (result.breakfast_included) { %>\n            <div class=\"mtxRPBF\">INCL. BREAKFAST<\/div>\n\t            <% } %>\n          \t<div id=\"<%=result.id%>_moreinfo\" class=\"mtxRPMoreInfo\" onclick=\"selectRatePlan('<%=result.id%>', '<%=escape(result.name)%>', '<%=result.rpCode%>', '<%=result.invSrc%>');\"><span>[+] <\/span><span style=\"text-decoration:underline;\">More...<\/span><\/div>\n          \t<div id=\"<%=result.id%>_hideinfo\" class=\"mtxRPMoreInfo\" style=\"display:none\" onclick=\"closeInfo('<%=result.id%>');\"><span>[-] <span><span style=\"text-decoration:underline;\">Hide...<\/span><\/div>\n          <\/div>\n        <\/td>\n        \n        <!-- Rate Cells -->\n        <% for (var j = 0; j < dates.length; j++) { %>\n        <%   var d = new Date(dates[j].ts);\n             var dayOfWeek = d.format('%a');\n             var cssClass = \"mtx_rate mtx_rt_\" + dayOfWeek;\n             if (even) cssClass = cssClass + \"_even\";\n             \n             var rate = result.rates[dates[j].fmt];\n        %>\n          <% if (rate) {\n               if (rate.hot) cssClass = cssClass + \" mtx_HotDeal\";\n               if (rate.restrict) cssClass = cssClass + \" mtx_restrictions\";\n               var rId = result.id + \"_\" + dates[j].fmt;\n          %>\n            <input type=\"hidden\" id=\"incl_<%=rId%>\" value=\"<%=rate.i%>\"\/>\n            <td id=\"<%=rId%>\" onmouseover=\"showRateBlurbField(this, 'incl_<%=rId%>', event);\" onmouseout=\"hideRateBlurb(this);\" class=\"<%=cssClass%> col<%=j%>\">\n                <span class=\"drc\" name=\"drc\"><%=rate.pf%><span class=\"or\"><%=rate.p%><\/span><\/span><%if (rate.restrict) {%><span class=\"mtx_restrictionSymbol\">*<\/span><% } %>\n            <\/td>\n          <% } else {\n               if (even) cssClass = cssClass + \" mtx_sold_even\";\n               else cssClass = cssClass + \" mtx_sold\";\n               if (dates[j].inRes) cssClass = cssClass + \"_res\";\n          %>\n            <td class=\"<%=cssClass%> col<%=j%>\">\n              <span class=\"drc\">SOLD<\/span>\n            <\/td>\n          <% } %>\n            \n        <% } %>\n        \n        <td class=\"mtx_submit <%if (even) {%>mtx_submit_even<%}%>\">\n          <div class=\"mtx_book_button_container\">\n            <div id=\"<%=result.id%>_submit\" class=\"submitDisabled\"  onclick=\"book('<%=result.id%>', '<%=escape(result.name)%>', '<%=result.rtId%>', '<%=result.rpCode%>', '<%=result.invSrc%>');\">&nbsp;<\/div>\n          <\/div>\n        <\/td>\n      <\/tr>\n    <% } %>\n    <% if (results.length == 0) {\n         var colSpan = dates.length + 3;\n    %>\n    <tr><td class=\"mtx_rowTitle\" colspan=\"<%=colSpan%>\">\n      <center>There are no rates available for this period, please enter or change your travelling dates<\/center>\n    <\/td><\/tr>\n    <% } %>\n<\/table>\n  <\/div>\n<\/div>\n","template_dateRow":"<!--  Date Row -->\n<tr>\n  <!-- currency converter cell -->\n  <td class=\"mtx_cc\">\n  \t<div style=\"padding-top:26px; float:left;\">\n\t\t<span class='mtx_legendHotDeals'><span class=\"mtx_HotDealLegend\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span>&nbsp;<span class=\"mtx_header_smallFont\"> Hot deal.<\/span><\/span>\n\t<\/div>\n<% \nvar prev_class = 'mtxPrevDayInActive'; var prev_onclick = '';\nvar prev_7_class = 'mtxPrev7DaysInActive'; var prev_7_onclick = '';\nif (hasPrevious) { \n\tprev_class = 'mtxPrevDay'; prev_onclick = 'onclick=\"mtx_prevPage()\"';\n\tprev_7_class = 'mtxPrev7Days'; var prev_7_onclick = 'onclick=\"mtx_prevPageJump()\"';\n} %>\n    <div id=\"mtxPrev7Cont\">\n    \t<div id=\"mtxPrev7Days\" class=\"<%=prev_7_class%>\" <%=prev_7_onclick%>>&nbsp;<\/div>\n    \t<div id=\"mtxPrev7TL\">&nbsp;<\/div>\n    \t<div id=\"mtxPrev7BL\">&nbsp;<\/div>\n    <\/div>\n  <\/td>\n  <% for (var i = 0; i < dates.length; i++) { %>\n  <%   \n\t   var seconds = dates[i].ts;\n\t   var t = new Date(seconds);\n\t   var offset = t.getTimezoneOffset()*60000;\n\t   var local_seconds = seconds+offset;\n\t   var d = new Date(local_seconds);\n\t   \n       var dayOfWeek = d.format('%a');\n       var cssClass = \"mtx_date mtx_hotel_\" + dayOfWeek;\n       var cDayOfWeek = '<span class=\"mtx_day_of_week\">' + dayOfWeek + '<\/span>'; \n       \n       var cDate = '<span class=\"mtx_date_of_week\">' + d.format('%d') + '<\/span>';\n       var cMonth = '<span class=\"mtx_day_of_week\">' + d.format('%h') + '<\/span>';\n       var cnt_class = (i==dates.length-1) ? ' mtxDateHdrCntLast' : '';\n       \n  %>\n    <td class=\"mtxDateRow <%=cssClass%>\">\n    <div class=\"mtxDateHdrCnt <%=cnt_class%>\">\n\t  <div>\n\t      <%=cDayOfWeek%>\n\t      <br\/>\n\t      <strong><%=cDate%><\/strong>\n\t      <br \/>\n\t      <%=cMonth%>\n      <\/div>\n   <\/div>\n   <\/td>\n  <% } %>\n  <td class=\"mtx_dateSelectCell\">\n    <div id=\"mtxNext7Cont\">\n      <div id=\"mtxNext7Days\" class=\"mtxNext7Days\" onclick=\"mtx_nextPageJump()\">&nbsp;<\/div>\n    \t<div id=\"mtxNext7TL\">&nbsp;<\/div>\n    \t<div id=\"mtxNext7TR\">&nbsp;<\/div>\n    \t<div id=\"mtxNext7BR\">&nbsp;<\/div>\n    <\/div>\n  <\/td>\n<\/tr>\n","template_outline":"<div class=\"mtx_matrixPanel\">\n  <div>\n    <div class=\"mtx_transparenttopright\"><\/div>\n    <div class=\"mtx_transparenttopleft\"><\/div>\n  <\/div>\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n  <tr>\n    <td>\n    <div class=\"checkbox-container\">\n    \t<div class=\"checkbox-top\">\n        \t<div class=\"checkbox-top-left\"><\/div>\n            <div class=\"checkbox-top-right\"><\/div>\n        <\/div>\n        <div class=\"body\">\n          <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n            <tr>\n              <td align=\"left\"><span class=\"big-text\">Check Availability &amp; Rates<\/span><br \/><\/td>\n              <td align=\"right\" class=\"small-text\"><em>Please enter the dates of your stay to check availability<\/em><\/td>\n            <\/tr>\n            <tr>\n              <td height=\"15\" colspan=\"2\" align=\"left\" background=\"http:\/\/rates.asiawebdirect.com\/asahi\/images\/line.jpg\"><\/td>\n            <\/tr>\n          <\/table>\n          <table width=\"98%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\n            <tr>\n              <td width=\"30%\" height=\"20\" class=\"big-text-ii\"><strong>Check-in:<\/strong><\/td>\n              <td width=\"10%\" height=\"20\" class=\"big-text-ii\"><strong>Nights:<\/strong><\/td>\n              <td width=\"28%\" height=\"20\" class=\"big-text-ii\"><strong>Check-Out:<\/strong><\/td>\n              <td width=\"32%\" height=\"20\">&nbsp;<\/td>\n            <\/tr>\n            <tr>\n              <td valign=\"middle\">\n              \t<img src=\"http:\/\/rates.asiawebdirect.com\/asahi\/images\/calendar.jpg\" style=\"cursor:pointer;vertical-align:middle\" width=\"22\" height=\"21\" align=\"absbottom\" onclick=\"javascript: \nprefixYear(2);opencalendar('dd\/mm\/yyyy','mtx_check_in',this,'updateMtxDate(\\\\'in\\\\');', event.x, event.y);return false;\" \/>\n\t\t\t\t<label style=\"vertical-align:middle\">\n\t                <input type=\"hidden\" id=\"mtx_check_in\" name=\"mtx_check_in\" value=\"\" \/>\n\t                <select name=\"check_in_date\" id=\"check_in_date\" onchange=\"dateSelectChange(this)\">\n\t                  <option>Mon 01<\/option>\n\t                                <\/select>\n\t                <select name=\"check_in_month\" id=\"check_in_month\" onchange=\"dateSelectChange(this)\">\n\t                  <option>Jan, 2011<\/option>\n\t                <\/select>\n\t             <\/label>\n\t          <\/td>\n              <td valign=\"middle\">\n              \t<select name=\"num_nights\" id=\"num_nights\" onchange=\"updateMtxDate('nights')\">\n                \t<option value=\"1\">01<\/option>\n                \t<option value=\"2\">02<\/option>\n                \t<option value=\"3\">03<\/option>\n                \t<option value=\"4\">04<\/option>\n                \t<option value=\"5\">05<\/option>\n                \t<option value=\"6\">06<\/option>\n                \t<option value=\"7\">07<\/option>\n                \t<option value=\"8\">08<\/option>\n                \t<option value=\"9\">09<\/option>\n                \t<option value=\"10\">10<\/option>\n                \t<option value=\"11\">11<\/option>\n                \t<option value=\"12\">12<\/option>\n                \t<option value=\"13\">13<\/option>\n                \t<option value=\"14\">14<\/option>\n                \t<option value=\"15\">15<\/option>\n                \t<option value=\"16\">16<\/option>\n                \t<option value=\"17\">17<\/option>\n                \t<option value=\"18\">18<\/option>\n                \t<option value=\"19\">19<\/option>\n                \t<option value=\"20\">20<\/option>\n                \t<option value=\"21\">21<\/option>\n                \t<option value=\"22\">22<\/option>\n                \t<option value=\"23\">23<\/option>\n                \t<option value=\"24\">24<\/option>\n                \t<option value=\"25\">25<\/option>\n                \t<option value=\"26\">26<\/option>\n                \t<option value=\"27\">27<\/option>\n                \t<option value=\"28\">28<\/option>\n                \t<option value=\"29\">29<\/option>\n                \t<option value=\"30\">30<\/option>\n                \t<option value=\"31\">31<\/option>\n                <\/select>\n              <\/td>\n              <td valign=\"middle\">\n              \t<img src=\"http:\/\/rates.asiawebdirect.com\/asahi\/images\/calendar.jpg\" style=\"cursor:pointer;vertical-align:middle\" width=\"22\" height=\"21\" align=\"absbottom\" onclick=\"javascript: \nprefixYear(2);opencalendar('dd\/mm\/yyyy','mtx_check_out',this,'updateMtxDate(\\\\'out\\\\');', event.x, event.y);return false;\" \/>\n\t\t\t\t<label style=\"vertical-align:middle\">\n\t              <input type=\"hidden\" id=\"mtx_check_out\" name=\"mtx_check_out\" value=\"\" \/>\n\t              <select name=\"check_out_date\" id=\"check_out_date\" onchange=\"dateSelectChange(this)\">\n\t                <option>Mon 01<\/option>\n\t              <\/select> <select name=\"check_out_month\" id=\"check_out_month\" onchange=\"dateSelectChange(this)\"s_out>\n\t                <option>Jan, 2011<\/option>\n\t              <\/select>\n\t            <\/label>\n\t          <\/td>\n              <td valign=\"middle\"><label for=\"mtx_filterOnRequest\" style=\"vertical-align:middle;\">\n                <input class=\"mtx_filterCell\" id=\"mtx_filterOnRequest\" type=\"checkbox\" style=\"margin-right:2px;padding:0;font-size:11px;\">\n                <span class=\"small-text\" style=\"vertical-align:middle;\">Only show offers with instant confirmation<\/span><\/label><\/td>\n            <\/tr>\n            <tr>\n              <td height=\"10\" colspan=\"4\"><\/td>\n            <\/tr>\n          <\/table>\n        <\/div>\n        \t<div class=\"checkbox-bottom\">\n        \t<div class=\"checkbox-bottom-left\"><\/div>\n            <div class=\"checkbox-button\"><img src=\"http:\/\/rates.asiawebdirect.com\/asahi\/images\/button.jpg\" onclick=\"loadPeriodMatrix()\" style=\"cursor:pointer\" \/><\/div>\n            <div class=\"checkbox-bottom-right\"><\/div>\n        <\/div>\n    <\/div>\n    <\/td>\n  <\/tr>\n<\/table>\n\n  <div id=\"outerdiv\" style=\"clear: both;\">\n    <div id=\"thematrixdiv\" style=\"background-color: white;\">&nbsp;<\/div>\n  <\/div>\n  <div class=\"mtx_transparentbottomright\"><\/div>\n  <div class=\"mtx_transparentbottomleft\"><\/div>\n<\/div>\n<div style=\"display: none\" displayStyle=\"block\" id=\"noDealSelectionError\" class=\"errorMessage\">error<\/div>\n","template_ratePlanBlurb0":"<div class=\"expand-line\">&nbsp;<\/div>\n<div class=\"expand-icon <%=odd_even %>\">&nbsp;<\/div>\n<% if (breakfast_included) { %><div class=\"icon_bf\"><span>Breakfast<br\/> Included<\/span><\/div><% } %>\n<% if (minNightStr != \"\") { %>\n<div class=\"icon_nights\">\n\t<div class=\"nights-count\"><%=minNightStr %><\/div>\n\t<div class=\"nights-text\">\n\t\tNights<br> min. stay\n\t<\/div>\n<\/div>\n<% } %>\n<div class=\"icon-guest\">\n\t<div class=\"guest-occupant2\">Rates for <br>\n                     <%=guest_fee_info.num_guest_included %> <%=(guest_fee_info.num_guest_included>1)?'guests':'guest'%>\n\t<\/div>\n\t<span class=\"more-guests\" onmouseover=\"showRateBlurb(this, 'Max <%=guest_fee_info.max_guest %> guests. Charges may apply for additional guests.')\" onmouseout=\"hideRateBlurb(this)\">(more guests?)<\/span>\n<\/div>","template_ratePlanBlurb1":"<div class=\"expand-line\">&nbsp;<\/div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"97%\">\n\t<tbody>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<div class=\"right-cover\">\n\t\t\t\t\t<div class=\"text-cover .title\">\n\t\t\t\t\t\t<div class=\"not-available-wrapper\"><div class=\"not-available\"><\/div><\/div>\n\t\t\t\t\t\t<span class=\"text-expand-title\"><%=(room_type_name)?room_type_name:name %><\/span><br>\n\t\t\t\t\t\t<% if (room_type_name) { %><span class=\"text-expand-subtitle\"><%=name %><\/span><% } %>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div id=\"free_nights_description\" class=\"free_nights_description\"><label class=\"mtx_discount\"><%=free_nights_description%><\/label><\/div>\n\t\t\t\t\t<div class=\"text-cover\">\n\t\t\t\t\t\t<span class=\"text-expand\"><%=description %><\/span>\n\t\t\t\t\t\t<div class=\"inclusions\"><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\n\t\t\t\t\t<% if (inclusions.length > 0) { %>\n\t\t\t\t\t<div class=\"feature-cover\">\n\t\t\t\t\t\t<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td align=\"left\" valign=\"top\" width=\"10%\"><div\n\t\t\t\t\t\t\t\t\t\t\tclass=\"features\">Features:<\/div>\n\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t\t<td align=\"left\" valign=\"top\" width=\"90%\"><div\n\t\t\t\t\t\t\t\t\t\t\tclass=\"subfeature-cover\">\n\t\t\t\t\t\t\t\t\t\t\t<ul class=\"sub-feature\">\n\t\t\t\t\t\t\t\t\t\t\t\t<% for (var i=0; i<inclusions.length; i++) { %>\n\t\t\t\t\t\t\t\t\t\t\t\t<li><%=inclusions[i] %><\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t<% } %>\n\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t\t<\/table>\n\t\t\t\t\t\t<div class=\"clear\"><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<% } %>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"total-cover\">\n\t\t\t\t\t\t<div class=\"first-row\">\n\t\t\t\t\t\t\t<div class=\"total_currency\"><span class=\"total_currency_symbol_sup\" name=\"ccs\"><%=symbol%><\/span><span class=\"text-total-number\" name=\"drc\"><%=total%><span class=\"or\"><%=tatal_local%><\/span><\/span><\/div>\n\t\t\t\t\t\t\t<div class=\"text-total\">Total: <\/div>\n\t\t\t\t\t\t\t<div class=\"save-icon\" style=\"display:<%=display%>\"><span class=\"rack_rate\" name=\"ccs\"><%=symbol%><\/span><span class=\"rack_rate\" name=\"drc\"><%=rack_rate%><span class=\"or\"><%=rack_rate_local%><\/span><\/span> SAVE <span class=\"saved_currency_symbol\" name=\"ccs\"><%=symbol%><\/span><span class=\"save-text\" name=\"drc\"><%=saved%><span class=\"or\"><%=saved_local%><\/span><\/span>\n\t\t\t\t\t\t\t\t<div class=\"right-background\"><\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div style=\"clear:both\"><\/div>\n\t\t\t\t\t\t\t<div class=\"total-nights\">for <span class=\"total-nights-number\"><%=total_nights%> <%=(total_nights>1)?'nights':'night'%><\/span><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"second-row\">\n\t\t\t\t\t\t\t<div class=\"button-container\">\n\t\t\t\t\t\t\t\t<div class=\"btn-pink\" onclick=\"book('<%=id%>', '<%=escape(name)%>', '<%=rtId%>', '<%=rpCode%>', '<%=invSrc%>');\"><%=bookState%><\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"total-description\">\n\t\t\t\t\t\t\t\t<strong>Payment:<\/strong> <% if(deposit==100) { %>Full pre-payment is required to secure your booking at this price.<% } else { %>Pay just <%=deposit%>% deposit to secure your booking.<% } %><br\/>\n\t\t\t\t\t\t\t\t<strong>Cancellation Policy:<\/strong><span class=\"cancellation_policy\"> <%=cancellation_policy%><\/span>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t<\/div>\n\t\t\t<\/td>\n\t\t<\/tr>\n\t<\/tbody>\n<\/table>\n<div id=\"mtxRatePlanNoDateSelected\" class=\"mtxRatePlanNoDateSelected\" style=\"display:none\">Please select your preferred dates to see how much you'll save.<\/div>"}},"ServicePercent":"15.75400","HotelID":"799","results":[{"rates":{"20120213":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Mon"},"20120214":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Tue"},"20120215":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Wed"},"20120216":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Thu"},"20120217":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Fri"},"20120218":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sat"},"20120219":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sun"},"20120220":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Mon"},"20120221":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Tue"},"20120222":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Wed"},"20120223":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Thu"},"20120224":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Fri"},"20120225":{"p":"10025.27","pf":"10,025","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sat"}},"blurb":"","name":"Special Offer","room_type_name":"Deluxe","description":"Rooms are spacious with a minimum of 48 square meters including your own private balcony overlooking great landscapes. All are air-conditioned and feature a polished teak wood floor, rattan curtains, rich Thai fabric and are equipped with either a king size or twin beds. <br \/>\r\n","title":"Special Offer","id":"145192","rtId":"17678","rpCode":"17678","invSrc":"L","rack_rate":"14321.82","deposit":10,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120213","end_date":"20120430","type":"F","text":null,"due_date":28},{"start_date":"20120501","end_date":"20121031","type":"O","text":null,"due_date":14}],"freeNights":"","breakfast_included":1,"inclusions":["Full buffet breakfast","Welcome drink on arrival","Tea and coffee in the room","Use of fitness centre","Use of tennis\/squash facility","Internet in the room","Includes Breakfast"],"guest_fee_info":{"num_guest_included":2,"max_guest":3,"max_adults":2,"max_children":0},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120213":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Mon"},"20120214":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Tue"},"20120215":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Wed"},"20120216":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Thu"},"20120217":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Fri"},"20120218":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sat"},"20120219":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sun"},"20120220":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Mon"},"20120221":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Tue"},"20120222":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Wed"},"20120223":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Thu"},"20120224":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Fri"},"20120225":{"p":"27590.57","pf":"27,590","i":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.<br>","dailyInclusions":"Includes Breakfast.<br><br><b>More details:<\/b> Full buffet breakfast, Welcome drink on arrival, Tea and coffee in the room, Use of fitness centre, Use of tennis\/squash facility, Internet in the room.","d":"Sat"}},"blurb":"","name":"Special Offer","room_type_name":"Pool Villa One Bedroom","description":"Each villa has a total living area of 422 square meters and is built on a hillside covering an area ranging from 700 to 1000 square meters. Spacious, elegant and unpretentious in their architectural design, it provides commanding views of Kan Tiang bay and the surrounding lush tropical forest. <br \/>\r\n","title":"Special Offer","id":"145193","rtId":"17680","rpCode":"17680","invSrc":"L","rack_rate":"32013.48","deposit":10,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120213","end_date":"20120301","type":"O","text":null,"due_date":14},{"start_date":"20120302","end_date":"20120430","type":"F","text":null,"due_date":28},{"start_date":"20120501","end_date":"20121031","type":"O","text":null,"due_date":14}],"freeNights":"","breakfast_included":1,"inclusions":["Full buffet breakfast","Welcome drink on arrival","Tea and coffee in the room","Use of fitness centre","Use of tennis\/squash facility","Internet in the room","Includes Breakfast"],"guest_fee_info":{"num_guest_included":2,"max_guest":4,"max_adults":2,"max_children":1},"promotions":[],"minNightStr":"","minNightTip":""}]});

