<?php $__env->startSection('scripts'); ?>
    <?php echo HTML::script('js/jquery.scrollTo.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")
            	}
          	});
			
			$( "#scroll_to_content" ).click(function(e) {
                e.preventDefault();
                $.scrollTo('#about_us_anchor', 600);
				                
                $.cookie('overview_bg', 'close', { path: '/' });
            });
            
            if($.cookie('overview_bg') == 'close')
            {
                $.scrollTo('#about_us_anchor', 600);    
            }
			
			<?php if(!empty($partners[0]->logo)): ?>
				<?php foreach($partners 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; ?>
        	<?php endif; ?>
        });
    </script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('background_img'); ?>
    <div class="fixed_img">
        <img src="<?php echo asset('img/banq_frame2.jpg'); ?>" class="img-responsive" alt="img">
        <div class="text_box">
            <div class="wcaption frame-stairs">
                <div class="caption">
                    <div class="bg1">
                        <h1>REINVENTING THE CAPITAL MARKETS</h1>
                        <h3>-by leveling the playing field for individual investors. We love bringing new opportunities to market and we want to provide institutional-level access to the world.</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(); ?>