<?php
/*
License
All the free CSS templates on this site are distributed under the Creative Commons License. This means that you are free:

    * to copy, distribute, display, and perform the work
    * to make derivative works
    * to make commercial use of the work

Under the following conditions:

    * You must attribute the work in the manner specified by the author or licensor. (In this case, a link back to my site)
    * For any reuse or distribution, you must make clear to others the license terms of this work
    * Any of these conditions can be waived if you get permission from the copyright holder
    * You can not delete sponsorlinks if template have it.

This template has been brought to you by BestofJoomla.com.
You can freely use it for both your private and commercial projects, including software, online services, templates and themes.
The template may not be resold, sublicensed, rented, transferred or otherwise made available for use. The template may not be offered for free downloading from websites
other than BestofJoomla.com.   

Removing the link and template sponsor
You CAN NOT remove (or unreadable) those links without permission.
Removing the link Please visit http://shop.templatejoomla.com or contact with e-mail (info@templatejoomla.com).
If you don't want to link back to templatejoomla.com, you can always pay a link removal fee.
Please read license.txt
*/


// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once (dirname(__FILE__).DS.'/jwd.php');
$siteName = $JWDT->sitename();

?>
<!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>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $JWDT->baseurl(); ?>templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $JWDT->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $JWDT->templateurl(); ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $JWDT->templateurl(); ?>/menu/suckerfish.css" type="text/css" />
<script type="text/javascript"><!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]></script>
<?php if ($JWDT->isIE6()) {
?>
<link href="templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.clearfix {
	height: 1%;
}
img {
	border: none;
}
#logo {
behavior: url(<?php echo $JWDT->templateurl();
?>/css/iepngfix.htc);
}
#nav li ul {
	background-position: -1000px;
}
#nav li ul li, #nav li a {
background:transparent url(<?php echo $JWDT->templateurl();
?>/images/blank.png) no-repeat right;
}
</style>
<?php } ?>
</head>
<body>
<a name="up" id="up"></a>
<jdoc:include type="message" />
<div id="center">
<div id="wrapperholder">
  <div id="wraptop"></div>
  <div id="wrap">
    <div id="header">
      <div id="headerlinks">
        <div id="headerrechts">
          <div id="logo"></div>
          <jdoc:include type="modules" name="user4" />
        </div>
      </div>
    </div>
    <div id="topmenu">
      <!-- B: NAV -->
      <div id="jwd_navigationcover">
        <div id="jwd_navigation" class="clearfix">
          <?php $jwdmenu->genMenu (0); ?>
        </div>
      </div>
      <!-- F: NAV -->
    </div>
    <div id="pathway">
      <jdoc:include type="module" name="breadcrumbs" />
    </div>
    <div style="clear:both;">&nbsp;</div>
    <div id="mainholder">
      <?php
				if(!$this->countModules('right')) {
					$width = "765";
				} else {
					$width = "550";
				}
			?>
      <?php if($this->countModules('left')) : ?>
      <div id="left">
        <jdoc:include type="modules" name="left" style="menu" />
      </div>
      <?php endif; ?>
      <div id="main" style="width:765px;">
        <?php if($this->countModules('user1')) : ?>
        <div id="user1">
          <jdoc:include type="modules" name="user1" style="xhtml" />
        </div>
        <?php endif; ?>
        <?php if($this->countModules('user2')) : ?>
        <div id="user2">
          <jdoc:include type="modules" name="user2" style="xhtml" />
        </div>
        <?php endif; ?>
        <?php if($this->params->get('showComponent')) : ?>
        <div style="float:left; width:<?php echo $width; ?>px;">
          <jdoc:include type="component" />
        </div>
        <?php endif; ?>
        <?php if($this->countModules('right')) : ?>
        <div id="right">
          <jdoc:include type="modules" name="right" style="xhtml" />
        </div>
        <?php endif; ?>
      </div>
    </div>
  </div>
  <div id="footer">
    <div id="syndicate">
      <jdoc:include type="modules" name="syndicate" />
    </div>
    <div id="footerText">
      <jdoc:include type="modules" name="footer" />
    </div>
  </div>
  <div id="jwdbottomx"></div>
</div>
<div id="power">
<div id="powerText">
  <!-- You CAN NOT remove (or unreadable) those links without permission. Removing the link and template sponsor Please visit shop.templatejoomla.com or contact with e-mail (info@templatejoomla.com) If you don't want to link back to templatejoomla.com, you can always pay a link removal donation. This will allow you to use the template link free on one domain name. Also, kindly send me the site's url so I can include it on my list of verified users . Please read license.txt -->
  <div>Copyright &copy; <?php echo $siteName; ?>. All Rights Reserved. <a href="http://www.templatejoomla.com">Joomla Templates</a> by <a href="http://www.templatejoomla.com">templatejoomla</a> <br />
    <a href="http://www.bestofjoomla.com">Joomla Templates</a> Sponsored by <a href="http://www.bestofjoomla.com"> Best of Joomla!</a> </div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
