<?php $__env->startSection('content'); ?>
	
    <?php $__env->startSection('sub_menu'); ?>
    	<?php echo $__env->make('about_us/menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <?php $__env->stopSection(); ?>
    <?php $__env->startSection('scripts'); ?>
        <?php echo HTML::script('js/jquery.scrollTo.js'); ?>
        <?php echo HTML::script('js/jquery.cookie.js'); ?>        
        <script type="text/javascript">
            $(document).ready(function () {
              $(window).scroll(function () {
                if($(document).scrollTop()>$(".fixed_img").height() - 62) {
                    $('#navbar').addClass("fixed")
                    $('#navbar').removeClass("transparent-menu")
                    $('.wrap-second-nav').addClass("fixed")
                    $('.wrap-second-nav').removeClass("transparent-menu")
                    
                }else{
                    $('#navbar').removeClass("fixed")
                    $('#navbar').addClass("transparent-menu")
                    $('.wrap-second-nav').removeClass("fixed")
                    $('.wrap-second-nav').addClass("transparent-menu")
                }
                if($(document).scrollTop()>$(".fixed_img").height() - 94) {
                    $('#scroll_to_content').addClass("hide-button")
                    
                }else{
                    $('#scroll_to_content').removeClass("hide-button")
                }
              });
            });
        </script>
        <script type="text/javascript">
            $(document).ready(function () {
                $( "#scroll_to_content" ).click(function(e) {
                    e.preventDefault();
                    $.scrollTo('#about_us_anchor', 600);
                    //$( '#navbar' ).removeClass("transparent-menu");  
                    //$( '#navbar' ).addClass("fixed");
                    //$('.wrap-second-nav').removeClass("transparent-menu");
                    //$('.wrap-second-nav').addClass("fixed");
                    
                    $.cookie('professional_referrals_bg', 'close', { path: '/' });
                });
                
                if($.cookie('professional_referrals_bg') == 'close')
                {
                    $.scrollTo('#about_us_anchor', 600);    
                }
				
				<?php foreach($professional_referrals as $row): ?>
					<?php if(!empty($row->logo) && file_exists(public_path().'/uploads/professional_referrals/'.$row->logo)): ?>
						
						var $img = $('#image_<?php echo $row->referrals_id; ?> img');
             
						$img.load(function(){						 
							var height = $(this).height();
							margin_top = height / 2;
							$('#image_<?php echo $row->referrals_id; ?>').css({'margin-top': '-' + margin_top + 'px'});
						});
						 
						$img.each(function() {
							var src = $(this).attr('src');
							$(this).attr('src', '');
							$(this).attr('src', src);
						});
            		<?php endif; ?>
				<?php endforeach; ?>
			});
        </script>
    <?php $__env->stopSection(); ?>
    
    <?php $__env->startSection('background_img'); ?>
      <div class="fixed_img">
        <img src="<?php echo asset('img/banq_frame3.jpg'); ?>" class="img-responsive" alt="img">
        <div class="text_box">
          <div class="wcaption frame-stairs">
            <div class="caption">
              <div class="bg1">
                <h1>A FAMILY OF Trusted advisors</h1>
                <h3>Our professional relationships span the financial industry, allowing us to provide our clients and prospects with a profound level of service.</h3>
              </div>
              <div class="bg2"></div>
            </div>
          </div>
        </div>
      </div>
    <?php $__env->stopSection(); ?>

    <?php $__env->startSection('about_us_arrow'); ?>
      <a href="#about_us_anchor" id="scroll_to_content" class="arrow_button"></a>
      <div id="about_us_anchor"></div>
    <?php $__env->stopSection(); ?>

   	<div clas="row">
		<?php echo $__env->make('about_us/professional_referrals_menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
		<div class="col-md-10">
        	<?php foreach($professional_referrals as $row): ?>
        	<div class="providers">
	        	<div class="gray_container">
	          		<h4 class="head_h4" style="color:#000"><?php echo $row->title; ?></h4>
            		<?php echo $row->content; ?>
	      		</div>
                <?php if(!empty($row->logo) && file_exists(public_path().'/uploads/professional_referrals/'.$row->logo)): ?>
       				<a href="#" id="image_<?php echo $row->referrals_id; ?>" class="providers-logo"><img src="<?php echo asset('uploads/professional_referrals/'.$row->logo); ?>" alt="<?php echo $row->title; ?>"></a>
     			<?php endif; ?>
            
            </div>
  			<?php endforeach; ?>
        </div>
    </div><!-- /row --><!-- Service Providers end -->
    
    <!--pagination-->
	<div class="wpagination"><?php echo $professional_referrals->appends(array('category_id' => Input::get('category_id')))->links(); ?></div>
    
<?php $__env->stopSection(); ?>