$(document).ready(function() {
	$("a#page177").click(function(){
		
		$("#navLang").show("slow");
		return false;
	});
	
	var output = "<span>Total price</span>&pound;";
	
	$("#pricebox-language-select").change(function(){
		$("#pricebox-level").hide();
		$("#pricebox-type").hide();
		$("#pricebox-priceinfo").hide();
		$("#pricebox-private-tuition").hide();
		
		var selected = $("#pricebox-language-select option:selected");    
	    	if(selected.val() != 0 )
			$("#pricebox-type").show();
	});

	$("#pricebox-type").change(function(){
		$("#pricebox-private-tuition").hide();
		$("#pricebox-level").hide();
		$("#pricebox-priceinfo").hide();
		
		var selected = $("#pricebox-type option:selected");    
	    	if(selected.val() < 3 && selected.val()!=0) {
	        	$("#pricebox-level").show();
	    	} else if(selected.val() ==3) {
			$("#pricebox-private-tuition").show();
		}
		
		$("#pricebox-priceinfo").hide();
	});
	
	$("#pricebox-level").change(function(){
		 $("#pricebox-priceinfo").html(output + "200").show();
	});
	
	$("#pricebox-hours").change(function(){
		var selected = $("#pricebox-hours option:selected");    
		if (selected.val() < 6)
			price = 30*selected.val();
		else 	
			price = 25*selected.val();
		$("#pricebox-priceinfo").html(output + price).show();
	});

});


