function OmnitureVariables()
{
	this.s_account = 'cnojobboomcomdev,cnocanoeglobaldev';
	this.mainsection = MyGenericTagVar.mainsection;
	this.sectionLevel2 = MyGenericTagVar.sectionLevel2;
	this.sectionLevel3 = MyGenericTagVar.sectionLevel3;
	this.sectionLevel4 = MyGenericTagVar.sectionLevel4;
	this.language = MyGenericTagVar.language;
	this.division = MyGenericTagVar.division;	
	this.linkInternalFilters = 'javascript:,jobboom.com';
	this.linkExternalFilters = '';
	this.linkTrackVars = 'server';
	this.linkTrackEvents = 'None';			
	this.linkLeaveQueryString = 'false';					
	this.trackExternalLinks= 'true';
	this.prop22 = 'careers';
	//this.srcsite = '';
	this.networkid = 'can';

	this.SwitchCgi = true;

	this.prop3 = this.sectionLevel2;

	//this.prop11 = document.location.href.slice(7);

	this.homePageNames = 
		{
			'': 1,
			'index' : 1,
			'accueil': 1
		}
	this.customizedPageNaming = 
		{
			//example 
			//'mypersonnalpage': 'myownpagenaming',
			//'myotherpage' : 'myownpagenaming'
		}
	//this.forcedDefaultPageName = 'article';


	////////////////////////////////////////////////////////////////
	////////					////////////////
	////////	END OF CUSTOMIZABLE VARIABLES	////////////////
	////////	do not touch what is below	////////////////
	////////					////////////////
	////////////////////////////////////////////////////////////////
	
	//default page naming for failsafe operation
	this.pageName = GetPageName
		(
			this.language, 
			this.homePageNames,
			this.customizedPageNaming, 
			this.forcedDefaultPageName
		);

	//-----------------------------------
	//-- hierarchy handling
	//-- hier1 : homepage|accueil
	//-- hier2 : canoe|fr|news|accueil
	//-----------------------------------
	var sectionConCat = "";
	for( i = 2; i <= 6; i++ ) {
		if ( CheckProperties(this,"sectionLevel"+i) != "") {
			sectionConCat =  CheckProperties(this,"sectionLevel"+i) + '|';
		}
	}

	//------------------------------
	// Strip le dernier delimiteur |
	//------------------------------
	sectionConCat = sectionConCat.substring(0, sectionConCat.length - 1 );

	this.hier1 = this.mainsection + '|' + sectionConCat;
	this.hier2 = this.division + '|' + this.language + '|' + this.prop22 + '|' + sectionConCat;
	this.hier3 = this.prop22 + '|' + this.language + '|' + this.division;
	//alert(this.hier3);

	//server convention
	this.server = this.networkid + '.' + this.language + '.' + this.division + '.' + this.mainsection;
}
	
	
//-----------------------------
// Retourne le PageName sous la forme suivante :
// 
// pour lang FR
// s.pageName = "<pname short>:<slevel 4>:<slevel 3>:<slevel 2>:<slevel1>:<website name>"
//
// pour lang EN
// s.pageName = "<website name>:<slevel1>:<slevel 2>:<slevel 3>:<slevel 4>:<pname short>"
//
// <website name> = nom de domaine et sous-domaine
//-----------------------------
function GetPageName( lang, homepagenameTable, customizedpagenametable, defaultpagename ) 
{

	var doc_href = document.location.href.toLowerCase();	
	var doc_host = document.location.host.toLowerCase();
	var doc_pathname = document.location.pathname.toLowerCase();

	var url_racine_param = doc_href.split("?");

	//---------------------------
	// remove WWW[x]. du doc_host
	// ex. www2.canoe.com -> canoe.com
	//---------------------------

	var reg = new RegExp(/www\d?./);
	doc_host = doc_host.replace( reg, '') ;

	var racine = (doc_host != '' || navigateur == 'Netscape') 
			 ? doc_pathname.split('/') : doc_pathname.split(/&&/);

	var condition = racine.length;
	var page_full = racine[ condition - 1 ].toLowerCase();
	var page_short = racine[ condition - 1 ].toLowerCase().split('.');

	//------------------------------------------------------------------
	// EX. repertoire_ori = "/Archive/TestSiteCatalyst/2007/08/voiture/"
	// devient "/Archive/TestSiteCatalyst/voiture/"
	//------------------------------------------------------------------
	var repertoire_ori = doc_pathname.replace(page_full, ''); 
	var repertoire_clean = "/";
	var repertoire_index = doc_pathname.replace(page_full, '').split('/');

	//------------------------------------------------------------------------------------
	// Strip les repertoires numeriques si archive est ON ainsi que le repertoire archives
	// et conserve 5 repertoires au total donc 1 channel + 4 repertoires
	//------------------------------------------------------------------------------------
	var is_archive = SearchString(doc_href, "archive");
	var NbClean=0;
	if( is_archive )
	{
		for( i = 1; i <= repertoire_index.length-2; i++ )
		{
			if( !IsNumeric( repertoire_index[ i ] ) & !SearchString( repertoire_index[ i ], "archive" ) )
			{
				repertoire_clean = repertoire_clean + repertoire_index[i] + "/"
				NbClean++;
				if (NbClean > 4) 
					break;
			}
		}
	} 
	else 			 
	repertoire_clean = repertoire_ori;

	//-----------------------------------------------------------------
	// Construit la string des repertoires reverse via repertoire_clean
	//-----------------------------------------------------------------
	var repertoire_clean_index = repertoire_clean.split('/');
	var omniture_path=""
  
  
	if(lang =='fr') 
	{
		for( i = repertoire_clean_index.length - 2; i >= 1; i-- )
			omniture_path = omniture_path + ':' + repertoire_clean_index[ i ];
	}
	else
	{
		for( i = 1; i <= repertoire_clean_index.length - 2; i++ )
			omniture_path = omniture_path + ':' + repertoire_clean_index[ i ];
	}
  
		  
	//-----------------------------------------------
	// SET PageName
	//-----------------------------------------------  
	if( 	page_short[ 0 ] == null || page_short[ 0 ] == '' || 
		(	homepagenameTable != null &&
			homepagenameTable[ page_short[ 0 ] ] != null ) )
	{
		if(lang =='fr')
			return 'index' + omniture_path + ':' + doc_host;	

		return 'home' + omniture_path + ':' + doc_host;		

	} 
	else 
	{
		if( 	customizedpagenametable != null && 
			customizedpagenametable[ page_short[ 0 ] ] != null )
			return customizedpagenametable[ page_short[ 0 ] ] + omniture_path + ':' + doc_host;
			
		else if( defaultpagename != null )
			return defaultpagename + omniture_path + ':' + doc_host;
		
		return page_short[ 0 ] + omniture_path + ':' + doc_host;		
	}

	//return(1);	
}

var MyOmnitureVariables  = new OmnitureVariables();