/************************************************************
		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 = "2010 Buick Allure Prelaunch FP ";	
	switch (num)

            {
              			case "a":

                                    s.pageName += "- Bucket 1";

                                    break;

                        case "b":

                                    s.pageName += "- Bucket 1 - Head-Up Display";

                                    break;

                        case "c":

                                    s.pageName += "- Bucket 1 - Adaptive Articulating";

                                    break;

                        case "d":

                                    s.pageName += "-  Bucket 1 - Speed Transmissiong";

                                    break;
                        case "e":

		                            s.pageName += "- Bucket 1 - Heated Steering Wheel";
		
		                            break;
                            
                        case "f":

		                            s.pageName += "- Bucket 1 - Signature Design Cues";
		
		                            break;
                            
                        case "g":

		                            s.pageName += "- Bucket 1 - Bluetooth";
		
		                            break;
                            
                        case "h":

		                            s.pageName += "- Bucket 1 - All-Wheel Drive";
		
		                            break;
                        case "i":

		                            s.pageName += "- Bucket 1 - OnStar";
		
		                            break;
                        case "j":

		                            s.pageName += "- Bucket 1 - Ultra-Sonic Rear Parking Assist";
		
		                            break;
                        case "k":

		                            s.pageName += "- Bucket 1 - Ice Blue Ambiant Lighting";
		
		                            break;
                        case "l":

		                            s.pageName += "- Bucket 1 - Suspension";
		
		                            break;
                        case "m":

		                            s.pageName += "- Bucket 1 - Exterior Styling";
		
		                            break;
                        case "n":

		                            s.pageName += "-  Bucket 2";
		
		                            break;
                        case "o":

		                            s.pageName += "- Bucket 2 - Premium Interior Details";
		
		                            break;
                        case "p":

		                            s.pageName += "-  Bucket 2 - Quiettuning";
		
		                            break;
                        case "q":

		                            s.pageName += "- Bucket 2 - Side Blind Zone Alert";
		
		                            break;
                        case "r":

		                            s.pageName += "- Bucket 2 - V6 Engine";
		
		                            break;
                        case "s":

		                            s.pageName += "- Bucket 2 - Navigation";
		
		                            break;
                        case "t":

		                            s.pageName += "-  Bucket 2 - Stabilitrak";
		
		                            break;
									
						 case "u":
	
	                          s.pageName += "-  Bucket 2 - Heated Seats";
	
	                          break;

						 case "v":
	
	                          s.pageName += "-   Bucket 3";
	
	                          break;
							  
						 case "w":
	
	                          s.pageName += "-  Bucket 3 - Rear Seat Legroom";
	
	                          break;
						
						 case "x":
	
	                          s.pageName += "-  Bucket 3 - DVD";
	
	                          break;
													
						 case "y":
	
	                          s.pageName += "-  Bucket 4";
	
	                          break;
							
						case "z":
	
	                          s.pageName += "- Bucket 4 - OnStar ENAV";
	
	                          break;
							  
						 case "aa":
	
	                          s.pageName += "-  Bucket 4 - Sunroof";
	
	                          break;
							  
                        				
}
	var  theLocation =""+ document.location;
	var langVar = "English";
	  
	if (theLocation.indexOf("french")!=-1) {
	    langVar = "French";
	  }  
	
	
			s.server="GM.ca";
		   	s.channel="Buick Allure Feature Content";
		    s.prop2 = 'English';
			s.prop3 = ""
			s.prop4 = '30,000 - 40,000';
			s.prop5 = 'Large/Luxury';
			s.prop6 = 'Buick';
			s.prop7 = '';
			s.eVar1="";
			s.products="";
			s.eVar3="";
			s.eVar10="";
			s.events="";
	
	//alert(s.pageName);
	
	// re-invoke funtion
	//alert(isLoaded2);
	 s.t();
}
