if (!window.matrix) {
    window.matrix = new Matrix(
        1599,
        '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.8700008052","name":"United States Dollars","symbol":"&#36;","selected":false},{"code":"GBP","rate":"48.6359209699","name":"United Kingdom Pounds","symbol":"&#163;","selected":false},{"code":"EUR","rate":"40.7417174706","name":"Euro","symbol":"&#8364;","selected":false},{"code":"JPY","rate":"0.3975822109","name":"Japan Yen","symbol":"&#165;","selected":false},{"code":"SGD","rate":"24.4757192030","name":"Singapore Dollars","symbol":"&#36;","selected":false},{"code":"MYR","rate":"10.1948479716","name":"Malaysia Ringgit","symbol":"&#82;&#77;","selected":false},{"code":"HKD","rate":"3.9806320833","name":"Hong Kong Dollars","symbol":"&#36;","selected":false},{"code":"NZD","rate":"25.5202296908","name":"New Zealand Dollars","symbol":"&#36;","selected":false},{"code":"AUD","rate":"32.9352039155","name":"Australia Dollars","symbol":"&#36;","selected":false},{"code":"SEK","rate":"4.6338133023","name":"Sweden Krona","symbol":"&#107;&#114;","selected":false},{"code":"THB","rate":"1.0000000000","name":"Thailand Baht","symbol":"&#3647;","selected":true},{"code":"ZAR","rate":"3.9825270449","name":"South Africa Rand","symbol":"&#82;","selected":false},{"code":"CAD","rate":"30.8222145354","name":"Canada Dollars","symbol":"&#36;","selected":false},{"code":"CNY","rate":"4.9044374820","name":"China Yuan Renmimbi","symbol":"&#165;","selected":false},{"code":"MXN","rate":"2.4112384516","name":"Mexico Pesos","symbol":"&#36;","selected":false},{"code":"INR","rate":"0.6239515076","name":"India Rupees","symbol":"\u20a8","selected":false},{"code":"CHF","rate":"33.6806511267","name":"Switzerland Francs","symbol":"&#67;&#72;&#70;","selected":false},{"code":"DKK","rate":"5.4812764489","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.03823","HotelID":"1599","results":[{"rates":{"20120217":{"p":"5522.52","pf":"5,522","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Fri"},"20120218":{"p":"5522.52","pf":"5,522","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Sat"},"20120223":{"p":"5522.52","pf":"5,522","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Thu"},"20120224":{"p":"5522.52","pf":"5,522","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Fri"},"20120225":{"p":"5522.52","pf":"5,522","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Sat"}},"blurb":"Rates are for 2 people, maximum 2 adults and 1 child. Total guests cannot exceed 3 people.\n\nA cozy and modern in style, Gardenia villa\u2019s extensive glass doors and windows create a wonderfully light and airy atmosphere.","name":"Gardenia Villa","room_type_name":null,"description":"A cozy and modern in style, Gardenia villa\u2019s extensive glass doors and windows create a wonderfully light and airy atmosphere.","title":"Gardenia Villa","id":"85158","rtId":"163789","rpCode":"163789","invSrc":"W","rack_rate":"6516.57","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120217","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Clothes line \/ airer","Free in-house movies","Wireless \/ WiFi","Bathrobes","Opening windows","Dryer","Iron & ironing board","Balcony \/ courtyard","Kitchenette (basic facilities)","Radio","DVD player","TV","Trouser press","Satellite \/ Cable","Dishwasher","Hairdryer","Shower over bath","Alarm clock","Mini bar","Air conditioning","Ceiling fans","Non-smoking or smoking rooms on request","Refrigerator - full size","CD player"],"guest_fee_info":{"num_guest_included":2,"max_guest":3,"max_adults":2,"max_children":1},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120222":{"p":"6372.13","pf":"6,372","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Wed"},"20120223":{"p":"6372.13","pf":"6,372","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Thu"},"20120224":{"p":"6372.13","pf":"6,372","i":"rate base on 2 person include abf<br>","dailyInclusions":"rate base on 2 person include abf","d":"Fri"}},"blurb":"Rates are for 2 people, maximum 2 adults and 1 child. Total guests cannot exceed 3 people.\n - Extra adults will be charged at 942 THB per night\n\nOrchid Villa shares the same traditional Thai architecture as Jasmine. 1 king size bed on the main floor, and 1 queen size bed in the loft.","name":"Orchid Villa","room_type_name":null,"description":"Orchid Villa shares the same traditional Thai architecture as Jasmine. 1 king size bed on the main floor, and 1 queen size bed in the loft.","title":"Orchid Villa","id":"85162","rtId":"163800","rpCode":"163800","invSrc":"W","rack_rate":"7078.17","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120222","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Opening windows","Dishwasher","Clothes line \/ airer","Radio","Hairdryer","Balcony \/ courtyard","Bathrobes","Trouser press","Air conditioning","Free in-house movies","Kitchenette (basic facilities)","Iron & ironing board","Mini bar","Non-smoking or smoking rooms on request","Shower over bath","Ceiling fans","Satellite \/ Cable","Dryer","Refrigerator - full size","DVD player","Wireless \/ WiFi","TV","CD player"],"guest_fee_info":{"num_guest_included":2,"max_guest":3,"max_adults":2,"max_children":1},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120217":{"p":"8071.37","pf":"8,071","i":"include daily breakfast rate on 2 person<br>","dailyInclusions":"include daily breakfast rate on 2 person","d":"Fri"},"20120218":{"p":"8071.37","pf":"8,071","i":"include daily breakfast rate on 2 person<br>","dailyInclusions":"include daily breakfast rate on 2 person","d":"Sat"}},"blurb":"Rates are for 2 people, maximum 2 adults and 1 child. Total guests cannot exceed 2 people.\n\nA one bedroom deluxe villa design with marble, granite and hardwood throughout. This villa has sweeping panoramic views of the coastline and outer islands.It has a very spacious indoor outdoor feeling.","name":"Jumpee Villa","room_type_name":null,"description":"A one bedroom deluxe villa design with marble, granite and hardwood throughout. This villa has sweeping panoramic views of the coastline and outer islands.It has a very spacious indoor outdoor feeling.","title":"Jumpee Villa","id":"85157","rtId":"163798","rpCode":"163798","invSrc":"W","rack_rate":"8426.51","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120217","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Kitchenette (basic facilities)","Bathrobes","Mini bar","Wireless \/ WiFi","CD player","TV","Opening windows","Free in-house movies","In-room spa bath \/ Jacuzzi","Ceiling fans","Dishwasher","Satellite \/ Cable","Balcony \/ courtyard","Air conditioning","Hairdryer","Clothes line \/ airer","Radio","Iron & ironing board","Non-smoking or smoking rooms on request","DVD player","Separate shower & bath","Dryer","Trouser press","Refrigerator - bar size"],"guest_fee_info":{"num_guest_included":2,"max_guest":2,"max_adults":2,"max_children":1},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120216":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Thu"}},"blurb":"Rates are for 2 people, maximum 4 adults and 2 children. Total guests cannot exceed 4 people.\n - Extra adults will be charged at 942 THB per night\n\nWith 2 bedroom 2 bath villa has sweeping panoramic views of the coastline and outer islands. This spacious villa is designed with marble, granite, and hardwoods throughout. A private pool is set into the terrace.","name":"Camellia Villa","room_type_name":null,"description":"With 2 bedroom 2 bath villa has sweeping panoramic views of the coastline and outer islands. This spacious villa is designed with marble, granite, and hardwoods throughout. A private pool is set into the terrace.","title":"Camellia Villa","id":"85164","rtId":"163796","rpCode":"163796","invSrc":"W","rack_rate":"10672.90","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120214","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Wireless \/ WiFi","Refrigerator - bar size","CD player","Hairdryer","Balcony \/ courtyard","In-room spa bath \/ Jacuzzi","Clothes line \/ airer","Separate shower & bath","Mini bar","Air conditioning","TV","Satellite \/ Cable","Free in-house movies","Kitchenette (basic facilities)","Iron & ironing board","Trouser press","Opening windows","Bathrobes","Ceiling fans","Dishwasher","DVD player","Dryer","Radio","Non-smoking or smoking rooms on request"],"guest_fee_info":{"num_guest_included":2,"max_guest":4,"max_adults":4,"max_children":2},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120212":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Sun"},"20120213":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Mon"},"20120217":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Fri"},"20120218":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Sat"},"20120223":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Thu"},"20120224":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Fri"},"20120225":{"p":"8496.18","pf":"8,496","i":"Rate is based on 2 persons include daily breakfast<br>","dailyInclusions":"Rate is based on 2 persons include daily breakfast","d":"Sat"}},"blurb":"Rates are for 2 people, maximum 4 adults and 2 children. Total guests cannot exceed 4 people.\n - Extra adults will be charged at 942 THB per night\n\nThis 2 bedroom, 2 bath villa has beautiful ocean views of the coastline and outer islands. It has all the comforts of home including a well equipped kitchen.","name":"Amarin Villa","room_type_name":null,"description":"This 2 bedroom, 2 bath villa has beautiful ocean views of the coastline and outer islands. It has all the comforts of home including a well equipped kitchen.","title":"Amarin Villa","id":"85161","rtId":"163586","rpCode":"163586","invSrc":"W","rack_rate":"10672.90","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120212","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Iron & ironing board","Hairdryer","Opening windows","DVD player","Air conditioning","Bathrobes","Refrigerator - full size","TV","Ceiling fans","Balcony \/ courtyard","In-room spa bath \/ Jacuzzi","Free in-house movies","Wireless \/ WiFi","Mini bar","Fans","Bath","Separate shower & bath","CD player","Trouser press","Non-smoking or smoking rooms on request","Dishwasher","Clothes line \/ airer","Shower","Alarm clock","Radio","Kitchenette (basic facilities)","Satellite \/ Cable"],"guest_fee_info":{"num_guest_included":2,"max_guest":4,"max_adults":4,"max_children":2},"promotions":[],"minNightStr":"","minNightTip":""},{"rates":{"20120222":{"p":"13169.07","pf":"13,169","i":"rate base on 2 person include breakfast<br>","dailyInclusions":"rate base on 2 person include breakfast","d":"Wed"},"20120223":{"p":"13169.07","pf":"13,169","i":"rate base on 2 person include breakfast<br>","dailyInclusions":"rate base on 2 person include breakfast","d":"Thu"},"20120224":{"p":"13169.07","pf":"13,169","i":"rate base on 2 person include breakfast<br>","dailyInclusions":"rate base on 2 person include breakfast","d":"Fri"}},"blurb":"Rates are for 2 people, maximum 4 adults and 2 children. Total guests cannot exceed 6 people.\n - Extra adults will be charged at 942 THB per night\n\nLeelawadee Villa is Sandalwood's most secluded villa and features a Jacuzzi plunge pool on a covered outdoor balcony overlooking Chaweng beach and the neighboring islands.","name":"Leelavadee Villa","room_type_name":null,"description":"Leelawadee Villa is Sandalwood's most secluded villa and features a Jacuzzi plunge pool on a covered outdoor balcony overlooking Chaweng beach and the neighboring islands.","title":"Leelavadee Villa","id":"85160","rtId":"163788","rpCode":"163788","invSrc":"W","rack_rate":"11616.82","deposit":100,"restrictions":{"MinNightsStay":[],"MaxNightsStay":[],"OnRequest":[],"DayUse":[],"ClosedToArrival":[],"ClosedToDeparture":[]},"ratePlanInvalidDates":null,"cancellation_policy":[{"start_date":"20120222","end_date":"20120812","type":"T","text":"Cancellations or changes to bookings for this room must be made at least 14 days prior to the check in date and time or you will be charged the full amount of the booking.","due_date":null}],"freeNights":"","breakfast_included":0,"inclusions":["Opening windows","Dishwasher","Refrigerator - bar size","Air conditioning","Full kitchen","Balcony \/ courtyard","Dryer","Ceiling fans","Clothes line \/ airer","Non-smoking or smoking rooms on request","Wireless \/ WiFi","Mini bar","Trouser press","Bathrobes","Radio","Satellite \/ Cable","CD player","Free in-house movies","TV","Separate shower & bath","Hairdryer","DVD player","In-room spa bath \/ Jacuzzi","Iron & ironing board"],"guest_fee_info":{"num_guest_included":2,"max_guest":6,"max_adults":4,"max_children":2},"promotions":[],"minNightStr":"","minNightTip":""}]});

