<?php /* Global Post file. */ ?>
            
	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?> >

		<div class="post-content">
				
			<div class="post-title">
				<h1><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'cp'); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
			</div>			
					
			<div class="post-entry">
				<?php the_content( '<div class="post-read-more">' . __("Continue reading &raquo;", "cp") . '</div>' ); ?>
			</div>
	<?php if((get_slug() == "asortiman") || (get_slug() == "produkte")) { ?>
			<div id="products">
		<?php wp_reset_query(); ?>
		<?php query_posts('post_type=products&posts_per_page=999'); ?>
		<?php while ( have_posts() ) : the_post(); ?>

		<?php
		$img = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'main-page');
		$img = $img[0];
		?>
		<div class="product">
			<div class="product-cover">
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_the_title(); ?>"><img src="<?php echo $img; ?>" alt="<?php echo get_the_title(); ?>" /></a>
			</div>
			<div class="product-name">
				<?php if($_COOKIE['lang'] == "hu") { ?>
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_post_meta($post->ID, 'product_german_title', true); ?>"><?php echo get_post_meta($post->ID, 'product_german_title', true); ?></a>
				<?php } else { ?>
				<a href="<?php echo get_permalink(); ?>" title="<?php echo get_the_title(); ?>"><?php echo get_the_title(); ?></a>
				<?php } ?>
			</div>
		</div>
			

		<?php endwhile; ?>
		<?php wp_reset_query(); ?>
		</div>
		<?php } ?>
	
			<div class="clear"></div>

		</div><!--#END post-content -->

	</div><!-- #END post -->
