<?php

$template_matrix = array(
							array('index',				'webpage'),
							array('comments',			'webpage'),
							array('comment_preview',	'webpage'),
							array('trackbacks',			'webpage'),
							array('referrers',			'webpage'),
							array('smileys',			'webpage'),
							array('site_css',			'css')
							);


if ( ! isset($type))
	$type = 'core';

//-------------------------------------
//	Stylesheet template
//-------------------------------------

function site_css()
{
	global $type;

ob_start();
?>
/* Stylesheet for "Amaryllis" by Elaine Oliver, November 2004 */

/*GENERAL*/
body {
background: #efd url({site_url}themes/site_themes/amaryllis/amaryllis_stripe.gif);
color: #000;
margin: 0;
padding: 0;
border: 0;
font-family: arial, sans-serif;
font-size: 85%;
}

/*For Internet Explorer*/
body {
text-align: center;
}

/*Links*/
a:link {
color: #360;
}

a:visited {
color: #333;
}

a:hover {
color: #c33;
text-decoration: none;
}

a:active {
color: #c33;
text-decoration: underline;
}

/*Headers*/
h1, h2, h3 {
color: #360;
margin: 0;
padding: 0;
border: 0;
font-family: georgia, serif;
font-weight: normal;
font-style: italic;
}

h1 {
font-size: 2.5em;
}

h2 {
font-size: 1.6em;
}

h3 {
font-size: 1.4em;
}

h4, h5, h6 {
font-size: 1.2em;
}

/*Paragraphs and Lists*/
p {
margin: 0 0 0 10px;
padding: 5px;
border: 0;
line-height: 1.5em;
}

ul {
margin: 0;
padding: 0;
border: 0;
line-height: 1.5em;
}

ul ul {
margin-left: 10px;
}

li {
margin: 0;
list-style: none;
}

/*Inline*/

img {
border: 0;
}

strong {
color: #360;
font-weight: normal;
}

em {
color: #360;
font-style: italic;
}

/*CONTAINER*/
#container {
margin: 15px auto 0 auto;
padding: 0;
border: 0;
width: 650px;
}

/*For Internet Explorer*/
#container {
text-align: left;
}

/*HEADER*/
#header {
background: #efd url({site_url}themes/site_themes/amaryllis/amaryllis.jpg) 100% 50% no-repeat;
margin: 0 0 15px 0;
padding: 0;
border: 1px #dea solid;
}

/*BANNER*/
#banner {
margin: 0 310px 0 0;
padding: 25px 10px 25px 10px;
border: 0;
}

/*NAVATRAIL*/
#navatrail {
background: #dea;
padding: 0 10px 0 0;
text-align: right;
}

/*MENU*/
#menu {
margin: 15px 0 0 0;
padding: 0;
border: 0;
float: right;
}

/*For Internet Explorer*/
#menu {
width: 165px;
}

/*For All Other Browsers*/
div#container>div#menu {
width: 160px;
}

#menu div {
background: #dea;
margin: 0 0 15px 0;
padding: 0 15px 15px 15px;
border: 1px #dea solid;
font-size: .9em;
}

#menu #search {
background: #dea;
margin: 0 0 15px 0;
padding: 0;
border: 1px #dea solid;
font-size: .9em;
}
#menu #search h2 {
padding: 0 0 0 15px;
}

/*MAIN*/
#main {
margin: 15px 0 0 0;
padding: 0;
border: 0;
}

/*For Internet Explorer*/
#main {
margin-right: 180px;
height: 100%;
}

/*For All Other Browsers*/
div#container>div#main {
margin-right: 175px;
}

#main div {
padding: 15px;
border: 1px #dea solid;
}

#main p.info {
color: #360;
clear: left;
text-align: right;
}

#main img {
margin: 10px 10px 10px 0;
float: left;
}

#main .entry {
background: #efd;
margin: 0 0 15px 0;
}

#main .entry p.info {
margin-right: 15px;
}

#main .comment {
background: #dea;
margin: 15px 0 0 0;
}

#main .comment p.info {
margin-right: 0;
}

#main #return {
margin: 15px 0 0 0;
}

/*FOOTER*/
#footer {
margin: 0 0 15px 0;
padding: 0;
border: 0;
clear: both;
text-align: center;
font-size: .9em;
}
.paginate {
font-family:		Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
font-size:			12px;
font-weight: 		normal;
letter-spacing:	.1em;
padding:			10px 6px 10px 4px;
margin:			0;
background-color:	transparent;
}

.pagecount {
font-family:		Verdana, Geneva, Tahoma, Trebuchet MS, Arial, Sans-serif;
font-size:			10px;
color:				#666;
font-weight:		normal;
background-color: transparent;
}
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END



//-------------------------------------
//	Weblog index template
//-------------------------------------

function index()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}

<!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" xml:lang="{lang}" lang="{lang}">


<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>

</head>

<body>


<!-- BEGIN CONTAINER -->
<div id="container">
<!-- BEGIN HEADER -->
<div id="header">
<!-- BEGIN BANNER -->
<div id="banner">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. </p>
</div>
<!-- END BANNER -->
</div>
<!-- END HEADER -->


<?php if ($type != 'core') { ?>
<!-- BEGIN NAVATRAIL -->
<div id="navatrail">
<p>
{if logged_in}
<a href="{path=member/profile}">Your Account</a> &nbsp; | &nbsp; <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
<a href="{path=member/login}">Login</a> &nbsp; | &nbsp; <a href="{path=member/register}">Register</a>
{/if}

&nbsp; | &nbsp; <a href="{path=member/memberlist}">Member List</a>
</p>
</div>
<!-- END NAVATRAIL -->
<?php } ?>



<!-- BEGIN MENU -->
<div id="menu">



<div id="search">
{exp:search:simple_form search_in="everywhere"}
<h2>Search</h2>
<p>
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<br />
<a href="{path=search/index}">Advanced Search</a>
</p>

<p><input type="submit" value="submit"  class="submit" /></p>

{/exp:search:simple_form}
</div>



<div id="categories">
<h2>Categories</h2>
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>


<div id="archive">
<h2>Archives</h2>
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>


<div id="links">
<h2>Links</h2>
<ul>
<li>
<a href="#">Link&nbsp;1</a>
</li>
<li>
<a href="#">Link&nbsp;2</a>
</li>
<li>
<a href="#">Link&nbsp;3</a>
</li>
<li>
<a href="#">Link&nbsp;4</a>
</li>
<li>
<a href="#">Link&nbsp;5</a>
</li>
</ul>
</div>

<div id="syndicate">
<h2>Syndicate</h2>
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>

<p><a href="{path={my_template_group}/referrers}">Referrers</a></p>

</div>


</div>
<!-- END MENU -->
<!-- BEGIN MAIN -->
<div id="main">

{exp:weblog:category_heading weblog="{my_weblog}"}
<h1>{category_name}</h1>
{if category_description}
<p>{category_description}</p>
{/if}
{/exp:weblog:category_heading}


{exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="15"}

{date_heading}
<h3 class="date">{entry_date format=' %l, %F %d, %Y '}</h3>
{/date_heading}
<div class="entry">



<h2 class="title">{title}</h2>
{summary}

{body}

{extended}

<p>Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}

<br />

{categories}
<a href="{path=site_index}">{category_name}</a> &#8226;
{/categories}

{if allow_comments}
({comment_total}) <a href="{url_title_path="{my_template_group}/comments"}">Comments</a> &#8226;
{/if}

{if allow_trackbacks}
({trackback_total}) <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a> &#8226;
{/if}
<a href="{title_permalink={my_template_group}/comments}">Permalink</a>

</p>

{paginate}
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
</div>
{/paginate}

</div>
{/exp:weblog:entries}


</div>
<!-- END MAIN -->
<!-- BEGIN FOOTER -->
<div id="footer">
<p>
Powered by <a href="http://www.pmachine.com/">ExpressionEngine</a>
</p>
</div>
<!-- END FOOTER -->
</div>
<!-- END CONTAINER -->
</body>
</html><?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END






//-------------------------------------
// Comments
//-------------------------------------

function comments()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}

<!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" xml:lang="{lang}" lang="{lang}">

<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>

</head>

<body>


<!-- BEGIN CONTAINER -->
<div id="container">
<!-- BEGIN HEADER -->
<div id="header">
<!-- BEGIN BANNER -->
<div id="banner">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. </p>
</div>
<!-- END BANNER -->
</div>
<!-- END HEADER -->


<?php if ($type != 'core') { ?>
<!-- BEGIN NAVATRAIL -->
<div id="navatrail">
<p>

{if logged_in}
<a href="{path=member/profile}">Your Account</a> &nbsp; | &nbsp; <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
<a href="{path=member/login}">Login</a> &nbsp; | &nbsp; <a href="{path=member/register}">Register</a>
{/if}

&nbsp; | &nbsp; <a href="{path=member/memberlist}">Member List</a>
</p>
</div>
<!-- END NAVATRAIL -->
<?php } ?>



<!-- BEGIN MENU -->
<div id="menu">

<div id="search">

<p><a href="{homepage}">Home</a></p>

{exp:search:simple_form search_in="everywhere"}
<h2>Search</h2>
<p>
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<br />
<a href="{path=search/index}">Advanced Search</a>
</p>

<p><input type="submit" value="submit"  class="submit" /></p>

{/exp:search:simple_form}
</div>



<div id="categories">
<h2>Categories</h2>
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>


<div id="archive">
<h2>Archives</h2>
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>


<div id="links">
<h2>Links</h2>
<ul>
<li>
<a href="#">Link&nbsp;1</a>
</li>
<li>
<a href="#">Link&nbsp;2</a>
</li>
<li>
<a href="#">Link&nbsp;3</a>
</li>
<li>
<a href="#">Link&nbsp;4</a>
</li>
<li>
<a href="#">Link&nbsp;5</a>
</li>
</ul>
</div>

<div id="syndicate">
<h2>Syndicate</h2>
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>


</div>
<!-- END MENU -->
<!-- BEGIN MAIN -->
<div id="main">

{exp:weblog:entries limit="1"}

<h2>{title}</h2>
{summary}

{body}

{extended}

<p class="tools">Posted by <?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?>  on {entry_date format='%m/%d'} at {entry_date format='%h:%i %A'}

<br />

{categories}
<a href="{path=site_index}">{category_name}</a> &#8226;
{/categories}
</p>

{/exp:weblog:entries}


{exp:weblog:next_entry weblog="{my_weblog}"}
<p>Next entry: <a href="{path={my_template_group}/comments}">{title}</a></p>
{/exp:weblog:next_entry}

{exp:weblog:prev_entry weblog="{my_weblog}"}
<p>Previous entry: <a href="{path={my_template_group}/comments}">{title}</a></p>
{/exp:weblog:prev_entry}



{exp:comment:entries weblog="{my_weblog}" limit="25"}
<div class="comment">
{comment}

<p>Posted by {url_or_email_as_author}  &nbsp;on&nbsp; {comment_date format='%m/%d'} &nbsp;at&nbsp; {comment_date format='%h:%i %A'}</p>

{if no_results}
<div class="comment">There are no comments for this entry.</div>
{/if}
</div>

{paginate}
<div class="paginate">
<span class="pagecount">Page {current_page} of {total_pages} pages</span>  {pagination_links}
</div>
{/paginate}

{/exp:comment:entries}


<div id="commentform">

<br />

<h3><a name="commentformlink">Comment Form</a></h3>

{exp:comment:form preview="{my_template_group}/comment_preview"}

{if logged_out}
<p>
Name:<br />
<input type="text" name="name" value="{name}" size="50" />
</p>
<p>
Email:<br />
<input type="text" name="email" value="{email}" size="50" />
</p>
<p>
Location:<br />
<input type="text" name="location" value="{location}" size="50" />
</p>
<p>
URL:<br />
<input type="text" name="url" value="{url}" size="50" />
</p>

{/if}

<p>
<a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
</p>


<p>
<textarea name="comment" cols="50" rows="12">{comment}</textarea>
</p>

{if logged_out}
<p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
{/if}

<p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>

{if captcha}
<p>Submit the word you see below:</p>
<p>
{captcha}
<br />
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
</p>
{/if}

<p>
<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" />
</p>
{/exp:comment:form}

</div>

</div>
<!-- END MAIN -->
<!-- BEGIN FOOTER -->
<div id="footer">
<p>
Powered by <a href="http://www.pmachine.com/">ExpressionEngine</a>
</p>
</div>
<!-- END FOOTER -->
</div>
<!-- END CONTAINER -->
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END




//-------------------------------------
//	Comment preview
//-------------------------------------

function comment_preview()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}

<!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" xml:lang="{lang}" lang="{lang}">

<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>

</head>

<body>


<!-- BEGIN CONTAINER -->
<div id="container">
<!-- BEGIN HEADER -->
<div id="header">
<!-- BEGIN BANNER -->
<div id="banner">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. </p>
</div>
<!-- END BANNER -->
</div>
<!-- END HEADER -->


<?php if ($type != 'core') { ?>
<!-- BEGIN NAVATRAIL -->
<div id="navatrail">
<p>

{if logged_in}
<a href="{path=member/profile}">Your Account</a> &nbsp; | &nbsp; <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
<a href="{path=member/login}">Login</a> &nbsp; | &nbsp; <a href="{path=member/register}">Register</a>
{/if}

&nbsp; | &nbsp; <a href="{path=member/memberlist}">Member List</a>
</p>
</div>
<!-- END NAVATRAIL -->
<?php } ?>



<!-- BEGIN MENU -->
<div id="menu">

<div id="search">

<p><a href="{homepage}">Home</a></p>

{exp:search:simple_form search_in="everywhere"}
<h2>Search</h2>
<p>
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<br />
<a href="{path=search/index}">Advanced Search</a>
</p>

<p><input type="submit" value="submit"  class="submit" /></p>

{/exp:search:simple_form}
</div>



<div id="categories">
<h2>Categories</h2>
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>


<div id="archive">
<h2>Archives</h2>
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>


<div id="links">
<h2>Links</h2>
<ul>
<li>
<a href="#">Link&nbsp;1</a>
</li>
<li>
<a href="#">Link&nbsp;2</a>
</li>
<li>
<a href="#">Link&nbsp;3</a>
</li>
<li>
<a href="#">Link&nbsp;4</a>
</li>
<li>
<a href="#">Link&nbsp;5</a>
</li>
</ul>
</div>

<div id="syndicate">
<h2>Syndicate</h2>
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>


</div>
<!-- END MENU -->
<!-- BEGIN MAIN -->
<div id="main">

<div class="comment">
{exp:comment:preview}
{comment}
{/exp:comment:preview}
</div>


<div id="commentform">

<br />

<h3><a name="commentformlink">Comment Form</a></h3>

{exp:comment:form preview="{my_template_group}/comment_preview"}

{if logged_out}
<p>
Name:<br />
<input type="text" name="name" value="{name}" size="50" />
</p>
<p>
Email:<br />
<input type="text" name="email" value="{email}" size="50" />
</p>
<p>
Location:<br />
<input type="text" name="location" value="{location}" size="50" />
</p>
<p>
URL:<br />
<input type="text" name="url" value="{url}" size="50" />
</p>

{/if}

<p>
<a href="{path={my_template_group}/smileys}" onclick="window.open(this.href, '_blank', 'width=400,height=440');return false;" onkeypress="this.onclick()">Smileys</a>
</p>


<p>
<textarea name="comment" cols="50" rows="12">{comment}</textarea>
</p>

{if logged_out}
<p><input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information</p>
{/if}

<p><input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?</p>

{if captcha}
<p>Submit the word you see below:</p>
<p>
{captcha}
<br />
<input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
</p>
{/if}

<p>
<input type="submit" name="submit" value="Submit" />
<input type="submit" name="preview" value="Preview" />
</p>
{/exp:comment:form}

</div>

</div>
<!-- END MAIN -->
<!-- BEGIN FOOTER -->
<div id="footer">
<p>
Powered by <a href="http://www.pmachine.com/">ExpressionEngine</a>
</p>
</div>
<!-- END FOOTER -->
</div>
<!-- END CONTAINER -->
</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END





//-------------------------------------
//	Trackbacks
//-------------------------------------

function trackbacks()
{
	global $type;

ob_start();
?>
{assign_variable:my_weblog="default_site"}
{assign_variable:my_template_group="site"}

<!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" xml:lang="{lang}" lang="{lang}">

<head>
<title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />

<link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
<style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>

</head>

<body>


<!-- BEGIN CONTAINER -->
<div id="container">
<!-- BEGIN HEADER -->
<div id="header">
<!-- BEGIN BANNER -->
<div id="banner">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
<p>Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. </p>
</div>
<!-- END BANNER -->
</div>
<!-- END HEADER -->


<?php if ($type != 'core') { ?>

<!-- BEGIN NAVATRAIL -->
<div id="navatrail">
<p>

{if logged_in}
<a href="{path=member/profile}">Your Account</a> &nbsp; | &nbsp; <a href="{path=logout}">Logout</a>
{/if}

{if logged_out}
<a href="{path=member/login}">Login</a> &nbsp; | &nbsp; <a href="{path=member/register}">Register</a>
{/if}

&nbsp; | &nbsp; <a href="{path=member/memberlist}">Member List</a>
</p>
</div>
<!-- END NAVATRAIL -->
<?php } ?>



<!-- BEGIN MENU -->
<div id="menu">

<div id="search">

<p><a href="{homepage}">Home</a></p>

{exp:search:simple_form search_in="everywhere"}
<h2>Search</h2>
<p>
<input type="text" name="keywords" value="" class="input" size="18" maxlength="100" />
<br />
<a href="{path=search/index}">Advanced Search</a>
</p>

<p><input type="submit" value="submit"  class="submit" /></p>

{/exp:search:simple_form}
</div>



<div id="categories">
<h2>Categories</h2>
{exp:weblog:categories weblog="{my_weblog}" style="nested"}
<a href="{path={my_template_group}/index}">{category_name}</a>
{/exp:weblog:categories}
</div>


<div id="archive">
<h2>Archives</h2>
<ul>
{exp:weblog:month_links weblog="{my_weblog}"}
<li><a href="{path={my_template_group}/index}">{month} {year}</a></li>
{/exp:weblog:month_links}
</ul>
</div>


<div id="links">
<h2>Links</h2>
<ul>
<li>
<a href="#">Link&nbsp;1</a>
</li>
<li>
<a href="#">Link&nbsp;2</a>
</li>
<li>
<a href="#">Link&nbsp;3</a>
</li>
<li>
<a href="#">Link&nbsp;4</a>
</li>
<li>
<a href="#">Link&nbsp;5</a>
</li>
</ul>
</div>

<div id="syndicate">
<h2>Syndicate</h2>
<ul>
<li><a href="{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
<li><a href="{path={my_template_group}/atom}">Atom</a></li>
</ul>
</div>


</div>
<!-- END MENU -->
<!-- BEGIN MAIN -->
<div id="main">

<h2 class="title">The trackback URL for this entry is:</h2>

<form action="">
<p>
<input type="text" value="{exp:trackback:url}" size="60" />
</p>
</form>

<h2>Trackbacks</h2>

{exp:trackback:entries}
<div class="comment">
<h2>{title}</h2>

{content}

<p>Tracked on: <a href="{trackback_url}">{weblog_name}</a> ({trackback_ip}) at {trackback_date format="%Y %m %d %H:%i:%s"}</p>

{if no_results}
There are no trackbacks for this entry.
{/if}

</div>
{/exp:trackback:entries}



</div>
<!-- END MAIN -->
<!-- BEGIN FOOTER -->
<div id="footer">
<p>
Powered by <a href="http://www.pmachine.com/">ExpressionEngine</a>
</p>
</div>
<!-- END FOOTER -->
</div>
<!-- END CONTAINER -->
</body>
</html>

<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END






//-------------------------------------
//	Smileys
//-------------------------------------

function smileys()
{
	global $type;

ob_start();
?>
<!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" xml:lang="{lang}" lang="{lang}">
<head>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<title>Smileys</title>

<style type="text/css">

body {
background-color: #ffffff;
margin-left: 40px;
margin-right: 40px;
margin-top: 30px;
font-size: 11px;
font-family: verdana,trebuchet,sans-serif;
}
a:link {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:visited {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:active {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:hover {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: none;
}

</style>

<script language="javascript">
<!--

function add_smiley(smiley)
{
opener.document.comment_form.comment.value += " " + smiley + " ";
opener.window.document.comment_form.comment.focus();
window.close();
}
//-->
</script>


</head>
<body>

<p>Click on an image to add it to your comment</p>

<table border="0" width="100%" cellpadding="6" cellspacing="1">

{exp:emoticon columns="4"}
<tr>
<td><div>{smiley}</div></td>
</tr>
{/exp:emoticon}

</table>

</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END


//-------------------------------------
//	Default referrers
//-------------------------------------

function referrers()
{
	global $type;

ob_start();
?>
<!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" xml:lang="{lang}" lang="{lang}">

<head>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<title>Referrers</title>

<style type="text/css">

body {
background-color: #ffffff;
margin-left: 40px;
margin-right: 40px;
margin-top: 30px;
font-size: 11px;
font-family: verdana,trebuchet,sans-serif;
}
h4 {
font-size: 14px;
font-family: verdana,trebuchet,sans-serif;
}
a:link {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:visited {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:active {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: underline;
}
a:hover {
color: #990000;
font-size: 11px;
font-weight: normal;
text-decoration: none;
}

</style>

</head>
<body>

<h4>Referrers</h4>

<table border="0" width="100%" cellpadding="6" cellspacing="1">
<tr>
<td>From</td>
<td>To</td>
<td>IP Address</td>
<td>Date</td>
</tr>

{exp:referrer limit="50" popup="yes"}
<tr class="row">
<td><div>{ref_from}</div></td>
<td><div>{ref_to}</div></td>
<td><div>{ref_ip}</div></td>
<td><div>{ref_date format="%m/%d/%Y"}</div></td>
</tr>
{/exp:referrer}

</table>

</body>
</html>
<?php

$buffer = ob_get_contents();
ob_end_clean();
return $buffer;

}
// END
?>