<?php
	$painel = "frontend";
	include("admin/brain.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><? echo $nome_site; ?></title>
	<link href="css/Master.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
	<link media="screen" rel="stylesheet" href="colorbox.css" />
	<script src="js/jquery.colorbox-min.js"></script>
	<script>
		$(document).ready(function(){
			$(".fotos").colorbox({width:"80%", height:"80%", iframe:true});
		});
	</script>
	<script type="text/javascript" src="js/funcoes.js"></script>
	<script type="text/javascript">

	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-8798186-10']);
	  _gaq.push(['_trackPageview']);

	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();

	</script>
	<?
		if ($menu=="home") {
			?>
			<link rel="stylesheet" type="text/css" href="css/nivo-slider.css" />
			<link rel="stylesheet" type="text/css" href="themes/default/default.css" />
			<script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
			<script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
			<script type="text/javascript">
				$(window).load(function () {
					$('#slider').nivoSlider({pauseTime: 9000});
				});
			</script>
			<?
		} else {
			?>
			<link rel="stylesheet" type="text/css" href="css/orbit-1.2.3.css" />
			<link rel="stylesheet" type="text/css" href="css/demo-style.css" />
			<script type="text/javascript" src="js/jquery.orbit-1.2.3.js"></script>
			<script type="text/javascript">
				$(window).load(function () {
					$('.featured').orbit();
				});
			</script>
			<?
		}
	?>
	<? if ($gmaps) { ?>
	<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
	<script type="text/javascript">
	  function initialize() {
	    var myLatlng = new google.maps.LatLng(-29.208016,-51.360859);
	    var myOptions = {
	      zoom: 17,
	      center: myLatlng,
	      mapTypeId: google.maps.MapTypeId.ROADMAP
	    }
	    var map = new google.maps.Map(document.getElementById("map"), myOptions);
	    
	    var marker = new google.maps.Marker({
	        position: myLatlng, 
	        map: map,
	        title:"Transportadora Tempo"
	    });   
	  }
	</script>
	<? } ?>
</head>
<body>
	<div class="BoxTopo">
		<div class="Topo">
			<div class="Logo"><a href="index.php"><img src="images/logotempo.png" width="272" height="92" border="0" /></a></div>
			<? if($_COOKIE["status"]==base64_encode("logado")) { ?>
				<div class="AreaLogin">Você está logado | <a href="user.php?acao=sair">Sair</a></div>
			<? } else { ?>
			<form method="post" action="user.php?acao=logar" name="login">
				<input name="btok" class="ImputBtok" type="submit" value="" tabindex="3" />
				<div class="AreaLogin"><input name="senha" value="Senha" class="ImputSenha" type="password" tabindex="2" onclick="$(this).val('');" /></div>
				<div class="AreaLogin"><input name="usuario" value="Usuário" class="ImputLoginTopo" type="text" tabindex="1" onclick="$(this).val('');"  /></div>
			</form>
			<? } ?>

			<div class="Menu">
				<ul>
					<li><a href="index.php"<? if ($menu=="home") { ?> class="selected"<? } ?>>Home</a></li>
					<li><a href="institucional.php"<? if ($menu=="institucional") { ?> class="selected"<? } ?>>Institucional</a></li>
					<li><a href="servicos.php"<? if ($menu=="servicos") { ?> class="selected"<? } ?>>Serviços</a></li>
					<li><a href="estrutura.php"<? if ($menu=="estrutura") { ?> class="selected"<? } ?>>Estrutura</a></li>
					<li><a href="pracas_atentidas.php"<? if ($menu=="pracas_atendidas") { ?> class="selected"<? } ?>>Cidades Atendidas</a></li>
					<li><a href="cotacao_online.php"<? if ($menu=="cotacao_online") { ?> class="selected"<? } ?>>Cotação Online</a></li>
					<li><a href="documentos.php"<? if ($menu=="documentos") { ?> class="selected"<? } ?>>Documentos</a></li>
					<li><a href="trabalhe_conosco.php"<? if ($menu=="trabalhe_conosco") { ?> class="selected"<? } ?>>Trabalhe Conosco</a></li>
					<li><a href="localizacao.php"<? if ($menu=="localizacao") { ?> class="selected"<? } ?>>Localização</a></li>
					<li><a href="contato.php"<? if ($menu=="contato") { ?> class="selected"<? } ?>>Contato</a></li>
				</ul>
			</div>
		</div>
	</div>