<div style="clear:both;"></div>

    </div>
 <div id="footerbottom">
          <div id="containerbottom">



<div class="holder">

            
             <?php $wp_query = new
WP_Query(array('cat'=>21,'orderby'=>'date','order'=>'DESC','showposts'=>12,'paged'=>$paged)); ?>
			<?php $post_class = 'first'; ?>
            <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
            <?php $meta_box = get_post_custom($post->ID); $video = $meta_box['custom_meta_video'][0]; ?>
            <?php global $more; $more = 0; ?>
            
            <div class="portfoliopost <?php echo $post_class; ?>">
            
				<?php
                    if ('first' == $post_class){
                      $post_class = 'second';
                    }elseif ('second' == $post_class){
                      $post_class = 'third';
                    }else{
                      $post_class = 'first';
                    }
                ?>
                
                <?php if ( $video ) : ?>
                	<div class="portfoliovideo"><?php echo $video; ?></div>
                <?php else: ?>
                    <div class="portfolioimg"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_post_thumbnail( 'portfolio' ); ?></a></div>
                <?php endif; ?>
             
                <h2 class="portfoliotitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                <?php the_excerpt(); ?>
               
            
            </div>
							
			<?php endwhile; ?>
            
            <div id="pagination">
				<?php if (function_exists("number_paginate")) { number_paginate(); } ?>
            </div>
            
            <?php else : // do not delete ?>

            <h3><?php _e("Page not Found", 'organicthemes'); ?></h3>
            <p><?php _e("We're sorry, but the page you're looking for isn't here.", 'organicthemes'); ?></p>
            <p><?php _e("Try searching for the page you are looking for or using the navigation in the header or sidebar", 'organicthemes'); ?></p>

			<?php endif; // do not delete ?>
		
	
<br>
<br>


    	 <div class="footerleft"> 
<a href='http://www.iuav.it'><img src="http://www.masterad.it/mad/wp-content/uploads/2013/07/367_logo_iuav.jpg" alt="" /></a>
 </div> 
                 
        <div class="footerright"> 
<?php _e("Copyright", 'organicthemes'); ?> <?php echo date('Y'); ?> <?php bloginfo('name'); ?> &middot; <a href="<?php bloginfo('rss_url'); ?>" target="_blank"><?php _e("RSS Feed", 'organicthemes'); ?></a> &middot; <?php wp_loginout(); ?>
	   </div> 
            
	

  	</div>
		
	</div>

<?php do_action('wp_footer'); ?>

</body>
</html>