<?php /* $Id: page.tpl.php,v 1.11 2005/09/02 13:35:11 robinmonks Exp $ */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	   "http://http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
<!--<?php print __FILE__; ?>-->
<head>
  <title>
  <?php
    if ($head_title == ""):
      print $site.' - '.t($site_slogan);
    else:
      print $head_title;
    endif;
  ?>
  </title>
  <?php if ($mission != ""): ?>
    <meta name="description" content="<?php print check_plain(strip_tags($mission)) ?>" />
  <?php endif; ?>
  <meta name="revisit-after" content="1 days" />
  <meta name="robots" content="no-follow" />

<?php 
  print $head;

  // simple way of offering print previews: just append &print to your URL
  if( isset( $_GET['print'] ) ) { 
    print phptemplate_stylesheet_import('/themes/digett_admin/print/print.css','print, screen');
  } else {
  	print '<link href="/misc/drupal.css" rel="stylesheet" media="all" />'. "\n";
    print '<link href="/themes/digett_admin/styles/utility.css" rel="stylesheet" media="all" />'. "\n";    
      $file = '/themes/digett_admin/admin.css';
      if (file_exists($file)) {
        print phptemplate_stylesheet_import($file,'screen');    
      } else {
        print phptemplate_stylesheet_import('/themes/digett_admin/admin.css','screen');    
      }
  }

?>

  <!--[if IE]>
  <style type="text/css" media="screen">
  /*<![CDATA[*/
    /* Give IE some :hover lovin' '*/
    body {
      behavior: url("/themes/digett_admin/scripts/csshover.htc");
    }
    /* IE min-width trick */
    div#wrapper { 
      width:expression(((document.compatMode && document.compatMode=='CSS1Compat') ? document.documentElement.clientWidth : document.body.clientWidth) < 720 ? "720px" : "auto"); 
    }
    /*]]>*/
* {
  zoom:                         1; /* IE peekaboo fix */
}
.outer, .main-content {
  word-wrap:                    break-word;
}
  </style>
  <![endif]-->
  <script language="JavaScript" src="/themes/digett_admin/scripts/pngfix.js" type="text/javascript"></script>
  <script language="JavaScript" src="/themes/digett_admin/scripts/utility.js" type="text/javascript"></script>
  <script language="JavaScript1.2" type="text/javascript">
  /*<![CDATA[*/
  <!--
    document.write('<' + 'script language="JavaScript1.2" type="text/javascript" src="/themes/digett_admin/scripts/toggle.js"><\/script>');
  //-->
    /*]]>*/
  </script>

</head>
<?php
  $body_classes = civicspace_get_body_classes($sidebar_left, $sidebar_right);
?>
<body class="<?php print implode(' ', array_unique($body_classes));?>"<?php print theme("onload_attribute"); ?>>

<div class="hide skiplink">
  <?php print l(t('Skip to the main content'), $_GET['q'],array('title' =>'Skip directly to the main content'), NULL, 'body_content', FALSE) ."\n" ?>
</div>
  <div id="admin-header">
    <h1 id="site-name">
      <?php print $site?>
      <span>
        <a href="<?php print url('') ?>">View site &raquo;</a>
      </span>
    </h1>
    <div id="admin-help">
      <ul>
        <li><a href="http://drupal.org/handbook" title="Drupal handbook">Drupal Handbook</a></li>
        <li><a href="?q=admin/help">Admin Help</a></li>
        <li class="last"><a href="?q=logout">Logoff</a></li>
      </ul>
    </div>
    <div class="clearing"></div>
  </div>
<!-- BEGIN: Content top -->
  <hr class="hide" />
  <div id="wrapper">  
    <div class="outer" id="content-holder">
      <div class="float-wrap">
        <div class="center" id="div_column_center">   
          <div id="content">
            <div class="main-content" id="main">
              <a name="body_content" id="body_content"></a>
              <!-- END: Content top -->

                <div class="breadcrumb-container no-print">
                  You are here: <?php print $breadcrumb ?> 
                </div>

              <?php if ($title != ""): ?>
              <h1 class="page-title <?php if ($tabs != "") { print 'page-title-withtabs'; } ?>"><?php print $title ?></h1> 
              <?php endif; ?>
            
              <?php if (($messages != "") or ($help != "")): ?>
                <div class="messages">

                  <?php if ($help != ""): ?>
                    <div class="help-toggle no-print" id="toggle-help-show" style="display: none;">
                      <a href="javascript:void(0);" onclick="toggleShow('help');toggleShow('toggle-help-hide');toggleHide('toggle-help-show');" class="toggle-link"><img src="/themes/digett_admin/images/icon_collapsed.png" alt="Collapse" /> Show help</a>
                    </div>
                    <div class="help-toggle" id="toggle-help-hide" style="display: none;">
                      <a href="javascript:void(0);" onclick="toggleHide('help');toggleHide('toggle-help-hide');toggleShow('toggle-help-show');" class="toggle-link"><img src="/themes/digett_admin/images/icon_expanded.png" alt="Expand" /> Hide help</a>
                    </div>
                    <div id="help">
                      <img src="/themes/digett_admin/images/icon_help.png" alt="Help icon" class="icon-help" />
                      <div class="content">
                        <?php print $help ?>                      
                      </div>
                    </div>
                    <script language="JavaScript1.2" type="text/javascript">
                      /*<![CDATA[*/
                      <!--
						addLoadEvent(civicspace_load_help);
	                      function civicspace_load_help() {
    	                      toggleHide('help');toggleShow('toggle-help-show');
        	              }                      
    	              //-->
                        /*]]>*/
                    </script>
                  <?php endif; ?>

                  <?php if ($messages != ""): ?>
                    <?php print $messages ?>
                  <?php endif; ?>

                </div>
              <?php endif; ?>
    
              <?php if ($tabs != "" && !(arg(0) == 'node' && is_numeric(arg(1)) && is_null(arg(2)))): ?>
                <div id="local-tasks" class="no-print">
                  <?php print $tabs ?>
                </div>
              <?php endif; ?>

              <?php print($content); ?>

          <!-- BEGIN: Content middle -->
        </div>
      </div> <!-- end content div -->    
    </div> <!-- end centered div -->
<!-- END: Content middle -->


<?php if ($sidebar_left != '') { ?>
<!-- begin left sidebar content -->
    <div class="left sidebar" id="div_column_left">
      <div class="container-left">

        <?php
          print(civicspace_word_split($sidebar_left));
          
          // we only use one left hand column for the admin section
          print(civicspace_word_split($sidebar_right));
        ?>

    </div> <!-- end container-left div -->
  </div> <!-- end left div -->
  <div class="clearing"></div> 
<?php } ?>
  
  </div> <!-- end float-wrap div -->
<!-- end left sidebar content -->

<!-- BEGIN: Content bottom -->
    <div class="clearing"></div> 
  </div>  <!-- end outer div -->
</div>
<!-- END: Content bottom -->


<div class="clearing"></div>

<?php print $closure ?>

</body>

</html>
