	$(function() {
		$('#accordion').accordion({
			autoHeight: false
		});

		$('#price_list').accordion({
			autoHeight: false,
			collapsible: true,
			active: false,
			navigation: true
		});

		$('.price3 td').mouseover(function() {
			var ids = $(this).parent().parent().parent().attr('id');

			if (ids.length)
			{
				$(this).parent().addClass('aim');
				var tr_size = $('#' + ids + ' tr').size();
				var td_size = $('#' +  ids + ' td').size();

				var td_quantity = td_size/tr_size;
				var iter = $(this).index();
 
				for (i = 1;i <= tr_size;i++)
				{
 					$('#' +  ids).find('td').eq(iter).addClass('aim');	
					iter = iter + td_quantity;
				}
			}
		}).mouseout(function() {
			$(this).parent().removeClass('aim');
			$('table tbody tr td').removeClass('aim');
		});

	$('.fdone').delay(2000).fadeOut('slow', function() {
		$(this).remove();
	});

	$('.ferror').delay(2000).fadeOut('slow', function() {
		$(this).remove();
	});

	$('#taextra').click(function() {
		$(this).text('');
	});

	$('#order_del').change(function() {
		var state = $(this).attr('checked');
		var osum = parseInt($('#order_sum').text());
		
		switch (state)
		{
			case true:
				var nusum = osum + 300;
			break;

			case false:
				var nusum = osum - 300;
			break;
		}

		$('#order_sum').text(nusum);
	});
});
