Binary files oldcal/.DS_Store and newcal/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/README newcal/README
--- oldcal/README	2005-11-23 23:28:34.000000000 -0500
+++ newcal/README	2006-04-09 21:16:26.000000000 -0400
@@ -81,6 +81,31 @@
 
 Changes:
 --------
+cvs
+2.22
+	template.php will look in templates/default if a file is missing from templates/$template
+	add support for WKST and BYPOS tags
+	change popup to not require reparsing cal files
+	differentiate cookie names for different installs on the same host
+	allow image tags in events
+	use real calendar names instead of filenames
+	Year printview
+	Added sidebar to year view
+	Modified rss/index.php
+	-bug fixes from 2.21
+		Suppress lots of warnings and notices
+		all combined selection of webcals
+		passing of webcals in calendar links
+		More items controlled by language files
+		Problem with webcals with encoded spaces in URL
+		Fixes related to various recurring event combinations
+		Fix security hole for getting template file from cookies
+2.21
+	-patched security hole
+	-bug fixes from 2.2
+		Modified rss.php to improve compatibility
+		
+	-Modified templates to validate as XHTML 1.0 Transitional
 2.2
 	-Added Apple iCal native repository support.
 	-Added support for finding calendars in subdirectories.
Binary files oldcal/calendars/.DS_Store and newcal/calendars/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/calendars/publish.ical.php newcal/calendars/publish.ical.php
--- oldcal/calendars/publish.ical.php	2004-08-30 17:20:34.000000000 -0400
+++ newcal/calendars/publish.ical.php	2006-04-02 05:32:50.000000000 -0400
@@ -49,9 +49,12 @@
 // include PHP iCalendar configuration variables
 include('../config.inc.php');
 
-// set calendar path, or just use current directory
-$calendar_path = (isset($calendar_path) && $calendar_path != '') ? $calendar_path : '';
-
+// set calendar path, or just use current directory...make sure there's a trailing slash
+if(isset($calendar_path) && $calendar_path != ''){
+	if (substr($calendar_path, -1, 1) !='/') $calendar_path = $calendar_path.'/';
+}else{
+	$calendar_path = '';
+}
 // allow/disallow publishing
 
 $phpicalendar_publishing = isset($phpicalendar_publishing) ? $phpicalendar_publishing : 0;
@@ -91,33 +94,25 @@
 	}
 	
 	// publishing
-	if($_SERVER['REQUEST_METHOD'] == 'PUT')
-	{
+	if($_SERVER['REQUEST_METHOD'] == 'PUT'){
 		// get calendar data
-		if($fp = fopen('php://input','r'))
-		{
-			while(!@feof($fp))
-			{
+		if($fp = fopen('php://input','r')){
+			while(!@feof($fp)){
 				$data .= fgets($fp,4096);
 			}
 			
 			@fclose($fp);
-		}
-		else
-		{
+		}else{
 			logmsg('unable to read input data');
 		}
 		
-		if(isset($data))
-		{
+		if(isset($data)){
 			
 			// get calendar name
 			$cal_arr = explode("\n",$data);
 			
-			foreach($cal_arr as $k => $v)
-			{
-				if(strstr($v,'X-WR-CALNAME:'))
-				{
+			foreach($cal_arr as $k => $v){
+				if(strstr($v,'X-WR-CALNAME:')){
 					$arr = explode(':',$v);
 					$calendar_name = trim($arr[1]);
 					break;
@@ -127,13 +122,10 @@
 			$calendar_name = isset($calendar_name) ? $calendar_name : 'default';
 			
 			// write to file
-			if($fp = fopen($calendar_path.$calendar_name.'.ics','w+'))
-			{
+			if($fp = fopen($calendar_path.$calendar_name.'.ics','w+')){
 				fputs($fp, $data, strlen($data) );
 				@fclose($fp);
-			}
-			else
-			{
+			}else{
 				logmsg( 'couldnt open file '.$calendar_path.$calendar_name.'.ics' );
 			}
 		}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/calendars/publish.mozilla.php newcal/calendars/publish.mozilla.php
--- oldcal/calendars/publish.mozilla.php	2004-08-19 18:12:10.000000000 -0400
+++ newcal/calendars/publish.mozilla.php	2006-04-02 05:33:07.000000000 -0400
@@ -60,9 +60,12 @@
 // include PHP iCalendar configuration variables
 include('../config.inc.php');
 
-// set calendar path, or just use current directory
-$calendar_path = (isset($calendar_path) && $calendar_path != '') ? $calendar_path : '';
-
+// set calendar path, or just use current directory...make sure there's a trailing slash
+if(isset($calendar_path) && $calendar_path != ''){
+	if (substr($calendar_path, -1, 1) !='/') $calendar_path = $calendar_path.'/';
+}else{
+	$calendar_path = '';
+}
 // allow/disallow publishing
 
 $phpicalendar_publishing = isset($phpicalendar_publishing) ? $phpicalendar_publishing : 0;
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/day.php newcal/day.php
--- oldcal/day.php	2005-11-29 21:20:32.000000000 -0500
+++ newcal/day.php	2006-04-09 21:26:02.000000000 -0400
@@ -48,11 +48,12 @@
 	'header'			=> BASE.'templates/'.$template.'/header.tpl',
 	'event_js'			=> BASE.'functions/event.js',
 	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
-    'sidebar'                       => BASE.'templates/'.$template.'/sidebar.tpl',
-    'search_box'                    => BASE.'templates/'.$template.'/search_box.tpl'
+    'sidebar'           => BASE.'templates/'.$template.'/sidebar.tpl',
+    'search_box'        => BASE.'templates/'.$template.'/search_box.tpl'
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'charset'			=> $charset,
 	'default_path'		=> '',
 	'template'			=> $template,
@@ -96,6 +97,7 @@
 	'l_week'			=> $lang['l_week'],
 	'l_month'			=> $lang['l_month'],
 	'l_year'			=> $lang['l_year'],
+	'l_pick_multiple'	=> $lang['l_pick_multiple'],
 	'l_powered_by'		=> $lang['l_powered_by'],
 	'l_subscribe'		=> $lang['l_subscribe'],
 	'l_download'		=> $lang['l_download'],
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/error.php newcal/error.php
--- oldcal/error.php	2004-10-25 13:16:08.000000000 -0400
+++ newcal/error.php	2006-04-09 21:20:31.000000000 -0400
@@ -35,7 +35,8 @@
 	));
 
 	$page->replace_tags(array(
-		'default_path'		=> $error_base,
+		'version'			=> $phpicalendar_version,
+		'default_path'		=> $default_path.'/',
 		'template'			=> $template,
 		'cal'				=> $cal,
 		'getdate'			=> $getdate,
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/calendar_functions.php newcal/functions/calendar_functions.php
--- oldcal/functions/calendar_functions.php	2005-12-14 22:26:31.000000000 -0500
+++ newcal/functions/calendar_functions.php	2006-04-09 20:49:05.000000000 -0400
@@ -196,7 +196,7 @@
 	}
 	
 	// At this point, just pull the name off the file.
-	return basename($cal_path, ".ics");
+	return str_replace(".ics", '', basename($cal_path));
 }
 
 // This function prints out the calendars available to the user, for
@@ -205,8 +205,7 @@
 //
 // $cals	= The calendars (entire path, e.g. from availableCalendars).
 function display_ical_list($cals, $pick=FALSE) {
-	global $cal, $ALL_CALENDARS_COMBINED, $current_view, $getdate, $calendar_lang, $all_cal_comb_lang;
-
+	global $cal, $ALL_CALENDARS_COMBINED, $current_view, $getdate, $calendar_lang, $all_cal_comb_lang, $cal_filelist, $cal_displaynames;
 	// Print each calendar option.
 	foreach ($cals as $cal_tmp) {
 		// Format the calendar path for display.
@@ -215,6 +214,34 @@
 		// and remove the .ics suffix.
 		$cal_displayname_tmp = getCalendarName($cal_tmp);
 		$cal_displayname_tmp = str_replace("32", " ", $cal_displayname_tmp);
+		#overwrite the display name if we already have a real name
+		if (is_numeric(array_search($cal_tmp, $cal_filelist))){
+			$cal_displayname_tmp = $cal_displaynames[array_search($cal_tmp,$cal_filelist)];
+		}else{
+			# pull the name from the $cal_tmp file
+			$ifile = @fopen($cal_tmp, "r");
+			if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $cal_tmp));
+			while (!feof($ifile)) {
+				$line = fgets($ifile, 1024);
+				$line = trim($line);
+				if (ereg ("([^:]+):(.*)", $line, $regs)){
+					$field = $regs[1];
+					$data = $regs[2];
+					$property = $field;
+					$prop_pos = strpos($property,';');
+					if ($prop_pos !== false) $property = substr($property,0,$prop_pos);
+					$property = strtoupper($property);
+					if ($property == "X-WR-CALNAME"){
+						$cal_displayname_tmp = $data;
+						break;
+					}
+				}	
+				#stop reading if we find an event or timezone before there's a name
+				if ($line == "BEGIN:VTIMEZONE" ||$line == "BEGIN:VEVENT") break;
+			}
+			echo "</pre>";
+
+		}
 
 		// If this is a webcal, add 'Webcal' to the display name.
 		if (preg_match("/^(https?|webcal):\/\//i", $cal_tmp)) {
@@ -241,7 +268,7 @@
 		// if it is a webcal. So that is how we perform the comparison when
 		// trying to figure out if this is the selected calendar.
 		if($pick) {
-			if (in_array($cal_encoded_tmp, explode(",", $cal))) {
+			if (in_array($cal_encoded_tmp, explode(",", $cal)) || count($cals) == count(explode(",", $cal))) {
 					$return .= "<option value=\"$cal_encoded_tmp\" selected=\"selected\">$cal_displayname_tmp</option>\n";
 			} else {
 					$return .= "<option value=\"$cal_encoded_tmp\">$cal_displayname_tmp</option>\n";	
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/date_functions.php newcal/functions/date_functions.php
--- oldcal/functions/date_functions.php	2005-12-02 12:18:31.000000000 -0500
+++ newcal/functions/date_functions.php	2006-04-02 05:27:13.000000000 -0400
@@ -49,16 +49,11 @@
 // that differ between them. requires dateOfWeek()
 function weekCompare($now, $then) {
 	global $week_start_day;
-	$sun_now = dateOfWeek($now, $week_start_day);
-	$sun_then = dateOfWeek($then, $week_start_day);
+	$sun_now = dateOfWeek($now, "Sunday");
+	$sun_then = dateOfWeek($then, "Sunday");
 	$seconds_now = strtotime($sun_now);
 	$seconds_then =  strtotime($sun_then);
-	$diff_seconds = $seconds_now - $seconds_then;
-	$diff_minutes = $diff_seconds/60;
-	$diff_hours = $diff_minutes/60;
-	$diff_days = round($diff_hours/24);
-	$diff_weeks = $diff_days/7;
-	
+	$diff_weeks = round(($seconds_now - $seconds_then)/(60*60*24*7));
 	return $diff_weeks;
 }
 
@@ -163,7 +158,7 @@
 }
 
 function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') {
-	global $cpath;
+	global $cpath, $master_array;
 	$event_text = stripslashes(urldecode($arr["event_text"]));
 	if (empty($start)) {
 		$title = $event_text;
@@ -176,7 +171,7 @@
 		$event_text = $matches[2];
 	} else {
 		$full_event_text = $event_text;
-		$event_text = strip_tags($event_text, '<b><i><u>');
+		$event_text = strip_tags($event_text, '<b><i><u><img>');
 	}
 
 	if (!empty($event_text)) {
@@ -188,11 +183,12 @@
 			$escaped_date = addslashes($event_date);
 			$escaped_time = addslashes($time);
 			$escaped_uid = addslashes($uid);
+			$event_data = addslashes(serialize ($master_array[$event_date][$time][$uid]));
 			// fix for URL-length bug in IE: populate and submit a hidden form on click
 			static $popup_data_index = 0;
 $return = "
     <script language=\"Javascript\" type=\"text/javascript\"><!--
-    var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid','$cpath');
+    var eventData = new EventData('$escaped_date', '$escaped_time', '$escaped_uid','$cpath','$event_data');
     document.popup_data[$popup_data_index] = eventData;
     // --></script>";
 
@@ -219,9 +215,7 @@
 	// Initialize values.
 	unset($unixtime, $date, $time, $allday);
 	
-	// What the heck is this doing in here?
-	#$data = str_replace ('/softwarestudio.org/Olson_20011030_5/', '', $data);
-
+	$allday =''; #suppress error on returning undef.
 	// Check for zulu time.
 	$zulu_time = false;
 	if (substr($data,-1) == 'Z') $zulu_time = true;
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/event.js newcal/functions/event.js
--- oldcal/functions/event.js	2005-09-07 02:08:02.000000000 -0400
+++ newcal/functions/event.js	2006-04-02 06:27:52.000000000 -0400
@@ -8,6 +8,7 @@
 	form.elements.time.value = data.time;
 	form.elements.uid.value = data.uid;
 	form.elements.cpath.value = data.cpath;
+	form.elements.event_data.value = data.event_data;
 	
 	// open a new window
 	var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275');
@@ -15,11 +16,12 @@
 	form.submit();
 }
 
-function EventData(date, time, uid, cpath) {
+function EventData(date, time, uid, cpath, event_data) {
 	this.date = date;
 	this.time = time;
 	this.uid = uid;
 	this.cpath = cpath;
+	this.event_data = event_data;
 }
 
 function openTodoInfo(vtodo_array) {	
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/ical_parser.php newcal/functions/ical_parser.php
--- oldcal/functions/ical_parser.php	2005-12-02 12:18:31.000000000 -0500
+++ newcal/functions/ical_parser.php	2006-04-10 00:20:20.000000000 -0400
@@ -58,6 +58,10 @@
 					}
 					$z++;
 				}
+				foreach ($master_array['-3'] as $temp_array) {
+					if (isset($temp_array) && $temp_array !='') $caldisplaynames[] = $temp_array;
+				}
+
 				if ($y == sizeof($cal_filelist)) {
 					if ($master_array['-1'] == 'valid cal file') {
 						$parse_file = false;
@@ -96,7 +100,7 @@
 }
 
 $calnumber = 1;
-foreach ($cal_filelist as $filename) {
+foreach ($cal_filelist as $cal_key=>$filename) {
 	
 	// Find the real name of the calendar.
 	$actual_calname = getCalendarName($filename);
@@ -104,9 +108,9 @@
 	if ($parse_file) {	
 		
 		// Let's see if we're doing a webcal
-		$is_webcal == FALSE;
+		$is_webcal = FALSE;
 		if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') {
-			$is_webcal == TRUE;
+			$is_webcal = TRUE;
 			$cal_webcalPrefix = str_replace('http://','webcal://',$filename);
 			$cal_httpPrefix = str_replace('webcal://','http://',$filename);
 			$cal_httpsPrefix = str_replace('webcal://','https://',$filename);
@@ -299,7 +303,17 @@
 					if (($start < $mArray_end) && ($start < $end)) {
 						while (($start != $end) && ($start < $mArray_end)) {
 							$start_date2 = date('Ymd', $start);
-							$master_array[($start_date2)][('-1')][$uid]= array ('event_text' => $summary, 'description' => $description, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url, 'status' => $status, 'class' => $class );
+							$master_array[($start_date2)][('-1')][$uid]= array (
+								'event_text' => $summary, 
+								'description' => $description, 
+								'location' => $location, 
+								'organizer' => serialize($organizer), 
+								'attendee' => serialize($attendee), 
+								'calnumber' => $calnumber, 
+								'calname' => $actual_calname, 
+								'url' => $url, 
+								'status' => $status, 
+								'class' => $class );
 							$start = strtotime('+1 day', $start);
 						}
 						if (!$write_processed) $master_array[($start_date)]['-1'][$uid]['exception'] = true;
@@ -327,7 +341,27 @@
 								$display_end_tmp = $end_time;
 							}
 							
-							$master_array[$start_date_tmp][$time_tmp][$uid] = array ('event_start' => $start_time_tmp, 'event_end' => $end_time_tmp, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime, 'end_unixtime' => $end_unixtime, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => 0, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => true, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url );
+							$master_array[$start_date_tmp][$time_tmp][$uid] = array (
+								'event_start' => $start_time_tmp, 
+								'event_end' => $end_time_tmp, 
+								'start_unixtime' => $start_unixtime, 
+								'end_unixtime' => $end_unixtime, 
+								'event_text' => $summary, 
+								'event_length' => $length, 
+								'event_overlap' => 0, 
+								'description' => $description, 
+								'status' => $status, 
+								'class' => $class, 
+								'spans_day' => true, 
+								'location' => $location, 
+								'organizer' => serialize($organizer), 
+								'attendee' => serialize($attendee), 
+								'calnumber' => $calnumber, 
+								'calname' => $actual_calname, 
+								'url' => $url );
+							if (isset($display_end_tmp)){
+								$master_array[$start_date_tmp][$time_tmp][$uid]['display_end'] = $display_end_tmp;
+							}
 							checkOverlap($start_date_tmp, $time_tmp, $uid);
 							$start_tmp = strtotime('+1 day',$start_tmp);
 						}
@@ -342,7 +376,27 @@
 					
 						// This if statement should prevent writing of an excluded date if its the first recurrance - CL
 						if (!in_array($start_date, $except_dates)) {
-							$master_array[($start_date)][($hour.$minute)][$uid] = array ('event_start' => $start_time, 'event_end' => $end_time_tmp1, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime, 'end_unixtime' => $end_unixtime, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => 0, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => false, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url );
+							$master_array[($start_date)][($hour.$minute)][$uid] = array (
+								'event_start' => $start_time, 
+								'event_end' => $end_time_tmp1, 
+								'start_unixtime' => $start_unixtime, 
+								'end_unixtime' => $end_unixtime, 
+								'event_text' => $summary, 
+								'event_length' => $length, 
+								'event_overlap' => 0, 
+								'description' => $description, 
+								'status' => $status, 
+								'class' => $class, 
+								'spans_day' => false, 
+								'location' => $location, 
+								'organizer' => serialize($organizer), 
+								'attendee' => serialize($attendee), 
+								'calnumber' => $calnumber, 
+								'calname' => $actual_calname, 
+								'url' => $url );
+							if (isset($display_end_tmp)){
+								$master_array[($start_date)][($hour.$minute)][$uid]['display_end'] = $display_end_tmp;
+							}
 							checkOverlap($start_date, ($hour.$minute), $uid);
 							if (!$write_processed) $master_array[($start_date)][($hour.$minute)][$uid]['exception'] = true;
 						}
@@ -373,7 +427,7 @@
 					
 					$start_date_time = strtotime($start_date);
 					$this_month_start_time = strtotime($this_year.$this_month.'01');
-					if ($current_view == 'year' || ($save_parsed_cals == 'yes' && !$is_webcal)) {
+					if ($current_view == 'year' || ($save_parsed_cals == 'yes' && !$is_webcal)|| $current_view == 'print' && $printview == 'year') {
 						$start_range_time = strtotime($this_year.'-01-01 -2 weeks');
 						$end_range_time = strtotime($this_year.'-12-31 +2 weeks');
 					} else {
@@ -409,8 +463,10 @@
 								$master_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = localizeDate($dateFormat_week,$until);
 								break;
 							case 'INTERVAL':
+								if ($val > 0){
 								$number = $val;
 								$master_array[($start_date)][($hour.$minute)][$uid]['recur'][$key] = $number;
+								}
 								break;
 							case 'BYSECOND':
 								$bysecond = $val;
@@ -487,7 +543,9 @@
 							if ($end_range_time_tmp >= $start_date_time && $start_range_time_tmp <= $end_date_time) {
 							
 								// if the beginning of our range is less than the start of the item, we may as well set it equal to it
-								if ($start_range_time_tmp < $start_date_time) $start_range_time_tmp = $start_date_time;
+								if ($start_range_time_tmp < $start_date_time){
+									$start_range_time_tmp = $start_date_time;
+								}	
 								if ($end_range_time_tmp > $end_date_time) $end_range_time_tmp = $end_date_time;
 					
 								// initialize the time we will increment
@@ -498,6 +556,9 @@
 								
 								$count_to = 0;
 								// start at the $start_range and go until we hit the end of our range.
+								if(!isset($wkst)) $wkst='SU';
+								$wkst3char = two2threeCharDays($wkst);
+
 								while (($next_range_time >= $start_range_time_tmp) && ($next_range_time <= $end_range_time_tmp) && ($count_to != $count)) {
 									$func = $freq_type.'Compare';
 									$diff = $func(date('Ymd',$next_range_time), $start_date);
@@ -512,17 +573,30 @@
 												case 'WEEKLY':
 													// Populate $byday with the default day if it's not set.
 													if (!isset($byday)) {
-														$byday[] = strtoupper(substr($daysofweekshort_lang[date('w', $start_date_time)], 0, 2));
+														$byday[] = strtoupper(substr(date('D', $start_date_time), 0, 2));
 													}
 													if (is_array($byday)) {
 														foreach($byday as $day) {
 															$day = two2threeCharDays($day);	
-															$next_date_time = strtotime($day,$next_range_time) + (12 * 60 * 60);
+															#need to find the first day of the appropriate week.
+															#dateOfweek uses weekstartday as a global variable. This has to be changed to $wkst, 
+															#but then needs to be reset for other functions
+															$week_start_day_tmp = $week_start_day;
+															$week_start_day = $wkst3char;
+															
+															$the_sunday = dateOfWeek(date("Ymd",$next_range_time), $wkst3char);
+															$next_date_time = strtotime($day,strtotime($the_sunday)) + (12 * 60 * 60);
+															$week_start_day = $week_start_day_tmp; #see above reset to global value
+															
+															#reset $next_range_time to first instance in this week.
+															if ($next_date_time < $next_range_time){ 
+																$next_range_time = $next_date_time; 
+															}
 															// Since this renders events from $next_range_time to $next_range_time + 1 week, I need to handle intervals
 															// as well. This checks to see if $next_date_time is after $day_start (i.e., "next week"), and thus
 															// if we need to add $interval weeks to $next_date_time.
 															if ($next_date_time > strtotime($week_start_day, $next_range_time) && $interval > 1) {
-																$next_date_time = strtotime('+'.($interval - 1).' '.$freq_type, $next_date_time);
+															#	$next_date_time = strtotime('+'.($interval - 1).' '.$freq_type, $next_date_time);
 															}
 															$recur_data[] = $next_date_time;
 														}
@@ -532,7 +606,35 @@
 													if (empty($bymonth)) $bymonth = array(1,2,3,4,5,6,7,8,9,10,11,12);
 													$next_range_time = strtotime(date('Y-m-01', $next_range_time));
 													$next_date_time = $next_date_time;
-													if ((isset($bymonthday)) && (!isset($byday))) {
+													if (isset($bysetpos)){
+														/* bysetpos code from dustinbutler
+														start on day 1 or last day. 
+														if day matches any BYDAY the count is incremented. 
+														SETPOS = 4, need 4th match 
+														SETPOS = -1, need 1st match 
+													 	*/ 
+													 	$year = date('Y', $next_range_time); 
+													 	$month = date('m', $next_range_time); 
+													 	if ($bysetpos > 0) { 
+													  		$next_day = '+1 day'; 
+													  		$day = 1; 
+													 	} else { 
+													  		$next_day = '-1 day'; 
+													  		$day = $totalDays[$month]; 
+													 	} 
+													 	$day = mktime(0, 0, 0, $month, $day, $year); 
+													 	$countMatch = 0; 
+													 	while ($countMatch != abs($bysetpos)) { 
+													  		/* Does this day match a BYDAY value? */ 
+													  		$thisDay = $day; 
+													  		$textDay = strtoupper(substr(date('D', $thisDay), 0, 2)); 
+													  		if (in_array($textDay, $byday)) { 
+													   			$countMatch++; 
+													  		} 
+													  		$day = strtotime($next_day, $thisDay); 
+													 	} 
+													 	$recur_data[] = $thisDay; 
+													}elseif ((isset($bymonthday)) && (!isset($byday))) {
 														foreach($bymonthday as $day) {
 															if ($day < 0) $day = ((date('t', $next_range_time)) + ($day)) + 1;
 															$year = date('Y', $next_range_time);
@@ -602,7 +704,33 @@
 														} else {
 															$year = date('Y', $next_range_time);
 														}
-
+														if (isset($bysetpos)){
+															/* bysetpos code from dustinbutler
+															start on day 1 or last day. 
+															if day matches any BYDAY the count is incremented. 
+															SETPOS = 4, need 4th match 
+															SETPOS = -1, need 1st match 
+															*/ 
+															if ($bysetpos > 0) { 
+																$next_day = '+1 day'; 
+																$day = 1; 
+															} else { 
+																$next_day = '-1 day'; 
+																$day = date("t",$month); 
+															} 
+															$day = mktime(12, 0, 0, $month, $day, $year); 
+															$countMatch = 0; 
+															while ($countMatch != abs($bysetpos)) { 
+																/* Does this day match a BYDAY value? */ 
+																$thisDay = $day;
+																$textDay = strtoupper(substr(date('D', $thisDay), 0, 2)); 
+																if (in_array($textDay, $byday)) { 
+																	$countMatch++; 
+																} 
+																$day = strtotime($next_day, $thisDay); 
+															} 
+															$recur_data[] = $thisDay; 															
+														}
 														if ((isset($byday)) && (is_array($byday))) {
 															$checkdate_time = mktime(0,0,0,$month,1,$year);
 															foreach($byday as $day) {
@@ -704,7 +832,28 @@
 															// Let's double check the until to not write past it
 															$until_check = $start_date_tmp.$time_tmp.'00';
 															if ($abs_until > $until_check) {
-																$master_array[$start_date_tmp][$time_tmp][$uid] = array ('event_start' => $start_time_tmp, 'event_end' => $end_time_tmp, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime_tmp, 'end_unixtime' => $end_unixtime_tmp, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => 0, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => true, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url, 'recur' => $recur);
+																$master_array[$start_date_tmp][$time_tmp][$uid] = array (
+																	'event_start' => $start_time_tmp, 
+																	'event_end' => $end_time_tmp, 
+																	'start_unixtime' => $start_unixtime_tmp, 
+																	'end_unixtime' => $end_unixtime_tmp, 
+																	'event_text' => $summary, 
+																	'event_length' => $length, 
+																	'event_overlap' => 0, 
+																	'description' => $description, 
+																	'status' => $status, 
+																	'class' => $class, 
+																	'spans_day' => true, 
+																	'location' => $location, 
+																	'organizer' => serialize($organizer), 
+																	'attendee' => serialize($attendee), 
+																	'calnumber' => $calnumber, 
+																	'calname' => $actual_calname, 
+																	'url' => $url, 
+																	'recur' => $recur);
+																if (isset($display_end_tmp)){
+																	$master_array[$start_date_tmp][$time_tmp][$uid]['display_end'] = $display_end_tmp;
+																}
 																checkOverlap($start_date_tmp, $time_tmp, $uid);
 															}
 															$start_tmp = strtotime('+1 day',$start_tmp);
@@ -720,7 +869,28 @@
 														// Let's double check the until to not write past it
 														$until_check = $recur_data_date.$hour.$minute.'00';
 														if ($abs_until > $until_check) {
-															$master_array[($recur_data_date)][($hour.$minute)][$uid] = array ('event_start' => $start_time, 'event_end' => $end_time_tmp1, 'display_end' => $display_end_tmp, 'start_unixtime' => $start_unixtime_tmp, 'end_unixtime' => $end_unixtime_tmp, 'event_text' => $summary, 'event_length' => $length, 'event_overlap' => 0, 'description' => $description, 'status' => $status, 'class' => $class, 'spans_day' => false, 'location' => $location, 'organizer' => serialize($organizer), 'attendee' => serialize($attendee), 'calnumber' => $calnumber, 'calname' => $actual_calname, 'url' => $url, 'recur' => $recur);
+															$master_array[($recur_data_date)][($hour.$minute)][$uid] = array (
+																'event_start' => $start_time, 
+																'event_end' => $end_time_tmp1, 
+																'start_unixtime' => $start_unixtime_tmp, 
+																'end_unixtime' => $end_unixtime_tmp, 
+																'event_text' => $summary, 
+																'event_length' => $length, 
+																'event_overlap' => 0, 
+																'description' => $description, 
+																'status' => $status, 
+																'class' => $class, 
+																'spans_day' => false, 
+																'location' => $location, 
+																'organizer' => serialize($organizer), 
+																'attendee' => serialize($attendee), 
+																'calnumber' => $calnumber, 
+																'calname' => $actual_calname, 
+																'url' => $url, 
+																'recur' => $recur);
+															if (isset($display_end_tmp)){
+																$master_array[($recur_data_date)][($hour.$minute)][$uid]['display_end'] = $display_end_tmp;
+															}
 															checkOverlap($recur_data_date, ($hour.$minute), $uid);
 														}
 													}
@@ -736,19 +906,18 @@
 				}
 
 				// This should remove any exdates that were missed.
-				// Added for version 0.9.5
+				// Added for version 0.9.5 modified in 2.22 remove anything that doesn't have an event_start
 				if (is_array($except_dates)) {
 					foreach ($except_dates as $key => $value) {
-						$time = $except_times[$key];
+						if (isset ($master_array[$value])){
+							foreach ($master_array[$value] as $time => $value2){
+								if (!isset($value2[$uid]['event_start'])){
 						unset($master_array[$value][$time][$uid]);
-						if (count($master_array[$value][$time]) < 1) {
-							unset($master_array[$value][$time]);
-							if (count($master_array[$value]) < 1) {
-								unset($master_array[$value]);	
 							}
 						}
 					}
 				}
+				}
 				
 			   // Clear event data now that it's been saved.
 			   unset($start_time, $start_time_tmp, $end_time, $end_time_tmp, $start_unixtime, $start_unixtime_tmp, $end_unixtime, $end_unixtime_tmp, $summary, $length, $description, $status, $class, $location, $organizer, $attendee);
@@ -793,7 +962,7 @@
 			default:
 		
 				unset ($field, $data, $prop_pos, $property);
-				ereg ("([^:]+):(.*)", $line, $line);
+				if (ereg ("([^:]+):(.*)", $line, $line)){
 				$field = $line[1];
 				$data = $line[2];
 				
@@ -946,6 +1115,7 @@
 					case 'X-WR-CALNAME':
 						$actual_calname = $data;
 						$master_array['calendar_name'] = $actual_calname;
+							$cal_displaynames[$cal_key] = $actual_calname; #correct the default calname based on filename
 						break;
 					case 'X-WR-TIMEZONE':
 						$calendar_tz = $data;
@@ -995,6 +1165,7 @@
 			}
 		}
 	}
+	}
 	if (!isset($master_array['-3'][$calnumber])) $master_array['-3'][$calnumber] = $actual_calname;
 	if (!isset($master_array['-4'][$calnumber]['mtime'])) $master_array['-4'][$calnumber]['mtime'] = $actual_mtime;
 	if (!isset($master_array['-4'][$calnumber]['filename'])) $master_array['-4'][$calnumber]['filename'] = $filename;
@@ -1028,6 +1199,14 @@
 	}
 }
 
+
+// Set a calender name for all calenders combined
+if ($cal == $ALL_CALENDARS_COMBINED) {
+	$calendar_name = $all_cal_comb_lang;
+}
+$cal_displayname = urldecode(implode(', ', $cal_displaynames)); #reset this with the correct names
+$template_started = getmicrotime();
+
 //If you want to see the values in the arrays, uncomment below.
 
 //print '<pre>';
@@ -1036,13 +1215,7 @@
 //print_r($day_array);
 //print_r($rrule_array);
 //print_r($recurrence_delete);
+//print_r($cal_displaynames);
+//print_r($cal_filelist);
 //print '</pre>';
-
-// Set a calender name for all calenders combined
-if ($cal == $ALL_CALENDARS_COMBINED) {
-	$calendar_name = $all_cal_comb_lang;
-}
-
-$template_started = getmicrotime();
-
 ?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/init.inc.php newcal/functions/init.inc.php
--- oldcal/functions/init.inc.php	2005-12-07 20:06:09.000000000 -0500
+++ newcal/functions/init.inc.php	2006-04-09 21:24:52.000000000 -0400
@@ -1,13 +1,13 @@
 <?php 
-
+$phpicalendar_version = '2.22';
 // uncomment when developing, comment for shipping version
-//error_reporting (E_ERROR | E_WARNING | E_PARSE);
-
+error_reporting (E_ERROR | E_WARNING | E_PARSE);
+#error_reporting(0);
 // Older versions of PHP do not define $_SERVER. Define it here instead.
-if (!isset($_SERVER) && isset($_SERVER)) {
-	$_SERVER = &$_SERVER;
+if (!isset($_SERVER) && isset($HTTP_SERVER_VARS)) {
+	$_SERVER = &$HTTP_SERVER_VARS;
 }
-
+#=================Initialize global variables=================================
 // Define some magic strings.
 $ALL_CALENDARS_COMBINED = 'all_calendars_combined971';
 
@@ -15,13 +15,16 @@
 if (!defined('BASE')) define('BASE', './');
 include_once(BASE.'config.inc.php');
 
-if (isset($_COOKIE['phpicalendar'])) {
-	$phpicalendar = unserialize(stripslashes($_COOKIE['phpicalendar']));
+$cookie_name = 'phpicalendar_'.basename($default_path);
+if (isset($_COOKIE["$cookie_name"]) && !isset($_POST['unset'])) {
+	$phpicalendar = unserialize(stripslashes($_COOKIE[$cookie_name]));
 	if (isset($phpicalendar['cookie_language'])) 	$language 			= $phpicalendar['cookie_language'];
 	if (isset($phpicalendar['cookie_calendar'])) 	$default_cal_check	= $phpicalendar['cookie_calendar'];
-	if (isset($phpicalendar['cookie_cpath'])) 		$default_cpath_check	= $phpicalendar['cookie_cpath'];
+	if (isset($phpicalendar['cookie_cpath'])) 		$default_cpath_check= $phpicalendar['cookie_cpath'];
 	if (isset($phpicalendar['cookie_view'])) 		$default_view 		= $phpicalendar['cookie_view'];
-	if (isset($phpicalendar['cookie_style'])) 		$template 			= $phpicalendar['cookie_style'];
+	if (isset($phpicalendar['cookie_style']) && is_dir(BASE.'templates/'.$phpicalendar['cookie_style'].'/')){ 
+		$template 			= $phpicalendar['cookie_style'];
+	}	
 	if (isset($phpicalendar['cookie_startday'])) 	$week_start_day		= $phpicalendar['cookie_startday'];
 	if (isset($phpicalendar['cookie_time']))		$day_start			= $phpicalendar['cookie_time'];
 }
@@ -29,20 +32,25 @@
 if ($calendar_path == '') {
 	$calendar_path = BASE.'calendars';
 }
-
-if($_REQUEST['cpath']){
+$cpath = ''; #initialize cpath to prevent later undef warnings.
+if(isset($_REQUEST['cpath'])&& $_REQUEST['cpath'] !=''){
 	$cpath 	= str_replace('..','',$_REQUEST['cpath']);				
 	$calendar_path 	.= "/$cpath";				
 	$tmp_dir 	.= "/$cpath";				
-}elseif(isset($default_cpath_check)){
+}elseif(isset($default_cpath_check) && $default_cpath_check !='' ){
 	$cpath 	= str_replace('..','',$default_cpath_check);				
 	$calendar_path 	.= "/$cpath";				
 	$tmp_dir 	.= "/$cpath";
 }
 #these need cpath to be set
+#set up specific template folder for a particular cpath
 if (isset($user_template["$cpath"])){ 
   $template = $user_template["$cpath"]; 
 }
+#set up specific webcals for a particular cpath
+if (is_array($more_webcals[$cpath])){
+	array_merge($list_webcals, $more_webcals["$cpath"]);
+}
 include_once(BASE.'error.php');
 include_once(BASE.'functions/calendar_functions.php');
 include_once(BASE.'functions/userauth_functions.php');
@@ -71,8 +79,8 @@
 $language = strtolower($language);
 $lang_file = BASE.'languages/'.$language.'.inc.php';
 
-unset($lang);
-if (include($lang_file)) {
+unset($lang); #$lang is array of phrases in appropriate language
+if (is_file($lang_file)) {
 	include($lang_file);
 } else {
 	exit(error('The requested language "'.$language.'" is not a supported language. Please use the configuration file to choose a supported language.'));
@@ -100,7 +108,7 @@
 		$_GET['cal'] = explode(',', $_GET['cal']);
 	
 	// Grab the calendar filenames off the cal value array.
-	$cal_filenames = array_map("urldecode", $_GET['cal']);
+	$cal_filenames = $_GET['cal'];
 } else {
 	if (isset($default_cal_check)) {
 		if ($default_cal_check != $ALL_CALENDARS_COMBINED) {
@@ -118,7 +126,10 @@
 		$cal_filenames[0] = $default_cal;
 	}
 }
-
+//load cal_filenames if $ALL_CALENDARS_COMBINED
+if ($cal_filenames[0] == $ALL_CALENDARS_COMBINED){
+	$cal_filenames = availableCalendars($username, $password, $ALL_CALENDARS_COMBINED);
+}
 // Separate the calendar identifiers into web calendars and local
 // calendars.
 $web_cals = array();
@@ -126,6 +137,8 @@
 foreach ($cal_filenames as $cal_filename) {
 	// If the calendar identifier begins with a web protocol, this is a web
 	// calendar.
+	$cal_filename = urldecode($cal_filename); #need to decode for substr statements to identify webcals
+	$cal_filename = str_replace(' ','%20', $cal_filename); #need to reencode blank spaces for matching with $list_webcals
 	if (substr($cal_filename, 0, 7) == 'http://' ||
 		substr($cal_filename, 0, 8) == 'https://' ||
 		substr($cal_filename, 0, 9) == 'webcal://')
@@ -136,10 +149,10 @@
 	// Otherwise it is a local calendar.
 	else {
 		// Check blacklisted.
-		if (in_array($cal_filename, $blacklisted_cals)) {
+		if (in_array($cal_filename, $blacklisted_cals)  && $cal_filename !='') {
 			exit(error($lang['l_error_restrictedcal'], $cal_filename));
 		}
-		$local_cals[] = $cal_filename;
+		$local_cals[] = urldecode(str_replace(".ics", '', basename($cal_filename)));
 	}
 }
 
@@ -204,8 +217,8 @@
 			$download_filename = $filename;
 		} elseif ($download_uri != '') {
 			$newurl = eregi_replace("^(http://)", "", $download_uri); 
-			$subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".$filename.'.ics';
-			$download_filename = $download_uri.'/'."$cpath/".$filename.'.ics';
+				$subscribe_path = 'webcal://'.$newurl.'/'."$cpath/".basename($filename);
+				$download_filename = $download_uri.'/'."$cpath/".basename($filename);
 		} else {
 			$subscribe_path = "$cpath/";
 			$download_filename = "$cpath/";
@@ -234,5 +247,20 @@
 	list($usec, $sec) = explode(' ',microtime()); 
 	return ((float)$usec + (float)$sec); 
 }
+#uncomment for diagnostics
+#echo "after init.inc.ics<pre>";
+#echo "cals";
+#print_r($cals);echo"\n\n";
+#echo "cal_filenames";
+#print_r($cal_filenames);echo"\n\n";
+#echo "web_cals";
+#print_r($web_cals);echo"\n\n";
+#echo "local_cals";
+#print_r($local_cals);echo"\n\n";
+#echo "cal_filelist";
+#print_r($cal_filelist);
+#echo "cal_displaynames";
+#print_r($cal_displaynames);
+#echo "</pre><hr>";
 
 ?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/overlapping_events.php newcal/functions/overlapping_events.php
--- oldcal/functions/overlapping_events.php	2005-05-16 14:05:29.000000000 -0400
+++ newcal/functions/overlapping_events.php	2006-03-15 19:26:59.000000000 -0500
@@ -110,7 +110,7 @@
 // Builds $overlap_array structure, and updates event_overlap in $master_array for the given events.
 function checkOverlap($event_date, $event_time, $uid) {
 	global $master_array, $overlap_array;
-
+	if (!isset($event_date)) return;
 	$event = $master_array[$event_date][$event_time][$uid];
 	// Copy out the array - we replace this at the end.
 	$ol_day_array = $overlap_array[$event_date];
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/functions/template.php newcal/functions/template.php
--- oldcal/functions/template.php	2005-12-01 01:25:09.000000000 -0500
+++ newcal/functions/template.php	2006-04-09 21:00:53.000000000 -0400
@@ -61,10 +61,11 @@
 		$loop_event		= trim($match1[1]);
 		$loop_day 		= trim($match3[1]);
 		$parse_month 	= date ("Ym", strtotime($getdate));
+		$parse_year 	= date ("Y", strtotime($getdate));
 		
 		foreach($master_array as $key => $val) {
 			preg_match ('/([0-9]{6})([0-9]{2})/', $key, $regs);
-			if ((($regs[1] == $parse_month) && ($printview == 'month')) || (($key == $getdate) && ($printview == 'day')) || ((($key >= $week_start) && ($key <= $week_end)) && ($printview == 'week'))) {
+			if ((($regs[1] == $parse_month) && ($printview == 'month')) || (($key == $getdate) && ($printview == 'day')) || ((($key >= $week_start) && ($key <= $week_end)) && ($printview == 'week')) || ((substr($regs[1],0,4) == $parse_year) && ($printview == 'year'))) {
 				$events_week++;
 				$dayofmonth = strtotime ($key);
 				$dayofmonth = localizeDate ($dateFormat_day, $dayofmonth);
@@ -864,12 +865,12 @@
 		$first_of_year 		= $minical_year."0101";
 
 		// Add links in to the month/year views.
-		$dateFormat_month = str_replace("%B", "<a class=\"ps3\" href=\"month.php?cal=$cal&amp;getdate=$first_of_month\">%B</a>", $dateFormat_month);
-		$dateFormat_month = str_replace("%Y", "<a class=\"ps3\" href=\"year.php?cal=$cal&amp;getdate=$first_of_year\">%Y</a>", $dateFormat_month);
+		$dateFormat_month_local = str_replace("%B", "<a class=\"ps3\" href=\"month.php?cal=$cal&amp;getdate=$first_of_month\">%B</a>", $dateFormat_month);
+		$dateFormat_month_local = str_replace("%Y", "<a class=\"ps3\" href=\"year.php?cal=$cal&amp;getdate=$first_of_year\">%Y</a>", $dateFormat_month_local);
 
 		//$start_day 			= strtotime($week_start_day);
 		$start_day			= strtotime(dateOfWeek($getdate, $week_start_day));
-		$month_title 		= localizeDate ($dateFormat_month, $fake_getdate_time);
+		$month_title 		= localizeDate ($dateFormat_month_local, $fake_getdate_time);
 		$month_date 		= date ('Ymd', $fake_getdate_time);
 
 		if ($type == 'small') {
@@ -907,7 +908,7 @@
 			} else {
 				$temp = $t_month[2];
 			}
-			if ($master_array[$daylink]) {
+			if (isset($master_array[$daylink])) {
 				if ($type != 'small') {
 					foreach ($master_array[$daylink] as $cal_time => $event_times) {
 						foreach ($event_times as $uid => $val) {
@@ -1026,19 +1027,32 @@
 
 	}
 
-	function Page($template = 'std.tpl') {
-		if (file_exists($template))
-			$this->page = join('', file($template));
-		else
-			die("Template file $template not found.");
-		}
+	function Page($file = 'std.tpl') {
+		global $template;
+		if (!file_exists($file)){
+			#look for it in default if not found
+			$file = str_replace("templates/$template","templates/default",$file); 
+			if (!file_exists($file)) die("Template file $file not found.");
+		}	
+		$this->page = join('', file($file));
+	}
 
 	function parse($file) {
-		ob_start();
-		include($file);
-		$buffer = ob_get_contents();
-		ob_end_clean();
-		return $buffer;
+		global $template; $lang;
+		if (basename(dirname($file)) == "$template" || $file =='./functions/event.js'){
+			if (!is_file($file)){
+				#look for it in default if not found
+				$file = str_replace("templates/$template","templates/default",$file); 
+			}
+			if (!is_file($file)){
+				exit(error($lang['l_error_path'], $file));
+			}
+			ob_start();
+			include($file);
+			$buffer = ob_get_contents();
+			ob_end_clean();
+			return $buffer;
+		}
 	}
 	
 	function replace_tags($tags = array()) {
@@ -1063,7 +1077,7 @@
 			foreach ($tags as $tag => $data) {
 				
 				// This opens up another template and parses it as well.
-				$data = (file_exists($data)) ? $this->parse($data) : $data;
+				$data = $this->parse($data);
 				
 				// This removes any unfilled tags
 				if (!$data) {
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/includes/event.php newcal/includes/event.php
--- oldcal/includes/event.php	2005-12-07 02:26:14.000000000 -0500
+++ newcal/includes/event.php	2006-04-04 02:18:26.000000000 -0400
@@ -2,7 +2,7 @@
 define('BASE', '../');
 $getdate = $_POST['date'];
 include_once(BASE.'functions/init.inc.php'); 
-include_once(BASE.'functions/ical_parser.php'); 
+#include_once(BASE.'functions/ical_parser.php'); 
 require_once(BASE.'functions/template.php');
 
 function decode_popup ($item) {
@@ -13,7 +13,8 @@
 
 
 
-$event 			= $master_array[$_POST['date']][$_POST['time']][decode_popup($_POST['uid'])];
+#$event 			= $master_array[$_POST['date']][$_POST['time']][decode_popup($_POST['uid'])];
+$event 			= unserialize(stripslashes($_POST['event_data']));
 $organizer 		= unserialize($event['organizer']);
 $attendee 		= unserialize($event['attendee']);
 
@@ -63,6 +64,18 @@
 if (sizeof($attendee) == 0) $attendee = '';
 if (sizeof($organizer) == 0) $organizer = '';
 
+switch ($event['status']){
+	case 'CONFIRMED':
+		$event['status'] =	$lang['l_status_confirmed'] ; 
+		break;
+	case 'CANCELLED':
+		$event['status'] =	$lang['l_status_cancelled'] ; 
+		break;
+	case 'TENTATIVE':
+		$event['status'] =	$lang['l_status_tentative'] ; 
+		break;
+}
+
 $page = new Page(BASE.'templates/'.$template.'/event.tpl');
 
 $page->replace_tags(array(
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/afrikaans.inc.php newcal/languages/afrikaans.inc.php
--- oldcal/languages/afrikaans.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/afrikaans.inc.php	2006-03-20 03:46:16.000000000 -0500
@@ -47,6 +47,7 @@
 $lang['l_goyear'] 			= 'Gaan na Hierdie Jaar';
 $lang['l_search'] 			= 'Soek'; // the verb
 $lang['l_results'] 			= 'Soektog Resultate';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Soek vir'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Geen aktiwiteite gevind nie';
 $lang['l_goprint'] 			= 'Drukker Vriendelik';
@@ -84,6 +85,9 @@
 $lang['l_priority_medium']	= 'Gemiddeld';
 $lang['l_priority_none']	= 'Geen';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Hangende items';
 $lang['l_unfinished']		= 'Onvoltooid';
 $lang['l_prefs_set'] 		= 'U voorkeure is bygewerk.';
@@ -176,6 +180,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/brazilian.inc.php newcal/languages/brazilian.inc.php
--- oldcal/languages/brazilian.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/brazilian.inc.php	2006-03-20 03:46:34.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear']           = 'Ir para este ano';
 $lang['l_search']			= 'Buscar'; // the verb
 $lang['l_results']			= 'Buscar Resultados';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query']			= 'Quest&atilde;o: '; // will be followed by the search query
 $lang['l_no_results']		= 'Eventos n&atilde;o encontrados';
 $lang['l_goprint']			= 'Vers&atilde;o para imprimir';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Medium';
 $lang['l_priority_none']	= 'None';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'To do items';
 $lang['l_unfinished']		= 'Unfinished';
 $lang['l_prefs_set'] 		= 'Your preferences have been set.';
@@ -171,6 +175,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/catalan.inc.php newcal/languages/catalan.inc.php
--- oldcal/languages/catalan.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/catalan.inc.php	2006-03-20 03:46:54.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear']			= 'Anar a aquest Any';
 $lang['l_search']			= 'Buscar'; // the verb
 $lang['l_results']			= 'Resultats de la cerca';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query']			= 'Consulta: '; // will be followed by the search query
 $lang['l_no_results']		= 'No s\'ha trobat cap event';
 $lang['l_goprint']			= 'Format d\'impressi&oacute;';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Mitjana';
 $lang['l_priority_none']	= 'Cap';
 $lang['l_status']			= 'Estat';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Pendent';
 $lang['l_unfinished']		= 'Sense acabar';
 $lang['l_prefs_set'] 		= 'Les teves prefer&egrave;ncies s\'han guardat.';
@@ -171,6 +175,7 @@
 $dateFormat_week_jump = '%e de %b';
 $dateFormat_month = '%B de %Y';
 $dateFormat_month_list = '%A, %e de %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/czech.inc.php newcal/languages/czech.inc.php
--- oldcal/languages/czech.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/czech.inc.php	2006-04-09 21:05:02.000000000 -0400
@@ -1,159 +1,171 @@
-<?php
+﻿<?php
 
 // Czech language include
-// For version 1.0 PHP iCalendar
+// For version 2.0 PHP iCalendar
 //
-// Translation by Whit, studio jižák (whit@studio.jizak.cz)
+// Translation by Whit, studio ji≈æ√°k (whit@studio.jizak.cz)
 //
 // Submit new translations to chad@chadsdomain.com
 
-$day_lang			= 'Den';
-$week_lang			= 'Týden';
-$month_lang			= 'Měsíc';
-$year_lang			= 'Rok';
-$calendar_lang		= 'Kalendář';
-$next_day_lang		= 'Následující den';
-$next_month_lang	= 'Následující měsíc';
-$next_week_lang		= 'Následující týden';
-$next_year_lang		= 'Příští rok';
-$last_day_lang		= 'Předchozí den';
-$last_month_lang	= 'Předchozí měsíc';
-$last_week_lang		= 'Předchozí týden';
-$last_year_lang		= 'Předchozí rok';
-$subscribe_lang		= 'Přihlaš';
-$download_lang		= 'Stáhni';
-$powered_by_lang 	= 'Powered by';
-$event_lang			= 'Událost';
-$event_start_lang	= 'Začátek';
-$event_end_lang		= 'Konec';
-$this_months_lang	= 'Tento měsíc';
-$date_lang			= 'Datum';
-$summary_lang		= 'Souhrn';
-$all_day_lang		= 'Celý den';
-$notes_lang			= 'Poznámky';
-$this_years_lang	= 'Tento rok';
-$today_lang			= 'Dnes';
-$this_week_lang		= 'Tento týden';
-$this_month_lang	= 'Tento měsíc';
-$jump_lang			= 'Jdi';
-$tomorrows_lang		= 'Zítra';
-$goday_lang			= 'Dnešek';
-$goweek_lang		= 'Tento týden';
-$gomonth_lang		= 'Tento měsíc';
-$goyear_lang		= 'Tento rok';
-$search_lang		= 'Hledej'; // the verb
-$results_lang		= 'Výsledky hledání';
-$query_lang			= 'Dotaz: '; // will be followed by the search query
-$no_results_lang	= 'Žádné nalezené záznamy';
-$goprint_lang		= 'Tisk';
-$time_lang			= 'Čas';
-$summary_lang		= 'Souhrn';
-$description_lang	= 'Popis';
-$this_site_is_lang		= 'Tato stránka je';
-$no_events_day_lang		= 'Žádné záznamy v tomto dni.';
-$no_events_week_lang	= 'Žádné záznamy v tomto týdnu.';
-$no_events_month_lang	= 'Žádné záznamy v tomto měsíci.';
-$rss_day_date			= 'G:i A';  // Lists just the time
-$rss_week_date			= '%A, %e %B';  // Lists just the day
-$rss_month_date			= '%A, %e %B';  // Lists just the day
-$rss_language			= 'cs-cz';
-$search_took_lang		= 'Hledání trvalo %s vteřin';
-$recurring_event_lang	= 'Opakující se událost';
-$exception_lang			= 'Výjimka';
-$no_query_lang			= 'Nebyl zadán dotaz';
-$preferences_lang		= 'Nastavení';
-$printer_lang			= 'Tiskárna';
-$select_lang_lang		= 'Výchozí jazyk:';
-$select_cal_lang		= 'Výchozí kalendář:';
-$select_view_lang		= 'Výchozí pohled:';
-$select_time_lang		= 'Výchozí startovní čas:';
-$select_day_lang		= 'Výchozí první den týdne:';
-$select_style_lang		= 'Výchozí styl:';
-$set_prefs_lang			= 'Ulož nastavení';
-$completed_date_lang	= 'Kompletní v';
-$completed_lang			= 'Kompletní';
-$created_lang			= 'Vytvořeno:';
-$due_lang				= 'Due:';
-$priority_lang			= 'Priorita:';
-$priority_high_lang		= 'Vysoká';
-$priority_low_lang		= 'Nízká';
-$priority_medium_lang	= 'Střední';
-$priority_none_lang		= 'Žádná';
-$status_lang			= 'Status';
-$todo_lang				= 'Seznam úkolů';
-$unfinished_lang		= 'Nedokončeno';
-$prefs_set_lang 		= 'Your preferences have been set.';
-$prefs_unset_lang 		= 'Preferences unset. Changes will take place next page load.';
-$unset_prefs_lang 		= 'Unset preferences:';
-
-// ----- New for 0.9.2
-
-$organizer_lang			= 'Organizer';
-$attendee_lang			= 'Attendee';
-$location_lang			= 'Location';
-$admin_header_lang		= 'PHP iCalendar Administration';
-$username_lang			= 'Username';
-$password_lang			= 'Password';
-$login_lang				= 'Login';
-$invalid_login_lang		= 'Wrong username or password.';
-$addupdate_cal_lang		= 'Add or Update a Calendar';
-$addupdate_desc_lang	= 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.';
-$delete_cal_lang		= 'Delete a Calendar';
-$logout_lang			= 'Logout';
-$cal_file_lang			= 'Calendar File';
-$php_error_lang			= 'PHP Error';
-$upload_error_gen_lang	= 'There was a problem with your upload.';
-$upload_error_lang[0]	= 'There was a problem with your upload.';
-$upload_error_lang[1]	= 'The file you are trying to upload is too big.';
-$upload_error_lang[2]	= 'The file you are trying to upload is too big.';
-$upload_error_lang[3]	= 'The file you are trying upload was only partially uploaded.';
-$upload_error_lang[4]	= 'You must select a file for upload.';
-$upload_error_type_lang = 'Only .ics files may be uploaded.';
-$copy_error_lang		= 'Failed to copy file';
-$delete_error_lang		= 'Failed to delete file';
-$delete_success_lang	= 'was deleted successfully.';
-$action_success_lang	= 'Your action was successful.';
-$submit_lang			= 'Submit';
-$delete_lang			= 'Delete';
+$lang['l_day']			= 'Den';
+$lang['l_week']			= 'T√Ωden';
+$lang['l_month']			= 'Mƒõs√≠c';
+$lang['l_year']			= 'Rok';
+$lang['l_calendar']		= 'Kalend√°≈ô';
+$lang['l_next_day']		= 'N√°sleduj√≠c√≠ den';
+$lang['l_next_month']	= 'N√°sleduj√≠c√≠ mƒõs√≠c';
+$lang['l_next_week'] 		= 'N√°sleduj√≠c√≠ t√Ωden';
+$lang['l_next_year'] 		= 'P≈ô√≠≈°t√≠ rok';
+$lang['l_last_day'] 		= 'P≈ôedchoz√≠ den';
+$lang['l_last_month'] 		= 'P≈ôedchoz√≠ mƒõs√≠c';
+$lang['l_last_week'] 		= 'P≈ôedchoz√≠ t√Ωden';
+$lang['l_last_year'] 		= 'P≈ôedchoz√≠ rok';
+$lang['l_subscribe'] 		= 'P≈ôihla≈°';
+$lang['l_download'] 		= 'St√°hni';
+$lang['l_powered_by'] 		= 'Powered by';
+$lang['l_event'] 			= 'Ud√°lost';
+$lang['l_event_start'] 		= 'Zaƒç√°tek';
+$lang['l_event_end'] 		= 'Konec';
+$lang['l_this_months'] 		= 'Tento mƒõs√≠c';
+$lang['l_date'] 			= 'Datum';
+$lang['l_summary'] 			= 'Souhrn';
+$lang['l_all_day'] 			= 'Cel√Ω den';
+$lang['l_notes'] 			= 'Pozn√°mky';
+$lang['l_this_years'] 		= 'Tento rok';
+$lang['l_today'] 			= 'Dnes';
+$lang['l_this_week'] 		= 'Tento t√Ωden';
+$lang['l_this_month'] 		= 'Tento mƒõs√≠c';
+$lang['l_jump'] 			= 'Jdi';
+$lang['l_tomorrows'] 		= 'Z√≠tra';
+$lang['l_goday'] 			= 'Dne≈°ek';
+$lang['l_goweek'] 			= 'Tento t√Ωden';
+$lang['l_gomonth'] 			= 'Tento mƒõs√≠c';
+$lang['l_goyear'] 			= 'Tento rok';
+$lang['l_search'] 			= 'Hledej'; // the verb
+$lang['l_results'] 			= 'V√Ωsledky hled√°n√≠';
+$lang['l_pick_multiple'] 	= 'V√Ωchoz√≠ multiple';
+$lang['l_query'] 			= 'Dotaz: '; // will be followed by the search query
+$lang['l_no_results'] 		= '≈Ω√°dn√© nalezen√© z√°znamy';
+$lang['l_goprint'] 			= 'Tisk';
+$lang['l_time'] 			= 'ƒåas';
+$lang['l_summary'] 			= 'Souhrn';
+$lang['l_description'] 		= 'Popis';
+$lang['l_this_site_is']		= 'Tato str√°nka je';
+$lang['l_no_events_day']	= '≈Ω√°dn√© z√°znamy v tomto dni.';
+$lang['l_no_events_week']	= '≈Ω√°dn√© z√°znamy v tomto t√Ωdnu.';
+$lang['l_no_events_month']	= '≈Ω√°dn√© z√°znamy v tomto mƒõs√≠ci.';
+$lang['l_rss_day_date']		= 'G:i A';  // Lists just the time
+$lang['l_rss_week_date	']	= '%A, %e %B';  // Lists just the day
+$lang['l_rss_month_date	']	= '%A, %e %B';  // Lists just the day
+$lang['l_rss_language']		= 'cs-cz';
+$lang['l_search_took']		= 'Hled√°n√≠ trvalo %s vte≈ôin';
+$lang['l_recurring_event']	= 'Opakuj√≠c√≠ se ud√°lost';
+$lang['l_exception']		= 'V√Ωjimka';
+$lang['l_no_query']			= 'Nebyl zad√°n dotaz';
+$lang['l_preferences']		= 'Nastaven√≠';
+$lang['l_printer']			= 'Tisk√°rna';
+$lang['l_select_lang']		= 'V√Ωchoz√≠ jazyk:';
+$lang['l_select_cal']		= 'V√Ωchoz√≠ kalend√°≈ô:';
+$lang['l_select_view']		= 'V√Ωchoz√≠ pohled:';
+$lang['l_select_time']		= 'V√Ωchoz√≠ startovn√≠ ƒças:';
+$lang['l_select_day']		= 'V√Ωchoz√≠ prvn√≠ den t√Ωdne:';
+$lang['l_select_style']		= 'V√Ωchoz√≠ styl:';
+$lang['l_set_prefs']		= 'Ulo≈æ nastaven√≠';
+$lang['l_completed_date']	= 'Kompletn√≠ v';
+$lang['l_completed']		= 'Kompletn√≠';
+$lang['l_created']			= 'Vytvo≈ôeno:';
+$lang['l_due']				= 'Due:';
+$lang['l_priority']			= 'Priorita:';
+$lang['l_priority_high']	= 'Vysok√°';
+$lang['l_priority_low']		= 'N√≠zk√°';
+$lang['l_priority_medium']	= 'St≈ôedn√≠';
+$lang['l_priority_none']	= '≈Ω√°dn√°';
+$lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'Konfirmovaný ' ; 
+$lang['l_status_cancelled'] = 'Odvolaný '; 
+$lang['l_status_tentative'] = 'předběžný '; 
+$lang['l_todo']				= 'Seznam √∫kol≈Ø';
+$lang['l_unfinished']		= 'Nedokonƒçeno';
+$lang['l_prefs_set'] 		= 'Your preferences have been set.';
+$lang['l_prefs_unset'] 		= 'Preferences unset. Changes will take place next page load.';
+$lang['l_unset_prefs'] 		= 'Unset preferences';
+$lang['l_organizer']		= 'Organizer';
+$lang['l_attendee']			= 'Attendee';
+$lang['l_location']			= 'Location';
+$lang['l_admin_header']		= 'PHP iCalendar Administration';
+$lang['l_username']			= 'Username';
+$lang['l_password']			= 'Password';
+$lang['l_login']			= 'Login';
+$lang['l_invalid_login']	= 'Wrong username or password.';
+$lang['l_addupdate_cal']	= 'Add or Update a Calendar';
+$lang['l_addupdate_desc']	= 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.';
+$lang['l_delete_cal']		= 'Delete a Calendar';
+$lang['l_logout']			= 'Logout';
+$lang['l_cal_file']			= 'Calendar File';
+$lang['l_php_error']		= 'PHP Error';
+$upload_error_gen_lang		= 'There was a problem with your upload.';
+$upload_error_lang[0]		= 'There was a problem with your upload.';
+$upload_error_lang[1]		= 'The file you are trying to upload is too big.';
+$upload_error_lang[2]		= 'The file you are trying to upload is too big.';
+$upload_error_lang[3]		= 'The file you are trying upload was only partially uploaded.';
+$upload_error_lang[4]		= 'You must select a file for upload.';
+$lang['l_upload_error_type'] = 'Only .ics files may be uploaded.';
+$lang['l_copy_error']			= 'Failed to copy file';
+$lang['l_delete_error']			= 'Failed to delete file';
+$lang['l_delete_success']		= 'was deleted successfully.';
+$lang['l_action_success']		= 'Your action was successful.';
+$lang['l_submit']				= 'Submit';
+$lang['l_delete']				= 'Delete';
+$all_cal_comb_lang			= 'All Combined';
+
+// New for 2.0
+$lang['l_legend']			= 'Legend';
+$lang['l_admin_subhead']	= 'Manage your calendars from this page';
+$lang['l_prefs_subhead']	= 'Sets a cookie for visiting this site';
+$lang['l_rss_info']			= 'RSS Information';
+$lang['l_rss_subhead']		= 'Basic RSS feeds available for each calendar';
+$lang['l_rss_notenabled']	= 'RSS is not enabled on this site';
 
 // - navigation
-$back_lang = 'Zpět';
-$next_lang = 'Další';
-$prev_lang = 'Předchozí';
-$day_view_lang = 'Zobraz den';
-$week_view_lang = 'Zobraz týden';
-$month_view_lang = 'Zobraz měsíc';
-$year_view_lang = 'Zobraz rok';
+$lang['l_back'] 		= 'Zpƒõt';
+$lang['l_next'] 		= 'Dal≈°√≠';
+$lang['l_prev'] 		= 'P≈ôedchoz√≠';
+$lang['l_day_view'] 	= 'Zobraz den';
+$lang['l_week_view'] 	= 'Zobraz t√Ωden';
+$lang['l_month_view'] 	= 'Zobraz mƒõs√≠c';
+$lang['l_year_view'] 	= 'Zobraz rok';
 
+// ---------------------------------
 // $format_recur, items enclosed in % will be substituted with variables
 $format_recur_lang['delimiter']	= ', ';								// ie, 'one, two, three'
 
 $format_recur_lang['yearly']		= array('rok','roky');		// for these, put singular
-$format_recur_lang['monthly']		= array('měsíc','měsíce');		// and plural forms
-$format_recur_lang['weekly']		= array('týden','týdny');		// these will be %freq%
+$format_recur_lang['monthly']		= array('mƒõs√≠c','mƒõs√≠ce');		// and plural forms
+$format_recur_lang['weekly']		= array('t√Ωden','t√Ωdny');		// these will be %freq%
 $format_recur_lang['daily']			= array('den','dny');			// in the replacement below
 $format_recur_lang['hourly']		= array('hodina','hodiny');
 $format_recur_lang['minutely']		= array('minuta','minuty');
-$format_recur_lang['secondly']		= array('vtřina','vteřiny');
+$format_recur_lang['secondly']		= array('vt≈ôina','vte≈ôiny');
 
-$format_recur_lang['start']			= 'Každý %int% %freq% %for%';	// ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5'
-$format_recur_lang['until']			= 'až do %date%';				// ie, 'until January 4'
-$format_recur_lang['count']			= '%int% krát';		// ie, 'for 5 times'
+$format_recur_lang['start']			= 'Ka≈æd√Ω %int% %freq% %for%';	// ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5'
+$format_recur_lang['until']			= 'a≈æ do %date%';				// ie, 'until January 4'
+$format_recur_lang['count']			= '%int% kr√°t';		// ie, 'for 5 times'
 
-$format_recur_lang['bymonth']		= 'V měsících: %list%';			// ie, 'In months: January, February, March'
+$format_recur_lang['bymonth']		= 'V mƒõs√≠c√≠ch: %list%';			// ie, 'In months: January, February, March'
 $format_recur_lang['bymonthday']	= 'V datech: %list%';			// ie, 'On dates: 1, 2, 3, 4'
 $format_recur_lang['byday']			= 'Ve dnech: %list%';			// ie, 'On days: Mon, Tues, Wed, Thurs'
 
 // ---------------------------------
 
-$daysofweek_lang			= array ('Neděle','Pondělí','Úterý','Středa','Čtvrtek','Pátek','Sobota');
-$daysofweekshort_lang		= array ('Ne','Po','Út','St','Čt','Pá','So');
-$daysofweekreallyshort_lang	= array ('N','P','Ú','S','Č','P','S');
-$monthsofyear_lang			= array ('Leden','Únor','Březen','Duben','Květen','Červen','Červenec','Srpen','Září','Říjen','Listopad','Prosinec');
-$monthsofyearshort_lang		= array ('Led.','Úno.','Bře.','Dub.','Kvě.','Čer.','Čec.','Srp.','Zář.','Říj.','List.','Pros.');
+$daysofweek_lang			= array ('Nedƒõle','Pondƒõl√≠','√öter√Ω','St≈ôeda','ƒåtvrtek','P√°tek','Sobota');
+$daysofweekshort_lang		= array ('Ne','Po','√öt','St','ƒåt','P√°','So');
+$daysofweekreallyshort_lang	= array ('N','P','√ö','S','ƒå','P','S');
+$monthsofyear_lang			= array ('Leden','√önor','B≈ôezen','Duben','Kvƒõten','ƒåerven','ƒåervenec','Srpen','Z√°≈ô√≠','≈ò√≠jen','Listopad','Prosinec');
+$monthsofyearshort_lang		= array ('Led.','√öno.','B≈ôe.','Dub.','Kvƒõ.','ƒåer.','ƒåec.','Srp.','Z√°≈ô.','≈ò√≠j.','List.','Pros.');
 
 // For time formatting, check out: http://www.php.net/manual/en/function.date.php
 $timeFormat = 'G:i';
+$timeFormat_small = 'g:i';
 
 // For date formatting, see note below
 $dateFormat_day = '%A, %e. %B';
@@ -162,6 +174,7 @@
 $dateFormat_week_jump = '%e. %B';// new since last translation
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e. %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about $dateFormat_*
@@ -180,13 +193,15 @@
 */
 
 // Error messages - %s will be replaced with a variable
-$error_title_lang = 'Chyba!';
-$error_window_lang = 'Chybové okno!';
-$error_calendar_lang = 'Při vytváření kalendáře „%s” se vyskytla chyba.';
-$error_path_lang = 'Nelze otevřít: "%s"';
-$error_back_lang = 'Použij tlačítko "Zpět" pro návrat.';
-$error_remotecal_lang = 'Tento server blokuje vzdálené kalendáře, které nejsou odsouhlaseny.';
-$error_restrictedcal_lang = 'Zkoušíš přistupovat k zamknutému kalendáři.';
-$error_invalidcal_lang = 'Chybný soubor. Vyber jiný kalendář.';
+$lang['l_error_title'] 			= 'Chyba!';
+$lang['l_error_window'] 		= 'Chybov√© okno!';
+$lang['l_error_calendar'] 		=	'P≈ôi vytv√°≈ôen√≠ kalend√°≈ôe ‚Äû%s‚Äù se vyskytla chyba.';
+$lang['l_error_path'] 			= 'Nelze otev≈ô√≠t: "%s"';
+$lang['l_error_back'] 			= 'Pou≈æij tlaƒç√≠tko "Zpƒõt" pro n√°vrat.';
+$lang['l_error_remotecal'] 		= 'Tento server blokuje vzd√°len√© kalend√°≈ôe, kter√© nejsou odsouhlaseny.';
+$lang['l_error_restrictedcal'] 	= 'Zkou≈°√≠≈° p≈ôistupovat k zamknut√©mu kalend√°≈ôi.';
+$lang['l_error_invalidcal'] 	= 'Chybn√Ω soubor. Vyber jin√Ω kalend√°≈ô.';
+$lang['l_error_cantopen'] 		= 'Unable to open calendar.';
+$lang['l_error_cache']			= 'Unable to write to cache directory. Please check your config.';
 
 ?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/danish.inc.php newcal/languages/danish.inc.php
--- oldcal/languages/danish.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/danish.inc.php	2006-03-20 03:47:28.000000000 -0500
@@ -165,6 +165,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/dutch.inc.php newcal/languages/dutch.inc.php
--- oldcal/languages/dutch.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/dutch.inc.php	2006-03-15 21:04:45.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear'] 			= 'Ga naar Dit Jaar';
 $lang['l_search'] 			= 'Zoeken'; // the verb
 $lang['l_results'] 			= 'Zoekresultaten';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Zoekopdracht'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Geen activiteiten gevonden';
 $lang['l_goprint'] 			= 'Makkelijk printbaar';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Gemiddeld';
 $lang['l_priority_none']	= 'Geen';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Af te werken items';
 $lang['l_unfinished']		= 'Niet afgewerkt';
 $lang['l_prefs_set'] 		= 'Uw voorkeuren zijn bewaard.';
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/english.inc.php newcal/languages/english.inc.php
--- oldcal/languages/english.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/english.inc.php	2006-03-20 01:53:24.000000000 -0500
@@ -5,7 +5,7 @@
 //
 // Translation by Chad Little (chad@chadsdomain.com)
 //
-// Submit new translations to chad@chadsdomain.com
+// Submit new translations to phpicalendar@gmail.com
 
 $lang['l_day'] 				= 'Day';
 $lang['l_week'] 			= 'Week';
@@ -43,6 +43,7 @@
 $lang['l_goyear'] 			= 'Go to This Year';
 $lang['l_search'] 			= 'Search'; // the verb
 $lang['l_results'] 			= 'Search Results';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Query'; // will be followed by the search query
 $lang['l_no_results'] 		= 'No events found';
 $lang['l_goprint'] 			= 'Printer Friendly';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Medium';
 $lang['l_priority_none']	= 'None';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'To do items';
 $lang['l_unfinished']		= 'Unfinished';
 $lang['l_prefs_set'] 		= 'Your preferences have been set.';
@@ -172,6 +176,8 @@
 $dateFormat_week_jump = '%b %e';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
+
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/esperanto.inc.php newcal/languages/esperanto.inc.php
--- oldcal/languages/esperanto.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/esperanto.inc.php	2006-03-20 03:47:46.000000000 -0500
@@ -167,6 +167,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/finnish.inc.php newcal/languages/finnish.inc.php
--- oldcal/languages/finnish.inc.php	2005-10-02 18:34:11.000000000 -0400
+++ newcal/languages/finnish.inc.php	2006-03-20 03:48:11.000000000 -0500
@@ -45,6 +45,7 @@
 $lang['l_goyear']		= 'Mene T&auml;h&auml;n Vuoteen';
 $lang['l_search']		= 'Etsi'; // the verb
 $lang['l_results']		= 'Etsinn&auml;n Tulokset';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query']		= 'Kysely'; // will be followed by the search query
 $lang['l_no_results']		= 'Tapahtumia ei l&ouml;ytynyt';
 $lang['l_goprint']		= 'Tulostettava versio';
@@ -82,6 +83,9 @@
 $lang['l_priority_medium']	= 'Keski';
 $lang['l_priority_none']	= 'Ei mit&auml;&auml;n';
 $lang['l_status']		= 'Tila';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']			= 'Teht&auml;v&auml;t:';
 $lang['l_unfinished']		= 'P&auml;&auml;ttym&auml;tt&ouml;m&auml;t';
 $lang['l_unfinished']		= 'P&auml;&auml;ttym&auml;tt&ouml;m&auml;t';
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/french.inc.php newcal/languages/french.inc.php
--- oldcal/languages/french.inc.php	2005-10-04 21:07:40.000000000 -0400
+++ newcal/languages/french.inc.php	2006-04-02 15:56:31.000000000 -0400
@@ -44,6 +44,7 @@
 $lang['l_goyear'] 			= 'Voir cette ann&eacute;e';
 $lang['l_search'] 			= 'Rechercher'; // the verb
 $lang['l_results'] 			= 'R&eacute;sultats de la recherche';
+$lang['l_pick_multiple'] 	= 'Choix multiple';
 $lang['l_query'] 			= 'Requ&egrave;te'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Aucun &eacute;v&eacute;nement trouv&eacute;';
 $lang['l_goprint'] 			= 'Version imprimable';
@@ -81,6 +82,9 @@
 $lang['l_priority_medium']	= 'Moyenne';
 $lang['l_priority_none']	= 'Aucune';
 $lang['l_status']			= 'Status:';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'T&acirc;ches &agrave; r&eacute;aliser';
 $lang['l_unfinished']		= 'Non faites';
 $lang['l_prefs_set'] 		= 'Vos pr&eacute;f&eacute;rences ont &eacute;t&eacute; modifi&eacute;es.';
@@ -174,6 +178,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/german.inc.php newcal/languages/german.inc.php
--- oldcal/languages/german.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/german.inc.php	2006-03-20 03:37:47.000000000 -0500
@@ -45,6 +45,7 @@
 $lang['l_goyear'] 			= 'Gehe zum aktuellen Jahr';
 $lang['l_search'] 			= 'Suchen'; // the verb
 $lang['l_results'] 			= 'Suchergebnisse';
+$lang['l_pick_multiple'] 	= 'Mehrfachauswahl';
 $lang['l_query'] 			= 'Suche'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Keine Eintr&auml;ge gefunden';
 $lang['l_goprint'] 			= 'Druckversion';
@@ -82,6 +83,9 @@
 $lang['l_priority_medium']	= 'mittel';
 $lang['l_priority_none']	= 'keine';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'Best&auml;tigt' ; 
+$lang['l_status_cancelled'] = 'Vorl&auml;ufig'; 
+$lang['l_status_tentative'] = 'Abgesagt'; 
 $lang['l_todo']				= 'Aufgaben';
 $lang['l_unfinished']		= 'Andauernd';
 $lang['l_prefs_set'] 		= 'Einstellungen wurden gespeichert.';
@@ -157,7 +161,7 @@
 
 // ---------------------------------
 
-$daysofweek_lang			= array ('Sonntag','Montag','Dienstag','Mittwoch','Donerstag','Freitag','Samstag');
+$daysofweek_lang			= array ('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
 $daysofweekshort_lang		= array ('Son','Mon','Die','Mit','Don','Fre','Sam');
 $daysofweekreallyshort_lang	= array ('S','M','D','M','D','F','S');
 $monthsofyear_lang			= array ('Januar','Februar','M&auml;rz','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
@@ -174,6 +178,7 @@
 $dateFormat_week_jump = ' %e. %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e. %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/italian.inc.php newcal/languages/italian.inc.php
--- oldcal/languages/italian.inc.php	2005-05-05 22:08:26.000000000 -0400
+++ newcal/languages/italian.inc.php	2006-03-20 03:37:36.000000000 -0500
@@ -45,6 +45,7 @@
 $lang['l_goyear'] 			= 'Vai a Questo Anno';
 $lang['l_search'] 			= 'Cerca'; // the verb
 $lang['l_results'] 			= 'Risultati Ricerca';
+$lang['l_pick_multiple'] 	= 'Selezione multipla';
 $lang['l_query'] 			= 'Chiave di ricerca'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Nessun evento trovato';
 $lang['l_goprint'] 			= 'Versione Stampabile';
@@ -82,6 +83,9 @@
 $lang['l_priority_medium']	= 'Media';
 $lang['l_priority_none']	= 'Nessuna';
 $lang['l_status']			= 'Stato';
+$lang['l_status_confirmed'] = 'Confermato' ; 
+$lang['l_status_cancelled'] = 'Annullato'; 
+$lang['l_status_tentative'] = 'Sperimentale'; 
 $lang['l_todo']				= 'Attivit&agrave;';
 $lang['l_unfinished']		= 'Non terminato';
 $lang['l_prefs_set'] 		= 'Le tue preferenze sono state registrate.';
@@ -174,6 +178,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/japanese.inc.php newcal/languages/japanese.inc.php
--- oldcal/languages/japanese.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/japanese.inc.php	2006-03-20 03:37:25.000000000 -0500
@@ -44,6 +44,7 @@
 $lang['l_goyear'] 			= '今年に移動';
 $lang['l_search'] 			= '検索'; // the verb
 $lang['l_results'] 			= '検索結果';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= '検索キーワード'; // will be followed by the search query
 $lang['l_no_results'] 		= '一致する予定はありませんでした。';
 $lang['l_goprint'] 			= '印刷用表示';
@@ -81,6 +82,9 @@
 $lang['l_priority_medium']	= '普通';
 $lang['l_priority_none']	= 'なし';
 $lang['l_status']			= '状態';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= '備忘録';
 $lang['l_unfinished']		= '完成されていない';
 $lang['l_prefs_set'] 		= 'Your preferences have been set.';
@@ -173,6 +177,7 @@
 $dateFormat_week_jump = '%b%e日';
 $dateFormat_month = '%Y年%B';
 $dateFormat_month_list = '%B%e日 %A';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/korean.inc.php newcal/languages/korean.inc.php
--- oldcal/languages/korean.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/korean.inc.php	2006-03-20 03:37:12.000000000 -0500
@@ -163,6 +163,7 @@
 $dateFormat_week_jump = '%b %e일';
 $dateFormat_month = '%Y년 %B';
 $dateFormat_month_list = '%B %e일, %A';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/lithuanian.inc.php newcal/languages/lithuanian.inc.php
--- oldcal/languages/lithuanian.inc.php	2004-09-06 19:05:31.000000000 -0400
+++ newcal/languages/lithuanian.inc.php	2006-03-20 03:36:59.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear'] 			= 'Pereiti į šiuos metus';
 $lang['l_search'] 			= 'Ieškoti'; // the verb
 $lang['l_results'] 			= 'Paieškos rezultatai';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Užklausa'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Neradome jokių renginių';
 $lang['l_goprint'] 			= 'Spausdinimui';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Vidutinė';
 $lang['l_priority_none']	= 'Jokia';
 $lang['l_status']			= 'Būklė';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Užduotys';
 $lang['l_unfinished']		= 'Nebaigtos';
 $lang['l_prefs_set'] 		= 'Jūsų pasirinkti nustatymai patvirtiniti.';
@@ -172,6 +176,7 @@
 $dateFormat_week_jump = '%b %e d.';
 $dateFormat_month = '%Y m. %b mėn.';
 $dateFormat_month_list = '%A, %B %e d.';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/norwegian.inc.php newcal/languages/norwegian.inc.php
--- oldcal/languages/norwegian.inc.php	2005-10-04 21:07:40.000000000 -0400
+++ newcal/languages/norwegian.inc.php	2006-03-20 03:36:48.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear'] 			= 'Vis dette &aring;ret';
 $lang['l_search'] 			= 'S&oslash;k'; // the verb
 $lang['l_results'] 			= 'S&oslash;keresultater';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Foresp&oslash;rsel: '; // will be followed by the search query
 $lang['l_no_results'] 		= 'Ingen hendelser';
 $lang['l_goprint'] 			= 'Utskriftsvennlig';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Medium';
 $lang['l_priority_none']	= 'Ingen';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Oppgaver';
 $lang['l_unfinished']		= 'Uferdig';
 $lang['l_prefs_set'] 		= 'Valgene dine har blitt lagret.';
@@ -173,6 +177,7 @@
 $dateFormat_week_jump = '%b %e';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A %e. %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/polish.inc.php newcal/languages/polish.inc.php
--- oldcal/languages/polish.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/polish.inc.php	2006-03-20 03:36:38.000000000 -0500
@@ -163,6 +163,7 @@
 $dateFormat_week_jump = '%e %B';// new since last translation
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about $dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/portuguese.inc.php newcal/languages/portuguese.inc.php
--- oldcal/languages/portuguese.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/portuguese.inc.php	2006-03-20 03:36:29.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear']           = 'Ir para este Ano';
 $lang['l_search']			= 'Buscar'; // the verb
 $lang['l_results']			= 'Buscar Resultados';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query']			= 'Quest&atilde;o: '; // will be followed by the search query
 $lang['l_no_results']		= 'Registos n&atilde;o encontrados';
 $lang['l_goprint']			= 'Vers&atilde;o para imprimir';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Medium';
 $lang['l_priority_none']	= 'None';
 $lang['l_status']			= 'Estado';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'To do items';
 $lang['l_unfinished']		= 'Unfinished';
 $lang['l_prefs_set'] 		= 'Your preferences have been set.';
@@ -171,6 +175,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %e %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/spanish.inc.php newcal/languages/spanish.inc.php
--- oldcal/languages/spanish.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/spanish.inc.php	2006-03-20 03:36:13.000000000 -0500
@@ -42,6 +42,7 @@
 $lang['l_goyear'] 			= 'Ir a este A&ntilde;o';
 $lang['l_search'] 			= 'Buscar'; // the verb
 $lang['l_results'] 			= 'Resultados de la b&uacute;squeda';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Consulta: '; // will be followed by the search query
 $lang['l_no_results'] 		= 'Ning&uacute;n evento encontrado';
 $lang['l_goprint'] 		= 'Formato de impresi&oacute;n';
@@ -79,6 +80,9 @@
 $lang['l_priority_medium']	= 'Media';
 $lang['l_priority_none']	= 'Ninguna';
 $lang['l_status']			= 'Estado';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']			= 'Por hacer';
 $lang['l_unfinished']		= 'Sin terminar';
 $lang['l_prefs_set'] 		= 'Sus preferencias han sido guardadas.';
@@ -171,6 +175,7 @@
 $dateFormat_week_jump = '%e de %b';
 $dateFormat_month = '%B de %Y';
 $dateFormat_month_list = '%A, %e de %B';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/swedish.inc.php newcal/languages/swedish.inc.php
--- oldcal/languages/swedish.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/swedish.inc.php	2006-03-20 03:35:58.000000000 -0500
@@ -43,6 +43,7 @@
 $lang['l_goyear'] 			= 'Gå till detta År';
 $lang['l_search'] 			= 'Sök'; // the verb
 $lang['l_results'] 			= 'Resultat av Sökning';
+$lang['l_pick_multiple'] 	= 'Pick multiple';
 $lang['l_query'] 			= 'Sökord'; // will be followed by the search query
 $lang['l_no_results'] 		= 'Inga kalenderhändelser funna';
 $lang['l_goprint'] 			= 'Utskriftsvänlig';
@@ -80,6 +81,9 @@
 $lang['l_priority_medium']	= 'Medium';
 $lang['l_priority_none']	= 'Ingen';
 $lang['l_status']			= 'Status';
+$lang['l_status_confirmed'] = 'CONFIRMED' ; 
+$lang['l_status_cancelled'] = 'CANCELLED'; 
+$lang['l_status_tentative'] = 'TENTATIVE'; 
 $lang['l_todo']				= 'Att göra';
 $lang['l_unfinished']		= 'Ouppklarade';
 $lang['l_prefs_set'] 		= 'Dina inställningar har sparats.';
@@ -172,6 +176,7 @@
 $dateFormat_week_jump = '%e %b';
 $dateFormat_month = '%B %Y';
 $dateFormat_month_list = '%A, %B %e';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/languages/traditional_chinese.inc.php newcal/languages/traditional_chinese.inc.php
--- oldcal/languages/traditional_chinese.inc.php	2005-05-05 22:08:27.000000000 -0400
+++ newcal/languages/traditional_chinese.inc.php	2006-03-20 03:35:43.000000000 -0500
@@ -165,6 +165,7 @@
 $dateFormat_week_jump = '%b %e 日';
 $dateFormat_month = '%Y 年 %B';
 $dateFormat_month_list = '%A, %B %e 日';
+$dateFormat_year = '%Y';
 
 /*
 Notes about dateFormat_*
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/month.php newcal/month.php
--- oldcal/month.php	2005-11-29 21:20:32.000000000 -0500
+++ newcal/month.php	2006-04-09 21:21:07.000000000 -0400
@@ -61,6 +61,7 @@
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'charset'			=> $charset,
 	'template'			=> $template,
 	'cal'				=> $cal,
@@ -103,6 +104,7 @@
 	'l_download'		=> $lang['l_download'],
 	'l_this_months'		=> $lang['l_this_months'],
 	'l_search'			=> $lang['l_search'],
+	'l_pick_multiple'	=> $lang['l_pick_multiple'],
 	'l_powered_by'		=> $lang['l_powered_by'],
 	'l_this_site_is'	=> $lang['l_this_site_is']			
 	));
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/preferences.php newcal/preferences.php
--- oldcal/preferences.php	2005-11-27 02:56:31.000000000 -0500
+++ newcal/preferences.php	2006-04-09 21:21:27.000000000 -0400
@@ -29,7 +29,7 @@
 
 if ($action == 'setcookie') { 
 	$cookie_language 	= $_POST['cookie_language'];
-   	    $cookie_cpath     	    = $_POST['cpath'];
+   	$cookie_cpath     	= $_POST['cpath'];
 	$cookie_calendar 	= $_POST['cookie_calendar'];
 	$cookie_view 		= $_POST['cookie_view'];
 	$cookie_style 		= $_POST['cookie_style'];
@@ -39,17 +39,23 @@
 	$the_cookie = array ("cookie_language" => "$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style", "cookie_time" => "$cookie_time", "cookie_cpath"=>"$cookie_cpath");
 	$the_cookie 		= serialize($the_cookie);
 	if ($cookie_unset) { 
-		setcookie("phpicalendar","$the_cookie",time()-(60*60*24*7) ,"/","$cookie_uri",0);
+		setcookie("$cookie_name","$the_cookie",time()-(60*60*24*7) ,"/","$cookie_uri",0);
 	} else {
-		setcookie("phpicalendar","$the_cookie",time()+(60*60*24*7*12*10) ,"/","$cookie_uri",0);
+		setcookie("$cookie_name","$the_cookie",time()+(60*60*24*7*12*10) ,"/","$cookie_uri",0);
+		if (isset($_POST['cookie_view'])) 
+			$default_view = $_POST['cookie_view'];
+		if (isset($_POST['cookie_style']) && is_dir(BASE.'templates/'.$_POST['cookie_style'].'/')) 
+			$template = $_POST['cookie_style'];
+		if (isset($_POST['cookie_language']) && is_file(BASE.'languages/'.strtolower($_POST['cookie_language']).'.inc.php')) 
+			include(BASE.'languages/'.strtolower($_POST['cookie_language']).'.inc.php');
 	}
-	$_COOKIE['phpicalendar'] = $the_cookie;
+	$_COOKIE[$cookie_name] = $the_cookie;
     $cpath = $cookie_cpath;
     $cal = $cookie_calendar;
 }
 
-if (isset($_COOKIE['phpicalendar'])) {
-	$phpicalendar 		= unserialize(stripslashes($_COOKIE['phpicalendar']));
+if (isset($_COOKIE[$cookie_name])) {
+	$phpicalendar 		= unserialize(stripslashes($_COOKIE[$cookie_name]));
 	$cookie_language 	= $phpicalendar['cookie_language'];
 	$cookie_calendar 	= $phpicalendar['cookie_calendar'];
 	$cookie_view 		= $phpicalendar['cookie_view'];
@@ -61,7 +67,7 @@
 	}
 }
 
-if ((!isset($_COOKIE['phpicalendar'])) || ($cookie_unset)) {
+if ((!isset($_COOKIE[$cookie_name])) || ($cookie_unset)) {
 	# No cookie set -> use defaults from config file.
 	$cookie_language = ucfirst($language);
 	$cookie_calendar = $default_cal;
@@ -99,11 +105,11 @@
 // select for calendars
 $calendar_select = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED),TRUE);
 $calendar_select .="<option value=\"$ALL_CALENDARS_COMBINED\">$all_cal_comb_lang</option>";
-
+$calendar_select = str_replace("<option value=\"$cookie_calendar\">","<option value=\"$cookie_calendar\" selected='selected'>",$calendar_select);
 // select for dayview
-$view_select 	= ($cookie_view == 'day') ? '<option value="day" selected="selected">{L_DAY}</option>' : '<option value="day">{L_DAY}</option>';
-$view_select    .= ($cookie_view == 'week') ? '<option value="week" selected="selected">{L_WEEK}</option>' : '<option value="week">{L_WEEK}</option>';
-$view_select    .= ($cookie_view == 'month') ? '<option value="month" selected="selected">{L_MONTH}</option>' : '<option value="month">{L_MONTH}</option>';
+$view_select 	= ($default_view == 'day') ? '<option value="day" selected="selected">{L_DAY}</option>' : '<option value="day">{L_DAY}</option>';
+$view_select    .= ($default_view == 'week') ? '<option value="week" selected="selected">{L_WEEK}</option>' : '<option value="week">{L_WEEK}</option>';
+$view_select    .= ($default_view == 'month') ? '<option value="month" selected="selected">{L_MONTH}</option>' : '<option value="month">{L_MONTH}</option>';
 
 // select for time
 for ($i = 000; $i <= 1200; $i += 100) {
@@ -129,7 +135,7 @@
 $dir_handle = @opendir(BASE.'templates/');
 while ($file = readdir($dir_handle)) {
 	if (($file != ".") && ($file != "..") && ($file != "CVS")) {
-		if (!is_file($file)) {
+		if (is_dir(BASE.'templates/'.$file)) {
 			$file_disp = ucfirst($file);
 			$style_select .= ($file == "$cookie_style") ? "<option value=\"$file\" selected=\"selected\">$file_disp</option>\n" : "<option value=\"$file\">$file_disp</option>\n";
 		}
@@ -148,6 +154,7 @@
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'charset'			=> $charset,
 	'template'			=> $template,
 	'default_path'		=> '',
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/print.php newcal/print.php
--- oldcal/print.php	2005-12-01 01:25:09.000000000 -0500
+++ newcal/print.php	2006-04-09 21:36:20.000000000 -0400
@@ -1,18 +1,16 @@
 <?php
 	
 define('BASE', './');
-require_once(BASE.'functions/ical_parser.php');
-require_once(BASE.'functions/list_functions.php');
-require_once(BASE.'functions/template.php');
-header("Content-Type: text/html; charset=$charset");
-
+require_once(BASE.'functions/date_functions.php');
+require_once(BASE.'functions/init.inc.php');
+$current_view 		='print';
 $start_week_time 	= strtotime(dateOfWeek($getdate, $week_start_day));
 $end_week_time 		= $start_week_time + (6 * 25 * 60 * 60);
 $parse_month 		= date ("Ym", strtotime($getdate));
-$cal_displayname 	= str_replace("32", " ", $cal);
 $events_week 		= 0;
 $unix_time 			= strtotime($getdate);
-if (!$printview)	$printview = $_GET['printview'];
+$printview = 'month';
+if (isset($_GET['printview']))	$printview = $_GET['printview'];
 
 if ($printview == 'day') {
 	$display_date 	= localizeDate ($dateFormat_day, strtotime($getdate));
@@ -34,7 +32,18 @@
 	$prev 			= date("Ymd", strtotime("-1 month", $unix_time));
 	$week_start		= '';
 	$week_end		= '';
+} elseif ($printview == 'year') {
+	$display_date 	= localizeDate ($dateFormat_year, strtotime($getdate));
+	$next 			= date("Ymd", strtotime("+1 year", $unix_time));
+	$prev 			= date("Ymd", strtotime("-1 year", $unix_time));
+	$week_start		= '';
+	$week_end		= '';
 }
+require_once(BASE.'functions/ical_parser.php');
+require_once(BASE.'functions/list_functions.php');
+require_once(BASE.'functions/template.php');
+header("Content-Type: text/html; charset=$charset");
+
 
 $page = new Page(BASE.'templates/'.$template.'/print.tpl');
 
@@ -45,6 +54,7 @@
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'event_js'			=> '',
 	'charset'			=> $charset,
 	'default_path'		=> '',
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/rss/index.php newcal/rss/index.php
--- oldcal/rss/index.php	2005-11-23 02:51:01.000000000 -0500
+++ newcal/rss/index.php	2006-04-09 21:22:24.000000000 -0400
@@ -1,82 +1,112 @@
-<?php
-
-define('BASE','../');
-require_once(BASE.'functions/ical_parser.php');
-require_once(BASE.'functions/calendar_functions.php');
-
-if ($enable_rss != 'yes') {
-	exit(error('RSS is not available for this installation.', $cal, '../'));
-}
-
-if (empty($default_path)) {
-	if (isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on' ) {
-		$default_path = 'https://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/'));
-	} else {
-		$default_path = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/'));
-	}
-}
-
-$current_view = "rssindex";
-$display_date = "RSS Info";
-
-$filelist = availableCalendars($username, $password, $ALL_CALENDARS_COMBINED);
-foreach ($filelist as $file) {
-	// $cal_filename is the filename of the calendar without .ics
-	// $cal is a urlencoded version of $cal_filename
-	// $cal_displayname is $cal_filename with occurrences of "32" replaced with " "
-
-	if (substr($file, 0, 7) == 'http://' || substr($file, 0, 8) == 'https://' || substr($file, 0, 9) == 'webcal://') {
-		$cal_tmp = urlencode($file);
-	}else{
-		$cal_tmp = getCalendarName($file);	
-	}
-	$cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp);
-	$rss_list .= '<font class="V12" color="blue"><b>'.$cal_displayname_tmp.' '. $calendar_lang.'</b></font><br />';
-	$rss_list .= $default_path.'/rss/rss.php?cal='.$cal_tmp.'&amp;cpath='.$cpath.'&amp;rssview=day<br />';
-	$rss_list .= $default_path.'/rss/rss.php?cal='.$cal_tmp.'&amp;cpath='.$cpath.'&amp;rssview=week<br />';
-	$rss_list .= $default_path.'/rss/rss.php?cal='.$cal_tmp.'&amp;cpath='.$cpath.'&amp;rssview=month<br /><br />';
-	$footer_check = $default_path.'/rss/rss.php?cal='.$default_cal.'&amp;rssview='.$default_view;
-}
-
-
-$page = new Page(BASE.'templates/'.$template.'/rss_index.tpl');
-
-$page->replace_files(array(
-	'header'			=> BASE.'templates/'.$template.'/header.tpl',
-	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
-	'event_js'			=> ''
-	));
-
-$page->replace_tags(array(
-	'default_path'		=> $default_path.'/',
-	'template'			=> $template,
-	'cal'				=> $cal,
-	'getdate'			=> $getdate,
-	'calendar_name'		=> $calendar_name,
-	'display_date'		=> $display_date,
-	'current_view'		=> $current_view,
-	'sidebar_date'		=> $sidebar_date,
-	'rss_powered'	 	=> $rss_powered,
-	'rss_list'	 		=> $rss_list,
-	'charset'	 		=> $charset,
-	'rss_available' 	=> '',
-	'rssdisable'	 	=> '',
-	'rss_valid' 		=> '',
-	'show_search' 		=> $show_search,
-	'l_rss_info'		=> $lang['l_rss_info'],
-	'l_rss_subhead'		=> $lang['l_rss_subhead'],
-	'l_day'				=> $lang['l_day'],
-	'l_week'			=> $lang['l_week'],
-	'l_month'			=> $lang['l_month'],
-	'l_year'			=> $lang['l_year'],
-	'l_subscribe'		=> $lang['l_subscribe'],
-	'l_download'		=> $lang['l_download'],
-	'l_this_months'		=> $lang['l_this_months'],
-	'l_powered_by'		=> $lang['l_powered_by'],
-	'l_this_site_is'	=> $lang['l_this_site_is']				
-	));
-
-$page->output();
-								
-								
-?>
+<?php
+
+/* Rewritten by J. Hu 4/2/06
+*/
+
+define('BASE','../');
+require_once(BASE.'functions/ical_parser.php');
+require_once(BASE.'functions/calendar_functions.php');
+
+if ($enable_rss != 'yes') {
+	exit(error($lang['l_rss_notenabled'], $cal, '../'));
+}
+
+if (empty($default_path)) {
+	if (isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'on' ) {
+		$default_path = 'https://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/'));
+	} else {
+		$default_path = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],'/rss/'));
+	}
+}
+
+$current_view = "rssindex";
+$display_date = "RSS Info";
+
+$rss_list = "<table>\n";
+$xml_icon ="<img src = 'xml.gif' alt='xml'>";
+
+$filelist = availableCalendars($username, $password, $ALL_CALENDARS_COMBINED);
+foreach ($filelist as $file) {
+	// $cal_filename is the filename of the calendar without .ics
+	// $cal is a urlencoded version of $cal_filename
+	// $cal_displayname is $cal_filename with occurrences of "32" replaced with " "
+
+	if (is_numeric(array_search($file, $cal_filelist))){
+		$cal_displayname_tmp = $cal_displaynames[array_search($file,$cal_filelist)];
+	}else{
+		$cal_displayname_tmp = str_replace("32", " ", str_replace(".ics",'',basename($file)));
+	}	
+	$rss_list .= '<tr><td rowspan ="3"><font class="V12" color="blue"><b>'.$cal_displayname_tmp.' '. $lang['l_calendar'].'</b></font></td>';
+
+/* Changed to show links without urlencode, but links valid urls */
+	$rss_list .= "<td>".$lang['l_day']."</td>";
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=day>'.$xml_icon.'</a> RSS 0.91</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss1.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=day>'.$xml_icon.'</a> RSS 1.0</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss2.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=day>'.$xml_icon.'</a> RSS 2.0</td></tr>';
+
+	$rss_list .= "<td>".$lang['l_week']."</td>";
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=week>'.$xml_icon.'</a> RSS 0.91</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss1.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=week>'.$xml_icon.'</a> RSS 1.0</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss2.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=week>'.$xml_icon.'</a> RSS 2.0</td></tr>';
+
+	$rss_list .= "<td>".$lang['l_month']."</td>";
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=month>'.$xml_icon.'</a> RSS 0.91</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss1.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=month>'.$xml_icon.'</a> RSS 1.0</td>';
+	$rss_list .= '<td><a href='.$default_path.'/rss/rss2.0.php?cal='.rawurlencode($file).'&amp;cpath='.$cpath.'&amp;rssview=month>'.$xml_icon.'</a> RSS 2.0</td></tr>';
+
+	$footer_check = $default_path.'/rss/rss.php?cal%3D'.rawurlencode($file.'&amp;cpath='.$cpath.'&amp;rssview='.$default_view);
+	$validrss_check = str_replace('%', '%25', $footer_check);
+	$rss_list .= "<tr><td>&nbsp;</td></tr>\n";
+
+}
+$rss_list .= "</table>\n";
+
+
+/* End link modification */
+
+
+$page = new Page(BASE.'templates/'.$template.'/rss_index.tpl');
+
+$page->replace_files(array(
+	'header'			=> BASE.'templates/'.$template.'/header.tpl',
+	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
+	'event_js'			=> ''
+	));
+
+$page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
+	'default_path'		=> $default_path.'/',
+	'template'			=> $template,
+	'cal'				=> $cal,
+	'getdate'			=> $getdate,
+	'calendar_name'		=> $calendar_name,
+	'display_date'		=> $display_date,
+	'current_view'		=> $current_view,
+	'sidebar_date'		=> $sidebar_date,
+	'rss_powered'	 	=> $rss_powered,
+	'rss_list'	 		=> $rss_list,
+	'charset'	 		=> $charset,
+	'rss_available' 	=> '',
+	'rssdisable'	 	=> '',
+	'rss_valid' 		=> '',
+	'rss_docinfo'		=> "RSS feeds can also be set up for a specified number of days before or after a given date, or between two dates.  See the <a href='http://phpicalendar.net/documentation/index.php/RSS_feeds'>documentation</a> for how to set up the URLs",
+/* Replaces footer.tpl {validrss_check} with $validrss_check */	
+	'validrss_check'	=> $validrss_check,
+	'show_search' 		=> $show_search,
+	'l_rss_info'		=> $lang['l_rss_info'],
+	'l_rss_subhead'		=> $lang['l_rss_subhead'],
+	'l_day'				=> $lang['l_day'],
+	'l_week'			=> $lang['l_week'],
+	'l_month'			=> $lang['l_month'],
+	'l_year'			=> $lang['l_year'],
+	'l_subscribe'		=> $lang['l_subscribe'],
+	'l_download'		=> $lang['l_download'],
+	'l_this_months'		=> $lang['l_this_months'],
+	'l_powered_by'		=> $lang['l_powered_by'],
+	'l_this_site_is'	=> $lang['l_this_site_is']				
+	));
+
+$page->output();
+								
+								
+?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/rss/rss.php newcal/rss/rss.php
--- oldcal/rss/rss.php	2005-11-30 12:05:56.000000000 -0500
+++ newcal/rss/rss.php	2006-04-09 20:51:49.000000000 -0400
@@ -1,235 +1,256 @@
-<?php
-
-/********************************************************************************
-*	Modified from phpicalendar 2.0a distribution by Jim Hu
-*	philosophical changes 
-*		- instead of having separate generators, use a date range for all views (done)
-*		- change the rss generation method to conform to standards(not done)
-*	PHP note: #@ is error control operator to suppress execution halt on error
-*		- used below to deal with undef?
-*
-*	using rssview, RSS feeds can be specified to return events for a given day, week, month, or year 
-*	feeds can be specified for a number of days to or from a given date
-*	feeds can be specified for a range of dates
-*
-*********************************************************************************/
-define('BASE', '../');
-include(BASE.'functions/init.inc.php');
-
-include_once(BASE.'functions/date_functions.php');
-
-
-//set the range of days to return based on the view chosen
-$rssview = $_GET['rssview'];
-if (isset($_GET['getdate']) && $_GET['getdate'] !=''){
-	$getdate = $_GET['getdate'];
-}else{
-	$getdate = date("Ymd");
-}
-
-switch ($rssview){
-	case 'day':
-		$fromdate = $getdate;
-		$todate = $getdate;
-		$theview = $lang['l_day'];
-		break;
-	case 'week':
-		$fromdate = dateOfWeek($getdate, $week_start_day);
-		$todate = $fromdate + 6;
-		$theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate));
-		break;
-	case 'month':
-		$parse_month = date ("Ym", strtotime($getdate));
-		$fromdate = ($parse_month *100) + 1;
-		$nextmonth = ($parse_month +1) * 100;   #should give the 0th day of following month
-		$todate = date('Ymd',strtotime($nextmonth));	
-		$theview = date('M Y',strtotime($fromdate));
-		break;
-	case 'year':
-		if(isset($_GET['year'])){
-			$theyear = $_GET['year'];
-		}else{
-			$theyear = date('Y');
-		}
-		$fromdate = ($theyear*10000)+101;	
-		$todate = date("Ymd", strtotime($fromdate) + 365*60*60*24);
-		$theview = $theyear;
-		break;
-	case 'daysfrom':
-		$fromdate = $getdate;
-		$todate = date("Ymd", strtotime($getdate) + $_GET['days']*60*60*24);
-		#print "from:$fromdate to: $todate<br>";
-		$theview = $_GET['days']." days from ".date('n/d/Y',strtotime($fromdate));
-		break;
-	case 'daysto':
-		$todate = $getdate;
-		$fromdate = date("Ymd", strtotime($getdate) - $_GET['days']*60*60*24);
-		#print "from:$fromdate to: $todate<br>";
-		$theview = $_GET['days']." days before ".date('n/d/Y',strtotime($todate));
-		break;
-	case 'range':
-		if(isset($_GET['from'])){
-		$fromdate = $_GET['from'];
-		}else{
-			$fromdate = $getdate;
-		}
-		$todate = $_GET['to'];
-		$theview = date('n/d/Y',strtotime($fromdate)).'-'.date('n/d/Y',strtotime($todate));
-		break;
-	default:
-		#default to week
-		$fromdate = dateOfWeek($getdate, $week_start_day);
-		$todate = $fromdate + 6;
-		$theview = "";
-
-}
-#need to give ical_parser the most distant date to correctly set up master_array.
-$getdate = $todate;
-#echo "from:$fromdate to:$todate";
-include(BASE.'functions/ical_parser.php');
-if ($enable_rss != 'yes') {
-	die ("RSS feeds are not enabled on this site.");
-}
-
-//Set calendar or calendar directory name for feed
-//Note that this depends on other modifications I've made to 
-//allow phpicalendar to use calendar subdirectories - see bbs
-
-$cal_displayname = urldecode($cal);
-if ($cal == $ALL_CALENDARS_COMBINED) {
-	$temp = explode("/",$calendar_path);
-	$cal_displayname = str_replace("32"," ",ucfirst(array_pop($temp)));
-}
-
-$events_count = 0;
-
-// calculate a value for Last Modified and ETag
-if ($cal == $ALL_CALENDARS_COMBINED) {
-	$filemod = filemtime("$calendar_path");
-}else{
-	$filemod = filemtime("$calendar_path/$cal.ics");
-}	
-$filemodtime = date("r", $filemod);
-
-//send relevant headers
-header ("Last-Modified: $filemodtime");
-header ("ETag:\"$filemodtime\"");
-
-// checks the user agents headers to see if they kept track of our
-// stuff, if so be nice and send back a 304 and exit.
-
-if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime))
-{
-	header ("HTTP/1.1 304 Not Modified");
-	exit;
-}
-
-//If client needs new feed - make the header
-$rss = 	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"."\n";
-$rss .= '<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">'."\n";
-$rss .= '<rss version="0.91">'."\n";
-$rss .= '<channel>'."\n";
-$rss .= '<title>'.$cal_displayname;
-if ($theview !=""){$rss .= ' - '.$theview;} 
-$rss .= "</title>\n";
-$rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
-$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
-$rss .= '<language>'.$rss_language.'</language>'."\n";
-$rss .= '<copyright>Copyright '.date(Y).', '.htmlspecialchars ("$default_path").'</copyright>'."\n";
-
-//generate the items
-$numdays = round((strtotime($todate) - strtotime($fromdate))/(60*60*24)-1);
-$thisdate = $fromdate; 	#	start at beginning of date range, 
-						# 	note that usage of $thisdate is different from distribution
-						# 	I use it as a date, dist uses it as a time
-$i = 0;  #day counter
-$uid_arr = array();
-	do {
-	$thisdate=date('Ymd', strtotime($thisdate));
-	#echo "Date: $thisdate<br>\n";
-	$dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate));
-	if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) {
-		foreach ($master_array[("$thisdate")] as $event_times) {
-			foreach ($event_times as $uid=>$val) {
-				#handle multiday all day events
-				if(!$val["event_start"]){
-					if (isset($uid_arr[$uid])){
-						$uid_arr[$uid] .= "+$dayofweek" ;
-						continue;
-					}else{
-						$uid_arr[$uid] = "$dayofweek" ;
-					}
-					$event_start = $lang['l_all_day'];
-				}else{	
-					$event_start 	= @$val["event_start"];	
-					$event_start 	= date ($timeFormat, @strtotime ("$event_start"));
-				}	
-				$event_text 	= stripslashes(urldecode($val["event_text"]));
-				$event_text 	= strip_tags($event_text, '<b><i><u>');
-				$event_text		= str_replace('&','&amp;',$event_text);
-				$event_text		= str_replace('&amp;amp;','&amp;',$event_text);
-				$event_text		= urlencode($event_text);
-			#uncomment for shorter event text with ...
-			#	$event_text 	= word_wrap($event_text, 21, $tomorrows_events_lines); 		
-				$description 	= stripslashes(urldecode($val["description"]));
-				$description 	= strip_tags($description, '<b><i><u>');
-				$description		= str_replace('&','&amp;',$description);
-				$description		= str_replace('&amp;amp;','&amp;',$description);
-
-
-				$rss_title		= htmlspecialchars ("$dayofweek: $event_text");
-				$rss_link		= htmlspecialchars ("$default_path/day.php?getdate=$thisdate&cal=$cal&cpath=$cpath");
-				$rss_description	= htmlspecialchars ("$dayofweek $event_start: $description");
-				
-				$rss .= '<item>'."\n";
-				$rss .= '<uid>'.$uid.'</uid>'."\n";
-				$rss .= '<event_start>'.$event_start.'</event_start>'."\n";
-				$rss .= '<title>'.$rss_title.'</title>'."\n";
-				/* custom stuff for Jim Hu's RSS feeds. Deprecated
-				$rss .= '<seminardate>'.$dayofweek.'</seminardate>'."\n";
-				$rss .= '<seminarspeaker>'.$event_text.'</seminarspeaker>'."\n";
-				$rss .= '<seminartitle>'.$description.'</seminartitle>'."\n";
-				$rss .= '<tagged>'.$val["description"].'</tagged>'."\n";
-				$rss .= '<seminarhost>'.$val['attendee'].'</seminarhost>'."\n";
-				$rss .= '<organizer>'.$val['organizer'].'</organizer>'."\n";
-				$rss .= '<status>'.$val['status'].'</status>'."\n";
-				*/
-				$rss .= '<link>'.$rss_link.'</link>'."\n";
-				$rss .= '<description>'.$rss_description.'</description>'."\n";
-				$location		= str_replace('&','&amp;',$val['location']);
-				$location		= str_replace('&amp;amp;','&amp;',$location);
-				$rss .= '<location>'.$location.'</location>';
-				$rss .= '</item>'."\n";
-				$events_count++;
-			}
-		}
-	}
-	if (($events_count < 1) && ($i == $numdays)) {
-		$rss .= '<item>'."\n";
-		$rss .= '<title>No events found</title>'."\n";
-		$rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
-		$rss .= '</item>'."\n";
-	}
-	$thisdate++;
-	$i++;	
-	} while ($i <= $numdays);
-
-$rss .= '</channel>'."\n";
-$rss .= '</rss>'."\n";
-
-foreach ($uid_arr as $uid=>$date_range){
-	#echo "date_range:$date_range<br>";
-
-	if(strpos($date_range,"+")>0){
-		#echo "+ in date_range<br>";
-		$temp = explode("+",$date_range);
-		$date_range = $temp[0].'-'.array_pop($temp);
-	}
-	$rss = str_replace("<uid>$uid</uid>\n<event_start>".$lang['l_all_day']."</event_start>","<uid>$uid</uid>\n<event_start>$date_range</event_start>", $rss);
-
-}
-header ("Content-Type: text/xml");
-
-echo "$rss";
-
-?>
+<?php
+
+/********************************************************************************
+*	Modified from phpicalendar 2.0a distribution by Jim Hu
+*	philosophical changes 
+*		- instead of having separate generators, use a date range for all views (done)
+*		- change the rss generation method to conform to standards(not done)
+*	PHP note: #@ is error control operator to suppress execution halt on error
+*		- used below to deal with undef?
+*
+*	using rssview, RSS feeds can be specified to return events for a given day, week, month, or year 
+*	feeds can be specified for a number of days to or from a given date
+*	feeds can be specified for a range of dates
+*
+*********************************************************************************/
+
+/* Modified from 2.21 by dyfrin 2006/03/08 19:09:28
+   Changes:
+   -RSS changed to 2.0, encoding removed, languages converted to ISO standard for feeds
+   -RSS title changed to be set by config.inc.php.  Make sure that is added to it. 
+   Lines modified: 135-165, 208-223
+   Additional mods by J. Hu
+*/
+   
+define('BASE', '../');
+require(BASE.'functions/init.inc.php');
+
+if ($enable_rss != 'yes') {
+	die ("RSS feeds are not enabled on this site.");
+}
+
+include_once(BASE.'functions/date_functions.php');
+
+
+//set the range of days to return based on the view chosen
+$rssview = $_GET['rssview'];
+if (isset($_GET['getdate']) && $_GET['getdate'] !=''){
+	$getdate = $_GET['getdate'];
+}else{
+	$getdate = date("Ymd");
+}
+# for all views, $fromdate is the first day to be shown and $todate should be the last day.
+switch ($rssview){
+	case 'day':
+		$fromdate = $getdate;
+		$todate = $getdate;
+		$theview = $lang['l_day'];
+		break;
+	case 'week':
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'month':
+		$parse_month = date ("Ym", strtotime($getdate));
+		$fromdate = ($parse_month *100) + 1;
+		$todate = ($parse_month *100) + date("t",strtotime($getdate));
+		$theview = date('M Y',strtotime($fromdate));
+		break;
+	case 'year':
+		if(isset($_GET['year'])){
+			$theyear = $_GET['year'];
+		}else{
+			$theyear = substr($getdate,0,4);
+		}
+		$fromdate = ($theyear*10000)+101;	
+		$todate = date("Ymd", strtotime($theyear*10000+1231));
+		$theview = $theyear;
+		break;
+	case 'daysfrom':
+		$fromdate = $getdate;
+		$todate = date("Ymd", strtotime($getdate) + $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days from ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'daysto':
+		$todate = $getdate;
+		$fromdate = date("Ymd", strtotime($getdate) - $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days before ".date('n/d/Y',strtotime($todate));
+		break;
+	case 'range':
+		if(isset($_GET['from'])){
+		$fromdate = $_GET['from'];
+		}else{
+			$fromdate = $getdate;
+		}
+		$todate = $_GET['to'];
+		$theview = date('n/d/Y',strtotime($fromdate)).'-'.date('n/d/Y',strtotime($todate));
+		break;
+	default:
+		#default to week
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = "";
+
+}
+#need to give ical_parser the most distant date to correctly set up master_array.
+$getdate = $todate;
+#echo "from:$fromdate to:$todate";
+
+#Note that ical_parser supplies cal_displayname.
+include(BASE.'functions/ical_parser.php');
+
+$events_count = 0;
+
+// calculate a value for Last Modified and ETag
+$cal = implode(",",$cals);
+
+//get filemtime from master array
+$filemod = 0; #default to start of unix era, overwrite with most recent mtime from master array
+foreach ($master_array['-4'] as $calinfo){
+	if ($calinfo['mtime'] > $filemod) $filemod = $calinfo['mtime']; 
+}	
+$filemodtime = date("r", $filemod);
+
+//send relevant headers
+header ("Last-Modified: $filemodtime");
+header ("ETag:\"$filemodtime\"");
+
+// checks the user agents headers to see if they kept track of our
+// stuff, if so be nice and send back a 304 and exit.
+
+if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime)){
+	header ("HTTP/1.1 304 Not Modified");
+	exit;
+}
+
+/* Change languages to ISO 639-1 to validate RSS without changing long version in config.inc.php */
+$user_language = array ("english", "polish", "german", "french", "dutch", "italian", "japanese", "norwegian", "spanish",  "swedish", "portuguese", "catalan", "traditional_chinese", "esperanto", "korean");
+$iso_language = array ("en", "pl", "de", "fr", "nl", "da", "it", "ja", "no", "es", "sv", "pt", "ca", "zh-tw", "eo", "ko");
+$rss_language = str_replace($user_language, $iso_language, $language);
+/* End language modification */
+
+$rss = 	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"."\n";
+
+/* Use 1.0 and strip encoding, use rss_language */
+$rss .= 	'<rdf:RDF 
+	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+	xmlns:ev="http://purl.org/rss/1.0/modules/event/"
+	xmlns:dc="http://purl.org/dc/elements/1.1/"
+	xmlns="http://purl.org/rss/1.0/">'."\n";
+
+$rss .= '<channel rdf:about="'.$default_path.'/rss/rss.php/';
+if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
+$rss .='">'."\n";
+
+$rss .= '<title>'.$cal_displayname;
+if ($theview !=""){$rss .= ' - '.$theview;} 
+$rss .= "</title>\n";
+
+$rss .= '<link>'.htmlspecialchars("$default_path").'</link>'."\n";
+if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
+$rss .= "<link>$rss_link</link>\n";
+
+$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
+$rss .= '<language>'.$language.'</language>'."\n";
+$rss .= '<copyright>Copyright '.date('Y').', '.htmlspecialchars ("$default_path").'</copyright>'."\n";
+
+//generate the items
+$numdays = round((strtotime($todate) - strtotime($fromdate))/(60*60*24))+1;
+$thisdate = $fromdate; 	#	start at beginning of date range, 
+						# 	note that usage of $thisdate is different from distribution
+						# 	I use it as a date, dist uses it as a time
+$i = 1;  #day counter
+$uid_arr = array();
+	do {
+	$thisdate=date('Ymd', strtotime($thisdate));
+	#echo "Date: $thisdate<br>\n";
+	$dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate));
+	if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) {
+		foreach ($master_array[("$thisdate")] as $event_times) {
+			foreach ($event_times as $uid=>$val) {
+				#handle multiday all day events
+				if(!$val["event_start"]){
+					if (isset($uid_arr[$uid])){
+						$uid_arr[$uid] .= "+$dayofweek" ;
+						continue;
+					}else{
+						$uid_arr[$uid] = "$dayofweek" ;
+					}
+					$event_start = $lang['l_all_day'];
+				}else{	
+					$event_start 	= @$val["event_start"];	
+					$event_start 	= date ($timeFormat, @strtotime ("$event_start"));
+				}	
+				$event_text 	= stripslashes(urldecode($val["event_text"]));
+				$event_text 	= strip_tags($event_text, '<b><i><u>');
+				$event_text		= str_replace('&','&amp;',$event_text);
+				$event_text		= str_replace('&amp;amp;','&amp;',$event_text);
+			#	$event_text		= urlencode($event_text);
+			#uncomment for shorter event text with ...
+			#	$event_text 	= word_wrap($event_text, 21, $tomorrows_events_lines); 		
+				$description 	= stripslashes(urldecode($val["description"]));
+				$description 	= strip_tags($description, '<b><i><u>');
+				$description		= str_replace('&','&amp;',$description);
+				$description		= str_replace('&amp;amp;','&amp;',$description);
+
+
+				$rss_title		= urldecode ("$dayofweek: $event_text");
+				$rss_link		= "$default_path/day.php?getdate=$thisdate&amp;cal=$cal";
+				if (isset($cpath) && $cpath !='') $rss_link.="&amp;cpath=$cpath";
+				$rss_description	= htmlspecialchars ("$dayofweek $event_start: $description");
+				
+				$rss .= '<item>'."\n";
+				$rss .= '<uid>'.$uid.'</uid>'."\n";
+				$rss .= '<event_start>'.$event_start.'</event_start>'."\n";
+				$rss .= '<title>'.$rss_title.'</title>'."\n";
+				/* custom stuff for Jim Hu's RSS feeds. Deprecated
+				$rss .= '<seminardate>'.$dayofweek.'</seminardate>'."\n";
+				$rss .= '<seminarspeaker>'.$event_text.'</seminarspeaker>'."\n";
+				$rss .= '<seminartitle>'.$description.'</seminartitle>'."\n";
+				$rss .= '<tagged>'.$val["description"].'</tagged>'."\n";
+				$rss .= '<seminarhost>'.$val['attendee'].'</seminarhost>'."\n";
+				$rss .= '<organizer>'.$val['organizer'].'</organizer>'."\n";
+				$rss .= '<status>'.$val['status'].'</status>'."\n";
+				*/
+				$rss .= '<link>'.$rss_link.'</link>'."\n";
+				$rss .= '<description>'.$rss_description.'</description>'."\n";
+				if (isset($val['location']) && $val['location'] !=''){
+				$location		= str_replace('&','&amp;',$val['location']);
+				$location		= str_replace('&amp;amp;','&amp;',$location);
+					$rss .= '<location>'.$location."</location>\n";
+				}	
+				$rss .= '</item>'."\n";
+				$events_count++;
+			}
+		}
+	}
+	if (($events_count < 1) && ($i == $numdays)) {
+		$rss .= '<item>'."\n";
+		$rss .= '<title>No events found</title>'."\n";
+		$rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
+		$rss .= '</item>'."\n";
+	}
+	$thisdate++;
+	$i++;	
+	} while ($i <= $numdays);
+
+$rss .= '</channel>'."\n";
+$rss .= '</rss>'."\n";
+
+foreach ($uid_arr as $uid=>$date_range){
+	#echo "date_range:$date_range<br>";
+
+	if(strpos($date_range,"+")>0){
+		#echo "+ in date_range<br>";
+		$temp = explode("+",$date_range);
+		$date_range = $temp[0].'-'.array_pop($temp);
+	}
+	$rss = str_replace("<uid>$uid</uid>\n<event_start>".$lang['l_all_day']."</event_start>","<uid>$uid</uid>\n<event_start>$date_range</event_start>", $rss);
+
+}
+header ("Content-Type: text/xml");
+
+echo "$rss";
+
+?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/rss/rss1.0.php newcal/rss/rss1.0.php
--- oldcal/rss/rss1.0.php	1969-12-31 19:00:00.000000000 -0500
+++ newcal/rss/rss1.0.php	2006-04-02 22:38:48.000000000 -0400
@@ -0,0 +1,255 @@
+<?php
+
+/********************************************************************************
+*	Modified from phpicalendar 2.0a distribution by Jim Hu
+*	philosophical changes 
+*		- instead of having separate generators, use a date range for all views (done)
+*		- change the rss generation method to conform to standards(not done)
+*	PHP note: #@ is error control operator to suppress execution halt on error
+*		- used below to deal with undef?
+*
+*	using rssview, RSS feeds can be specified to return events for a given day, week, month, or year 
+*	feeds can be specified for a number of days to or from a given date
+*	feeds can be specified for a range of dates
+*
+*********************************************************************************/
+
+/* Modified from 2.21 by dyfrin 2006/03/08 19:09:28
+   Changes:
+   -RSS changed to 2.0, encoding removed, languages converted to ISO standard for feeds
+   -RSS title changed to be set by config.inc.php.  Make sure that is added to it. 
+   Lines modified: 135-165, 208-223
+   Additional mods by J. Hu
+*/
+   
+define('BASE', '../');
+require(BASE.'functions/init.inc.php');
+
+if ($enable_rss != 'yes') {
+	die ("RSS feeds are not enabled on this site.");
+}
+
+include_once(BASE.'functions/date_functions.php');
+
+
+//set the range of days to return based on the view chosen
+$rssview = $_GET['rssview'];
+if (isset($_GET['getdate']) && $_GET['getdate'] !=''){
+	$getdate = $_GET['getdate'];
+}else{
+	$getdate = date("Ymd");
+}
+# for all views, $fromdate is the first day to be shown and $todate should be the last day.
+switch ($rssview){
+	case 'day':
+		$fromdate = $getdate;
+		$todate = $getdate;
+		$theview = $lang['l_day'];
+		break;
+	case 'week':
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'month':
+		$parse_month = date ("Ym", strtotime($getdate));
+		$fromdate = ($parse_month *100) + 1;
+		$todate = ($parse_month *100) + date("t",strtotime($getdate));
+		$theview = date('M Y',strtotime($fromdate));
+		break;
+	case 'year':
+		if(isset($_GET['year'])){
+			$theyear = $_GET['year'];
+		}else{
+			$theyear = substr($getdate,0,4);
+		}
+		$fromdate = ($theyear*10000)+101;	
+		$todate = date("Ymd", strtotime($theyear*10000+1231));
+		$theview = $theyear;
+		break;
+	case 'daysfrom':
+		$fromdate = $getdate;
+		$todate = date("Ymd", strtotime($getdate) + $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days from ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'daysto':
+		$todate = $getdate;
+		$fromdate = date("Ymd", strtotime($getdate) - $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days before ".date('n/d/Y',strtotime($todate));
+		break;
+	case 'range':
+		if(isset($_GET['from'])){
+		$fromdate = $_GET['from'];
+		}else{
+			$fromdate = $getdate;
+		}
+		$todate = $_GET['to'];
+		$theview = date('n/d/Y',strtotime($fromdate)).'-'.date('n/d/Y',strtotime($todate));
+		break;
+	default:
+		#default to week
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = "";
+
+}
+#need to give ical_parser the most distant date to correctly set up master_array.
+$getdate = $todate;
+#echo "from:$fromdate to:$todate";
+
+#Note that ical_parser supplies cal_displayname.
+include(BASE.'functions/ical_parser.php');
+
+$events_count = 0;
+
+// calculate a value for Last Modified and ETag
+$cal = implode(",",$cals);
+
+//get filemtime from master array
+$filemod = 0; #default to start of unix era, overwrite with most recent mtime from master array
+foreach ($master_array['-4'] as $calinfo){
+	if ($calinfo['mtime'] > $filemod) $filemod = $calinfo['mtime']; 
+}	
+$filemodtime = date("r", $filemod);
+
+//send relevant headers
+header ("Last-Modified: $filemodtime");
+header ("ETag:\"$filemodtime\"");
+
+// checks the user agents headers to see if they kept track of our
+// stuff, if so be nice and send back a 304 and exit.
+
+if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime)){
+	header ("HTTP/1.1 304 Not Modified");
+	exit;
+}
+
+/* Change languages to ISO 639-1 to validate RSS without changing long version in config.inc.php */
+$user_language = array ("english", "polish", "german", "french", "dutch", "italian", "japanese", "norwegian", "spanish",  "swedish", "portuguese", "catalan", "traditional_chinese", "esperanto", "korean");
+$iso_language = array ("en", "pl", "de", "fr", "nl", "da", "it", "ja", "no", "es", "sv", "pt", "ca", "zh-tw", "eo", "ko");
+$rss_language = str_replace($user_language, $iso_language, $language);
+/* End language modification */
+
+$rss = 	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"."\n";
+
+/* Use 1.0 and strip encoding, use rss_language */
+$rss .= 	'<rdf:RDF 
+	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
+	xmlns:ev="http://purl.org/rss/1.0/modules/event/"
+	xmlns:dc="http://purl.org/dc/elements/1.1/"
+	xmlns="http://purl.org/rss/1.0/">'."\n";
+
+$rss .= '<channel rdf:about="'.$default_path.'/rss/rss.php/';
+if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
+$rss .='">'."\n";
+
+$rss .= '<title>'.$cal_displayname;
+if ($theview !=""){$rss .= ' - '.$theview;} 
+$rss .= "</title>\n";
+
+$rss .= '<link>'.htmlspecialchars("$default_path").'</link>'."\n";
+$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
+#$rss .= '<language>'.$rss_language.'</language>'."\n";
+
+
+//generate the items
+$numdays = round((strtotime($todate) - strtotime($fromdate))/(60*60*24))+1;
+$thisdate = $fromdate; 	#	start at beginning of date range, 
+						# 	note that usage of $thisdate is different from distribution
+						# 	I use it as a date, dist uses it as a time
+$i = 1;  #day counter
+
+$rss .= "<items>\n<rdf:Seq>\n";
+$rss_items ='';
+$uid_arr = array();
+	do {
+	$thisdate=date('Ymd', strtotime($thisdate));
+	#echo "Date: $thisdate<br>\n";
+	$dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate));
+	if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) {
+		foreach ($master_array[("$thisdate")] as $event_times) {
+			foreach ($event_times as $uid=>$val) {
+				#handle multiday all day events
+				if(!$val["event_start"]){
+					if (isset($uid_arr[$uid])){
+						$uid_arr[$uid] .= "+$dayofweek" ;
+						continue;
+					}else{
+						$uid_arr[$uid] = "$dayofweek" ;
+					}
+					$event_start = $lang['l_all_day'];
+				}else{	
+					$event_start 	= @$val["event_start"];	
+					$event_start 	= date ($timeFormat, @strtotime ("$event_start"));
+				}	
+				$event_text 	= stripslashes(urldecode($val["event_text"]));
+				$event_text 	= strip_tags($event_text, '<b><i><u>');
+			#	$event_text		= urlencode($event_text);
+			#uncomment for shorter event text with ...
+			#	$event_text 	= word_wrap($event_text, 21, $tomorrows_events_lines); 		
+				$description 	= stripslashes(urldecode($val["description"]));
+				$description 	= strip_tags($description, '<b><i><u>');
+
+				$rss_title		= htmlspecialchars ("$dayofweek: $event_text");
+				/* original link, not valid url coding 
+				$rss_link		= htmlspecialchars ("$default_path/day.php?getdate=$thisdate&cal=$cal&cpath=$cpath");
+				*/
+				/*  Add %20's for spaces for the calendar links to make them valid url's */
+				$urlcal 		= rawurlencode ("$cal");
+				$rss_link		=  ("$default_path/day.php?getdate=$thisdate&amp;cal=$urlcal");
+				if (isset($cpath) && $cpath !=''){
+					$rss_link .= "&amp;cpath=$cpath";
+				}
+				/* End link modification */
+				$rss_description	= htmlspecialchars ("$dayofweek $event_start: $description");
+				
+				$rss .= '<rdf:li rdf:resource="'.$rss_link.'&amp;uid='.$uid.'/" />'."\n";
+				$rss_items .= '<item rdf:about="'.$rss_link.'&amp;uid='.$uid.'/">'."\n";
+
+				/* Create guid, and use uid to make link unique */
+			#	$rss .= '<guid isPermaLink="false">'.$rss_link.$uid.'</guid>'."\n";
+				/* End guid modification */
+				$rss_items .= '<title>'.$rss_title.'</title>'."\n";
+				$rss_items .= '<ev:startdate>'.date("Y-m-d", strtotime($thisdate)).'T'.date("h:m:s",$val["event_start"]).'</ev:startdate>'."\n";
+				$rss_items .= '<ev:enddate>'.date("Y-m-d", strtotime($thisdate)).'T'.date("h:m:s",$val["event_start"]).'</ev:enddate>'."\n";
+
+				$rss_items .= '<link>'.$rss_link.'</link>'."\n";
+				$rss_items .= '<description>'.$rss_description.'</description>'."\n";
+				if (isset($val['location']) && $val['location'] !=''){
+					$rss_items .= '<ev:location>'.$val['location']."</ev:location>\n";
+				}	
+				$rss_items .= '</item>'."\n";
+				$events_count++;
+			}
+		}
+	}
+	if (($events_count < 1) && ($i == $numdays)) {
+		$rss_items .= '<item>'."\n";
+		$rss_items .= '<title>No events found</title>'."\n";
+		$rss_items .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
+		$rss_items .= '</item>'."\n";
+	}
+	$thisdate++;
+	$i++;	
+	} while ($i <= $numdays);
+
+$rss .= "</rdf:Seq>\n</items>\n";
+$rss .= "</channel>\n";
+$rss .= $rss_items.'</rdf:RDF>'."\n";
+
+foreach ($uid_arr as $uid=>$date_range){
+	#echo "date_range:$date_range<br>";
+
+	if(strpos($date_range,"+")>0){
+		#echo "+ in date_range<br>";
+		$temp = explode("+",$date_range);
+		$date_range = $temp[0].'-'.array_pop($temp);
+	}
+	$rss = str_replace("<uid>$uid</uid>\n<event_start>".$lang['l_all_day']."</event_start>","<uid>$uid</uid>\n<event_start>$date_range</event_start>", $rss);
+
+}
+header ("Content-Type: text/xml");
+
+echo "$rss";
+
+?>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/rss/rss2.0.php newcal/rss/rss2.0.php
--- oldcal/rss/rss2.0.php	1969-12-31 19:00:00.000000000 -0500
+++ newcal/rss/rss2.0.php	2006-04-02 23:31:39.000000000 -0400
@@ -0,0 +1,257 @@
+<?php
+
+/********************************************************************************
+*	Modified from phpicalendar 2.0a distribution by Jim Hu
+*	philosophical changes 
+*		- instead of having separate generators, use a date range for all views (done)
+*		- change the rss generation method to conform to standards(not done)
+*	PHP note: #@ is error control operator to suppress execution halt on error
+*		- used below to deal with undef?
+*
+*	using rssview, RSS feeds can be specified to return events for a given day, week, month, or year 
+*	feeds can be specified for a number of days to or from a given date
+*	feeds can be specified for a range of dates
+*
+*********************************************************************************/
+
+/* Modified from 2.21 by dyfrin 2006/03/08 19:09:28
+   Changes:
+   -RSS changed to 2.0, encoding removed, languages converted to ISO standard for feeds
+   -RSS title changed to be set by config.inc.php.  Make sure that is added to it. 
+   Lines modified: 135-165, 208-223
+*/
+   
+define('BASE', '../');
+require(BASE.'functions/init.inc.php');
+
+if ($enable_rss != 'yes') {
+	die ("RSS feeds are not enabled on this site.");
+}
+
+include_once(BASE.'functions/date_functions.php');
+
+
+//set the range of days to return based on the view chosen
+$rssview = $_GET['rssview'];
+if (isset($_GET['getdate']) && $_GET['getdate'] !=''){
+	$getdate = $_GET['getdate'];
+}else{
+	$getdate = date("Ymd");
+}
+# for all views, $fromdate is the first day to be shown and $todate should be the last day.
+switch ($rssview){
+	case 'day':
+		$fromdate = $getdate;
+		$todate = $getdate;
+		$theview = $lang['l_day'];
+		break;
+	case 'week':
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = $lang['l_week']." of ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'month':
+		$parse_month = date ("Ym", strtotime($getdate));
+		$fromdate = ($parse_month *100) + 1;
+		$todate = ($parse_month *100) + date("t",strtotime($getdate));
+		$theview = date('M Y',strtotime($fromdate));
+		break;
+	case 'year':
+		if(isset($_GET['year'])){
+			$theyear = $_GET['year'];
+		}else{
+			$theyear = substr($getdate,0,4);
+		}
+		$fromdate = ($theyear*10000)+101;	
+		$todate = date("Ymd", strtotime($theyear*10000+1231));
+		$theview = $theyear;
+		break;
+	case 'daysfrom':
+		$fromdate = $getdate;
+		$todate = date("Ymd", strtotime($getdate) + $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days from ".date('n/d/Y',strtotime($fromdate));
+		break;
+	case 'daysto':
+		$todate = $getdate;
+		$fromdate = date("Ymd", strtotime($getdate) - $_GET['days']*60*60*24);
+		$theview = $_GET['days']." days before ".date('n/d/Y',strtotime($todate));
+		break;
+	case 'range':
+		if(isset($_GET['from'])){
+		$fromdate = $_GET['from'];
+		}else{
+			$fromdate = $getdate;
+		}
+		$todate = $_GET['to'];
+		$theview = date('n/d/Y',strtotime($fromdate)).'-'.date('n/d/Y',strtotime($todate));
+		break;
+	default:
+		#default to week
+		$fromdate = dateOfWeek($getdate, 'Sunday');
+		$todate = $fromdate + 6;
+		$theview = "";
+
+}
+#need to give ical_parser the most distant date to correctly set up master_array.
+$getdate = $todate;
+#echo "from:$fromdate to:$todate";
+
+#Note that ical_parser supplies cal_displayname.
+include(BASE.'functions/ical_parser.php');
+
+$events_count = 0;
+
+// calculate a value for Last Modified and ETag
+$cal = implode(",",$cals);
+
+//get filemtime from master array
+$filemod = 0; #default to start of unix era, overwrite with most recent mtime from master array
+foreach ($master_array['-4'] as $calinfo){
+	if ($calinfo['mtime'] > $filemod) $filemod = $calinfo['mtime']; 
+}	
+$filemodtime = date("r", $filemod);
+
+//send relevant headers
+header ("Last-Modified: $filemodtime");
+header ("ETag:\"$filemodtime\"");
+
+// checks the user agents headers to see if they kept track of our
+// stuff, if so be nice and send back a 304 and exit.
+
+if ( ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $filemodtime) || ($_SERVER['HTTP_IF_NONE_MATCH'] == $filemodtime))
+{
+#	header ("HTTP/1.1 304 Not Modified");
+#	exit;
+}
+
+/* Change languages to ISO 639-1 to validate RSS without changing long version in config.inc.php */
+$user_language = array ("english", "polish", "german", "french", "dutch", "italian", "japanese", "norwegian", "spanish",  "swedish", "portuguese", "catalan", "traditional_chinese", "esperanto", "korean");
+$iso_language = array ("en", "pl", "de", "fr", "nl", "da", "it", "ja", "no", "es", "sv", "pt", "ca", "zh-tw", "eo", "ko");
+$rss_language = str_replace($user_language, $iso_language, $language);
+/* End language modification */
+
+$rss = 	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"."\n";
+#$rss .= '<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 2.01//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">'."\n";
+
+/* Use 2.0 and strip encoding, use rss_language */
+$rss .= '<rss version="2.0"'."\n";
+$rss .= 	'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"  
+	xmlns:ev="http://purl.org/rss/1.0/modules/event/" 
+	xmlns:dc="http://purl.org/dc/elements/1.1/"
+	>'."\n";
+$rss .= '<channel>'."\n";
+
+
+$rss .= '<title>'.$cal_displayname;
+if ($theview !=""){$rss .= ' - '.$theview;} 
+$rss .= "</title>\n";
+
+$rss .= '<link>'.$default_path.'/rss/rss2.0.php/';
+if (isset($cpath) && $cpath !='') $rss_link.="?cpath=$cpath";
+$rss .='</link>'."\n";
+$rss .= '<description>'.$cal_displayname.' '.$lang['l_calendar'].' - '.$theview.'</description>'."\n";
+$rss .= '<language>'.$rss_language.'</language>'."\n";
+
+
+/* End rss 2.0 modification */
+
+
+//generate the items
+$numdays = round((strtotime($todate) - strtotime($fromdate))/(60*60*24))+1;
+$thisdate = $fromdate; 	#	start at beginning of date range, 
+						# 	note that usage of $thisdate is different from distribution
+						# 	I use it as a date, dist uses it as a time
+$i = 1;  #day counter
+
+#$rss .= "<items>\n<rdf:Seq>\n";
+$uid_arr = array();
+	do {
+	$thisdate=date('Ymd', strtotime($thisdate));
+	#echo "Date: $thisdate<br>\n";
+	$dayofweek = localizeDate ("%a %b %e %Y", strtotime($thisdate));
+	if (isset($master_array[($thisdate)]) && sizeof($master_array[($thisdate)]) > 0) {
+		foreach ($master_array[("$thisdate")] as $event_times) {
+			foreach ($event_times as $uid=>$val) {
+				#handle multiday all day events
+				if(!$val["event_start"]){
+					if (isset($uid_arr[$uid])){
+						$uid_arr[$uid] .= "+$dayofweek" ;
+						continue;
+					}else{
+						$uid_arr[$uid] = "$dayofweek" ;
+					}
+					$event_start = $lang['l_all_day'];
+				}else{	
+					$event_start 	= @$val["event_start"];	
+					$event_start 	= date ($timeFormat, @strtotime ("$event_start"));
+				}	
+				$event_text 	= stripslashes(urldecode($val["event_text"]));
+				$event_text 	= strip_tags($event_text, '<b><i><u>');
+			#	$event_text		= urlencode($event_text);
+			#uncomment for shorter event text with ...
+			#	$event_text 	= word_wrap($event_text, 21, $tomorrows_events_lines); 		
+				$description 	= stripslashes(urldecode($val["description"]));
+				$description 	= strip_tags($description, '<b><i><u>');
+
+				$rss_title		= htmlspecialchars ("$dayofweek: $event_text");
+				/* original link, not valid url coding 
+				$rss_link		= htmlspecialchars ("$default_path/day.php?getdate=$thisdate&cal=$cal&cpath=$cpath");
+				*/
+				/*  Add %20's for spaces for the calendar links to make them valid url's */
+				$urlcal 		= rawurlencode ("$cal");
+				$rss_link		=  ("$default_path/day.php?getdate=$thisdate&amp;cal=$urlcal");
+				if (isset($cpath) && $cpath !=''){
+					$rss_link .= "&amp;cpath=$cpath";
+				}
+				/* End link modification */
+				$rss_description	= htmlspecialchars ("$dayofweek $event_start: $description");
+				
+				#$rss .= '<rdf:li rdf:resource="'.$rss_link.'&amp;uid='.$uid.'/" />'."\n";
+				$rss .= '<item>'."\n";
+
+				/* Create guid, and use uid to make link unique */
+				$rss .= '<guid isPermaLink="false">'.$rss_link.'&amp;uid='.$uid.'</guid>'."\n";
+				/* End guid modification */
+				$rss .= '<title>'.$rss_title.'</title>'."\n";
+				$rss .= '<ev:startdate>'.date("Y-m-d", strtotime($thisdate)).'T'.date("h:m:s",$val["event_start"]).'</ev:startdate>'."\n";
+				$rss .= '<ev:enddate>'.date("Y-m-d", strtotime($thisdate)).'T'.date("h:m:s",$val["event_start"]).'</ev:enddate>'."\n";
+
+				$rss .= '<link>'.$rss_link.'</link>'."\n";
+				$rss .= '<description>'.$rss_description.'</description>'."\n";
+				if (isset($val['location']) && $val['location'] !=''){
+					$rss .= '<ev:location>'.$val['location']."</ev:location>\n";
+				}	
+				$rss .= '</item>'."\n";
+				$events_count++;
+			}
+		}
+	}
+	if (($events_count < 1) && ($i == $numdays)) {
+		$rss .= '<item>'."\n";
+		$rss .= '<title>No events found</title>'."\n";
+		$rss .= '<link>'.htmlspecialchars ("$default_path").'</link>'."\n";
+		$rss .= '</item>'."\n";
+	}
+	$thisdate++;
+	$i++;	
+	} while ($i <= $numdays);
+
+#$rss .= "</rdf:Seq>\n</items>\n";
+$rss .= "\n</channel>\n</rss>\n";
+
+foreach ($uid_arr as $uid=>$date_range){
+	#echo "date_range:$date_range<br>";
+
+	if(strpos($date_range,"+")>0){
+		#echo "+ in date_range<br>";
+		$temp = explode("+",$date_range);
+		$date_range = $temp[0].'-'.array_pop($temp);
+	}
+	$rss = str_replace("<uid>$uid</uid>\n<event_start>".$lang['l_all_day']."</event_start>","<uid>$uid</uid>\n<event_start>$date_range</event_start>", $rss);
+
+}
+header ("Content-Type: text/xml");
+
+echo "$rss";
+
+?>
Binary files oldcal/rss/xml.gif and newcal/rss/xml.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/search.php newcal/search.php
--- oldcal/search.php	2005-11-23 23:28:34.000000000 -0500
+++ newcal/search.php	2006-04-09 21:22:53.000000000 -0400
@@ -2,7 +2,7 @@
 
 define('BASE','./');
 $current_view = 'search';
-$display_date = $results_lang;
+$display_date = $lang['l_results'];
 require_once(BASE.'functions/ical_parser.php');
 require_once(BASE.'functions/list_functions.php');
 require_once(BASE.'functions/template.php');
@@ -287,23 +287,11 @@
 	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
 	'sidebar'			=> BASE.'templates/'.$template.'/sidebar.tpl',
 	'event_js'			=> BASE.'functions/event.js',
-	'charset'			=> $charset,
-	'default_path'		=> '',
-	'template'			=> $template,
-	'cal'				=> $cal,
-	'getdate'			=> $getdate,
-	'calendar_name'		=> $cal_displayname,
-	'display_date'		=> $display_date,
-	'current_view'		=> $current_view,
-	'sidebar_date'		=> $sidebar_date,
-	'rss_powered'	 	=> $rss_powered,
-	'rss_available' 	=> '',
-	'rss_valid' 		=> '',
-	'show_search' 		=> ''		
 	));
 
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'formatted_search'	=> $formatted_search,
 	'l_results'			=> $lang['l_results'],
 	'l_query'			=> $lang['l_query'],
Binary files oldcal/templates/.DS_Store and newcal/templates/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/calendar_nav.tpl newcal/templates/default/calendar_nav.tpl
--- oldcal/templates/default/calendar_nav.tpl	2005-11-11 00:15:25.000000000 -0500
+++ newcal/templates/default/calendar_nav.tpl	2006-03-16 01:03:24.000000000 -0500
@@ -27,27 +27,27 @@
 											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
 											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
 											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
-										<input type="hidden" name="cpath" value="{CPATH}">
+										<input type="hidden" name="cpath" value="{CPATH}"/>
 
 										</form>
 										<!-- switch show_search on -->
 										{SEARCH_BOX}
 										<!-- switch show_search off -->
 										<!-- switch show_goto on -->
-										<form style="margin-bottom:0;" action="day.php" method="get">
-											<input type="hidden" name="cpath" value="{CPATH}">
-											<input type="hidden" name="cal" value="{URL_CAL}">
-											<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
-											<input type="submit" value="Go">
+										<form style="margin-bottom:0;" action="day.php" method="get"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<input type="hidden" name="cal" value="{URL_CAL}"/>
+											<input type="text" style="width:160px; font-size:10px" name="jumpto_day"/>
+											<input type="submit" value="Go"/>
 										</form>
 										<!-- switch show_goto off -->
-										<hr>
-										<div class = 'G10BOLD'>Pick Multiple:</div>
+										<hr />
+										<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
 										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
-											<input type="hidden" name="getdate" value="{GETDATE}">
-											<input type="hidden" name="cpath" value="{CPATH}">
+											<input type="hidden" name="getdate" value="{GETDATE}"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
 											<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
-											<input type="submit" value="go">
+											<input type="submit" value="Go"/>
 										</form>
 									</div>
 								</td>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/footer.tpl newcal/templates/default/footer.tpl
--- oldcal/templates/default/footer.tpl	2005-11-23 03:05:30.000000000 -0500
+++ newcal/templates/default/footer.tpl	2006-04-09 21:17:35.000000000 -0400
@@ -1,4 +1,4 @@
-<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar 2.2</a><br />
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
 <!-- switch rss_valid on -->
 <p>
 <a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/header.tpl newcal/templates/default/header.tpl
--- oldcal/templates/default/header.tpl	2005-09-07 02:08:02.000000000 -0400
+++ newcal/templates/default/header.tpl	2006-04-02 05:29:39.000000000 -0400
@@ -6,7 +6,7 @@
 	<title>{CALENDAR_NAME} - {DISPLAY_DATE}</title>
   	<link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}templates/{TEMPLATE}/default.css" />
 	<!-- switch rss_available on -->
-	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_VIEW}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
+	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
 	<!-- switch rss_available off -->		
 	{EVENT_JS}
 </head>
@@ -16,4 +16,5 @@
   <input type="hidden" name="time" id="time" value="" />
   <input type="hidden" name="uid" id="uid" value="" />
   <input type="hidden" name="cpath" id="cpath" value="" />
+  <input type="hidden" name="event_data" id="event_data" value="" />
 </form>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/images/CVS/Entries newcal/templates/default/images/CVS/Entries
--- oldcal/templates/default/images/CVS/Entries	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/default/images/CVS/Entries	2006-03-15 19:11:03.000000000 -0500
@@ -0,0 +1,38 @@
+/allday_1.gif/1.1/Wed Feb  4 05:55:15 2004/-kb/
+/allday_2.gif/1.1/Thu Feb  5 03:14:55 2004/-kb/
+/allday_3.gif/1.1/Thu Feb  5 03:14:55 2004/-kb/
+/allday_4.gif/1.1/Thu Feb  5 03:14:55 2004/-kb/
+/allday_5.gif/1.1/Thu Feb  5 04:07:57 2004/-kb/
+/allday_6.gif/1.2/Sun May 23 23:31:22 2004/-kb/
+/allday_7.gif/1.1/Thu Feb  5 04:07:57 2004/-kb/
+/allday_bg.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/allday_dot.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/back.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/day_on.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/day_title.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/download_arrow.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/event_dot.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/left_arrows.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/left_day.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/month_on.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/monthdot_1.gif/1.1/Mon Feb  2 23:11:25 2004/-kb/
+/monthdot_2.gif/1.1/Mon Feb  2 23:11:29 2004/-kb/
+/monthdot_3.gif/1.1/Mon Feb  2 23:11:29 2004/-kb/
+/monthdot_4.gif/1.1/Mon Feb  2 23:11:29 2004/-kb/
+/monthdot_5.gif/1.1/Mon Feb  2 23:11:29 2004/-kb/
+/monthdot_6.gif/1.2/Sun May 23 23:31:23 2004/-kb/
+/monthdot_7.gif/1.1/Mon Feb  2 23:11:29 2004/-kb/
+/printer.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/right_arrows.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/right_day.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/search.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/shadow_l.gif/1.1/Fri Jan 30 07:34:19 2004/-kb/
+/shadow_m.gif/1.1/Fri Jan 30 07:34:19 2004/-kb/
+/shadow_r.gif/1.1/Fri Jan 30 07:34:19 2004/-kb/
+/side_bg.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/smallicon.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/spacer.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/time_bg.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/week_on.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+/year_on.gif/1.1/Mon Jan 26 22:51:33 2004/-kb/
+D
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/images/CVS/Repository newcal/templates/default/images/CVS/Repository
--- oldcal/templates/default/images/CVS/Repository	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/default/images/CVS/Repository	2006-03-15 19:11:01.000000000 -0500
@@ -0,0 +1 @@
+phpicalendar/templates/default/images
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/images/CVS/Root newcal/templates/default/images/CVS/Root
--- oldcal/templates/default/images/CVS/Root	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/default/images/CVS/Root	2006-03-15 19:11:01.000000000 -0500
@@ -0,0 +1 @@
+:ext:jimhu@cvs.sourceforge.net:/cvsroot/phpicalendar
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/month_medium.tpl newcal/templates/default/month_medium.tpl
--- oldcal/templates/default/month_medium.tpl	2004-05-19 23:37:06.000000000 -0400
+++ newcal/templates/default/month_medium.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -1,6 +1,6 @@
 <table border="0" width="210" cellspacing="0" cellpadding="0" class="calborder">
 	<tr>
-		<td align="center" class="medtitle"><a class="ps3" href="month.php?cal={CAL}&amp;getdate={MONTH_DATE}">{MONTH_TITLE}</a></td>
+		<td align="center" class="medtitle">{MONTH_TITLE}</td>
 	</tr>
 	<tr>
 		<td>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/preferences.tpl newcal/templates/default/preferences.tpl
--- oldcal/templates/default/preferences.tpl	2005-11-27 02:56:31.000000000 -0500
+++ newcal/templates/default/preferences.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -46,7 +46,7 @@
 							<td nowrap="nowrap">{L_SELECT_CAL}:</td>
 							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
 							<td><select name="cookie_calendar" class="query_style">{CALENDAR_SELECT}</select>
-							<input type="hidden" name="cpath" value="{CPATH}"></td>
+							<input type="hidden" name="cpath" value="{CPATH}"/></td>
 						</tr>
 						<tr align="left" valign="top">
 							<td nowrap="nowrap">{L_SELECT_VIEW}:</td>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/print.tpl newcal/templates/default/print.tpl
--- oldcal/templates/default/print.tpl	2005-12-01 01:25:09.000000000 -0500
+++ newcal/templates/default/print.tpl	2006-03-20 03:18:22.000000000 -0500
@@ -13,6 +13,7 @@
 								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
 								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
 								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
 							</tr>
 						</table>
 						</div>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/rss_index.tpl newcal/templates/default/rss_index.tpl
--- oldcal/templates/default/rss_index.tpl	2004-05-19 14:26:10.000000000 -0400
+++ newcal/templates/default/rss_index.tpl	2006-04-05 02:45:23.000000000 -0400
@@ -35,10 +35,11 @@
 								<td width="2%"></td>
 								<td width="98%" valign="top" align="left">
 									<br />
-									{L_THIS_SITE_IS} <a class="psf" href="http://www.oreillynet.com/rss/">RSS 0.91 enabled</a>.<br />
+									<br />
 									<br />
 									{RSS_LIST}
 									<br />
+									<p>{RSS_DOCINFO}</p>
 								</td>
 							</tr>
 						</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/search_box.tpl newcal/templates/default/search_box.tpl
--- oldcal/templates/default/search_box.tpl	2005-04-13 10:57:58.000000000 -0400
+++ newcal/templates/default/search_box.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -1,9 +1,9 @@
-<hr>
+<hr />
 <div class = 'G10BOLD'>{L_SEARCH}:</div>
 <form action="search.php" method="GET">
-	<input type="hidden" name="cpath" value="{CPATH}">
-	<input type="hidden" name="cal" value="{CAL}">
-	<input type="hidden" name="getdate" value="{GETDATE}">
-	<input type="text" size="15" name="query" value="">
-	<INPUT type="image" src="templates/{TEMPLATE}/images/search.gif" border=0 height="19" width="18" name="submit" value="Search">
+	<input type="hidden" name="cpath" value="{CPATH}"/>
+	<input type="hidden" name="cal" value="{CAL}"/>
+	<input type="hidden" name="getdate" value="{GETDATE}"/>
+	<input type="text" size="15" name="query" value=""/>
+	<input type="image" src="templates/{TEMPLATE}/images/search.gif" name="submit" value="Search"/>
 </form>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/sidebar.tpl newcal/templates/default/sidebar.tpl
--- oldcal/templates/default/sidebar.tpl	2006-01-12 22:03:14.000000000 -0500
+++ newcal/templates/default/sidebar.tpl	2006-03-16 01:04:45.000000000 -0500
@@ -83,7 +83,7 @@
 					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
 					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
 					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
-					<input type="hidden" name="cpath" value="{CPATH}">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
 
 				</form>
 				<!-- switch show_search on -->
@@ -93,16 +93,16 @@
 				<form style="margin-bottom:0;" action="day.php" method="get">
 					<input type="hidden" name="cal" value="{URL_CAL}">
 					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
-					<input type="submit" value="Go">
+					<input type="submit" value="Go"/>
 				</form>
 				<!-- switch show_goto off -->
-				<hr>
-				<div class = 'G10BOLD'>Pick Multiple:</div>
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
 				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
-					<input type="hidden" name="cpath" value="{CPATH}">
-					<input type="hidden" name="getdate" value="{GETDATE}">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
 					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
-					<input type="submit" value="go">
+					<input type="submit" value="Go"/>
 				</form>
 			</div>
 		</td>
@@ -130,7 +130,7 @@
 				{T_ALLDAY}<br />
 				<!-- switch t_allday off -->
 				<!-- switch t_event on -->
-				&#149; {T_EVENT}<br />
+				&bull; {T_EVENT}<br />
 				<!-- switch t_event off -->
 			</div>
 		</td>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/sidebar_year.tpl newcal/templates/default/sidebar_year.tpl
--- oldcal/templates/default/sidebar_year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/default/sidebar_year.tpl	2006-03-20 03:18:55.000000000 -0500
@@ -0,0 +1,196 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/default/year.tpl newcal/templates/default/year.tpl
--- oldcal/templates/default/year.tpl	2005-11-23 01:08:45.000000000 -0500
+++ newcal/templates/default/year.tpl	2006-03-20 03:20:08.000000000 -0500
@@ -56,6 +56,10 @@
 			<td width="210" valign="top" align="left">
 				{MONTH_MEDIUM|03}
 			</td>
+			<td width="20" rowspan='8'>
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td rowspan='8' valign='top'>{SIDEBAR}</td>
 		</tr>
 		<tr>
 			<td colspan="5">
Binary files oldcal/templates/green/.DS_Store and newcal/templates/green/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/admin.tpl newcal/templates/green/admin.tpl
--- oldcal/templates/green/admin.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/admin.tpl	2005-07-11 04:01:16.000000000 -0400
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+<table border="0" width="600" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_ADMIN_HEADER}</h1><span class="V9G">{L_ADMIN_SUBHEAD}</span></td>
+					<td align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+                                                                <td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td align="right">
+			<!-- switch logged_in2 on -->
+                        <a href="index.php?action=logout">{L_LOGOUT}</a>&nbsp;
+			<!-- switch logged_in2 off -->
+		</td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+				<tr>
+					<td width="2%"></td>
+					<td width="98%" valign="top" align="left">
+						<!-- switch login_error on -->
+                                                <font color="red">{L_INVALID_LOGIN}</font><br /><br />
+						<!-- switch login_error off -->
+	
+						<!-- switch display_login on -->
+                                                <form action="index.php?action=login" method="post">
+							<table cellspacing="0" cellpadding="0">
+								<tr>
+									<td nowrap>{L_USERNAME}: </td>
+									<td align="left"><input type="text" name="username"></td>
+								</tr>
+								<tr>
+									<td>{L_PASSWORD}: </td>
+									<td align="left"><input type="password" name="password"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td align="left"><input type="submit" value="{L_LOGIN}"></td>
+								</tr>
+                                                                <!--
+								<tr>
+									<td align="center" colspan="3">{LOGIN_ERROR}&nbsp;</td>
+								</tr>
+                                                                -->
+							</table>
+						</form>
+						<!-- switch display_login off -->
+						
+						
+						<!-- switch logged_in on -->
+                                                <b>{L_ADDUPDATE_CAL}</b><br />
+                                                {L_ADDUPDATE_DESC}<br /><br />
+                                                <form action="index.php" method="post" enctype="multipart/form-data">
+							<input type="hidden" name="action" value="addupdate">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								<tr>
+									<td nowrap>{L_CAL_FILE} 1: </td>
+									<td><input type="file" name="calfile[1]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 2: </td>
+									<td><input type="file" name="calfile[2]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 3: </td>
+									<td><input type="file" name="calfile[3]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 4: </td>
+									<td><input type="file" name="calfile[4]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 5: </td>
+									<td><input type="file" name="calfile[5]"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td><input type="submit" value="{L_SUBMIT}"></td>
+								</tr>
+								<tr>
+									<td align="center" colspan="2">{ADDUPDATE_MSG} &nbsp;</td>
+								</tr>
+							</table>
+						</form>
+						
+						<b>{L_DELETE_CAL}</b>
+                                                <form action="index.php" method="post">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								{DELETE_TABLE}
+							</table>
+							<input type="hidden" name="action" value="delete">
+							<p><input type="submit" value="{L_DELETE}"></p>
+							<p>{DELETE_MSG} &nbsp;</p>
+						</form>
+						
+						<!-- switch logged_in off -->
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="600" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+{FOOTER}
+
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/calendar_nav.tpl newcal/templates/green/calendar_nav.tpl
--- oldcal/templates/green/calendar_nav.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/calendar_nav.tpl	2006-03-23 19:57:09.000000000 -0500
@@ -0,0 +1,113 @@
+<table border="0" width="737" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="1%" valign="top" align="right">
+			{MONTH_SMALL|-1}
+			<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+		<td width="98%" valign="top" align="center">
+			<table border="0" width="330" cellspacing="0" cellpadding="0">
+				<tr>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{L_JUMP}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding: 5px;">
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+										<input type="hidden" name="cpath" value="{CPATH}"/>
+
+										</form>
+										<!-- switch show_search on -->
+										{SEARCH_BOX}
+										<!-- switch show_search off -->
+										<!-- switch show_goto on -->
+										<form style="margin-bottom:0;" action="day.php" method="get"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<input type="hidden" name="cal" value="{URL_CAL}"/>
+											<input type="text" style="width:160px; font-size:10px" name="jumpto_day"/>
+											<input type="submit" value="Go"/>
+										</form>
+										<!-- switch show_goto off -->
+										<hr />
+										<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<input type="hidden" name="getdate" value="{GETDATE}"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+											<input type="submit" value="Go"/>
+										</form>
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+					<td>
+						<img src="images/spacer.gif" width="20" height="1" alt=" " />
+					</td>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{SIDEBAR_DATE}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding-left: 5px;">
+										<b>{L_LEGEND}:</b><br />
+										{LEGEND}
+										<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+										<!-- switch allow_preferences on -->
+										<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+										<!-- switch allow_preferences off -->
+										<!-- switch display_download on -->
+										<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+										<!-- switch display_download off -->
+										<!-- switch is_logged_in on -->
+										<a class="psf" href="{SCRIPT_NAME}?{QUERYS}">Logout {USERNAME}</a>
+										<!-- switch is_logged_in off -->
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+		<td width="1%" valign="top" align="left">
+			{MONTH_SMALL|+1}
+			<table width="170" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/day.tpl newcal/templates/green/day.tpl
--- oldcal/templates/green/day.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/day.tpl	2005-11-19 01:55:40.000000000 -0500
@@ -0,0 +1,104 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>
+							<tr>	
+								<td colspan="2">
+									<table width="100%" border="0" cellspacing="0" cellpadding="2">
+										<tr>
+											<td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}">&laquo;</a></span>
+											</td>
+											<!-- loop daysofweek on -->
+											<td width="14%" align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={DAYLINK}'">
+												<span class="V9BOLD"><a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a></span>
+											</td>
+											<!-- loop daysofweek off -->
+											<td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}">&raquo;</a></span>
+											</td>
+										</tr>	
+									</table>
+								</td>
+							</tr>      			
+						</table>
+					</td>
+				</tr>
+				<tr id="allday">
+					<td>
+						<!-- loop allday on -->
+						<div class="alldaybg_{CALNO}">
+							{ALLDAY}
+						</div>
+						<!-- loop allday off -->
+					</td>
+				</tr>
+      			<tr>
+					<td align="center" valign="top" colspan="3">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<!-- loop row on -->
+							<tr>
+								<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<!-- loop row off -->
+							<!-- loop event on -->
+							<div class="eventfont">
+								<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b> - {EVENT_END}</div>
+								<div class="padd">{EVENT}</div>
+							</div>
+							<!-- loop event off -->
+						</table>
+					</td>
+				</tr>
+        	</table>
+        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+    	</td>
+		<td width="10"><img src="images/spacer.gif" width="10" height="1" alt=" " /></td>
+		<td width="170" valign="top">
+			{SIDEBAR}
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/default.css newcal/templates/green/default.css
--- oldcal/templates/green/default.css	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/default.css	2006-04-09 15:52:21.000000000 -0400
@@ -0,0 +1,161 @@
+/* Style sheet for the green calendar */
+
+table, td {font: 11px Verdana, Arial, sans-serif; color: #000;}
+
+/* Background images for tables */
+.tbll	{background: url(images/shadow_l.gif) no-repeat; width:8px}
+.tblbot	{background: url(images/shadow_m.gif) repeat-x; width:100%}
+.tblr	{background: url(images/shadow_r.gif) no-repeat; width:8px}
+
+.alldaybg_1 {background: url(images/allday_1.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_2 {background: url(images/allday_2.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_3 {background: url(images/allday_3.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_4 {background: url(images/allday_4.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_5 {background: url(images/allday_5.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_6 {background: url(images/allday_6.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+
+.rowOn			{ background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOn2			{ background-color: #cfc; border-top: 1px solid #fff; }
+.rowOff			{ background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOff2		{ background-color: #E1E8F1; border-top: 1px solid #fff; }
+.rowToday		{ background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+
+.padd			{ padding: 2px; }
+
+/* Styles for day and week events */
+.eventbg_1	 	{ background-color: #00790c; padding: 2px;}
+.eventbg_2	 	{ background-color: #00c400; padding: 2px;}
+.eventbg_3	 	{ background-color: #005050; padding: 2px;}
+.eventbg_4	 	{ background-color: #5abf04; padding: 2px;}
+.eventbg_5	 	{ background-color: #506000; padding: 2px;}
+.eventbg_6	 	{ background-color: #ac9200; padding: 2px;}
+.eventbg_7	 	{ background-color: #00a28f; padding: 2px;}
+
+#allday a		{ font-size: 9px; color: #fff; font-weight: 900; text-decoration:none;}
+#allday a:hover	{ text-decoration:underline;}
+
+.eventbg2_1	 		{ background-color: #00992c; border: 1px solid #00790c; }
+.eventbg2_2	 		{ background-color: #00e400; border: 1px solid #00c400; }
+.eventbg2_3	 		{ background-color: #007070; border: 1px solid #005050; }
+.eventbg2_4	 		{ background-color: #7adf24; border: 1px solid #5abf04; }
+.eventbg2_5	 		{ background-color: #708000; border: 1px solid #506000; }
+.eventbg2_6	 		{ background-color: #ccb21f; border: 1px solid #ac9200; }
+.eventbg2_7	 		{ background-color: #12c2af; border: 1px solid #00a28f; }
+
+.alldaybg_8 		{background: url(images/allday_8.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_8	 		{ background-color: #008888; padding: 2px;}
+.eventbg2_8	 		{ background-color: #00AAAA; border: 1px solid #73738C; }
+
+.alldaybg_9 		{background: url(images/allday_9.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_9	 		{ background-color: #DDDD00; padding: 2px;}
+.eventbg2_9	 		{ background-color: #FFFF00; border: 1px solid #73738C; }
+
+.alldaybg_10 		{background: url(images/allday_10.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_10	 		{ background-color: #000068; padding: 2px;}
+.eventbg2_10 		{ background-color: #000089; border: 1px solid #73738C; }
+
+.alldaybg_11 		{background: url(images/allday_11.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_11	 		{ background-color: #009A78; padding: 2px;}
+.eventbg2_11 		{ background-color: #00AA88; border: 1px solid #73738C; }
+
+
+.dayborder 		{ background-color: #fff; border-top: 1px solid #A1A5A9; }
+.dayborder2 	{ background-color: #fff; border-top: 1px dashed #ccc; }
+
+.title  		{ background-image: url(images/time_bg.gif); padding: 5px; }
+.title h1 		{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;}
+
+/* Month View */
+
+.monthback		{ background-color: #A1A5A9; }
+.monthreg		{ background-color: #fff; height: 105px; width: 105px; text-align: left; vertical-align: top; }
+.monthoff		{ background-color: #F2F2F2; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.monthon		{ background-color: #F2F9FF; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.montheventtop	{ background-image: url(images/side_bg.gif); border-top: 1px solid #A1A5A9; }
+.montheventline	{ border-right: 1px dotted #A1A5A9; }
+
+/* Year View */
+
+.medtitle		{ background-image: url(images/side_bg.gif); height: 20px; margin-top: 3px; font-weight: 900; }
+.yearreg		{ background-color: #fff; height: 30px; width: 30px; text-align: right; vertical-align: top; font-size: 9px; }
+.yearoff		{ background-color: #F2F2F2; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearon			{ background-color: #F2F9FF; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearmonth		{ background-color: #ccc; }
+.yearweek		{ background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; }
+
+
+/* older styles */
+
+/*.eventborder	{ background-image: url(images/day_title.gif); border: 1px #006699 solid; }*/
+.eventborder	{ background-color: #006600; border: 1px #003300 solid; }
+
+.eventbg	 	{ background-color: #339933; }
+
+.calborder 		{ background-color: #ffffff; border: 1px #A1A5A9 solid; }
+
+.dateback		{ background-color: #eee; }
+.weekborder 	{ border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
+.weekborder2 	{ border-right: 1px solid #A1A5A9; }
+.timeborder 	{ border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); }
+.timeborder2 	{ border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); }
+.navback 		{ background-image: url(images/time_bg.gif); }
+.sideback 		{ background-image: url(images/side_bg.gif); }
+
+
+/* Link colors and attributes */
+/* This is the main link style */
+a.psf			{ text-decoration:	none; }
+a.psf:link		{ color: #009900; }
+a.psf:visited	{ color: #009900; }
+a.psf:active	{ color: #009900; }
+a.psf:hover		{ color: #003300; text-decoration: underline; }
+
+/* This is the link style for the mini-cals */	
+a.ps2			{ text-decoration:	underline; }
+a.ps2:link		{ color: #009900; }
+a.ps2:visited	{ color: #009900; }
+a.ps2:active	{ color: #33CC66; }
+a.ps2:hover		{ color: #003300; }
+
+/* This is the link style for year months */	
+a.ps3			{ text-decoration:	none; }
+a.ps3:link		{ color: #000; }
+a.ps3:visited	{ color: #000; }
+a.ps3:active	{ color: #000; }
+a.ps3:hover		{ color: #000; text-decoration: underline; }
+
+/* This is the link style for events */	
+a.ps			{ text-decoration:	none; }
+a.ps:link		{ color: #fff; }
+a.ps:visited	{ color: #fff; }
+a.ps:active		{ color: #fff; }
+a.ps:hover		{ color: #fff; text-decoration: underline; }
+	
+/* Body attributes */
+
+body			{ background-image: url(images/background.gif); }
+
+/* CSS definitions for fonts */
+
+.V9 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #000000; }
+.V10W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration:	none;}
+.V9W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; text-decoration:	none;}
+.V10WB 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: 900; }
+.V9G 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #666666; }
+.V10 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
+.V9BOLD 		{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
+.G10 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; }
+.G10B 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
+.G10BOLD 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; }
+.G10G 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; }
+.V12 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;  color: #000000; }
+/*h1 				{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000000; }*/
+.eventfont 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
+
+
+/* Length of the form drop downs */
+
+.query_style 	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style 	{ font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }
+.login_style	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; }
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/error.tpl newcal/templates/green/error.tpl
--- oldcal/templates/green/error.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/error.tpl	2004-12-18 13:37:52.000000000 -0500
@@ -0,0 +1,43 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top" align="center">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+							<tr>
+								<td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
+								<td align="center" valign="middle" width="98%" class="sideback"><b>{L_ERROR_WINDOW}</b></td>
+								<td class="sideback" width="1%"></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td>
+                                                <table width="100%" border="0" cellspacing="0" cellpadding="10" class="G10B">   
+                                                        <tr>
+                                                                <td align="center" valign="top" class="V12">
+                                                                        {ERROR_MSG}<br />
+                                                                        [<span class="G10"><a href="http://phpicalendar.net/documentation/index.php?title=Error_message_meanings">What does this mean?</a></span>]
+									<br />
+									<br />
+									{ERROR_CALENDAR}
+									<br />
+									<br />
+									{L_ERROR_BACK}
+									<br />
+                                                                        
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/event.tpl newcal/templates/green/event.tpl
--- oldcal/templates/green/event.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/event.tpl	2005-09-06 22:52:07.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT_TEXT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on -->
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					<!-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>{L_ATTENDEE}</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/footer.tpl newcal/templates/green/footer.tpl
--- oldcal/templates/green/footer.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/footer.tpl	2006-04-09 21:17:22.000000000 -0400
@@ -0,0 +1,15 @@
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
+<!-- switch rss_valid on -->
+<p>
+<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
+<img src="{BASE}images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" /></a>
+</p>
+<!-- switch rss_valid off -->
+<!-- switch rss_powered on -->
+{L_THIS_SITE_IS} <a class="psf" href="{BASE}rss/index.php?cal={CAL}&amp;getdate={GETDATE}">RSS-Enabled</a><br />
+<!-- switch rss_powered off -->
+<!--Page generated in {GENERATED1} seconds.<br />
+Template generated in {GENERATED2} seconds.-->
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/header.tpl newcal/templates/green/header.tpl
--- oldcal/templates/green/header.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/header.tpl	2006-04-02 05:29:55.000000000 -0400
@@ -0,0 +1,20 @@
+<!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>
+	<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
+	<title>{CALENDAR_NAME} - {DISPLAY_DATE}</title>
+  	<link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}templates/{TEMPLATE}/default.css" />
+	<!-- switch rss_available on -->
+	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
+	<!-- switch rss_available off -->		
+	{EVENT_JS}
+</head>
+<body>
+<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
+  <input type="hidden" name="date" id="date" value="" />
+  <input type="hidden" name="time" id="time" value="" />
+  <input type="hidden" name="uid" id="uid" value="" />
+  <input type="hidden" name="cpath" id="cpath" value="" />
+  <input type="hidden" name="event_data" id="event_data" value="" />
+</form>
Binary files oldcal/templates/green/images/.DS_Store and newcal/templates/green/images/.DS_Store differ
Binary files oldcal/templates/green/images/allday_1.gif and newcal/templates/green/images/allday_1.gif differ
Binary files oldcal/templates/green/images/allday_2.gif and newcal/templates/green/images/allday_2.gif differ
Binary files oldcal/templates/green/images/allday_3.gif and newcal/templates/green/images/allday_3.gif differ
Binary files oldcal/templates/green/images/allday_4.gif and newcal/templates/green/images/allday_4.gif differ
Binary files oldcal/templates/green/images/allday_5.gif and newcal/templates/green/images/allday_5.gif differ
Binary files oldcal/templates/green/images/allday_6.gif and newcal/templates/green/images/allday_6.gif differ
Binary files oldcal/templates/green/images/allday_7.gif and newcal/templates/green/images/allday_7.gif differ
Binary files oldcal/templates/green/images/allday_bg.gif and newcal/templates/green/images/allday_bg.gif differ
Binary files oldcal/templates/green/images/allday_dot.gif and newcal/templates/green/images/allday_dot.gif differ
Binary files oldcal/templates/green/images/back.gif and newcal/templates/green/images/back.gif differ
Binary files oldcal/templates/green/images/background.gif and newcal/templates/green/images/background.gif differ
Binary files oldcal/templates/green/images/day_on.gif and newcal/templates/green/images/day_on.gif differ
Binary files oldcal/templates/green/images/day_title.gif and newcal/templates/green/images/day_title.gif differ
Binary files oldcal/templates/green/images/download_arrow.gif and newcal/templates/green/images/download_arrow.gif differ
Binary files oldcal/templates/green/images/event_dot.gif and newcal/templates/green/images/event_dot.gif differ
Binary files oldcal/templates/green/images/left_arrows.gif and newcal/templates/green/images/left_arrows.gif differ
Binary files oldcal/templates/green/images/left_day.gif and newcal/templates/green/images/left_day.gif differ
Binary files oldcal/templates/green/images/month_on.gif and newcal/templates/green/images/month_on.gif differ
Binary files oldcal/templates/green/images/monthdot_1.gif and newcal/templates/green/images/monthdot_1.gif differ
Binary files oldcal/templates/green/images/monthdot_2.gif and newcal/templates/green/images/monthdot_2.gif differ
Binary files oldcal/templates/green/images/monthdot_3.gif and newcal/templates/green/images/monthdot_3.gif differ
Binary files oldcal/templates/green/images/monthdot_4.gif and newcal/templates/green/images/monthdot_4.gif differ
Binary files oldcal/templates/green/images/monthdot_5.gif and newcal/templates/green/images/monthdot_5.gif differ
Binary files oldcal/templates/green/images/monthdot_6.gif and newcal/templates/green/images/monthdot_6.gif differ
Binary files oldcal/templates/green/images/monthdot_7.gif and newcal/templates/green/images/monthdot_7.gif differ
Binary files oldcal/templates/green/images/printer.gif and newcal/templates/green/images/printer.gif differ
Binary files oldcal/templates/green/images/right_arrows.gif and newcal/templates/green/images/right_arrows.gif differ
Binary files oldcal/templates/green/images/right_day.gif and newcal/templates/green/images/right_day.gif differ
Binary files oldcal/templates/green/images/search.gif and newcal/templates/green/images/search.gif differ
Binary files oldcal/templates/green/images/shadow_l.gif and newcal/templates/green/images/shadow_l.gif differ
Binary files oldcal/templates/green/images/shadow_m.gif and newcal/templates/green/images/shadow_m.gif differ
Binary files oldcal/templates/green/images/shadow_r.gif and newcal/templates/green/images/shadow_r.gif differ
Binary files oldcal/templates/green/images/side_bg.gif and newcal/templates/green/images/side_bg.gif differ
Binary files oldcal/templates/green/images/smallicon.gif and newcal/templates/green/images/smallicon.gif differ
Binary files oldcal/templates/green/images/spacer.gif and newcal/templates/green/images/spacer.gif differ
Binary files oldcal/templates/green/images/time_bg.gif and newcal/templates/green/images/time_bg.gif differ
Binary files oldcal/templates/green/images/week_on.gif and newcal/templates/green/images/week_on.gif differ
Binary files oldcal/templates/green/images/year_on.gif and newcal/templates/green/images/year_on.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/month.tpl newcal/templates/green/month.tpl
--- oldcal/templates/green/month.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/month.tpl	2005-11-19 01:56:27.000000000 -0500
@@ -0,0 +1,88 @@
+{HEADER}
+<center>
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr valign="top">
+						<td align="left" width="615" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+						<td align="right" width="120" class="navback">	
+							<div style="padding-top: 3px;">
+							<table width="120" border="0" cellpadding="0" cellspacing="0">
+								<tr valign="top">
+									<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+									<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+									<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+									<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+								</tr>
+							</table>
+							</div>
+						</td>
+					</tr>  			
+				</table>
+			</td>
+		</tr>	
+	</table>
+	{MONTH_LARGE|+0}
+	<table width="735" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<br />
+	{CALENDAR_NAV}
+	<!-- switch showbottom on -->
+	<br />
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle" bgcolor="white">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td align="right" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={PREV_MONTH}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="{L_PREV}" border="0" align="right" /></a></td>
+						<td align="center" width="20%" class="title" nowrap="nowrap" valign="middle"><h1>{L_THIS_MONTHS}</h1></td>
+						<td align="left" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={NEXT_MONTH}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="{L_NEXT}" border="0" align="left" /></a></td>
+					</tr>
+				</table>
+			</td>
+		</tr>	
+		<tr>
+			<td>
+				<table width="100%" cellspacing="1" cellpadding="4" border="0">
+					<!-- loop showbottomevents_odd on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td>
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_odd off -->
+					<!-- loop showbottomevents_even on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap" bgcolor="#EEEEEE">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td bgcolor="#EEEEEE">
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_even off -->
+				</table>
+			</td>
+		</tr>
+	</table>
+	<table width="737" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<!-- switch showbottom off -->
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/month_large.tpl newcal/templates/green/month_large.tpl
--- oldcal/templates/green/month_large.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/month_large.tpl	2004-05-19 23:59:37.000000000 -0400
@@ -0,0 +1,42 @@
+<table width="735" border="0" cellspacing="1" cellpadding="2" class="monthback">
+	<tr>
+		<!-- loop weekday on -->
+		<td valign="top" width="105" height="12" class="dateback">
+			<center class="V9BOLD">{LOOP_WEEKDAY}</center>
+		</td>
+		<!-- loop weekday off -->
+	</tr>
+	<!-- loop monthweeks on -->
+	<tr>
+		<!-- loop monthdays on -->
+		<!-- switch notthismonth on -->
+		<td class="monthoff">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch notthismonth off -->
+		<!-- switch istoday on -->
+		<td class="monthon">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch istoday off -->
+		<!-- switch ismonth on -->
+		<td class="monthreg">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch ismonth off -->
+		<!-- loop monthdays off -->
+	</tr>
+	<!-- loop monthweeks off -->
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/month_medium.tpl newcal/templates/green/month_medium.tpl
--- oldcal/templates/green/month_medium.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/month_medium.tpl	2006-03-23 19:59:55.000000000 -0500
@@ -0,0 +1,45 @@
+<table border="0" width="210" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td align="center" class="medtitle">{MONTH_TITLE}</td>
+	</tr>
+	<tr>
+		<td>
+			<table border="0" width="210" cellspacing="1" cellpadding="0" class="yearmonth">
+				<tr>
+					<!-- loop weekday on -->
+					<td class="yearweek">{LOOP_WEEKDAY}</td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr>
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td class="yearoff">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td class="yearon">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td class="yearreg">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->	
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/month_small.tpl newcal/templates/green/month_small.tpl
--- oldcal/templates/green/month_small.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/month_small.tpl	2004-09-13 15:35:23.000000000 -0400
@@ -0,0 +1,38 @@
+<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+	<tr>
+                <td align="center" class="sideback"><div style="height:16px;"><b>{MONTH_TITLE}</b></div></td>
+	</tr>
+	<tr>
+		<td align="center">
+			<table border="0" cellspacing="0" cellpadding="0">
+				<tr align="center">
+					<!-- loop weekday on -->	
+					<td width="22"><b>{LOOP_WEEKDAY}</b></td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr align="center">
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="G10G">{DAY}</span></a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td>
+						<a class="ps2" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->
+			</table>
+			<img src="images/spacer.gif" width="1" height="3" alt=" " /><br />
+		</td>
+	</tr>
+</table>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/preferences.tpl newcal/templates/green/preferences.tpl
--- oldcal/templates/green/preferences.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/preferences.tpl	2006-03-23 20:00:10.000000000 -0500
@@ -0,0 +1,102 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_PREFERENCES}</h1><span class="V9G">{L_PREFS_SUBHEAD}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" " /></td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="5">	
+				<!-- switch message on -->
+				<tr>
+					<td colspan="2" align="center"><font class="G10BOLD">{MESSAGE}</font></td>
+				</tr>
+				<!-- switch message off -->
+				<tr>
+					<td valign="top" align="left">
+					<form action="preferences.php?action=setcookie" method="post">
+					<table border="0" width="100%" cellspacing="2" cellpadding="2" align="center">
+						<tr align="left" valign="top">
+							<td width="80%" nowrap="nowrap">{L_SELECT_LANG}:</td>
+							<td width="10%"><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td width="10%"><select name="cookie_language" class="query_style">{LANGUAGE_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_CAL}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_calendar" class="query_style">{CALENDAR_SELECT}</select>
+							<input type="hidden" name="cpath" value="{CPATH}"/></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_VIEW}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_view" class="query_style">{VIEW_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_TIME}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_time" class="query_style">{TIME_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_DAY}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_startday" class="query_style">{STARTDAY_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_STYLE}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_style" class="query_style">{STYLE_SELECT}</select></td>
+						</tr>
+						<!-- switch cookie_already_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_UNSET_PREFS}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="checkbox" name="unset" value="true" /></td>
+						</tr>
+						<!-- switch cookie_already_set off -->
+						<!-- switch cookie_not_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">&nbsp;</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="submit" name="set" value="{L_SET_PREFS}" /></td>
+						</tr>
+						<!-- switch cookie_not_set off -->
+					</table>
+					</form>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/print.tpl newcal/templates/green/print.tpl
--- oldcal/templates/green/print.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/print.tpl	2006-03-23 20:00:58.000000000 -0500
@@ -0,0 +1,81 @@
+{HEADER}
+<center>
+<table border="0" width="650" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}<br>
+					<a class="psf" href="{PRINTVIEW}.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day">Calendar view</a></span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="90" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+      	</td>
+    </tr>
+	<tr>
+		<td colspan="3" class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td colspan="3">
+			<table border="0" cellspacing="0" cellpadding="5" width="100%">
+				<tr>
+					<td align="left" valign="top">
+						<!-- switch some_events on -->
+						<div class="V12"><b>{DAYOFMONTH}</b></div>
+						<!-- loop events on -->
+						<div style="padding: 6px;">
+							<table width="100%" border="0" cellspacing="1" cellpadding="1">
+								<tr>
+									<td width="100" class="G10BOLD">{L_TIME}:</td>
+									<td align="left" class="G10B">{EVENT_START}</td>
+								</tr>
+								<!-- switch location_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_LOCATION}:</td>
+									<td valign="top" align="left" class="G10B">{LOCATION}</td>
+								</tr>
+								<!-- switch location_events off -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+									<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+								</tr>
+								<!-- switch description_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+									<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+								</tr>
+								<!-- switch description_events off -->
+							</table>
+						</div>
+						<!-- loop events off -->
+						<!-- switch some_events off -->
+															
+						<!-- switch no_events on -->
+						<div class="V12"><b>{L_NO_RESULTS}</b></div>
+						<!-- switch no_events off -->
+					</td>
+				</tr>
+			</table>		
+		</td>
+	</tr>
+</table>
+<table width="650" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/rss_index.tpl newcal/templates/green/rss_index.tpl
--- oldcal/templates/green/rss_index.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/rss_index.tpl	2006-04-05 02:45:50.000000000 -0400
@@ -0,0 +1,60 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="700" valign="top" align="center">
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{L_RSS_INFO}</h1><span class="V9G">{L_RSS_SUBHEAD}</span></div></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>  			
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td class="dayborder"><img src="../images/spacer.gif" width="1" height="5" alt=" " /></td>
+				</tr>
+				<tr>
+					<td>
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">	
+							<tr>
+								<td width="2%"></td>
+								<td width="98%" valign="top" align="left">
+									<br />
+									<br />
+									{RSS_LIST}
+									<br />
+									<p>{RSS_DOCINFO}</p>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="700" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/search.tpl newcal/templates/green/search.tpl
--- oldcal/templates/green/search.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/search.tpl	2005-10-30 01:15:47.000000000 -0500
@@ -0,0 +1,115 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_RESULTS}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" "></td>
+	</tr>
+	<tr>
+		<td align="left">
+			<div style="padding: 10px;">
+				<div><p class="V12">{L_QUERY}: {FORMATTED_SEARCH}</p></div>
+				<!-- switch results on -->
+				<font class="V12"><b><a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></b></font><br />
+				<div style="margin-left: 10px; margin-bottom: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="120" class="G10BOLD">{L_TIME}:</td>
+							<td align="left" class="G10B">{EVENT_START}</td>
+						</tr><tr>
+							<td width="120" class="G10BOLD">{L_LOCATION}:</td>
+							<td align="left" class="G10B">{LOCATION}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch recur on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="G10B">{RECUR}</td>
+						</tr>
+						<!-- switch recur off -->
+						<!-- switch description on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+						</tr>
+						<!-- switch description off -->
+					</table>
+				</div>
+				<!-- switch exceptions on -->		
+				<font class="V10"><i>{L_EXCEPTION}</i>: <a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></font><br />
+				<div style="margin-left: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="100" class="V10">{L_TIME}:</td>
+							<td align="left" class="V10">{EVENT_START}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="V10">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="V10">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch except_recur on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_RECUR}</td>
+						</tr>
+						<!-- switch except_recur off -->
+						<!-- switch except_description on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_DESCRIPTION}</td>
+						</tr>
+						<!-- switch except_description off -->
+					</table>
+				</div>
+				<!-- switch exceptions off -->		
+				<br />
+				<!-- switch results off -->
+				
+				<!-- switch no_results on -->
+				<div align="center">
+					<p class="V12">{L_NO_RESULTS}</p>
+				</div>
+				<!-- switch no_results off -->
+				
+				<div align="center">
+					{SEARCH_BOX}
+				</div>
+				<br />
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/search_box.tpl newcal/templates/green/search_box.tpl
--- oldcal/templates/green/search_box.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/search_box.tpl	2006-03-23 20:01:37.000000000 -0500
@@ -0,0 +1,9 @@
+<hr />
+<div class = 'G10BOLD'>{L_SEARCH}:</div>
+<form action="search.php" method="GET">
+	<input type="hidden" name="cpath" value="{CPATH}"/>
+	<input type="hidden" name="cal" value="{CAL}"/>
+	<input type="hidden" name="getdate" value="{GETDATE}"/>
+	<input type="text" size="15" name="query" value=""/>
+	<input type="image" src="templates/{TEMPLATE}/images/search.gif" name="submit" value="Search"/>
+</form>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/seminar.tpl newcal/templates/green/seminar.tpl
--- oldcal/templates/green/seminar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/seminar.tpl	2004-09-27 12:31:30.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on --
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>Host:</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/sidebar.tpl newcal/templates/green/sidebar.tpl
--- oldcal/templates/green/sidebar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/sidebar.tpl	2006-03-23 20:02:15.000000000 -0500
@@ -0,0 +1,225 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
+
+{MONTH_SMALL|-1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+0}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/todo.tpl newcal/templates/green/todo.tpl
--- oldcal/templates/green/todo.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/todo.tpl	2004-12-18 13:35:39.000000000 -0500
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+        <meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{VTODO_TEXT}</p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch priority on -->
+					<b>{L_PRIORITY}</b>: {PRIORITY}<br />
+					<!-- switch priority off -->
+					<!-- switch start_date on -->
+					<b>{L_CREATED}</b>: {START_DATE}<br />
+					<!-- switch start_date off -->
+					<!-- switch due_date on -->
+					<b>{L_DUE}</b>: {DUE_DATE}<br />
+					<!-- switch due_date off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/week.tpl newcal/templates/green/week.tpl
--- oldcal/templates/green/week.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/week.tpl	2005-11-19 01:59:28.000000000 -0500
@@ -0,0 +1,117 @@
+{HEADER}
+<center>
+	<table border="0" width="770" cellspacing="0" cellpadding="0">
+		<tr>
+			<td width="610" valign="top">
+				<table width="610" border="0" cellspacing="0" cellpadding="0" class="calborder">
+					<tr>
+						<td align="center" valign="middle">
+							<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="490" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>     			
+						</table>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+								<tr>
+									<td align="center" valign="top">
+										<table width="100%" border="0" cellspacing="0" cellpadding="0">
+											<tr>
+												<td align="left" valign="top" width="15" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_WEEK}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_WEEK}">&laquo;</a></div>
+												</td>
+												<td align="left" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_DAY}">&lsaquo;</a></div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_DAY}">&rsaquo;</a>&nbsp;</div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_WEEK}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_WEEK}">&raquo;</a>&nbsp;</div>
+												</td>
+												<td width="1"></td>
+												<!-- loop daysofweek on -->
+												<td width="80" {COLSPAN} align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={DAYLINK}'">
+													<a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="V9BOLD">{DAY}</span></a> 
+												</td>
+												<!-- loop daysofweek off -->
+											</tr>
+											<tr valign="top" id="allday">
+												<td width="60" class="rowOff2" colspan="4"><img src="images/spacer.gif" width="60" height="1" alt=" " /></td>
+												<td width="1"></td>
+												<!-- loop alldaysofweek on -->
+												<td width="80" {COLSPAN} class="rowOff">
+													<!-- loop allday on -->
+													<div class="alldaybg_{CALNO}">
+														{ALLDAY}
+														<img src="images/spacer.gif" width="80" height="1" alt=" " />
+													</div>
+													<!-- loop allday off -->
+												</td>
+												<!-- loop alldaysofweek off -->
+											</tr>
+											<!-- loop row on -->
+											<tr>
+												<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<!-- loop row off -->
+											<!-- loop event on -->
+											<div class="eventfont">
+												<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b></div>
+												<div class="padd">{EVENT}</div>
+											</div>
+											<!-- loop event off -->
+										</table>	
+									</td>
+								</tr>
+							</table>
+						</td>
+					</tr>
+				</table>
+				<table width="100%" border="0" cellpadding="0" cellspacing="0">
+					<tr>
+						<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					</tr>
+				</table>
+			</td>
+			<td width="10">
+				<img src="images/spacer.gif" width="10" height="1" alt=" " />
+			</td>
+			<td width="170" valign="top">
+				{SIDEBAR}
+			</td>
+		</tr>
+	</table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/green/year.tpl newcal/templates/green/year.tpl
--- oldcal/templates/green/year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/green/year.tpl	2006-03-23 20:02:32.000000000 -0500
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+        <table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
+                <tr>
+                        <td align="center" valign="middle" bgcolor="white">
+                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                        <tr>
+                                                <td align="left" width="120" class="navback">
+                                                        &nbsp;
+                                                </td>
+                                                <td class="navback">
+                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                                                <tr>
+                                                                        <td align="right" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={PREV_YEAR}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="[Previous Year]" border="0" align="right" /></a>
+                                                                        </td>
+                                                                        <td align="center" width="10%" class="title" nowrap="nowrap" valign="middle">
+                                                                                <h1>{THIS_YEAR}</h1>
+                                                                        </td>
+                                                                        <td align="left" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={NEXT_YEAR}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="[Next Year]" border="0" align="left" /></a>
+                                                                        </td>
+                                                                </tr>
+                                                        </table>
+                                                </td>
+                                                <td align="right" width="120" class="navback">
+                                                        <table width="120" border="0" cellpadding="0" cellspacing="0">
+                                                                <tr>
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+                                                        </tr>
+                                                        </table>
+                                                </td>
+                                        </tr>
+                                </table>
+                        </td>
+                </tr>
+        </table>
+        <br />
+        <table border="0" width="670" cellspacing="0" cellpadding="0">
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|01}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|02}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|03}
+                        </td>
+			<td width="20" rowspan='8'>
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td rowspan='8' valign='top'>{SIDEBAR}</td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|04}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|05}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|06}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|07}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|08}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|09}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|10}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|11}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|12}
+                        </td>
+                </tr>
+        </table>
+</center>
+{FOOTER}
Binary files oldcal/templates/grey/.DS_Store and newcal/templates/grey/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/admin.tpl newcal/templates/grey/admin.tpl
--- oldcal/templates/grey/admin.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/admin.tpl	2005-07-11 04:01:16.000000000 -0400
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+<table border="0" width="600" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_ADMIN_HEADER}</h1><span class="V9G">{L_ADMIN_SUBHEAD}</span></td>
+					<td align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+                                                                <td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td align="right">
+			<!-- switch logged_in2 on -->
+                        <a href="index.php?action=logout">{L_LOGOUT}</a>&nbsp;
+			<!-- switch logged_in2 off -->
+		</td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+				<tr>
+					<td width="2%"></td>
+					<td width="98%" valign="top" align="left">
+						<!-- switch login_error on -->
+                                                <font color="red">{L_INVALID_LOGIN}</font><br /><br />
+						<!-- switch login_error off -->
+	
+						<!-- switch display_login on -->
+                                                <form action="index.php?action=login" method="post">
+							<table cellspacing="0" cellpadding="0">
+								<tr>
+									<td nowrap>{L_USERNAME}: </td>
+									<td align="left"><input type="text" name="username"></td>
+								</tr>
+								<tr>
+									<td>{L_PASSWORD}: </td>
+									<td align="left"><input type="password" name="password"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td align="left"><input type="submit" value="{L_LOGIN}"></td>
+								</tr>
+                                                                <!--
+								<tr>
+									<td align="center" colspan="3">{LOGIN_ERROR}&nbsp;</td>
+								</tr>
+                                                                -->
+							</table>
+						</form>
+						<!-- switch display_login off -->
+						
+						
+						<!-- switch logged_in on -->
+                                                <b>{L_ADDUPDATE_CAL}</b><br />
+                                                {L_ADDUPDATE_DESC}<br /><br />
+                                                <form action="index.php" method="post" enctype="multipart/form-data">
+							<input type="hidden" name="action" value="addupdate">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								<tr>
+									<td nowrap>{L_CAL_FILE} 1: </td>
+									<td><input type="file" name="calfile[1]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 2: </td>
+									<td><input type="file" name="calfile[2]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 3: </td>
+									<td><input type="file" name="calfile[3]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 4: </td>
+									<td><input type="file" name="calfile[4]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 5: </td>
+									<td><input type="file" name="calfile[5]"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td><input type="submit" value="{L_SUBMIT}"></td>
+								</tr>
+								<tr>
+									<td align="center" colspan="2">{ADDUPDATE_MSG} &nbsp;</td>
+								</tr>
+							</table>
+						</form>
+						
+						<b>{L_DELETE_CAL}</b>
+                                                <form action="index.php" method="post">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								{DELETE_TABLE}
+							</table>
+							<input type="hidden" name="action" value="delete">
+							<p><input type="submit" value="{L_DELETE}"></p>
+							<p>{DELETE_MSG} &nbsp;</p>
+						</form>
+						
+						<!-- switch logged_in off -->
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="600" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+{FOOTER}
+
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/calendar_nav.tpl newcal/templates/grey/calendar_nav.tpl
--- oldcal/templates/grey/calendar_nav.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/calendar_nav.tpl	2006-03-23 19:57:09.000000000 -0500
@@ -0,0 +1,113 @@
+<table border="0" width="737" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="1%" valign="top" align="right">
+			{MONTH_SMALL|-1}
+			<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+		<td width="98%" valign="top" align="center">
+			<table border="0" width="330" cellspacing="0" cellpadding="0">
+				<tr>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{L_JUMP}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding: 5px;">
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+										<input type="hidden" name="cpath" value="{CPATH}"/>
+
+										</form>
+										<!-- switch show_search on -->
+										{SEARCH_BOX}
+										<!-- switch show_search off -->
+										<!-- switch show_goto on -->
+										<form style="margin-bottom:0;" action="day.php" method="get"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<input type="hidden" name="cal" value="{URL_CAL}"/>
+											<input type="text" style="width:160px; font-size:10px" name="jumpto_day"/>
+											<input type="submit" value="Go"/>
+										</form>
+										<!-- switch show_goto off -->
+										<hr />
+										<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<input type="hidden" name="getdate" value="{GETDATE}"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+											<input type="submit" value="Go"/>
+										</form>
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+					<td>
+						<img src="images/spacer.gif" width="20" height="1" alt=" " />
+					</td>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{SIDEBAR_DATE}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding-left: 5px;">
+										<b>{L_LEGEND}:</b><br />
+										{LEGEND}
+										<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+										<!-- switch allow_preferences on -->
+										<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+										<!-- switch allow_preferences off -->
+										<!-- switch display_download on -->
+										<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+										<!-- switch display_download off -->
+										<!-- switch is_logged_in on -->
+										<a class="psf" href="{SCRIPT_NAME}?{QUERYS}">Logout {USERNAME}</a>
+										<!-- switch is_logged_in off -->
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+		<td width="1%" valign="top" align="left">
+			{MONTH_SMALL|+1}
+			<table width="170" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/day.tpl newcal/templates/grey/day.tpl
--- oldcal/templates/grey/day.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/day.tpl	2005-11-19 01:55:40.000000000 -0500
@@ -0,0 +1,104 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>
+							<tr>	
+								<td colspan="2">
+									<table width="100%" border="0" cellspacing="0" cellpadding="2">
+										<tr>
+											<td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}">&laquo;</a></span>
+											</td>
+											<!-- loop daysofweek on -->
+											<td width="14%" align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={DAYLINK}'">
+												<span class="V9BOLD"><a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a></span>
+											</td>
+											<!-- loop daysofweek off -->
+											<td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}">&raquo;</a></span>
+											</td>
+										</tr>	
+									</table>
+								</td>
+							</tr>      			
+						</table>
+					</td>
+				</tr>
+				<tr id="allday">
+					<td>
+						<!-- loop allday on -->
+						<div class="alldaybg_{CALNO}">
+							{ALLDAY}
+						</div>
+						<!-- loop allday off -->
+					</td>
+				</tr>
+      			<tr>
+					<td align="center" valign="top" colspan="3">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<!-- loop row on -->
+							<tr>
+								<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<!-- loop row off -->
+							<!-- loop event on -->
+							<div class="eventfont">
+								<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b> - {EVENT_END}</div>
+								<div class="padd">{EVENT}</div>
+							</div>
+							<!-- loop event off -->
+						</table>
+					</td>
+				</tr>
+        	</table>
+        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+    	</td>
+		<td width="10"><img src="images/spacer.gif" width="10" height="1" alt=" " /></td>
+		<td width="170" valign="top">
+			{SIDEBAR}
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/default.css newcal/templates/grey/default.css
--- oldcal/templates/grey/default.css	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/default.css	2006-04-09 15:51:17.000000000 -0400
@@ -0,0 +1,139 @@
+/* Style sheet for the grey calendar */
+
+table, td {font: 11px Verdana, Arial, sans-serif; color: #000;}
+
+/* Background images for tables */
+.tbll	{background: url(images/shadow_l.gif) no-repeat; width:8px}
+.tblbot	{background: url(images/shadow_m.gif) repeat-x; width:100%}
+.tblr	{background: url(images/shadow_r.gif) no-repeat; width:8px}
+
+.alldaybg_1 {background: url(images/allday_1.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_2 {background: url(images/allday_2.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_3 {background: url(images/allday_3.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_4 {background: url(images/allday_4.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_5 {background: url(images/allday_5.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_6 {background: url(images/allday_6.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+
+.rowOn			{ background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOn2			{ background-color: #cfc; border-top: 1px solid #fff; }
+.rowOff			{ background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOff2		{ background-color: #E1E8F1; border-top: 1px solid #fff; }
+.rowToday		{ background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+
+.padd			{ padding: 2px; }
+
+/* Styles for day and week events (varies)*/
+.eventbg_1	 	{ background-color: #303030; padding: 2px;}
+.eventbg_2	 	{ background-color: #707060; padding: 2px;}
+.eventbg_3	 	{ background-color: #505060; padding: 2px;}
+.eventbg_4	 	{ background-color: #606060; padding: 2px;}
+.eventbg_5	 	{ background-color: #705f60; padding: 2px;}
+.eventbg_6	 	{ background-color: #608060; padding: 2px;}
+.eventbg_7	 	{ background-color: #a0a090; padding: 2px;}
+
+
+.eventbg2_1	 		{ background-color: #505050; border: 1px solid #303030; }
+.eventbg2_2	 		{ background-color: #909080; border: 1px solid #707060; }
+.eventbg2_3	 		{ background-color: #707080; border: 1px solid #505060; }
+.eventbg2_4	 		{ background-color: #808080; border: 1px solid #606060; }
+.eventbg2_5	 		{ background-color: #907f80; border: 1px solid #705f60; }
+.eventbg2_6	 		{ background-color: #80a080; border: 1px solid #608060; }
+.eventbg2_7	 		{ background-color: #c0c0b0; border: 1px solid #a0a090; }
+
+.dayborder 		{ background-color: #fff; border-top: 1px solid #A1A5A9; }
+.dayborder2 	{ background-color: #fff; border-top: 1px dashed #ccc; }
+
+.title  		{ background-image: url(images/time_bg.gif); padding: 5px; }
+.title h1 		{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;}
+
+/* Month View */
+
+.monthback		{ background-color: #A1A5A9; }
+.monthreg		{ background-color: #fff; height: 105px; width: 105px; text-align: left; vertical-align: top; }
+.monthoff		{ background-color: #F2F2F2; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.monthon		{ background-color: #F2F9FF; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.montheventtop	{ background-image: url(images/side_bg.gif); border-top: 1px solid #A1A5A9; }
+.montheventline	{ border-right: 1px dotted #A1A5A9; }
+
+/* Year View */
+
+.medtitle		{ background-image: url(images/side_bg.gif); height: 20px; margin-top: 3px; font-weight: 900; }
+.yearreg		{ background-color: #fff; height: 30px; width: 30px; text-align: right; vertical-align: top; font-size: 9px; }
+.yearoff		{ background-color: #F2F2F2; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearon			{ background-color: #F2F9FF; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearmonth		{ background-color: #ccc; }
+.yearweek		{ background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; }
+
+
+/* older styles */
+
+.eventborder	{ background-image: url(images/day_title.gif); border: 1px #006699 solid; }
+.eventbg	 	{ background-color: #6699CC; }
+
+.calborder 		{ background-color: #fff; border: 1px #A1A5A9 solid; }
+.dateback		{ background-color: #eee; }
+.weekborder 	{ border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
+.weekborder2 	{ border-right: 1px solid #A1A5A9; }
+.timeborder 	{ border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); }
+.timeborder2 	{ border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); }
+.navback 		{ background-image: url(images/time_bg.gif); }
+.sideback 		{ background-image: url(images/side_bg.gif); }
+
+
+/* Link colors and attributes */
+/* This is the main link style (varies) */
+a.psf			{ text-decoration:	none; }
+a.psf:link		{ color: #666; }
+a.psf:visited	{ color: #888; }
+a.psf:active	{ color: #666; }
+a.psf:hover		{ color: #333; text-decoration: underline; }
+
+/* This is the link style for the mini-cals (varies)*/	
+a.ps2			{ text-decoration:	underline; }
+a.ps2:link		{ color: #0066FF; }
+a.ps2:visited	{ color: #0066FF; }
+a.ps2:active	{ color: #3366CC; }
+a.ps2:hover		{ color: #000099; }
+
+/* This is the link style for year months */	
+a.ps3			{ text-decoration:	none; }
+a.ps3:link		{ color: #000; }
+a.ps3:visited	{ color: #000; }
+a.ps3:active	{ color: #000; }
+a.ps3:hover		{ color: #000; text-decoration: underline; }
+
+/* This is the link style for events */	
+a.ps			{ text-decoration:	none; }
+a.ps:link		{ color: #fff; }
+a.ps:visited	{ color: #fff; }
+a.ps:active		{ color: #fff; }
+a.ps:hover		{ color: #fff; text-decoration: underline; }
+	
+/* Body attributes */
+
+body			{ background-image: url(images/background.gif); }
+
+/* CSS definitions for fonts */
+
+.V9 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #000000; }
+.V10W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration:	none;}
+.V9W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; text-decoration:	none;}
+.V10WB 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: 900; }
+.V9G 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #666666; }
+.V10 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
+.V9BOLD 		{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
+.G10 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; }
+.G10B 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
+.G10BOLD 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; }
+.G10G 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; }
+.V12 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;  color: #000000; }
+/*h1 				{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000000; }*/
+.eventfont 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
+
+
+/* Length of the form drop downs */
+
+.query_style 	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style 	{ font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }
+.login_style	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; }
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/error.tpl newcal/templates/grey/error.tpl
--- oldcal/templates/grey/error.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/error.tpl	2004-12-18 13:37:52.000000000 -0500
@@ -0,0 +1,43 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top" align="center">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+							<tr>
+								<td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
+								<td align="center" valign="middle" width="98%" class="sideback"><b>{L_ERROR_WINDOW}</b></td>
+								<td class="sideback" width="1%"></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td>
+                                                <table width="100%" border="0" cellspacing="0" cellpadding="10" class="G10B">   
+                                                        <tr>
+                                                                <td align="center" valign="top" class="V12">
+                                                                        {ERROR_MSG}<br />
+                                                                        [<span class="G10"><a href="http://phpicalendar.net/documentation/index.php?title=Error_message_meanings">What does this mean?</a></span>]
+									<br />
+									<br />
+									{ERROR_CALENDAR}
+									<br />
+									<br />
+									{L_ERROR_BACK}
+									<br />
+                                                                        
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/event.tpl newcal/templates/grey/event.tpl
--- oldcal/templates/grey/event.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/event.tpl	2005-09-06 22:52:07.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT_TEXT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on -->
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					<!-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>{L_ATTENDEE}</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/footer.tpl newcal/templates/grey/footer.tpl
--- oldcal/templates/grey/footer.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/footer.tpl	2006-04-09 21:18:05.000000000 -0400
@@ -0,0 +1,15 @@
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
+<!-- switch rss_valid on -->
+<p>
+<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
+<img src="{BASE}images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" /></a>
+</p>
+<!-- switch rss_valid off -->
+<!-- switch rss_powered on -->
+{L_THIS_SITE_IS} <a class="psf" href="{BASE}rss/index.php?cal={CAL}&amp;getdate={GETDATE}">RSS-Enabled</a><br />
+<!-- switch rss_powered off -->
+<!--Page generated in {GENERATED1} seconds.<br />
+Template generated in {GENERATED2} seconds.-->
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/header.tpl newcal/templates/grey/header.tpl
--- oldcal/templates/grey/header.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/header.tpl	2006-04-02 05:30:11.000000000 -0400
@@ -0,0 +1,20 @@
+<!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>
+	<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
+	<title>{CALENDAR_NAME} - {DISPLAY_DATE}</title>
+  	<link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}templates/{TEMPLATE}/default.css" />
+	<!-- switch rss_available on -->
+	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
+	<!-- switch rss_available off -->		
+	{EVENT_JS}
+</head>
+<body>
+<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
+  <input type="hidden" name="date" id="date" value="" />
+  <input type="hidden" name="time" id="time" value="" />
+  <input type="hidden" name="uid" id="uid" value="" />
+  <input type="hidden" name="cpath" id="cpath" value="" />
+  <input type="hidden" name="event_data" id="event_data" value="" />  
+</form>
Binary files oldcal/templates/grey/images/.DS_Store and newcal/templates/grey/images/.DS_Store differ
Binary files oldcal/templates/grey/images/allday_1.gif and newcal/templates/grey/images/allday_1.gif differ
Binary files oldcal/templates/grey/images/allday_2.gif and newcal/templates/grey/images/allday_2.gif differ
Binary files oldcal/templates/grey/images/allday_3.gif and newcal/templates/grey/images/allday_3.gif differ
Binary files oldcal/templates/grey/images/allday_4.gif and newcal/templates/grey/images/allday_4.gif differ
Binary files oldcal/templates/grey/images/allday_5.gif and newcal/templates/grey/images/allday_5.gif differ
Binary files oldcal/templates/grey/images/allday_6.gif and newcal/templates/grey/images/allday_6.gif differ
Binary files oldcal/templates/grey/images/allday_7.gif and newcal/templates/grey/images/allday_7.gif differ
Binary files oldcal/templates/grey/images/allday_bg.gif and newcal/templates/grey/images/allday_bg.gif differ
Binary files oldcal/templates/grey/images/allday_dot.gif and newcal/templates/grey/images/allday_dot.gif differ
Binary files oldcal/templates/grey/images/back.gif and newcal/templates/grey/images/back.gif differ
Binary files oldcal/templates/grey/images/background.gif and newcal/templates/grey/images/background.gif differ
Binary files oldcal/templates/grey/images/day_on.gif and newcal/templates/grey/images/day_on.gif differ
Binary files oldcal/templates/grey/images/day_title.gif and newcal/templates/grey/images/day_title.gif differ
Binary files oldcal/templates/grey/images/download_arrow.gif and newcal/templates/grey/images/download_arrow.gif differ
Binary files oldcal/templates/grey/images/event_dot.gif and newcal/templates/grey/images/event_dot.gif differ
Binary files oldcal/templates/grey/images/left_arrows.gif and newcal/templates/grey/images/left_arrows.gif differ
Binary files oldcal/templates/grey/images/left_day.gif and newcal/templates/grey/images/left_day.gif differ
Binary files oldcal/templates/grey/images/month_on.gif and newcal/templates/grey/images/month_on.gif differ
Binary files oldcal/templates/grey/images/monthdot_1.gif and newcal/templates/grey/images/monthdot_1.gif differ
Binary files oldcal/templates/grey/images/monthdot_2.gif and newcal/templates/grey/images/monthdot_2.gif differ
Binary files oldcal/templates/grey/images/monthdot_3.gif and newcal/templates/grey/images/monthdot_3.gif differ
Binary files oldcal/templates/grey/images/monthdot_4.gif and newcal/templates/grey/images/monthdot_4.gif differ
Binary files oldcal/templates/grey/images/monthdot_5.gif and newcal/templates/grey/images/monthdot_5.gif differ
Binary files oldcal/templates/grey/images/monthdot_6.gif and newcal/templates/grey/images/monthdot_6.gif differ
Binary files oldcal/templates/grey/images/monthdot_7.gif and newcal/templates/grey/images/monthdot_7.gif differ
Binary files oldcal/templates/grey/images/printer.gif and newcal/templates/grey/images/printer.gif differ
Binary files oldcal/templates/grey/images/right_arrows.gif and newcal/templates/grey/images/right_arrows.gif differ
Binary files oldcal/templates/grey/images/right_day.gif and newcal/templates/grey/images/right_day.gif differ
Binary files oldcal/templates/grey/images/search.gif and newcal/templates/grey/images/search.gif differ
Binary files oldcal/templates/grey/images/shadow_l.gif and newcal/templates/grey/images/shadow_l.gif differ
Binary files oldcal/templates/grey/images/shadow_m.gif and newcal/templates/grey/images/shadow_m.gif differ
Binary files oldcal/templates/grey/images/shadow_r.gif and newcal/templates/grey/images/shadow_r.gif differ
Binary files oldcal/templates/grey/images/side_bg.gif and newcal/templates/grey/images/side_bg.gif differ
Binary files oldcal/templates/grey/images/smallicon.gif and newcal/templates/grey/images/smallicon.gif differ
Binary files oldcal/templates/grey/images/spacer.gif and newcal/templates/grey/images/spacer.gif differ
Binary files oldcal/templates/grey/images/time_bg.gif and newcal/templates/grey/images/time_bg.gif differ
Binary files oldcal/templates/grey/images/week_on.gif and newcal/templates/grey/images/week_on.gif differ
Binary files oldcal/templates/grey/images/year_on.gif and newcal/templates/grey/images/year_on.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/month.tpl newcal/templates/grey/month.tpl
--- oldcal/templates/grey/month.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/month.tpl	2005-11-19 01:56:27.000000000 -0500
@@ -0,0 +1,88 @@
+{HEADER}
+<center>
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr valign="top">
+						<td align="left" width="615" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+						<td align="right" width="120" class="navback">	
+							<div style="padding-top: 3px;">
+							<table width="120" border="0" cellpadding="0" cellspacing="0">
+								<tr valign="top">
+									<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+									<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+									<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+									<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+								</tr>
+							</table>
+							</div>
+						</td>
+					</tr>  			
+				</table>
+			</td>
+		</tr>	
+	</table>
+	{MONTH_LARGE|+0}
+	<table width="735" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<br />
+	{CALENDAR_NAV}
+	<!-- switch showbottom on -->
+	<br />
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle" bgcolor="white">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td align="right" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={PREV_MONTH}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="{L_PREV}" border="0" align="right" /></a></td>
+						<td align="center" width="20%" class="title" nowrap="nowrap" valign="middle"><h1>{L_THIS_MONTHS}</h1></td>
+						<td align="left" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={NEXT_MONTH}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="{L_NEXT}" border="0" align="left" /></a></td>
+					</tr>
+				</table>
+			</td>
+		</tr>	
+		<tr>
+			<td>
+				<table width="100%" cellspacing="1" cellpadding="4" border="0">
+					<!-- loop showbottomevents_odd on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td>
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_odd off -->
+					<!-- loop showbottomevents_even on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap" bgcolor="#EEEEEE">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td bgcolor="#EEEEEE">
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_even off -->
+				</table>
+			</td>
+		</tr>
+	</table>
+	<table width="737" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<!-- switch showbottom off -->
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/month_large.tpl newcal/templates/grey/month_large.tpl
--- oldcal/templates/grey/month_large.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/month_large.tpl	2004-05-19 23:59:37.000000000 -0400
@@ -0,0 +1,42 @@
+<table width="735" border="0" cellspacing="1" cellpadding="2" class="monthback">
+	<tr>
+		<!-- loop weekday on -->
+		<td valign="top" width="105" height="12" class="dateback">
+			<center class="V9BOLD">{LOOP_WEEKDAY}</center>
+		</td>
+		<!-- loop weekday off -->
+	</tr>
+	<!-- loop monthweeks on -->
+	<tr>
+		<!-- loop monthdays on -->
+		<!-- switch notthismonth on -->
+		<td class="monthoff">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch notthismonth off -->
+		<!-- switch istoday on -->
+		<td class="monthon">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch istoday off -->
+		<!-- switch ismonth on -->
+		<td class="monthreg">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch ismonth off -->
+		<!-- loop monthdays off -->
+	</tr>
+	<!-- loop monthweeks off -->
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/month_medium.tpl newcal/templates/grey/month_medium.tpl
--- oldcal/templates/grey/month_medium.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/month_medium.tpl	2006-03-23 19:59:55.000000000 -0500
@@ -0,0 +1,45 @@
+<table border="0" width="210" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td align="center" class="medtitle">{MONTH_TITLE}</td>
+	</tr>
+	<tr>
+		<td>
+			<table border="0" width="210" cellspacing="1" cellpadding="0" class="yearmonth">
+				<tr>
+					<!-- loop weekday on -->
+					<td class="yearweek">{LOOP_WEEKDAY}</td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr>
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td class="yearoff">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td class="yearon">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td class="yearreg">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->	
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/month_small.tpl newcal/templates/grey/month_small.tpl
--- oldcal/templates/grey/month_small.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/month_small.tpl	2004-09-13 15:35:23.000000000 -0400
@@ -0,0 +1,38 @@
+<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+	<tr>
+                <td align="center" class="sideback"><div style="height:16px;"><b>{MONTH_TITLE}</b></div></td>
+	</tr>
+	<tr>
+		<td align="center">
+			<table border="0" cellspacing="0" cellpadding="0">
+				<tr align="center">
+					<!-- loop weekday on -->	
+					<td width="22"><b>{LOOP_WEEKDAY}</b></td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr align="center">
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="G10G">{DAY}</span></a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td>
+						<a class="ps2" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->
+			</table>
+			<img src="images/spacer.gif" width="1" height="3" alt=" " /><br />
+		</td>
+	</tr>
+</table>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/preferences.tpl newcal/templates/grey/preferences.tpl
--- oldcal/templates/grey/preferences.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/preferences.tpl	2006-03-23 20:00:10.000000000 -0500
@@ -0,0 +1,102 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_PREFERENCES}</h1><span class="V9G">{L_PREFS_SUBHEAD}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" " /></td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="5">	
+				<!-- switch message on -->
+				<tr>
+					<td colspan="2" align="center"><font class="G10BOLD">{MESSAGE}</font></td>
+				</tr>
+				<!-- switch message off -->
+				<tr>
+					<td valign="top" align="left">
+					<form action="preferences.php?action=setcookie" method="post">
+					<table border="0" width="100%" cellspacing="2" cellpadding="2" align="center">
+						<tr align="left" valign="top">
+							<td width="80%" nowrap="nowrap">{L_SELECT_LANG}:</td>
+							<td width="10%"><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td width="10%"><select name="cookie_language" class="query_style">{LANGUAGE_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_CAL}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_calendar" class="query_style">{CALENDAR_SELECT}</select>
+							<input type="hidden" name="cpath" value="{CPATH}"/></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_VIEW}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_view" class="query_style">{VIEW_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_TIME}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_time" class="query_style">{TIME_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_DAY}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_startday" class="query_style">{STARTDAY_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_STYLE}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_style" class="query_style">{STYLE_SELECT}</select></td>
+						</tr>
+						<!-- switch cookie_already_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_UNSET_PREFS}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="checkbox" name="unset" value="true" /></td>
+						</tr>
+						<!-- switch cookie_already_set off -->
+						<!-- switch cookie_not_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">&nbsp;</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="submit" name="set" value="{L_SET_PREFS}" /></td>
+						</tr>
+						<!-- switch cookie_not_set off -->
+					</table>
+					</form>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/print.tpl newcal/templates/grey/print.tpl
--- oldcal/templates/grey/print.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/print.tpl	2006-03-23 20:00:58.000000000 -0500
@@ -0,0 +1,81 @@
+{HEADER}
+<center>
+<table border="0" width="650" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}<br>
+					<a class="psf" href="{PRINTVIEW}.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day">Calendar view</a></span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="90" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+      	</td>
+    </tr>
+	<tr>
+		<td colspan="3" class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td colspan="3">
+			<table border="0" cellspacing="0" cellpadding="5" width="100%">
+				<tr>
+					<td align="left" valign="top">
+						<!-- switch some_events on -->
+						<div class="V12"><b>{DAYOFMONTH}</b></div>
+						<!-- loop events on -->
+						<div style="padding: 6px;">
+							<table width="100%" border="0" cellspacing="1" cellpadding="1">
+								<tr>
+									<td width="100" class="G10BOLD">{L_TIME}:</td>
+									<td align="left" class="G10B">{EVENT_START}</td>
+								</tr>
+								<!-- switch location_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_LOCATION}:</td>
+									<td valign="top" align="left" class="G10B">{LOCATION}</td>
+								</tr>
+								<!-- switch location_events off -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+									<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+								</tr>
+								<!-- switch description_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+									<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+								</tr>
+								<!-- switch description_events off -->
+							</table>
+						</div>
+						<!-- loop events off -->
+						<!-- switch some_events off -->
+															
+						<!-- switch no_events on -->
+						<div class="V12"><b>{L_NO_RESULTS}</b></div>
+						<!-- switch no_events off -->
+					</td>
+				</tr>
+			</table>		
+		</td>
+	</tr>
+</table>
+<table width="650" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/rss_index.tpl newcal/templates/grey/rss_index.tpl
--- oldcal/templates/grey/rss_index.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/rss_index.tpl	2006-04-05 02:46:10.000000000 -0400
@@ -0,0 +1,60 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="700" valign="top" align="center">
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{L_RSS_INFO}</h1><span class="V9G">{L_RSS_SUBHEAD}</span></div></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>  			
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td class="dayborder"><img src="../images/spacer.gif" width="1" height="5" alt=" " /></td>
+				</tr>
+				<tr>
+					<td>
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">	
+							<tr>
+								<td width="2%"></td>
+								<td width="98%" valign="top" align="left">
+									<br />
+									<br />
+									{RSS_LIST}
+									<br />
+									<p>{RSS_DOCINFO}</p>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="700" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/search.tpl newcal/templates/grey/search.tpl
--- oldcal/templates/grey/search.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/search.tpl	2005-10-30 01:15:47.000000000 -0500
@@ -0,0 +1,115 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_RESULTS}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" "></td>
+	</tr>
+	<tr>
+		<td align="left">
+			<div style="padding: 10px;">
+				<div><p class="V12">{L_QUERY}: {FORMATTED_SEARCH}</p></div>
+				<!-- switch results on -->
+				<font class="V12"><b><a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></b></font><br />
+				<div style="margin-left: 10px; margin-bottom: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="120" class="G10BOLD">{L_TIME}:</td>
+							<td align="left" class="G10B">{EVENT_START}</td>
+						</tr><tr>
+							<td width="120" class="G10BOLD">{L_LOCATION}:</td>
+							<td align="left" class="G10B">{LOCATION}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch recur on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="G10B">{RECUR}</td>
+						</tr>
+						<!-- switch recur off -->
+						<!-- switch description on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+						</tr>
+						<!-- switch description off -->
+					</table>
+				</div>
+				<!-- switch exceptions on -->		
+				<font class="V10"><i>{L_EXCEPTION}</i>: <a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></font><br />
+				<div style="margin-left: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="100" class="V10">{L_TIME}:</td>
+							<td align="left" class="V10">{EVENT_START}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="V10">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="V10">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch except_recur on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_RECUR}</td>
+						</tr>
+						<!-- switch except_recur off -->
+						<!-- switch except_description on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_DESCRIPTION}</td>
+						</tr>
+						<!-- switch except_description off -->
+					</table>
+				</div>
+				<!-- switch exceptions off -->		
+				<br />
+				<!-- switch results off -->
+				
+				<!-- switch no_results on -->
+				<div align="center">
+					<p class="V12">{L_NO_RESULTS}</p>
+				</div>
+				<!-- switch no_results off -->
+				
+				<div align="center">
+					{SEARCH_BOX}
+				</div>
+				<br />
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/search_box.tpl newcal/templates/grey/search_box.tpl
--- oldcal/templates/grey/search_box.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/search_box.tpl	2006-03-23 20:01:37.000000000 -0500
@@ -0,0 +1,9 @@
+<hr />
+<div class = 'G10BOLD'>{L_SEARCH}:</div>
+<form action="search.php" method="GET">
+	<input type="hidden" name="cpath" value="{CPATH}"/>
+	<input type="hidden" name="cal" value="{CAL}"/>
+	<input type="hidden" name="getdate" value="{GETDATE}"/>
+	<input type="text" size="15" name="query" value=""/>
+	<input type="image" src="templates/{TEMPLATE}/images/search.gif" name="submit" value="Search"/>
+</form>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/seminar.tpl newcal/templates/grey/seminar.tpl
--- oldcal/templates/grey/seminar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/seminar.tpl	2004-09-27 12:31:30.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on --
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>Host:</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/sidebar.tpl newcal/templates/grey/sidebar.tpl
--- oldcal/templates/grey/sidebar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/sidebar.tpl	2006-03-23 20:02:15.000000000 -0500
@@ -0,0 +1,225 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
+
+{MONTH_SMALL|-1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+0}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/todo.tpl newcal/templates/grey/todo.tpl
--- oldcal/templates/grey/todo.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/todo.tpl	2004-12-18 13:35:39.000000000 -0500
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+        <meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{VTODO_TEXT}</p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch priority on -->
+					<b>{L_PRIORITY}</b>: {PRIORITY}<br />
+					<!-- switch priority off -->
+					<!-- switch start_date on -->
+					<b>{L_CREATED}</b>: {START_DATE}<br />
+					<!-- switch start_date off -->
+					<!-- switch due_date on -->
+					<b>{L_DUE}</b>: {DUE_DATE}<br />
+					<!-- switch due_date off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/week.tpl newcal/templates/grey/week.tpl
--- oldcal/templates/grey/week.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/week.tpl	2005-11-19 01:59:28.000000000 -0500
@@ -0,0 +1,117 @@
+{HEADER}
+<center>
+	<table border="0" width="770" cellspacing="0" cellpadding="0">
+		<tr>
+			<td width="610" valign="top">
+				<table width="610" border="0" cellspacing="0" cellpadding="0" class="calborder">
+					<tr>
+						<td align="center" valign="middle">
+							<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="490" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>     			
+						</table>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+								<tr>
+									<td align="center" valign="top">
+										<table width="100%" border="0" cellspacing="0" cellpadding="0">
+											<tr>
+												<td align="left" valign="top" width="15" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_WEEK}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_WEEK}">&laquo;</a></div>
+												</td>
+												<td align="left" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_DAY}">&lsaquo;</a></div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_DAY}">&rsaquo;</a>&nbsp;</div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_WEEK}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_WEEK}">&raquo;</a>&nbsp;</div>
+												</td>
+												<td width="1"></td>
+												<!-- loop daysofweek on -->
+												<td width="80" {COLSPAN} align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={DAYLINK}'">
+													<a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="V9BOLD">{DAY}</span></a> 
+												</td>
+												<!-- loop daysofweek off -->
+											</tr>
+											<tr valign="top" id="allday">
+												<td width="60" class="rowOff2" colspan="4"><img src="images/spacer.gif" width="60" height="1" alt=" " /></td>
+												<td width="1"></td>
+												<!-- loop alldaysofweek on -->
+												<td width="80" {COLSPAN} class="rowOff">
+													<!-- loop allday on -->
+													<div class="alldaybg_{CALNO}">
+														{ALLDAY}
+														<img src="images/spacer.gif" width="80" height="1" alt=" " />
+													</div>
+													<!-- loop allday off -->
+												</td>
+												<!-- loop alldaysofweek off -->
+											</tr>
+											<!-- loop row on -->
+											<tr>
+												<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<!-- loop row off -->
+											<!-- loop event on -->
+											<div class="eventfont">
+												<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b></div>
+												<div class="padd">{EVENT}</div>
+											</div>
+											<!-- loop event off -->
+										</table>	
+									</td>
+								</tr>
+							</table>
+						</td>
+					</tr>
+				</table>
+				<table width="100%" border="0" cellpadding="0" cellspacing="0">
+					<tr>
+						<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					</tr>
+				</table>
+			</td>
+			<td width="10">
+				<img src="images/spacer.gif" width="10" height="1" alt=" " />
+			</td>
+			<td width="170" valign="top">
+				{SIDEBAR}
+			</td>
+		</tr>
+	</table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/grey/year.tpl newcal/templates/grey/year.tpl
--- oldcal/templates/grey/year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/grey/year.tpl	2006-03-23 20:02:32.000000000 -0500
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+        <table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
+                <tr>
+                        <td align="center" valign="middle" bgcolor="white">
+                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                        <tr>
+                                                <td align="left" width="120" class="navback">
+                                                        &nbsp;
+                                                </td>
+                                                <td class="navback">
+                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                                                <tr>
+                                                                        <td align="right" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={PREV_YEAR}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="[Previous Year]" border="0" align="right" /></a>
+                                                                        </td>
+                                                                        <td align="center" width="10%" class="title" nowrap="nowrap" valign="middle">
+                                                                                <h1>{THIS_YEAR}</h1>
+                                                                        </td>
+                                                                        <td align="left" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={NEXT_YEAR}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="[Next Year]" border="0" align="left" /></a>
+                                                                        </td>
+                                                                </tr>
+                                                        </table>
+                                                </td>
+                                                <td align="right" width="120" class="navback">
+                                                        <table width="120" border="0" cellpadding="0" cellspacing="0">
+                                                                <tr>
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+                                                        </tr>
+                                                        </table>
+                                                </td>
+                                        </tr>
+                                </table>
+                        </td>
+                </tr>
+        </table>
+        <br />
+        <table border="0" width="670" cellspacing="0" cellpadding="0">
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|01}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|02}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|03}
+                        </td>
+			<td width="20" rowspan='8'>
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td rowspan='8' valign='top'>{SIDEBAR}</td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|04}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|05}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|06}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|07}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|08}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|09}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|10}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|11}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|12}
+                        </td>
+                </tr>
+        </table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/admin.tpl newcal/templates/red/admin.tpl
--- oldcal/templates/red/admin.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/admin.tpl	2004-10-01 21:23:53.000000000 -0400
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+<table border="0" width="600" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_ADMIN_HEADER}</h1><span class="V9G">{L_ADMIN_SUBHEAD}</span></td>
+					<td align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td align="right">
+			<!-- switch logged_in2 on -->
+			<a href="index.php?action=logout">{L_LOGOUT}</a>&nbsp;
+			<!-- switch logged_in2 off -->
+		</td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+				<tr>
+					<td width="2%"></td>
+					<td width="98%" valign="top" align="left">
+						<!-- switch login_error on -->
+						<font color="red">{L_INVALID_LOGIN}</font><br /><br />
+						<!-- switch login_error off -->
+	
+						<!-- switch display_login on -->
+						<form action="index.php?action=login" method="post">
+							<table cellspacing="0" cellpadding="0">
+								<tr>
+									<td nowrap>{L_USERNAME}: </td>
+									<td align="left"><input type="text" name="username"></td>
+								</tr>
+								<tr>
+									<td>{L_PASSWORD}: </td>
+									<td align="left"><input type="password" name="password"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td align="left"><input type="submit" value="{L_LOGIN}"></td>
+								</tr>
+								<!--
+								<tr>
+									<td align="center" colspan="3">{LOGIN_ERROR}&nbsp;</td>
+								</tr>
+								-->
+							</table>
+						</form>
+						<!-- switch display_login off -->
+						
+						
+						<!-- switch logged_in on -->
+						<b>{L_ADDUPDATE_CAL}</b><br />
+						{L_ADDUPDATE_DESC}<br /><br />
+						<form action="index.php" method="post" enctype="multipart/form-data">
+							<input type="hidden" name="action" value="addupdate">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								<tr>
+									<td nowrap>{L_CAL_FILE} 1: </td>
+									<td><input type="file" name="calfile[1]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 2: </td>
+									<td><input type="file" name="calfile[2]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 3: </td>
+									<td><input type="file" name="calfile[3]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 4: </td>
+									<td><input type="file" name="calfile[4]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 5: </td>
+									<td><input type="file" name="calfile[5]"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td><input type="submit" value="{L_SUBMIT}"></td>
+								</tr>
+								<tr>
+									<td align="center" colspan="2">{ADDUPDATE_MSG} &nbsp;</td>
+								</tr>
+							</table>
+						</form>
+						
+						<b>{L_DELETE_CAL}</b>
+						<form action="index.php" method="post">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								{DELETE_TABLE}
+							</table>
+							<input type="hidden" name="action" value="delete">
+							<p><input type="submit" value="{L_DELETE}"></p>
+							<p>{DELETE_MSG} &nbsp;</p>
+						</form>
+						
+						<!-- switch logged_in off -->
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="600" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+{FOOTER}
+
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/calendar_nav.tpl newcal/templates/red/calendar_nav.tpl
--- oldcal/templates/red/calendar_nav.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/calendar_nav.tpl	2006-03-16 01:03:24.000000000 -0500
@@ -0,0 +1,113 @@
+<table border="0" width="737" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="1%" valign="top" align="right">
+			{MONTH_SMALL|-1}
+			<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+		<td width="98%" valign="top" align="center">
+			<table border="0" width="330" cellspacing="0" cellpadding="0">
+				<tr>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+								<td align="center" class="sideback"><div style="height:16px;"><b>{L_JUMP}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding: 5px;">
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+										<input type="hidden" name="cpath" value="{CPATH}"/>
+
+										</form>
+										<!-- switch show_search on -->
+										{SEARCH_BOX}
+										<!-- switch show_search off -->
+										<!-- switch show_goto on -->
+										<form style="margin-bottom:0;" action="day.php" method="get"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<input type="hidden" name="cal" value="{URL_CAL}"/>
+											<input type="text" style="width:160px; font-size:10px" name="jumpto_day"/>
+											<input type="submit" value="Go"/>
+										</form>
+										<!-- switch show_goto off -->
+										<hr />
+										<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<input type="hidden" name="getdate" value="{GETDATE}"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+											<input type="submit" value="Go"/>
+										</form>
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+					<td>
+						<img src="images/spacer.gif" width="20" height="1" alt=" " />
+					</td>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+								<td align="center" class="sideback"><div style="height:16px;"><b>{SIDEBAR_DATE}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding-left: 5px;">
+										<b>{L_LEGEND}:</b><br />
+										{LEGEND}
+										<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+										<!-- switch allow_preferences on -->
+										<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+										<!-- switch allow_preferences off -->
+										<!-- switch display_download on -->
+										<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+										<!-- switch display_download off -->
+										<!-- switch is_logged_in on -->
+										<a class="psf" href="{SCRIPT_NAME}?{QUERYS}">Logout {USERNAME}</a>
+										<!-- switch is_logged_in off -->
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+		<td width="1%" valign="top" align="left">
+			{MONTH_SMALL|+1}
+			<table width="170" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/day.tpl newcal/templates/red/day.tpl
--- oldcal/templates/red/day.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/day.tpl	2005-11-23 01:07:56.000000000 -0500
@@ -0,0 +1,104 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>
+							<tr>	
+								<td colspan="2">
+									<table width="100%" border="0" cellspacing="0" cellpadding="2">
+										<tr>
+											<td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}">&laquo;</a></span>
+											</td>
+											<!-- loop daysofweek on -->
+											<td width="14%" align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={DAYLINK}'">
+												<span class="V9BOLD"><a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a></span>
+											</td>
+											<!-- loop daysofweek off -->
+											<td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}">&raquo;</a></span>
+											</td>
+										</tr>	
+									</table>
+								</td>
+							</tr>      			
+						</table>
+					</td>
+				</tr>
+				<tr id="allday">
+					<td>
+						<!-- loop allday on -->
+						<div class="alldaybg_{CALNO}">
+							{ALLDAY}
+						</div>
+						<!-- loop allday off -->
+					</td>
+				</tr>
+      			<tr>
+					<td align="center" valign="top" colspan="3">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<!-- loop row on -->
+							<tr>
+								<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<!-- loop row off -->
+							<!-- loop event on -->
+							<div class="eventfont">
+								<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b> - {EVENT_END}</div>
+								<div class="padd">{EVENT}</div>
+							</div>
+							<!-- loop event off -->
+						</table>
+					</td>
+				</tr>
+        	</table>
+        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+    	</td>
+		<td width="10"><img src="images/spacer.gif" width="10" height="1" alt=" " /></td>
+		<td width="170" valign="top">
+			{SIDEBAR}
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/default.css newcal/templates/red/default.css
--- oldcal/templates/red/default.css	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/default.css	2006-04-09 15:58:34.000000000 -0400
@@ -0,0 +1,138 @@
+/* Style sheet for the silver calendar (default) */
+
+table, td {font: 11px Verdana, Arial, sans-serif; color: #000;}
+
+/* Background images for tables */
+.tbll	{background: url(images/shadow_l.gif) no-repeat; width:8px}
+.tblbot	{background: url(images/shadow_m.gif) repeat-x; width:100%}
+.tblr	{background: url(images/shadow_r.gif) no-repeat; width:8px}
+
+.alldaybg_1 {background: url(images/allday_1.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_2 {background: url(images/allday_2.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_3 {background: url(images/allday_3.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_4 {background: url(images/allday_4.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_5 {background: url(images/allday_5.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_6 {background: url(images/allday_6.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+
+.rowOn			{ background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOn2			{ background-color: #cfc; border-top: 1px solid #fff; }
+.rowOff			{ background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOff2		{ background-color: #E1E8F1; border-top: 1px solid #fff; }
+.rowToday		{ background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+
+.padd			{ padding: 2px; }
+
+/* Styles for day and week events */
+.eventbg_1	 	{ background-color: #a01010; padding: 2px;}
+.eventbg_2	 	{ background-color: #ab6c00; padding: 2px;}
+.eventbg_3	 	{ background-color: #df903c; padding: 2px;}
+.eventbg_4	 	{ background-color: #ab7848; padding: 2px;}
+.eventbg_5	 	{ background-color: #bc4700; padding: 2px;}
+.eventbg_6	 	{ background-color: #df2c6c; padding: 2px;}
+.eventbg_7	 	{ background-color: #ac4848; padding: 2px;}
+
+
+.eventbg2_1	 		{ background-color: #c03030; border: 1px solid #a01010; }
+.eventbg2_2	 		{ background-color: #cb8c00; border: 1px solid #ab6c00; }
+.eventbg2_3	 		{ background-color: #ffb05c; border: 1px solid #df903c; }
+.eventbg2_4	 		{ background-color: #cb9868; border: 1px solid #ab7848; }
+.eventbg2_5	 		{ background-color: #dc6700; border: 1px solid #bc4700; }
+.eventbg2_6	 		{ background-color: #ff4c8c; border: 1px solid #df2c6c; }
+.eventbg2_7	 		{ background-color: #cc6868; border: 1px solid #ac4848; }
+.dayborder 		{ background-color: #fff; border-top: 1px solid #A1A5A9; }
+.dayborder2 	{ background-color: #fff; border-top: 1px dashed #ccc; }
+
+.title  		{ background-image: url(images/time_bg.gif); padding: 5px; }
+.title h1 		{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;}
+
+/* Month View */
+
+.monthback		{ background-color: #A1A5A9; }
+.monthreg		{ background-color: #fff; height: 105px; width: 105px; text-align: left; vertical-align: top; }
+.monthoff		{ background-color: #F2F2F2; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.monthon		{ background-color: #F2F9FF; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.montheventtop	{ background-image: url(images/side_bg.gif); border-top: 1px solid #A1A5A9; }
+.montheventline	{ border-right: 1px dotted #A1A5A9; }
+
+/* Year View */
+
+.medtitle		{ background-image: url(images/side_bg.gif); height: 20px; margin-top: 3px; font-weight: 900; }
+.yearreg		{ background-color: #fff; height: 30px; width: 30px; text-align: right; vertical-align: top; font-size: 9px; }
+.yearoff		{ background-color: #F2F2F2; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearon			{ background-color: #F2F9FF; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearmonth		{ background-color: #ccc; }
+.yearweek		{ background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; }
+
+
+/* older styles */
+
+.eventborder	{ background-image: url(images/day_title.gif); border: 1px #006699 solid; }
+.eventbg	 	{ background-color: #6699CC; }
+
+.calborder 		{ background-color: #fff; border: 1px #A1A5A9 solid; }
+.dateback		{ background-color: #eee; }
+.weekborder 	{ border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
+.weekborder2 	{ border-right: 1px solid #A1A5A9; }
+.timeborder 	{ border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); }
+.timeborder2 	{ border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); }
+.navback 		{ background-image: url(images/time_bg.gif); }
+.sideback 		{ background-image: url(images/side_bg.gif); }
+
+
+/* Link colors and attributes */
+/* This is the main link style */
+a.psf			{ text-decoration:	none; }
+a.psf:link		{ color: #a01010; }
+a.psf:visited	{ color: #a01010; }
+a.psf:active	{ color: #3366CC; }
+a.psf:hover		{ color: #000099; text-decoration: underline; }
+
+/* This is the link style for the mini-cals */	
+a.ps2			{ text-decoration:	underline; }
+a.ps2:link		{ color: #a01010; }
+a.ps2:visited	{ color: #a01010; }
+a.ps2:active	{ color: #3366CC; }
+a.ps2:hover		{ color: #000099; }
+
+/* This is the link style for year months */	
+a.ps3			{ text-decoration:	none; }
+a.ps3:link		{ color: #000; }
+a.ps3:visited	{ color: #000; }
+a.ps3:active	{ color: #000; }
+a.ps3:hover		{ color: #000; text-decoration: underline; }
+
+/* This is the link style for events */	
+a.ps			{ text-decoration:	none; }
+a.ps:link		{ color: #fff; }
+a.ps:visited	{ color: #fff; }
+a.ps:active		{ color: #fff; }
+a.ps:hover		{ color: #fff; text-decoration: underline; }
+	
+/* Body attributes */
+
+body			{ background-color: #ffd0e0; }
+
+/* CSS definitions for fonts */
+
+.V9 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #000000; }
+.V10W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration:	none;}
+.V9W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; text-decoration:	none;}
+.V10WB 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: 900; }
+.V9G 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #666666; }
+.V10 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
+.V9BOLD 		{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
+.G10 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; }
+.G10B 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
+.G10BOLD 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; }
+.G10G 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; }
+.V12 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;  color: #000000; }
+/*h1 				{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000000; }*/
+.eventfont 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
+
+
+/* Length of the form drop downs */
+
+.query_style 	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style 	{ font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }
+.login_style	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; }
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/error.tpl newcal/templates/red/error.tpl
--- oldcal/templates/red/error.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/error.tpl	2004-10-26 15:12:31.000000000 -0400
@@ -0,0 +1,43 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top" align="center">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+							<tr>
+								<td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
+								<td align="center" valign="middle" width="98%" class="sideback"><b>{L_ERROR_WINDOW}</b></td>
+								<td class="sideback" width="1%"></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td>
+						<table width="100%" border="0" cellspacing="0" cellpadding="10" class="G10B">	
+							<tr>
+								<td align="center" valign="top" class="V12">
+									{ERROR_MSG}<br />
+									[<span class="G10"><a href="http://phpicalendar.net/documentation/index.php?title=Error_message_meanings">What does this mean?</a></span>]
+									<br />
+									<br />
+									{ERROR_CALENDAR}
+									<br />
+									<br />
+									{L_ERROR_BACK}
+									<br />
+									
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/event.tpl newcal/templates/red/event.tpl
--- oldcal/templates/red/event.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/event.tpl	2005-05-16 15:15:01.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT_TEXT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on -->
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					<!-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>{L_ATTENDEE}</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/footer.tpl newcal/templates/red/footer.tpl
--- oldcal/templates/red/footer.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/footer.tpl	2006-04-09 21:18:29.000000000 -0400
@@ -0,0 +1,15 @@
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
+<!-- switch rss_valid on -->
+<p>
+<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
+<img src="{BASE}images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" /></a>
+</p>
+<!-- switch rss_valid off -->
+<!-- switch rss_powered on -->
+{L_THIS_SITE_IS} <a class="psf" href="{BASE}rss/index.php?cal={CAL}&amp;getdate={GETDATE}">RSS-Enabled</a><br />
+<!-- switch rss_powered off -->
+<!--Page generated in {GENERATED1} seconds.<br />
+Template generated in {GENERATED2} seconds.-->
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/header.tpl newcal/templates/red/header.tpl
--- oldcal/templates/red/header.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/header.tpl	2006-04-02 05:29:39.000000000 -0400
@@ -0,0 +1,20 @@
+<!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>
+	<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
+	<title>{CALENDAR_NAME} - {DISPLAY_DATE}</title>
+  	<link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}templates/{TEMPLATE}/default.css" />
+	<!-- switch rss_available on -->
+	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
+	<!-- switch rss_available off -->		
+	{EVENT_JS}
+</head>
+<body>
+<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
+  <input type="hidden" name="date" id="date" value="" />
+  <input type="hidden" name="time" id="time" value="" />
+  <input type="hidden" name="uid" id="uid" value="" />
+  <input type="hidden" name="cpath" id="cpath" value="" />
+  <input type="hidden" name="event_data" id="event_data" value="" />
+</form>
Binary files oldcal/templates/red/images/allday_1.gif and newcal/templates/red/images/allday_1.gif differ
Binary files oldcal/templates/red/images/allday_2.gif and newcal/templates/red/images/allday_2.gif differ
Binary files oldcal/templates/red/images/allday_3.gif and newcal/templates/red/images/allday_3.gif differ
Binary files oldcal/templates/red/images/allday_4.gif and newcal/templates/red/images/allday_4.gif differ
Binary files oldcal/templates/red/images/allday_5.gif and newcal/templates/red/images/allday_5.gif differ
Binary files oldcal/templates/red/images/allday_6.gif and newcal/templates/red/images/allday_6.gif differ
Binary files oldcal/templates/red/images/allday_7.gif and newcal/templates/red/images/allday_7.gif differ
Binary files oldcal/templates/red/images/allday_bg.gif and newcal/templates/red/images/allday_bg.gif differ
Binary files oldcal/templates/red/images/allday_dot.gif and newcal/templates/red/images/allday_dot.gif differ
Binary files oldcal/templates/red/images/back.gif and newcal/templates/red/images/back.gif differ
Binary files oldcal/templates/red/images/day_on.gif and newcal/templates/red/images/day_on.gif differ
Binary files oldcal/templates/red/images/day_title.gif and newcal/templates/red/images/day_title.gif differ
Binary files oldcal/templates/red/images/download_arrow.gif and newcal/templates/red/images/download_arrow.gif differ
Binary files oldcal/templates/red/images/event_dot.gif and newcal/templates/red/images/event_dot.gif differ
Binary files oldcal/templates/red/images/left_arrows.gif and newcal/templates/red/images/left_arrows.gif differ
Binary files oldcal/templates/red/images/left_day.gif and newcal/templates/red/images/left_day.gif differ
Binary files oldcal/templates/red/images/month_on.gif and newcal/templates/red/images/month_on.gif differ
Binary files oldcal/templates/red/images/monthdot_1.gif and newcal/templates/red/images/monthdot_1.gif differ
Binary files oldcal/templates/red/images/monthdot_2.gif and newcal/templates/red/images/monthdot_2.gif differ
Binary files oldcal/templates/red/images/monthdot_3.gif and newcal/templates/red/images/monthdot_3.gif differ
Binary files oldcal/templates/red/images/monthdot_4.gif and newcal/templates/red/images/monthdot_4.gif differ
Binary files oldcal/templates/red/images/monthdot_5.gif and newcal/templates/red/images/monthdot_5.gif differ
Binary files oldcal/templates/red/images/monthdot_6.gif and newcal/templates/red/images/monthdot_6.gif differ
Binary files oldcal/templates/red/images/monthdot_7.gif and newcal/templates/red/images/monthdot_7.gif differ
Binary files oldcal/templates/red/images/printer.gif and newcal/templates/red/images/printer.gif differ
Binary files oldcal/templates/red/images/right_arrows.gif and newcal/templates/red/images/right_arrows.gif differ
Binary files oldcal/templates/red/images/right_day.gif and newcal/templates/red/images/right_day.gif differ
Binary files oldcal/templates/red/images/search.gif and newcal/templates/red/images/search.gif differ
Binary files oldcal/templates/red/images/shadow_l.gif and newcal/templates/red/images/shadow_l.gif differ
Binary files oldcal/templates/red/images/shadow_m.gif and newcal/templates/red/images/shadow_m.gif differ
Binary files oldcal/templates/red/images/shadow_r.gif and newcal/templates/red/images/shadow_r.gif differ
Binary files oldcal/templates/red/images/side_bg.gif and newcal/templates/red/images/side_bg.gif differ
Binary files oldcal/templates/red/images/smallicon.gif and newcal/templates/red/images/smallicon.gif differ
Binary files oldcal/templates/red/images/spacer.gif and newcal/templates/red/images/spacer.gif differ
Binary files oldcal/templates/red/images/time_bg.gif and newcal/templates/red/images/time_bg.gif differ
Binary files oldcal/templates/red/images/week_on.gif and newcal/templates/red/images/week_on.gif differ
Binary files oldcal/templates/red/images/year_on.gif and newcal/templates/red/images/year_on.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/month.tpl newcal/templates/red/month.tpl
--- oldcal/templates/red/month.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/month.tpl	2005-11-23 01:07:56.000000000 -0500
@@ -0,0 +1,88 @@
+{HEADER}
+<center>
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr valign="top">
+						<td align="left" width="615" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+						<td align="right" width="120" class="navback">	
+							<div style="padding-top: 3px;">
+							<table width="120" border="0" cellpadding="0" cellspacing="0">
+								<tr valign="top">
+									<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+									<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+									<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+									<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+								</tr>
+							</table>
+							</div>
+						</td>
+					</tr>  			
+				</table>
+			</td>
+		</tr>	
+	</table>
+	{MONTH_LARGE|+0}
+	<table width="735" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<br />
+	{CALENDAR_NAV}
+	<!-- switch showbottom on -->
+	<br />
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle" bgcolor="white">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td align="right" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={PREV_MONTH}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="{L_PREV}" border="0" align="right" /></a></td>
+						<td align="center" width="20%" class="title" nowrap="nowrap" valign="middle"><h1>{L_THIS_MONTHS}</h1></td>
+						<td align="left" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={NEXT_MONTH}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="{L_NEXT}" border="0" align="left" /></a></td>
+					</tr>
+				</table>
+			</td>
+		</tr>	
+		<tr>
+			<td>
+				<table width="100%" cellspacing="1" cellpadding="4" border="0">
+					<!-- loop showbottomevents_odd on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td>
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_odd off -->
+					<!-- loop showbottomevents_even on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap" bgcolor="#EEEEEE">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td bgcolor="#EEEEEE">
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_even off -->
+				</table>
+			</td>
+		</tr>
+	</table>
+	<table width="737" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<!-- switch showbottom off -->
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/month_large.tpl newcal/templates/red/month_large.tpl
--- oldcal/templates/red/month_large.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/month_large.tpl	2004-05-19 23:59:37.000000000 -0400
@@ -0,0 +1,42 @@
+<table width="735" border="0" cellspacing="1" cellpadding="2" class="monthback">
+	<tr>
+		<!-- loop weekday on -->
+		<td valign="top" width="105" height="12" class="dateback">
+			<center class="V9BOLD">{LOOP_WEEKDAY}</center>
+		</td>
+		<!-- loop weekday off -->
+	</tr>
+	<!-- loop monthweeks on -->
+	<tr>
+		<!-- loop monthdays on -->
+		<!-- switch notthismonth on -->
+		<td class="monthoff">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch notthismonth off -->
+		<!-- switch istoday on -->
+		<td class="monthon">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch istoday off -->
+		<!-- switch ismonth on -->
+		<td class="monthreg">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch ismonth off -->
+		<!-- loop monthdays off -->
+	</tr>
+	<!-- loop monthweeks off -->
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/month_medium.tpl newcal/templates/red/month_medium.tpl
--- oldcal/templates/red/month_medium.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/month_medium.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -0,0 +1,45 @@
+<table border="0" width="210" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td align="center" class="medtitle">{MONTH_TITLE}</td>
+	</tr>
+	<tr>
+		<td>
+			<table border="0" width="210" cellspacing="1" cellpadding="0" class="yearmonth">
+				<tr>
+					<!-- loop weekday on -->
+					<td class="yearweek">{LOOP_WEEKDAY}</td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr>
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td class="yearoff">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td class="yearon">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td class="yearreg">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->	
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/month_small.tpl newcal/templates/red/month_small.tpl
--- oldcal/templates/red/month_small.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/month_small.tpl	2004-09-12 14:29:07.000000000 -0400
@@ -0,0 +1,38 @@
+<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height:16px;"><b>{MONTH_TITLE}</b></div></td>
+	</tr>
+	<tr>
+		<td align="center">
+			<table border="0" cellspacing="0" cellpadding="0">
+				<tr align="center">
+					<!-- loop weekday on -->	
+					<td width="22"><b>{LOOP_WEEKDAY}</b></td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr align="center">
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="G10G">{DAY}</span></a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td>
+						<a class="ps2" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->
+			</table>
+			<img src="images/spacer.gif" width="1" height="3" alt=" " /><br />
+		</td>
+	</tr>
+</table>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/preferences.tpl newcal/templates/red/preferences.tpl
--- oldcal/templates/red/preferences.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/preferences.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -0,0 +1,102 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_PREFERENCES}</h1><span class="V9G">{L_PREFS_SUBHEAD}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" " /></td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="5">	
+				<!-- switch message on -->
+				<tr>
+					<td colspan="2" align="center"><font class="G10BOLD">{MESSAGE}</font></td>
+				</tr>
+				<!-- switch message off -->
+				<tr>
+					<td valign="top" align="left">
+					<form action="preferences.php?action=setcookie" method="post">
+					<table border="0" width="100%" cellspacing="2" cellpadding="2" align="center">
+						<tr align="left" valign="top">
+							<td width="80%" nowrap="nowrap">{L_SELECT_LANG}:</td>
+							<td width="10%"><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td width="10%"><select name="cookie_language" class="query_style">{LANGUAGE_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_CAL}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_calendar" class="query_style">{CALENDAR_SELECT}</select>
+							<input type="hidden" name="cpath" value="{CPATH}"/></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_VIEW}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_view" class="query_style">{VIEW_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_TIME}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_time" class="query_style">{TIME_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_DAY}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_startday" class="query_style">{STARTDAY_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_STYLE}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_style" class="query_style">{STYLE_SELECT}</select></td>
+						</tr>
+						<!-- switch cookie_already_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_UNSET_PREFS}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="checkbox" name="unset" value="true" /></td>
+						</tr>
+						<!-- switch cookie_already_set off -->
+						<!-- switch cookie_not_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">&nbsp;</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="submit" name="set" value="{L_SET_PREFS}" /></td>
+						</tr>
+						<!-- switch cookie_not_set off -->
+					</table>
+					</form>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/print.tpl newcal/templates/red/print.tpl
--- oldcal/templates/red/print.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/print.tpl	2006-03-20 03:18:22.000000000 -0500
@@ -0,0 +1,80 @@
+{HEADER}
+<center>
+<table border="0" width="650" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="90" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+      	</td>
+    </tr>
+	<tr>
+		<td colspan="3" class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td colspan="3">
+			<table border="0" cellspacing="0" cellpadding="5" width="100%">
+				<tr>
+					<td align="left" valign="top">
+						<!-- switch some_events on -->
+						<div class="V12"><b>{DAYOFMONTH}</b></div>
+						<!-- loop events on -->
+						<div style="padding: 6px;">
+							<table width="100%" border="0" cellspacing="1" cellpadding="1">
+								<tr>
+									<td width="100" class="G10BOLD">{L_TIME}:</td>
+									<td align="left" class="G10B">{EVENT_START}</td>
+								</tr>
+								<!-- switch location_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_LOCATION}:</td>
+									<td valign="top" align="left" class="G10B">{LOCATION}</td>
+								</tr>
+								<!-- switch location_events off -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+									<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+								</tr>
+								<!-- switch description_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+									<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+								</tr>
+								<!-- switch description_events off -->
+							</table>
+						</div>
+						<!-- loop events off -->
+						<!-- switch some_events off -->
+															
+						<!-- switch no_events on -->
+						<div class="V12"><b>{L_NO_RESULTS}</b></div>
+						<!-- switch no_events off -->
+					</td>
+				</tr>
+			</table>		
+		</td>
+	</tr>
+</table>
+<table width="650" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/rss_index.tpl newcal/templates/red/rss_index.tpl
--- oldcal/templates/red/rss_index.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/rss_index.tpl	2006-04-05 02:45:23.000000000 -0400
@@ -0,0 +1,61 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="700" valign="top" align="center">
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{L_RSS_INFO}</h1><span class="V9G">{L_RSS_SUBHEAD}</span></div></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>  			
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td class="dayborder"><img src="../images/spacer.gif" width="1" height="5" alt=" " /></td>
+				</tr>
+				<tr>
+					<td>
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">	
+							<tr>
+								<td width="2%"></td>
+								<td width="98%" valign="top" align="left">
+									<br />
+									<br />
+									<br />
+									{RSS_LIST}
+									<br />
+									<p>{RSS_DOCINFO}</p>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="700" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/search.tpl newcal/templates/red/search.tpl
--- oldcal/templates/red/search.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/search.tpl	2005-09-13 17:57:28.000000000 -0400
@@ -0,0 +1,115 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_RESULTS}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" "></td>
+	</tr>
+	<tr>
+		<td align="left">
+			<div style="padding: 10px;">
+				<div><p class="V12">{L_QUERY}: {FORMATTED_SEARCH}</p></div>
+				<!-- switch results on -->
+				<font class="V12"><b><a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></b></font><br />
+				<div style="margin-left: 10px; margin-bottom: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="120" class="G10BOLD">{L_TIME}:</td>
+							<td align="left" class="G10B">{EVENT_START}</td>
+						</tr><tr>
+							<td width="120" class="G10BOLD">{L_LOCATION}:</td>
+							<td align="left" class="G10B">{LOCATION}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch recur on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="G10B">{RECUR}</td>
+						</tr>
+						<!-- switch recur off -->
+						<!-- switch description on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+						</tr>
+						<!-- switch description off -->
+					</table>
+				</div>
+				<!-- switch exceptions on -->		
+				<font class="V10"><i>{L_EXCEPTION}</i>: <a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></font><br />
+				<div style="margin-left: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="100" class="V10">{L_TIME}:</td>
+							<td align="left" class="V10">{EVENT_START}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="V10">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="V10">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch except_recur on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_RECUR}</td>
+						</tr>
+						<!-- switch except_recur off -->
+						<!-- switch except_description on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_DESCRIPTION}</td>
+						</tr>
+						<!-- switch except_description off -->
+					</table>
+				</div>
+				<!-- switch exceptions off -->		
+				<br />
+				<!-- switch results off -->
+				
+				<!-- switch no_results on -->
+				<div align="center">
+					<p class="V12">{L_NO_RESULTS}</p>
+				</div>
+				<!-- switch no_results off -->
+				
+				<div align="center">
+					{SEARCH_BOX}
+				</div>
+				<br />
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/search_box.tpl newcal/templates/red/search_box.tpl
--- oldcal/templates/red/search_box.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/search_box.tpl	2006-02-08 03:07:54.000000000 -0500
@@ -0,0 +1,9 @@
+<hr />
+<div class = 'G10BOLD'>{L_SEARCH}:</div>
+<form action="search.php" method="GET">
+	<input type="hidden" name="cpath" value="{CPATH}"/>
+	<input type="hidden" name="cal" value="{CAL}"/>
+	<input type="hidden" name="getdate" value="{GETDATE}"/>
+	<input type="text" size="15" name="query" value=""/>
+	<input type="image" src="templates/{TEMPLATE}/images/search.gif" name="submit" value="Search"/>
+</form>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/sidebar.tpl newcal/templates/red/sidebar.tpl
--- oldcal/templates/red/sidebar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/sidebar.tpl	2006-03-16 01:04:45.000000000 -0500
@@ -0,0 +1,225 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
+
+{MONTH_SMALL|-1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+0}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/sidebar_year.tpl newcal/templates/red/sidebar_year.tpl
--- oldcal/templates/red/sidebar_year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/sidebar_year.tpl	2006-03-20 03:18:55.000000000 -0500
@@ -0,0 +1,196 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/todo.tpl newcal/templates/red/todo.tpl
--- oldcal/templates/red/todo.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/todo.tpl	2004-10-31 14:50:15.000000000 -0500
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{VTODO_TEXT}</p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch priority on -->
+					<b>{L_PRIORITY}</b>: {PRIORITY}<br />
+					<!-- switch priority off -->
+					<!-- switch start_date on -->
+					<b>{L_CREATED}</b>: {START_DATE}<br />
+					<!-- switch start_date off -->
+					<!-- switch due_date on -->
+					<b>{L_DUE}</b>: {DUE_DATE}<br />
+					<!-- switch due_date off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/week.tpl newcal/templates/red/week.tpl
--- oldcal/templates/red/week.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/week.tpl	2005-11-23 01:07:56.000000000 -0500
@@ -0,0 +1,117 @@
+{HEADER}
+<center>
+	<table border="0" width="770" cellspacing="0" cellpadding="0">
+		<tr>
+			<td width="610" valign="top">
+				<table width="610" border="0" cellspacing="0" cellpadding="0" class="calborder">
+					<tr>
+						<td align="center" valign="middle">
+							<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="490" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>     			
+						</table>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+								<tr>
+									<td align="center" valign="top">
+										<table width="100%" border="0" cellspacing="0" cellpadding="0">
+											<tr>
+												<td align="left" valign="top" width="15" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_WEEK}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_WEEK}">&laquo;</a></div>
+												</td>
+												<td align="left" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_DAY}">&lsaquo;</a></div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_DAY}">&rsaquo;</a>&nbsp;</div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_WEEK}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_WEEK}">&raquo;</a>&nbsp;</div>
+												</td>
+												<td width="1"></td>
+												<!-- loop daysofweek on -->
+												<td width="80" {COLSPAN} align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={DAYLINK}'">
+													<a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="V9BOLD">{DAY}</span></a> 
+												</td>
+												<!-- loop daysofweek off -->
+											</tr>
+											<tr valign="top" id="allday">
+												<td width="60" class="rowOff2" colspan="4"><img src="images/spacer.gif" width="60" height="1" alt=" " /></td>
+												<td width="1"></td>
+												<!-- loop alldaysofweek on -->
+												<td width="80" {COLSPAN} class="rowOff">
+													<!-- loop allday on -->
+													<div class="alldaybg_{CALNO}">
+														{ALLDAY}
+														<img src="images/spacer.gif" width="80" height="1" alt=" " />
+													</div>
+													<!-- loop allday off -->
+												</td>
+												<!-- loop alldaysofweek off -->
+											</tr>
+											<!-- loop row on -->
+											<tr>
+												<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<!-- loop row off -->
+											<!-- loop event on -->
+											<div class="eventfont">
+												<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b></div>
+												<div class="padd">{EVENT}</div>
+											</div>
+											<!-- loop event off -->
+										</table>	
+									</td>
+								</tr>
+							</table>
+						</td>
+					</tr>
+				</table>
+				<table width="100%" border="0" cellpadding="0" cellspacing="0">
+					<tr>
+						<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					</tr>
+				</table>
+			</td>
+			<td width="10">
+				<img src="images/spacer.gif" width="10" height="1" alt=" " />
+			</td>
+			<td width="170" valign="top">
+				{SIDEBAR}
+			</td>
+		</tr>
+	</table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/red/year.tpl newcal/templates/red/year.tpl
--- oldcal/templates/red/year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/red/year.tpl	2006-03-20 03:20:08.000000000 -0500
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+	<table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle" bgcolor="white">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td align="left" width="120" class="navback">
+							&nbsp;
+						</td>
+						<td class="navback">
+							<table width="100%" border="0" cellspacing="0" cellpadding="0">
+								<tr>
+									<td align="right" width="45%" class="navback">
+										<a class="psf" href="year.php?cal={CAL}&amp;getdate={PREV_YEAR}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="[Previous Year]" border="0" align="right" /></a>
+									</td>
+									<td align="center" width="10%" class="title" nowrap="nowrap" valign="middle">
+										<h1>{THIS_YEAR}</h1>
+									</td>
+									<td align="left" width="45%" class="navback">
+										<a class="psf" href="year.php?cal={CAL}&amp;getdate={NEXT_YEAR}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="[Next Year]" border="0" align="left" /></a>
+									</td>
+								</tr>
+							</table>
+						</td>
+						<td align="right" width="120" class="navback">
+							<table width="120" border="0" cellpadding="0" cellspacing="0">
+								<tr>
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+							</table>
+						</td>
+					</tr>
+				</table>
+			</td>
+		</tr>
+	</table>
+	<br />
+	<table border="0" width="670" cellspacing="0" cellpadding="0">
+		<tr>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|01}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|02}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|03}
+			</td>
+			<td width="20" rowspan='8'>
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td rowspan='8' valign='top'>{SIDEBAR}</td>
+		</tr>
+		<tr>
+			<td colspan="5">
+				<img src="images/spacer.gif" width="1" height="20" alt=" " />
+			</td>
+		</tr>
+		<tr>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|04}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|05}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|06}
+			</td>
+		</tr>
+		<tr>
+			<td colspan="5">
+				<img src="images/spacer.gif" width="1" height="20" alt=" " />
+			</td>
+		</tr>
+		<tr>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|07}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|08}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|09}
+			</td>
+		</tr>
+		<tr>
+			<td colspan="5">
+				<img src="images/spacer.gif" width="1" height="20" alt=" " />
+			</td>
+		</tr>
+		<tr>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|10}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|11}
+			</td>
+			<td width="20">
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td width="210" valign="top" align="left">
+				{MONTH_MEDIUM|12}
+			</td>
+		</tr>
+	</table>
+</center>
+{FOOTER}
Binary files oldcal/templates/tan/.DS_Store and newcal/templates/tan/.DS_Store differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/admin.tpl newcal/templates/tan/admin.tpl
--- oldcal/templates/tan/admin.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/admin.tpl	2005-07-11 04:01:16.000000000 -0400
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+<table border="0" width="600" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_ADMIN_HEADER}</h1><span class="V9G">{L_ADMIN_SUBHEAD}</span></td>
+					<td align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+                                                                <td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+                                                                <td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td align="right">
+			<!-- switch logged_in2 on -->
+                        <a href="index.php?action=logout">{L_LOGOUT}</a>&nbsp;
+			<!-- switch logged_in2 off -->
+		</td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+				<tr>
+					<td width="2%"></td>
+					<td width="98%" valign="top" align="left">
+						<!-- switch login_error on -->
+                                                <font color="red">{L_INVALID_LOGIN}</font><br /><br />
+						<!-- switch login_error off -->
+	
+						<!-- switch display_login on -->
+                                                <form action="index.php?action=login" method="post">
+							<table cellspacing="0" cellpadding="0">
+								<tr>
+									<td nowrap>{L_USERNAME}: </td>
+									<td align="left"><input type="text" name="username"></td>
+								</tr>
+								<tr>
+									<td>{L_PASSWORD}: </td>
+									<td align="left"><input type="password" name="password"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td align="left"><input type="submit" value="{L_LOGIN}"></td>
+								</tr>
+                                                                <!--
+								<tr>
+									<td align="center" colspan="3">{LOGIN_ERROR}&nbsp;</td>
+								</tr>
+                                                                -->
+							</table>
+						</form>
+						<!-- switch display_login off -->
+						
+						
+						<!-- switch logged_in on -->
+                                                <b>{L_ADDUPDATE_CAL}</b><br />
+                                                {L_ADDUPDATE_DESC}<br /><br />
+                                                <form action="index.php" method="post" enctype="multipart/form-data">
+							<input type="hidden" name="action" value="addupdate">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								<tr>
+									<td nowrap>{L_CAL_FILE} 1: </td>
+									<td><input type="file" name="calfile[1]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 2: </td>
+									<td><input type="file" name="calfile[2]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 3: </td>
+									<td><input type="file" name="calfile[3]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 4: </td>
+									<td><input type="file" name="calfile[4]"></td>
+								</tr>
+								<tr>
+									<td nowrap>{L_CAL_FILE} 5: </td>
+									<td><input type="file" name="calfile[5]"></td>
+								</tr>
+								<tr>
+									<td>&nbsp;</td>
+									<td><input type="submit" value="{L_SUBMIT}"></td>
+								</tr>
+								<tr>
+									<td align="center" colspan="2">{ADDUPDATE_MSG} &nbsp;</td>
+								</tr>
+							</table>
+						</form>
+						
+						<b>{L_DELETE_CAL}</b>
+                                                <form action="index.php" method="post">
+							<table width="100%" border="0" cellspacing="0" cellpadding="2" class="G10B">
+								{DELETE_TABLE}
+							</table>
+							<input type="hidden" name="action" value="delete">
+							<p><input type="submit" value="{L_DELETE}"></p>
+							<p>{DELETE_MSG} &nbsp;</p>
+						</form>
+						
+						<!-- switch logged_in off -->
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="600" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+{FOOTER}
+
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/calendar_nav.tpl newcal/templates/tan/calendar_nav.tpl
--- oldcal/templates/tan/calendar_nav.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/calendar_nav.tpl	2006-03-23 19:57:09.000000000 -0500
@@ -0,0 +1,113 @@
+<table border="0" width="737" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="1%" valign="top" align="right">
+			{MONTH_SMALL|-1}
+			<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+		<td width="98%" valign="top" align="center">
+			<table border="0" width="330" cellspacing="0" cellpadding="0">
+				<tr>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{L_JUMP}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding: 5px;">
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+											<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+										<input type="hidden" name="cpath" value="{CPATH}"/>
+
+										</form>
+										<!-- switch show_search on -->
+										{SEARCH_BOX}
+										<!-- switch show_search off -->
+										<!-- switch show_goto on -->
+										<form style="margin-bottom:0;" action="day.php" method="get"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<input type="hidden" name="cal" value="{URL_CAL}"/>
+											<input type="text" style="width:160px; font-size:10px" name="jumpto_day"/>
+											<input type="submit" value="Go"/>
+										</form>
+										<!-- switch show_goto off -->
+										<hr />
+										<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+										<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+											<input type="hidden" name="getdate" value="{GETDATE}"/>
+											<input type="hidden" name="cpath" value="{CPATH}"/>
+											<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+											<input type="submit" value="Go"/>
+										</form>
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+					<td>
+						<img src="images/spacer.gif" width="20" height="1" alt=" " />
+					</td>
+					<td width="160" valign="top">
+						<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+							<tr>
+                                                                <td align="center" class="sideback"><div style="height:16px;"><b>{SIDEBAR_DATE}</b></div></td>
+							</tr>
+							<tr>
+								<td>
+									<div style="padding-left: 5px;">
+										<b>{L_LEGEND}:</b><br />
+										{LEGEND}
+										<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+										<!-- switch allow_preferences on -->
+										<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+										<!-- switch allow_preferences off -->
+										<!-- switch display_download on -->
+										<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+										<!-- switch display_download off -->
+										<!-- switch is_logged_in on -->
+										<a class="psf" href="{SCRIPT_NAME}?{QUERYS}">Logout {USERNAME}</a>
+										<!-- switch is_logged_in off -->
+									</div>
+								</td>
+							</tr>
+						</table>
+						<table width="100%" border="0" cellpadding="0" cellspacing="0">
+							<tr>
+								<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+								<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+		<td width="1%" valign="top" align="left">
+			{MONTH_SMALL|+1}
+			<table width="170" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/day.tpl newcal/templates/tan/day.tpl
--- oldcal/templates/tan/day.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/day.tpl	2005-11-19 01:55:40.000000000 -0500
@@ -0,0 +1,104 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>
+							<tr>	
+								<td colspan="2">
+									<table width="100%" border="0" cellspacing="0" cellpadding="2">
+										<tr>
+											<td align="left" valign="top" width="20" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}">&laquo;</a></span>
+											</td>
+											<!-- loop daysofweek on -->
+											<td width="14%" align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={DAYLINK}'">
+												<span class="V9BOLD"><a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a></span>
+											</td>
+											<!-- loop daysofweek off -->
+											<td align="right" valign="top" width="20" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='day.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+												<span class="V12"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}">&raquo;</a></span>
+											</td>
+										</tr>	
+									</table>
+								</td>
+							</tr>      			
+						</table>
+					</td>
+				</tr>
+				<tr id="allday">
+					<td>
+						<!-- loop allday on -->
+						<div class="alldaybg_{CALNO}">
+							{ALLDAY}
+						</div>
+						<!-- loop allday off -->
+					</td>
+				</tr>
+      			<tr>
+					<td align="center" valign="top" colspan="3">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<!-- loop row on -->
+							<tr>
+								<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder">&nbsp;</td>
+							</tr>
+							<tr>
+								<td width="1" height="15"></td>
+								<td class="dayborder2">&nbsp;</td>
+							</tr>
+							<!-- loop row off -->
+							<!-- loop event on -->
+							<div class="eventfont">
+								<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b> - {EVENT_END}</div>
+								<div class="padd">{EVENT}</div>
+							</div>
+							<!-- loop event off -->
+						</table>
+					</td>
+				</tr>
+        	</table>
+        	<table width="100%" border="0" cellpadding="0" cellspacing="0">
+				<tr>
+					<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+				</tr>
+			</table>
+    	</td>
+		<td width="10"><img src="images/spacer.gif" width="10" height="1" alt=" " /></td>
+		<td width="170" valign="top">
+			{SIDEBAR}
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/default.css newcal/templates/tan/default.css
--- oldcal/templates/tan/default.css	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/default.css	2006-03-23 21:45:19.000000000 -0500
@@ -0,0 +1,158 @@
+/* Style sheet for the grey calendar */
+
+table, td {font: 11px Verdana, Arial, sans-serif; color: #000;}
+
+/* Background images for tables */
+.tbll	{background: url(images/shadow_l.gif) no-repeat; width:8px}
+.tblbot	{background: url(images/shadow_m.gif) repeat-x; width:100%}
+.tblr	{background: url(images/shadow_r.gif) no-repeat; width:8px}
+
+.alldaybg_1 {background: url(images/allday_1.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_2 {background: url(images/allday_2.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_3 {background: url(images/allday_3.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_4 {background: url(images/allday_4.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_5 {background: url(images/allday_5.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_6 {background: url(images/allday_6.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+
+.rowOn			{ background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOn2			{ background-color: #cfc; border-top: 1px solid #fff; }
+.rowOff			{ background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+.rowOff2		{ background-color: #E1E8F1; border-top: 1px solid #fff; }
+.rowToday		{ background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; }
+
+.padd			{ padding: 2px; }
+
+/* Styles for day and week events (varies)*/
+.eventbg_1	 		{ background-color: #A6A978; padding: 2px;}
+.eventbg_2	 		{ background-color: #CC8B00; padding: 2px;}
+.eventbg_3	 		{ background-color: #CC9966; padding: 2px;}
+.eventbg_4	 		{ background-color: #999900; padding: 2px;}
+.eventbg_5	 		{ background-color: #CC6600; padding: 2px;}
+.eventbg_6	 		{ background-color: #CCCC99; padding: 2px;}
+.eventbg_7	 		{ background-color: #666666; padding: 2px;}
+
+#allday a		{ font-size: 9px; color: #fff; font-weight: 900; text-decoration:none;}
+#allday a:hover	{ text-decoration:underline;}
+/*varies*/
+.eventbg2_1	 		{ background-color: #A6A978; border: 1px solid #FFFFFF; }
+.eventbg2_2	 		{ background-color: #CC8B00; border: 1px solid #FFFFFF; }
+.eventbg2_3	 		{ background-color: #CC9966; border: 1px solid #FFFFFF; }
+.eventbg2_4	 		{ background-color: #999900; border: 1px solid #FFFFFF; }
+.eventbg2_5	 		{ background-color: #CC6600; border: 1px solid #FFFFFF; }
+.eventbg2_6	 		{ background-color: #CCCC99; border: 1px solid #FFFFFF; }
+.eventbg2_7	 		{ background-color: #666666; border: 1px solid #FFFFFF; }
+
+.alldaybg_8 		{background: url(images/allday_8.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_8	 		{ background-color: #008888; padding: 2px;}
+.eventbg2_8	 		{ background-color: #00AAAA; border: 1px solid #73738C; }
+
+.alldaybg_9 		{background: url(images/allday_9.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_9	 		{ background-color: #DDDD00; padding: 2px;}
+.eventbg2_9	 		{ background-color: #FFFF00; border: 1px solid #73738C; }
+
+.alldaybg_10 		{background: url(images/allday_10.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_10	 		{ background-color: #000068; padding: 2px;}
+.eventbg2_10 		{ background-color: #000089; border: 1px solid #73738C; }
+
+.alldaybg_11 		{background: url(images/allday_11.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;}
+.eventbg_11	 		{ background-color: #009A78; padding: 2px;}
+.eventbg2_11 		{ background-color: #00AA88; border: 1px solid #73738C; }
+
+
+.dayborder 		{ background-color: #fff; border-top: 1px solid #A1A5A9; }
+.dayborder2 	{ background-color: #fff; border-top: 1px dashed #ccc; }
+
+.title  		{ background-image: url(images/time_bg.gif); padding: 5px; }
+.title h1 		{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;}
+
+/* Month View */
+
+.monthback		{ background-color: #A1A5A9; }
+.monthreg		{ background-color: #fff; height: 105px; width: 105px; text-align: left; vertical-align: top; }
+.monthoff		{ background-color: #F2F2F2; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.monthon		{ background-color: #F2F9FF; height: 105px; width: 105px; text-align: left;  vertical-align: top; }
+.montheventtop	{ background-image: url(images/side_bg.gif); border-top: 1px solid #A1A5A9; }
+.montheventline	{ border-right: 1px dotted #A1A5A9; }
+
+/* Year View */
+
+.medtitle		{ background-image: url(images/side_bg.gif); height: 20px; margin-top: 3px; font-weight: 900; }
+.yearreg		{ background-color: #fff; height: 30px; width: 30px; text-align: right; vertical-align: top; font-size: 9px; }
+.yearoff		{ background-color: #F2F2F2; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearon			{ background-color: #F2F9FF; height: 30px; width: 30px; text-align: right;  vertical-align: top; font-size: 9px; }
+.yearmonth		{ background-color: #ccc; }
+.yearweek		{ background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; }
+
+
+/* older styles */
+
+.eventborder	{ background-image: url(images/day_title.gif); border: 1px #006699 solid; }
+.eventbg	 	{ background-color: #6699CC; }
+
+.calborder 		{ background-color: #fff; border: 1px #A1A5A9 solid; }
+.dateback		{ background-color: #eee; }
+.weekborder 	{ border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
+.weekborder2 	{ border-right: 1px solid #A1A5A9; }
+.timeborder 	{ border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); }
+.timeborder2 	{ border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); }
+.navback 		{ background-image: url(images/time_bg.gif); }
+.sideback 		{ background-image: url(images/side_bg.gif); }
+
+
+/* Link colors and attributes */
+/* This is the main link style (varies) */
+a.psf			{ text-decoration:	none; }
+a.psf:link		{ color: #666; }
+a.psf:visited	{ color: #888; }
+a.psf:active	{ color: #666; }
+a.psf:hover		{ color: #333; text-decoration: underline; }
+
+/* This is the link style for the mini-cals (varies)*/	
+a.ps2			{ text-decoration:	underline; }
+a.ps2:link		{ color: #0066FF; }
+a.ps2:visited	{ color: #0066FF; }
+a.ps2:active	{ color: #3366CC; }
+a.ps2:hover		{ color: #000099; }
+
+/* This is the link style for year months */	
+a.ps3			{ text-decoration:	none; }
+a.ps3:link		{ color: #000; }
+a.ps3:visited	{ color: #000; }
+a.ps3:active	{ color: #000; }
+a.ps3:hover		{ color: #000; text-decoration: underline; }
+
+/* This is the link style for events */	
+a.ps			{ text-decoration:	none; }
+a.ps:link		{ color: #fff; }
+a.ps:visited	{ color: #fff; }
+a.ps:active		{ color: #fff; }
+a.ps:hover		{ color: #fff; text-decoration: underline; }
+	
+/* Body attributes */
+
+body			{ background-image: url(images/background.gif); }
+
+/* CSS definitions for fonts */
+
+.V9 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #000000; }
+.V10W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; text-decoration:	none;}
+.V9W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #FFFFFF; text-decoration:	none;}
+.V10WB 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: 900; }
+.V9G 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #666666; }
+.V10 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
+.V9BOLD 		{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
+.G10 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; }
+.G10B 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
+.G10BOLD 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; }
+.G10G 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; }
+.V12 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;  color: #000000; }
+/*h1 				{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000000; }*/
+.eventfont 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
+
+
+/* Length of the form drop downs */
+
+.query_style 	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style 	{ font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }
+.login_style	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; }
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/error.tpl newcal/templates/tan/error.tpl
--- oldcal/templates/tan/error.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/error.tpl	2004-12-18 13:37:52.000000000 -0500
@@ -0,0 +1,43 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="520" valign="top" align="center">
+			<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+							<tr>
+								<td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=" "></td>
+								<td align="center" valign="middle" width="98%" class="sideback"><b>{L_ERROR_WINDOW}</b></td>
+								<td class="sideback" width="1%"></td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td>
+                                                <table width="100%" border="0" cellspacing="0" cellpadding="10" class="G10B">   
+                                                        <tr>
+                                                                <td align="center" valign="top" class="V12">
+                                                                        {ERROR_MSG}<br />
+                                                                        [<span class="G10"><a href="http://phpicalendar.net/documentation/index.php?title=Error_message_meanings">What does this mean?</a></span>]
+									<br />
+									<br />
+									{ERROR_CALENDAR}
+									<br />
+									<br />
+									{L_ERROR_BACK}
+									<br />
+                                                                        
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/event.tpl newcal/templates/tan/event.tpl
--- oldcal/templates/tan/event.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/event.tpl	2005-09-06 22:52:07.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT_TEXT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on -->
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					<!-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>{L_ATTENDEE}</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/footer.tpl newcal/templates/tan/footer.tpl
--- oldcal/templates/tan/footer.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/footer.tpl	2006-04-09 21:18:56.000000000 -0400
@@ -0,0 +1,15 @@
+<center class="V9"><br />{L_POWERED_BY} <a class="psf" href="http://phpicalendar.net/">PHP iCalendar {VERSION}</a><br />
+<!-- switch rss_valid on -->
+<p>
+<a style="color:gray" href="http://feeds.archive.org/validator/check?url={FOOTER_CHECK}">
+<img src="{BASE}images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" /></a>
+</p>
+<!-- switch rss_valid off -->
+<!-- switch rss_powered on -->
+{L_THIS_SITE_IS} <a class="psf" href="{BASE}rss/index.php?cal={CAL}&amp;getdate={GETDATE}">RSS-Enabled</a><br />
+<!-- switch rss_powered off -->
+<!--Page generated in {GENERATED1} seconds.<br />
+Template generated in {GENERATED2} seconds.-->
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/header.tpl newcal/templates/tan/header.tpl
--- oldcal/templates/tan/header.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/header.tpl	2006-03-23 19:59:10.000000000 -0500
@@ -0,0 +1,19 @@
+<!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>
+	<meta http-equiv="content-type" content="text/html; charset={CHARSET}" />
+	<title>{CALENDAR_NAME} - {DISPLAY_DATE}</title>
+  	<link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}templates/{TEMPLATE}/default.css" />
+	<!-- switch rss_available on -->
+	<link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&amp;rssview={CURRENT_VIEW}">
+	<!-- switch rss_available off -->		
+	{EVENT_JS}
+</head>
+<body>
+<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
+  <input type="hidden" name="date" id="date" value="" />
+  <input type="hidden" name="time" id="time" value="" />
+  <input type="hidden" name="uid" id="uid" value="" />
+  <input type="hidden" name="cpath" id="cpath" value="" />
+</form>
Binary files oldcal/templates/tan/images/.DS_Store and newcal/templates/tan/images/.DS_Store differ
Binary files oldcal/templates/tan/images/allday_1.gif and newcal/templates/tan/images/allday_1.gif differ
Binary files oldcal/templates/tan/images/allday_2.gif and newcal/templates/tan/images/allday_2.gif differ
Binary files oldcal/templates/tan/images/allday_3.gif and newcal/templates/tan/images/allday_3.gif differ
Binary files oldcal/templates/tan/images/allday_4.gif and newcal/templates/tan/images/allday_4.gif differ
Binary files oldcal/templates/tan/images/allday_5.gif and newcal/templates/tan/images/allday_5.gif differ
Binary files oldcal/templates/tan/images/allday_6.gif and newcal/templates/tan/images/allday_6.gif differ
Binary files oldcal/templates/tan/images/allday_7.gif and newcal/templates/tan/images/allday_7.gif differ
Binary files oldcal/templates/tan/images/allday_bg.gif and newcal/templates/tan/images/allday_bg.gif differ
Binary files oldcal/templates/tan/images/allday_dot.gif and newcal/templates/tan/images/allday_dot.gif differ
Binary files oldcal/templates/tan/images/back.gif and newcal/templates/tan/images/back.gif differ
Binary files oldcal/templates/tan/images/background.gif and newcal/templates/tan/images/background.gif differ
Binary files oldcal/templates/tan/images/day_on.gif and newcal/templates/tan/images/day_on.gif differ
Binary files oldcal/templates/tan/images/day_title.gif and newcal/templates/tan/images/day_title.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/images/default.css newcal/templates/tan/images/default.css
--- oldcal/templates/tan/images/default.css	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/images/default.css	2003-11-22 16:16:11.000000000 -0500
@@ -0,0 +1,99 @@
+/* Style sheet for the green calendar */
+
+.eventborder	{ background-color: #979A65; border: 1px #616339 solid; }
+.eventbg	 	{ background-color: #A6A978; }
+
+.eventbg_1	 		{ background-color: #A6A978; }
+.eventbg_2	 		{ background-color: #CC8B00; }
+.eventbg_3	 		{ background-color: #CC9966; }
+.eventbg_4	 		{ background-color: #999900; }
+.eventbg_5	 		{ background-color: #CC6600; }
+.eventbg_6	 		{ background-color: #CCCC99; }
+.eventbg_7	 		{ background-color: #666666; }
+
+.eventbg2 	 	{ background-color: #A6A978; border-right: 1px solid #FFFFFF; }
+
+.eventbg2_1	 		{ background-color: #A6A978; border-right: 1px solid #FFFFFF; }
+.eventbg2_2	 		{ background-color: #CC8B00; border-right: 1px solid #FFFFFF; }
+.eventbg2_3	 		{ background-color: #CC9966; border-right: 1px solid #FFFFFF; }
+.eventbg2_4	 		{ background-color: #999900; border-right: 1px solid #FFFFFF; }
+.eventbg2_5	 		{ background-color: #CC6600; border-right: 1px solid #FFFFFF; }
+.eventbg2_6	 		{ background-color: #CCCC99; border-right: 1px solid #FFFFFF; }
+.eventbg2_7	 		{ background-color: #666666; border-right: 1px solid #FFFFFF; }
+.eventbg2week 	{ background-color: #A6A978; border-right: 1px solid #A1A5A9; }
+
+.eventbg2week_1	 	{ background-color: #A6A978; border-right: 1px solid #A1A5A9; }
+.eventbg2week_2	 	{ background-color: #CC8B00; border-right: 1px solid #A1A5A9; }
+.eventbg2week_3	 	{ background-color: #CC9966; border-right: 1px solid #A1A5A9; }
+.eventbg2week_4	 	{ background-color: #999900; border-right: 1px solid #A1A5A9; }
+.eventbg2week_5	 	{ background-color: #CC6600; border-right: 1px solid #A1A5A9; }
+.eventbg2week_6	 	{ background-color: #CCCC99; border-right: 1px solid #A1A5A9; }
+.eventbg2week_7	 	{ background-color: #666666; border-right: 1px solid #A1A5A9; }
+
+.calborder 		{ background-color: #FFFFFF; border: 1px #A1A5A9 solid; }
+.dateback		{ background-color: #EEEEEE; }
+.dayborder 		{ border-top: 1px solid #A1A5A9; }
+.dayborder2 	{ border-top: 1px dashed #CCCCCC; }
+.weekborder 	{ border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
+.weekborder2 	{ border-right: 1px solid #A1A5A9; }
+.timeborder 	{ border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(time_bg.gif); }
+.timeborder2 	{ border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(time_bg.gif); }
+.navback 		{ background-image: url(time_bg.gif); }
+.sideback 		{ background-image: url(side_bg.gif); }
+.monthback		{ background-color: #A1A5A9; }
+.monthreg		{ background-color: #FFFFFF; }
+.monthoff		{ background-color: #F2F2F2; }
+.monthon		{ background-color: #F1F3D8; }
+.montheventtop	{ background-image: url(side_bg.gif); border-top: 1px solid #A1A5A9; }
+.montheventline	{ border-right: 1px dotted #A1A5A9; }
+.yearmonth		{ background: #CCCCCC; }
+
+/* Link colors and attributes */
+/* This is the main link style */
+a.psf			{ text-decoration:	none; }
+a.psf:link		{ color: #999933; background-color: transparent; }
+a.psf:visited	{ color: #999933; background-color: transparent; }
+a.psf:active	{ color: #999933; background-color: transparent; }
+a.psf:hover		{ color: #333300; background-color: transparent; }
+
+/* This is the link style for the mini-cals */	
+a.ps2			{ text-decoration:	underline; }
+a.ps2:link		{ color: #999933; background-color: transparent; }
+a.ps2:visited	{ color: #999933; background-color: transparent; }
+a.ps2:active	{ color: #999933; background-color: transparent; }
+a.ps2:hover		{ color: #333300; background-color: transparent; }
+
+/* This is the link style for year months */	
+a.ps3			{ text-decoration:	none; }
+a.ps3:link		{ color: #000000; background-color: transparent; }
+a.ps3:visited	{ color: #000000; background-color: transparent; }
+a.ps3:active	{ color: #000000; background-color: transparent; }
+a.ps3:hover		{ color: #000000; background-color: transparent; text-decoration:	underline;}
+	
+/* Body attributes */
+
+body			{ background-image: url(background.gif); }
+
+/* CSS definitions for fonts */
+
+.V9 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #000000; }
+.V10W 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; }
+.V10WB 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #FFFFFF; font-weight: 900; }
+.V9G 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; color: #666666; }
+.V10 			{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000; }
+.V9BOLD 		{ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
+.G10 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; }
+.G10B 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; }
+.G10BOLD 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; }
+.G10G 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; }
+.V12 			{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;  color: #000000; }
+.H20 			{ font-family: Helvetica, sans-serif; font-size: 18px; color: #000000; }
+.eventfont 		{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
+
+
+/* Length of the form drop downs */
+
+.query_style 	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style 	{ font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }
+.login_style	{ font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; }
+
Binary files oldcal/templates/tan/images/download_arrow.gif and newcal/templates/tan/images/download_arrow.gif differ
Binary files oldcal/templates/tan/images/event_dot.gif and newcal/templates/tan/images/event_dot.gif differ
Binary files oldcal/templates/tan/images/left_arrows.gif and newcal/templates/tan/images/left_arrows.gif differ
Binary files oldcal/templates/tan/images/left_day.gif and newcal/templates/tan/images/left_day.gif differ
Binary files oldcal/templates/tan/images/month_on.gif and newcal/templates/tan/images/month_on.gif differ
Binary files oldcal/templates/tan/images/monthdot_1.gif and newcal/templates/tan/images/monthdot_1.gif differ
Binary files oldcal/templates/tan/images/monthdot_2.gif and newcal/templates/tan/images/monthdot_2.gif differ
Binary files oldcal/templates/tan/images/monthdot_3.gif and newcal/templates/tan/images/monthdot_3.gif differ
Binary files oldcal/templates/tan/images/monthdot_4.gif and newcal/templates/tan/images/monthdot_4.gif differ
Binary files oldcal/templates/tan/images/monthdot_5.gif and newcal/templates/tan/images/monthdot_5.gif differ
Binary files oldcal/templates/tan/images/monthdot_6.gif and newcal/templates/tan/images/monthdot_6.gif differ
Binary files oldcal/templates/tan/images/monthdot_7.gif and newcal/templates/tan/images/monthdot_7.gif differ
Binary files oldcal/templates/tan/images/printer.gif and newcal/templates/tan/images/printer.gif differ
Binary files oldcal/templates/tan/images/right_arrows.gif and newcal/templates/tan/images/right_arrows.gif differ
Binary files oldcal/templates/tan/images/right_day.gif and newcal/templates/tan/images/right_day.gif differ
Binary files oldcal/templates/tan/images/search.gif and newcal/templates/tan/images/search.gif differ
Binary files oldcal/templates/tan/images/shadow_l.gif and newcal/templates/tan/images/shadow_l.gif differ
Binary files oldcal/templates/tan/images/shadow_m.gif and newcal/templates/tan/images/shadow_m.gif differ
Binary files oldcal/templates/tan/images/shadow_r.gif and newcal/templates/tan/images/shadow_r.gif differ
Binary files oldcal/templates/tan/images/side_bg.gif and newcal/templates/tan/images/side_bg.gif differ
Binary files oldcal/templates/tan/images/smallicon.gif and newcal/templates/tan/images/smallicon.gif differ
Binary files oldcal/templates/tan/images/spacer.gif and newcal/templates/tan/images/spacer.gif differ
Binary files oldcal/templates/tan/images/time_bg.gif and newcal/templates/tan/images/time_bg.gif differ
Binary files oldcal/templates/tan/images/week_on.gif and newcal/templates/tan/images/week_on.gif differ
Binary files oldcal/templates/tan/images/year_on.gif and newcal/templates/tan/images/year_on.gif differ
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/month.tpl newcal/templates/tan/month.tpl
--- oldcal/templates/tan/month.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/month.tpl	2005-11-19 01:56:27.000000000 -0500
@@ -0,0 +1,88 @@
+{HEADER}
+<center>
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr valign="top">
+						<td align="left" width="615" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+						<td align="right" width="120" class="navback">	
+							<div style="padding-top: 3px;">
+							<table width="120" border="0" cellpadding="0" cellspacing="0">
+								<tr valign="top">
+									<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+									<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+									<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+									<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+								</tr>
+							</table>
+							</div>
+						</td>
+					</tr>  			
+				</table>
+			</td>
+		</tr>	
+	</table>
+	{MONTH_LARGE|+0}
+	<table width="735" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<br />
+	{CALENDAR_NAV}
+	<!-- switch showbottom on -->
+	<br />
+	<table width="735" border="0" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" valign="middle" bgcolor="white">
+				<table width="100%" border="0" cellspacing="0" cellpadding="0">
+					<tr>
+						<td align="right" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={PREV_MONTH}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="{L_PREV}" border="0" align="right" /></a></td>
+						<td align="center" width="20%" class="title" nowrap="nowrap" valign="middle"><h1>{L_THIS_MONTHS}</h1></td>
+						<td align="left" width="40%" class="navback"><a class="psf" href="month.php?cal={CAL}&amp;getdate={NEXT_MONTH}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="{L_NEXT}" border="0" align="left" /></a></td>
+					</tr>
+				</table>
+			</td>
+		</tr>	
+		<tr>
+			<td>
+				<table width="100%" cellspacing="1" cellpadding="4" border="0">
+					<!-- loop showbottomevents_odd on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td>
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_odd off -->
+					<!-- loop showbottomevents_even on -->
+					<tr align="left" valign="top">
+						<td width="170" nowrap="nowrap" bgcolor="#EEEEEE">
+							<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{START_DATE}</a><br />
+							<span class="V9G">{START_TIME}</span>
+						</td>
+						<td bgcolor="#EEEEEE">
+							{EVENT_TEXT}<br /><span class="V9G">{CALNAME}</span>
+						</td>
+					</tr>
+					<!-- loop showbottomevents_even off -->
+				</table>
+			</td>
+		</tr>
+	</table>
+	<table width="737" border="0" cellpadding="0" cellspacing="0">
+		<tr>
+			<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+			<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		</tr>
+	</table>
+	<!-- switch showbottom off -->
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/month_large.tpl newcal/templates/tan/month_large.tpl
--- oldcal/templates/tan/month_large.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/month_large.tpl	2004-05-19 23:59:37.000000000 -0400
@@ -0,0 +1,42 @@
+<table width="735" border="0" cellspacing="1" cellpadding="2" class="monthback">
+	<tr>
+		<!-- loop weekday on -->
+		<td valign="top" width="105" height="12" class="dateback">
+			<center class="V9BOLD">{LOOP_WEEKDAY}</center>
+		</td>
+		<!-- loop weekday off -->
+	</tr>
+	<!-- loop monthweeks on -->
+	<tr>
+		<!-- loop monthdays on -->
+		<!-- switch notthismonth on -->
+		<td class="monthoff">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch notthismonth off -->
+		<!-- switch istoday on -->
+		<td class="monthon">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch istoday off -->
+		<!-- switch ismonth on -->
+		<td class="monthreg">
+			<div align="right">
+				<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+			</div>
+			{ALLDAY}
+			{EVENT}	
+		</td>
+		<!-- switch ismonth off -->
+		<!-- loop monthdays off -->
+	</tr>
+	<!-- loop monthweeks off -->
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/month_medium.tpl newcal/templates/tan/month_medium.tpl
--- oldcal/templates/tan/month_medium.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/month_medium.tpl	2006-03-23 19:59:55.000000000 -0500
@@ -0,0 +1,45 @@
+<table border="0" width="210" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td align="center" class="medtitle">{MONTH_TITLE}</td>
+	</tr>
+	<tr>
+		<td>
+			<table border="0" width="210" cellspacing="1" cellpadding="0" class="yearmonth">
+				<tr>
+					<!-- loop weekday on -->
+					<td class="yearweek">{LOOP_WEEKDAY}</td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr>
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td class="yearoff">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td class="yearon">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td class="yearreg">
+						<a class="psf" href="day.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+						<div align="center">
+							{ALLDAY}
+							{EVENT}
+						</div>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->	
+			</table>
+		</td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/month_small.tpl newcal/templates/tan/month_small.tpl
--- oldcal/templates/tan/month_small.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/month_small.tpl	2004-09-13 15:35:23.000000000 -0400
@@ -0,0 +1,38 @@
+<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
+	<tr>
+                <td align="center" class="sideback"><div style="height:16px;"><b>{MONTH_TITLE}</b></div></td>
+	</tr>
+	<tr>
+		<td align="center">
+			<table border="0" cellspacing="0" cellpadding="0">
+				<tr align="center">
+					<!-- loop weekday on -->	
+					<td width="22"><b>{LOOP_WEEKDAY}</b></td>
+					<!-- loop weekday off -->
+				</tr>
+				<!-- loop monthweeks on -->
+				<tr align="center">
+					<!-- loop monthdays on -->
+					<!-- switch notthismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="G10G">{DAY}</span></a>
+					</td>
+					<!-- switch notthismonth off -->
+					<!-- switch istoday on -->
+					<td>
+						<a class="ps2" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch istoday off -->
+					<!-- switch ismonth on -->
+					<td>
+						<a class="psf" href="{MINICAL_VIEW}.php?cal={CAL}&amp;getdate={DAYLINK}">{DAY}</a>
+					</td>
+					<!-- switch ismonth off -->
+					<!-- loop monthdays off -->
+				</tr>
+				<!-- loop monthweeks off -->
+			</table>
+			<img src="images/spacer.gif" width="1" height="3" alt=" " /><br />
+		</td>
+	</tr>
+</table>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/preferences.tpl newcal/templates/tan/preferences.tpl
--- oldcal/templates/tan/preferences.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/preferences.tpl	2006-03-23 20:00:10.000000000 -0500
@@ -0,0 +1,102 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_PREFERENCES}</h1><span class="V9G">{L_PREFS_SUBHEAD}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" " /></td>
+	</tr>
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="5">	
+				<!-- switch message on -->
+				<tr>
+					<td colspan="2" align="center"><font class="G10BOLD">{MESSAGE}</font></td>
+				</tr>
+				<!-- switch message off -->
+				<tr>
+					<td valign="top" align="left">
+					<form action="preferences.php?action=setcookie" method="post">
+					<table border="0" width="100%" cellspacing="2" cellpadding="2" align="center">
+						<tr align="left" valign="top">
+							<td width="80%" nowrap="nowrap">{L_SELECT_LANG}:</td>
+							<td width="10%"><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td width="10%"><select name="cookie_language" class="query_style">{LANGUAGE_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_CAL}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_calendar" class="query_style">{CALENDAR_SELECT}</select>
+							<input type="hidden" name="cpath" value="{CPATH}"/></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_VIEW}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_view" class="query_style">{VIEW_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_TIME}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_time" class="query_style">{TIME_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_DAY}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_startday" class="query_style">{STARTDAY_SELECT}</select></td>
+						</tr>
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_SELECT_STYLE}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><select name="cookie_style" class="query_style">{STYLE_SELECT}</select></td>
+						</tr>
+						<!-- switch cookie_already_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">{L_UNSET_PREFS}:</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="checkbox" name="unset" value="true" /></td>
+						</tr>
+						<!-- switch cookie_already_set off -->
+						<!-- switch cookie_not_set on -->
+						<tr align="left" valign="top">
+							<td nowrap="nowrap">&nbsp;</td>
+							<td><img src="images/spacer.gif" alt=" " width="20" height="1" border="0" /></td>
+							<td><input type="submit" name="set" value="{L_SET_PREFS}" /></td>
+						</tr>
+						<!-- switch cookie_not_set off -->
+					</table>
+					</form>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/print.tpl newcal/templates/tan/print.tpl
--- oldcal/templates/tan/print.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/print.tpl	2006-03-23 20:00:58.000000000 -0500
@@ -0,0 +1,81 @@
+{HEADER}
+<center>
+<table border="0" width="650" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}<br>
+					<a class="psf" href="{PRINTVIEW}.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day">Calendar view</a></span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="90" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=day"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=week"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=month"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview=year"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+      	</td>
+    </tr>
+	<tr>
+		<td colspan="3" class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" " /></td>
+	</tr>
+	<tr>
+		<td colspan="3">
+			<table border="0" cellspacing="0" cellpadding="5" width="100%">
+				<tr>
+					<td align="left" valign="top">
+						<!-- switch some_events on -->
+						<div class="V12"><b>{DAYOFMONTH}</b></div>
+						<!-- loop events on -->
+						<div style="padding: 6px;">
+							<table width="100%" border="0" cellspacing="1" cellpadding="1">
+								<tr>
+									<td width="100" class="G10BOLD">{L_TIME}:</td>
+									<td align="left" class="G10B">{EVENT_START}</td>
+								</tr>
+								<!-- switch location_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_LOCATION}:</td>
+									<td valign="top" align="left" class="G10B">{LOCATION}</td>
+								</tr>
+								<!-- switch location_events off -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+									<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+								</tr>
+								<!-- switch description_events on -->
+								<tr>
+									<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+									<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+								</tr>
+								<!-- switch description_events off -->
+							</table>
+						</div>
+						<!-- loop events off -->
+						<!-- switch some_events off -->
+															
+						<!-- switch no_events on -->
+						<div class="V12"><b>{L_NO_RESULTS}</b></div>
+						<!-- switch no_events off -->
+					</td>
+				</tr>
+			</table>		
+		</td>
+	</tr>
+</table>
+<table width="650" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/rss_index.tpl newcal/templates/tan/rss_index.tpl
--- oldcal/templates/tan/rss_index.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/rss_index.tpl	2006-03-23 20:01:18.000000000 -0500
@@ -0,0 +1,61 @@
+{HEADER}
+<center>
+<table border="0" width="700" cellspacing="0" cellpadding="0">
+	<tr>
+		<td width="700" valign="top" align="center">
+			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="calborder">
+				<tr>
+					<td align="center" valign="middle">
+						<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="400" class="title"><h1>{L_RSS_INFO}</h1><span class="V9G">{L_RSS_SUBHEAD}</span></div></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="../day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="../week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="../month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="../year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="../templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>  			
+						</table>
+					</td>
+				</tr>
+				<tr>
+					<td class="dayborder"><img src="../images/spacer.gif" width="1" height="5" alt=" " /></td>
+				</tr>
+				<tr>
+					<td>
+						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">	
+							<tr>
+								<td width="2%"></td>
+								<td width="98%" valign="top" align="left">
+									<br />
+									{L_THIS_SITE_IS} <a class="psf" href="http://www.oreillynet.com/rss/">RSS 0.91 enabled</a>.<br />
+									<br />
+									{RSS_LIST}
+									<br />
+									<p>RSS feeds can also be set up for a specified number of days before or after a given date, or between two dates.  See the <a href="http://phpicalendar.net/documentation/index.php/RSS_feeds">documentation</a> for how to set up the URLs</p>
+								</td>
+							</tr>
+						</table>
+					</td>
+				</tr>
+			</table>
+		</td>
+	</tr>
+</table>
+<table width="700" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="../images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/search.tpl newcal/templates/tan/search.tpl
--- oldcal/templates/tan/search.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/search.tpl	2005-10-30 01:15:47.000000000 -0500
@@ -0,0 +1,115 @@
+{HEADER}
+<center>
+<table border="0" width="520" cellspacing="0" cellpadding="0" class="calborder">
+	<tr>
+		<td>
+			<table width="100%" border="0" cellspacing="0" cellpadding="0">
+				<tr valign="top">
+					<td align="left" width="400" class="title"><h1>{L_RESULTS}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+					<td valign="top" align="right" width="120" class="navback">	
+						<div style="padding-top: 3px;">
+						<table width="120" border="0" cellpadding="0" cellspacing="0">
+							<tr valign="top">
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+							</tr>
+						</table>
+						</div>
+					</td>
+				</tr>  			
+			</table>
+		</td>
+	</tr>
+	<tr>
+		<td class="dayborder"><img src="images/spacer.gif" width="1" height="1" alt=" "></td>
+	</tr>
+	<tr>
+		<td align="left">
+			<div style="padding: 10px;">
+				<div><p class="V12">{L_QUERY}: {FORMATTED_SEARCH}</p></div>
+				<!-- switch results on -->
+				<font class="V12"><b><a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></b></font><br />
+				<div style="margin-left: 10px; margin-bottom: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="120" class="G10BOLD">{L_TIME}:</td>
+							<td align="left" class="G10B">{EVENT_START}</td>
+						</tr><tr>
+							<td width="120" class="G10BOLD">{L_LOCATION}:</td>
+							<td align="left" class="G10B">{LOCATION}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="G10B">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch recur on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="G10B">{RECUR}</td>
+						</tr>
+						<!-- switch recur off -->
+						<!-- switch description on -->
+						<tr>
+							<td valign="top" width="100" class="G10BOLD">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="G10B">{DESCRIPTION}</td>
+						</tr>
+						<!-- switch description off -->
+					</table>
+				</div>
+				<!-- switch exceptions on -->		
+				<font class="V10"><i>{L_EXCEPTION}</i>: <a class="ps3" href="day.php?cal={CAL}&amp;getdate={KEY}">{DAYOFMONTH}</a></font><br />
+				<div style="margin-left: 10px;">
+					<table width="100%" border="0" cellspacing="1" cellpadding="1">
+						<tr>
+							<td width="100" class="V10">{L_TIME}:</td>
+							<td align="left" class="V10">{EVENT_START}</td>
+						</tr>
+						<tr>
+							<td valign="top" width="100" class="V10">{L_SUMMARY}:</td>
+							<td valign="top" align="left" class="V10">{EVENT_TEXT}</td>
+						</tr>
+						<!-- switch except_recur on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_RECURRING_EVENT}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_RECUR}</td>
+						</tr>
+						<!-- switch except_recur off -->
+						<!-- switch except_description on -->
+						<tr>
+							<td valign="top" width="100" class="V10">{L_DESCRIPTION}:</td>
+							<td valign="top" align="left" class="V10">{EXCEPT_DESCRIPTION}</td>
+						</tr>
+						<!-- switch except_description off -->
+					</table>
+				</div>
+				<!-- switch exceptions off -->		
+				<br />
+				<!-- switch results off -->
+				
+				<!-- switch no_results on -->
+				<div align="center">
+					<p class="V12">{L_NO_RESULTS}</p>
+				</div>
+				<!-- switch no_results off -->
+				
+				<div align="center">
+					{SEARCH_BOX}
+				</div>
+				<br />
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="520" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+</center>
+
+{FOOTER}
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/search_box.tpl newcal/templates/tan/search_box.tpl
--- oldcal/templates/tan/search_box.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/search_box.tpl	2006-03-23 20:01:37.000000000 -0500
@@ -0,0 +1,9 @@
+<hr />
+<div class = 'G10BOLD'>{L_SEARCH}:</div>
+<form action="search.php" method="GET">
+	<input type="hidden" name="cpath" value="{CPATH}"/>
+	<input type="hidden" name="cal" value="{CAL}"/>
+	<input type="hidden" name="getdate" value="{GETDATE}"/>
+	<input type="text" size="15" name="query" value=""/>
+	<input type="image" src="templates/{TEMPLATE}/images/search.gif" name="submit" value="Search"/>
+</form>
\ No newline at end of file
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/seminar.tpl newcal/templates/tan/seminar.tpl
--- oldcal/templates/tan/seminar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/seminar.tpl	2004-09-27 12:31:30.000000000 -0400
@@ -0,0 +1,43 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+	<meta http-equiv="content-type" content="text/html;charset=UTF-8">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{EVENT} - <span class="V9">(<i>{EVENT_TIMES}</i>)</span></p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch organizer on --
+					<b>{L_ORGANIZER}</b>: {ORGANIZER}<br />
+					-- switch organizer off -->
+					<!-- switch attendee on -->
+					<b>Host:</b>: {ATTENDEE}<br />
+					<!-- switch attendee off -->
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch location on -->
+					<b>{L_LOCATION}</b>: {LOCATION}<br />
+					<!-- switch location off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
+
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/sidebar.tpl newcal/templates/tan/sidebar.tpl
--- oldcal/templates/tan/sidebar.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/sidebar.tpl	2006-03-23 20:02:15.000000000 -0500
@@ -0,0 +1,225 @@
+<!-- switch show_user_login on -->
+<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php?{LOGIN_QUERYS}" method="post">
+<input type="hidden" name="action" value="login" />
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td colspan="2" align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_LOGIN}</div></td>
+	</tr>
+	<!-- switch invalid_login on -->
+	<tr>
+		<td colspan="2" bgcolor="#FFFFFF" align="left">
+			<div style="padding-left: 5px; padding-top: 5px; padding-right: 5px;">
+				<font color="red">{L_INVALID_LOGIN}</font>
+			</div>
+		</td>
+	</tr>
+	<!-- switch invalid_login off -->
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-top: 5px;">{L_USERNAME}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-top: 5px;"><input type="text" name="username" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left" valign="middle"><div style="padding-left: 5px; padding-bottom: 5px;">{L_PASSWORD}:</div></td>
+		<td bgcolor="#FFFFFF" align="right" valign="middle"><div style="padding-right: 5px; padding-bottom: 5px;"><input type="password" name="password" size="10" /></div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="center" valign="middle" colspan="2"><div style=padding-left: 5px; padding-bottom: 5px;"><input type="submit" value="{L_LOGIN}" /></div></td>
+	</tr>
+</table>
+</form>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+<!-- switch show_user_login off -->
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="left" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={PREV_DAY}"><img src="templates/{TEMPLATE}/images/left_arrows.gif" alt="{L_PREV}" width="16" height="20" border="0" align="left" /></a></td>
+		<td align="center" width="112" class="sideback"><font class="G10BOLD">{SIDEBAR_DATE}</font></td>
+		<td align="right" valign="top" width="24" class="sideback"><a class="psf" href="day.php?cal={CAL}&amp;getdate={NEXT_DAY}"><img src="templates/{TEMPLATE}/images/right_arrows.gif" alt="{L_NEXT}" width="16" height="20" border="0" align="right" /></a></td>
+	</tr>
+	<tr>
+		<td colspan="3" bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<b>{L_LEGEND}:</b><br />
+				{LEGEND}
+				<a class="psf" href="print.php?cal={CAL}&amp;getdate={GETDATE}&amp;printview={CURRENT_VIEW}">{L_GOPRINT}</a><br />
+				<!-- switch allow_preferences on -->
+				<a class="psf" href="preferences.php?cal={CAL}&amp;getdate={GETDATE}">{L_PREFERENCES}</a><br />
+				<!-- switch allow_preferences off -->
+				<!-- switch display_download on -->
+				<a class="psf" href="{SUBSCRIBE_PATH}">{L_SUBSCRIBE}</a>&nbsp;|&nbsp;<a class="psf" href="{DOWNLOAD_FILENAME}">{L_DOWNLOAD}</a><br />
+				<!-- switch display_download off -->
+				<!-- switch is_logged_in on -->
+				<a class="psf" href="{CURRENT_VIEW}.php?{LOGOUT_QUERYS}">{L_LOGOUT} {USERNAME}</a>
+				<!-- switch is_logged_in off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_JUMP}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_JUMPS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_ICALS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_YEARS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_MONTHS}</select><br />
+					<select name="action" class="query_style" onchange="window.location=(this.options[this.selectedIndex].value);">{LIST_WEEKS}</select><br />
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+
+				</form>
+				<!-- switch show_search on -->
+				{SEARCH_BOX}
+				<!-- switch show_search off -->
+				<!-- switch show_goto on -->
+				<form style="margin-bottom:0;" action="day.php" method="get">
+					<input type="hidden" name="cal" value="{URL_CAL}">
+					<input type="text" style="width:160px; font-size:10px" name="jumpto_day">
+					<input type="submit" value="Go"/>
+				</form>
+				<!-- switch show_goto off -->
+				<hr />
+				<div class = 'G10BOLD'>{L_PICK_MULTIPLE}:</div>
+				<form style="margin-bottom:0;" action="{CURRENT_VIEW}.php" method="get">
+					<input type="hidden" name="cpath" value="{CPATH}"/>
+					<input type="hidden" name="getdate" value="{GETDATE}"/>
+					<select name="cal[]" class="query_style" size="5" multiple="multiple">{LIST_ICALS_PICK}</select><br />
+					<input type="submit" value="Go"/>
+				</form>
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TOMORROWS}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<!-- switch t_allday on -->
+				{T_ALLDAY}<br />
+				<!-- switch t_allday off -->
+				<!-- switch t_event on -->
+				&bull; {T_EVENT}<br />
+				<!-- switch t_event off -->
+			</div>
+		</td>
+	</tr>
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+<!-- switch tomorrows_events off -->
+
+<!-- switch vtodo on -->
+
+<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
+	<tr>
+		<td align="center" width="98%" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{L_TODO}</div></td>
+	</tr>
+	<tr>
+		<td bgcolor="#FFFFFF" align="left">
+			<div style="padding: 5px;">
+				<table cellpadding="0" cellspacing="0" border="0">
+					<!-- switch show_completed on -->
+					<tr>
+						<td><img src="images/completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><s><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></s></td>
+					</tr>
+					<!-- switch show_completed off -->
+					<!-- switch show_important on -->
+					<tr>
+						<td><img src="images/important.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_important off -->
+					<!-- switch show_normal on -->
+					<tr>
+						<td><img src="images/not_completed.gif" alt=" " width="13" height="11" border="0" align="middle" /></td>
+						<td><img src="images/spacer.gif" width="2" height="1" border="0" alt="" /></td>
+						<td><a class="psf" href="javascript:openTodoInfo('{VTODO_ARRAY}')"><font class="G10B"> {VTODO_TEXT}</font></a></td>
+					</tr>
+					<!-- switch show_normal off -->
+				</table>
+			</div>
+		</td>
+	</tr>			
+</table>
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+
+<!-- switch vtodo off -->
+
+{MONTH_SMALL|-1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+0}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
+<img src="images/spacer.gif" width="1" height="10" alt=" " /><br />
+
+{MONTH_SMALL|+1}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+	<tr>
+		<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+		<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+	</tr>
+</table>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/todo.tpl newcal/templates/tan/todo.tpl
--- oldcal/templates/tan/todo.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/todo.tpl	2004-12-18 13:35:39.000000000 -0500
@@ -0,0 +1,42 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+		"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
+<html>
+<head>
+        <meta http-equiv="content-type" content="text/html;charset={CHARSET}">
+	<title>{CAL}</title>
+	<link rel="stylesheet" type="text/css" href="../templates/{TEMPLATE}/default.css">
+</head>
+<body>
+<center>
+	<table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder">
+		<tr>
+			<td align="center" class="sideback"><div style="height: 17px; margin-top: 3px;" class="G10BOLD">{CAL_TITLE_FULL}</div></td>
+		</tr>
+		<tr>
+			<td align="left" class="V12">
+				<div style="margin-left: 10px; margin-bottom:10px;">
+					<p>{VTODO_TEXT}</p>
+					<!-- switch description on -->
+					<p>{DESCRIPTION}</p>
+					<!-- switch description off -->
+					<p>
+					<!-- switch status on -->
+					<b>{L_STATUS}</b>: {STATUS}<br />
+					<!-- switch status off -->
+					<!-- switch priority on -->
+					<b>{L_PRIORITY}</b>: {PRIORITY}<br />
+					<!-- switch priority off -->
+					<!-- switch start_date on -->
+					<b>{L_CREATED}</b>: {START_DATE}<br />
+					<!-- switch start_date off -->
+					<!-- switch due_date on -->
+					<b>{L_DUE}</b>: {DUE_DATE}<br />
+					<!-- switch due_date off -->
+					</p>
+				</div>
+			</td>
+		</tr>
+	</table>
+</center>
+</body>
+</html>
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/week.tpl newcal/templates/tan/week.tpl
--- oldcal/templates/tan/week.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/week.tpl	2005-11-19 01:59:28.000000000 -0500
@@ -0,0 +1,117 @@
+{HEADER}
+<center>
+	<table border="0" width="770" cellspacing="0" cellpadding="0">
+		<tr>
+			<td width="610" valign="top">
+				<table width="610" border="0" cellspacing="0" cellpadding="0" class="calborder">
+					<tr>
+						<td align="center" valign="middle">
+							<table width="100%" border="0" cellspacing="0" cellpadding="0">
+							<tr valign="top">
+								<td align="left" width="490" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
+								<td valign="top" align="right" width="120" class="navback">	
+									<div style="padding-top: 3px;">
+									<table width="120" border="0" cellpadding="0" cellspacing="0">
+										<tr valign="top">
+											<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+											<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+											<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+											<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+										</tr>
+									</table>
+									</div>
+								</td>
+							</tr>     			
+						</table>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
+								<tr>
+									<td align="center" valign="top">
+										<table width="100%" border="0" cellspacing="0" cellpadding="0">
+											<tr>
+												<td align="left" valign="top" width="15" class="rowOff2" onmouseover="this.className='rowOn2'" onmouseout="this.className='rowOff2'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_WEEK}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_WEEK}">&laquo;</a></div>
+												</td>
+												<td align="left" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={PREV_DAY}'">
+													<div class="V12">&nbsp;<a class="psf" href="week.php?cal={CAL}&amp;getdate={PREV_DAY}">&lsaquo;</a></div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_DAY}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_DAY}">&rsaquo;</a>&nbsp;</div>
+												</td>
+												<td align="right" valign="top" width="15" class="rowOff" onmouseover="this.className='rowOn'" onmouseout="this.className='rowOff'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={NEXT_WEEK}'">
+													<div class="V12"><a class="psf" href="week.php?cal={CAL}&amp;getdate={NEXT_WEEK}">&raquo;</a>&nbsp;</div>
+												</td>
+												<td width="1"></td>
+												<!-- loop daysofweek on -->
+												<td width="80" {COLSPAN} align="center" class="{ROW1}" onmouseover="this.className='{ROW2}'" onmouseout="this.className='{ROW3}'" onclick="window.location.href='week.php?cal={CAL}&amp;getdate={DAYLINK}'">
+													<a class="ps3" href="day.php?cal={CAL}&amp;getdate={DAYLINK}"><span class="V9BOLD">{DAY}</span></a> 
+												</td>
+												<!-- loop daysofweek off -->
+											</tr>
+											<tr valign="top" id="allday">
+												<td width="60" class="rowOff2" colspan="4"><img src="images/spacer.gif" width="60" height="1" alt=" " /></td>
+												<td width="1"></td>
+												<!-- loop alldaysofweek on -->
+												<td width="80" {COLSPAN} class="rowOff">
+													<!-- loop allday on -->
+													<div class="alldaybg_{CALNO}">
+														{ALLDAY}
+														<img src="images/spacer.gif" width="80" height="1" alt=" " />
+													</div>
+													<!-- loop allday off -->
+												</td>
+												<!-- loop alldaysofweek off -->
+											</tr>
+											<!-- loop row on -->
+											<tr>
+												<td rowspan="4" align="center" valign="top" width="60" class="timeborder">9:00 AM</td>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder">&nbsp;</td>
+											</tr>
+											<tr>
+												<td width="1" height="15"></td>
+												<td class="dayborder2">&nbsp;</td>
+											</tr>
+											<!-- loop row off -->
+											<!-- loop event on -->
+											<div class="eventfont">
+												<div class="eventbg_{EVENT_CALNO}">{CONFIRMED}<b>{EVENT_START}</b></div>
+												<div class="padd">{EVENT}</div>
+											</div>
+											<!-- loop event off -->
+										</table>	
+									</td>
+								</tr>
+							</table>
+						</td>
+					</tr>
+				</table>
+				<table width="100%" border="0" cellpadding="0" cellspacing="0">
+					<tr>
+						<td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+						<td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td>
+					</tr>
+				</table>
+			</td>
+			<td width="10">
+				<img src="images/spacer.gif" width="10" height="1" alt=" " />
+			</td>
+			<td width="170" valign="top">
+				{SIDEBAR}
+			</td>
+		</tr>
+	</table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/templates/tan/year.tpl newcal/templates/tan/year.tpl
--- oldcal/templates/tan/year.tpl	1969-12-31 19:00:00.000000000 -0500
+++ newcal/templates/tan/year.tpl	2006-03-23 20:02:32.000000000 -0500
@@ -0,0 +1,132 @@
+{HEADER}
+<center>
+        <table width="676" border="0" cellspacing="0" cellpadding="0" class="calborder">
+                <tr>
+                        <td align="center" valign="middle" bgcolor="white">
+                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                        <tr>
+                                                <td align="left" width="120" class="navback">
+                                                        &nbsp;
+                                                </td>
+                                                <td class="navback">
+                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                                                                <tr>
+                                                                        <td align="right" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={PREV_YEAR}"><img src="templates/{TEMPLATE}/images/left_day.gif" alt="[Previous Year]" border="0" align="right" /></a>
+                                                                        </td>
+                                                                        <td align="center" width="10%" class="title" nowrap="nowrap" valign="middle">
+                                                                                <h1>{THIS_YEAR}</h1>
+                                                                        </td>
+                                                                        <td align="left" width="45%" class="navback">
+                                                                                <a class="psf" href="year.php?cal={CAL}&amp;getdate={NEXT_YEAR}"><img src="templates/{TEMPLATE}/images/right_day.gif" alt="[Next Year]" border="0" align="left" /></a>
+                                                                        </td>
+                                                                </tr>
+                                                        </table>
+                                                </td>
+                                                <td align="right" width="120" class="navback">
+                                                        <table width="120" border="0" cellpadding="0" cellspacing="0">
+                                                                <tr>
+								<td><a class="psf" href="day.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/day_on.gif" alt="{L_DAY}" border="0" /></a></td>
+								<td><a class="psf" href="week.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/week_on.gif" alt="{L_WEEK}" border="0" /></a></td>
+								<td><a class="psf" href="month.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/month_on.gif" alt="{L_MONTH}" border="0" /></a></td>
+								<td><a class="psf" href="year.php?cal={CAL}&amp;getdate={GETDATE}"><img src="templates/{TEMPLATE}/images/year_on.gif" alt="{L_YEAR}" border="0" /></a></td>
+                                                        </tr>
+                                                        </table>
+                                                </td>
+                                        </tr>
+                                </table>
+                        </td>
+                </tr>
+        </table>
+        <br />
+        <table border="0" width="670" cellspacing="0" cellpadding="0">
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|01}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|02}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|03}
+                        </td>
+			<td width="20" rowspan='8'>
+				<img src="images/spacer.gif" width="20" height="1" alt=" " />
+			</td>
+			<td rowspan='8' valign='top'>{SIDEBAR}</td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|04}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|05}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|06}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|07}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|08}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|09}
+                        </td>
+                </tr>
+                <tr>
+                        <td colspan="5">
+                                <img src="images/spacer.gif" width="1" height="20" alt=" " />
+                        </td>
+                </tr>
+                <tr>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|10}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|11}
+                        </td>
+                        <td width="20">
+                                <img src="images/spacer.gif" width="20" height="1" alt=" " />
+                        </td>
+                        <td width="210" valign="top" align="left">
+                                {MONTH_MEDIUM|12}
+                        </td>
+                </tr>
+        </table>
+</center>
+{FOOTER}
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/week.php newcal/week.php
--- oldcal/week.php	2005-12-01 01:15:28.000000000 -0500
+++ newcal/week.php	2006-04-09 21:23:15.000000000 -0400
@@ -50,18 +50,19 @@
 	'header'			=> BASE.'templates/'.$template.'/header.tpl',
 	'event_js'			=> BASE.'functions/event.js',
 	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
-        'sidebar'                       => BASE.'templates/'.$template.'/sidebar.tpl',
-        'search_box'                    => BASE.'templates/'.$template.'/search_box.tpl'
+    'sidebar'           => BASE.'templates/'.$template.'/sidebar.tpl',
+    'search_box'        => BASE.'templates/'.$template.'/search_box.tpl'
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'charset'			=> $charset,
 	'default_path'		=> '',
 	'template'			=> $template,
 	'cal'				=> $cal,
 	'getdate'			=> $getdate,
  	'getcpath'			=> "&cpath=$cpath",
-       'cpath'                 => $cpath,
+    'cpath'                 => $cpath,
 	'calendar_name'		=> $cal_displayname,
 	'display_date'		=> $display_date,
 	'current_view'		=> $current_view,
@@ -69,7 +70,7 @@
 	'rss_powered'	 	=> $rss_powered,
 	'rss_available' 	=> '',
 	'rss_valid' 		=> '',
-        'show_search'           => $show_search,
+    'show_search'           => $show_search,
 	'next_day' 			=> $next_day,
 	'next_week' 		=> $next_week,
 	'prev_day'	 		=> $prev_day,
@@ -103,6 +104,7 @@
 	'l_subscribe'		=> $lang['l_subscribe'],
 	'l_download'		=> $lang['l_download'],
 		'l_search'				=> $lang['l_search'],
+	'l_pick_multiple'	=> $lang['l_pick_multiple'],
 	'l_powered_by'		=> $lang['l_powered_by'],
 	'l_this_site_is'	=> $lang['l_this_site_is']			
 	));
diff -ruN --exclude php.ini --exclude config.inc.php --exclude .scripts-version --exclude config.inc.php oldcal/year.php newcal/year.php
--- oldcal/year.php	2005-12-07 02:26:14.000000000 -0500
+++ newcal/year.php	2006-04-09 21:23:30.000000000 -0400
@@ -3,6 +3,7 @@
 define('BASE', './');
 $current_view = 'year';
 require_once(BASE.'functions/ical_parser.php');
+require_once(BASE.'functions/list_functions.php');
 require_once(BASE.'functions/template.php');
 header("Content-Type: text/html; charset=$charset");
 
@@ -15,41 +16,116 @@
 $prev_year 	= strtotime ("-1 year", strtotime($getdate));
 $prev_year 	= date ("Ymd", $prev_year);
 
+$sidebar_date 		= localizeDate($dateFormat_day, strtotime($getdate));
+
+// For the side months
+ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
+$this_day 	= $day_array2[3]; 
+$this_month = $day_array2[2];
+$this_year 	= $day_array2[1];
+
+// select for calendars
+$list_icals 	= display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED));
+$list_years 	= list_years();
+$list_months 	= list_months();
+$list_weeks 	= list_weeks();
+$list_jumps 	= list_jumps();
+$list_calcolors = '<img src="templates/'.$template.'/images/allday_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_all_day'].'<br>
+<img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_event']."<br>"; 
+;
+$list_icals_pick = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED), TRUE);
+
+// login/logout
+$is_logged_in = ($username != '' && !$invalid_login) ? true : false;
+$show_user_login = (!$is_logged_in && $allow_login == 'yes');
+$login_querys = login_querys();
+$logout_querys = logout_querys();
+
+
+
 $page = new Page(BASE.'templates/'.$template.'/year.tpl');
 
 $page->replace_files(array(
 	'header'			=> BASE.'templates/'.$template.'/header.tpl',
-	'footer'			=> BASE.'templates/'.$template.'/footer.tpl'
+	'footer'			=> BASE.'templates/'.$template.'/footer.tpl',
+    'sidebar'           => BASE.'templates/'.$template.'/sidebar_year.tpl',
+    'search_box'        => BASE.'templates/'.$template.'/search_box.tpl'
 	));
 
 $page->replace_tags(array(
+	'version'			=> $phpicalendar_version,
 	'event_js'			=> '',
+	'current_view'		=> $current_view,
 	'template'			=> $template,
 	'charset'			=> $charset,
 	'default_path'		=> '',
 	'cal'				=> $cal,
-		'getcpath'			=> "&cpath=$cpath",
-        'cpath'                 => $cpath,
+	'getcpath'			=> "&cpath=$cpath",
+    'cpath'             => $cpath,
 	'getdate'			=> $getdate,
 	'calendar_name'		=> $cal_displayname,
 	'display_date'		=> $this_year,
+	'sidebar_date'		=> $sidebar_date,
 	'rss_powered'	 	=> $rss_powered,
 	'rss_available' 	=> '',
 	'rss_valid' 		=> '',
 	'todo_available' 	=> '',
 	'event_js' 			=> '',
 	'this_year'			=> $this_year,
+	'next_day' 			=> $next_day,
+	'next_week' 		=> $next_week,
+	'prev_day'	 		=> $prev_day,
+	'prev_week'	 		=> $prev_week,
 	'next_year'			=> $next_year,
 	'prev_year'			=> $prev_year,
+	'show_goto' 		=> '',
+	'show_user_login'	=> $show_user_login,
+	'invalid_login'		=> $invalid_login,
+	'login_querys'		=> $login_querys,
+	'is_logged_in' 		=> $is_logged_in,
+	'username'			=> $username,
+	'logout_querys'		=> $logout_querys,
+	'list_icals' 		=> $list_icals,
+	'list_icals_pick' 		=> $list_icals_pick,
+	'list_years' 		=> $list_years,
+	'list_months' 		=> $list_months,
+	'list_weeks' 		=> $list_weeks,
+	'list_jumps' 		=> $list_jumps,
+	'legend'	 		=> $list_calcolors,
+	'style_select' 		=> $style_select,
+	'l_goprint'			=> $lang['l_goprint'],
+	'l_preferences'		=> $lang['l_preferences'],
+	'l_calendar'		=> $lang['l_calendar'],
+	'l_legend'			=> $lang['l_legend'],
+	'l_tomorrows'		=> $lang['l_tomorrows'],
+	'l_jump'			=> $lang['l_jump'],
+	'l_todo'			=> $lang['l_todo'],
 	'l_day'				=> $lang['l_day'],
 	'l_week'			=> $lang['l_week'],
 	'l_month'			=> $lang['l_month'],
 	'l_year'			=> $lang['l_year'],
+	'l_search'				=> $lang['l_search'],
+	'l_subscribe'		=> $lang['l_subscribe'],
+	'l_download'		=> $lang['l_download'],
+	'l_pick_multiple'	=> $lang['l_pick_multiple'],
 	'l_powered_by'		=> $lang['l_powered_by'],
 	'l_this_site_is'	=> $lang['l_this_site_is']
 
 	));
-	
+
+if ($allow_login == 'yes') {
+	$page->replace_tags(array(
+	'l_invalid_login'	=> $lang['l_invalid_login'],
+	'l_password'		=> $lang['l_password'],
+	'l_username'		=> $lang['l_username'],
+	'l_login'			=> $lang['l_login'],
+	'l_logout'			=> $lang['l_logout']
+	));
+}
+
+$page->tomorrows_events($page);
+$page->get_vtodo($page);
+$page->draw_subscribe($page);	
 $page->output();
 
 ?>
