<?php global $smof_data; $homeimages_cat = $smof_data['homeimages_cat']; ?>
<?php $homeimages_count = $smof_data['homeimages_count']; ?>
<?php $category_id = get_cat_ID($homeimages_cat); ?> 

                    <div id="latestPosts" class="latestPostsImages">
                    <div class="homeTitle"><h2><i class="icon-th"></i><?php _e('News In Picture','lioit') ?></h2></div>
                        <div class="contentBox">
                        	
                        	<div id="newsPictures">
                                <div class="newsPicturesList">
                                	<ul>
                                    	<?php query_posts(array('showposts' => $homeimages_count, 'cat' => $category_id )); ?>
                  						<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>	
                                    	<li class="newsPictureItem">
                                       
                                             <a href="<?php the_permalink(); ?>" class="tooltip top" title="<?php the_title(); ?>"><?php the_post_thumbnail('main-block', array('title' => strip_tags(get_the_title()))); ?></a>
                                  
                                        </li>
                                        <?php endwhile; ?>
										<?php  else:  ?>
                                        <!-- Else in here -->
                                        <?php  endif; ?>
                                        <?php wp_reset_query(); ?>
                                    </ul>
                                </div><!--End newsPicturesList-->
                            </div><!--End Latest Posts List-->
                        </div><!--End ContentBox-->
                    </div><!--End Latest Posts-->