/************************************************************
		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 = "Buick Olympics Microsite ";	
	switch (num)

            {
              			case "a":

                                    s.pageName += "- Homepage";

                                    break;

                        case "b":

                                    s.pageName += "- Skip Intro";

                                    break;

                        case "c":

                                    s.pageName += "- Vision Positioning";

                                    break;

                        case "d":

                                    s.pageName += "- Main Navigation";

                                    break;
                        case "e":

		                            s.pageName += "- Vision";
		
		                            break;
                            
                        case "f":

		                            s.pageName += "- Vision - Jewelery Hotspot";
		
		                            break;
                            
                        case "g":

		                            s.pageName += "- Creativity";
		
		                            break;
                            
                        case "h":

		                            s.pageName += "- Creativity - Thompson Hotspot";
		
		                            break;
                        case "i":

		                            s.pageName += "- Creativity - Grille Hotspot";
		
		                            break;
                        case "j":

		                            s.pageName += "- Idea";
		
		                            break;
                        case "k":

		                            s.pageName += "- Idea - Clay Hotspot";
		
		                            break;
                        case "l":

		                            s.pageName += "- Idea - CAD Hotspot";
		
		                            break;
                        case "m":

		                            s.pageName += "- Balance";
		
		                            break;
                        case "n":

		                            s.pageName += "- Balance - Backseat Hotspot";
		
		                            break;
                        case "o":

		                            s.pageName += "- Reality";
		
		                            break;
                        case "p":

		                            s.pageName += "- Reality - Exterior Hotspot";
		
		                            break;
                        case "q":

		                            s.pageName += "- Reality - Interior Hotspot";
		
		                            break;
                        case "r":

		                            s.pageName += "- Reality - Logo Hotspot";
		
		                            break;
                        case "s":

		                            s.pageName += "- Social Media - LaCrosse";
		
		                            break;
                        case "t":

		                            s.pageName += "- Social Media - Regal";
		
		                            break;
									
						case "u":
	
	                          		s.pageName += "- Social Media - Enclave";
	
	                          	   break;

						case "v":
	
	                          		s.pageName += "- Meet the Design Team";
	
	                              break;
							  
						
							  
                        				
}
	var  theLocation = "" + document.location;
	var langVar = "English";
	  
	if (theLocation.indexOf("french")!=-1) {
	    langVar = "French";
	  }  
	
	
			s.server= "GM.ca";
		   	s.channel= "2010 Buick Olympics Microsite";
		    s.prop2 = langVar;
			s.prop3 = "GMCanada.com"
			s.prop4 = "";
			s.prop5 = "";
			s.prop6 = "Buick";
			s.prop7 = "";
			s.eVar1= "";
			s.products= "";
			s.eVar10="gm.ca";
			s.events="scOpen";
	
	//alert(s.pageName);
	
	// re-invoke funtion
	//alert(isLoaded2);
	 s.t();
}
