//-----------------------------
// Auteur	: Raynald Bertrand
// Date		: 2007-07-09
//-----------------------------

function OmnitureVariables()
{
	this.s_account = 'cnoompprod,cnocanoeglobalprod';
	this.mainsection = MyGenericTagVar.mainsection;
	this.affiliate = MyGenericTagVar.affiliate;
	this.sectionLevel2 = MyGenericTagVar.sectionLevel2;
	this.sectionLevel3 = MyGenericTagVar.sectionLevel3;
	this.sectionLevel4 = MyGenericTagVar.sectionLevel4;
	this.sectionLevel5 = MyGenericTagVar.sectionLevel5;
	this.language = MyGenericTagVar.language;
	this.division = MyGenericTagVar.division;
	this.networkid = MyGenericTagVar.networkid;
	
	//added MyGenericTagVar«-»MyOmnitureVariables link for osprey 
	this.linkInternalFilters = MyGenericTagVar.linkInternalFilters;
	this.prop22 = MyGenericTagVar.prop22;
	this.prop12 = MyGenericTagVar.prop12;
	
	this.linkTrackVars = 'server';
	this.linkTrackEvents = 'None';
 	this.linkLeaveQueryString = 'false';
	this.linkExternalFilters = '';
	this.trackExternalLinks= 'true';
	this.pageType = '';
	this.srcsite = 'portal';
	
	//--> Pour Bypasser les cgi des sites statiques, au besoin on hardcode SwitchCgi
	this.SwitchCgi = true;
	
	//-----------------------------------------	
	//default page name construct for canoe
	//-----------------------------------------	
	//this.pageName = GetPageName(this.language);
	this.server = this.networkid + '.' + this.language + '.' + this.division + '.' + this.mainsection;
	
	//-----------------------------------------	
	//are those value usefull ????
	//what is this code for ???
	//-----------------------------------------	
	//var archiveurl=document.location.href;
        //var archiveurla=archiveurl.indexOf('archive.html');
	////check to see if the page is a home page or an article page 
	//var theurl=document.location.href;
	//var mainurla=theurl.indexOf('home.html');
	//var mainurlb=theurl.charAt(theurl.length -1);
	//var mainurlc=theurl.indexOf('home.php');
	//if ((mainurla!=-1) || (mainurlb=='/') || (mainurlc!=-1))
	//	var pagen='home';
	//else 
	//	var pagen='article';
	
	this.prop11 = document.location.href.slice(7);
	//-----------------------------------------	
	//Osprey customisation
	//-----------------------------------------	
	if ((this.sectionLevel2 !='') && (this.sectionLevel3 !='')){
		this.pageName= 'osprey:'+this.mainsection+':'+this.sectionLevel2+':'+this.sectionLevel3;
	}
	else if	((this.sectionLevel2 !='') && (this.sectionLevel3 =='')){
		this.pageName= 'osprey:'+this.mainsection+':'+this.sectionLevel2;
	}		
	else {
		this.pageName= 'osprey:'+this.mainsection;
	}

	if ((this.sectionLevel2 !='') && (this.sectionLevel3 !='')) {
		this.hier1= this.mainsection+'|'+this.sectionLevel2+'|'+this.sectionLevel3;
		this.hier2= 'omp|en|'+this.prop22+'|'+this.mainsection+'|'+this.sectionLevel2+'|'+this.sectionLevel3;
	}
	else if	((this.sectionLevel2 !='') && (this.sectionLevel3 =='')){
		this.hier1= this.mainsection+'|'+this.sectionLevel2;
		this.hier2= 'omp|en|'+this.prop22+'|'+this.mainsection+'|'+this.sectionLevel2;
	}
	else {
		this.hier1= this.mainsection;
		this.hier2= 'omp|en|'+this.prop22+'|'+this.mainsection;
	}
	//??????this.server = 'can.en.omp.'+this.mainsection;
	this.hier3 = this.prop22+'|en|omp';	
	
	if (this.prop22 = '') 
		this.prop22 = 'news';
}


var MyOmnitureVariables  = new OmnitureVariables();
          