
	/*
	Front-end Developer
	@Mikael Carrara (http://www.mikaelcarrara.com)
	*/

	$(function(){

		$('a.go').click(function(){
			$(this).hide();
			$('ul#slider').show();
			$('.sliderScroll').slider({range:'min', value:1, min:0, max:4});
		});
		$('#graficoSlider').bind('slide', function(event, ui){
			if (ui.value == 0){$(this).parent().children('span.description').text('Horrível, ta faltando tudo')}
			if (ui.value == 1){$(this).parent().children('span.description').text('Até que se esforçou, mas não deu')}
			if (ui.value == 2){$(this).parent().children('span.description').text('Legal, da pra achar algo bom')}
			if (ui.value == 3){$(this).parent().children('span.description').text('Bom, gostei do estilo')}
			if (ui.value == 4){$(this).parent().children('span.description').text('Demais, muito bem feito')}
			$('#graficoAmount').val(ui.value);
		});
		$('#jogabilidadeSlider').bind('slide', function(event, ui){
			if (ui.value == 0){$(this).parent().children('span.description').text('Não dá pra jogar isto')}
			if (ui.value == 1){$(this).parent().children('span.description').text('Dá pra jogar até um certo ponto')}
			if (ui.value == 2){$(this).parent().children('span.description').text('Até da pra jogar mas é muito complicado')}
			if (ui.value == 3){$(this).parent().children('span.description').text('Nada de novo, mas gostei')}
			if (ui.value == 4){$(this).parent().children('span.description').text('Excelente, devia ter mais jogos assim')}
			$('#jogabilidadeAmount').val(ui.value);
		});
		$('#historiaSlider').bind('slide', function(event, ui){
			if (ui.value == 0){$(this).parent().children('span.description').text('Sem graça, nada de novo, terrível')}
			if (ui.value == 1){$(this).parent().children('span.description').text('Não me convenceu, mas dou um desconto')}
			if (ui.value == 2){$(this).parent().children('span.description').text('Normal, mas podia melhorar')}
			if (ui.value == 3){$(this).parent().children('span.description').text('Boa história, gostei')}
			if (ui.value == 4){$(this).parent().children('span.description').text('Impressionante, me cativou')}
			$('#historiaAmount').val(ui.value);
		});
		$('#diversaoSlider').bind('slide', function(event, ui){
			if (ui.value == 0){$(this).parent().children('span.description').text('Não dá pra se divertir com isso')}
			if (ui.value == 1){$(this).parent().children('span.description').text('Não me diverti muito')}
			if (ui.value == 2){$(this).parent().children('span.description').text('Podia ser um pouco mais divertido')}
			if (ui.value == 3){$(this).parent().children('span.description').text('Até que me diverti bem')}
			if (ui.value == 4){$(this).parent().children('span.description').text('Me diverti muito!')}
			$('#diversaoAmount').val(ui.value);
		});

	}); /* jQuery */
		