// JavaScript Document
		   

var __gaAcntArray = [];
var __gaPVFound = false;
function gaTrackPageview(gaLang){
	/*
	First field is used for lookup. These values should match the two letter abreviation of each language.
	Second value is a colon seperated list of Google Analytics account numbers to which the website belongs. All languages should have the "XXXXXXXX" Account number.
	*/
 
	var __gaData = 
	[
		['en','UA-6318113-1:UA-6318113-9'], // English
		['fr','UA-6318113-1:UA-6318113-10'], // French
		['es','UA-6318113-1:UA-6318113-11']  // Spanish
	]
	var __gaFound = false;
	var __gaI = 0;
	
	// look for the domain name in the data array and init all the main values for each account
	while ( !__gaFound && __gaI < __gaData.length ) {
			var gaLangLook = __gaData[__gaI][0];
			if (gaLang == gaLangLook) {
				__gaAcntArray = __gaData[__gaI][1].split(':');
				for(__acntCount=0;__acntCount<__gaAcntArray.length;__acntCount++){
					_gaq.push(
					  ['gaTracker'+__acntCount+'._setAccount', __gaAcntArray[__acntCount]],
					  ['gaTracker'+__acntCount+'._setDomainName', 'pacorabanne.com'], //UPDATE to match correct domain
					  ['gaTracker'+__acntCount+'._setAllowHash', false],
					  ['gaTracker'+__acntCount+'._setAllowLinker',true]
					);
				}
				__gaFound = true;
				__gaPVFound = true;
			}
			else {
				__gaI += 1;
			}
	}
	// If language not found, send data to "Catch All" profile
	if(!__gaFound){
		_gaq.push(
		  ['gaTrackerzz._setAccount','UA-6318113-12'], // "Catch All"
		  ['gaTrackerzz._setAllowHash', false],
		  ['gaTrackerzz._setAllowLinker',true]
		);
	}
};


// Call __gaPageview('[VALUE]') to create virtual pageviews.
function __gaPageview(gaURI){
	if(__gaPVFound){
		for(__acntCount=0;__acntCount<__gaAcntArray.length;__acntCount++){
			_gaq.push(['gaTracker'+__acntCount+'._trackPageview',gaURI]);
		}
	}else{
		_gaq.push(['gaTrackerzz._trackPageview',gaURI] );
	}
}