var airCon = {
	set: function(recAirCon,link) {
		if(link)
			{ $('#airConRecommended').html("We recommend the <a href='/go/residential/our-systems/" + link + "' target='_blank'><strong>" + recAirCon + "</strong></a>").fadeIn('slow'); }
		else
			{ $('#airConRecommended').html("We recommend the <strong>" + recAirCon + "</strong>").fadeIn('slow'); }
		
		$("#airconditioner").attr("value",recAirCon);
		$('#secion_personal').fadeIn('slow');
		$('#secion_personal span.aircon').html("<strong>" + recAirCon + "</strong>");
		//console.log("airconditioner: " + $("#airconditioner").attr("value"));
	},
	
	proceed: function(idToShow) {
		
		this.hideFrom(idToShow);
		$("#" + idToShow).fadeIn('slow');
			
		//reset hidden input and recommended output text.
		$('#airConRecommended').fadeOut('slow',function(){ $('#airConRecommended').empty();});
		$("#airconditioner").attr("value","");
		//console.log("resetting complete");
		//console.log("airconditioner: " + $("#airconditioner").attr("value"));
	},
	hide: function(idToHide) {
		$("#" + idToHide).hide();
	},	

	hideFrom: function(idToHideFrom) {
				
		switch(idToHideFrom)
		{
			case "section_floortype":
					this.hide("section_floortype");
					this.hide("section_stageofhouse");
					this.hide("section_spots");
					this.hide("section_controltemp");
					this.hide("section_freshair_no");
					this.hide("section_freshair_12");												
					break;
			case "section_stageofhouse":
					this.hide("section_stageofhouse");
					this.hide("section_spots");
					this.hide("section_controltemp");
					this.hide("section_freshair_no");
					this.hide("section_freshair_12");													
					break;
			case "section_spots":
					this.hide("section_spots");
					this.hide("section_controltemp");
					this.hide("section_freshair_no");
					this.hide("section_freshair_12");														
					break;				
			case "section_controltemp":
					this.hide("section_controltemp");
					this.hide("section_freshair_no");
					this.hide("section_freshair_12");														
					break;
			case "section_freshair_no":
					this.hide("section_freshair_no");
					this.hide("section_freshair_12");														
					break;		
			case "section_freshair_12":
					this.hide("section_freshair_12");														
					break;			
		}	
		
		//applies to all cases above.
		this.hide("secion_personal");	
	}
	
			

}