/**
* @alias conf.js
* @projectDescription France 2 & France 3, versions 2.0
* @author	[FTVI] Guyllaume Doyer
*/

/* !!! DO NOT MODIFY FUNCTIONS ORDER !! */
/* (required to pass jslint validation  */
/* !!! NE PAS ENLEVER LES GRANDES LIGNES SEPARATRICES !!! (COMMUN, FINCOMMUN, INTEGRATION, FININTEGRATION, PRODUCTION, FINPRODUCTION) */

/////////////////////////////////COMMUN/////////////////////////////////
var 
	commonCSSPath,
	portailCSSPath,
	WithscriptsCssURL,
	commonBlocksPath,
	portailBlocksPath, 
	blocksSportPath,
	regionsF3Blocks,
	portailModelsPath,
	appCommentsPath,
	appDfusionPath,
	VdoRelatedBaseURL,
	defaultPlayerHTMLURL,
	
	OurVidURLversion,
	AjxTabsCtntOurVidURL,
	whitePixURL,
	PixURL,
	ajaxLoadingPixPath,
	AjaxTopShowsDataURL,
	AjaxGetCommentsURL,
	AjaxGetCommentsDataURL,
	SMenuProgramsTabsURL,
	loadSMenuProgramsURL,
	AjxTabsCtntLastInfoNewsURL,
	AjxTabsCtntHILastInfoNewsURL,
	AjxTabsCtntRegionLastInfoNewsURL,
	AjxTabsCtntLastCultNewsURL,
	AjxTabsCtntHILastCultNewsURL,
	AjxTabsCtntSFLastCultNewsURL,
	AjxTabsCtntSTLastCultNewsURL,
	AjxTabsCtntYouNChaineURL,
	AjxTabsCtntHIYouNChaineURL,
	AjxTabsCtntSYouNChaineURL,
	AjxTabsCtntSFYouNChaineURL,
	AjxTabsCtntSTYouNChaineURL,
	AjxTabsCtntMunicipales2008YouNChaineURL,
	AjxTabsCtntRegionYouNChaineURL,
	AjxTabsCtntMunicipales2008YouNChaineURL,
	AjxTabsCtntRegionMunicipales2008YouNChaineURL,
	AjxTabsCtntRegionOurVidURL,
	AjxTabsCtntHIOurVidURL,
	AjxTabsCtntSOurVidURL,
	AjxTabsCtntSFOurVidURL,
	AjxTabsCtntSTOurVidURL,
	AjxTabsCtntMunicipales2008OurVidURL,
	AjxTabsCtntRegionMunicipales2008OurVidURL,
	AjxTabsCtntHIArticlesURL,
	AjxTabsCtntSeriesEtFictionsURL,
	AjxTabsCtntSelectionNewsURL,
	AjxAreaMapSelectionBlkURL,
	AjxAreaNewsBlkURL,
	AjxTabsCtntKD2ACommunityURL,
	AjxTabsCtntKD2AOurVidURL,
	AjxTabsCtntKD2ABlogsURL,
	AjxTabsCtntKD2AGoodiesURL,
	AjxTabsCtntKD2AActusURL,
	AjxTabsCtntKD2AThemesURL,
	AjxTabsCtntKD2ADocsURL,
	AjxTabsCtntKD2AVideosURL,
	AjxTabsCtntKD2AHolidayGridURL,
	AjxTabsCtntF2JT20hYouNChaineURL,
	AjxTabsCtntF2JT13hYouNChaineURL,
	AjxTabsCtntF2JT8hYouNChaineURL,
	AjxTabsCtntCultureYouNRubURL,
	AjxTabsCtntCultureCinemaYouNRubURL,
	AjxTabsCtntCultureArtEtExposYouNRubURL,
	AjxTabsCtntCultureCinemaYouNRubURL,
	AjxTabsCtntCultureLivresYouNRubURL,
	AjxTabsCtntCultureMusiqueYouNRubURL,
	AjxTabsCtntCultureMusiqueClassiqueYouNRubURL,
	AjxTabsCtntCultureScenesYouNRubURL,
	AjxTabsCtntCulturePatrimoineYouNRubURL,
	AjxTabsCtntCultureModeYouNRubURL,
	AjxTabsCtntCultureGastronomieYouNRubURL,
	vDoKitClasses;

var ftvi_portail=typeof(ftvi_portail)!='undefined'?ftvi_portail:'';
var ftvi_section=typeof(ftvi_section)!='undefined'?ftvi_section:'';
var ftvi_rubrique=typeof(ftvi_rubrique)!='undefined'?ftvi_rubrique:'';
var ftvi_activesousmenu=typeof(ftvi_activesousmenu)!='undefined'?ftvi_activesousmenu:'';
var ftvi_region=typeof(ftvi_region)!='undefined'?ftvi_region:'';
var ftvi_chemin=typeof(ftvi_chemin)!='undefined'?ftvi_chemin:'';
var ftvi_locale=typeof(ftvi_locale)!='undefined'?ftvi_locale:'';

commonCSSPath = '/layoutftv/arches/common/stylesheets';
portailCSSPath = '/layoutftv/arches/' + ftvi_portail + '/stylesheets';
appCommentsPath = '/appftv/commentaires-articles';
portailModelsPath = '/layoutftv/arches/' + ftvi_portail + '/modeles';
WithscriptsCssURL = commonCSSPath + '/withscripts.css';
whitePixURL = commonCSSPath + '/img/whitepx.png';
PixURL = commonCSSPath + '/img/pix.png';
ajaxLoadingPixPath = portailCSSPath + '/img/cursors/loading_02.gif';
AjaxGetCommentsURL = appCommentsPath + '/get_infos_commentaires_article.php';	
AjaxGetCommentsDataURL = appCommentsPath + '/get_nb_commentaires_article.php';
defaultPlayerHTMLURL = 'http://info.francetv.fr/player-video/player_html/'; // url player HTML => SilverLight
vDoKitClasses = ['vDoKitStartIn', 'vDoKitLightStartIn', 'vDoKitStartUp', 'vDoKitLightStartUp', 'vDoKitStartBlank', 'vDoKitLightStartBlank'];

/////////////////////////////////FINCOMMUN/////////////////////////////////

/////////////////////////////////INTEGRATION/////////////////////////////////
// Common
commonBlocksPath = '/layoutftv/arches/common/blocks';
portailBlocksPath = '/layoutftv/arches/' + ftvi_portail + '/blocks';
VdoRelatedBaseURL = 'http://medias.francetv.fr';

// ajaxify.js
AjaxTopShowsDataURL = commonBlocksPath + '/data/our_shows_caption_data.json';
SMenuProgramsTabsURL = portailModelsPath + '/header/submenu_programmes_tab_ctnt.php';
loadSMenuProgramsURL = portailModelsPath + '/header/submenu_programmes.php';

// 
OurVidURLversion = ( ftvi_section == 'sport' ) ? ( OurVidURLversion = ( ftvi_activesousmenu == 'tennis' ) ? '_02' : '_03' ) : '';
AjxTabsCtntOurVidURL = commonBlocksPath + '/our_videos_block_tab_ctnt' + OurVidURLversion + '.php';
AjxTabsCtntLastInfoNewsURL = portailBlocksPath + '/latest_news_block_tab_ctnt.php';
AjxTabsCtntLastCultNewsURL = commonBlocksPath + '/culture_news_block_tab_ctnt.php';
AjxTabsCtntYouNChaineURL = commonBlocksPath + '/you_n_chaine_block_tab_ctnt.php';
AjxTabsCtntHIOurVidURL = commonBlocksPath + '/our_videos_block_tab_ctnt.php';
AjxTabsCtntHILastInfoNewsURL = commonBlocksPath + '/caption_news_insert.php';
AjxTabsCtntHILastCultNewsURL = commonBlocksPath + '/culture_news_block_tab_ctnt.php';
AjxTabsCtntHIYouNChaineURL = commonBlocksPath + '/you_n_chaine_block_tab_ctnt.php';
AjxTabsCtntHIArticlesURL = commonBlocksPath + '/articles_block_tab_ctnt.php';
AjxTabsCtntSelectionNewsURL = commonBlocksPath + '/selection_news_block_tab_ctnt.php';
AjxAreaMapSelectionBlkURL = portailBlocksPath + '/area_map_selection_block.php';
AjxAreaNewsBlkURL = portailBlocksPath + '/regions_news_block.php';
AjxAreaMapSelectionBlkURL += ( ftvi_portail == 'france3' && ftvi_section == 'accueil' || 'info_accueil' ) ? '?ToAreaPagesLinks=True&finUrl=info' : '';

AjxTabsCtntKD2ACommunityURL = portailBlocksPath + '/community_block_tab_ctnt.php';
AjxTabsCtntKD2AOurVidURL = commonBlocksPath + '/our_videos_block_tab_ctnt.php';
/////////////////////////////////FININTEGRATION/////////////////////////////////

/////////////////////////////////PRODUCTION/////////////////////////////////
// Common
var getCacheAjaxPath = '/appftv/dfusion/getCache.php';
var debutURLCommon = getCacheAjaxPath + '?bloc=common:';
var debutURLPortail = getCacheAjaxPath + '?bloc=' + ftvi_portail + '.fr:';
var debutURLRegions = getCacheAjaxPath + '?bloc=regionsfrance3:' + ftvi_region + ':';
var forcerCache = '&forcerCache=1';
VdoRelatedBaseURL = '';

AjaxTopShowsDataURL = ((ftvi_chemin !== '') ? debutURLPortail + ftvi_chemin + ':data_mea' : debutURLPortail + 'home:data_mea') + forcerCache;

SMenuProgramsTabsURL							= debutURLPortail + 'common:submenu_programmes_block_tabs' + forcerCache;
loadSMenuProgramsURL							= debutURLPortail + 'common:submenu_programmes_block' + forcerCache;

// Homes
AjxTabsCtntOurVidURL							= debutURLPortail + 'home:our_videos_block_tabs';
var LastInfoNewsURLversion = (ftvi_portail == 'france3') ? '2_' : '';
AjxTabsCtntLastInfoNewsURL 						= debutURLPortail + 'home:latest_' + LastInfoNewsURLversion + 'news_block_tabs';
AjxTabsCtntLastCultNewsURL 						= debutURLPortail + 'common:culture_news_block_tabs';
AjxTabsCtntYouNChaineURL 						= debutURLPortail + 'home:you_n_chaine_block_tabs';

// home_info (et info n-1 pour les 2 premiers liens)
AjxTabsCtntHIOurVidURL							= debutURLPortail + 'info:common:our_videos_block_tabs';
AjxTabsCtntHIYouNChaineURL						= debutURLPortail + 'info:common:you_n_chaine_block_tabs';
AjxTabsCtntHILastInfoNewsURL					= debutURLPortail + 'info:latest_2_news_block_tabs';
AjxTabsCtntHILastCultNewsURL					= debutURLPortail + 'common:culture_news_block_tabs';
AjxTabsCtntHIArticlesURL						= debutURLPortail + 'info:common:articles_block_tabs';

//Sport (Home)
AjxTabsCtntSOurVidURL							= debutURLPortail + 'sport:home:our_videos_block_tabs';
AjxTabsCtntSYouNChaineURL						= debutURLPortail + 'sport:home:you_n_chaine_block_tabs';
// Sport Football
AjxTabsCtntSFOurVidURL							= debutURLPortail + 'sport:football:common:our_videos_block_tabs';
AjxTabsCtntSFYouNChaineURL						= debutURLPortail + 'sport:football:common:you_n_chaine_block_tabs';
AjxTabsCtntSFLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
AjxTabsCtntSFYouNResultsURL						= debutURLPortail + 'sport:football:common:you_n_results_block_tabs';
// Sport Rugby
AjxTabsCtntSROurVidURL							= debutURLPortail + 'sport:rugby:common:our_videos_block_tabs';
AjxTabsCtntSRYouNChaineURL						= debutURLPortail + 'sport:rugby:common:you_n_chaine_block_tabs';
AjxTabsCtntSRLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Tennis
AjxTabsCtntSTOurVidURL							= debutURLPortail + 'sport:tennis:common:our_videos_block_tabs';
AjxTabsCtntSTYouNChaineURL						= debutURLPortail + 'sport:tennis:common:you_n_chaine_block_tabs';
AjxTabsCtntSTLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Cyclisme
AjxTabsCtntSCOurVidURL							= debutURLPortail + 'sport:cyclisme:common:our_videos_block_tabs';
AjxTabsCtntSCYouNChaineURL						= debutURLPortail + 'sport:cyclisme:common:you_n_chaine_block_tabs';
AjxTabsCtntSCLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Athlétisme
AjxTabsCtntSAOurVidURL							= debutURLPortail + 'sport:athletisme:common:our_videos_block_tabs';
AjxTabsCtntSAYouNChaineURL						= debutURLPortail + 'sport:athletisme:common:you_n_chaine_block_tabs';
AjxTabsCtntSALastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Voile
AjxTabsCtntSVOurVidURL							= debutURLPortail + 'sport:voile:common:our_videos_block_tabs';
AjxTabsCtntSVYouNChaineURL						= debutURLPortail + 'sport:voile:common:you_n_chaine_block_tabs';
AjxTabsCtntSVLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Basket-Hand-Volley
AjxTabsCtntSBHVOurVidURL						= debutURLPortail + 'sport:basket-hand-volley:common:our_videos_block_tabs';
AjxTabsCtntSBHVYouNChaineURL					= debutURLPortail + 'sport:basket-hand-volley:common:you_n_chaine_block_tabs';
AjxTabsCtntSBHVLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
AjxTabsCtntSBHVYouNResultsURL					= debutURLPortail + 'sport:basket-hand-volley:common:you_n_results_block_tabs';
// Sport Moteur
AjxTabsCtntSMOurVidURL							= debutURLPortail + 'sport:moteurs:common:our_videos_block_tabs';
AjxTabsCtntSMYouNChaineURL						= debutURLPortail + 'sport:moteurs:common:you_n_chaine_block_tabs';
AjxTabsCtntSMLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Neige et Glace
AjxTabsCtntSNGOurVidURL							= debutURLPortail + 'sport:neige-et-glace:common:our_videos_block_tabs';
AjxTabsCtntSNGYouNChaineURL						= debutURLPortail + 'sport:neige-et-glace:common:you_n_chaine_block_tabs';
AjxTabsCtntSNGLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Sport US
AjxTabsCtntSUSOurVidURL							= debutURLPortail + 'sport:sports-us:common:our_videos_block_tabs';
AjxTabsCtntSUSYouNChaineURL						= debutURLPortail + 'sport:sports-us:common:you_n_chaine_block_tabs';
AjxTabsCtntSUSLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Autres Sports
AjxTabsCtntSASOurVidURL							= debutURLPortail + 'sport:autres-sports:common:our_videos_block_tabs';
AjxTabsCtntSASYouNChaineURL						= debutURLPortail + 'sport:autres-sports:common:you_n_chaine_block_tabs';
AjxTabsCtntSASLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport Dossiers
AjxTabsCtntSDOurVidURL							= debutURLPortail + 'sport:dossiers:common:our_videos_block_tabs';
AjxTabsCtntSDYouNChaineURL						= debutURLPortail + 'sport:dossiers:common:you_n_chaine_block_tabs';
AjxTabsCtntSDLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';
// Sport JO
AjxTabsCtntJOOurVidURL							= debutURLPortail + 'sport:jo:common:our_videos_block_tabs';
AjxTabsCtntJOYouNChaineURL						= debutURLPortail + 'sport:jo:common:you_n_chaine_block_tabs';
AjxTabsCtntJOLastCultNewsURL					= debutURLPortail + 'sport:common:idalgo:all_matches_news_block_tabs';

// CULTURE
AjxTabsCtntCultureYouNRubURL 					= debutURLPortail + 'culture:you_n_rub_block_tabs';
AjxTabsCtntCultureArtEtExposYouNRubURL 			= debutURLPortail + 'culture:art-et-expositions:you_n_rub_block_tabs';
AjxTabsCtntCultureCinemaYouNRubURL 				= debutURLPortail + 'culture:cinema:you_n_rub_block_tabs';
AjxTabsCtntCultureLivresYouNRubURL 				= debutURLPortail + 'culture:livres:you_n_rub_block_tabs';
AjxTabsCtntCultureMusiqueYouNRubURL 			= debutURLPortail + 'culture:musique:you_n_rub_block_tabs';
AjxTabsCtntCultureMusiqueClassiqueYouNRubURL 	= debutURLPortail + 'culture:musique-classique:you_n_rub_block_tabs';
AjxTabsCtntCultureScenesYouNRubURL 				= debutURLPortail + 'culture:scene:you_n_rub_block_tabs';
AjxTabsCtntCulturePatrimoineYouNRubURL 			= debutURLPortail + 'culture:patrimoine:you_n_rub_block_tabs';
AjxTabsCtntCultureModeYouNRubURL 				= debutURLPortail + 'culture:mode:you_n_rub_block_tabs';
AjxTabsCtntCultureGastronomieYouNRubURL 		= debutURLPortail + 'culture:cuisine:you_n_rub_block_tabs';

// JTs France2
AjxTabsCtntF2JT20hYouNChaineURL 				= debutURLPortail + 'info:jt:20h:you_n_chaine_block_tabs';
AjxTabsCtntF2JT13hYouNChaineURL 				= debutURLPortail + 'info:jt:13h:you_n_chaine_block_tabs';

// home_region
if ( ftvi_region !== '' )
{
	AjxTabsCtntRegionOurVidURL					= debutURLRegions + ftvi_locale + 'our_videos_block_tabs';
	AjxTabsCtntRegionLastInfoNewsURL			= debutURLRegions + 'latest_news_block_tabs';
	AjxTabsCtntRegionYouNChaineURL				= debutURLRegions + ftvi_locale + 'you_n_chaine_block_tabs';
	AjaxTopShowsDataURL							= debutURLRegions + ftvi_locale + 'data_mea' + forcerCache;
}

// pages_municipales
AjxTabsCtntMunicipales2008OurVidURL				= debutURLPortail + 'info:elections:municipales:2008:common:our_videos_block_tabs';
AjxTabsCtntMunicipales2008YouNChaineURL			= debutURLPortail + 'info:elections:municipales:2008:common:you_n_chaine_block_tabs';

// home_region_municipales
AjxTabsCtntRegionMunicipales2008OurVidURL		= debutURLRegions + 'info:elections2008:our_videos_block_tabs';
AjxTabsCtntRegionMunicipales2008YouNChaineURL	= debutURLRegions + 'info:elections2008:you_n_chaine_block_tabs';

// Elections US 
AjxTabsCtntUS2008OurVidURL						= debutURLPortail + 'info:elections:us2008:common:our_videos_block_tabs';

// home_f3_region_perso
AjxAreaMapSelectionBlkURL						= debutURLPortail + 'common:area_map_selection_block' + forcerCache;
if( ftvi_portail == 'france3' && ftvi_section == 'info' )
{
	AjxAreaMapSelectionBlkURL += '&ToAreaPagesLinks=True' + '&finURL=info&styleCarte=nocities';
}
else if( ftvi_portail == 'france3' && ftvi_rubrique == 'info_electionsmunicipales2008_accueil' )
{
	AjxAreaMapSelectionBlkURL += '&ToAreaPagesLinks=True' + '&finURL=info/elections-municipales-2008';
}
AjxAreaNewsBlkURL								= debutURLPortail + 'home:regions_news_block';

// series et fictions
AjxTabsCtntSeriesEtFictionsURL					= debutURLPortail + 'programmes:series-et-fictions:selection_news_block_tabs';

// f3 sat
AjxTabsCtntF3SatOurVidURL						= debutURLPortail + 'france3sat:our_videos_block_tabs';

// -- Nouveau site KD2A en SPIP

AjxTabsCtntSpipKD2ACommunityURL 	= '/index-fr.php?page=community_block_kd2a_tabs';
AjxTabsCtntSpipKD2ABlogsURL 		= '/index-fr.php?page=blogs_news_block_kd2a_tabs';
AjxTabsCtntSpipKD2AGoodiesURL 		= '/index-fr.php?page=goodies_block_kd2a_tabs';
AjxTabsCtntSpipKD2AActusURL 		= '/index-fr.php?page=actu_others_block_kd2a_tabs';
AjxTabsCtntSpipKD2AThemesURL 		= '/index-fr.php?page=docs_2_news_block_tabs';
AjxTabsCtntSpipKD2ADocsURL 			= '/index-fr.php?page=docs_others_block_kd2a_tabs';
AjxTabsCtntSpipKD2AVideosURL 		= '/index-fr.php?page=vdo_lst_block_kd2a_tabs';
AjxTabsCtntSpipKD2AOurVidURL		= '/index-fr.php?page=our_videos_block_kd2a_tabs';
// --

if (ftvi_section == 'programmes_kd2a') {
	AjaxTopShowsDataURL = 'index-fr.php?page=mea_' + ftvi_activesousmenu;
}

// Programmes
AjxTabsCtntHPYouNChaineURL						= debutURLPortail + 'programmes:you_n_chaine_block_tabs';

/////////////////////////////////FINPRODUCTION/////////////////////////////////
