<?php
//We've included ../Includes/FusionCharts.php, which contains functions
//to help us easily embed the charts.
include("modulos/fusionchart/Includes/FusionCharts.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
  <?php $imgDir="/sites/all/themes/opendashboard/images/"; ?>
<script type="text/javascript" src="/sites/all/modules/contrib/jquery_plugin/jquery.cycle.min.js"></script>  
<script type="text/javascript" src="/modulos/fusionchart/JSClass/FusionCharts.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.front-slideshow').cycle({
		fx: 'fade' 
	});
});
</script>
</head>
<body>
<!--start page-->
<div id="page-container" class="clear-block">
<!--header-->
	<div id="header-top" class="clear-block">
		<div class="skip">
			<a href="#nav">Skip to Navigation</a>
			<a href="#content">Skip to Main Content</a>
		</div>
		<div id="header-top-left">
		</div><!--end header-top-left-->
        <div id="header-top-right">
		
		<?php if ($idiomas): ?>
			<?php print $idiomas; ?>
		<?php endif; ?>
               	<!--<p><a href="http://eu.betapruebas.com" style="color:#0167B1; text-decoration:none; font-weight: bold;">Euskera</a> - <span style="color:#333; font-weight: bold;">Castellano</span>&nbsp;&nbsp;</p> -->
			<p id="today">
			<?php 
				$dias = array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado");
				print ($dias[date('w')].', '.date('d/m/Y'));
			?>
            </p>
			<?php if (user_is_logged_in()){	 ?>
				<a id="login-link" class="exempt" href="<?php
                    if(module_exists('cas')){
				        echo "/caslogout";
                    }
                    else{
                        echo "/logout";
                    }
                ?>">Logout</a>
			<?php }
                  else{ ?>
		    		<a id="login-link" class="exempt" href="<?php
                        if(module_exists('cas')){
                                global $conf;
                                echo $conf['ITDashboard']['loggedInAppURL']."cas";
                        }
                        else{
                            global $conf;
                            echo $conf['ITDashboard']['appURL']."user";
                        }
                        ?>">Login</a>
			<?php  } ?>
		</div><!--end header-top-right-->
	</div><!--end header-top-->
	<?php
	if ($language->language == "eu") {
			$urllogo = "/eu/node";
		} else {
			$urllogo = "/";
		}
	?>
	<div id="header-bottom" class="clear-block">
		<div id="header-bottom-left">
			<div id="site-logo"><a href="<?php echo $urllogo; ?>"><img src="<?php print $logo ?>" alt="OpenTICs" /></a></div>
				<?php if (!empty($site_name)): ?>
					<div id="site-title"><a href="/"><?php print $site_name; ?></a></div>
				<?php endif; ?>	
				<?php if (in_array('itdashboard_demo', module_list())): {
				//print "demo mode texr"
					print '<h2 class="demo-text">Demo Environment</h2>';
				}
				//print test mode text
				 elseif (in_array('itdashboard_test_environment', module_list())): {
					print '<h2 class="demo-text">Test Environment</h2>';
				}
				endif;
				?>
		</div>
		<div id="header-bottom-right" class="clear-block">
			<div id="search-box">
				<!--<form id="search-form" method="get" accept-charset="UTF-8" action="/search-results">
					<fieldset style="border:0;">
						<input type="hidden" value="" name="Search Form" />
						<input type="text" name="searchquery" id="input" />	
						<button type="submit" style="border:0;background:none;margin-top:5px;"><img src="<?php print $imgDir.'search.gif'; ?>" alt="Buscar" /></button>
					</fieldset>
				</form>	-->		
			</div>
			<div id="advance-search-link"><!--<a href="/advanced-search">Busqueda Avanzada</a>!--></div>
		</div>
	</div>
	<span style="position:absolute;"><a name="nav">&nbsp;</a></span><!--508 nav target-->
	<div id="navigation-container" class="clear-block">
		<div id="navigation-bar">
			<?php
				if (in_array('nice_menus', module_list())) {
					print theme_nice_menus_primary_links($primary_links);
				}
				else {
					print theme('links', $primary_links);
				}
			?>
		</div><!-- end navigationBar -->
	</div><!-- end navigationContainer -->
	
	<?php 
		module_load_include('php', 'slider', 'modulos/graficas/slider_inicio');
	 ?>
	
	<!--<div class="front-slideshow">
    	<?php
        	$slideshow = '<img src="'.$imgDir.'slider1.jpg" width="940" alt="Slider1" />'.
						 '<img src="'.$imgDir.'slider2.jpg" width="940" alt="Slider2" />'.
						 '<img src="'.$imgDir.'slider3.jpg" width="940" alt="Slider3" />';
		?>
		<?php print $slideshow; ?>
		
	</div>-->
	<span style="position:absolute;"><a name="content">&nbsp;</a></span><!--508 nav target-->
	<div id="content-container" class="clear-block">
		<div class="front-only-blocks clear-block">	
			<div class="front-center">
				<div class="standard-block">
				
<!-- Pruebas -->				
				
			
				
<!-- fin de pruebas -->				
				
				
			  		<h2><?php echo t('Bienvenido a OpenTICs'); ?></h2>
			  		<div class="content">
                    <p><strong>OpenTICs</strong> <?php echo t('es una herramienta con la que los Departamentos y Organismos Autónomos del Gobierno Vasco, así como la ciudadanía en general, tienen la opción de ver la evolución a lo largo del tiempo de programas y proyectos TICs (Tecnologías de la Información y de las Comunicaciones) de todo el Gobierno Vasco.'); ?></p>
					</div>
				</div>
			</div>
		</div>
	</div><!-- end contentContainer -->
</div>

<?php if ($footer): ?>
	<?php print $footer; ?>
<?php endif; ?>


<?php print $closure;?>
</body>
</html>

<!--
<div id="bottom-container">
	<table width="100%">
    	<tr>
        	<td style="width:100px;">
            	<img src="<?php print $imgDir.'cc_by.gif'; ?>" alt="Creative Commons" style="margin-right:5px;" />
            </td>
            <td>
            	<p style="margin-right:20px;">Los contenidos de la herramienta OpenTICs est&aacute;n sujetos a una <a href="http://creativecommons.org/licenses/by/3.0/es/" onclick="window.open(this.href,'_blank');return false;">licencia Creative Commons Reconocimiento 3.0 Espa&ntilde;a</a> salvo que se indique lo contrario. Esta aplicación esta desarrollada usando software libre y tomando como referencia la herramienta <a href="http://www.itdashboard.gov" onclick="window.open(this.href,'_blank');return false;">ITDashboard</a> del Gobierno Federal de los Estados Unidos de América.</p>
            </td>
	    <td align="right" style="width:140px;">
            	<img src="<?php print $imgDir.'gobierno_vasco.png'; ?>" alt="Gobierno Vasco - Eusko Jaurlaritza" />
            </td>
        </tr>
        <tr><td colspan="3">&nbsp;</td></tr>
        <tr>
        	<td colspan="3" align="center">
            	<p>
					<a href="http://validator.w3.org/check?uri=drupal6.betapruebas.com"><img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
					<a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="¡CSS Válido!" /></a>
				</p>-->
            	<!--img src="<?php print $imgDir.'validate_css.gif'; ?>" style="margin-right:20px;" />
            	<img src="<?php print $imgDir.'validate_wai.gif'; ?>" /-->
            <!--</td>
        </tr>
    </table>
    <table style="background-color:#0167B1;" width="100%">
    	<tr>
        	<td>
            	<a href="http://www.euskadi.net/r33-2288/es/contenidos/informacion/informacion_legal/es_6303/informacion_legal.html" onclick="window.open(this.href,'_blank');return false;" style="color:#FFF; text-decoration:none; font-weight:bold; margin-left: 10px;">&raquo; Informaci&oacute;n Legal</a>
            </td>
            <td style="width:30%;color:#FFF;" align="right">
            	<p style="margin-right: 10px;">&copy; <?php echo date('Y'); ?> Eusko Jaurlaritza - Gobierno Vasco</p>
            </td>
        </tr>
    </table>
</div>
<?php print $closure;?>
</body>
</html>-->
