/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// GENERAL SETTINGS

// Your country code
// If it's not in the strings/ folder, please translate strings/en.js and send to gruppler@gmail.com
var language = "fr";
// NOTE: to change time formats, look in strings/en.js (or whatever language file you're using)

// Arrange and/or disable (by commenting-out) sections:
// To enable a section, remove the "//" at the beginning of the line
var sections = [
	"Clock",
	"ephemeride",
       "Citations",
       "Weather",	
	"Calendar",  
 	"Calls",
	"SMS",
	
       	   
];

// If "Clock" is enabled in the "sections" list above, this shows the bigger custom clock
var useBigClock = true;

// Display arrows in headers?
var displayArrows = true;

// Draw a monthly calendar as a collapsable subsection of the custom clock
var showMonth = true;

// Montre la citations par defauts
var showCita = true;
// Montre les flux rss par defaut
var showflux = false;
// Montre l'ephemeride par defaut
var showephe = true;
// Limit the number of Tweets messages to show
var twitterLimit = 0;



// The day the week will start on; 0(Sun) to 6(Sat)
var startDay = 1;

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// EXPAND/COLLAPSE SETTINGS

// Collapse or expand main sections by default; comment-out or set to false to expand...
// To collapse a section by default, remove the "//" at the beginning of the line
var defaultCollapsed = {
	"Clock":true,
	"Calendar":false,
	"Calls":false,
	"Voicemail":false,
	"SMS":false,
	"//Weather":true,
       "ephemeride":true,
       "//Citations":true,
       
};

// Enable global collapse/expand by swiping right (or left, if globalHide is false)?
var globalCollapse = true;

// Enable global hide/show (except for custom clock) by swiping left (or right, if globalCollapse is false)?
var globalHide = true;

// Set to false for instant section collapse/expand, or true for webkit CSS animations
var enableAnimations = false;
var animation_duration = 450;	// Milliseconds

// Animate the global collapse/expand? (Requires enableAnimations to be true)
var animateGlobalCollapse = false;

// Collapse subsections in sections that are to be collapsed by default (listed above)?
var collapseChildren = true;

// Always expand the first subsection?	Note: this overrides collapseChildren;
// subsequent sections will be collapsed regardless of main section's default
var expandFirst = false;

// Revert to default collapse/expand settings when a section is empty?
var revertCollapsedOnEmpty = true;

// Hide empty sections?
var hideEmptySections = false;

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// SECTION DISPLAY SETTINGS

// Display the "Load More" bar at the bottom of each section if the item limit was reached?
var displayLoadMore = false;

// If displayLoadMore is enabled, how many more should load each time the bar is pressed?
var loadIncrement = 5;

// Display each calendar as a separate section?
// Note: If true, there will be an extra subheader, even if there's only one calendar.
var separateCalendars = false;

// Sort this calendar first if separateCalendars is true
var mainCalendar = "Calendar";

// Show count for only today' events?
var calendarCountToday = true;

// Limit the number of events to show
var calendarLimit = 15;

// Display each email account as a separate subsection?
// Note: If true, there will be an extra subheader, even if there's only one email account.
var separateMailAccounts = true;

// Limit the number of emails to show
var mailLimit = 1;

// Limit the number of missed calls to show
var callLimit = 5;

// Limit the number of voicemails to show
var voicemailLimit = 5;

// Limit the number of SMS messages to show
var smsLimit = 0;



/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// RELATIVE TIME SETTINGS

// Show relative times or absolute times?
var displayRelativeTimes = true;

// Show short periods or long periods?
// Ex.
// false -> "3 hours, 2 minutes"
// true -> "3h 2m"
var displayShortPeriods = true;

// How many periods to display if not rounded? (Excludes seconds unless time < 1 minute)
// Ex.
// relativeTimeLength = 1 -> "3h"
// relativeTimeLength = 2 -> "3h 2m"
var relativeTimeLength = 2;

// Limit the frequency of updates for relative time, and round seconds:
var relativeUpdateLimit = 15;	//Seconds

// Specify how time should be rounded.
//	1: Round up (ceiling)
//	0: Normal round
// -1: Round down (floor)
var roundPeriods = [
	1,	// seconds
	1,	// minutes
	0,	// hours
	-1, // days
	0,	// weeks
	0,	// months
	0,	// years
	0	// decades
];

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// WEATHER SETTINGS

// Produced by Adam Watkins (http://www.stupidpupil.co.uk)
// Modified by Craig Laparo (gruppler@gmail.com)

// Locations, following the same format as "locale" above.  Add as many as you want, separated by commas.
// The first one in the list will be displayed on the weather header.
// Ex. "OCN|AU|VIC|MELBOURNE", "ASI|PH|MAKATI" e.g. 'Defiance, Ohio'|'Moscow, Russia'|'London, UK'
// Visit http://accuweather.com to find something that works
var locales = [
  	"FLEURY+LES+AUBRAIS, FR",
	
];

// Show the first city's current weather in the main header?
// Set this to false if you have multiple cities and don't want a rundundant header...
var mainHeaderWeather = true;

// Show the first city's name in the main header, or hide it?
var displayMainCityName = true;

// Show the other cities' names in their subheaders, or hide them?
var displayCityNames = true;

// Limit the number of days to display (also limited by the weather source; 7 seems to be the max)
var weatherDayLimit = 7;

// Set to 'false' if you'd prefer Farenheit
var isCelsius = true;

// Use 'Real Feel' temperatures where possible, taking into account Wind Chill, Humidity etc.
var useRealFeel = false;

// What should separate hi temperatures from low temperatures?
// use "<br>" to put them on separate lines, or something else like "|", for example.
var weatherTempSeparator = "<br>";

// Images must follow the same naming schema as the 'klear' set (borrowed from KWeather)
var iconSet = "tick"; //'klear'|'tick'
var iconExt = ".png"; //'.png'|'.gif'|etc.

// Display the icon in the header that lets you refresh manually?
var displayWeatherRefreshButton = true;

// To disable automatic refresh, set to 0
var weatherUpdateInterval = 15; //Minutes
var weatherRetryInterval = 1;	//Minutes

// The (currently broken) 'Yahoo' which for the 'locale' requires a US zip or location code
// (e.g. UKXX0085 or CHXX0008) from http://weather.yahoo.com
var weatherSource = "Apple"; // "Yahoo" is broken for now, so use "Apple"

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// SWIPE SETTINGS

// The MAXIMUM distance your finger can move to trigger a 'tap'
var tap_maxDistance = 3;

// The MINIMUM distance your finger must move to trigger a 'swipe'
var swipe_minDistance = 60;

// The MAXIMUM vertical distance your finger can move to trigger a 'swipe'
var swipe_maxY = 20;

/*––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––*/
// Do not change this...

if(language != "fr"){
	var headID = document.getElementsByTagName("head")[0];
	var scriptNode = document.createElement('script');
	scriptNode.type = 'text/javascript';
	scriptNode.src = 'strings/'+language+'.js';
	headID.appendChild(scriptNode);
}
