/**
 * Contains English Language Based Javascript
 *
 */

/* Locale Settings */
var LANGUAGE         = 'en';
var COUNTRY_CODE     = 'GB';
var LANGUAGE_COUNTRY = LANGUAGE + '_' + COUNTRY_CODE;

/* URLs for tabs */
var HOMEPAGE_CANONICAL_URL = 'http://www.powwownow.co.uk';
var HOMEPAGE_PLUS_TAB = '/Plus';
var HOMEPAGE_PREMIUM_TAB = '/Premium';

var WEB_CONFERENCING_CANONICAL_URL = 'http://www.powwownow.co.uk/Web-Conferencing';
var WEB_CONFERENCING_DEMO_TAB = '/Web-Conferencing/Demo';
var WEB_CONFERENCING_GET_STARTED_TAB = '/Web-Conferencing/Get-Started';

var LOGIN_PAGE_CANONICAL_URL = 'http://www.powwownow.co.uk/Login';
var LOGIN_PAGE_CREATE_A_LOGIN_TAB = '/Create-A-Login';

/* Headings and Titles for tabs */
var HOMEPAGE_POWWOWNOW_TITLE = 'Free Conference Call UK - Powwownow'
var HOMEPAGE_POWWOWNOW_H1 = 'Conference Call'

var HOMEPAGE_PLUS_TITLE = 'Free Conference Call Plus Service - Powwownow';
var HOMEPAGE_PLUS_H1 = 'Conference Call Plus'; 

var HOMEPAGE_PREMIUM_TITLE = 'Powwownow Premium | Conference Calls'
var HOMEPAGE_PREMIUM_H1 = 'Conference Call Premium'

var WEB_CONFERENCING_SHOWTIME_TITLE = 'Free UK Web Conferencing and Web Conference Service - Powwownow'
var WEB_CONFERENCING_SHOWTIME_H1 = 'Web Conferencing'

var WEB_CONFERENCING_DEMO_TITLE = 'Free UK Web Conferencing and Web Conference Service - Demo - Powwownow'
var WEB_CONFERENCING_DEMO_H1 = 'Web Conferencing'

var WEB_CONFERENCING_GET_STARTED_TITLE = 'Free UK Web Conferencing and Web Conference Service - Get Started - Powwownow'
var WEB_CONFERENCING_GET_STARTED_H1 = 'Web Conferencing'

/**
 * Urls
 *
 * We need Urls in this file so our other JS files can be multilingual
 */
var URL_FORGOTTEN_PASSWORD            = '/Forgotten-Password';
var URL_IN_CONFERENCE_CONTROLS        = '/In-Conference-Controls';
var URL_INTERNATIONAL_DIAL_IN_NUMBERS = '/International-Dial-In-Numbers';
var URL_PIN_REMINDER                  = '/PIN-Reminder';

// @todo: This if statement is for testing new mypwn, we need to remove it
// and the else statement when we go live with it
//if (window.location.href.indexOf('staging.powwownow') != -1) {
    var URL_MYPWN_LOGIN                   = '/ajax/mypwn/login';
    var URL_MYPWN_START_PAGE              = '/myPwn/';
    
    var URL_MYPWN_PLUS_CONFIRMATION_PAGE  = '/myPwn/?plusRegistration';
    
//} else {
//    var URL_MYPWN_LOGIN                   = '/mypwn/login/dologin/format/html/';
//    var URL_MYPWN_START_PAGE              = '/mypwn/mypins';
//}


var URL_MOBILE_APP		              = '/Mobile-App';
var URL_MYPWN_PINS                    = '/myPwn/Pins';
var URL_MYPWN_CALL_SETTINGS           = '/myPwn/Call-Settings';
var URL_MYPWN_REQUEST_WALLET_CARD     = '/myPwn/Request-Welcome-Pack';



/* Form Validation */

var FORM_SESSION_EXPIRED                          = 'For security, your session has expired. Please log back in to carry on using myPowwownow.';

//Email Address
var FORM_VALIDATION_INVALID_EMAIL_ADDRESS         = 'Please enter a valid email address';
var FORM_VALIDATION_NO_EMAIL                      = 'Please enter your email address';
var FORM_VALIDATION_EMAIL_MISMATCH                = 'Please make sure you retyped your email address correctly';
var FORM_VALIDATION_EMAIL_NOT_FOUND               = 'Your email address could not be found in our system. Please make sure you type the correct address';

//Names
var FORM_VALIDATION_NO_NAME                       = 'Please enter your name';
var FORM_VALIDATION_NO_FIRST_NAME                 = 'Please enter your first name';
var FORM_VALIDATION_NO_SURNAME                    = 'Please enter your surname';

//Other
var FORM_VALIDATION_INVALID_CONTACT               = 'Please choose a valid existing user, otherwise create a new user';
var FORM_VALIDATION_INVALID_CONTACT_REF           = 'Invalid Contact Reference has been selected. Please try again.';
var FORM_VALIDATION_T_AND_C                       = 'Please read our terms and conditions and mark the checkbox if you agree';
var FORM_VALIDATION_NO_COMPANY_NAME               = 'Please enter a company name';
var FORM_VALIDATION_INVALID_PHONE_NUMBER          = 'Please enter a valid phone number';
var FORM_VALIDATION_NO_MOBILE_NUMBER              = 'Please enter your mobile number';
var FORM_VALIDATION_HOW_HEARD_OF_PWN_NOT_SELECTED = 'Please tell us how you heard about Powwownow';
var FORM_VALIDATION_NO_COMMENTS                   = 'Please enter a comment';
var FORM_VALIDATION_NO_OPERATING_SYSTEM           = 'Please choose your operating system';
var FORM_VALIDATION_NO_ADDRESS				      = 'Please enter your street address'; 
var FORM_VALIDATION_NO_TOWN					      = 'Please enter your town';
var FORM_VALIDATION_INVALID_POSTCODE		      = 'Please enter a valid post code';
var FORM_VALIDATION_NO_LANGUAGE                   = 'Please select a voice prompt language';

//Tell-A-Friend
var FORM_VALIDATION_NO_FRIENDS_NAME               = 'Please enter your friend\'s name';
var FORM_VALIDATION_NO_FRIENDS_EMAIL              = 'Please enter a valid email address for your friend';

//Password
var FORM_VALIDATION_INVALID_PASSWORD              = '<p style="width:240px; display: block; white-space: normal;">Your username and password are not recognised. Please amend and try again<br /><br />If you are a registered user but have forgotten your password please use <a href="/Forgotten-Password">Password Reminder</a><br /><br />If you are a registered user but haven' + "'" + 't created a login please <a href="/Create-A-Login">create one here</a></p>';
var FORM_VALIDATION_NO_PASSWORD                   = 'Please enter your password';
var FORM_VALIDATION_PASSWORD_EMPTY		          = 'Please enter your password';
var FORM_VALIDATION_PASSWORD_MISMATCH             = 'Please make sure you retyped your password correctly';
var FORM_VALIDATION_PASSWORD_LESS_THAN_SIX_CHARS  = 'Please make sure your password is at least 6 characters long';
var FORM_VALIDATION_INVALID_PASSWORD_SPACES       = 'Please make sure your password does not start or end in a space';
var FORM_VALIDATION_FORGOT_PASSWORD_INVALID_TOKEN = 'We were unable to validate your email address. Please fill out the forgot password form';
var FORM_VALIDATION_FORGOT_PASSWORD_EXPIRED_TOKEN = 'The time to reset your password has expired. Please fill out the forgotten password form again.';
var FORM_VALIDATION_NEW_PASSWORD_EMPTY            = 'Please enter your new password';

//Date
var FORM_VALIDATION_INVALID_TO_DATE               = 'Please enter the To Date in the correct Format: yyyy-mm-dd';
var FORM_VALIDATION_INVALID_TO_DATE_DAY           = 'Please enter a valid Day in the To Date field';
var FORM_VALIDATION_INVALID_TO_DATE_MONTH         = 'Please enter a valid Month in the To Date field';
var FORM_VALIDATION_INVALID_TO_DATE_YEAR          = 'Please enter a valid Year in the To Date field';
var FORM_VALIDATION_INVALID_FROM_DATE             = 'Please enter the From Date in the correct Format: yyyy-mm-dd';
var FORM_VALIDATION_INVALID_FROM_DATE_DAY         = 'Please enter a valid Day in the From Date field';
var FORM_VALIDATION_INVALID_FROM_DATE_MONTH       = 'Please enter a valid Month in the From Date field';
var FORM_VALIDATION_INVALID_FROM_DATE_YEAR        = 'Please enter a valid Year in the From Date field';
var FORM_VALIDATION_INVALID_DATE_RANGE            = 'Please enter a valid date range. The From Date must be older than the To Date.';
var FORM_VALIDATION_INVALID_PUBLISH_EXPIRE_DATE   = 'Please enter the Expiry Date';
var FORM_VALIDATION_INVALID_PUBLISH_EXPIRE_DAY    = 'Please enter a valid Day in the Publish Expire field';
var FORM_VALIDATION_INVALID_PUBLISH_EXPIRE_MONTH  = 'Please enter a valid Month in the Publish Expire field';
var FORM_VALIDATION_INVALID_PUBLISH_EXPIRE_YEAR   = 'Please enter a valid Year in the Publish Expire field';
var FORM_VALIDATION_INVALID_PUBLISH_EXPIRE_OLD    = 'Please enter a valid Date in the future for the Publish Expire field';

//Pin
var FORM_VALIDATION_INVALID_SIX_DIGIT_PIN         = 'Please enter a valid 6 digit PIN';
var FORM_VALIDATION_INVALID_PIN                   = 'This PIN appears to be invalid';
var FORM_VALIDATION_NO_PIN           		      = 'Please select a PIN';
var FORM_VALIDATION_NO_PINS_SELECTED              = 'Please select a PIN';
var FORM_VALIDATION_NO_PERMISSION_TO_EDIT_PIN     = 'You do not have permission to edit that PIN';

//Pin Deletion
var FORM_CONFIRM_PIN_DELETION                       = 'Are you sure you wish to delete the selected PINs?';
var FORM_RESPONSE_PINS_DELETED_SUCCESS              = 'The selected PINs have been deleted';
var FORM_RESPONSE_PINS_DELETED_SUCCESS              = 'The selected PINs have been deleted';
var FORM_RESPONSE_PINS_DELETED_FAILURE              = 'An error occurred deleting the PINs';
var FORM_RESPONSE_PINS_DELETED_SUCCESS_AND_FAILURE  = 'Not all PINs could be deleted';
var FORM_RESPONSE_PINS_DELETED_FAILURE_ADMIN_PIN    = 'As the account administrator you are required to have a valid set of PINs';

//Pin Update
var FORM_RESPONSE_PINS_UPDATE_SUCCESS              = 'The selected PINs have been deleted';
var FORM_RESPONSE_PINS_UPDATE_FAILURE              = 'An error occurred updating the PINs';
var FORM_RESPONSE_PINS_UPDATE_SUCCESS_AND_FAILURE  = 'There was a problem updating some of your PINs.';

/*Login Form Response */
var FORM_RESPONSE_LOG_IN_SUCCESSFUL   = 'You have successfully logged in';
var FORM_RESPONSE_LOG_IN_UNSUCCESSFUL = 'Your login was unsuccessful; please try again';
var FORM_RESPONSE_LOG_IN_UNABLE       = 'We are currently unable to log you in to your account';
var FORM_RESPONSE_LOGOUT_UNSUCCESSFUL = 'Your logout was unsuccessful';

/* Pins */
var PIN_AND_CONTACT_DO_NOT_MATCH                    = 'The email address and specified PIN do not match';
var PIN_ALREADY_INACTIVE                            = 'Your PIN is already inactive';
var PIN_ALREADY_TAKEN                               = 'That PIN has already been taken';
var CANNOT_DEACTIVATE_ACCOUNT_USING_PARTICIPANT_PIN = 'A PIN cannot be deleted using the participant PIN. Please enter the chairperson PIN.';

/* API Response */
var API_RESPONSE_EMAIL_ALREADY_TAKEN                        = 'You already have an account with us.<br/>If you have forgotten your PIN<br/>please use the <a href="javascript:rightMenuToolTips_ShowTooltip(\'tooltip-pin-reminder\');">PIN Reminder</a> form';
var API_RESPONSE_ACCOUNT_ALREADY_CREATED_FOR_REQUESTED_DATA = 'An account for this e-mail has already been created. If you forgotten your password <a href="/Forgotten-Password">click here</a>.';
var API_RESPONSE_EMAIL_ALREADY_TAKEN_BUT_INACTIVE           = 'You already have an account with us, but your account is inactive. Please contact us for further help on 0207 990 0900.';
var API_RESPONSE_EMAIL_TAKEN_AND_NON_STANDARD_PWN           = 'It appears you are already a Premium customer or have signed up with one of our partners.<br><br>If you require further assistance then please contact us on 0207 990 0900.'; // If a PA or partner tries to create a log in
var API_RESPONSE_NO_ACCOUNT_FOR_EMAIL                       = 'We could not find an account associated with that email address';
var API_RESPONSE_PASSWORD_NOT_SET                           = 'You have not yet created a password to access myPowwownow. Please <a href="/Create-A-Login">create a login</a> first';
var API_RESPONSE_COST_CALCULATOR_FAILED                     = 'An error occurred calculating the call cost';
var API_RESPONSE_WEB_CONFERENCE_STATUS_DENIED               = 'A system error occurred, which means you cannot download Powwownow Web right now. If you need to connect urgently please call 020 7990 0900';

/* Default text appearing on forms */
var DEFAULT_TEXT_EMAIL_ADDRESS_HOME_PAGE_REGISTER = 'Enter email address here';
var DEFAULT_TEXT_EMAIL_ADDRESS                    = 'Enter email address';
var DEFAULT_TEXT_MOBILE                           = 'Enter mobile number';

/* Request Wallet Card Response */
var WALLET_CARD_PINS_TABLE_ONLY_ONE_PIN = 'Please select only one PIN, as only one welcome pack can be selected at a time';
var WALLET_CARD_REQUEST_ONE_PIN         = 'Please select only one PIN';

var WALLET_CARD_REQUEST_SUCCESS       = 'Thank you for your request. Your welcome pack is on its way!';
var WALLET_CARD_REQUEST_FAILURE       = 'An error occurred ordering your welcome pack';
var WALLET_CARD_REQUEST_EXCEEDED_MAX  = 'Your welcome pack request was unsuccessful as it has been requested 3 times already. Please Contact Us if you would like more welcome packs';
var WALLET_CARD_REQUEST_NO_PERMISSION = 'You do not have permission to request welcome packs for that user';

var WALLET_CARD_REQUEST_SUCCESS_SINGLE       = 'Thank you for your request. Your welcome pack is on its way for the PIN pair of %%PINPAIR%%.';
var WALLET_CARD_REQUEST_FAILURE_SINGLE       = 'An error occurred ordering the welcome pack for the PIN pairs of %%PINPAIR%%';
var WALLET_CARD_REQUEST_EXCEEDED_MAX_SINGLE  = 'Your welcome pack request was unsuccessful for the PIN pairs of %%PINPAIR%%, as it has been requested 3 times already. Please Contact Us if you would like more welcome packs for this PIN pair.';
var WALLET_CARD_REQUEST_NO_PERMISSION_SINGLE = 'You do not have permission to request welcome packs for the PIN pair of %%PINPAIR%%.';

/* Creating users */
var FORM_CREATE_USER_ERROR                           = 'An error occurred creating the user';
var FORM_CREATE_USER_EMAIL_TAKEN                     = 'That email address is already in use';
var FORM_CREATE_USER_EMAIL_TAKEN_BY_INACTIVE_ACCOUNT = 'That email address is already in use but by an inactive account. Please contact customer services if you would like the email reinstated.';

/* Other */
var FORM_COMMUNICATION_ERROR  = 'Sorry, we are currently experiencing technical difficulties. Please try again later';
var FORM_CREATE_PIN_ERROR     = 'An error occurred creating the PIN';
var FORM_UPDATE_CONTACT_ERROR = 'An error occurred updating the contact';


/**
 * Valid redirects to be executed after signing up with myPowwownow
 */
var MYPWN_LOGIN_REDIRECTS = new Array();
//if (window.location.href.indexOf('staging.powwownow') != -1) {
    MYPWN_LOGIN_REDIRECTS[0]  = '/myPwn/Schedule-A-Call';
    MYPWN_LOGIN_REDIRECTS[1]  = '/myPwn/Web-Conferencing';
    MYPWN_LOGIN_REDIRECTS[2]  = '/myPwn/Request-Welcome-Pack';
    MYPWN_LOGIN_REDIRECTS[3]  = '/myPwn/Dial-In-Numbers';
    MYPWN_LOGIN_REDIRECTS[4]  = '/myPwn/Call-Settings';
    MYPWN_LOGIN_REDIRECTS[5]  = '/myPwn/Account-Details';
    MYPWN_LOGIN_REDIRECTS[6]  = '/myPwn/Pins';
    MYPWN_LOGIN_REDIRECTS[7]  = '/myPwn/Recordings';
    MYPWN_LOGIN_REDIRECTS[8]  = '/myPwn/In-Conference-Controls';
    MYPWN_LOGIN_REDIRECTS[9]  = '/myPwn/Call-History';
    MYPWN_LOGIN_REDIRECTS[10]  = '/myPwn/Get-Plus';
    
    
/* } else {
    MYPWN_LOGIN_REDIRECTS[0]  = '/mypwn/myscheduler';
    MYPWN_LOGIN_REDIRECTS[1]  = '/mypwn/myshowtime';
    MYPWN_LOGIN_REDIRECTS[2]  = '';
    MYPWN_LOGIN_REDIRECTS[3]  = '/mypwn/mynumbers';
}*/

/*JQuery Date Picker */
var JQUERY_DATE_PICKER_DAY_NAMES_MIN = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']; //Sunday -> Saturday
var JQUERY_DATE_PICKER_MONTH_NAMES   = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; //January -> December

/* Information Messages */
var INFO_MESSAGE_CLI = 'Caller Line Identification (CLI) is the number that you are ringing from. Some phones can also be configured to withhold the number.';

/* JQuery DataTables Language */
var DATA_TABLES_sProcessing     = "Processing...";                                  //This is shown when the Table is being formed.
var DATA_TABLES_sLengthMenu     = "Show _MENU_ entries";                            //This is the Drop down box label. _MENU_ is the dropdown box.
var DATA_TABLES_sZeroRecords    = "No matching records found";                      //This is shown when there are no records found.
var DATA_TABLES_sEmptyTable     = "No data available in table";                     //This is shown when the table is empty
var DATA_TABLES_sLoadingRecords = "Loading...";                                     //This is shown when the Table is Loading.
var DATA_TABLES_sInfo           = "Showing _START_ to _END_ of _TOTAL_ entries";    //This is shown below the Table on the left side. _START_ , _END , and _TOTAL_ are values of the current table records being shown.
var DATA_TABLES_sInfoEmpty      = "Showing 0 to 0 of 0 entries";                    //This is for any empty results table.
var DATA_TABLES_sInfoFiltered   = "(filtered from _MAX_ total entries)";            //This is shown when the results are Filtered. _MAX_ are the maximum records in the table.
var DATA_TABLES_sSearch         = "Search:";                                        //This is the Search Label shown next to the Search box
var DATA_TABLES_sFirst          = "First";                                          //This is shown below the table, and is the First Button Label.
var DATA_TABLES_sPrevious       = "Previous";                                       //This is shown below the table, and is the Previous Button Label.
var DATA_TABLES_sNext           = "Next";                                           //This is shown below the table, and is the Next Button Label.
var DATA_TABLES_sLast           = "Last";                                           //This is shown below the table, and is the Last Button Label.

/* MYPWN Recordings Update Messages */
var MYPWN_RECORDINGS_DESCRIPTION        =   "Description";
var MYPWN_RECORDINGS_PUBLISH_ONLINE     =   "Publish online";
var MYPWN_RECORDINGS_PUBLISH_UNTIL      =   "Publish until";
var MYPWN_RECORDINGS_REQUIRE_PASSWORD   =   "Require Password";
var MYPWN_RECORDINGS_PASSWORD           =   "Password";
var MYPWN_RECORDINGS_OK                 =   "OK";
var MYPWN_RECORDINGS_SAVE               =   "Save";
var MYPWN_RECORDINGS_CANCEL             =   "Cancel";
var MYPWN_RECORDINGS_LINK_TEXT          =   "Copy the link below and paste it into an email to share with others";

/* Call Settings */
var MYPWN_CALLSETTINGS_CONFIRM = "This will update all the selected PINs Call Settings to the details shown on the page. Reverting back to the old settings are not available. Are you sure you want to go ahead?";
var MYPWN_CALLSETTINGS_SUCCESS = "<strong>Your call settings have been updated</strong>";

/* DialInNumbers Popup on myPwn POWWOWNOW User Homepage */
var MYPWN_DIALINNUMBER_WORLDWIDE = "Worldwide &";
var MYPWN_DIALINNUMBER_SKYPE     = "SkypeOut";

