function v2js_ResultsTemplate(c){var h=new StringCat();var a=0;if(c.velocityCount){a=c.velocityCount}for(var e=0;e<c.hotelIndexes.length;e++){var b=c.hotelIndexes[e];a=e;var f=c.hotelIndexes.RetrieveHotel(b);h.push('<div class="hotelResult');if(f.isPreferred){h.push(" hotelPreferred")}h.push('">    <div class="hotelSummaryImage">        <!-- left -->        <img src=\'');h.push(c.hotelIndexes.RetrieveFirstImage(f.imageUrls));h.push("' alt='");h.push(f.name);h.push('\' />        <div class="hotelSummaryMorePhotos" id="hotelSummaryMorePhotos');h.push(b);h.push('">        </div>    </div>    <div class="hotelSummary">        <!-- centre -->        <ol>            <li class="hotelSummaryName">                <h3>                    ');h.push(f.hotelName);h.push('</h3>            </li>            <li class="hotelSummaryName">                <h3>                    ');h.push(f.resort);h.push('</h3>            </li>            <li class="starRating">                <ol>                    <li>');for(var d=0;d<f.starImages.length;d++){var g=f.starImages[d];a=d;h.push('                        <img src="');h.push(g);h.push('" alt="star" />                        ')}a=e;h.push(' </li>                </ol>            </li>            <li class="hotelSummaryDesc"></li>            <!-- <li class="hotelSummaryName"><a href=\'javascript:showDetails("divDetails');h.push(b);h.push('");\'> Show Details</a> </li> -->        </ol>        <br class="clearBoth"/>    </div>    <div class="hotelSummaryPrice">        <!-- right -->        <div class="hotelSummaryPriceText">                   </div>        <a href="');h.push(f.hotelUrl);h.push('" title="More Details">            <img id=\'_sel');h.push(f.key);h.push("' src='/App_Themes/Default/Images/Common/moredetails.gif' />        </a>    </div></div>")}a=0;h.push(" ");return h.toString()};