<?php $IEM = $tpl->Get('IEM'); ?>

<div class="TemplateBox" onmouseout="this.className='TemplateBox'" onmouseover="this.className='TemplateBoxOver'" class="TemplateBox">
	<a  onclick="return SetValue('<?php if(isset($GLOBALS['TemplateID'])) print $GLOBALS['TemplateID']; ?>');" target="_blank" style="color:#333333; font-family:tahoma; font-size:11px;">
		<div class="TemplateHeading"><?php if(isset($GLOBALS['Title'])) print $GLOBALS['Title']; ?></div>
		<img src="<?php if(isset($GLOBALS['Thumb'])) print $GLOBALS['Thumb']; ?>" width="173" height="140" border="0" style="margin-bottom: 5px;">
	</a>
	<br />
	<a href="index.php?Page=Templates&Action=View&check=1&id=<?php if(isset($GLOBALS['TemplateID'])) print $GLOBALS['TemplateID']; ?>" target="_blank" style="color:#333333; font-family:tahoma; font-size:11px;">
		<img border="0" style="padding-right: 5px;" src="images/magnify.gif"/> <?php print GetLang('Preview_Template'); ?>
	</a>
</div>