/************************************************************
	Name: s_code_<MAKE>_<MODEL>.js
	Date: July 15 2008
	Creator: skube
/************************ DESCRIPTION ************************
	The swf passes an argument via the function below, 
	which then re-assigns a Site Catalyst value and then
	proceeds to invoke a specific funciton with the s_code_remote_en_CA.js
		
/************************** AUTO CONFIG SECTION **************************/
// Omniture has two dropdowns to view results: one for dev, one for live
// We will determine the server based on URL, grouping both ITL and Preprod together under Preprod
var currServer = (location.href.indexOf('itl.gm.ca') != -1 || location.href.indexOf('preprod.gm.ca') != -1) ? 'http://preprod.gm.ca' :'http://gm.ca';
var server = (currServer == 'http://preprod.gm.ca') ? "devgmcanadacom" : "gmcanadacom";

/************************** CONFIG SECTION **************************/
function scTrack(code){
	//alert(code);
	s.pageName = "2009 Pontiac G8 - FP - "
	// use named array
	var sc_array = new Array();
	sc_array["a"] = "Intro";
	sc_array["b"] = "Performance - Agility";
	sc_array["c"] = "Performance - Balance";
	sc_array["d"] = "Performance - Reflexes";
	sc_array["e"] = "Design - Athletic Stance";
	sc_array["f"] = "Design - Night vision";
	sc_array["g"] = "Design - Accute Hearing";
	sc_array["h"] = "Design - Driver Attentive";
	sc_array["i"] = "Design - Over Protective";
	sc_array["j"] = "Design - Superbly Sculpted";
	sc_array["k"] = "Engineering - Conservation";
	sc_array["l"] = "Engineering - Accelleration";
	sc_array["m"] = "Engineering - Raw V8 Power";
	sc_array["n"] = "Engineering - Muscular V6";
	sc_array["o"] = "Engineering - Complete Control";
	// match the passed var and append to the pageName
	s.pageName += sc_array[code];

	s.t();
}
