{% extends "marketplace/base.html" %}

{% block title %}{{guide}} -{% endblock %}

{% block loadtags %}{% for biz in businesses %}setupMap{{biz.id}}(); {% endfor %}{%endblock%}

{% block javascript %}
<link rel="stylesheet" href="{{MEDIA_URL}}/styles.css" type="text/css">
{% endblock %}

{% block content %}
<td colspan="2" align="left" valign="top" bgcolor="white" width="565"> 
                    
<div class="dirservhead" align="center" style="padding-top:0px; margin-top:0px"> 
  <br>
  <h1>{{guide}}</h1> 
  {% if guide.visitorsedition_set.all %} 
  {% for edition in guide.visitorsedition_set.all %}
  {% if forloop.first %}
  <p><span class="headline" style="margin-top:0px; padding-top:0px">{{guide.description}}</span>
	<a class="return" href="{{edition.get_absolute_url}}"><br> 
        Click here to return to {{edition}}.</a></p> 
  {% endif %}
  {% endfor %}
  {% endif %}
  <h4><strong><img src="{{MEDIA_URL}}/images/menus/menu_small.gif" alt="Menu" width="33" height="40"><br> 
    This icon denotes a Cuisine Connection advertiser.<br> 
    Click the icon to see their menu selection</strong></h4> 
  <p><a href="#bluehill" class="dirservlinks">Blue Hill</a><span class="bullet">&bull;</span><a href="#brooklin" class="dirservlinks">Brooklin</a><span class="bullet">&bull;</span><a href="#brooksville" class="dirservlinks">Brooksville</a><span class="bullet">&bull;</span><a href="#castine" class="dirservlinks">Castine</a><span class="bullet">&bull;</span><a href="#deerisle" class="dirservlinks">Deer Isle</a><span class="bullet">&bull;</span><a href="#penobscot" class="dirservlinks">Penobscot</a><br> 
    <a href="#sedgwick" class="dirservlinks">Sedgwick/Sargentville</a><span class="bullet">&bull;</span><a href="#stonington" class="dirservlinks">Stonington</a><span class="bullet">&bull;</span><a href="#surry" class="dirservlinks">Surry</a><strong><a href="../../../images/seasonal_guide/cc_arborvine.pdf" target="_blank"></a></strong></p> 
  <hr> 
</div> 
<div class="dirservhead" style="padding-top:0px; margin-top:0px"> 
{% regroup guide.businesses.all by point.town.name as town_list %}
{% for town in town_list %}
  <h2 style="padding-top:0px; margin-top:0px"><a name="{{town.grouper|cut:" "}}"></a>{{town.grouper}} <br> 
  <a class="return" href="#top">Return to top</a></h2> 
  {% for business in town.list %}
    <p>
	{% if business.menu_set.all%}<a class="menu" href="{% for menu in business.menu_set.all%}{%if forloop.first %}{{menu.file.url}}{%endif%}{%endfor%}" target="_blank"><img src="{{MEDIA_URL}}images/menus/menu_small.gif" alt="Menu" width="33" height="40" align="right" border="0"></a>{% endif %}
	<strong>{{business}}</strong>, {% if business.point %}{{business.point.address}},{%endif%} {% if business.phone%}{{business.phone|cut:"207-"}}.{%endif%} {% if business.brief_hours %}{{business.brief_hours}} {{business.brief}}{%endif%} {% if business.url%}<a href="{{business.url}}" target="_blank">{{busienss.url|cut:"http://"}}</a>{%endif%}
    </p> 
  {% endfor %}
<br>
{% endfor %}
</div>
</td>
{% endblock %}
