<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title><?php print $this->translate('Webmail Help Guide')?></title>
	  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/ui.css" type="text/css" media="screen, projection"/>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/errorhelp.css" type="text/css" media="screen, projection"/>
 		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/webmail.css" type="text/css" media="screen, projection"/>

		<!-- THEME STYLES -->
		<?php 

			$settings = Zend_Registry::get('UserSettings');
			$themePath = $settings['cssStyleTheme']; 

			$userData = Zend_Auth::getInstance()->getStorage()->read();
			$dbTables = new dbTables();
			$dbAdapter = Zend_Registry::get('dbAdapter');
		?>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/themes/<?php echo $themePath ?>/common.css?<?php echo Zend_registry::get('config')->global['version'] ?>" type="text/css" media="screen" />
				<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/themes/<?php echo $themePath ?>/tabs.css?<?php echo Zend_registry::get('config')->global['version'] ?>" type="text/css" media="screen" />
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/themes/<?php echo $themePath ?>/ui.css?<?php echo Zend_registry::get('config')->global['version'] ?>" type="text/css" media="screen" />

		<!-- jQuery -->
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl ?>js/jQuery/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl ?>js/jQuery/ui/jquery-ui-1.7.2.custom.min.js"></script>
		
		<!--[if IE]>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ie.css" type="text/css" media="screen" />
		<![endif]-->

		<!--[if lte IE 6]>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ie6.css" type="text/css" media="screen" />
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl; ?>js/dd_png.js"></script>
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl; ?>js/pngfix_selectors.js"></script>
		<![endif]-->
	    
	</head>
	<body class="help">

		<div id="actions"></div>

		<div id="primary" style="display: none;">

			<div id="primary_header">
				<h1><?php print $this->translate('WebMail Help Guide')?></h1>
			</div>

			<div id="primary_content">
			    <div id="primary_content_inner" style="padding: 15px 20px 20px 20px;">

			<div id='storage'>

				<h2><?php print $this->translate('Storage Help')?></h2>
				<br/>
				<strong><?php print $this->translate('Upload new file')?></strong>
				<p><?php print $this->translate('To add a new file, click the "Upload" button to open a file selection dialog. Browse your computer for the file you want to add, then click "Open" to add the file your storage tab. You can also drag and drop files from your computer to the storage tab.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/UploadStorage.png" /><BR>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/DnDStorage.png" /></p>

				<strong><?php print $this->translate('Sharing a file')?></strong>
				<p><?php print $this->translate('Select the desired file to share and click onto "Share File". You will then be give a public URL that anyone can use to access this file. To disable the sharing of this file, click onto "Disable File Share".')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ShareFile.png" /><BR>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/SharedFile.png" /></p>
				
				<strong><?php print $this->translate('Adding attachments')?></strong>
				<p><?php print $this->translate('You can add attachments from your storage tab to emails by clicking the "Attach from Storage" button below the email composition interface. This will bring up a file selection interface so you can browse for the file you want to attach.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AttachFile.png"/><BR>
				
				<strong><?php print $this->translate('External Access via Mac OSX')?></strong>

				<p><?php print $this->translate('Open the menu and choose under "Go" the option "Connect with server".')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ExternalStorage1.png" /></p>

				<p><?php print $this->translate('Enter as the server address the URL http://domain.com:8008/webfiles/ and then click on "Connect".')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ExternalStorage2.png" /></p>

				<p><?php print $this->translate('You will now be asked for your credentials. Please enter the following data:')?></p>

				<ol>
				<li><?php print $this->translate('Email Address:')?> <i><?php print $this->translate('Enter your full email address, example@domain.com.')?></i>.</li>
				<li><?php print $this->translate('Password:')?> <i><?php print $this->translate('Enter your account password.')?></i>.</li>
				</ol>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ExternalStorage3.png" /></p>

				<p><?php print $this->translate('Finished! Your webmail storage directory is now displayed under "Shared". ')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ExternalStorage4.png" /></p>

			</div>    	

			<div id='addressbook'>

				<h2><?php print $this->translate('Contacts Help')?></h2>
				<br/>
				<strong><?php print $this->translate('Adding new contacts')?></strong>
				<p><?php print $this->translate('To add a new contact, click the "New Contact" button and type the contact\'s information in the appropriate fields. You can add optional information using the "More Information" menu. Click the "Save Contact" button to save the contact.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AddContact.png" /></p>

				<strong><?php print $this->translate('Adding a picture to a contact')?></strong>
				<p><?php print $this->translate('Click the silhouette icon by the contact\'s Name field to open a file selection dialog. Browse your computer for the picture you want to add, then click "Open" to add the picture to the contact.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/SilhouetteIcon.png" /></p>
				
				<strong><?php print $this->translate('Adding more fields')?></strong>
				<p><?php print $this->translate('You can create fields for multiple email addresses, phone numbers, and other information using the green "+" (plus sign) buttons by each input field. Click the green "+" button to create a new field, enter the appropriate information, and select options from the drop-down menus. You can remove fields from a contact by clicking the red "-" (minus sign) next to the field. Click on "Save Contact" when finished to save the additional information.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/MultipleFields.png" /></p>
				
				<strong><?php print $this->translate('Adding a new group')?></strong>
				<p><?php print $this->translate('Click the "New Group" button to create a new Address-Book group. You can add contacts to groups by dragging their names from the contact list in the middle pane to the group\'s folder in the left pane.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AddGroup.png" /></p>
					
				<strong><?php print $this->translate('Upload/Export contacts')?></strong>
				<p><?php print $this->translate('Atmail 7 supports vCard format for address book/contacts import and export. To save your contacts to a vCard file, select the check-boxes next to the contacts you\'d like to export, then click the "Export" button. Select the name and location to save your .vcf (vCard) file and confirm. To import contacts from a vCard file, click "Upload" and choose the .vcf file from the file selection dialog. Then click "Open" to import the contacts within the .vcf file.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/UploadExport.png" /></p>

			</div>
			
			<div id='addressbookremote'>
				<h2><?php print $this->translate('Remote Contacts Access')?></h2>
				<br/>
				
				<strong><?php print $this->translate('Connecting to your contacts from other clients')?></strong>
				<p><?php print $this->translate('You can connect to Atmail\'s CardDAV-based address book server with many different clients. The procedure varies from client to client, but all will ask for your CardDAV server\'s network address and may require authentication credentials.')?></p>
				
				<strong><?php print $this->translate('Connecting to your contacts/calendar from Microsoft Outlook')?></strong>
				<p><?php print $this->translate('Please see the')?> <a href="<?php echo $this->moduleBaseUrl ?>/settings/help/helpFile/websync"><?php print $this->translate('Outlook DavSync')?></a> <?php print $this->translate('section for more information.')?></p>
				
				<strong><?php print $this->translate('Configuring your iOS 4+ device (iPhone, iPad, iPod)')?></strong>
				
				<br/><br/>
				<p><?php print $this->translate('See')?> <a href="#" onclick="$('#secondary').tabs('select', 8)"><?php print $this->translate('iOS Configuration')?></a></p>
				
				<strong><?php print $this->translate('Apple OSX')?></strong><br><br>
				
				<ol>
				<li><?php print $this->translate('Open')?> <i><?php print $this->translate('System Preferences')?></i>.</li>
				<li><?php print $this->translate('Open')?> <i><?php print $this->translate('Mail, Contacts &amp; Calendars')?></i>.</li>
				<li><?php print $this->translate('Select')?> <i><?php print $this->translate('Add Account')?></i> &gt; <i><?php print $this->translate('CardDAV Account')?></i>.</li>
				<li><?php print $this->translate('Enter your Atmail CardDAV details.')?></li>
				</ol>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ioscarddav.png" /><br>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ioscarddav2.png" />
				
			</div>

			<div id='calendar'>

				<h2><?php print $this->translate('Calendar Help')?></h2>
				<br/>
				<strong><?php print $this->translate('Navigating the calendar')?></strong>
				<p><?php print $this->translate('The calendar appears as a day view, displaying the current day\'s schedule in the right pane. The left pane displays a month view and a list of available calendars. Calendars selected with a check-box here will display events on the schedule in the right pane; uncheck the box next to a calendar to hide its events in the schedule display.')?><br><br><img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/CalendarCheckBox.png" /><br><br><?php print $this->translate('You can see the schedule for a different day by clicking the desired date in the left pane\'s month display. To view a different month, click the desired month\'s button below the month overview display. To view a different year, click the "&lt;" or "&gt;" buttons below the month overview display. The year you are switching to is shown.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/MonthOverview.png" /></p>
				
				<strong><?php print $this->translate('Month View')?></strong>
				<p><?php print $this->translate('You can also click the "Month" button for a month view in the right pane, with an overview of each day\'s events displayed in the monthly calendar. Click on a day to edit the day\'s schedule.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/MonthView.png" /></p>
				
				<strong><?php print $this->translate('Making a new calendar')?></strong>
				<p><?php print $this->translate('Click on the "+" (plus sign) button atop the list of calendars in the left pane to add a new calendar. Type the name of the new calendar over "Untitled" and press enter to create the calendar. You can delete calendars that you have access to by highlighting them in the list and clicking the "-" (minus sign) button.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AddCalendar.png" /></p>
				
				<strong><?php print $this->translate('Sharing a calendar')?></strong>
				<p><?php print $this->translate('To allow other Atmail users to read and/or edit your calendars, highlight the calendar you wish to share from the list in the left pane. Click the gear sign button to change the calendar\'s settings.')?><br><br><img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/Gear.png" /><br><br><?php print $this->translate('Enter the user you want to share your calendar within into either the "Read/Write Calendar Access" or "Read Calendar Access" fields.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/CalendarSettings.png" /></p>
				
				<strong><?php print $this->translate('Adding a new event')?></strong>
				<p><?php print $this->translate('You can add a new event by double-clicking on the schedule in the right pane, or click-and-drag your mouse cursor over the schedule to select a block of time for your event. You can also drag-and-drop the buttons at the top and bottom of the event\'s schedule to change the scheduled time. The new event will be created in the calendar that\'s currently highlighted in the left pane; the schedule in the right pane displays events from all calendars whose check-box is checked.')?></p>
				
				<strong><?php print $this->translate('Editing an event')?></strong>
				<p><?php print $this->translate('Click an event to edit it. Enter the appropriate subject, time, date, reminder time, location, and other information for the event, then click "Save" to save your changes.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/EditCalendar.png" /></p>
				
				<strong><?php print $this->translate('Sharing an event')?></strong>
				<p><?php print $this->translate('When editing an event, you can choose attendees for the event. Add attendees as emails for your event, and click "Save" to save your changes and send an email invitation for the the event to each attendee listed.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/Attendees.png" /></p>
							
				</div>
				
				<div id='calendarremote'>
				<h2><?php print $this->translate('Remote Calendar Access')?></h2>
				<br/>
				
				<strong><?php print $this->translate('Connecting to your calendar from other clients')?></strong>
				<p><?php print $this->translate('You can connect to Atmail\'s CalDAV-based calendar server with many different clients, including iCal, Mozilla Lightning/Sunbird, and even your iPhone. The procedure varies from client to client, but all will ask for your calendar server\'s network address and may require authentication credentials. You can find this information by highlighting the desired calendar and clicking the gear sign button for that calendar; this will bring up the settings for the selected calendar, including network address. Your calendar\'s network address, username and password may or may not be the same as for your email address; ask your system\'s administrator if you\'re not sure.')?></p>

				<strong><?php print $this->translate('Connecting to your calendar from Microsoft Outlook')?></strong>
				<p><?php print $this->translate('Please see the')?> <a href="<?php echo $this->moduleBaseUrl ?>/settings/help/helpFile/websync"><?php echo $this->translate('Outlook DavSync')?></a> <?php echo $this->translate('section for more information.')?></p>
							
				<strong><?php print $this->translate('Configuring your iOS 4+ device (iPhone, iPad, iPod)')?></strong>
				
				<br/><br/>
				<p><?php print $this->translate('See')?> <a href="#" onclick="$('#secondary').tabs('select', 8)"><?php print $this->translate('iOS Configuration')?></a></p>
				
				<strong><?php print $this->translate('iCal')?></strong>
				
				<ol>
				<li><?php print $this->translate('Open iCal and go to Preferences.')?></li>
				<li><?php print $this->translate('Select Accounts and select to add new account.')?></li>
				<li><?php print $this->translate('Enter your Atmail Calendar details.')?></li>
				</ol>
				
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ioscaldav.png" /><br>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ioscaldav2.png" /></p>

				<strong><?php print $this->translate('Thunderbird')?></strong>

				<p><?php print $this->translate('If you are running or want to run Thunderbird as your mail client but also want the ability to view and sync your personal and shared calendars then the Atmail CalDAV will allow you to do this. You must have the Lightning plug-in for Thunderbird in order to do this. You can download this plugin via the following URL. http://www.mozilla.org/projects/calendar/lightning/download.html')?></p>

				<strong><?php print $this->translate('Once you have Lightning installed and the CalDAV service enabled you can then add a new calendar with the following steps:')?></strong> 
				
				<ol>
				<li><?php print $this->translate('Select Calendar > New Calendar.')?></li>
				<li><?php print $this->translate('Choose "On the Network" and click onto continue.')?></li>
				<img src="<?php print $this->siteBaseUrl; ?>images/help/TBLighting1.png" /><br>
				<li><?php print $this->translate('Choose "CalDAV" and enter your calendar URL. Click onto continue.')?></li>
				<img src="<?php print $this->siteBaseUrl; ?>images/help/TBLighting2.png" /><br>
				<li><?php print $this->translate('Enter a name for your calendar and click onto continue.')?></li>
				<img src="<?php print $this->siteBaseUrl; ?>images/help/TBLighting3.png" /><br>
				<li><?php print $this->translate('Enter username and password. Note you must use your full email address as the username.')?></li>
				<img src="<?php print $this->siteBaseUrl; ?>images/help/TBLighting4.png" /><br>
				<li><?php print $this->translate('Once you have added the calendars and authenticated to the server you will then see events displayed. From this point forward it will automatically sync with the Groupware database to pull any new events. The sync works in both directions. If you add an entry through Thunderbird it will sync to Webmail.')?></li>
				<img src="<?php print $this->siteBaseUrl; ?>images/help/TBLighting5.png" /><br>
				</ol>
				
			</div>

			<div id='websynchelp' style='overflow: auto'>
				<h2><?php print $this->translate('Outlook DavSync Help')?></h2>
				<br/>
				<strong><?php print $this->translate('Synchronizing your webmail contacts and appointments to Microsoft Outlook')?></strong>
				<?php if( Zend_Registry::get('w4m70Yt0hYUduM2r2lrrIuY0bgKG4A3vvftl4NbzCWfW') & LICENSE_FEATURE_DAVSYNC ) { ?>
				<p><?php print $this->translate('You can connect to Atmail\'s Contacts and CalDAV-based calendar server from Microsoft Outlook by using the provided DavSync utility. All you need is the webmail server\'s network address and your authentication credentials.')?></p>

				<p><?php print $this->translate('If you need to synchronize your mobile phone (iPhone, Windows Mobile or Android) read the')?> <a href='#' id='pushHelpLink'><?php echo $this->translate('ActiveSync help guide')?></a> <?php echo $this->translate('for assistance.')?></p>
				<div class="attachments message">
					<a name="attachments"></a>
				   	<h4>
				<ul>

				<li id="attachment1" class="attachment zip">
					<a href="http://atmail.com/downloads/getsync.php?v=<?php echo base64_encode(Zend_registry::get('config')->global['version']); ?>" target="_blank" class="filename"><?php print $this->translate('Download Sync')?></a> <span class="filesize"><?php print $this->translate('Zip file - Outlook 2007+')?></span>
				</li>
				
				</ul> 
				</h4>
				</div>

				<strong><?php print $this->translate('Supported Outlook versions')?></strong>
									
				<p><?php print $this->translate('The sync utility for Outlook supports the following versions only')?></p>
				
				<ul>
					<li><?php print $this->translate('Outlook 2007')?></li>
					<li><?php print $this->translate('Outlook 2010')?></li>
				</ul>
				
				<strong><?php print $this->translate('Setting up Sync')?></strong>
				<p><?php print $this->translate('Download the Sync utility above and extract the installer from the Zip file. Before installing, exit Outlook, then run the installation utility for Sync.')?></p>
					
				<p><?php print $this->translate('On the first execution of Outlook with Sync installed you will need to input your configuration information. Click the provided "Options" button in the Outlook toolbar. Enter the details of your webmail account (user/domain/server url) and click OK. This will test your entered settings for any problems and alert you to anything that requires your attention. After successfully connecting to the server you will be informed that a first time sync is required.')?></p>
				
				<strong><?php print $this->translate('Using Sync')?></strong>
				<p><?php print $this->translate('Simply select the types of object you would like to sync in the Sync Options pane and then click the "Sync" button in your toolbar to start the process! Alternatively you can also optionally enable "Auto-sync" which will watch and transfer objects in realtime and do an upload synchronization every 10 minutes.')?></p>
				
				<strong><?php print $this->translate('Data synchronization available')?></strong>
				<p><?php print $this->translate('The Outlook Sync utility can sync the following data')?></p>
				<ul>
					<li><?php print $this->translate('Contacts')?></li>
					<li><?php print $this->translate('Calendar events without timezone information')?></li>
				</ul>
				<p><?php print $this->translate('The data synchronized is made available via the Webmail interface, allowing you to keep Outlook and Webmail in sync. Any new data created in either Outlook or the Webmail interface are synchronized together.')?></p>
				<?php } else { ?>
					<p style="background:yellow"><?php print $this->translate('This feature is not available for your license type.')?></p>

				<?php } ?>
			</div>

			<div id='push_help'>
				
				<h2><?php print $this->translate('ActiveSync Help')?></h2>
				
				<?php if (strlen(Zend_Registry::get('config')->reg['serialKey']) != 64) :?>		        
					<div id="licence-error">
					<img src="<?php echo $this->siteBaseUrl ?>/images/icons/error.png" class="regerror"><span>
					<?php print $this->translate('Feature not enabled for your account. Contact Support.')?>	
					</span>
					</div>
				<?php endif ?>
						
				<p><?php print $this->translate('ActiveSync&reg; is a mobile data synchronization technology and protocol developed by Microsoft, which provides push synchronization of contacts, calendars, tasks, and email between ActiveSync enabled servers and devices. Such devices include the Apple iPhone, the Google Android, and Windows Mobile.')?></p>
				
				<p><?php print $this->translate('The ActiveSync connector can push the following data')?></p>
				<ul>
					<li><?php print $this->translate('Contacts - Personal folder')?></li>
					<li><?php print $this->translate('Calendar - Personal folder')?></li>
					<li><?php print $this->translate('Mail - Any folder specified')?></li>
				</ul>
					
				<p><?php print $this->translate('Read the guides below on learning how to configure an iPhone, Windows Mobile or Android device for push email support')?></p>
				<ul>
					<li><a href='#pushApple'><?php print $this->translate('iPhone/iPad/iPod Touch')?></a></li>
					<li><a href='#pushWM'><?php print $this->translate('Windows Mobile')?></a></li>
					<li><a href='#pushAndroid'><?php print $this->translate('Android')?></a></li>
				</ul>				
				
				<p><h3><?php print $this->translate('Push setup for iPhone/iPad/iPod Touch')?> <a name='pushApple'></a></h3><br/></p>
				
				<p><strong><?php print $this->translate('Creating the account')?></strong></p>
				<p><?php print $this->translate('The push email capability is easy to set up for an Apple iPhone &reg;.')?></p>
				<p><?php print $this->translate('Open the Settings window for the Apple iPhone &reg;. Go to Mail > Add Account. Select Microsoft Exchange as an account type.')?></p>
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/iphonestep1.png" height='480' width='320' /></p>

				<p><strong><?php print $this->translate('Setting account details')?></strong></p>
				<p><?php print $this->translate('Set the details corresponding with your account. Make sure that the username setting also contains the domain. For example, the username setting for an account called "ben@domain.com" will be "ben@domain.com".')?></p>
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/iphonestep2.png" height='480' width='320' /></p>

					<p><strong><?php print $this->translate('Push emails and contacts')?></strong></p>
					<p><?php print $this->translate('You can then enable the synchronization of emails, calendars and contacts. After saving your settings, your Apple iPhone &reg; will attempt to synchronize emails, calendars and contacts.')?></p>
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/iphonestep3.png" height='480' width='320' /></p>

				<p><strong><?php print $this->translate('Troubleshooting')?></strong></p>
				<p><?php print $this->translate('This error may appear after setting your Apple iPhone &reg; for Atmail.')?></p>
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/iphonewarning.png" height='480' width='320' /></p>
				<p><?php print $this->translate('This error can in most cases, be ignored. The SSL certificate given by the Webserver could not be authenticated. Select "Accept".')?></p>	

				<p><h3><?php print $this->translate('Push setup for Windows Mobile')?><a name='pushWM'></a></h3><br/></p>
				
				<p><strong><?php print $this->translate('Creating the account')?></strong></p>
				<p><?php print $this->translate('ActiveSync is native for Windows Mobile devices and simple to setup. To begin navigate to the Start Menu &gt; and select ActiveSync.')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/wmstep1.gif" height='320' width='240' /></p>

				<p><?php print $this->translate('Once open, click the Menu &gt; Configure Server Option. This will configure ActiveSync for the mobile device.')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/wmstep2.gif" height='320' width='240' /></p>

				<p><?php print $this->translate('Define the server address, this would be the domain you access the Webmail interface from.')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/wmstep3.gif" height='320' width='240' /></p>

				<p><?php print $this->translate('Define your full user-name as the email address of your account. Specify your account password and domain to continue.')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/wmstep4.gif" height='320' width='240' /></p>

				<p><?php print $this->translate('The last step is to define which data you wish to synchronize. Select the options required and click finish. The Mobile Push support will now be active on your device.')?></p>

				<p><h3><?php print $this->translate('Push setup for Android')?><a name='pushAndroid'></a></h3><br/></p>
				
				<p><strong><?php print $this->translate('Creating the account')?></strong></p>
				<p><?php print $this->translate('Setting up Push Mail, Contacts and Calendars for an Android Phone using DataViz RoadSync. RoadSync is available through the Android Market. However it comes standard with a large list of Android phones. A similar setup procedure can be used if you are using an alternate 3rd-party ActiveSync application for the Android phone.')?></p>
				
				<p><?php print $this->translate('Open the RoadSync application. Go to Settings > Server Settings.')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/androidsetup1.png" height='322' width='239' /></p>
				
				<p><?php print $this->translate('Next, set the details corresponding with your account. Make sure that the username setting also contains the domain. For example, the username setting for an account called "stewart@domain.com" will be "stewart@domain.com".')?></p>
				
				<p><img src="<?php echo $this->siteBaseUrl ?>images/help/androidsetup2.png" height='322' width='239' /></p>

				<p><?php print $this->translate('You can now enable the synchronization of emails, calendars and contacts on your Android ® Phone. To enable Push go to Settings > Sync Schedule. After saving your settings, your Android Phone will attempt to synchronize emails, calendars and contacts to the device.')?></p>
				
			</div>

			<div id='settings'>

				<h2><?php print $this->translate('Settings Help')?></h2>
				
				<p><h3><?php print $this->translate('WebMail Settings')?></h3></p>
				
				<strong><?php print $this->translate('Account Name')?></strong>
				<p><?php print $this->translate('Displays your email account name.')?></p>

				<strong><?php print $this->translate('Quota')?></strong>
				<p><?php print $this->translate('Displays your email accounts current quota usage.')?></p>
				
				<strong><?php print $this->translate('Real Name')?></strong>
				<p><?php print $this->translate('This will appear in the "Sender" field of emails you send before your email address.')?></p>
				
				<strong><?php print $this->translate('Reply To')?></strong>
				<p><?php print $this->translate('Here you can specify an email address for replies to be sent to, instead of the email address you use to log in.')?></p>
				
				<strong><?php print $this->translate('Thread Support')?></strong>
				<p><?php print $this->translate('Check this box to display email conversations as threads.')?></p>
				
				<strong><?php print $this->translate('Thread Limit')?></strong> 	
				<p><?php print $this->translate('Determines how old emails can be before they are not included in threads.')?></p>

				<strong><?php print $this->translate('Save sent emails to current folder')?></strong> 	
				<p><?php print $this->translate('Enable to save sent emails to the current folder. This allows more complete thread building and tracking.')?></p>

				<strong><?php print $this->translate('Change Theme')?></strong> 	
				<p><?php print $this->translate('Specify which theme to use for the Webmail interface.')?></p>

				<strong><?php print $this->translate('Theme Example')?></strong> 	
				<p><?php print $this->translate('Shows a small preview of the selected theme.')?></p>

				<strong><?php print $this->translate('Display Email Images')?></strong> 	
				<p><?php print $this->translate('Toggle to automatically display external images in email messages.')?></p>

				<strong><?php print $this->translate('Automatic Draft Save')?></strong> 	
				<p><?php print $this->translate('Save drafts automatically while composing email messages.')?></p>

				<strong><?php print $this->translate('Notifications')?></strong> 	
				<p><?php print $this->translate('Enable automatic checking for new email in the currently selected folder. Optionally enable sound notification and/or animated favicon for new messages on supported browsers.')?></p>

				<strong><?php print $this->translate('Delete Trash on Logout')?></strong> 	
				<p><?php print $this->translate('Automatically delete all mail from the Trash folder upon logout.')?></p>

				<strong><?php print $this->translate('Default View')?></strong> 	
				<p><?php print $this->translate('Select the mode to render the Webmail interface.')?></p>

				<strong><?php print $this->translate('Enable message preview')?></strong> 	
				<p><?php print $this->translate('Display an inline preview of each email message.')?></p>

				<strong><?php print $this->translate('Interface Language')?></strong>
				<p><?php print $this->translate('Select your preferred language for the Webmail interface.')?></p>

				<strong><?php print $this->translate('Date display')?></strong>
				<p><?php print $this->translate('Select the number of simultaneous messages to display in the Webmail interface. You may want to reduce this for slow connections.')?></p>
				
				<strong><?php print $this->translate('Messages per page')?></strong>
				<p><?php print $this->translate('Select the number of simultaneous messages to display in the Webmail interface. You may want to reduce this for slow connections.')?></p>

				<strong><?php print $this->translate('Timezone')?></strong>
				<p><?php print $this->translate('Specify the time-zone for your location.')?></p>

				<strong><?php print $this->translate('Signature')?></strong>
				<p><?php print $this->translate('Here you can specify a message that will be added to the end of every email you send from Webmail. You can use plain text or HTML for your signature.')?></p>

				<p><h3><?php print $this->translate('Anti-Spam Settings')?></h3></p>
				
				<strong><?php print $this->translate('Spam Filter Sensitivity')?></strong>
				<p><?php print $this->translate('Select the sensitivity for classifying messages as Spam. A lower score will be more aggressive for marking spam.')?></p>

				<strong><?php print $this->translate('Message Classification')?></strong>
				<p><?php print $this->translate('If a message is classified as Spam select the action for handling the message.')?></p>

				<strong><?php print $this->translate('Spam Tag')?></strong>
				<p><?php print $this->translate('If a message is marked as Spam rewrite the header to include the following text.')?></p>

				<strong><?php print $this->translate('Whitelist senders')?></strong>
				<p><?php print $this->translate('Specify a list of email addresses and domains to whitelist. Each entry must be on its own line. Any email or domain that matches will automatically be flagged as trusted without being classified as Spam.')?></p>

				<strong><?php print $this->translate('Blacklist senders')?></strong>
				<p><?php print $this->translate('Specify a list of email addresses and domains to blacklist. Each entry must be on its own line. Any email or domain that matches will automatically be classified as Spam.')?></p>
				
				<p><h3><?php print $this->translate('Email Filters')?></h3></p>
				
				<strong><?php print $this->translate('Search Filters')?></strong>
				<p><?php print $this->translate('Specify a rule or folder to filter results.')?></p>
				<strong><?php print $this->translate('Add New Rule')?></strong>
				<p><?php print $this->translate('Use this option to create email filters. Select from the drop down list "From", "To" or "Subject". Then select from second drop down list "is", "is not", "contains" or "does not contain". In the text box enter what you would like to be filtered. Then specify which folder the rule will deliver to.')?></p>
				<p><?php print $this->translate('Example:')?></p>
				<p><?php print $this->translate('New Rule: "From", "is" and "account@domain.com". Move To: "Trash".')?></p>
				<p><?php print $this->translate('This will move all emails received from account@domain.com to the trash folder.')?></p>
 
				<p><h3><?php print $this->translate('Mail Options')?></h3></p>
				
				<strong><?php print $this->translate('Enable Forward')?></strong>
				<p><?php print $this->translate('Check this box to enable forwarding of your emails to another email address.')?></p>
				
				<strong><?php print $this->translate('Forward mail')?></strong>
				<p><?php print $this->translate('Specify the email address to forward incoming email to.')?></p>
				
				<strong><?php print $this->translate('Enable Autoreply')?></strong>
				<p><?php print $this->translate('Check this box to enable automatic ("Vacation") reply to incoming messages.')?></p>
				
				<strong><?php print $this->translate('Autoreply message')?></strong>
				<p><?php print $this->translate('Specify the message to send to the senders of all incoming email.')?></p>
				
				<p><h3><?php print $this->translate('Change Password')?></h3></p>
				
				<strong><?php print $this->translate('Current Password')?></strong>
				<p><?php print $this->translate('Specify the current password for your email account.')?></p>
				
				<strong><?php print $this->translate('New Password')?></strong>
				<p><?php print $this->translate('Specify the new password for your email account.')?></p>
				
				<strong><?php print $this->translate('Confirm Password')?></strong>
				<p><?php print $this->translate('Specify your new email account password again (to avoid misspellings).')?></p>

				<p><h3><?php print $this->translate('User Interface Color Schemes')?></h3></p>
				
				<strong><?php print $this->translate('Color Pallete')?></strong>
				<p><?php print $this->translate('You can specify the color you wish to view the user interface in by clicking onto the down arrow at the top right of the interface, next to your account profile picture.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ColorPallete.png"/><BR>
				<strong><?php print $this->translate('Green Example')?></strong></p>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/GreenExample.png"/><BR>
				<strong><?php print $this->translate('Red Example')?></strong></p>
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/RedExample.png"/><BR>

			</div>

			<div id="email">

				<h2><?php print $this->translate('Email Help')?></h2>
				<br/>
				<strong><?php print $this->translate('Folder Navigation')?></strong>
				<p><?php print $this->translate('Atmail 7 offers a 3-pane or 2-pane email interface (you can switch back and forth using the "Pane View" buttons in the top right corner).')?></p>

				<p><?php print $this->translate('3-pane mode displays your email folders in the left pane, emails in the currently selected folder in the middle pane, and the contents of the selected email in the right pane. Simply click on a folder or message to select it.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/3Pane.png"/><BR>
					
				<p><?php print $this->translate('In 2-pane mode, the left pane will display a list of your email folders, and the right pane will display the contents of the selected folder or email. Click on a folder or message to select it; selected emails will be displayed with a tab at the top of the WebMail interface. Use these tabs to close emails by clicking on the "X" next to the message subject. The folder contents will be displayed in the right pane when the last email is closed.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/2Pane.png"/><BR>
				
				<strong><?php print $this->translate('Reading messages')?></strong>
				<p><?php print $this->translate('To read a message, just click the message preview in either 2-pane or 3-pane view to read the full message.')?></p>
				
				<strong><?php print $this->translate('Email Threading')?></strong>
				<p><?php print $this->translate('Email threading lets you keep track of email replies automatically. Atmail displays the selected message along with a list of prior emails from the same conversation - no need to search through months of old messages to find important information. Click on the sender\'s email address in the list above the current message to view the email; click again to hide the email. You can also click the "Toggle Threads" and "Collapse Threads" buttons to expand or collapse all emails in a conversation thread.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/Threading.png"/><BR>
				
				<strong><?php print $this->translate('Message reply')?></strong>
				<p><?php print $this->translate('Atmail 7 offers new options for answering email - you can now reply directly from the message preview. Just type your reply in the field below the displayed message, add attachments or formatting if desired, and click "Send my Reply". You can also reply and forward mail using the "Reply", "Reply All" and "Forward" buttons above the email interface.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/TopButtons.png"/><BR>
				
				<strong><?php print $this->translate('Reply All')?></strong>
				<p><?php print $this->translate('When replying to an email with multiple recipients, you can automatically send your reply to all recipients by checking the "Reply To All" box in the email preview pane before sending your reply, or click the "Reply All" button while reading the preview. Click on "Show Recipients" to see a list of email addresses the message will be sent to.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/ReplyAll.png"/><BR>
				
				<strong><?php print $this->translate('Adding attachments')?></strong>
				<p><?php print $this->translate('You can add attachments to emails by clicking the "Attach from Storage" or "Add Attachment" button below the email composition interface. This will bring up a file selection interface so you can browse for the file you want to attach.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AttachFile.png"/><BR>
				
				<strong><?php print $this->translate('Drag and Drop messages')?></strong>
				<p><?php print $this->translate('Sort messages into folders by clicking and dragging them to the desired folder. You can delete emails by dragging them to the Trash, mark messages as Spam by dragging to the Spam folder, or save important emails in your archive folders without clicking through multiple menus.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/DnD.png"/><BR>

				<strong><?php print $this->translate('Search Mail')?></strong>
				<p><?php print $this->translate('You can either do a basic or advanced search on your currently selected location. Simply type into the search text box and press enter for a basic search. For advanced search, click onto the magnifying glass to bring down a list of search options.')?></p>

				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/AdvancedSearch.png"/><BR>

			</div>
			
			<div id="iosprofile">
				<h2><?php print $this->translate('iOS Configuration')?></h2>
				<br/>
				
				<p><?php print $this->translate('If you have an Apple device running iOS 4+, you can opt to automatically configure it to access your Email, Calendar, and Contacts.')?></p>
				<?php  	 	 
					$baseUrl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']?'https':'http';
					$baseUrl.='://';
					$baseUrl.= $_SERVER['HTTP_HOST'];
					$baseUrl.= $this->baseUrl; 
					$baseUrl.= '/mail/';
					
					// access to DAV stuff via group
					$groupRows = $dbAdapter
						->select()
						->from($dbTables->Groups)
						->where('GroupName = ' . $dbAdapter->quote($userData['Ugroup']))
						->query()
						->fetchAll();
						
					$userGroup = $groupRows && isset($groupRows[0]) ? $groupRows[0]: array();

				?> 
				<p><?php print $this->translate('Access')?> <a href="<?php echo $baseUrl ?>"><?php echo $baseUrl ?></a> <?php print $this->translate('<i>from the device</i> to download a profile (you will be prompted to login again with your account and password).')?></p>
				
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/iosprofile1.png"/>
				
				<p><?php print $this->translate('Your iOS device should automatically prompt you to install the profile. Do so. Depending on the Atmail configuration, you may also be prompted to fill in some details such as your name or password.')?></p>
				
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/iosprofile2.png"/>
				
				<p><?php print $this->translate('Successful profile installation looks like this:')?></p>
				
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/iosprofile3.png"/>
				
				<p><?php print $this->translate('Afterward, verify that you can access your Email, Calendar, and Contacts from your device.')?></p>
				
				<img style="border: 1px solid lightgrey; margin-bottom: 1em;" src="<?php print $this->siteBaseUrl; ?>images/help/iosprofile4.png"/>
				
				<?php if (@$userGroup['CalDAVServer'] != '1' || @$userGroup['CardDAVServer'] != '1'): ?>
			
					<p><strong><?php print $this->translate('Note:')?></strong> <?php print $this->translate('Remote Calendar (CalDAV) and Contacts (CardDAV) services will only be available for external access if it has been enabled on the server. Contact your email provider for more information.')?></p>
					
				<?php endif; ?>
			</div>

			</div>
			
		</div>

		<div id="debug" style="position:absolute;left:0px;top:0px;padding:3px;"><pre><?php echo print_r($this->debug, true)?></pre></div>
 
	</body>
</html>

<div id="secondary">

	<ul id="nav_secondary">
	  <li id="email_help"><a href="#email"><span class="label"><?php print $this->translate('Email Help')?></span></a></li>
	  <li id="addressbook_help"><a href="#addressbook"><span class="label"><?php print $this->translate('Contacts Help')?></span></a></li>
	  <li id="addressbookremote_help"><a href="#addressbookremote"><span class="label"><?php print $this->translate('Remote Contacts Access')?></span></a></li>
	  <li id="calendar_help"><a href="#calendar"><span class="label"><?php print $this->translate('Calendar Help')?></span></a></li>
	  <li id="calendarremote_help"><a href="#calendarremote"><span class="label"><?php print $this->translate('Remote Calendar Access')?></span></a></li>
	  <li id="websync_help"><a href="#websynchelp"><span class="label"><?php print $this->translate('Outlook DavSync')?></span></a></li>
	  <li id="push_help"><a href="#push_help"><span class="label"><?php print $this->translate('ActiveSync Help')?></span></a></li>
	  <li id="settings_help"><a href="#settings"><span class="label"><?php print $this->translate('Settings Help')?></span></a></li>
	  <li id="storage_help"><a href="#storage"><span class="label"><?php print $this->translate('Storage Help')?></span></a></li>
	  <li id="iosprofile_help"><a href="#iosprofile"><span class="label"><?php print $this->translate('iOS Configuration')?></span></a></li>
	</ul>

</div>

<script type="text/javascript">
$( function(){
	
	$('#secondary').tabs();
	
	<?php if($this->helpFile == 'calendar') { ?>
	$('#secondary').tabs('select', 3);
<?php } else if($this->helpFile == 'websync') { ?>
	$('#secondary').tabs('select', 6);
<?php } else if($this->helpFile == 'contacts') { ?>
	$('#secondary').tabs('select', 1);
	<?php } else { ?>
	$('#secondary').tabs('select', 0);
<?php } ?>

	$("#pushHelpLink").bind('click', function() {
		$('#secondary').tabs('select', 6);		
	});

	$('#primary').show();
	
	window.focus();
});
</script>
