var Summary = function() {
	this.title = true;
	this.logo = true;
	this.bigIntro = true;
	//this.middleMenu = true;
	this.stepMenu = true;
	this.footer = true;
	this.data = null;
	this.html = [];
}

Summary.prototype.ini = function() {
	/*if (this.data !== null) {
		this.getContent();
		return;
	}
	var params = [];
	params.push('market='+Configurator.marketID);
	params.push('region='+Configurator.regionID);
	params.push('sv='+Car.svID);
	params.push('gear='+Car.gearboxID);
	params.push('engine='+Car.engineID);
	params.push('car='+Car.modelID);
	params.push('mc='+Car.mc);
	params.push('roof=0');
	params.push('lng='+Configurator.language);
	ajax('/ajax/?do=step1', 'Configurator.standartOptions.getContent()', params.join('&'));	*/
	this.getContent();
}

Summary.prototype.getContent = function() {	
	this.html = [];

	this.html.push('<table align="center" class="content"><tr><td class="content_cell">');
	this.html.push(Interface.showStepButtons());

	this.html.push('<table style="width:560px; margin: 10px 0 0 0;">');
	this.html.push('<tr><td class="big_title h40">'+Interface.translate('summary')+'</td></tr>');
	
	this.html.push('<tr class="h40"><td><span class="blue_bold">'+Interface.translate('optional_equipment')+'</span></td></tr>');

	so = Car.options.length;
	var so2 = 0;
	if (!so) this.html.push('<tr><td>'+Interface.translate('none')+'</td></tr>');
	var temp = [];
	for (i = 0; i < so; i++) temp.push(Car.options[i].id);

	var n = 0;
	this.html.push('<tr class="h40"><td><table></tr><tr valign="top"><td width="50%">');
	for (el in Configurator.options.ad_options) {
		so2 = Configurator.options.ad_options[el].length;
		for (i = 0; i < so2; i++) {
			if (in_array(Configurator.options.ad_options[el][i][1], temp)) {
				if(n == Math.round(so/2)) this.html.push('</td><td>');
				this.html.push('<table width="100%"><tr valign="top"><td class="w10" style="padding: 0 0 0 10px; margin: 0"><img src="/_/dot.gif" alt="dot" style="margin-top: 4px;"/></td>');
				this.html.push('<td style="padding: 0; margin: 0">'+ Configurator.options.ad_options[el][i][0] +'</td></tr></table>');
				n++;
			}
		}
	}
	this.html.push('</td></tr></table></td></tr>');
	
	
	/*this.html.push('<tr class="h20"><td><span class="blue_bold">'+Interface.translate('model')+'</span> <b>Volvo '+ Configurator.models.getModelById() +'</b></td></tr>');
	this.html.push('<tr class="h20"><td><span class="blue_bold">'+Interface.translate('engine')+'</span> <b>'+ Configurator.matrix.getEngineById() +'</b></td></tr>');
	this.html.push('<tr class="h20"><td><span class="blue_bold">'+Interface.translate('trans')+'</span> <b>'+ Configurator.matrix.getGearboxById() +'</b></td></tr>');
	this.html.push('<tr class="h20"><td><span class="blue_bold">'+Interface.translate('sv')+'</span> <b>'+ Car.sv +'</b></td></tr>');
	this.html.push('<tr><td><table class="summary_pics"><tr><td><img src="'+ Car.rimsData.pic_s +'" alt="rims" class="pic"/></td>');
	this.html.push('<td><span class="blue_bold">'+Interface.translate('rims')+'</span> <b>'+ Car.rimsData.text +'</b></td></tr></table></td></tr>');
	this.html.push('<tr><td><table class="summary_pics"><tr><td><img src="'+ Car.colorData.pic_s +'" alt="color" class="pic"/></td>');
	this.html.push('<td><span class="blue_bold">'+Interface.translate('color')+'</span> <b>'+ Car.colorData.text +'</b></td></tr></table></td></tr>');
	this.html.push('<tr><td><table class="summary_pics"><tr><td><img src="'+ Car.upholsData.pic_s +'" alt="uphols" class="pic"/></td>');
	this.html.push('<td><span class="blue_bold">'+Interface.translate('uphols')+'</span> <b>'+ Car.upholsData.text +'</b></td></tr></table></td></tr>');*/
	this.html.push('<tr class="h40"><td><span class="blue_bold">'+Interface.translate('equipment')+'</span></td></tr>');
	


	try {
		eval(Configurator.standartOptions.data['xOpt']['txt']);
	} catch(e) {
		alert('Unable to load standart options data.');
		throw e;
		return;
	}
	var so = sv_main.length;
	this.html.push('<tr class="h40"><td><table></tr><tr valign="top"><td width="50%">');
	for(var i = 0; i < so; ++i) {
		if(i == Math.round(so/2)) this.html.push('</td><td>');
		this.html.push('<table width="100%"><tr valign="top"><td class="w10" style="padding: 0 0 0 10px; margin: 0"><img src="/_/dot.gif" alt="dot" style="margin-top: 4px;"/></td>');
		this.html.push('<td style="padding: 0; margin: 0">'+sv_main[i]+'</td></tr></table>');
	}
	this.html.push('</td></tr></table></td></tr>');
	
	/*
	 so = Car.options.length;
	 for (i = 0; i< so; i ++) {
		this.html.push('<tr><td><table width="100%"><tr valign="top"><td class="w10" style="padding: 0 0 0 10px; margin: 0"><img src="/_/dot.gif" alt="dot" style="margin-top: 4px;"/></td>');
		this.html.push('<td style="padding: 0; margin: 0">'+  +'</td></tr></table></td></tr>');
	}*/
	
	this.html.push('');
	this.html.push('');
	this.html.push('');
	this.html.push('');
	this.html.push('');
	this.html.push('</tr></table>');

	this.html.push('</td>');
	this.html.push(Interface.showRightMenu());
	this.html.push('</tr></table>');

	$('content').innerHTML = this.html.join('');
	Interface.loading(true);
}
