<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_( 'behavior.mootools' );
//  Copyright:  (C) 03.2008 Templatka.pl. All Rights Reserved.
//  License:	GNU/GPL 
//  Website: 	http://www.templatka.pl
?>

<!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" />
	<?php
	
	// ### USTAWIENIA STANDARDOWE ### //
		
		$numertemplatki = 'templatka11';
		$sciezkat = $this->baseurl.'/templates/'.$numertemplatki;
		$narzedzia_strony = $this->params->get("Pokaz_Narzedzia", "0"); 
		$default_width = $this->params->get("Rozmiar_Strony", "standard");
		$default_css = $this->params->get("Styl_Strony", "ciemny");
		$default_font  = $this->params->get("Rozmiar_Czcionki", "standard"); 
		$menu_name = $this->params->get("Nazwa_Menu", "mainmenu");
		$menustyle = $this->params->get("Rodzaj_Menu", "2");
		include ("templates/".$this->template ."/php/narzedzia.php");
	?>
	
	<?php 
		include ("templates/".$this->template ."/php/sekcjahead.php");
		include ("templates/".$this->template ."/php/tmplmenu.php");
		include ("templates/".$this->template ."/php/automoduly.php");
	?>	
</head>
	
<body>	
<div id="strona" style="font-size:<?php echo $tpl_font; ?>;">					
	<div id="stronaa">
		<div id="stronaaw">
			<div id="rozmiary1" style="width:<?php echo $tpl_width; ?>;">	
				<div id="goratop">
					<div id="goratop1" class="clearfix">				
						<div id="narzedzia">
							<?php
								if ( $narzedzia_strony == 0 || $narzedzia_strony == 1 || $narzedzia_strony == 4 || $narzedzia_strony == 5 )
								{
									echo "<a href='".$sciezka."zmien_css=jasny"."'><img src='".$sciezkat."/images/narzedzia/jasny.gif' alt='jasny' /></a>";
									echo "<a href='".$sciezka."zmien_css=ciemny"."'><img src='".$sciezkat."/images/narzedzia/ciemny.gif' alt='ciemny' /></a>";														
								}
							?>
							<?php
								if ( $narzedzia_strony == 0 || $narzedzia_strony == 2 || $narzedzia_strony == 4 || $narzedzia_strony == 6 )
								{
									echo "<a href='".$sciezka."zmien_width=waska"."'><img src='".$sciezkat."/images/narzedzia/waska.gif' alt='waska' /></a>";
									echo "<a href='".$sciezka."zmien_width=standard"."'><img src='".$sciezkat."/images/narzedzia/standard.gif' alt='standard' /></a>";
									echo "<a href='".$sciezka."zmien_width=szeroka"."'><img src='".$sciezkat."/images/narzedzia/szeroka.gif' alt='szeroka' /></a>";
								}
							?>	
							<?php
								if ( $narzedzia_strony == 0 || $narzedzia_strony == 3 || $narzedzia_strony == 5 || $narzedzia_strony == 6 )
								{
									echo "<a href='".$sciezka."zmien_font=mala"."'><img src='".$sciezkat."/images/narzedzia/mala.gif' alt='mala' /></a>";
									echo "<a href='".$sciezka."zmien_font=standard"."'><img src='".$sciezkat."/images/narzedzia/srednia.gif' alt='standard' /></a>";
									echo "<a href='".$sciezka."zmien_font=duza"."'><img src='".$sciezkat."/images/narzedzia/duza.gif' alt='duza' /></a>";
								}
							?>
						</div>		
						<?php if ($this->countModules('advert1')) { ?>
						<div id="goratop2">	
							<jdoc:include type="modules" name="advert1" style="none"/>
						</div>
						<?php } ?>	 
					</div>	
				</div>		
				<div id="stronagora" class="clearfix">
					<div id="stronagoraw">
						<div id="centrumtop">
							<div>	
								<div id="logo">
									<a href="<?php echo $this->baseurl ?>">
										<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.png" alt="Logo" width="300" height="80" border="0"  />
									</a>
								</div>
								<?php if ($this->countModules( 'banner' )) { ?>
									<div id="reklama1" style="width: 540px;">
										<jdoc:include type="modules" name="banner" style="none" />
									</div>
								<?php } ?>
							</div> 
						</div>
					</div>
				</div>
				<div class="cala">
					<div id="dol" class="dol clearfix">
						<?php if (($menustyle == 1) || ($menustyle == 2)) { ?>		
							<div id="mtmenu" class="nav">
								<?php echo $main_menu; ?>
							</div>
							<?php if ($menustyle  == 2) { ?>
								<script type="text/javascript" src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/js/slajd.js"></script>
							<?php } ?>		
						<?php } ?>
						<?php if ($menustyle == 3) { ?>
							<div id="mtmenu">
								<?php echo $main_menu; ?>   
							</div>
							<div style="clear:both;">
							</div>
						<?php } ?>
							<?php if ($menustyle == 3) { ?>
								<div id="mtmenup">
									<?php echo $main_submenu; ?>
								</div>
							<div style="clear:both;">
							</div>
						<?php } ?>		
					</div>				
				</div>	
			</div>							
		</div>							
	</div>						
							
	<div id="stronab">
		<div id="stronabw">
			<div id="rozmiary2" style="width:<?php echo $tpl_width; ?>;">
			
				<?php if ($topjest) { ?>		
						<!-- top3module -->
						<?php if ($top3module) { ?>
							<div id="dol5" class="dol5 clearfix">
						
							<?php if ( $this->countModules('header') ) { ?>
								<div class="dlbox" style="width: <?php echo $top3width ?>;">
									<jdoc:include type="modules" name="header" style="rounded"/>
								</div>
							<?php } ?>									
							<!--pokaz-->
							<?php if ($slajdjest) { ?>
								<div class="dlbox" style="width: <?php echo $top13width ?>;">
									<?php if ($slajdjest) { ?>
										<div id="smodul">
											<div id="rozmiar">
												<div id="sli" class="sli">
													<div>
														<?php if ( $this->countModules('user20') ) { ?>
															<div style="width: <?php echo $top14width ?>;">
																<jdoc:include type="modules" name="user20" style="xhtml"/>
															</div>
														<?php } ?>
			
														<?php if ( $this->countModules('user21') ) { ?>
															<div style="width: <?php echo $top14width ?>;">
																<jdoc:include type="modules" name="user21" style="xhtml"/>
															</div>
														<?php } ?>				
														<?php if ( $this->countModules('user22') ) { ?>
															<div style="width: <?php echo $top14width ?>;">
																<jdoc:include type="modules" name="user22" style="xhtml"/>
															</div>
														<?php } ?>
														<?php if ( $this->countModules('user23') ) { ?>
															<div style="width: <?php echo $top14width ?>;">
																<jdoc:include type="modules" name="user23" style="xhtml"/>
															</div>
														<?php } ?>
														<?php if ( $this->countModules('user24') ) { ?>
															<div style="width: <?php echo $top14width ?>;">
																<jdoc:include type="modules" name="user24" style="xhtml"/>
															</div>
														<?php } ?>
													</div>
													<script type='text/javascript'>
														var  pokaz = new SimpleSlide("sli",{type: "fade", direction: "forward", auto: "loop", time: 4000, duration: 500});
														$('sli').addEvent('mouseenter', function(){pokaz.stop();});
														$('sli').addEvent('mouseleave', function(){pokaz.start();});
													</script>
												</div>
												<div class="sguzik">
													<?php if ( $liczba > 0 ) { ?>
														<a  class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide($("sli"),{type: "scroll", goTo: 1, duration: 600});'>
															<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/s1.gif" width = "24" height = "24" alt="1" />
														</a>
													<?php } ?>
													<?php if ( $liczba > 1 ) { ?>
														<a  class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide($("sli"),{type: "scroll", goTo: 2, duration: 600});'>
															<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/s2.gif" width = "24" height = "24" alt="2" />
														</a>
													<?php } ?>
													<?php if ( $liczba > 2 ) { ?>
														<a  class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide($("sli"),{type: "scroll", goTo: 3, duration: 600});'>
															<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/s3.gif" width = "24" height = "24" alt="3" />
														</a>
													<?php } ?>
													<?php if ( $liczba > 3 ) { ?>
														<a  class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide($("sli"),{type: "scroll", goTo: 4, duration: 600});'>
															<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/s4.gif" width = "24" height = "24" alt="4" />
														</a>
													<?php } ?>
													<?php if ( $liczba > 4 ) { ?>
														<a  class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide($("sli"),{type: "scroll", goTo: 5, duration: 600});'>
															<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/s5.gif" width = "24" height = "24" alt="5" />
														</a>
													<?php } ?>
													<a class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide("sli",{type: "scroll", direction: "back", duration: 600});'>
														<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/pop.gif" width = "24" height = "24" alt="back" />
													</a>
													<a class="sgoto" onclick='javascript: pokaz.stop(); new SimpleSlide("sli",{type: "scroll", direction: "forward", duration: 600});'>
														<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/nas.gif" width = "24" height = "24" alt="forward" />
													</a>
													<a  class="sgoto" onclick='javascript: pokaz.start();'>
														<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/sta.gif" width = "24" height = "24" alt="start" />
													</a>
													<a  class="sgoto" onclick='javascript: pokaz.stop();'>
														<img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/images/pokaz/sto.gif" width = "24" height = "24" alt="stop" />
													</a>
												</div>
											</div> 
										</div>
									<?php } ?>
								</div>
							<?php } ?>
							<div class="clr"></div>	
							<!--pokaz-->
							<?php if ( $this->countModules('advert2') ) { ?>
								<div class="dlbox" style="width: <?php echo $top3width ?>;">
									<jdoc:include type="modules" name="advert2" style="rounded"/>
								</div>
							<?php } ?>
							</div>
						<?php } ?>
						<!-- top3module -->		
						<div class="clr"></div>	
						
						<?php if ($top1module) { ?>
							<div id="dol1" class="dol1 clearfix">
								<?php if ( $this->countModules('user4') ) { ?>
									<div class="dlbox" style="width: <?php echo $top1width ?>;">
										<jdoc:include type="modules" name="user4" style="rounded"/>
									</div>
								<?php } ?>
			
								<?php if ( $this->countModules('user5') ) { ?>
									<div class="dlbox" style="width: <?php echo $top1width ?>;">
										<jdoc:include type="modules" name="user5" style="rounded"/>
									</div>
								<?php } ?>
								
								<?php if ( $this->countModules('user6') ) { ?>
									<div class="dlbox" style="width: <?php echo $top1width ?>;">
										<jdoc:include type="modules" name="user6" style="rounded"/>
									</div>
								<?php } ?>
								
								<?php if ( $this->countModules('user7') ) { ?>
									<div class="dlbox" style="width: <?php echo $top1width ?>;">
										<jdoc:include type="modules" name="user7" style="rounded"/>
									</div>
								<?php } ?>
							</div>
						<?php } ?>
						
						<div class="clr"></div>
								
						<?php if ($top2module) { ?>
							<div id="panel1"> 
								<div id="zwin1">
									<a href="#" onclick="inter=setInterval('Zwin1()',3);return false;"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/zwin.png" alt="Panel 1" title="Panel 1" width="100" height="15" border="0" />
									</a>
								</div>	
								<?php if ($top2module) { ?>	
									<?php if ( $this->countModules('user8') ) { ?>
										<div class="dlbox" style="width: <?php echo $top2width ?>;">
											<jdoc:include type="modules" name="user8" style="rounded"/>
										</div>
									<?php } ?>
			
									<?php if ( $this->countModules('user9') ) { ?>
										<div class="dlbox" style="width: <?php echo $top2width ?>;">
											<jdoc:include type="modules" name="user9" style="rounded"/>
										</div>
									<?php } ?>
								
									<?php if ( $this->countModules('user10') ) { ?>
										<div class="dlbox" style="width: <?php echo $top2width ?>;">
											<jdoc:include type="modules" name="user10" style="rounded"/>
										</div>
									<?php } ?>
								
									<?php if ( $this->countModules('user11') ) { ?>
										<div class="dlbox" style="width: <?php echo $top2width ?>;">
											<jdoc:include type="modules" name="user11" style="rounded"/>
										</div>
									<?php } ?>
								<?php } ?>
							</div>
							<div id="rozwin1">
								<a href="#" onclick="inter=setInterval('Rozwin1()',3);return false;"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/rozwin.png" alt="Panel 1" title="Panel 1" width="100" height="15" border="0" />
								</a>
							</div>
						<?php } ?>
						<div class="clr"></div>	
				<?php } ?>		
			</div>
		</div>	
	</div>	
	
	<div id="stronac">
		<div id="rozmiary3" style="width:<?php echo $tpl_width; ?>;">	
			<div class="cala">
				<div id="sciezka">
					<jdoc:include type="module" name="breadcrumbs" style="none" /> 
				</div>
				<div id="centrum1" >
					<div class="centrum-left" >
						<div id="centrum2" >
							<div id="centrum3" >			
								<div>
									<?php if ($centrummodule) { ?>
										<div id="rozmiary4">
											<div id="dol2" class="dol2 clearfix">
												<?php if ($this->countModules('left') || $this->countModules('user1')) { ?>
													<div class="dlbox" style="width: <?php echo $leftwidth ?>;">
														<jdoc:include type="modules" name="left" style="rounded"/>
														<jdoc:include type="modules" name="user1" style="rounded"/>
													</div>
												<?php } ?>
												<?php if ($this->countModules('top') || $this->countModules('bottom') || $mainmodule) { ?>
													<div class="dlbox" style="width: <?php echo $mainwidth ?>;">
														<?php if ($this->countModules('top')) { ?>
															<jdoc:include type="modules" name="top" style="rounded" />
														<?php } ?>
														<div id="main">
															<jdoc:include type="message" />	
															<jdoc:include type="component" />
														</div>	
														<?php if ($this->countModules('bottom')) { ?>
															<jdoc:include type="modules" name="bottom" style="rounded" />
														<?php } ?>		
													</div>
												<?php } ?>
												<?php if ($this->countModules('right') || $this->countModules('user2')) { ?>
													<div class="dlbox" style="width: <?php echo $rightwidth ?>;">
														<jdoc:include type="modules" name="right" style="rounded"/>
														<jdoc:include type="modules" name="user2" style="rounded"/>
													</div>
												<?php } ?>
											</div>
										</div>
									<?php } ?>		
								</div>
								<div id="skoktop" align="center">
									<a href="#goratop" title="Top" >
										<img src="<?php echo $this->baseurl;?>/templates/<?php echo $this->template; ?>/images/top.gif" border="0" alt="Top" title="Top" />
									</a>
								</div>
							</div>
						</div>
					</div>			
				</div>
			</div>	
		</div>															
	</div>		

	<div id="stronad">
		<div id="stronadw">	
			<div id="rozmiary5" style="width:<?php echo $tpl_width; ?>;">	
				
				<?php if ($bottom1module) { ?>
					<div id="odstep10"></div>
					<div id="dol3" class="dol3 clearfix">
								
						<?php if ( $this->countModules('user12') ) { ?>
							<div class="dlbox" style="width: <?php echo $bottom1width ?>;">
								<jdoc:include type="modules" name="user12" style="xhtml"/>
							</div>
						<?php } ?>
			
						<?php if ( $this->countModules('user13') ) { ?>
							<div class="dlbox" style="width: <?php echo $bottom1width ?>;">
								<jdoc:include type="modules" name="user13" style="xhtml"/>
							</div>
						<?php } ?>
									
						<?php if ( $this->countModules('user14') ) { ?>
							<div class="dlbox" style="width: <?php echo $bottom1width ?>;">
								<jdoc:include type="modules" name="user14" style="xhtml"/>
							</div>
						<?php } ?>
			
						<?php if ( $this->countModules('user15') ) { ?>
							<div class="dlbox" style="width: <?php echo $bottom1width ?>;">
								<jdoc:include type="modules" name="user15" style="xhtml"/>
							</div>
						<?php } ?>	
					</div>
				<?php } ?>		
				
				<div class="clr"></div>
					
				<?php if ($bottom2module) { ?>
					<div id="panel2"> 
						<div id="zwin2">
							<a href="#" onclick="inter=setInterval('Zwin2()',3);return false;"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/zwin2.png" alt="Panel 2" title="Panel 2" width="100" height="15" border="0" />
							</a>
						</div>	
						<?php if ($bottom2module) { ?>
							<?php if ( $this->countModules('user16') ) { ?>
								<div class="dlbox" style="width: <?php echo $bottom2width ?>;">
									<jdoc:include type="modules" name="user16" style="xhtml"/>
								</div>
							<?php } ?>
							<?php if ( $this->countModules('user17') ) { ?>
								<div class="dlbox" style="width: <?php echo $bottom2width ?>;">
									<jdoc:include type="modules" name="user17" style="xhtml"/>
								</div>
							<?php } ?>
							<?php if ( $this->countModules('user18') ) { ?>
								<div class="dlbox" style="width: <?php echo $bottom2width ?>;">
									<jdoc:include type="modules" name="user18" style="xhtml"/>
								</div>
							<?php } ?>
							<?php if ( $this->countModules('user19') ) { ?>
								<div class="dlbox" style="width: <?php echo $bottom2width ?>;">
									<jdoc:include type="modules" name="user19" style="xhtml"/>
								</div>
							<?php } ?>
						<?php } ?>							
					</div>
					<div id="rozwin2">
						<a href="#" onclick="inter=setInterval('Rozwin2()',3);return false;"><img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/rozwin2.png" alt="Panel 2" title="Panel 2" width="100" height="15" border="0" />
						</a>
					</div>
				<?php } ?>				
			</div>
		</div>								
	</div>		

	<div id="stronae">
		<div id="stronaew">	
			<div id="rozmiary6" style="width:<?php echo $tpl_width; ?>;">
				<div id="stopka">
					<div id="stopka1" class="clearfix">
						<jdoc:include type="modules" name="user3" style="xhtml"/>
						<div id="stopka2">	
							<jdoc:include type="modules" name="footer" style="xhtml"/>
						</div>
						<div id="design">
							Designed by <a href="http://www.templatka.pl/">Templatka</a>.pl
						</div>
					</div>
				</div>						
			</div>
		</div>
	</div>											
<jdoc:include type="modules" name="debug" />
</div>

			
</body>
</html>