function initialize_bio(){
	context = $(".content_configuration");
	$("#save_profile").click(function(){save_profile();});
	update_profile(this.band_data);
}

function update_profile(data){
	$("#band_name",context).val(band_data.name);
	$("#band_type",context).val(band_data.type);
	$("#band_biography",context).val(band_data.bio);
	$("#band_city",context).val(band_data.city);
	try{$("#band_label",context).val(band_data.label);}catch(exception){}
	try{$("#label_type",context).val(band_data.label_type);}catch(exception){}
}

function save_profile(){
	var band_name = $("#band_name",context).val();
	var band_city = $("#band_city",context).val();
	var band_bio = $("#band_biography",context).val();
	var band_type = $("#band_type",context).val();
	var band_label = $("#band_label",context).val();
	var band_label_type = $("#label_type",context).val();
	band_data.name = band_name;
	band_data.city = band_city; 
	band_data.bio = band_bio; 
	band_data.type = band_type; 
	band_data.label = band_label;
	band_data.label_type = band_label_type;
	var handleResponse = function(){
		$("#bio_customization").addClass("hidden");
		$("#navigate").trigger("click");
	}
	$.ajax({
		type:"POST",
		data:{band:JSON.stringify(band_data)},
		url: host + "lyrics/profile/" + band_data["_id"] + "/",
		success: handleResponse 
	});
}