<?php
/**
* @copyright Copyright (C) 2009-2010 Pixel Praise LLC. All rights reserved.
*/

// no direct access
defined('_JEXEC') or die;
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<?php 
$app = JFactory::getApplication();
$document =& JFactory::getDocument();
$document->setTitle($document->getTitle()." : ".$app->getCfg('sitename'));
?>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('templateTheme'); ?>.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/updates.css" type="text/css" />
<style type="text/css">
<?php if($this->params->get('fontFamily') == "times") { ?>
body{font-family:"Times New Roman", Times, serif;}
<?php } elseif($this->params->get('fontFamily') == "courier") { ?>
body{font-family:"Courier New", Courier, monospace;}
<?php } elseif($this->params->get('fontFamily') == "georgia") { ?>
body{font-family:Georgia,"Times New Roman", Times, serif;}
<?php } elseif($this->params->get('fontFamily') == "lucida") { ?>
body{font-family: 'Lucida Grande',Verdana,'Bitstream Vera Sans',Arial,sans-serif;;}
<?php } elseif($this->params->get('fontFamily') == "arial") { ?>
body{font-family:Arial, Verdana, sans-serif;}
<?php }?>
<?php if($this->params->get('headingFontFamily') == "arial") { ?>
h1, h2, h3, h4, h5, h6, .componentheading, .contentheading{font-family:Arial, Helvetica, sans-serif;}
<?php } elseif($this->params->get('headingFontFamily') == "times") { ?>
h1, h2, h3, h4, h5, h6, .componentheading, .contentheading{font-family:"Times New Roman", Times, serif;}
<?php } elseif($this->params->get('headingFontFamily') == "courier") { ?>
h1, h2, h3, h4, h5, h6, .componentheading, .contentheading{font-family:"Courier New", Courier, monospace;}
<?php }elseif($this->params->get('headingFontFamily') == "georgia") { ?>
h1, h2, h3, h4, h5, h6, .componentheading, .contentheading{font-family:Georgia,"Times New Roman", Times, serif;}
<?php } ?>
<?php if(($this->countModules('left') == 0) && ($this->countModules('right') == 0)) { ?>
#content{width:100%;}
<?php } ?>
<?php if(($this->countModules('left') >= 1) && ($this->countModules('right') == 0)) { ?>

<?php } ?>
<?php if(($this->countModules('left') == 0) && ($this->countModules('right') >= 1)) { ?>

<?php } ?>
<?php if($this->params->get('customWidth')) { ?>
#toolbar, #wrapper, #footer {width:<?php echo $this->params->get('customWidth');?>;}
<?php } ?>
<?php if($this->params->get('fontColor')){ ?>
body{color:<?php echo $this->params->get('fontColor'); ?>}
<?php } ?>
<?php if($this->params->get('headingColor')){ ?>
h1, h2, h3, h4, h5, h6, .componentheading, .contentheading{color:<?php echo $this->params->get('headingColor'); ?>}
<?php } ?>
<?php if($this->params->get('linkColor')){ ?>
a:link, a:active, a:visited{color:<?php echo $this->params->get('linkColor'); ?>}
<?php } ?>
<?php if($this->params->get('linkHoverColor')){ ?>
a:hover{color:<?php echo $this->params->get('linkHoverColor'); ?>}
<?php } ?>
</style>
</head>
<body>
<?php if (($this->countModules('nav-1')) || ($this->countModules('nav-2'))) { ?>
<div id="toolbar">
    <div class="inside">
    	<?php if ($this->countModules('nav-1')) { ?>
        <div id="toolbar-l">
        	<jdoc:include type="modules" name="nav-1" />
        </div>
        <?php } ?>
        <?php if ($this->countModules('nav-2')) { ?>
        <div id="toolbar-r">
        	<jdoc:include type="modules" name="nav-2" />
        </div>
        <?php } ?>
        <div class="clr"></div>
    </div>
</div>
<?php } ?>
<div id="wrapper">
	<div id="wrapper-inner">
        <div id="header">
            <a href="<?php echo $app->getCfg('live_site'); ?>" id="logo" title="<?php echo $app->getCfg('sitename'); ?>">
            <h1><?php echo $app->getCfg('sitename'); ?></h1>
            </a>
            <?php if ($this->countModules('nav-3')) { ?>
            <div id="topmenu">
                <jdoc:include type="modules" name="nav-3" />
                <div class="clr"></div>
            </div>
            <?php } ?>
            <div class="clr"></div>
        </div>
        <?php if ($this->countModules('banner')) { ?>
        <div id="banner1">
            <jdoc:include type="modules" name="banner" />
            <div class="clr"></div>
        </div>
        <?php } else { ?>
        <!--Begin placeholder banner-->
        <!--
        <div id="banner">
            <h3>Placeholder Banner</h3>
            <p>To remove this placeholder either edit the index.php of this template or publish a module in the banner position.</p>
            <div class="clr"></div>
        </div>
        -->
        <!--End placeholder banner-->
        <?php } ?>
        <?php if (($this->countModules('inset-1')) || ($this->countModules('inset-2'))) { ?>
        <div id="inset">
        	<div class="inside">
	            <?php if ($this->countModules('inset-1')) { ?>
            	<div id="pathway">
    	        	<jdoc:include type="modules" name="inset-1" />
                </div>
                <?php } ?>
                <?php if ($this->countModules('inset-2')) { ?>
                <div id="search">
        	        <jdoc:include type="modules" name="inset-2" />
                </div>
                <?php } ?>
                <div class="clr"></div>
            </div>
        </div>
        <?php } ?>
        <div id="container">
        	<?php if ($this->countModules('sidebar-2')) { ?>
            <div id="sidebar2">
            	<jdoc:include type="modules" name="sidebar-2" style="xhtml" />
            	<div class="clr"></div>
            </div>
            <?php } ?>
            <?php if ($this->countModules('sidebar-1')) { ?>
            <div id="sidebar">
            	<jdoc:include type="modules" name="sidebar-1" style="xhtml" />
            	<div class="clr"></div>
            </div>
            <?php } ?>
            <div id="content">
            	<div id="content-inner">
                	<?php if (($this->countModules('elements-1')) || ($this->countModules('elements-2'))) { ?>
                	<div id="elements">
                    	<?php if ($this->countModules('elements-1')) { ?>
                    	<div id="elements-l">
                        	<jdoc:include type="modules" name="elements-1" style="xhtml" />
                        </div>
                        <?php } ?>
                        <?php if ($this->countModules('elements-2')) { ?>
                        <div id="elements-r">
                        	<jdoc:include type="modules" name="elements-2" style="xhtml" />
                        </div>
                        <?php } ?>
                    	<div class="clr"></div>
                    </div>
                    <?php } ?>
                	<jdoc:include type="message" />
                	<jdoc:include type="modules" name="before" style="xhtml" />
                    <jdoc:include type="component" />
                    <jdoc:include type="modules" name="after" style="xhtml" />
                	<div class="clr"></div>
                </div>
            </div>
        	<div class="clr"></div>
        </div>
        <?php if ($this->countModules('bottom')) { ?>
        <div id="bottom">
        	<div id="bottommenu">
            	<div class="inside">
                    <jdoc:include type="modules" name="bottom" />
                    <div class="clr"></div>
				</div>

            </div>
        	<div class="clr"></div>
        </div>
        <?php } ?>
    	<div class="clr"></div>
    </div>
</div>
<div id="footer">
    <div id="copy">
	    <jdoc:include type="modules" name="footer" />
    </div>
  <div id="link">
		<a rel="license" style="margin-right: 10px;" class="cc-link" href="http://creativecommons.org/licenses/by/3.0/"><img width="80" height="15"  alt="Ліцензія Creative Commons" class="cc-image" src="/images/stories/common/CreativeCommons/80x15.png" /></a><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">Joomla.org.ua</span>, <a xmlns:cc="http://creativecommons.org/ns#" href="http://joomla.org.ua" property="cc:attributionName" rel="cc:attributionURL">Joomla! — українська спільнота</a>, публікується за ліцензією <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">CCA 3.0</a>, якщо не вказано інакше.
		<br>
        <span style="margin-right: 35px;">Працює на <a href="http://joomla.org">Joomla!</a></span>Оригінальний шаблон від <a href="http://www.joomlapraise.com" target="_blank">JoomlaPraise</a></a>
    </div>
    <div class="clr"></div>
</div>
<?php if ($this->countModules('debug')) { ?>
<div id="debug">
	<div class="inside">
    	<jdoc:include type="modules" name="debug" style="xhtml" />
    </div>
</div>
<?php } ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-386040-4']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_trackPageLoadTime']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script type="text/javascript" src="http://apis.google.com/js/plusone.js">
  {lang: 'uk'}
</script>

</body>
</html>
