  	
	
	
			 

	
																																																																		
																																					
		
				
						
		
										
		
								

		
						
							
		
								
							
		
								
		
		
		
																																	
		
		
	
				
				

						
	
		
			
		
	
		
				
		
				
		
				
		
		
						

		
						
		
				
		
						
					
															
		
								
		
								
		
																
		
																
		
				
						
		
		
		
		
		
				
  	  
	  	    	    	  	  	 
	var carConfig_Infos = new Class(
	{
	/*************************************************************************************************************************
	 * Variable
	 *************************************************************************************************************************/
	 
	/***************************************************** Prix **************************************************************/
	famille: '',
	silhouette: '',
	prix_de_base: 0.0,
	prix_total: 0.0,
	prix_total_diff_promotion: 0.0,
	prix_total_promotion: 0.0,
	prix: {},
	
	/***************************************************** finition ***********************************************************/
	finition: {
		nom: {
			prix: '',
			prix2: '',
			prix_promotion: '',
			prix_promotion_diff: '',
			caracteristiques: [],
			url_img: '',
			url_avatar: '',
			url_imgName: '',
			url: '',
			url_conf: '',
			url_tdrive: ''
		}
	},
	
	choix_finition:'',
	tooltip: {},
	
	/***************************************************** moteur ************************************************************/
	moteur: {
		nom: {
			prix: '',
			prix2: '',
			prix_promotion: '',
			prix_promotion_diff: '',
			nomination: '',
			type: '',
			box: '',
			caracteristiques: {},
			description: '',
			classe: '',
			imgco2big: '',
			imgco2small: '',
			url: '',
			url_conf: '',
			url_tdrive: ''
		}
	},
	
	choix_moteur:'',
	
	
	/***************************************************** Couleur et int?rieur **************************************************/
	couleur: {
		nom: {
			prix: '',
			nomination: '',
			url_img: '',
			trims:[]
		}
	},
	
	trim: {
		nom: {
			prix: '',
			nomination: '',
			url_img: '',
			couleurs:[]
		}
	},
	
	couleur_icon: {},
	trim_icon:{},
	
	choix_couleur:'',
	choix_trim:'',
	
	textOnHover:'configurator.configure.resume.comparator_description',

	
	
	/***************************************************** Option ************************************************************/
	//tableau de reference pour les prix des options
	options_reference: {
		ref: {
			nom: '',
			prix: '',
			tooltip: '',
			exclude: '',
			include:[]
		}
	},
	
	choix_options: [],
	
	options_prix: 0.0,
	
	/***************************************************** Accessoires *********************************************************/
	//tableau de reference pour les prix des accessoires
	accessoires_reference: {
		nom: {},//nom --> prix
		description: {}, //nom-->description
		reference: {} //nom-->reference
	},
	
	choix_accessoires: {
		nom: [],
		quantite: []
	},
	
	accessoires_prix: 0.0,
	
	/***************************************************** traduction des infos et menus ******************************************/
	
	info_recap1: '',
	info_recap2: '',
	info_recap3: '',
	info_recap4: '',
	
	menu_contextuelle: {
		nom: {
			titre: '',
			description: '',
			url: ''
		}
	},
	
	money_name: '',
	money: '',
	
	finitionText:'',
	
	after_price:'',
	before_price:'',
	priceThousands:'',
	showPrice:'',
	showAlertBox:'',
	showColorTrimPrice:'',
	
	/*************************************************************************************************************************
	 * Constructor
	 *************************************************************************************************************************/
	initialize: function(etape,args)
	{
		this.load(etape);
	},
	
	
	
	/*************************************************************************************************************************
	 * Now Loading
	 *************************************************************************************************************************/
	load: function(etape)
	{
			//infos prix
						this.prix_de_base = 0;
									this.prix_total = 0;
									this.prix_total_promotion = 0;
									this.prix_total_diff_promotion = 0;
						
			this.before_price = 'R ';
			this.after_price = '';
			
						
						this.priceThousands = '.';
						
						this.replacePriceLabel = '';
						
						this.showPrice = true;
									this.showAlertBox = true;
									this.showBox = false;
									this.showColorTrimPrice = true;
						
			
			
			//recup infos de l'etape 1
						
			//recup infos de l'etape 2
																			 								
												
												this.moteur.nom['AX51PA7'] = {
						'prix' : 289104,
																		'nomination': '1.6 THP - 5-speed Manual',
						'type': 'Petrol',
						'box': '5-Speed Manual',
						'description': '',
						'classe': '171',
													'imgco2small': '/media/configurator/images/engines/co2/E_small.png',
							'imgco2big': '/media/configurator/images/engines/co2/E_big.png',
																		'caracteristiques': {
								
																											'Cubic capacity (cc)': 	'1598'
																																			
								
																											,'Max Power (Kw) at rpm': 	'110@5800'
																									
								
																											,'Max Torque Nm at rpm': 	'240@1400'
																									
								
																
								
																
								
																											,'Urban Consumption (l/100km)': 	'9.6'
																									
								
																											,'Rural Consumption (l/100km)': 	'5.8'
																									
								
																											,'Mixed consumption (l/100 km)': 	'7.2'
																									
																
																											,'CO2 emission (g/km)': 	'171'
																									
								
																											,'Tank capacity (liters)': 	'50'
																									
														  },
						'url': '/compare/207/cc/motor=AX51PA7/',
						'url_conf': '/configure/207/cc/motor=AX51PA7/'
					};
																							 																				
			//recup infos de l'etape 3
						
			//recup infos de l'etape 4
						
			//Recap BOX infos
				//recap pour l'etape 2
								
				
				//recap pour l'etape 3
								
				
				//recap pour l'etape 4
								
				
				//recap pour l'etape 5
								
				
				
			
			this.menu_contextuelle.nom['menu_email'] = {
				'titre' : 'Send to a friend',
				'description': 'Share your configuration with a friend'
			}
			
			this.menu_contextuelle.nom['menu_save'] = {
				'titre' : 'Save',
				'description': 'Enter your email address to save your configuration'
			}
			
			this.menu_contextuelle.nom['menu_specs'] = {
				'titre' : 'Specifications',
				'description': 'Complete list of equipment and technical specifications of your car.'
			}
			
			this.menu_contextuelle.nom['menu_drive'] = {
				'titre' : 'Book a test drive',
				'description': 'Test drive this vehicle at your local Peugeot dealer'
			}
			
			this.menu_contextuelle.nom['menu_print'] = {
				'titre' : 'Print',
				'description': ''
			}
			
			this.menu_contextuelle.nom['menu_doc'] = {
				'titre' : 'Request a brochure',
				'description': ''
			}
			
			this.menu_contextuelle.nom['menu_star0'] = {
				'titre' : 'View latest offers',
				'description': 'configurator.new_cfg.cfg_menu_star0_desc'
			}
			
			this.menu_contextuelle.nom['menu_search'] = {
				'titre' : 'Find your nearest dealer',
				'description': ''
			}
			
			this.menu_contextuelle.nom['menu_price'] = {
				'titre' : 'Download price list',
				'description': 'configurator.new_cfg.cfg_menu_price_desc'
			}
			
						
			this.info_recap1= 'Choose your version';
			this.info_recap2= 'Choose your engine';
			this.info_recap3= 'Choose a colour and interior trim';
			this.info_recap4= 'Choose your options';
			
			this.money_name = '';
			this.money = '';
			
			
	}
	
	
	
	});
  