/************************************************************
		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://preprod.gm.ca') ? "devgmcanadacom" : "gmcanadacom";
/************************** AUTO CONFIG SECTION **************************/

function scTrack(num){
//alert('scTrack');
	// re-assign var

	s.pageName = "2007 Buick Enclave Podcast -";
	
	switch(num) {

		case "a":
			s.pageName += " Podcast Landing Page Intro Copy"
			break;

		case "b":
			s.pageName += " Episode One"
			break;

		case "c":
			s.pageName += " Episode Two"
			break;

		case "d":
			s.pageName += " Episode Three"
			break;

		case "e":
			s.pageName += " Episode Four"
			break;

		case "f":
			s.pageName += " Episode Five"
			break;

		case "g":
			s.pageName += " Episode Six"
			break;

		case "h":
			s.pageName += " PROMO LINK"
			break;

		case "i":
			s.pageName += " SUBSCRIPTION LINKS - Subscribe RSS Feed"
			break;

		case "j":
			s.pageName += " SUBSCRIPTION LINKS - Subscribe iTunes"
			break;

		case "k":
			s.pageName += " SUB NAV: HOST BIO"
			break;

		case "l":
			s.pageName += " SUB NAV: WHAT'S A PODCAST ROLLOVER"
			break;

		case "m":
			s.pageName += " SUB NAV: HOW TO SUBSCRIBE ROLLOVER"
			break;

		case "n":
			s.pageName += " SUB NAV: Link - Opens up itunes and connects to podcast section"
			break;

		case "o":
			s.pageName += " SUB NAV: Link - to RSS feed"
			break;

		case "p":
			s.pageName += " Episode I – The Illumination of the Line - Listen Now"
			break;

		case "q":
			s.pageName += " Episode I – The Illumination of the Line - Download Now"
			break;

		case "r":
			s.pageName += " Episode I – The Illumination of the Line - Hide Player"
			break;

		case "s":
			s.pageName += " Episode II – Sound and the Symphony of Silence - Listen Now"
			break;

		case "t":
			s.pageName += " Episode II – Sound and the Symphony of Silence - Download Now"
			break;

		case "u":
			s.pageName += " Episode II – Sound and the Symphony of Silence - Hide Player"
			break;

		case "v":
			s.pageName += " Episode III – Reactivating Your Passion - Listen Now"
			break;

		case "w":
			s.pageName += " Episode III – Reactivating Your Passion - Download Now"
			break;

		case "x":
			s.pageName += " Episode III – Reactivating Your Passion - Hide Player"
			break;

		case "y":
			s.pageName += " Episode IV – Texture and the Power of Touch - Listen Now"
			break;

		case "z":
			s.pageName += " Episode IV – Texture and the Power of Touch - Download Now"
			break;

		case "aa":
			s.pageName += " Episode IV – Texture and the Power of Touch - Hide Player"
			break;

		case "bb":
			s.pageName += " Episode V – A Feast For The Eyes - Now"
			break;

		case "cc":
			s.pageName += " Episode V – A Feast For The Eyes - Download Now"
			break;

		case "dd":
			s.pageName += " Episode V – A Feast For The Eyes - Hide Player"
			break;

		case "ee":
			s.pageName += " Episode VI – Spaces That Enhance Our Lives - Listen Now"
			break;

		case "ff":
			s.pageName += " Episode VI – Spaces That Enhance Our Lives - Download Now"
			break;

		case "gg":
			s.pageName += " Episode VI – Spaces That Enhance Our Lives - Hide Player"
			break;






		}

	s.t();
}
