<?xml version="1.0" encoding="UTF-8"?>
<pages type="array">
  <page>
    <content>&lt;% 
   if session[:contact]
     @contact = session[:contact]
   end
%&gt;
&lt;% form_for :contact, :url =&gt; { :controller =&gt; :main, :action =&gt; :send_mail}  do |f| %&gt;

&lt;%= f.error_messages %&gt;

&lt;p&gt;
&lt;span style='font-size:0.8em'&gt;First Name:&lt;/span&gt;
&lt;br /&gt;&lt;%= f.text_field :first_name, :size =&gt; 10 %&gt;
&lt;br /&gt;&lt;span style='font-size:0.8em'&gt;Last Name:&lt;/span&gt;
&lt;br /&gt;&lt;%= f.text_field :last_name, :size =&gt; 10 %&gt;
&lt;br /&gt;&lt;span style='font-size:0.8em'&gt;E-mail:&lt;/span&gt; 
&lt;br /&gt;&lt;%= f.text_field :email, :size =&gt; 20 %&gt;
&lt;br /&gt;&lt;span style='font-size:0.8em'&gt;Phone number (all numbers, no spaces or dashes):&lt;/span&gt;
&lt;br /&gt;&lt;%= f.text_field :phone_number, :size =&gt; 10 %&gt;
&lt;br /&gt;&lt;span style='font-size:0.8em'&gt;Regarding:&lt;/span&gt;
&lt;br /&gt;&lt;% @topics = Topic.find(:all) %&gt;
      &lt;%= f.collection_select :topic_id, @topics, :id, :topic_description %&gt;
&lt;br /&gt;&lt;br /&gt;&lt;%= f.text_area :comment, :rows =&gt; 10, :cols =&gt; 50 %&gt;
&lt;br /&gt;&lt;%= f.submit 'Send' %&gt;
&lt;/p&gt;
&lt;% end %&gt;</content>
    <created-at type="datetime">2009-11-30T23:38:40Z</created-at>
    <flash-notice></flash-notice>
    <header-include></header-include>
    <html-page type="boolean">false</html-page>
    <id type="integer">1</id>
    <includesContactNumbers type="boolean">true</includesContactNumbers>
    <isEditable type="boolean">true</isEditable>
    <keywords></keywords>
    <page-order type="integer">1</page-order>
    <ruby-page type="boolean">true</ruby-page>
    <short-title>contact</short-title>
    <simplified-markup-page type="boolean">false</simplified-markup-page>
    <title>Contact Us</title>
    <updated-at type="datetime">2009-12-02T05:21:52Z</updated-at>
  </page>
  <page>
    <content>&lt;div id=&quot;map_canvas&quot; style=&quot;width: 650px; height: 450px; margin:6px 0 0 6px&quot;&gt;&lt;/div&gt;</content>
    <created-at type="datetime">2009-11-30T23:40:39Z</created-at>
    <flash-notice></flash-notice>
    <header-include>&lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;sensor=true&amp;amp;key=ABQIAAAAORZzq0eBiUfJNWYfqzpicRSKIBPG0AnsV9GBh-mlLpUo0fg4_BT9Vc3yrQMcbyO2rWMgx7vDf7_VcA&quot;
    type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;

    var html_to;
    var html_from;
    var marker;

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById(&quot;map_canvas&quot;));
        map.setCenter(new GLatLng(36.007075,-80.438746), 14);
        
        marker = new GMarker(new GLatLng(36.007075,-80.438746));

        // The info window version with the &quot;to here&quot; form open
        html_to = '&lt;br&gt;Directions: &lt;b&gt;To here&lt;\/b&gt; - &lt;a href=&quot;javascript:fromhere()&quot;&gt;From here&lt;\/a&gt;' +
           '&lt;br&gt;Start address:&lt;form action=&quot;http://maps.google.com/maps&quot; method=&quot;get&quot; target=&quot;_blank&quot;&gt;' +
           '&lt;input type=&quot;text&quot; SIZE=40 MAXLENGTH=40 name=&quot;saddr&quot; id=&quot;saddr&quot; value=&quot;&quot; /&gt;&lt;br&gt;' +
           '&lt;INPUT value=&quot;Get Directions&quot; TYPE=&quot;SUBMIT&quot;&gt;' +
           '&lt;input type=&quot;hidden&quot; name=&quot;daddr&quot; value=&quot;135 Medical Drive, Suite 201, Advance, NC 27006&quot;/&gt;';
        // The info window version with the &quot;to here&quot; form open
        html_from = '&lt;br&gt;Directions: &lt;a href=&quot;javascript:tohere()&quot;&gt;To here&lt;\/a&gt; - &lt;b&gt;From here&lt;\/b&gt;' +
           '&lt;br&gt;End address:&lt;form action=&quot;http://maps.google.com/maps&quot; method=&quot;get&quot;&quot; target=&quot;_blank&quot;&gt;' +
           '&lt;input type=&quot;text&quot; SIZE=40 MAXLENGTH=40 name=&quot;daddr&quot; id=&quot;daddr&quot; value=&quot;&quot; /&gt;&lt;br&gt;' +
           '&lt;INPUT value=&quot;Get Directions&quot; TYPE=&quot;SUBMIT&quot;&gt;' +
           '&lt;input type=&quot;hidden&quot; name=&quot;saddr&quot; value=&quot;135 Medical Drive, Suite 201, Advance, NC 27006&quot;/&gt;';

        // The inactive version of the direction info
        html = 'Hillsdale Dental&lt;br \/&gt;135 Medical Drive, Suite 201&lt;br \/&gt;Advance, NC 27006&lt;br \/&gt;' + 
               'Directions: &lt;a href=&quot;javascript:tohere()&quot;&gt;To here&lt;\/a&gt; - &lt;a href=&quot;javascript:fromhere()&quot;&gt;From here&lt;\/a&gt;';

      	GEvent.addListener(marker, &quot;click&quot;, function() {
        	marker.openInfoWindowHtml(html);
      	});

      	map.addOverlay(marker);
        marker.openInfoWindowHtml(html);
        
        map.setUIToDefault();
      }
      else  {
        alert(&quot;Sorry, the Google Maps is not compatible with this browser&quot;);
      }
    }

    function tohere() {
        marker.openInfoWindowHtml(html_to);
    }
    function fromhere() {
        marker.openInfoWindowHtml(html_from);
    }

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(load);

// arrange for our onunload handler to 'listen' for onunload events
if (window.attachEvent) {
        window.attachEvent(&quot;onunload&quot;, function() {
                GUnload();      // Internet Explorer
        });
} else {

        window.addEventListener(&quot;unload&quot;, function() {
                GUnload(); // Firefox and standard browsers
        }, false);

}


&lt;/script&gt;</header-include>
    <html-page type="boolean">true</html-page>
    <id type="integer">2</id>
    <includesContactNumbers type="boolean">false</includesContactNumbers>
    <isEditable type="boolean">true</isEditable>
    <keywords></keywords>
    <page-order type="integer">2</page-order>
    <ruby-page type="boolean">false</ruby-page>
    <short-title>directions</short-title>
    <simplified-markup-page type="boolean">false</simplified-markup-page>
    <title>Directions</title>
    <updated-at type="datetime">2009-12-01T00:47:11Z</updated-at>
  </page>
  <page>
    <content>Under construction.</content>
    <created-at type="datetime">2009-11-30T23:41:15Z</created-at>
    <flash-notice></flash-notice>
    <header-include></header-include>
    <html-page type="boolean">false</html-page>
    <id type="integer">3</id>
    <includesContactNumbers type="boolean">true</includesContactNumbers>
    <isEditable type="boolean">true</isEditable>
    <keywords></keywords>
    <page-order type="integer">3</page-order>
    <ruby-page type="boolean">false</ruby-page>
    <short-title>about</short-title>
    <simplified-markup-page type="boolean">true</simplified-markup-page>
    <title>About Us</title>
    <updated-at type="datetime">2009-12-01T00:12:21Z</updated-at>
  </page>
  <page>
    <content>Under construction.</content>
    <created-at type="datetime">2009-11-30T23:56:37Z</created-at>
    <flash-notice></flash-notice>
    <header-include></header-include>
    <html-page type="boolean">false</html-page>
    <id type="integer">4</id>
    <includesContactNumbers type="boolean">true</includesContactNumbers>
    <isEditable type="boolean">true</isEditable>
    <keywords></keywords>
    <page-order type="integer">4</page-order>
    <ruby-page type="boolean">false</ruby-page>
    <short-title>services</short-title>
    <simplified-markup-page type="boolean">true</simplified-markup-page>
    <title>Services</title>
    <updated-at type="datetime">2009-12-01T00:12:33Z</updated-at>
  </page>
</pages>
