 		if (permission != 0) 
 			window.webkitNotifications.requestPermission()
 		time =  $("#slider").slider( "option", "value" )
+		localStorage[CUSTOM_TIMER] = time
 		console.log("Setting timer for: " + time)
 		$('#btn-run').button('loading');
 		startTimer(time, $('#teaTime'))

SOUND = true
CANCEL_TIMEOUT = 10000
CHOSEN_TEA = "chosen_tea"
total_time = 0

window.getTea = (name) -> 

		$('#btn-run').toggleClass('disabled')
		
	$('input:radio[name=time]:checked').click()
	if localStorage[CUSTOM_TIMER] 
		$("#slider").slider("option", "value", localStorage[CUSTOM_TIMER])
	

