Wordpress loop with featured images

Hi,

I’m still a bit novice with php… and I’m creating a child theme of Thematic. The only way I’ve been able to get the featured images to show up in the blog list is to use the code from the Wicked Wordpress Themes book. The only problem with this is that it creates a custom loop that disables access to older posts =( I’ve been trying but cannot seem to find a way to fix the link for older posts.

Here is a link to the site: www.weglephotography.com

And the php code from my functions file:

function wegle_indexloop() {
query_posts("posts_per_page=10");
$counter = 1;
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
<?php thematic_postheader();
if (has_post_thumbnail() && !is_paged()) {
the_post_thumbnail('homepage-thumbnail');
} ?>
<div class="entry-content">
<?php the_excerpt(); ?>
<a href="<?php the_permalink(); ?>" class="more"> <?php echo more_text() ?></a>
<?php $counter++; ?>
</div>
</div><!-- .post -->
<?php endwhile; else: ?>
<h2>Eek</h2>
<p>There are no posts to show!</p>
<?php endif;
wp_reset_query();
}