<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>
</head>
<body>
<?php
$text="خوش آمديد!";
wp_head();
?>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="887" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_2.png" width="887" height="10"></td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="867">
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/logo.jpg" width="867" height="161"></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><ul id="mainlevel-nav"><li><a href="<?php bloginfo('url'); ?>" class="mainlevel-nav" >صفحه اصلي</a></li><?php wp_list_pages('title_li='); ?></ul></td>
<td width="187">
<img border="0" src="<?php bloginfo('template_url') ?>/images/left_top_link.png" width="187" height="22"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="184" valign="top" style="height: 500px">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("right") ) ?>
</td>
</tr>
</table>
</div>
</td>
<td valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
</td>
</tr>
<tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #FFEEDF">
<tr>
<td width="5" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/left.png'); height: 200px">
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_left.png" alt="No Image"></img></td>
<td valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/top.png'); background-repeat: repeat-x; height: 200px">
<br/><div class="componentheading"><?php echo $text; ?></div><table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0">
<?php if(have_posts()): ?><?php while(have_posts()):the_post(); ?>
<tr><td valign="top" width="100%">
<table class="contentpaneopen">
<tr>
<td class="contentheading" width="100%"><?php the_title(); ?></td>
<td align="right" width="100%" class="buttonheading">
<a href="<?php the_permalink(); ?>" target="_blank" title="پيوند ثابت">
<img src="<?php bloginfo('template_url') ?>/images/link.gif" alt="پيوند ثابت" name="پيوند ثابت" align="middle" border="0" /></a>
</td>
</tr>
</table>
<table class="contentpaneopen">
<tr>
<td valign="top" colspan="2">
<div style="width:440px;"><?php the_content(''); ?></div>
<?php if ( !is_single() and !is_page() ) : ?><p><img src='<?php bloginfo('template_url') ?>/images/comment.gif' hspace='2' align='absmiddle' alt='' /><a href="<?php comments_link(); ?>">نظرات[<?php comments_number('0','1','%'); ?>]</a> | <?php endif; ?>دسته: <?php the_category(', ') ?> | نويسنده: <?php the_author(); ?><?php if ( !is_single() and !is_page() ) : ?> | <a class="" href="<?php the_permalink(); ?>">ادامه مطلب...</a><?php endif; ?></p>
</td>
</tr>
</table>
<?php if ( is_single() or is_page() ) { ?><?php comments_template(); ?><?php } ?>
<span class="article_seperator"> </span>
</td></tr>
<?php endwhile; ?><?php endif; ?>
</table></td></tr>
</table>
<div style="text-align:center; direction:ltr;"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div><br>
</td>
<td width="4" valign="top" style="background-image: url('<?php bloginfo('template_url') ?>/images/right.png'); height: 200px">
<img border="0" src="<?php bloginfo('template_url') ?>/images/top_right.png" alt="No Image"></img></td>
</tr>
<tr>
<td width="5">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_left.png" alt="No Image"></img></td>
<td style="background-image: url('<?php bloginfo('template_url') ?>/images/bot.png')">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot.png" alt="No Image"></img></td>
<td width="4">
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_right.png" alt="No Image"></img></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="199" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="height: 76px; background-image: url('<?php bloginfo('template_url') ?>/images/bac_search.png'); background-repeat: no-repeat; background-position: left top" valign="top">
<table border="0" cellpadding="0" cellspacing="0" width="199">
<tr>
<td style="height: 43px" width="199" colspan="3"> </td>
</tr>
<tr>
<td width="8"> </td>
<td width="158">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="122">
<tr>
<td>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<form action="<?php bloginfo('home'); ?>/" method="get">
<div class="search">
<input name="s" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="20" value="کلید واژه..." onblur="if(this.value=='') this.value='کلید واژه...';" onfocus="if(this.value=='کلید واژه...') this.value='';" />
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
<td width="33"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="185" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_mod.png'); background-repeat: repeat-y; background-position: left top">
<tr>
<td>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("left") ) ?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="99%" style="background-image: url('<?php bloginfo('template_url') ?>/images/bac_footer.png')">
<tr>
<td width="12">
</img>
<img border="0" src="<?php bloginfo('template_url') ?>/images/right_footer.png" alt="No Image"></td>
<td class="footer" id="footer">
<p align="center"><font size="2" color="#FFDBBB">تمامي حقوق براي اين سايت محفوظ ميباشد. کپي برداري از اين سايت تنها با ذکر منبع مجاز ميباشد.</font></td>
<td width="12">
</img>
<img border="0" src="<?php bloginfo('template_url') ?>/images/left_footer.png" alt="No Image"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<img border="0" src="<?php bloginfo('template_url') ?>/images/bot_2.png" width="887" height="11"></td>
</tr>
</table>
</div>
</body>
</html>