<!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>
   {* Document/Browser title *}
<title>{if empty ($tdescription)}{if empty ($TITLE)}{$smarty.const.DIRECTORY_TITLE|escape|trim}{/if}{$smarty.capture.title|strip|trim}{/if} {$tdescription} </title>
  {* Document character set *}
   <meta http-equiv="Content-Type" content="text/html; charset={$smarty.const.CHARSET}" />

   {* CSS Style file *}
   <link rel="stylesheet" type="text/css" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/main.css" />

   {* Custom META tags *}
   {if $smarty.const.ENABLE_META_TAGS}
      {if !empty($MetaKeywords)}
         <meta name="keywords" content="{$MetaKeywords|strip|escape|trim}" />
      {/if}
      {if !empty($MetaDescription)}
         <meta name="description" content="{$MetaDescription|strip|escape|trim}" />
      {/if}
      {if !empty($MetaAuthor)}
         <meta name="author" content="{$MetaAuthor|strip|escape|trim}" />
      {/if}
      {if !empty($MetaCopyright)}
         <meta name="copyright" content="{$MetaCopyright|strip|escape|trim}" />
      {/if}
      {if !empty($MetaRobots)}
         <meta name="robots" content="{$MetaRobots|strip|escape|trim}" />
      {/if}
   {/if}

   {* Please keep this line for better version tracking *}
   <meta name="generator" content="PHP Link Directory {$smarty.const.CURRENT_VERSION}" />

   {* Live Bookmarks *}
   {if $smarty.const.ENABLE_RSS and (!empty($search) or $category.ID gt 0 or $list) and count($links) gt 0}
      <link rel="alternate" type="application/rss+xml" title="{$in_page_title|escape|trim}" href="{$smarty.const.SITE_URL}/rss.php?{if !empty($search)}search={$search|@urlencode}{elseif $p > 1}p={$p}{elseif $list}list={$list}{else}c={$category.ID}{/if}" />
   {/if}

   {* JavaScript libraries *}

   {if $load_Javascript}
      {* SmartyFormtool for manipulating forms with JavaScript *}
      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/formtool/formtool.js"></script>
      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/prototype/prototype.js"></script>
      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/scriptaculous/scriptaculous.js"></script>    

      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/jquery.js"></script>

        <script type="text/javascript">
         {literal}jQuery.noConflict();{/literal}
       </script>
     
      {* AJAX category selection library *}
     
      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/thickbox/thickbox.js"></script>
      <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/javascripts/thickbox/ThickBox.css" type="text/css" media="screen" />
    
     <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/categ_selection/categ_selection.js"></script>
      {* TinyMCE text editor *}
   	  <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/tiny_mce/tiny_mce.js"></script>	  
      {* Darius Tumas ajax link editor scripts *}
      {if !empty($uLevel)}
      {if $load_mce == 'true'}
      <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/javascripts/tiny_mce/tiny_mce.js"></script>
      {/if}
       {/if} 
   {/if}
   

<!--  
 <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/libs/moodalbox/js/mootools.js"></script>
   <script type="text/javascript" src="{$smarty.const.DOC_ROOT}/libs/moodalbox/js/moodalbox.js"></script>
   <link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/libs/moodalbox/css/moodalbox.css" type="text/css" media="screen" />
-->

<!--[if IE]>
<link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/ie.css" type="text/css" media="all" />
<![endif]-->

<!--[if IE 8.000]><!-->
<link rel="stylesheet" href="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/style/ie8.css" type="text/css" media="all" />

<!--<![endif]-->
</head>
{if  $scriptname == "detail" & !empty($ADDRESS)}
<body onload="load()" onunload="GUnload()">
{else}<body>{/if}
<script type="text/javascript">
{literal}

function increase_height() {
   height = parseInt(document.getElementById('slide').style.marginTop);
   if (height<110) {
      document.getElementById('slide').style.marginTop = eval(height+7)+"px";
      setTimeout("increase_height()",0.0001);
   } else {
      document.getElementById('panel').style.zIndex = 200;
   }
}

function decrease_height() {
   height = parseInt(document.getElementById('slide').style.marginTop);
   document.getElementById('panel').style.zIndex = -1;
   if (height>0) {
      document.getElementById('slide').style.marginTop = eval(height-7)+"px";
      setTimeout("decrease_height()",0.0001);
   }
}

function show_panel() {
  
   height = parseInt(document.getElementById('slide').style.marginTop);
   if (height>0) {
      decrease_height();
   } else {
      increase_height();
   }
   return false;
}

function ajaxFunction()
{

var xmlHttp;

try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      }
    }
   var url = "{/literal}{$smarty.const.SITE_URL}{literal}update_session.php";

   xmlHttp.open("POST", url, false);
   xmlHttp.setRequestHeader( 
    'Content-Type', 
    'application/x-www-form-urlencoded; charset=UTF-8' 
); 
   xmlHttp.send('url='+window.location);
  }
</script>

{/literal}
</script>

{* Error and confirmation messages *}
{include file="../$core_templates/messages.tpl"}

{if $inplace_arterror neq ''}
<script type="text/javascript">
{literal}
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Article", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editart.php?ID={/literal}{$smarty.session.editart.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
{/literal}
</script>
{/if}

{if $inplace_linkerror neq ''}
<script type="text/javascript">
{literal}
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Link", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editlink.php?ID={/literal}{$smarty.session.editlink.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
{/literal}
</script>
{/if}
{if $inplace_caterror neq ''}
<script type="text/javascript">
{literal}
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Category", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editcat.php?ID={/literal}{$smarty.session.editcat.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
{/literal}
</script>
{/if}

{if $inplace_pageerror neq ''}
<script type="text/javascript">
{literal}
   jQuery(function($) { /* some code that uses $ */ 
   $(document).ready(function(){ tb_show("Edit Page", "{/literal}{$smarty.const.DOC_ROOT}{literal}/inplace_editpage.php?ID={/literal}{$smarty.session.editpage.ID}{literal}&mode=edit&KeepThis=true&TB_iframe=true&height=400&width=600", "group"); });
   });
{/literal}
</script>
{/if}
	  <div id="wrapperall">
    	
          {if  $scriptname != "profile" } 
    	<div id="panel" style="z-index: -1;">
         <form method="post" action="{$smarty.const.DOC_ROOT}/login.php" onsubmit="ajaxFunction();">
         <table border="0" align="center" width="40%" style="padding-top: 10px; padding-bottom: 10px; z-index: -1;height: 0px;" id="panel_table" >
         <tr>
            {if $failed}
            <td colspan="5" class="err">{l}Invalid username or password.{/l}</td>
            {/if}
            {if $no_permission}
            <td colspan="5" class="err">{l}No permissions set for this user.{/l}</td>
            {/if}
         </tr>
         <tr>
            <td>{l}User{/l}:</td>
            <td>
               <input type="text" name="user" value="{$user}" size="20" maxlength="{$smarty.const.USER_LOGIN_MAX_LENGTH}" class="text" />
               {validate form="login" id="v_user" message=$smarty.capture.field_required}
            </td>
            <td>{l}Password{/l}:</td>
            <td>
               <input type="password" name="pass" value="" size="20" maxlength="{$smarty.const.USER_PASSWORD_MAX_LENGTH}" class="text" />
               {validate form="login" id="v_pass" message=$smarty.capture.field_required}
            </td>
            <td><input type="submit" name="submit" value="Login" class="btn" /></td>
        </tr>
        <tr>
         <td colspan="5" style="text-align: left;">
             <input type="checkbox" name="rememberMe">&nbsp;&nbsp; Keep me logged in.
         </td>        
        </tr>
        <tr>
            <td colspan="5" style="text-align: right;">
               <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register{/l}">{l}Register{/l}</a>
               &nbsp;|&nbsp;
               <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=sendpassword" title="{l}Recover your password{/l}">{l}I forgot my password{/l}</a>
            </td>
      </tr>
   </table>
</form>
			</div>{/if}
            	</div>
        	
	  <div id="wrapperall">
    	<div id="wrapperBg">
        	<div id="wrapperBottom">
            	<div id="wrapperTop">
                	<div id="wrapperLeft">
                    	<div id="wrapperRight">
	  					
	  					
	  					<div id="slide" class="slide" style="z-idex: 100; margin-top: 0px;" id="slide">
                            <div id="search">
                            	<label>Search: </label>
                                <form action="{$smarty.const.DOC_ROOT}/index.php" method="get" style="float: left; margin: 0px; padding: 0px">
                                	<div id="inputleft"></div><input type="text" value="{if !empty($search)}{$search|escape}{/if}" name="search" /><div id="inputright"></div>
                                    <button type="submit"></button>
                                </form>
                                <a href="{$smarty.const.DOC_ROOT}/search.php?type=advanced" title="{l}Go to advanced search page{/l}" accesskey="4" rel="nofollow">{l}Advanced{/l}<br/>{l}Search{/l}</a>
                                <div id="loginsplit"></div>
                                 {if ($smarty.const.REQUIRE_REGISTERED_USER == 1 || $smarty.const.REQUIRE_REGISTERED_USER_ARTICLE == 1)}
                           			  {if empty($regular_user_details)}
		                               {if  $scriptname != "profile" }  <a href="" class="btn-slide" onclick="show_panel(); return false;">{else}<a href="{$smarty.const.DOC_ROOT}/login.php" class="btn-slide">{/if}<img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/login.jpg" alt="" /></a>
		                                <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/register.jpg" alt="" /></a>
		                              {else}
		                              <div class="user_meta">
		                              		<label>
		                              		{l}Welcome:{/l} <strong>{$regular_user_details.NAME|escape}</strong>
		                              		</label> 
		                              		<a href="{$smarty.const.DOC_ROOT}/logout.php" title="{l}Log out of this account{/l}">
		                              			{l}Sign Out{/l}
		                              		</a> 
		                              		<a href="{$smarty.const.DOC_ROOT}/profile.php?mode=logged" title="{l}Edit your account settings{/l}">{l}My Account{/l}</a>
		                              </div>	
		                              {/if} 
                                {/if}
                            </div>
                        </div>
	  					
  					 	<div id="header">
                        	<a href="{$smarty.const.DOC_ROOT}/"><img src="{$smarty.const.DOC_ROOT}/templates/{$smarty.const.USE_TEMPLATE}/images/logo.gif" alt="" /></a>
                        </div>
	  					
	  						




