	<div class="clear"></div>
<div class="full bg_lancamento">
	<br />
            <div class="wrapper">
                <div id="ei-slider" class="ei-slider">
                    <ul class="ei-slider-large">
						<? 
                        $sql_fotos="select * from banner_principal_fotos where categoria='banner_principal' order by id asc";
 $result_fotos=mysqli_query($conexao,$sql_fotos) or die (mysqli_error($conexao));		
 while($linha_fotos=mysqli_fetch_array($result_fotos)){
  $id_foto = $linha_fotos["id"];
  $nome_foto = $linha_fotos['caminho_foto'];  
						?>
                        <li>
                            <? //print "<img src=\"banner/large/".$linha_fotos['caminho_foto']."\" border='0' alt=\"$id_foto\">"; ?>
                          <li><img src="/banner/large/<? echo $nome_foto; ?>" border="0" alt="<? echo $id_foto; ?>"/></li>  
                        </li>
                        <? } ?>                        
                        
                    </ul><!-- ei-slider-large -->
                    <ul class="ei-slider-thumbs">
                        <li class="ei-slider-element">Current</li>
                        <? 
                        $sql_fotos="select * from banner_principal_fotos where categoria='banner_principal' order by id asc";
 $result_fotos=mysqli_query($conexao,$sql_fotos) or die (mysqli_error($conexao));		
 while($linha_fotos=mysqli_fetch_array($result_fotos)){
  $id_foto = $linha_fotos["id"];
  $nome_foto = $linha_fotos['caminho_foto'];  
						?>
						<li>
                        <? //print "<a href=\"#\">Slide $id_foto</a><img src=\"fotos/mini/".$linha_fotos['caminho_foto']."\" border='0' alt=\"$id_foto\">"; ?>
                         <li><a href="#">Slide <? echo $id_foto; ?></a><img src="/fotos/mini/<? echo $nome_foto; ?>" border="0" alt="<? echo $id_foto; ?>"/></li>
                        </li>
                        <? } ?>
                                                
                    </ul><!-- ei-slider-thumbs -->
                </div><!-- ei-slider -->
                
            </div><!-- wrapper --></div>
        </div>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.eislideshow.js"></script>
        <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
        <script type="text/javascript">
            $(function() {
                $('#ei-slider').eislideshow({
					animation			: 'center',
					autoplay			: true,
					slideshow_interval	: 4000,
					titlesFactor		: 0
                });
            });
        </script>
