<?php
ob_start();/* Evitando warning*/
session_start();

include_once('class/utilitarios.php');
Login();

$contraSenha = $_SESSION['fild_contrasenha'];
$SenhaNoivaOK = $_SESSION['SenhaNoivaOK'];
$id_evento = $_SESSION['fild_id_evento'];
$id_empresa = $_SESSION['fild_id_empresa'];
$p = 'principal.php';
if (!empty($_GET['p'])) {
  $p = $_GET['p'] . '.php';
}

include_once('class/class.mysql.php');
include_once('class/class.picasa.php');
include_once('../empresa/class.empresa.php');

$mysqlCom = new MysqlConnect();
$Picasa = new Picasa();
$empresa = new Empresa();

//$empresa->SelectEmpresa($_SESSION['fild_vfoto_id_empresa']);
$empresa->id_empresa = $id_empresa;
if ($empresa->VerificarSeTemLogoGrande())
  $logo = $empresa->getLogoForX9();
else
  $logo = '../login/images/logo_vfoto.png';

?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

  <!--[if IE]><script src="js/html5.js"></script><![endif]-->
  <title>Efeito Visual DF</title>
  <meta name="keywords" content="" />
  <meta charset="UTF-8">
  <meta name="description" content="" />
  <link rel="stylesheet" href="css/style.css" />
  <link rel="stylesheet" href="css/customize-classic.css" />
  <link rel="stylesheet" href="css/css_fotos.css" />
  <link rel="stylesheet" href="css/customize-classic.css" />
  <link rel="stylesheet" href="css/paginacao_picasa.css" />


  <!--[if lte IE 7]><link rel="stylesheet" type="text/css" media="all" href="css/old_ie.css" /><![endif]-->
  <!--[if lte IE 8]>
  <link rel="stylesheet" type="text/css" href="css/classic-ie8.css" />
  <![endif]-->

  <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>


  <script type="text/javascript" src="js/scripts.js"></script>
  <!--<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>-->
  <!-- Inicio do dados do UI-->
  <link type="text/css" href="ui/development-bundle/themes/custom-theme/jquery.ui.all.css" rel="stylesheet" />
  <script type="text/javascript" src="ui/js/jquery-ui-1.8.16.custom.min.js"></script>
  <script type="text/javascript" src="ui/js/jquery.ui.datepicker-pt-BR.js"></script>
  <!--Fim dos dados do UI-->

  <!--<script type="text/javascript" src="js/slide.js"></script>-->
  <script type="text/javascript" src="script.js"></script>

  <script type="text/javascript" src="js/slide.js"></script>
  <script type="text/javascript" src="../producao/producao.script.js"></script>

  <script type="text/javascript" src="menu/menu.js"></script>


  <script>
    $(document).ready(function(e) {


      ///var myPhotoSwipe = $("#Gallery a").photoSwipe({ enableMouseWheel: false , enableKeyboard: false });
      $(".btnContro")
        .button()
        .click(function(event) {
          event.preventDefault();
        });

      //Encostar do roda pe no fim da pagina    
      $(function() {
        $(window).resize(function() {
          var h = 21 + $(window).height() - $("#top-bg").height() - $("#header").height() - $("#slide").height() - $("#container").height();
          $("#container").css('min-height', h + "px");
        });
        $(window).trigger("resize");
      });


    });
  </script>

  <meta charset="UTF-8">
</head>

<body>
  <input name="edtContraSenha" id="edtContraSenha" type="hidden" value="<?php echo $contraSenha ?>">
  <input name="edtSenhaNoivaOK" id="edtSenhaNoivaOK" type="hidden" value="<?php echo $SenhaNoivaOK ?>">
  <input name="id_evento" id="id_evento" type="hidden" value="<?php echo $id_evento ?>">

  <div id="home-bg" class="carous">
    <div id="head-bg">
      <header id="header">
        <a class="logo" href="#"><img src="<?php echo $logo; ?>"></a>

        <nav>
          <ul id="nav">
            <li class="first"><a class="<?php echo empty($_GET['p']) ? "act" : ""; ?> btnMenu" href="index.php">Principal</a></li>
            <!--
                     ********************************************************************************************************************************
                     *                                                                *
                     *                  Menu que Mulda conforme o Cliente                              *  
                     *                                                                *
                     ********************************************************************************************************************************
                     -->

            <li><a class="btnMenu <?php echo $_GET['id'] == '2' ? "act" : ""; ?>" href="?p=fotos&id=2">Evento<span></span></a>
              <?php $Picasa->CarregarAlbunsPicasa($id_evento, 2) ?>
            </li>


            <li><a class="btnMenu <?php echo $_GET['id'] == '3' ? "act" : ""; ?>" href="?p=fotos&id=3">Prévia<span></span></a>
              <?php $Picasa->CarregarAlbunsPicasa($id_evento, 3) ?>
            </li>


            <li><a id="btnNoiva" class="btnMenu <?php echo $_GET['id'] == '4' ? "act" : ""; ?>" href="?p=fotos&id=4">Noiva<span></span></a>
              <?php $Picasa->CarregarAlbunsPicasa($id_evento, 4) ?>
            </li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '7' ? "act" : ""; ?>" href="?p=escolhidas&id=7">Ampliação</a></li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '8' ? "act" : ""; ?>" href="?p=escolhidas&id=8">Biombo</a></li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '9' ? "act" : ""; ?>" href="?p=escolhidas&id=9">Outros</a></li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '5' ? "act" : ""; ?>" href="?p=escolhidas&id=5"><?php echo utf8_encode('�lbum') ?> </a></li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '6' ? "act" : ""; ?>" href="?p=escolhidas&id=6">Capa</a></li>
            <li><a class="btnMenu <?php echo $_GET['id'] == '10' ? "act" : ""; ?>" href="?p=fotos&id=10">Layout</a></li>
            <li><a class="btnMenu <?php echo $_GET['p'] == 'finalizar' ? "act" : ""; ?>" href="?p=finalizar">Finalizar</a></li>
            <li><a href="login/sair.php">Sair</a></li>
            <!--
                     <li><a class="<?php //echo $_GET['p']=='ampliacao'?"act":"";
                                    ?>" href="?p=ampliacao">Ampliação7</a></li>-->
          </ul>
        </nav>
      </header><!-- #header-->

      <div id="container" class="full-width">

        <?php require_once($p); ?>

      </div><!-- #container-->
      <div id="pnPaginacao" align="center"></div>





      <?php include_once('rodape.php'); ?>



    </div>
    <div id="pnSenhaNoiva" title="Prévia Noiva">
      Informe a Senha
      <input name="edtSenhaNoiva" id="edtSenhaNoiva" type="password">
    </div>

    <div id="pnMen" title="Mensagem do Sistem"></div>

    <div id="pnEscolherFoto" title="Escolher Foto">
      <div id="pnFotoSelecionada" align="center" style="height:330px;"></div>

      <div align="center" class="arredondamento">Gostaria de Salvar esta foto como
        <div>
          <button id="btnNaoQuero" class="btnContro" id_x9="-1">Não Quero Mais</button>
          <button id="btnForAmpliacao" class="btnContro" id_x9="7">Ampliação</button>
          <button id="btnForBioombo" class="btnContro" id_x9="8">Biombo</button>
          <button id="btnForOutos" class="btnContro" id_x9="9">Outros</button>
          <button id="btnForAlbum" class="btnContro" id_x9="5">�?lbum</button>
          <button id="btnForCapa" class="btnContro" id_x9="6">Capa �?lbum</button>
          <p>
        </div>
      </div>


    </div>

</body>

</html>