<?php

$template_matrix = array(
							array('index',				'webpage'),
							array('comments',			'webpage'),
							array('comment_preview',	'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();
?>
body {
	background: #fff url({site_url}themes/site_themes/blue_stripes/blue_stripes_menu.gif) repeat-x scroll top left;
	font-family: "Lucida Grande", Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin: 0;
	padding: 0;
	color: #000;
}

/* links */
a {
	text-decoration: underline;
}

a:link {
	color: #4C7899;
}

a:visited {
	color: #285577;
}

a:active {
	color: #000;
}

a:hover {
	color: #142A3B;
}

/* headers */
h1 {
	margin: 0;
	padding: 10px 0 0 40px;
}

h1 a {
	text-decoration: none;
	color: #285577;
}

h2 {
	font-size: 14px;
	margin: 5px 0;
	padding: 0;
}

h2.date {
	margin: 10px 0 10px 10px;
}

h3 {
	font-size: 13px;
	color: #285577;
	margin: 5px 0;
	padding: 0;
}

h4 {
	font-size: 12px;
	color: #285577;
	text-transform: uppercase;
	margin: 5px 0;
	padding: 0;
}

h5 {
	font-size: 12px;
	color: #285577;
	margin: 5px 0;
	padding: 0;
	border-bottom: 1px solid #333;
	background-color: #E6F0F8;
}

/* lists */
ul {
	margin: 0 0 0 10px;
	padding: 0 0 0 10px;
	list-style: disc url({site_url}themes/site_themes/blue_stripes/blue_stripes_bullet.gif) outside;
}

ul li {

}

/* images */
img {
	border: 0;
}

/* forms */
input {
	border: 1px solid #285577;
	background-color: #fff;
}

input:focus {
	border: 1px solid #142A3B;
	background-color: #E6F0F8;
}

textarea {
	border: 1px solid #285577;
	background-color: #fff;
}

textarea:focus {
	border: 1px solid #142A3B;
	background-color: #E6F0F8;
}


/* main containers */
#container {
	width: 780px;
	margin: 0 auto;
	padding: 0;

}

#header {
	height: 50px;
}

#content {
	background-color: #fff;
	border: 1px solid #000;
	width: 450px;
	float: left;
	margin: 0 25px;
	padding: 0;
	display: inline;  /* IE/Win Float Hack */
}

#logo {
	margin: 0 0 0 500px;
	width: 250px;
	height: 150px;
	padding: 0;
}

#menu {
	margin: 1px 0 10px 500px;
	width: 250px;
	padding: 0;
	height: 148px;
	background-color: #4C7899;
}

#sidebar {
	margin: 0 0 10px 500px;
	width: 250px;
	color: #333;
}

#credits {
	clear: both;
	margin:  0;
	padding: 12px;
	text-align: center;
}

#category {
	text-align: center;
	margin: 10px;
	font-size: 10px;
	color: #333;
	border: 1px solid #4C7899;
	background-color: #E6F0F8;
	padding: 5px;
}

/* menu */
#menu ul {
	margin: 0;
	padding: 0;
	list-style: none none outside;
}

#menu ul li {
	padding: 2px 0;
}

#menu ul li a {
	display: block;
	padding: 2px 0 2px 10px;
	margin: 0;
	background-color: transparent;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 11px;
	text-decoration: none;
	color: #B1D3EC;
	width: 100%;
}

html>body #menu ul li a {
	width: auto;
}

#menu ul li a:hover {
	background: #fff;
	color: #000;
}

#menu ul li a span {
	visibility: hidden;
	font-size: 10px;
	font-weight: normal;
	font-style: italic;
	text-transform: none;
}

#menu ul li a:hover span {
	visibility: visible;
}

/* entries */
.entry1 {
	margin: 10px 10px 40px 10px;
	padding: 0;
	line-height: 150%;
	text-align: justify;
}

.entry2 {
	margin: 10px 10px 40px 10px;
	padding: 0;
	line-height: 150%;
	text-align: justify;
}

.entryInfo {
	text-align: right;
	font-size: 10px;
}

.entryInfo1 {
	font-size: 10px;
	text-align: left;
	font-style: italic;
}

.entry1 h3 a, .entry2 h3 a {
	color: #285577;
	text-decoration: none;
}

.entry1 h3 {
	border-bottom: 1px solid #333;
	background-color: #E6F0F8;
}

.entry2 h3 {
	border-bottom: 1px solid #333;
	background-color: #EEF2F5;
}

.pagination {
	text-align: center;
	margin: 10px;
	font-size: 10px;
	color: #333;
	border: 1px solid #4C7899;
	background-color: #E6F0F8;
	padding: 5px;
}

/* comments */
#comments {
	margin: 10px;
	padding: 0;
}

#commentsPost {
	margin: 10px;
	padding: 0;
}

.comment1 {
	margin: 0 0 40px 0;
	line-height: 150%;
	text-align: justify;
}

.comment2 {
	margin: 0 0 40px 0;
	line-height: 150%;
	text-align: justify;
}

.commentInfo {
	font-size: 13px;
	color: #285577;
	margin: 5px 0;
	padding: 0;
	background-color: #E6F0F8;
}

.commentInfo1 {
	font-size: 10px;
	text-align: left;
	margin: 10px 0 0 0;
	padding: 0;
}

.title {
	font-size: 13px;
	font-weight: bold;
}

/* sidebar */
.sContent {
	margin: 0 0 30px 0;
	padding: 0;
}

/* calendar */
.calendarBG {
	margin: 0;
	padding: 0;
	color: #333;
}

.calendarHeader {
	font-weight: bold;
	background-color: #4C7899;
	text-align: center;
}

.calendarMonthLinks a {
	color: #fff;
	text-decoration: none;
}

.calendarMonthLinks a:hover {
	color: #B1D3EC;
}

.calendarDayHeading {
	background-color: #B1D3EC;
	text-align: center;
	font-weight: bold;
}

.calendarCell {
	background-color: #E6F0F8;
}

.calendarToday {
	background-color: #B1D3EC;
}

.calendarBlank {
	background-color: #E6F0F8;
}
<?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>


<div id="container">

<div id="header">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>


<div id="content">


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

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


<div class="{switch='entry1|entry2'}">

<h3>{title}</h3>
<div class="entryInfo1"><?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?> </div>

<div class="entryBody">
{summary}
{body}
{extended}
</div>


<div class="entryInfo">
Filed under:
{categories}
<a href="{path=site_index}" title="view entries in this category">{category_name}</a>&nbsp;
{/categories}

<br />

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

{if allow_trackbacks}
 <img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_bullet.gif" width="10" height="10" alt="" /> ({trackback_total}) <a href="{trackback_path="{my_template_group}/comments"}">Trackbacks</a>
{/if}

<img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_bullet.gif" width="10" height="10" alt="" /> <a href="{title_permalink={my_template_group}/comments}">Permalink</a>

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

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

<div id="credits"><a href="http://www.pmachine.com">Powered by ExpressionEngine</a></div>


</div>


<div id="logo">
<img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_logo.jpg" width="245" height="125" alt="" />
</div>

<div id="menu">
<ul>
<li><a href="{homepage}">home<span> sweet home</span></a></li>
<li><a href="">about<span> this site</span></a></li>
<li><a href="">contact<span> information</span></a></li>
<li><a href="">lorem<span> ipsum</span></a></li>
<li><a href="">cuckoo<span> clock</span></a></li>
</ul>
</div>

<div id="sidebar">


<?php if ($type != 'core') { ?>
<div class="sContent">
<h4>Members</h4>
<ul>
{if logged_in}
<li> <a href="{path=member/profile}">Your Account</a></li>
<li><a href="{path=logout}">Logout</a></li>
{/if}

{if logged_out}
<li><a href="{path=member/login}">Login</a></li>
<li><a href="{path=member/register}">Register</a></li>
{/if}

<li><a href="{path=member/memberlist}">Member List</a></li>
</ul>
</div>
<?php } ?>



<div class="sContent"><h4>Now Visiting</h4>

{exp:stats}
<ul>
<li>{total_guests} guest(s)</li>
<li>{total_logged_in} member(s)</li>
{if member_names}
<li>
{member_names  backspace='6'}
<a href="{member_path=member/index}">{name}</a>&nbsp;
{/member_names}
</li>
{/if}
</ul>
{/exp:stats}

</div>

<div class="sContent"><h4>Calendar</h4>
{exp:weblog:calendar switch="calendarToday|calendarCell"}

<table class="calendarBG" border="0" cellpadding="5" cellspacing="1" summary="My Calendar">
<tr>
<th class="calendarHeader"><div class="calendarMonthLinks"><a href="{previous_path={my_template_group}/index}">&lt;&lt;</a></div></th>
<th class="calendarHeader" colspan="5">{date format="%F %Y"}</th>
<th class="calendarHeader"><div class="calendarMonthLinks"><a class="calendarMonthLinks" href="{next_path={my_template_group}/index}">&gt;&gt;</a></div></th>
</tr>
<tr>
{calendar_heading}
<td class="calendarDayHeading">{lang:weekday_abrev}</td>
{/calendar_heading}
</tr>
{calendar_rows }
{row_start}<tr>{/row_start}
{if entries}<td class='{switch}' align='center'><a href="{day_path={my_template_group}/index}">{day_number}</a></td>{/if}
{if not_entries}<td class='{switch}' align='center'>{day_number}</td>{/if}
{if blank}<td class='calendarBlank'>&nbsp;</td>{/if}
{row_end}</tr>{/row_end}
{/calendar_rows}
</table>
{/exp:weblog:calendar}
</div>


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

<div class="sContent"><h4>Archives</h4>
<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 class="sContent"><h4>Search</h4>
{exp:search:simple_form search_in="everywhere"}
<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 class="sContent"><h4>Syndication</h4>
<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>

</div>

<div style="clear: both;">&nbsp;</div>

</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>


<div id="container">

<div id="header">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>

<div id="content">

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

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


<div class="entry1">

<h3>{title}</h3>
<div class="entryInfo1"><?php if ($type != 'core') { ?>{author}<?php } else { ?><a href="{profile_path=member/index}">{author}</a><?php } ?> </div>

<div class="entryBody">
{summary}
{body}
{extended}
</div>


<div class="entryInfo">
Filed under:
{categories}
<a href="{path=site_index}" title="view entries in this category">{category_name}</a>&nbsp;
{/categories}

<br />

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

{if allow_trackbacks}
 <img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_bullet.gif" width="10" height="10" alt="" /> ({trackback_total}) <a href="{trackback_path="{my_template_group}/trackbacks"}">Trackbacks</a>
{/if}

<img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_bullet.gif" width="10" height="10" alt="" /> <a href="{title_permalink={my_template_group}/comments}">Permalink</a>

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

<a name="comments"></a>


<div id="comments">
<h5>Comments &amp; Trackbacks</h5>

<a name="trackbacks"></a>
<div class="comment2">
The trackback URL for this entry is:<br />
<form action="">
<div><input type="text" value="{exp:trackback:url}" size="50" class="input" style="width:99%" /></div>
</form>
</div>

{exp:comment:entries weblog="{my_weblog}" limit="25"}
<div class="{switch="comment1|comment2"}">
{if comments}
<div class="commentInfo"><a name="{comment_id}"></a>
{url_or_email_as_author}
</div>
{comment}
<div class="commentInfo1">on {comment_date format="%M %d %Y"} @ <a href="{permalink}" title="permalink">{comment_date format="%h:%i %A"}</a></div>
{/if}

{if trackbacks}
<div class="commentInfo"><a name="{trackback_id}"></a>
Trackback from <a href="{trackback_url}">{my_weblog}</a>
</div>
<span class="title">{title}</span><br />
{content}
<div class="commentInfo1">{trackback_date format="%M %d %Y"} @ <a href="#t{trackback_id}">{trackback_date format="%h:%i %A"}</a></div>
{/if}
</div>

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


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


<div id="commentsPost">
<h5>Post a Comment</h5>

{if logged_in}<p>You are signed in as <a href="{path=member/profile}">{screen_name}</a></p>{/if}

{exp:comment:form preview="{my_template_group}/comment_preview"}
{if not_logged_in}
<p>
If you are <a href="{path="member/register"}">registered</a>, please <a href="{path="member/login"}">log in</a>.<br />
Name:<br />
<input type="text" name="name" value="{name}" size="40" /><br />
Email:<br />
<input type="text" name="email" value="{email}" size="40" /><br />
Location:<br />
<input type="text" name="location" value="{location}" size="40" /><br />
URL:<br />
<input type="text" name="url" value="{url}" size="40" />
</p>
{/if}

<p><a href="#" onclick="window.open('{path={my_template_group}/smileys}', '_blank', 'width=300,height=400')">Smilies</a><br /><br />
<textarea name="comment" cols="40" rows="10" style="width:100%">{comment}</textarea>

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

<br /><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:<br />
{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 class="pagination">
{exp:weblog:prev_entry weblog="{my_weblog}"}
&laquo; <a href="{path={my_template_group}/comments}">Previous Entry</a> |
{/exp:weblog:prev_entry}

<a href="{homepage}">Main</a>

{exp:weblog:next_entry weblog="{my_weblog}"}
| <a href="{path={my_template_group}/comments}">Next Entry</a> &raquo;
{/exp:weblog:next_entry}
</div>



<div id="credits"><a href="http://www.pmachine.com">Powered by ExpressionEngine</a></div>


</div>


<div id="logo">
<img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_logo.jpg" width="245" height="125" alt="" />
</div>

<div id="menu">
<ul>
<li><a href="{homepage}">home<span> sweet home</span></a></li>
<li><a href="">about<span> this site</span></a></li>
<li><a href="">contact<span> information</span></a></li>
<li><a href="">lorem<span> ipsum</span></a></li>
<li><a href="">cuckoo<span> clock</span></a></li>
</ul>
</div>

<div id="sidebar">


<?php if ($type != 'core') { ?>
<div class="sContent"><h4>Members</h4>
<ul>
{if logged_in}
<li> <a href="{path=member/profile}">Your Account</a></li>
<li><a href="{path=logout}">Logout</a></li>
{/if}

{if logged_out}
<li><a href="{path=member/login}">Login</a></li>
<li><a href="{path=member/register}">Register</a></li>
{/if}

<li><a href="{path=member/memberlist}">Member List</a></li>
</ul>
</div>
<?php } ?>


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


<div class="sContent"><h4>Archives</h4>
<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 class="sContent"><h4>Search</h4>
{exp:search:simple_form search_in="everywhere"}
<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 class="sContent"><h4>Syndication</h4>
<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>

</div>

<div style="clear: both;">&nbsp;</div>

</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>


<div id="container">

<div id="header">
<h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1>
</div>


<div id="content">


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


<div id="commentsPost">

<h5>Comment Preview</h5>
{if logged_in}<p>You are signed in as <a href="{path=member/profile}">{screen_name}</a>.</p>{/if}

{exp:comment:form preview="{my_template_group}/comment_preview"}
{if not_logged_in}
<p>
Name:<br />
<input type="text" name="name" value="{name}" size="40" /><br />
Email:<br />
<input type="text" name="email" value="{email}" size="40" /><br />
Location:<br />
<input type="text" name="location" value="{location}" size="40" /><br />
URL:<br />
<input type="text" name="url" value="{url}" size="40" />
</p>
{/if}

<p><a href="#" onclick="window.open('{path={my_template_group}/smileys}', '_blank', 'width=300,height=400')">Smilies</a><br /><br />
<textarea name="comment" cols="40" rows="10" style="width:100%">{comment}</textarea>

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

<br /><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:<br />
{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 id="credits"><a href="http://www.pmachine.com">Powered by ExpressionEngine</a></div>

</div>


<div id="logo">
<img src="{site_url}/themes/site_themes/blue_stripes/blue_stripes_logo.jpg" width="245" height="125" alt="" />
</div>

<div id="menu">
<ul>
<li><a href="{homepage}">home<span> sweet home</span></a></li>
<li><a href="">about<span> this site</span></a></li>
<li><a href="">contact<span> information</span></a></li>
<li><a href="">lorem<span> ipsum</span></a></li>
<li><a href="">cuckoo<span> clock</span></a></li>
</ul>
</div>

<div id="sidebar">


<?php if ($type != 'core') { ?>
<div class="sContent"><h4>Members</h4>
<ul>
{if logged_in}
<li> <a href="{path=member/profile}">Your Account</a></li>
<li><a href="{path=logout}">Logout</a></li>
{/if}

{if logged_out}
<li><a href="{path=member/login}">Login</a></li>
<li><a href="{path=member/register}">Register</a></li>
{/if}

<li><a href="{path=member/memberlist}">Member List</a></li>
</ul>
</div>
<?php } ?>



</div>

</div>

<div style="clear: both;">&nbsp;</div>

</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
?>