<?php
/**
* @copyright	Copyright (C) 2009 - JoomSpirit. All rights reserved.
*/
defined('_JEXEC') or die('Restricted access');
$path = $this->baseurl.'/templates/'.$this->template;
$siteName = $this->params->get('siteName');
$google1 = $this->params->get('google1');
$show_effect_fade = $this->params->get('show_effect_fade');
$show_tooltips = $this->params->get('show_tooltips');
if ($this->params->get('fontSize') == '') 
	{ $fontSize ='13px'; } 
else { $fontSize = $this->params->get('fontSize'); }
if ($this->params->get('width_siteName') == '') 
	{ $width_siteName ='27'; } 
else { $width_siteName = $this->params->get('width_siteName'); }
JHTML::_('behavior.mootools');
include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/layout.php');
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<jdoc:include type="head" />
<!-- style sheet links -->
<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/<?php echo $this->template ?>/css/main.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nav.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/moomenuv.css" type="text/css" />

<?php if( strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad') || strstr($_SERVER['HTTP_USER_AGENT'],'blackberry') || strstr($_SERVER['HTTP_USER_AGENT'],'Windows Phone') || strstr($_SERVER['HTTP_USER_AGENT'],'Palm') || strstr($_SERVER['HTTP_USER_AGENT'],'symbian') ) : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/mobile.css" type="text/css" />
<?php endif; ?>

<!-- CSS for IE  -->
<!--[if lte IE 8]> 
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie8.css" type="text/css" />
<![endif]-->
<!--[if lte IE 7]> 
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/iepngfix_tilebg.js"></script>
<style type="text/css">
* { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/iepngfix.htc) }
</style>
<![endif]-->
<!-- MOOMENU VERTICAL-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/UvumiDropdown.js"></script>
<script type="text/javascript">
	var menu = new UvumiDropdown('main_menu');
</script>

<!-- SCROLLBAR	-->
<?php if(! $this->countModules('image') &&  !( strstr($_SERVER['HTTP_USER_AGENT'],'Android') || strstr($_SERVER['HTTP_USER_AGENT'],'webOS') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') )   ) : ?>
	
	<!--[if !IE]> <-->
		<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/ie8.js"></script>
	<!--> <![endif]-->
	<!--[if gte IE 8]> 
		<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/ie8.js"></script>
	<![endif]-->	
	
	<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/scrollbar.js" type="text/javascript"></script>
	<script type="text/javascript">
	function init_dw_Scroll() {
		var wndo = new dw_scrollObj('content', 'scroll_content');
		wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);    
		wndo.setUpScrollControls('scrollbar');
	}
	// if code supported, link in the style sheet and call the init function onload
	if ( dw_scrollObj.isSupported() ) {
		//dw_writeStyleSheet('css/scroll.css');
		dw_Event.add( window, 'load', init_dw_Scroll);
	}
	</script>
<?php endif; ?>

<?php if ($show_effect_fade == '1') : ?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/effect_fade.js"></script>
<?php endif; ?>
<?php if ($show_tooltips == '1') : ?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/lib/js/tooltips.js"></script>
<?php endif; ?>

</head>
<body <?php echo ('style="font-size:'.$fontSize.';"');?> >

				<table class="center-site">
				<tr>
				<td valign="middle">


<div id="wrapper">
    <div id="header">
    	<?php if ($this->countModules( 'logo' )) : ?>
    		<jdoc:include type="modules" name="logo" style="xhtml" />
   		<?php else : ?>
    
	  	<div id="headertitle">
        	<h2 <?php echo ('style="padding-left:'.$width_siteName.'px;"');?> ><a href="index.php" <?php echo ('style="letter-spacing:'.$width_siteName.'px;"');?> ><?php echo$siteName; ?></a></h2>
      	</div>
      	<?php endif; ?>
    </div>
    <div id="container">
		<!--  LEFT COLUMN -->
			<?php if ($this->countModules( 'menu' )) : ?>
			<div id="left_container">
			
				<table class="center-table-menu">
				<tr>
				<td valign="middle">
				<div id="nav_main">
					<jdoc:include type="modules" name="menu" style="xhtml" />
				</div>
				</td></tr></table>
			</div>
			<?php endif; ?>
			<!--  RIGHT COLUMN -->
			<div id="right_column">
			
				<?php if($this->countModules('image')) : ?>
				<div id="image" >
					<jdoc:include type="modules" name="image" style="xhtml" />
				</div>
				<?php else : ?>
				<div id="content">
			
					<table class="center-table">
					<tr>
					<td valign="middle">
					
						<div id="scroll_content">
								
							<?php if($this->countModules('top')) : ?>
							<div id="top" >
								<jdoc:include type="modules" name="top" style="xhtml" />
							</div>
							<?php endif; ?>				
							
							
							<div id="main_component"  >
								
								<jdoc:include type="message" />
								<jdoc:include type="component" />
								<?php echo$copy; ?>
			
							</div>
							
							<?php if($this->countModules('bottom')) : ?>
							<div id="bottom" >
								<jdoc:include type="modules" name="bottom" style="xhtml" />
							</div>
							<?php endif; ?>	
				
						</div>	<!-- end of scroll_content	-->
					
					</td></tr></table>
						
				</div>	<!-- end of content-->
				<?php endif; ?>

			</div>
			<!-- important for left column -->
			<div class="clr"></div>
			
			
			<?php if(! $this->countModules('image')) : ?>
			<div id="scrollbar">
				<div id="up"><a class="mouseover_up" href=""><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slideup.png" alt="" /></a></div>
				<div id="track">
					<div id="dragBar"></div>
				</div>
				<div id="down"><a class="mouseover_down" href=""><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slidedown.png" alt="" /></a></div>
			</div>
			<?php endif; ?>
	
    </div>
	<div id="footer">

		<?php if ($this->countModules( 'translate' )) : ?>
		<div id="translate">
			<jdoc:include type="modules" name="translate" style="xhtml" />
		</div>	
		<?php endif; ?>
		
		<?php if ($this->countModules( 'bottom_menu' )) : ?>
		<div id="bottom_menu">
			<jdoc:include type="modules" name="bottom_menu" style="xhtml" />
		</div>	
		<?php endif; ?>				
		<?php if ($this->countModules( 'adress' )) : ?>
		<div id="adress">
			<jdoc:include type="modules" name="adress" style="xhtml" />
		</div>	
		<?php endif; ?>	
		
	</div>
	
		<!--	SOCIAL LINKS	-->
		<?php if(  ($google1 == 'yes') || ($this->params->get('twitter') != '') || ($this->params->get('blogger') != '') || ($this->params->get('delicious') != '') || ($this->params->get('flickr') != '') || ($this->params->get('facebook') != '') || ($this->params->get('rss') != '') || ($this->params->get('linkedin') != '') || ($this->params->get('myspace') != '') || ($this->params->get('yahoo') != '') || ($this->params->get('youtube') != '') || ($this->params->get('vimeo') != '') || ($this->params->get('wordpress') != '') || ($this->params->get('skype') != '') ) : ?>
		<div id="social-links">
		<ul>
			<?php if ($this->params->get('twitter') != '') : ?>
			<li><a target="_blank" id="twitter" title="Twitter" href="<?php echo $this->params->get('twitter') ?>">Twitter</a></li>
			<?php endif; ?>		
			<?php if ($this->params->get('blogger') != '') : ?>
			<li><a target="_blank" id="blogger" title="Blogger" href="<?php echo $this->params->get('blogger') ?>">Blogger</a></li>
			<?php endif; ?>
	
			<?php if ($this->params->get('delicious') != '') : ?>
			<li><a target="_blank" id="delicious" title="Delicious" href="<?php echo $this->params->get('delicious') ?>">Delicious</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('facebook') != '') : ?>
			<li><a target="_blank" id="facebook" title="Facebook" href="<?php echo $this->params->get('facebook') ?>">Facebook</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('rss') != '') : ?>
			<li><a target="_blank" id="rss" title="RSS" href="<?php echo $this->params->get('rss') ?>">RSS</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('linkedin') != '') : ?>
			<li><a target="_blank" id="linkedin" title="Linkedin" href="<?php echo $this->params->get('linkedin') ?>">Linkedin</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('myspace') != '') : ?>
			<li><a target="_blank" id="myspace" title="Myspace" href="<?php echo $this->params->get('myspace') ?>">Myspace</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('flickr') != '') : ?>
			<li><a target="_blank" id="flickr" title="Flickr" href="<?php echo $this->params->get('flickr') ?>">Flickr</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('youtube') != '') : ?>
			<li><a target="_blank" id="youtube" title="Youtube" href="<?php echo $this->params->get('youtube') ?>">Youtube</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('vimeo') != '') : ?>
			<li><a target="_blank" id="vimeo" title="Vimeo" href="<?php echo $this->params->get('vimeo') ?>">Vimeo</a></li>
			<?php endif; ?>
			<?php if ($this->params->get('yahoo') != '') : ?>
			<li><a target="_blank" id="yahoo" title="Yahoo" href="<?php echo $this->params->get('yahoo') ?>">Yahoo</a></li>
			<?php endif; ?>			
			<?php if ($this->params->get('wordpress') != '') : ?>
			<li><a target="_blank" id="wordpress" title="Wordpress" href="<?php echo $this->params->get('wordpress') ?>">Wordpress</a></li>
			<?php endif; ?>
			
			<?php if ($this->params->get('skype') != '') : ?>
			<li><a target="_blank" id="skype" title="Skype" href="<?php echo $this->params->get('skype') ?>">Skype</a></li>
			<?php endif; ?>
			

			<?php if ($google1 == 'yes') : ?>
			<li><g:plusone  size="small" count="false"></g:plusone></li>
			<?php endif; ?>
			
		</ul>
		</div>
		<?php endif; ?>		
	
	
</div>	<!-- end of wrapper-->

</td></tr></table>

<?php if ($google1 == 'yes') : ?>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<?php endif; ?>

</body>
</html>