<!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="/modulos/fusionchart/JSClass/FusionCharts.js"></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;|&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">B&uacute;squeda 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 -->
	<div class="breadcrumb-wrapper">
		<?php print str_replace('&raquo ','&raquo; ',$breadcrumb);?>
	</div>	
	<span style="position:absolute;"><a name="content">&nbsp;</a></span><!--508 nav target-->
	<div id="content-container" class="clear-block">	
		<div class="clear-block"><?php print $print_feedback;?></div>
		<?php print $content_top;?>
		<?php print $content_middle;?>
		<?php print $tabs;?>
		<?php print $help;?>
		<?php print $messages;?>
		<?php print $content;?>

	</div><!-- end contentContainer -->
</div>

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


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