<?php session_start(); 
//ini_set('display_errors', 'On');
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');} 
	require ('milfs/xajax/xajax.inc.php');
	//$xajax = new xajax();
	$xajax = new xajax("");
	//$xajax = new xajax("https://tupale.co/index.php");
	require ("milfs/funciones/conex.php");
   require ('milfs/funciones/funciones.php');
   include ('milfs/addon/funciones.php');
   require ("milfs/includes/markdown.php");
   require ("milfs/includes/parametrizacion.php");
   require ("milfs/includes/simple_html_dom.php");
	$xajax->processRequests();  
	if(isset($_REQUEST['tema'])) { $tema= "$_REQUEST[tema]";}
	else {$tema="moon";}
if(isset($_REQUEST[id])) {$id=$_REQUEST[id];
$presentacion =contenido_presentacion("$id");} 
?>
<!doctype html>
<html lang="en">

	<head>
		<meta charset="utf-8">

		<title>Tupale.co</title>

		<meta name="description" content="Donde toda causa se gana">
		<meta name="author" content="fredyrivera" >

		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<link rel="stylesheet" href="addon/reveal/css/reveal.css">
		<link rel="stylesheet" href="addon/reveal/css/theme/<?php echo $tema ?>.css" id="theme">

		<!-- Theme used for syntax highlighting of code -->
		<link rel="stylesheet" href="addon/reveal/lib/css/zenburn.css">

		<!-- Printing and PDF exports -->
		<script>
			var link = document.createElement( 'link' );
			link.rel = 'stylesheet';
			link.type = 'text/css';
			link.href = window.location.search.match( /print-pdf/gi ) ? 'addon/reveal/css/print/pdf.css' : 'addon/reveal/css/print/paper.css';
			document.getElementsByTagName( 'head' )[0].appendChild( link );
		</script>

		<!--[if lt IE 9]>
		<script src="lib/js/html5shiv.js"></script>
		<![endif]-->
		
		
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
  _paq.push(["setCookieDomain", "*.tupale.co"]);
  _paq.push(["setDomains", ["*.tupale.co"]]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="//stats.tupale.co/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 1]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();
</script>
<noscript><p><img src="//stats.tupale.co/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
	</head>

	<body>

		<div class="reveal">

			<!-- Any section element inside of this container is displayed as a slide -->
			<div class="slides">
<?php echo $presentacion ?>
			</div>

		</div>

		<script src="addon/reveal/lib/js/head.min.js"></script>
		<script src="addon/reveal/js/reveal.js"></script>

		<script>

			// More info https://github.com/hakimel/reveal.js#configuration
			Reveal.initialize({
				controls: true,
				progress: true,
				history: true,
				center: true,

				transition: 'slide', // none/fade/slide/convex/concave/zoom

				// More info https://github.com/hakimel/reveal.js#dependencies
				dependencies: [
					{ src: 'addon/reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
					{ src: 'addon/reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
					{ src: 'addon/reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
					{ src: 'addon/reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
					{ src: 'addon/reveal/plugin/zoom-js/zoom.js', async: true },
					{ src: 'addon/reveal/plugin/notes/notes.js', async: true }
				]
			});

		</script>

	</body>
</html>