<?php
// +-------------------------------------------------------------+
// | HiveMail™ version 1.3.1
// +-------------------------------------------------------------+
// | HIVEMAIL™ IS NOT FREE SOFTWARE
// | If you have downloaded this software from a website other
// | than Hivemail or if you have otherwise received
// | this software from someone who is not a representative of
// | this organization you are involved in an illegal activity.
// +-------------------------------------------------------------+
// +-------------------------------------------------------------+

// ############################################################################
// Templates
$templates[7] = array (
  'css' => 
  array (
    'templategroupid' => '1',
    'user_data' => '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<style type="text/css">
body {
	padding: 0px;
}
.firstalt {
	background: $skin[firstalt];
}
.secondalt {
	background: $skin[secondalt];
}

/***** Text *****/
.headerText {
	color: #3B6597;
	font-weight: bold;
	vertical-align: middle;
}
.timecolor {
	color: $skin[timecolor];
}
.smallfont {
	font-family: $skin[fontface];
	font-size: $skin[smallsize];
}
.smallfonttablehead {
	font-family: $skin[fontface];
	font-size: $skin[smallsize];
	color: $skin[tableheadfontcolor];
	text-decoration: none;
}
.normalfont {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
}
.normalfonttablehead {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
	color: $skin[tableheadfontcolor];
	text-decoration: none;
}
.important {
	font-family: $skin[fontface];
	font-size: $skin[normalsize];
	color: red;
	font-weight: bold;               
}

/***** Forms *****/
select {
	font-family: $skin[fontface];
	font-size: 11px;
	color: #000000;
	background: $skin[formbackground];
	font-weight: normal;
}
textarea, .bginput {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	background: $skin[formbackground];
	font-weight: normal;
	border-width: 1px;
}
.normalInactive {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
}
.highInactive {
	font-family: $skin[fontface];
	font-size: 12px;
	color: #000000;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
}
.normalInactiveLink {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
	color: $skin[linkcolor];
}
.normalInactiveLinkHover {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[firstalt] solid;
	font-weight: normal;
	background: $skin[firstalt];
	color: $skin[linkhovercolor];
}
.highInactiveLink {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
	color: $skin[linkcolor];
}
.highInactiveLinkHover {
	font-family: $skin[fontface];
	font-size: 12px;
	border: 1px $skin[secondalt] solid;
	font-weight: normal;
	background: $skin[secondalt];
	color: $skin[linkhovercolor];
}

/***** Links *****/
a:link, a:visited, a:active {
	color: $skin[linkcolor];
	
}
a:hover {
	color: $skin[linkhovercolor];
}
.headerLink {
	color: #DAEBFA;
	font-family: $skin[fontface];
	font-size: 12px;
	text-decoration: none;
}
.footerLink {
	color: #142F8A;
	font-family: Arial;
	font-size: 11px;
	text-decoration: none;
                margin-left: 1%;
                margin-right: 1%;
}
.folderLink {
	font-family: $skin[fontface];
	font-size: 11px;
	text-decoration: none;
}

/***** Tables *****/
.normalTable {
	border-width: 0px;
	font: 11px $skin[fontface];
}

/***** Normal Rows *****/
.normalRow {
	background-color: $skin[firstalt];
}
.highRow {
	background-color: $skin[secondalt];
}

/***** Header Row *****/
.headerRow {
	background: $skin[tableheadbgcolor];
	height: 23px;
}

/***** Normal Cells *****/
.Cell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
}
.LeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
}
.RightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
}
.BothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
}
.normalCell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[firstalt];
}
.normalLeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[firstalt];
}
.normalRightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[firstalt];
}
.normalBothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[firstalt];
}
.highCell {
	border: 0px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[secondalt];
}
.highLeftCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_vertical_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[secondalt];
}
.highRightCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] 0px;
	background-color: $skin[secondalt];
}
.highBothCell {
	border: 1px $skin[border_normal_style] $skin[border_normal_color];
	border-width: 0px $skin[border_normal_edges_width] $skin[border_normal_horizonal_width] $skin[border_normal_edges_width];
	background-color: $skin[secondalt];
}

/***** Header Cells *****/
.headerCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_vertical_width] $skin[border_header_horizonal_width] 0px;
}
th a {
	text-decoration: none;
}
.headerLeftCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_vertical_width] $skin[border_header_horizonal_width] $skin[border_header_edges_width];
}
.headerRightCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_edges_width] $skin[border_header_horizonal_width] 0px;
}
.headerBothCell {
	padding: 0px;
	border: 0px $skin[border_header_style] $skin[border_header_color];
	border-width: $skin[border_header_horizonal_width] $skin[border_header_edges_width] $skin[border_header_horizonal_width] $skin[border_header_edges_width];
}
</style>
<script type="text/javascript" language="JavaScript">
<!--
var INDEX_FILE = \'{<INDEX_FILE>}\';
// -->
</script>
<script type="text/javascript" src="misc/common.js"></script>
<%if (!infile(\'compose\') or !$data[\'html\']) and !defined(\'NO_JS\') %>
<link rel="stylesheet" href="misc/context.css">
<script type="text/javascript" src="misc/event.js"></script>
<script type="text/javascript" src="misc/context.js"></script>
<script type="text/javascript" language="JavaScript">
<!--

var gotNewMsgs = 0;

event_addListener( window, \'load\', function() { preloadImages(\'$skin[images]/header_icon_inbox_high.gif\', \'$skin[images]/header_icon_compose_high.gif\', \'$skin[images]/header_icon_addbook_high.gif\', \'$skin[images]/header_icon_options_high.gif\', \'$skin[images]/header_icon_search_high.gif\'); });

<%if $hiveuser[\'userid\'] <> 0 and $hiveuser[\'lastvisit\'] == TIMENOW and $hiveuser[\'fixdst\'] %>
function checkDST() {
	var curDate = new Date();
	var difference = parseInt(-curDate.getTimezoneOffset() / 60 - $hiveuser[timezone]);

	while (difference > 12) {
		difference -= 12;
	}
	while (difference < -12) {
		difference += 12;
	}

	if (difference != 0) {
		<%if $hiveuser[\'popupnotices\'] %>
			if (confirm(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Would you like the system to correct this mistake?\')) {
				imgevent("options.personal.php?cmd=updatezone&difference="+difference);
			} else if (confirm(\'Do you wish to disable the automatic detection of time-zones?\')) {
				imgevent("options.personal.php?cmd=disablezone");
			}
		<%else%>
			showNotice(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Click <a href="#" onClick="imgevent(\\\'options.personal.php?cmd=updatezone&difference=\'+difference+\'\\\'); closeNotice(); return false;">here</a> to correct this mistake or click <a href="#" onClick="imgevent(\\\'options.personal.php?cmd=disablezone\\\'); closeNotice(); return false;">here</a> to disable the automatic detection of time-zones.\');
		<%endif%>
	}
}
setTimeout(checkDST, 1000);
<%endif%>

function contextForFolder(e, folderID, folderName) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ window.location = \'{<INDEX_FILE>}?folderid=\'+folderID; }, false, true),
		new ContextItem(\'Search\', function(){ window.location = \'search.intro.php?folderid=\'+folderID; }),
		new ContextSeperator(),
		new ContextItem(\'Rename...\', function(){ renameFolder(folderID, folderName); }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Empty\', function(){ if (confirm(\'Are you sure you want to empty this folder?\')) window.location = \'folders.update.php?empty=Empty&return=$folderid&folder[\'+folderID+\']=yes\'; }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete this folder?\')) window.location = \'folders.update.php?delete=Delete&return=$folderid&folder[\'+folderID+\']=yes\'; }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Mark as read\', function(){ markFolder(folderID, \'read\'); }),
		new ContextItem(\'Mark as not read\', function(){ markFolder(folderID, \'unread\'); })
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.folderID = folderID;
}

function renameFolder(folderid, currentName) {
	var name = window.prompt(\'New name for folder "\'+currentName+\'":\', currentName);
	if (name != null) {
		window.location = \'folders.rename.php?folderid=\'+folderid+\'&name=\'+name;
	}
}

function markFolder(folderid, markAs) {
	if (confirm(\'Are you sure you want to mark all messages in this folder as \'+markAs+\'?\')) {
		window.location = \'folders.update.php?cmd=mark&markas=\'+markAs+\'&folderid=\'+folderid;
	}
}

//-->
</script>
<%else%>
<script type="text/javascript" language="JavaScript">
<!--

function contextForFolder() {
	return true;
}

//-->
</script>
<%endif%>',
    'parsed_data' => '"<meta http-equiv=\\"Content-Type\\" content=\\"text/html; charset=ISO-8859-1\\" />
<style type=\\"text/css\\">
body {
	padding: 0px;
}
.firstalt {
	background: {$GLOBALS[skin][firstalt]};
}
.secondalt {
	background: {$GLOBALS[skin][secondalt]};
}

/***** Text *****/
.headerText {
	color: #3B6597;
	font-weight: bold;
	vertical-align: middle;
}
.timecolor {
	color: {$GLOBALS[skin][timecolor]};
}
.smallfont {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][smallsize]};
}
.smallfonttablehead {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][smallsize]};
	color: {$GLOBALS[skin][tableheadfontcolor]};
	text-decoration: none;
}
.normalfont {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
}
.normalfonttablehead {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
	color: {$GLOBALS[skin][tableheadfontcolor]};
	text-decoration: none;
}
.important {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: {$GLOBALS[skin][normalsize]};
	color: red;
	font-weight: bold;               
}

/***** Forms *****/
select {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 11px;
	color: #000000;
	background: {$GLOBALS[skin][formbackground]};
	font-weight: normal;
}
textarea, .bginput {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	background: {$GLOBALS[skin][formbackground]};
	font-weight: normal;
	border-width: 1px;
}
.normalInactive {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
}
.highInactive {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	color: #000000;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
}
.normalInactiveLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
	color: {$GLOBALS[skin][linkcolor]};
}
.normalInactiveLinkHover {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][firstalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][firstalt]};
	color: {$GLOBALS[skin][linkhovercolor]};
}
.highInactiveLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
	color: {$GLOBALS[skin][linkcolor]};
}
.highInactiveLinkHover {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	border: 1px {$GLOBALS[skin][secondalt]} solid;
	font-weight: normal;
	background: {$GLOBALS[skin][secondalt]};
	color: {$GLOBALS[skin][linkhovercolor]};
}

/***** Links *****/
a:link, a:visited, a:active {
	color: {$GLOBALS[skin][linkcolor]};
	
}
a:hover {
	color: {$GLOBALS[skin][linkhovercolor]};
}
.headerLink {
	color: #DAEBFA;
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 12px;
	text-decoration: none;
}
.footerLink {
	color: #142F8A;
	font-family: Arial;
	font-size: 11px;
	text-decoration: none;
                margin-left: 1%;
                margin-right: 1%;
}
.folderLink {
	font-family: {$GLOBALS[skin][fontface]};
	font-size: 11px;
	text-decoration: none;
}

/***** Tables *****/
.normalTable {
	border-width: 0px;
	font: 11px {$GLOBALS[skin][fontface]};
}

/***** Normal Rows *****/
.normalRow {
	background-color: {$GLOBALS[skin][firstalt]};
}
.highRow {
	background-color: {$GLOBALS[skin][secondalt]};
}

/***** Header Row *****/
.headerRow {
	background: {$GLOBALS[skin][tableheadbgcolor]};
	height: 23px;
}

/***** Normal Cells *****/
.Cell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
}
.LeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
}
.RightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
}
.BothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
}
.normalCell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalLeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalRightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][firstalt]};
}
.normalBothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][firstalt]};
}
.highCell {
	border: 0px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][secondalt]};
}
.highLeftCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_vertical_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][secondalt]};
}
.highRightCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} 0px;
	background-color: {$GLOBALS[skin][secondalt]};
}
.highBothCell {
	border: 1px {$GLOBALS[skin][border_normal_style]} {$GLOBALS[skin][border_normal_color]};
	border-width: 0px {$GLOBALS[skin][border_normal_edges_width]} {$GLOBALS[skin][border_normal_horizonal_width]} {$GLOBALS[skin][border_normal_edges_width]};
	background-color: {$GLOBALS[skin][secondalt]};
}

/***** Header Cells *****/
.headerCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_vertical_width]} {$GLOBALS[skin][border_header_horizonal_width]} 0px;
}
th a {
	text-decoration: none;
}
.headerLeftCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_vertical_width]} {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]};
}
.headerRightCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]} {$GLOBALS[skin][border_header_horizonal_width]} 0px;
}
.headerBothCell {
	padding: 0px;
	border: 0px {$GLOBALS[skin][border_header_style]} {$GLOBALS[skin][border_header_color]};
	border-width: {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]} {$GLOBALS[skin][border_header_horizonal_width]} {$GLOBALS[skin][border_header_edges_width]};
}
</style>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var INDEX_FILE = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}\';
// -->
</script>
<script type=\\"text/javascript\\" src=\\"misc/common.js\\"></script>
".(((!infile(\'compose\') or !$data[\'html\']) and !defined(\'NO_JS\') ) ? ("
<link rel=\\"stylesheet\\" href=\\"misc/context.css\\">
<script type=\\"text/javascript\\" src=\\"misc/event.js\\"></script>
<script type=\\"text/javascript\\" src=\\"misc/context.js\\"></script>
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

var gotNewMsgs = 0;

event_addListener( window, \'load\', function() { preloadImages(\'{$GLOBALS[skin][images]}/header_icon_inbox_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_compose_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_addbook_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_options_high.gif\', \'{$GLOBALS[skin][images]}/header_icon_search_high.gif\'); });

".(($hiveuser[\'userid\'] <> 0 and $hiveuser[\'lastvisit\'] == TIMENOW and $hiveuser[\'fixdst\'] ) ? ("
function checkDST() {
	var curDate = new Date();
	var difference = parseInt(-curDate.getTimezoneOffset() / 60 - $hiveuser[timezone]);

	while (difference > 12) {
		difference -= 12;
	}
	while (difference < -12) {
		difference += 12;
	}

	if (difference != 0) {
		".(($hiveuser[\'popupnotices\'] ) ? ("
			if (confirm(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Would you like the system to correct this mistake?\')) {
				imgevent(\\"options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=updatezone&difference=\\"+difference);
			} else if (confirm(\'Do you wish to disable the automatic detection of time-zones?\')) {
				imgevent(\\"options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=disablezone\\");
			}
		") : ("
			showNotice(\'The system has detected that the time zone in your preferences is wrong and off by \'+Math.abs(difference)+\' hour\'+((Math.abs(difference) == 1) ? (\'\') : (\'s\'))+\'. Click <a href=\\"#\\" onClick=\\"imgevent(\\\\\'options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=updatezone&difference=\'+difference+\'\\\\\'); closeNotice(); return false;\\">here</a> to correct this mistake or click <a href=\\"#\\" onClick=\\"imgevent(\\\\\'options.personal.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=disablezone\\\\\'); closeNotice(); return false;\\">here</a> to disable the automatic detection of time-zones.\');
		"))."
	}
}
setTimeout(checkDST, 1000);
") : (\'\'))."

function contextForFolder(e, folderID, folderName) {
	var popupoptions = [
		new ContextItem(\'Open\', function(){ window.location = \'".(defined("INDEX_FILE") ? constant("INDEX_FILE") : "{<INDEX_FILE>}")."{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderID; }, false, true),
		new ContextItem(\'Search\', function(){ window.location = \'search.intro.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderID; }),
		new ContextSeperator(),
		new ContextItem(\'Rename...\', function(){ renameFolder(folderID, folderName); }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Empty\', function(){ if (confirm(\'Are you sure you want to empty this folder?\')) window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}empty=Empty&return=$folderid&folder[\'+folderID+\']=yes\'; }),
		new ContextItem(\'Delete\', function(){ if (confirm(\'Are you sure you want to delete this folder?\')) window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}delete=Delete&return=$folderid&folder[\'+folderID+\']=yes\'; }, folderID < 0),
		new ContextSeperator(),
		new ContextItem(\'Mark as read\', function(){ markFolder(folderID, \'read\'); }),
		new ContextItem(\'Mark as not read\', function(){ markFolder(folderID, \'unread\'); })
	]
	ContextMenu.display(popupoptions, e);
	ContextMenu.folderID = folderID;
}

function renameFolder(folderid, currentName) {
	var name = window.prompt(\'New name for folder \\"\'+currentName+\'\\":\', currentName);
	if (name != null) {
		window.location = \'folders.rename.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}folderid=\'+folderid+\'&name=\'+name;
	}
}

function markFolder(folderid, markAs) {
	if (confirm(\'Are you sure you want to mark all messages in this folder as \'+markAs+\'?\')) {
		window.location = \'folders.update.php{$GLOBALS[session_url]}{$GLOBALS[session_ampersand]}cmd=mark&markas=\'+markAs+\'&folderid=\'+folderid;
	}
}

//-->
</script>
") : ("
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--

function contextForFolder() {
	return true;
}

//-->
</script>
"))',
    'upgraded' => '0',
  ),
  'error_alreadyusedtrial' => 
  array (
    'templategroupid' => '7',
    'user_data' => 'Our records indicate that you have already had a free trial period for a subscription in the past. There is a limit of one trial subscription per user.',
    'parsed_data' => '"Our records indicate that you have already had a free trial period for a subscription in the past. There is a limit of one trial subscription per user."',
    'upgraded' => '0',
  ),
  'options_feedmonitor' => 
  array (
    'templategroupid' => '13',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: HiveMonitor&trade; Feeds</title>
$css
<link href="misc/feed.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$header

<table cellpadding="4" cellspacing="0" width="100%">
	<tr>
		<td valign="top">
			<table cellpadding="4" cellspacing="0" class="normalTable" width="150">
				<tr class="headerRow">
					<th class="headerBothCell"><span class="normalfonttablehead"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="2"><span class="normalfonttablehead"><b>HiveMonitor&trade; For RSS/Atom</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%"><span class="normalfont"><b>Introduction</b></span>
	<br />
	<span class="smallfont">HiveMonitor&trade; For RSS/Atom allows you to use a news aggregator (also known as an RSS aggregator or feed reader) to check for new email. By using the special URLs provided below, and inputting them into your news aggregator, you will receive an update on new messages as often as your program is set to update feeds. The update will include the subject and from address of up to the last five unread messages in each folder, and will also give you a folder-by-folder breakdown of unread and total messages.<br /><br />
In order to use this service, your news aggregator will need to accept feeds in one of the formats to the left.<br /><br />
If your reader supports more than one version of RSS, you should use the feed for the highest version number that it supports, since the higher versions contain more features. Chances are your reader will support either RSS or Atom, but not both. If it does support both, the choice is up to you as there is no noticeable difference between the RSS and Atom feeds.<br /><br />
Once you have determined which version to use, right-click on the appropriate link below and select Copy Link Location (for Mozilla-based browsers) or Copy Shortcut (for Internet Explorer). Then, choose the option in your news aggregator that allows you to add a new feed, and paste the URL into it.
	</span></td>
	<td class="{classname}RightCell" valign="top" width="40%">
<div id="css-buttons2">
<ul>
<li><a class="css-button2 rss" href="$link1" title="RSS v0.9/v0.91/v0.92"><span>RSS&nbsp;&nbsp;&nbsp;</span> 0.9x</a></li>
<li><a class="css-button2 rss" href="$link2" title="RSS v1.0"><span>RSS&nbsp;&nbsp;&nbsp;</span> 1.0</a></li>
<li><a class="css-button2 rss" href="$link3" title="RSS v2.0"><span>RSS&nbsp;&nbsp;&nbsp;</span> 2.0</a></li>
<li><a class="css-button2 atom" href="$link4" title="Atom 0.3"><span>Atom</span> 0.3</a></li>
</ul>
</div></td>
</tr>
</table>
</td></tr></table>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: HiveMonitor&trade; Feeds</title>
$GLOBALS[css]
<link href=\\"misc/feed.css\\" rel=\\"stylesheet\\" type=\\"text/css\\" />
<script type=\\"text/javascript\\" language=\\"JavaScript\\">
<!--
var menuDesc = new Array;
function showDesc(id) {}
function hideDesc(id) {}
// -->
</script>
</head>
<body>
$GLOBALS[header]

<table cellpadding=\\"4\\" cellspacing=\\"0\\" width=\\"100%\\">
	<tr>
		<td valign=\\"top\\">
			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"150\\">
				<tr class=\\"headerRow\\">
					<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"2\\"><span class=\\"normalfonttablehead\\"><b>HiveMonitor&trade; For RSS/Atom</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\"><span class=\\"normalfont\\"><b>Introduction</b></span>
	<br />
	<span class=\\"smallfont\\">HiveMonitor&trade; For RSS/Atom allows you to use a news aggregator (also known as an RSS aggregator or feed reader) to check for new email. By using the special URLs provided below, and inputting them into your news aggregator, you will receive an update on new messages as often as your program is set to update feeds. The update will include the subject and from address of up to the last five unread messages in each folder, and will also give you a folder-by-folder breakdown of unread and total messages.<br /><br />
In order to use this service, your news aggregator will need to accept feeds in one of the formats to the left.<br /><br />
If your reader supports more than one version of RSS, you should use the feed for the highest version number that it supports, since the higher versions contain more features. Chances are your reader will support either RSS or Atom, but not both. If it does support both, the choice is up to you as there is no noticeable difference between the RSS and Atom feeds.<br /><br />
Once you have determined which version to use, right-click on the appropriate link below and select Copy Link Location (for Mozilla-based browsers) or Copy Shortcut (for Internet Explorer). Then, choose the option in your news aggregator that allows you to add a new feed, and paste the URL into it.
	</span></td>
	<td class=\\"{classname}RightCell\\" valign=\\"top\\" width=\\"40%\\">
<div id=\\"css-buttons2\\">
<ul>
<li><a class=\\"css-button2 rss\\" href=\\"$link1\\" title=\\"RSS v0.9/v0.91/v0.92\\"><span>RSS&nbsp;&nbsp;&nbsp;</span> 0.9x</a></li>
<li><a class=\\"css-button2 rss\\" href=\\"$link2\\" title=\\"RSS v1.0\\"><span>RSS&nbsp;&nbsp;&nbsp;</span> 1.0</a></li>
<li><a class=\\"css-button2 rss\\" href=\\"$link3\\" title=\\"RSS v2.0\\"><span>RSS&nbsp;&nbsp;&nbsp;</span> 2.0</a></li>
<li><a class=\\"css-button2 atom\\" href=\\"$link4\\" title=\\"Atom 0.3\\"><span>Atom</span> 0.3</a></li>
</ul>
</div></td>
</tr>
</table>
</td></tr></table>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'options_menu_feedmonitor' => 
  array (
    'templategroupid' => '13',
    'user_data' => '<%if $big %>
<table cellpadding="4" cellspacing="0" class="normalTable" width="300">
<tr class="headerRow">
	<th class="headerBothCell"><a href="options.feedmonitor.php"><span class="normalfonttablehead"><b>HiveMonitor&trade; Feeds For RSS/Atom</b></span></a></th>
</tr>
<tr class="highRow" style="height: 50px;">
	<td class="highBothCell" valign="top"><span class="normalfont">Get URLs to track new email via RSS or Atom.</span></td>
</tr>
</table>
<%else%>
<td id="menuCell$i" nowrap="nowrap" align="center" class="$cellType"><span class="normalfont"><%if $sel %><b>[&nbsp;&nbsp;<%else%><a href="options.feedmonitor.php"><%endif%>HiveMonitor&trade; Feeds<%if !$sel %></a><%else%>&nbsp;&nbsp;]</b><%endif%></span></td>
<%endif%>',
    'parsed_data' => '(($big ) ? ("
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"300\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\"><a href=\\"options.feedmonitor.php{$GLOBALS[session_url]}\\"><span class=\\"normalfonttablehead\\"><b>HiveMonitor&trade; Feeds For RSS/Atom</b></span></a></th>
</tr>
<tr class=\\"highRow\\" style=\\"height: 50px;\\">
	<td class=\\"highBothCell\\" valign=\\"top\\"><span class=\\"normalfont\\">Get URLs to track new email via RSS or Atom.</span></td>
</tr>
</table>
") : ("
<td id=\\"menuCell$i\\" nowrap=\\"nowrap\\" align=\\"center\\" class=\\"$cellType\\"><span class=\\"normalfont\\">".(($sel ) ? ("<b>[&nbsp;&nbsp;") : ("<a href=\\"options.feedmonitor.php{$GLOBALS[session_url]}\\">"))."HiveMonitor&trade; Feeds".((!$sel ) ? ("</a>") : ("&nbsp;&nbsp;]</b>"))."</span></td>
"))',
    'upgraded' => '0',
  ),
  'subscriptions_planbit' => 
  array (
    'templategroupid' => '19',
    'user_data' => '<tr class="{newclassname}Row">
	<td class="{classname}LeftCell" width="60%"><span class="normalfont"><b>$plan[name]</b><br /><br />$plan[description]<br /><br />Cost: <b>$$plan[cost]</b> <%if $plan[\'length\'] == 0 %>(one-time fee)<%else%>every $plan[length] $plan[unit]<%endif%></span></td>
	<td class="{classname}RightCell" align="center"><span class="normalfont">Pay through: <select name="processors[$plan[planid]]">$procselect</select><br /><br /><input type="submit" class="bginput" value="Sign-up" onClick="this.form.planid.value = $plan[planid];" /><%if $trialok == 1 %><br /><input type="submit" class="bginput" value="Get A Free Trial" onClick="this.form.planid.value = $plan[planid]; this.form.cmd.value = \'trial\';" /></span><%endif%></td>
</tr>',
    'parsed_data' => '"<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\" width=\\"60%\\"><span class=\\"normalfont\\"><b>$plan[name]</b><br /><br />$plan[description]<br /><br />Cost: <b>$$plan[cost]</b> ".(($plan[\'length\'] == 0 ) ? ("(one-time fee)") : ("every $plan[length] $plan[unit]"))."</span></td>
	<td class=\\"{classname}RightCell\\" align=\\"center\\"><span class=\\"normalfont\\">Pay through: <select name=\\"processors[$plan[planid]]\\">$procselect</select><br /><br /><input type=\\"submit\\" class=\\"bginput\\" value=\\"Sign-up\\" onClick=\\"this.form.planid.value = $plan[planid];\\" />".(($trialok == 1 ) ? ("<br /><input type=\\"submit\\" class=\\"bginput\\" value=\\"Get A Free Trial\\" onClick=\\"this.form.planid.value = $plan[planid]; this.form.cmd.value = \'trial\';\\" /></span>") : (\'\'))."</td>
</tr>"',
    'upgraded' => '0',
  ),
  'subscriptions_trial_activate' => 
  array (
    'templategroupid' => '19',
    'user_data' => '$skin[doctype]
<html>
<head><title>$appname: Subscriptions</title>
$css
</head>
<body>
$header

<form action="options.subscription.php" method="post">
<input type="hidden" name="cmd" value="starttrial" />
<input type="hidden" name="planid" value="$planid" />
<input type="hidden" name="processor" value="$procid" />

<table cellpadding="4" cellspacing="0" width="750">
	<tr>
		<td valign="top">
			<table cellpadding="4" cellspacing="0" class="normalTable" width="150">
				<tr class="headerRow">
					<th class="headerBothCell"><span class="normalfonttablehead"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width="100%" valign="top">
<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr class="headerRow">
	<th class="headerBothCell" colspan="1"><span class="normalfonttablehead"><b>Activate Free Trial</b></span></th>
</tr>
<tr class="{newclassname}Row">
	<td class="{classname}LeftCell"><span class="normalfont"><b>$plan[name]</b><br /><br />$plan[description]<br /><br />This trial will last for $plan[triallength] $plan[triallengthunit]. After that period, it will cost $$plan[cost]<%if $plan[length] > 0 %> every $plan[length] $plan[unit]<%endif%>. You have selected to use the following payment processor for future payments: $proc.<br /><br />You may only have one free trial per account. If you are sure you wish to proceed, click the Start Trial button below.</span></td>
</tr>
</table>

<br />

<table cellpadding="4" cellspacing="0" class="normalTable" width="100%">
<tr>
	<td align="center">
		<input type="submit" class="bginput" name="submit" value="Start Trial" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$footer

</body>
</html>',
    'parsed_data' => '"{$GLOBALS[skin][doctype]}
<html>
<head><title>$appname: Subscriptions</title>
$GLOBALS[css]
</head>
<body>
$GLOBALS[header]

<form action=\\"options.subscription.php{$GLOBALS[session_url]}\\" method=\\"post\\">
<input type=\\"hidden\\" name=\\"cmd\\" value=\\"starttrial\\" />
<input type=\\"hidden\\" name=\\"planid\\" value=\\"$planid\\" />
<input type=\\"hidden\\" name=\\"processor\\" value=\\"$procid\\" />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" width=\\"750\\">
	<tr>
		<td valign=\\"top\\">
			<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"150\\">
				<tr class=\\"headerRow\\">
					<th class=\\"headerBothCell\\"><span class=\\"normalfonttablehead\\"><b>Preferences</b></span></th>
				</tr>
				$menus
			</table>
		</td>
		<td width=\\"100%\\" valign=\\"top\\">
<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr class=\\"headerRow\\">
	<th class=\\"headerBothCell\\" colspan=\\"1\\"><span class=\\"normalfonttablehead\\"><b>Activate Free Trial</b></span></th>
</tr>
<tr class=\\"{newclassname}Row\\">
	<td class=\\"{classname}LeftCell\\"><span class=\\"normalfont\\"><b>$plan[name]</b><br /><br />$plan[description]<br /><br />This trial will last for $plan[triallength] $plan[triallengthunit]. After that period, it will cost $$plan[cost]".(($plan[length] > 0 ) ? (" every $plan[length] $plan[unit]") : (\'\')).". You have selected to use the following payment processor for future payments: $proc.<br /><br />You may only have one free trial per account. If you are sure you wish to proceed, click the Start Trial button below.</span></td>
</tr>
</table>

<br />

<table cellpadding=\\"4\\" cellspacing=\\"0\\" class=\\"normalTable\\" width=\\"100%\\">
<tr>
	<td align=\\"center\\">
		<input type=\\"submit\\" class=\\"bginput\\" name=\\"submit\\" value=\\"Start Trial\\" />
	</td>
</tr>
</table>
		</td>
	</tr>
</table>

</form>

$GLOBALS[footer]

</body>
</html>"',
    'upgraded' => '0',
  ),
  'subscription_thankyoutrial' => 
  array (
    'templategroupid' => '1',
    'user_data' => 'Thank you for subscribing to $plan[name] for the trial period of $plan[triallength] $plan[triallengthunit].',
    'parsed_data' => '"Thank you for subscribing to $plan[name] for the trial period of $plan[triallength] $plan[triallengthunit]."',
    'upgraded' => '0',
  ),
);

?>