<!DOCTYPE html>
<html lang="{lang_code}">
  <head>
   <?php _widget('head');?>
    <script>
    $(document).ready(function(){
        
       $("#route_from_button").click(function () { 
            window.open("https://maps.google.hr/maps?saddr="+$("#route_from").val()+"&daddr={showroom_data_address}@{showroom_data_gps}&hl={lang_code}",'_blank');
            return false;
        });

    });    
    </script>
  </head>

  <body>
  
{template_header}



{template_search}

<?php _widget('top_mapsearch');?>

<?php _widget('top_ads');?>

<div class="wrap-content" id="content-position">
    <div class="container container-property">
    <div class="row-fluid">
    <div class="span9">
        <h2>{page_title}</h2>
        <div class="property_content_position">
            <div class="row-fluid"
            <ul class="thumbnails">
                <?php foreach($expert_module_all as $key=>$row):?>
                  <li class="span12 li-list">
                      <div class="caption span12">
                        <p class="bottom-border">
                            <i class="qmark">?</i>
                            <strong><?php echo $row->question; ?></strong>
                            <br style="clear:both" />
                        </p>
                        <p class="prop-description">
                            <span class="image_expert"> </span>
                            <?php echo $row->answer; ?>
                            <br style="clear:both" />
                        </p>
                      </div>
                  </li>
                <?php endforeach;?>
                </ul>
            </div>
        </div>
    </div>
    <div class="span3">
          <h2>{lang_Expert}</h2>
          <div class="agent">
            <div class="image"><img src="{showroom_image_url}" alt="<?php echo $expert_data['name_surname']; ?>" /></div>
            <div class="name"><?php echo $expert_data['name_surname']; ?></div>
            <div class="phone"><?php echo $expert_data['phone']; ?></div>
            <div class="mail"><a href="mailto:<?php echo $expert_data['mail']; ?>?subject={lang_AskExpert}"><?php echo $expert_data['mail']; ?></a></div>
          </div>
          <h2>{lang_Overview}</h2>
          <div class="property_options">
            <p class="bottom-border"><strong>
            {lang_FirstLast}
            </strong> <span>{page_title}</span>
            <br style="clear: both;" />
            </p>
            <p class="bottom-border"><strong>
            {lang_Address}
            </strong> <span>{showroom_data_address}</span>
            <br style="clear: both;" />
            </p>
            <?php if(isset(${'documents_'.$expert_data['repository_id']}[0])):?>
            <p class="bottom-border"><strong>
            {lang_CV}
            </strong> <a href="<?php echo ${'documents_'.$expert_data['repository_id']}[0]->url?>">{lang_Download}</a>
            <br style="clear: both;" />
            </p>
            <?php endif;?>
          </div>

          <?php _widget('right_adssmall'); ?>  

          <h2>{lang_AskExpert}</h2>
          <div id="form" class="property-form">
            {validation_errors}
            {form_sent_message}
            <form method="post" action="{page_current_url}#form">
                <label>{lang_FirstLast}</label>
                <input class="{form_error_firstname}" name="firstname" type="text" placeholder="{lang_FirstLast}" value="{form_value_firstname}" />
                <label>{lang_Phone}</label>
                <input class="{form_error_phone}" name="phone" type="text" placeholder="{lang_Phone}" value="{form_value_phone}" />
                <label>{lang_Email}</label>
                <input class="{form_error_email}" name="email" type="text" placeholder="{lang_Email}" value="{form_value_email}" />

                <label>{lang_Question}</label>
                <textarea class="{form_error_question}" name="question" rows="3" placeholder="{lang_Question}">{form_value_question}</textarea>
                
                <br style="clear: both;" />
                <p style="text-align:right;">
                <button type="submit" class="btn btn-info">{lang_Send}</button>
                </p>
            </form>
          </div>
    </div>
    </div>
    </div>
</div>
    
<?php _subtemplate('footers', _ch($subtemplate_footer, 'standard')); ?>

<?php _widget('custom_javascript');?> 

  </body>
</html>