<?php
/*
   Copyright 2009-2011 United States Government. 

   This software is licensed under the GNU General Public License
   version 2 (see the file LICENSE for details)
*/
include_once('common.inc.php');
global $conf;
$PREQUEST = purify_n_prepare();
$path = $PREQUEST['q'];
?>

<!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" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">
<head>
<?php 
if ($path=="investment"){	
?>
	<!-- This is added to make the investment dashboard compatable with all IE versions, the google guage is not showing up for versions > IE7 Please refer to http://code.google.com/p/google-visualization-api-issues/issues/detail?id=5  -->
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
<?php }?>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title><?php print $head_title ?></title>
<?php
if($printerFriendly == 1) {
	print '<link type="text/css" rel="stylesheet" href="/sites/all/themes/itdash_new/style.css" />';
	print '<link type="text/css" rel="stylesheet" media="print" href="/sites/all/themes/itdash_new/print.css" />';
}
else {
	print $head;
	print $styles;
	print $scripts;
}
?>
<?php $imgDir="http://localhost:8080/kiaranet/betapruebas/es/sites/all/themes/opendashboard/images/"; ?>
<style type="text/css">
	#bottom-container { 
		border-top:2px solid #CDCDCD; 
		margin:0 auto; 
		padding:15px 0; 
		width:940px; 
	}
</style>
</head>
<body>
<?php
if($printerFriendly == 1){
	print '<img style="border:none" alt="IT DashBoard" src="/sites/all/themes/itdash_new/images/site_title.gif" />';
}
else {
?>
<!-- IT DashBoard - Home Page Container - Begin -->
	<div id="homePageContainer" class="clearfix">
	<!-- ************** HEADER ********************** -->
		<div id="headerContainer" class="clearfix"><?php if($header_container) print $header_container; ?></div>
		<!-- ************** NAVIGATION ********************** -->
		<div id="navigationContainer" class="clearfix">
			<div id="navigationBar">
				<?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
} // endif $printerFriendly == 1

if($is_front):
	print $messages;
?>
<!-- ************** PRESENTATION ********************** -->
	<div id="presentationContainer" class="clearfix"><?php if ($slider_container) print $slider_container; ?></div>
<?php
endif;
?>
<!-- ************** CONTENT ********************** -->
<div id="contentContainer" class="clearfix">
	<?php if($printerFriendly != 1 && !$is_front): ?>
		<div class="clearfix" id="breadCrumb">
			<?php print str_replace('</a></div>','</a> &gt; </div>',$breadcrumb); ?>
			<h1 class="header_H1_2"><?php print $title; ?></h1>
	<?php endif; ?>
<?php
	renderShareHelpLinks($printerFriendly);
	print $tabs;
	print $help;
	print $messages;
    if ($content) {
        print $content;
    }
?>
		</div>
	</div><!-- end contentContainer -->
<?php
if($printerFriendly != 1) {
	print "</div>\n<!-- IT DashBoard - Home Page Container - End -->\n";
	//if($footer_container) print $footer_container;
?>
<div id="bottom-container">
	<table width="100%">
    	<tr>
        	<td width="100">
            	<img src="<?php print $imgDir.'cc_by.gif'; ?>" 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/" target="_blank">licencia Creative Commons Reconocimiento 3.0 Espa&ntilde;a</a> salvo que se indique lo contrario. Esta aplicaci&oacute;n esta desarrollada usando software libre y tomando como referencia la herramienta <a href="http://www.itdashboard.gov" target="_blank">ITDashboard</a> del Gobierno Federal de los Estados Unidos de Am&eacute;rica.</p>
            </td>
	    <td align="right" width="140">
            	<img src="<?php print $imgDir.'gobierno_vasco.gif'; ?>" />
            </td>
        </tr>
        <tr><td colspan="3">&nbsp;</td></tr>
        <tr>
        	<td colspan="3" align="center">
            	<!--img src="<?php print $imgDir.'validate_xhtml.gif'; ?>" style="margin-right:20px;" />
            	<img src="<?php print $imgDir.'validate_css.gif'; ?>" style="margin-right:20px;" />
            	<img src="<?php print $imgDir.'validate_wai.gif'; ?>" /-->
            </td>
        </tr>
    </table>
    <table bgcolor="#0167B1" width="100%">
    	<tr>
        	<td>
            	<a href="http://www.euskadi.net/r33-2288/es/contenidos/informacion/informacion_legal/es_6303/informacion_legal.html" target="_blank" style="color:#FFF; text-decoration:none; font-weight:bold; margin-left: 10px;">&raquo; Informaci&oacute;n Legal</a>
            </td>
            <td width="30%" style="color:#FFF;" align="right">
            	<p style="margin-right: 10px;">&copy; 2010 Eusko Jaurlaritza - Gobierno Vasco</p>
            </td>
        </tr>
    </table>
</div>
<?php } 
print $closure;
?>

</body>
</html>
