  	
		
			 

	
																																																							
												
																
						
		
										
		
								

		
						
							
		
								
							
		
								
		
		
		
		
																																	
		
				
		
		
	
				
					

								
	
	
		
		
	
		
				
		
				
		
		
		
						
		
				
		
						
					
															
		
								
		
				
		
						
		
																
		
																
		
				
		
									
						
		
		
			
		
		
		
  	  
	  	    	    	  	  	 
	var carConfig_Infos = new Class(
	{
	/*************************************************************************************************************************
	 * Variable
	 *************************************************************************************************************************/
	 
	/***************************************************** Prix **************************************************************/
	famille: '',
	silhouette: '',
	prix_de_base: 0.0,
	prix_total: 0.0,
	prix: {},
	
	/***************************************************** finition ***********************************************************/
	finition: {
		nom: {
			prix: '',
			prix2: '',
			caracteristiques: [],
			url_img: '',
			url_avatar: '',
			url_imgName: '',
			url: '',
			url_conf: '',
			url_tdrive: ''
		}
	},
	
	choix_finition:'',
	tooltip: {},
	
	/***************************************************** moteur ************************************************************/
	moteur: {
		nom: {
			prix: '',
			prix2: '',
			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.before_price = '';
			this.after_price = ' Kn';
			
						
						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['RA51PB0'] = {
						'prix' : 71000,
						'nomination': '1.0e 12V',
						'type': 'Benzin',
						'box': 'Ručni 5 brzina',
						'description': 'S tri cilindra i 12 ventila, benzinski motor izuzetno je štedljiv i nudi pritom dobar raspon ubrzanja linearnih režima rada motora.',
						'classe': '109',
													'imgco2small': '/media/configurator/images/engines/co2/B_small.png',
							'imgco2big': '/media/configurator/images/engines/co2/B_big.png',
																		'caracteristiques': {
								
																											'Zapremina (cm3)': 	'998'
																																			
								
																											,'Maksimalna snaga KS (Kw) pri o/min': 	'50'
																									
								
																											,'Maksimalni okretni moment Nm pri o/min': 	'93'
																									
								
																											,'Maksimalna brzina': 	'157'
																									
								
																											,'Ubrzanje 0-100 km/h (s)': 	'14'
																									
								
																											,'Potrošnja goriva u gradu (l/100km)': 	'5.5'
																									
								
																											,'Potrošnja goriva izvan grada (l/100km)': 	'4.1'
																									
								
																											,'Kombinirana potrošnja goriva (l/100km)': 	'4.6'
																									
																
																											,'Emisija CO2 (g/km)': 	'109'
																									
								
																											,'Zapremina rezevara za gorivo (l)': 	'35'
																									
														  },
						'url': '/usporedi/107/3-vrata/motor=RA51PB0/',
						'url_conf': '/konfigurirajte-vas/107/3-vrata/motor=RA51PB0/'
					};
																							 																		
			//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' : 'Pošalji prijatelju',
				'description': 'Podijelite vašu konfiguraciju s prijateljima'
			}
			
			this.menu_contextuelle.nom['menu_save'] = {
				'titre' : 'Pohrani',
				'description': 'Upišite email adresu za pohranu vaše konfiguracije'
			}
			
			this.menu_contextuelle.nom['menu_specs'] = {
				'titre' : 'Specifikacija',
				'description': 'Kompletan popis opreme i tehničke specifikacije vašeg automobila'
			}
			
			this.menu_contextuelle.nom['menu_drive'] = {
				'titre' : 'Rezerviraj probnu vožnju',
				'description': 'Iskušajte ovo vozilo kod vašeg Peugeot koncesionara'
			}
			
			this.menu_contextuelle.nom['menu_print'] = {
				'titre' : 'Ispis',
				'description': 'Ispis opisa'
			}
			
			this.menu_contextuelle.nom['menu_doc'] = {
				'titre' : 'Zatraži brošuru',
				'description': 'Zahtjev za brošurom'
			}
			
			this.menu_contextuelle.nom['menu_star0'] = {
				'titre' : 'Posebna ponuda',
				'description': 'Opis posebne ponude'
			}
			
			this.menu_contextuelle.nom['menu_search'] = {
				'titre' : 'Vaš najbliži koncesionar',
				'description': 'Opis lokatora koncesionara'
			}
			
			this.menu_contextuelle.nom['menu_price'] = {
				'titre' : 'Preuzmite cjenik',
				'description': 'Opis cjenika'
			}
			
						
			this.info_recap1= 'Izvedba definira serijsku opremu vašeg vozila';
			this.info_recap2= 'Odaberite motor s obzirom na vaše potrebe i način vožnje';
			this.info_recap3= 'Odaberite boju vozila tip unutrašnjosti';
			this.info_recap4= 'Odaberite opcije za usporedbu!';
			
			this.money_name = '';
			this.money = '';
			
			
	}
	
	
	
	});
  