$(document).ready(function(){ 
		
	$("ul.feature_list").listen('mouseover',"a",function(event) {
	 
		hideFeatures();
		var currentId = $(this).attr('id');	
		var strId = currentId.substring(3);
		/* alert(strId);*/
		$(".feature-" + strId).show();
		
	});
	
	$("ul.feature_list").listen('mouseout',"a",function(event) {
		hideFeatures();
	});
	
	hideFeatures();
	
	$("input:radio[name=delivery-name]").click(function() {
		if($(this).val() == 'True'){
			$('#new_address').show('slow');
		}else{
			$('#new_address').hide('slow');
		}
		$(this).blur();
        $(this).focus();
	});
}); 

function hideFeatures(){
	$(".feature-item").hide();
}

<!-- TheO quantity updater -->
function updateTheoQuantity(){
	
	var quantity;
	var html;
	var i=-1;
	
	quantity = $('#quantity').val();
	
	$('#theo').empty();
	
	for ( i=-1;i<=10;i++ ){
		if( i == -1 ){
			html = '<option label="' + quantity + '" value="' + quantity + '">' + quantity + '</option>';	
		}else{
			html = html + '<option label="' + i +'" value="' + i +'">' + i +'</option>';
		}
	}
	
	$(html).appendTo( $('#theo') );

}
