{include file='header.tpl'}
                  <div id="main">


<div id="content">
<div width="1100px"  id="belka-top">

					<div id="toplogowanie">						
								 <form action="{$getUrl}" method="post">
								<table border="0" >
								<tr>
								<td height="10px"><input type="text" name="login"  style="width: 80px; height: 17px; font-size:11px; " value="{if $login != null}{$login}{else}login{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'login') {this.value = '';}" onblur="if (this.value == '') {this.value = 'login';}"{/literal} /></td>
								<td><input type="password" name="pass"  style="width:80px; height:17px; font-size:11px; " value="{if $pass != null}{$pass}{else}pass{/if}"  style="width: 80px;" {literal}onfocus="if (this.value == 'pass') {this.value = '';}" onblur="if (this.value == '') {this.value = 'pass';}"{/literal} /></td>
								<td colspan="2"><input type="hidden" name="getLogin" value="" />
								<button type="submit" style="width: 50px; height: 20px; font-size:10px; " > OK </button>&nbsp;&nbsp;</td>
								</tr>
								</table>
								</form>
				</div>

				 <div id="tlumacz">
							{*	<div id="translate-this"><a href="http://translateth.is/" class="translate-this-button">Translate</a></div>
								 
								<script type="text/javascript" src="http://www.google.com/jsapi"></script>
								<script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script>
								<script type="text/javascript"> 
									{literal} TranslateThis();	{/literal}
								</script>
								*}
				</div>
				
				<div id="dodaj-ogloszenie"><a href="panel,dodaj.html" class="ogloszenie">Dodaj ogłoszenie</a></div>
				
</div>

<div width="1100px"  >

<div style="float:left; width: 280px; padding-left:12px;"  id="demo">
				<div>
								<table style="color:#ffffff">
								<TR><td align="center" bgcolor="#7F3D01" height="25px" width="280px"><FONT SIZE="2" >AGENCJE NIERUCHOMOŚCI</td></tr>
								</table>


																					{assign var='i' value='0'}
                                          {foreach from=$showDiler item=Di}
                                          {assign var='i' value=$i+1}
										<div {if $i%2 != 0}class="list_1"{else}class="list_2"{/if} >
																								<table border="0" cellpadding="1" cellspacing="3" >
																											<tr ><td width="100px" align="center" height="70px">
																											{if $Di.dilerfoto != null } 
																											<a href="agent,{$Di.uzytkownik}.html" ><img src="./diler/male/{$Di.dilerfoto}"  style="border: 3px double #b6c1ce "></a>
																											{else}{/if}
																											</td><td width="200px">
																											<div style="font-size: 11px;" align="center">
																											<b>Agencja:</b><br> {$Di.dilerNazwa }<br>
																											<span class="offersdetails2">&raquo;</span> <a href="agent,{$Di.uzytkownik}.html" class="offersdetails2B" >strona agencji </a></div>
																											</td>
																												<td     align="center" style="background:#d0cdcd" >
																												<A href="agent,{$Di.uzytkownik}.html"><img src="images/fotki.png" border="0"		title="Przejście do strony Agencji jak i Ogłoszeń tej Agencji."></a><br>
																												<A href="agent,{$Di.uzytkownik}.html"><img src="images/mapa.png" border="0"	title="<b>Maiasto:</b> {$Di.dilerMiasto}<br><b>Ulica:</b> {$Di.dilerUlica}<br><b>Telefon:</b> {$Di.dilerTel }<br><b>E-mail</b>: {$Di.dilerEmail}"></a>
																												</td>
																																			</tr>
																									</table>
										</div>
                                          {/foreach}

			</div>
			<div style="padding-top:20px">
								<table style="color:#ffffff">
								<TR><td align="center" bgcolor="#7F3D01" height="25px" width="280px"><FONT SIZE="2" >OBIEKTY WYRÓŻNIONE</td></tr>
								</table>
								
								                         {assign var='i' value='0'}
                                          {foreach  from=$showPromoM item=M}
                                          {assign var='i' value=$i+1}
                                          {if isset($ie)}<li>{else}<span>{/if}
													<div {if $i%2 != 0}class="list_1A"{else}class="list_2A"{/if} >
																	<table width="275px" border="0" cellpadding="2" cellspacing="2"  style="background:#9d500a" style="color:#000000">
																	<tr><td width="100px" rowspan="6" align="center"  >{if $M.photo != null}
																	<A href="obiekt,{$M.obId},{nopl str=$M.obName}.html"   ><img src="files/photo/mini/{$M.photo}" border="0" width="100" style="border: 3px double #b6c1ce " title="<b>Województwo:</b> {$M.stateName} <br> <b>Miasto:</b> {$M.obCity}<br> <b>Ulica:</b> {$M.obAdress}"/></a>
																	{else}<A href="obiekt,{$M.obId},{nopl str=$M.obName}.html"  /></A>{/if}</td></tr>
																	<tr>
																	<td height="20px"   style="background:#d2c276" align="center"><strong  style="color:#000000"> {$M.obName|substr:0:21}</strong></td></tr>
																	<tr><td  ><b>Typ:</b> <span >{$M.typeName|substr:0:15}</span></td></tr>
																	<tr><td height="20px" ><b>Ogłoszenie:</b> {$M.katName}</td></tr>
																	<tr><td ><span ><b>Cena: {$M.obPriceOn} zł</b></span></td></tr>

																	<tr><td align="right" height="20px" colspan="2" style="padding-right:10px" ><a href="obiekt,{$M.obId},{nopl str=$M.obName}.html"  class="offersdetailsA">zobacz szczegóły</a> <span class="offersdetails2A">&raquo;</span></td></tr>	
																	</table>
													 </div>
                                          {if isset($ie)}</li>{else}</span>{/if}
                                          {/foreach}
																					
																					
			</div><br style="clear:both;" />
			<div style="padding-top:20px">
								<table style="color:#ffffff">
								<TR><td align="center" bgcolor="#7F3D01" height="25px" width="280px"><FONT SIZE="2" >OBIEKTY PROMOWANE</td></tr>
								</table>
								
                                     {assign var='i' value='0'}
                                          {foreach name=promo from=$promo item=P}
                                          {assign var='i' value=$i+1}
                                          {if isset($ie)}<li>{else}<span>{/if}
													<div {if $i%2 != 0}class="list_1A"{else}class="list_2A"{/if} {if $P.obPromo == '1'}style="border: 1px solid #{$promoColorBorder}; background: #{$promoColorBg}"{elseif $P.obLastMinute == '1'}{/if} >
																	<table width="275px" border="0" cellpadding="2" cellspacing="2"  style="color:#000000">
																	<tr><td width="100px" rowspan="6" align="center"  >{if $P.photo != null}
																	<A href="obiekt,{$P.obId},{nopl str=$P.obName}.html"   ><img src="files/photo/mini/{$P.photo}" border="0" width="100" style="border: 3px double #b6c1ce " title="<b>Województwo:</b> {$P.stateName} <br> <b>Miasto:</b> {$P.obCity}<br> <b>Ulica:</b> {$P.obAdress}"/></a>
																	{else}<A href="obiekt,{$P.obId},{nopl str=$P.obName}.html"  /></A>{/if}</td></tr>
																	<tr>
																	<td height="20px"   style="background:#DDDCDC" align="center"><strong > {$P.obName|substr:0:21}</strong></td></tr>
																	<tr><td  ><b>Typ:</b> <span >{$P.typeName|substr:0:15}</span></td></tr>
																	<tr><td height="20px" ><b>Ogłoszenie:</b> {$P.katName}</td></tr>
																	<tr><td ><span ><b>Cena: {$P.obPriceOn} zł</b></span></td></tr>

																	<tr><td align="right" height="20px" colspan="2" style="padding-right:10px" ><a href="obiekt,{$P.obId},{nopl str=$P.obName}.html"  class="offersdetails2B">zobacz szczegóły</a> <span class="offersdetails2B">&raquo;</span></td></tr>	
																	</table>
													 </div>
                                          {if isset($ie)}</li>{else}</span>{/if}
                                          {/foreach}
																					
																					
			</div>
			
	 <script src="js/jquery.tools.min.js"></script>
	 <script type="text/javascript" src="./js/toltip.js" ></script>
	 <script>  
				{literal}
						$("#demo img[title]").tooltip({
						offset: [10, 2],
						 effect: 'slide'

						}).dynamic({ bottom: { direction: 'down', bounce: true } });
				{/literal}
	</script>
<br style="clear:both;" />
</div>

<div style="float:left; width: 750px; padding-left:12px;">

{foreach from=$index item=I}

<div id="ofertap">
			<div class="header"><h3>{$I.obName}</h3></div>

					<div class="spl2">
									<div class="l">
												<div class="info">
																		<table cellspacing="2" cellpadding="2"  width="100%" >
																		<tr ><td class="opisA"><strong style="color:white">Miasto:</strong></td><td class="opis3">{$I.obCity}</td></tr>
																		<tr ><td class="opisA"><strong style="color:white">Dzielnica:</strong></td><td class="opis3">{$I.obDzielnica}</td></tr>
																		<tr ><td class="opisA"><strong style="color:white">Ulica:</strong></td><td class="opis3">{$I.obAdress}</td></tr>
																		<tr ><td class="opisA"><strong style="color:white">Województwo:</strong></td><td class="opis3">{$I.stateName}</td></tr>
																		<tr ><td class="opis">Typ obiektu:</td><td class="opis3">{$I.typeName}</td></tr>
																		<tr ><td class="opis">Typ transakcji:</td><td class="opis3">{$I.katName}</td></tr>
																		<tr><td>&nbsp;</td></tr>
																		<tr ><td class="opis">Telefon:</td><td class="opis3">{$I.obTel}</td></tr>
																		<tr><td class="opis">Strona WWW:</td><td class="opis3">{if $I.obWww != null}<a rel="nofollow" href="http://www.{$I.obWww}" target="_blank" >{$I.obWww}</a>{else}brak...{/if}</td></tr>	
																		<tr><td class="opis"><strong>E-mail:</strong></td><td  class="opis3">{if $I.obEmail != null}
																			<b><a href="javascript:;" onclick="{literal}var r=document.getElementById('kontakt').style;r.display=(r.display=='none')?'':'none';this.innerHTML=(r.display=='none')?'<font color=red>ZOBACZ</font>':'<font color=red>UKRYJ</font>';try {hs.getExpander(this).reflow();} catch(e){}; return false;	{/literal}"><font color=red>ZOBACZ</font></a> </b>
																		{else}brak danych...{/if}
																		</td></tr>
																		<tr><td>&nbsp;</td></tr>
																		<tr ><td class="opisA"><strong style="color:white">Cena:</strong></td><td class="opis3"><b>{$I.obPriceOn} zł </b></td></tr>
																		<tr><td></td><td><g:plusone size="medium"></g:plusone></td></tr>
																		</table>
																	<div class="footer"></div>
												</div>
												
<div id="kontakt" style="display:none">
												<table border="0" cellpadding="2" cellspacing="2" width="350px" >
												<TR><td align="center" bgcolor="#572A01" height="20px"  style=" font-size:12px; color:#ffffff"><b>NAPISZ DO NAS</b></td></tr>
												<tr><td>
                                {if $error != null}<div  align="center"><table align="center"><tr><td align="center"><font color="red"><b>{foreach from=$error item=E}<li>{$E}</li>{/foreach}</b></font></td></tr><tr><td><br><br></td></tr></table></div>{/if}
                                {if $success != null}<div  align="center"><table align="center"><tr><td align="center"><font color="#1f8603"><b>{foreach from=$success item=S}<li>{$S}</li>{/foreach}</b></font></td></tr><tr><td><br><br></td></tr></table></div>{/if}
                                   
                                                <form action="{$getUrl}?" method="post">
                                                <table border="0">
                                                        <tr>
                                                                <td width="70px" align="left" style="font-size:11px;">Twój email *</td>
                                                                <td><input type="text" name="email" value="{$email}" style="width: 200px;" /></td>
                                                        </tr>
                                                        <tr>
                                                                <td align="left" style="font-size:11px;">Temat *</td>
                                                                <td><input type="text" name="temat" value="{$temat}" style="width: 260px;" /></td>
                                                        </tr>
                                                        <tr>
                                                                <td align="left" style="font-size:11px;">Treść *</td>
                                                                <td><textarea name="txt" rows="" cols="" style="width: 270px; height: 200px;" class="textarea">{$txt}</textarea></td>
                                                        </tr>
																												<tr><td></td><td><img src="class/CaptchaSecurityImages.php?width=100&height=40&characters=5" /></td></tr>
																												<tr><td align="left"><label for="security_code">Kod : </label></td><td><input id="security_code" name="security_code" type="text" /></td></tr>
                                                        <tr>
                                                                <td></td>
                                                                <td align="right" style="font-size:11px;">* Wymagane  pola 
																																<input type="hidden" name="countadd" value="true" />
																																<input type="hidden" name="sendMessage" value="" /><button type="submit" >&nbsp; Wy&#347;lij&nbsp; </button></td>
                                                        </tr>
																												<tr><td><br><Br></td></tr>
	
		
                                                </table>
                                                </form>
                                              
													</td></tr>
													</table>
</div>

							
												

							
													
									</div>
   <!-- Arquivos utilizados pelo jQuery lightBox plugin -->
    
    <script type="text/javascript" src="js/lightbox/jquery.lightbox-0.5.js"></script>
    <link rel="stylesheet" type="text/css" href="css/lightbox/jquery.lightbox-0.5.css" media="screen" />
    <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin -->
		{literal}
			<script type="text/javascript">
    $(function() {
        $('#gallery a').lightBox();
    });
    </script>
{/literal}
						
									
<div id="galeria">
																				{foreach from=$photos item=P1}{/foreach }
																				 {if $P1.photoUrl!= null}
																	<div id="gallery">
																										
<ul>
																				{assign var='i' value='0'}
																				{foreach from=$photos item=P}
																				{assign var='i' value=$i+1}
																				
							<li><s><a href="files/photo/big/{$P.photoUrl}" title="{$I.obName}">
                <img src="files/photo/mini/{$P.photoUrl}" style="border: 3px double #b6c1ce" alt="{$I.obName}" /></a></s>
						</li>
																				<!--<s><a href="files/photo/big/{$P1.photoUrl}" style="background-image:url(files/photo/mini/{$P.photoUrl});border: 3px double #b6c1ce"  rel="lightbox">	</a></s>-->
																										
																			{/foreach }
</ul>
																	</div>
																			<span>Kliknij w miniaturę by powiększyć</span>
																			{else}{/if}
														</div>	

																								
												<div align="center" style="float:right; width: 360px; padding-right:10px;" >
																<div  style="float:left;padding-left:30px;pading-top:10px"><font face="Tahoma" size="1">Reklama</font></div>
																 {assign var='i' value='0'}
																{foreach from=$reklamaB  item=RB}
																{assign var='i' value=$i+1}
																<center><a href="{$RB.url}" target=_blanck>{$RB.kod} </a></center>
																{/foreach}
												</div>
																				
																		
												
														
							 
													
									</div>
									

										
		  </div>

<!-- Mapa --->
								    
	              {literal}
              <script type="text/javascript">

                $( document ).ready( function() {
               // mapaStart();
									mapaStart2();
                } );
              //  $( document ).unload( function() {
              //  GUnload();
              //  } );

	</script>
              {/literal}							   
<!--		   {if isset($maps)} -->
              {literal}

              <script type="text/javascript">
/*

              function mapaStart()
              {
                var geo = new GClientGeocoder();
                var adress = '{/literal}{$googleAdress}{literal}';
									
									var infoTabs = [   
									new GInfoWindowTab("Opis Kwatery", "<div style='float: left; width: 84px;'><img src='{/literal}{if $P.photoUrl != null}files/photo/mini/{$P.photoUrl}{else}img/no_pic.jpg{/if}' style='border: 0px double #b6c1ce' ></div><div style='margin-left:30px; padding: 5px 0; font-size:xx-small'><div ><b>Typ:</b> <strong><font color=red>{$I.typeName}</font></strong></div> <div style='font-size:xx-small'><b> Miassto:</b> {$I.obCity}</div><div style='font-size:xx-small'><b>Adres:</b> {$I.obAdress}</div><div style='font-size:xx-small'><b>Województwo:</b> {$I.stateName}</div></div>{literal}"),   
																					new GInfoWindowTab("W pobliżu", "{/literal}{if strstr($I.obNearby, 'c1')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu dworzec PKS'><img src='iko/i_pks.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c2')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu dworzec PKP'><img src='iko/i_pkp.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c3')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu kąpielisko'><img src='iko/mi_basen2.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c4')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu znajduje się wyciąg narciarski'><img src='iko/mi_narty.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c5')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu znajduje się sklep'><img src='iko/mi_sklep.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c6')}<a href='javascript:void(0);' class='tooltip' title='W okolicy znajduje się jezioro'><img src='iko/mi_zagle.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c7')}<a href='javascript:void(0);' class='tooltip' title='W okolicy znajduje się morze'><img src='iko/mi_plaza.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c8')}<a href='javascript:void(0);' class='tooltip' title='W okolicy znajdują się góry'><img src='iko/mi_gory.png' border='0' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c9')}<a href='javascript:void(0);' class='tooltip' title='W okolicy można znaleść zabytki'><img src='iko/mi_zabytki.png' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c10')}<a href='javascript:void(0);' class='tooltip' title='W okolicy znajdują się dobre miejsca wędkarskie'><img src='iko/mi_ryby.png' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c11')}<a href='javascript:void(0);' class='tooltip' title='W okolicy jest możliwość zbierania grzybów'><img src='iko/mi_grzyby_las.png' /></a>&nbsp; &nbsp; {else}{/if}{if strstr($I.obNearby, 'c12')}<a href='javascript:void(0);' class='tooltip' title='W pobliżu jest możliwość zorganizowania ogniska'><img src='iko/mi_ognisko.png'  border='0'/></a>&nbsp; &nbsp; {else}{/if}{literal}")   
																													];  
								
                geo.getLatLng(adress,function(punkt)
                {
                        if (!punkt)
                        {
                                var adressB = '{/literal}{$googleAdressB}{literal}';
																		alert(adres + " nie został znaleziony!"); 

                        }
                        else
                        {
												var mapa = new GMap2(document.getElementById("map"));
												
												mapa.panTo(punkt); 
												mapa.clearOverlays(); 

												//	mapa.addControl(new GOverviewMapControl());
												//	mapa.addControl(new GSmallMapControl());
        mapa.addControl(new GLargeMapControl());
        mapa.addControl(new GScaleControl());
        mapa.addControl(new GMapTypeControl());
        //geocoder = new GClientGeocoder();

												//	mapa.enableContinuousZoom(); 
												//	mapa.enableDoubleClickZoom(); 
												//	mapa.enableScrollWheelZoom(); 


													
													
													var hotelIcon = new GIcon(G_DEFAULT_ICON); 
												
													 hotelIcon.image = 'http://labs.google.com/ridefinder/images/mm_20_red.png';  
													 hotelIcon.shadow='';
                        hotelIcon.iconSize = new GSize(12, 20);
													hotelIcon.iconAnchor = new GPoint(16,16);   
													hotelIcon.infoWindowAnchor = new GPoint(16,16);  

												
													//var marker = new GMarker(map.getCenter()); 
														var marker = new GMarker(punkt,{icon: hotelIcon,title: adress});
																		 
														GEvent.addListener(marker,"click",function() {  
                        // marker.openInfoWindowHtml(infoTabs);  
														marker.openInfoWindowTabsHtml(infoTabs); 
                        }); 
												mapa.setCenter(punkt, 13);
                       mapa.addOverlay(marker);
													marker.openInfoWindowTabsHtml(infoTabs);
													
                             
                        }
													
                });
              }
*/
        </script>
        {/literal}
        {/if}
		 <!-- Mapa --->

<!-- spl2 koniec-->
{literal}	
	<script>
		$(document).ready(function() {
			//dla każdego miejsca z tabami
			$('.tabs').each(function() {			
				var $ul = $(this);
				var $li = $ul.children('li');	
				
				//przy wejsciu na strone ukrywamy tresc tabow...
				$li.each(function() {
					var $trescTaba = $($(this).children('a').attr('href'));
					if ($(this).hasClass('active')) {
						$trescTaba.show();
					} else {
						$trescTaba.hide('200');
					}
					$(this).append('<span class="right"></span>');
				});
				
				//mały trik - gdy klikamy na li tab, wtedy wykonujemy zdarzenie dla linka, który się w nim znajduje (dzieki temu możemy kliknąć na cały tab, a nie tylko na linka)
				$li.click(function() {$(this).children('a').click()});
				//po kliknięciu na link...
				$li.children('a').click(function() {
					if (!$(this).parent().hasClass('disable')) {
						//usuwamy z tabów klasę active
						$li.removeClass('active');										
						//ukrywamy wszystkie taby					
						$li.each(function() {
							$($(this).children('a').attr('href')).hide();
						});										
						//ustawiamy klikniętemu tabowi klasę aktywną
						$(this).parent().addClass('active');
						$($(this).attr('href')).show();
					} else {
						$(this).blur();
					}
					//nie chcemy wykonać domyślnej akcji dla linka
					return false;
				});
			});		
		});
	</script>
	{/literal}
	
	 
	<link rel="stylesheet" type="text/css" href="css/ogloszenie.css" media="screen" />
	
										
										
	 <ul class="tabs" style="padding-top:30px;">     
	 <li class="active"><a href="#tab-1" class="active">OPIS OBIEKTU</a></li>     
	 {*<li><a href="#tab-2">MAPA DOJAZDU</a></li>  *}   
	 <li><a href="#tab-3">WYTYCZ TRASĘ</a></li>     
	 <li><a href="#tab-4">KONTAKT</a></li>     
	 {*<li><a href="#tab-5"></a></li>*}                       
	 </ul>  
	 <div id="tab-1" class="tab">
					<div style="width:700px; margin:5px; font:12px;text-align:justify;"> 

							<p><h5  >INFORMACJE DODATKOWE:</h5>
							<table width="700"   style="margin-top:10px;" align="Center">
							<tbody>

														<tr><td class="opisA"  width="100px"><b>Typ transakcji:</b></td><td class="opis3"><b><font color="red">{$I.katName}</font></b></td><td width="15px"></td><td class="opisA" width="100px">Stan obiektu: </td><td class="opis3" width="160px">{$I.stanName }</td></tr>
														<tr><td class="opisA"><b>Typ obiektu:</b></td><td class="opis3"><b>{$I.typeName}</b></td><td width="15px"></td><td class="opisA">Cena: </td><td class="opis3" width="160px"><u>{$I.obPriceOn } zł</u></td></tr>
														<tr><td class="opisA"><b>Rok budowy:</b></td><td class="opis3"><b>{$I.obRok}</b></td><td width="15px"></td><td class="opisA"><b>Typ zabudowy:</b></td><td class="opis3"><b>{$I.rodzajName}</b></td></tr>
											<TR><TD></TD></TR>
														<tr><td class="opis">Rynek:</td><td class="opis3">{$I.rynekName}</td><td width="15px"></td><td class="opis">Pow. działki (m2):</td><td class="opis3" width="160px">{$I.obPowD  }</td></tr>
                            <tr><td class="opis">Pow. mieszkalna(m2):</td><td class="opis3" width="140px">{$I.obPowM }</td><td width="15px"></td><td class="opis">Budulec:</td><td class="opis3">{$I.budulecName }</td></tr>
														<tr><td class="opis">Pow. całkowita (m2):</td><td class="opis3" width="160px">{$I.obPoC }</td><td width="15px"></td><td class="opis">Dach:</td><td class="opis3" width="140px">{$I.dachName }</td></tr>
														<tr><td class="opis">Liczba pięter:</td><td class="opis3">{$I.obPietra }</td><td width="15px"></td><td class="opis">Droga dojazdowa: </td><td class="opis3" width="160px">{$I.dojazdName }</td></tr>
														<tr><td class="opis">Piętro:</td><td class="opis3">{$I.obPietro }</td><td width="15px"></td><td class="opis">Ogrodzenie działki: </td><td class="opis3" width="160px">{$I.ogrodzenieName}</td></tr>
                            <tr><td class="opis">Liczba pokoi: </td><td class="opis3" width="140px">{$I.obPokoje }</td><td width="15px"></td><td class="opis">Ogrzewanie: </td><td class="opis3" width="160px">{$I.ogrzewanieName }</td></tr>
														
					
														<tr><td class="opis">Kanalizacja: </td><td class="opis3" width="160px">{$I.kanalizacjaName }</td><td width="15px"></td><td class="opis">Okna: </td><td class="opis3" width="160px">{$I.oknaName }</td></tr>
														<TR><TD></TD></TR>
														<tr><td class="opis">Media: </td><td class="opis3" width="160px">
														{if strstr($I.obTeren, 'a1')} Woda,&nbsp; &nbsp;{else}{/if}
														{if strstr($I.obTeren, 'a2')} Prąd,&nbsp; &nbsp;{else}{/if}
														{if strstr($I.obTeren, 'a8')} Siła,&nbsp; &nbsp;{else}{/if}
														{if strstr($I.obTeren, 'a4')} Gaz&nbsp; &nbsp;{else}{/if}
														</td></tr>
														<TR><TD><br><br></TD></TR>

																			 		{if $I.obRoom!= null}
																					<tr><td class="opis2" colspan="5">DOTATKOWE DANE:  </td></tr>
														<tr>
                              <td valign="top"  class="iko"  colspan="5">
																												{if strstr($I.obRoom, 'b1')}Aneks kuchenny,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b2')}Umeblowane,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b3')}Strych,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b4')}Winda,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b5')}Telefon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b6')}Internet,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b7')}Domofon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b8')}Monitoring,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b9')}Ochrona,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b10')}Ogrodzenie,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b11')}Parking,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b12')}Kominek,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b13')}Balkon,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b14')}Altana,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b15')}Piwnica,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b16')}Suszarnia,&nbsp; &nbsp;{else}{/if}
																												{if strstr($I.obRoom, 'b17')}Garaż,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b18')}Ogród,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b19')}Ogródek,&nbsp; &nbsp;{else}{/if}
                                                        {if strstr($I.obRoom, 'b20')}Sad&nbsp; &nbsp;{else}{/if}
														</td>
                           </tr>
																				{else}{/if}
																					{if $I.obNearby!= null}
																						<tr><td class="opis2" colspan="5">OKOLICA:</td></tr>
																						<tr>
																																			<td valign="top" class="iko" colspan="5">
																																			{if strstr($I.obNearby, 'c1')}Rzeka,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c2')}Góry,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c3')}Łąki,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c4')}Lasy,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c5')}Jezioro,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c6')}Stawy,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c7')}Wieś,&nbsp; &nbsp; {else}{/if}
																																			{if strstr($I.obNearby, 'c8')}Miasto&nbsp; &nbsp; {else}{/if}
																																</tr>
																						{else}{/if}
							</tbody>
						</table> 
																				 
		</p>
{if $I.obOkolica != null}
			<p><h5  >W OKOLICY:</h5>
			{$I.obOkolica}
			</p>
{else}{/if}
<br>
{if $I.obTxt != null}<p><h5  >OPIS:</h5>
				<DIV style="padding-left:20px">	{$I.obTxt}</div>
			</p>
{else}{/if}
					</div>
	 </div> 
	 
	{* 
	<div id="tab-2" class="tab">
				<div id="map" style="width: 704px; height: 380px; border: 1px solid #8d8d8d; ;"></div>
	</div> 
	 *}
	 
	 <div id="tab-3" class="tab"> 

<script src="http://maps.google.com/maps/api/js?sensor=false&language=pl" type="text/javascript"></script>  
{literal}
		<style type="text/css">		
		#wskazowki
		{
			font-family: Tahoma;
			font-size: 11px;
			height: 350px;
			width: 300px;
			overflow: auto;
		}
		</style>
<script type="text/javascript">   
		<!-- 
		
			var mapa; // obiekt globalny
			var dymek = new google.maps.InfoWindow();
			
			// niezbędne elementy do wyznaczenia trasy:
			var trasa  		 = new google.maps.DirectionsService();
			var trasa_render = new google.maps.DirectionsRenderer();
			
			function mapaStart2()  
			{  

				var wspolrzedne = new google.maps.LatLng(53.41935400090768,14.58160400390625);
				var opcjeMapy = {
					zoom: 10,
					center: wspolrzedne,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				
				mapa = new google.maps.Map(document.getElementById("mapka"), opcjeMapy); 			
				
				// różne opcje renderowania
			/*	var opcje_renderowania =
				{
					map: 				mapa,
					panel: 				document.getElementById('wskazowki'),
					polylineOptions:
										{
											strokeColor: 	'#ff0000',
											strokeWeight:	5,
											strokeOpacity:	0.8
										},
					suppressMarkers:	true
				};
				*/
					trasa_render.setMap(mapa);
				trasa_render.setPanel(document.getElementById('wskazowki'));
				
				//trasa_render.setOptions(opcje_renderowania);
			}  
			
			function znajdz_wskazowki()
			{
				var dane_trasy = 
				{
					origin: document.getElementById('skad').value,
					destination: document.getElementById('dokad').value,
					travelMode: google.maps.DirectionsTravelMode.DRIVING
				};
				
				trasa.route(dane_trasy, obsluga_wskazowek);
			}
			
			function obsluga_wskazowek(wynik, status)
			{
				if(status != google.maps.DirectionsStatus.OK || !wynik.routes[0])
				{
					//alert('Wystąpił błąd!');
					//return;
					
								var dane_trasyB = 
							{
								origin: document.getElementById('skad').value,
								destination: document.getElementById('dokad').value = "{/literal}{$I.obCity}{literal}",
								travelMode: google.maps.DirectionsTravelMode.DRIVING
							};
							
							trasa_render.setDirections(dane_trasyB);
				}
				
				trasa_render.setDirections(wynik);
			}
		-->
		</script>     
{/literal}


<table style="border: 0 collapse;">
<tr>
<td align="center" bgcolor="#b3b6b7" height="20px" style="font-size:14px">MAPA </td>
<td align="center" bgcolor="#b3b6b7" height="20px" style="font-size:14px">TRASA</td>
</tr>
			<tr>
				<td style="width: 400px;">
					<div id='mapka' style='width: 400px; height: 350px; border: 1px solid black; background: gray;'></div>
				</td>
				<td style="width: 300px; border: 1px solid black;" valign="top">
				<div id="wskazowki">
				</div>
				</td>
			</tr>
</table>

				<div style="background:url(img/mapa2.jpg) no-repeat; height:148px">
						<br /><br /><br />
						<center>
								<form name="wskazowki" action="#" onsubmit="znajdz_wskazowki(); return false;" />
									skąd : <input type="text" name="skad" size="30" id="skad" value="Katowice, ul. Dworcowa" /> - 
									dokąd: <input DISABLED type="text" name="dokad" size="30" id="dokad" value="{$I.obCity}, {$I.obAdress}" /> 
									<div style="margin-top:5px"><button type="submit" >&nbsp;  ZNAJDŹ TRASĘ DOJAZDU  &nbsp;</button></div>
								</form>
						</center>
						<br /><br /><br />
				</div>
	 
	 </div> 
	 
	 
	 <div id="tab-4" class="tab">    
				{if $I.obEmail != null}
							<p><h5 class="small4" >FORMULARZ KONTAKTOWY:</h5>
																			<table border="0" cellpadding="2" cellspacing="2" width="100%" >
																<tr><td>
																				{if $error != null}<div  align="center"><table align="center"><tr><td align="center"><font color="red"><b>{foreach from=$error item=E}<li>{$E}</li>{/foreach}</b></font></td></tr><tr><td><br><br></td></tr></table></div>{/if}
																				{if $success != null}<div  align="center"><table align="center"><tr><td align="center"><font color="#1f8603"><b>{foreach from=$success item=S}<li>{$S}</li>{/foreach}</b></font></td></tr><tr><td><br><br></td></tr></table></div>{/if}
																					 
																												<form action="{$getUrl}?" method="post">
																												<table border="0" cellpadding="3" cellspacing="3">
																																<tr>
																																				<td width="120px" align="left">Twój email *</td>
																																				<td><input type="text" name="email" value="{$email}" style="width: 200px;" /></td>
																																</tr>
																																<tr>
																																				<td align="left">Temat *</td>
																																				<td><input type="text" name="temat" value="{$temat}" style="width: 320px;" /></td>
																																</tr>
																																<tr>
																																				<td align="left">Treść *</td>
																																				<td><textarea name="txt" rows="" cols="" style="width: 600px; height: 200px;" class="textarea">{$txt}</textarea></td>
																																</tr>
																																<tr><td></td><td><img src="class/CaptchaSecurityImages.php?width=100&height=40&characters=5" /></td></tr>
																																<tr><td align="left"><label for="security_code">Kod : </label></td><td><input id="security_code" name="security_code" type="text" /></td></tr>
																																<tr>
																																				<td></td>
																																				<td align="right">* Wymagane  pola 
																																				<input type="hidden" name="countadd" value="true" />
																																				<input type="hidden" name="sendMessage" value="" /><button type="submit" >&nbsp; Wy&#347;lij&nbsp; </button></td>
																																</tr>
																																<tr><td><br><Br></td></tr>
					
						
																												</table>
																												</form>
																											
																	</td></tr>
																	</table>
									</p>
				{else}<BR><BR><CEnter>BRAK MAILA DO OGŁOSZENIODAWCY</center>{/if}
	 </div>     
{*
	 <div id="tab-5" class="tab">     	
	 </div>  
*}


{/foreach}

		<br style="clear:both;" /><br style="clear:both;" />
</div></div>
</div>
</div>
{include file='footer.tpl'}
 