/************************************************************
		Name: s.code_flash2catalyst.js
		Date: Dec. 14, 2004
		Creator: skube
/************************ DESCRIPTION ************************

		For when Site Catalyst is used inside Flash pieces.
		
		Basically, 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
		
/************************ USAGE INSTRUCTIONS ************************
		
		The swf inovkes the function: siteTrack(arg)
		where:
			arg is an integer
		
		The arg gets appended to a string to form a new value for the
		s.pageName variable for Site Catalyst.
		
		Depending on environment, the specific Site Catalyst function will
		require different arguments, shown below:
				
		// for Testing (mo.gm.ca)
		s.gs("devgmcanadacom");

		// for live
		s.gs("gmcanadacom");
		
		Since substitutions occur during MO builds & deploys,
		Any instance of "http://gm.ca" should be translated to
		"http://mo.gm.ca". We can use this fact to automatically
		set the proper server...
		
/************************** AUTO CONFIG SECTION **************************/
// Set which development environment
var currServer = "http://gm.ca"; // this should change to mo.gm.ca 
var server = (currServer == 'http://mo.gm.ca') ? "devgmcanadacom" : "gmcanadacom";
/************************** AUTO CONFIG SECTION **************************/

function scTrack(num){
	s.pageName = "PonSmCar"
	
	if (num == "a") {
		s.pageName += " - Loader"
	}
	if (num == "b") {
		s.pageName += " - Intro"
	}
	if (num == "c") {
		s.pageName += " - G3 Wave Overview"
	}
	if (num == "d") {
		s.pageName += " - G3 Wave 5 Door"
	}
	if (num == "e") {
		s.pageName += " - G3 Wave Sedan"
	}
	if (num == "f") {
		s.pageName += " - G3 Wave Fuel Calculator"
	}
	if (num == "g") {
		s.pageName += " - G3 Wave Fuel Chart"
	}
	if (num == "i") {
		s.pageName += " - Vibe Sport Hatch"
	}
	if (num == "j") {
		s.pageName += " - Vibe Fuel Calculator"
	}
	if (num == "k") {
		s.pageName += " - Vibe Fuel Chart"
	}
	if (num == "l") {
		s.pageName += " - G5 Overview"
	}
	if (num == "m") {
		s.pageName += " - G5 Sedan"
	}
	if (num == "n") {
		s.pageName += " - G5 Coupe"
	}
	if (num == "o") {
		s.pageName += " - G5 Fuel Calculator"
	}
	if (num == "p") {
		s.pageName += " - G5 Fuel Chart"
	}
	
	
 	s.server="gm.ca"
	s.channel="MY09 Pontiac Small Car Campaign"
	s.prop3="Mid-Size"
	s.prop4="< 22,000"
	s.prop5="Small/Sporty"
	s.prop6="Pontiac"
	s.prop7=""
	s.eVar1=""
	s.products=""
	s.eVar10=""
	s.events=""
	
	//alert(s.pageName);
	
	// re-invoke funtion
	//alert(isLoaded2);
	 s.t();
}
