			<div id="green_bar">
                            <div id="green_bar_body">
				<div class="main_block">

					<div id="green_bar_panel">
                                            <?php if(!empty($gallery_categories_menu)) echo $gallery_categories_menu; ?>
					</div>
				</div>
                             </div>
			</div>

			<div id="default_body">
				<div class="main_block">
                                        <?php
                                            $gallery_class = (empty($is_web)) ? 'default_gallery':'web_gallery';
                                        ?>
					<div id="gallery" class="<?php echo $gallery_class; ?>">
                                                <?php if(!empty($galleries_menu)) echo $galleries_menu; ?>

						<div id="gallery_viewer">

									<ul id="slider1">

                                                                                <?php  
                                                                          
                                                                                foreach($images as $k=>$image) {
                                                                                    echo '<li><img src="/files/img/galleries/'.$image['idgalleries'].'/'.$image['path'].'" width="504" height="308" alt="'.$image['title'].'" /></li>';
                                                                                 }?>
									</ul>
									<div id="slide_info">
										<div id="slide_info_description"><?php echo $gallery['content']; ?></div>
										<div id="slide_info_navigation"></div>
										<div style="clear:both">
                                                                                        <?php
                                                                                        if(!empty($gallery['url']) && !empty($is_web))
                                                                                            echo '<a href="'.$gallery['url'].'" class="green_link" id="web_link" target="blank">'.$this->localization['zobacz_strone'].' »</a>';
                                                                                        ?>
										</div>
									</div>
						</div>
					</div>
				</div>
			</div>
	<script type="text/javascript">
		$(document).ready(function(){
                        
                        
                        if($('#slider1 img').size() > 0)
                            {
                                 $('#slider1')
                                  .anythingSlider({
                                   width          				: 504,
                                   height         				: 308,
                                   resizeContents                               : false,
                                   toggleControls                               : false,
                                   startStopped                                 : true,
                                   appendControlsTo    : $('#slide_info_navigation')
                                   /*,

                                        onSlideComplete: function(slider){
                                                $("#web_link").attr('href', $('#slider1 li img:eq('+(slider.currentPage)+')').attr('data-link') );
                                                
                                        }*/
                                });
                                $('.start-stop').hide();
                                $('.thumbNav li a').text('');

                                
                        }
                });
	</script>

<?php
    return;
    if(!empty($images) && is_array($images) >0)
    {
?>
    <div id="gallery" class="content">
        <div id="controls" class="controls"></div>
        <div class="slideshow-container">
            <div id="loading" class="loader"></div>
            <div id="slideshow" class="slideshow"></div>
        </div>
        <div id="caption" class="caption-container"></div>
    </div>

    <div id="thumbs" class="navigation">
        <ul class="thumbs noscript">
            <?php  foreach($images as $k=>$image) { ?>
            <li>
                <a class="thumb" name="leaf" href="<?php echo '/files/img/galleries/'.$image['idgalleries'].'/'.$image['path']; ?>" title="<?php echo $image['title']; ?>">
                    <img src="<?php echo '/files/img/galleries/'.$image['idgalleries'].'/min/'.$image['path']; ?>" alt="<?php echo $image['title']; ?>" />
                </a>
                <div class="caption">
                    <div class="download">
                        <a href="http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg">Download Original</a>
                    </div>
                    <div class="image-title"><?php echo $image['title']; ?></div>
                    <div class="image-desc">Description</div>
                </div>
            </li>
            <?php } ?>
        </ul>
    </div>

    <div style="clear: both;"></div>
<?php
    }
?>
