<!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>
<title>{if $pagetitle ne ""}{$pagetitle} - {/if}{$site_name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="{if $pagetitle ne ""}{$pagetitle} - {/if}{if $metadescription ne ""}{$metadescription} - {/if}{$site_name}">
<meta name="keywords" content="{if $pagetitle ne ""}{$pagetitle},{/if}{if $metakeywords ne ""}{$metakeywords},{/if}{$site_name}">
{if $issignuppage eq "1"}
<script type="text/javascript" src="{$baseurl}/js/passwordmeter.js"></script>
{/if}
<link rel="canonical" href="http://www.20script.ir" />
<link type="text/css" rel="stylesheet" href="{$cssurl}/style.php">
<!--[if IE 6]>
<link rel="stylesheet" href="{$cssurl}/ie.css" />
<![endif]-->
</head>
<body>
	<div id="header">
        <div id="top">
            <div class="container_12">
                <div class="grid_3">
                    <div id="rss">
                    	<span><a href="{$baseurl}/syndicate/docs/0/{$lang174}">{$lang47}</a></span>
                        <a href="#" onclick="document.langselectfr.submit();" style="float:right; margin-right:5px;"><img src="{$imageurl}/fr.png" /></a>
                        <a href="#" onclick="document.langselectes.submit();" style="float:right; margin-right:5px;"><img src="{$imageurl}/es.png" /></a>
                        <a href="#" onclick="document.langselecten.submit();" style="float:right; margin-right:5px;"><img src="{$imageurl}/en.png" /></a>
                        <form name="langselecten" id="langselecten" method="post" style="padding:0; margin:0">
                        <input type="hidden" name="language" id="language" value="english" />
                        </form>
                         <form name="langselectes" id="langselectes" method="post">
                        <input type="hidden" name="language" id="language" value="spanish" />
                        </form>
                        <form name="langselectfr" id="langselectfr" method="post" style="padding:0; margin:0">
                        <input type="hidden" name="language" id="language" value="french" />
                        </form>
                    </div>
                </div>
                <div class="grid_9">
                    <div id="second_nav">
                    	<ul class="sf-menu">
                        	{if $smarty.session.USERID ne ""}
                            <li>{$lang790} {$smarty.session.USERNAME|stripslashes}</li>
                    		<li><a href="{$baseurl}/members/profile/{$smarty.session.USERID}/{$smarty.session.USERNAME|stripslashes}">{$lang46}</a></li>
                            <li><a href="{$baseurl}/account">{$lang3}</a></li>
                            <li><a href="{$baseurl}/mydocs">{$lang466}</a></li>
                            <li><a href="{$baseurl}/myfav">{$lang481}</a></li>
                    	  	<li class="last"><a href="{$baseurl}/logout">{$lang169}</a></li>
                            {else}
                    	  	<li><a href="{$baseurl}/login">{$lang170}</a></li>
                    	  	<li class="last"><a href="{$baseurl}/signup">{$lang171}</a></li>
                            {/if}
                    	</ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <div id="bottom">
            <div class="container_12">
                <div class="grid_5">
                  	<div id="logo">
                    	<a href="{$baseurl}/"><img src="{$imageurl}/logo.png" alt="{$site_name|stripslashes}"></a>
                  	</div>
                </div>
                <div class="grid_7">
                  	<div id="header_advert">
                  		{insert name=get_advertisement AID=1}
                  	</div>
                </div>
                <div class="grid_12">
                    <div id="nav">
                    	<ul class="sf-menu">
                    	  <li class="first"><a href="{$baseurl}/">{$lang173}</a></li>
                    	  <li {if $mainmenu eq "1"}class="current-menu-item"{/if}><a href="{$baseurl}/docs">{$lang41}</a></li>
                    	  <li {if $mainmenu eq "2"}class="current-menu-item"{/if}><a href="{$baseurl}/categories">{$lang58}</a></li>
                    	  <li {if $mainmenu eq "3"}class="current-menu-item"{/if}><a href="{$baseurl}/members">{$lang59}</a></li>
                          <li {if $mainmenu eq "4"}class="current-menu-item"{/if}><a href="{$baseurl}/search">{$lang168}</a></li>
                    	  <li {if $mainmenu eq "5"}class="current-menu-item"{/if}><a href="{$baseurl}/upload">{$lang177}</a></li>
                    	</ul>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>