/**
 * @package    alcoholtaxcalculator
 * @subpackage Components
 * components/com_alcoholtax/js/alcoholtax.js
 * @author Micheas Herman
 * @link http://www.micheas.com/
 * @license    GNU/GPL
 * @copyright 2009 Marin Institute
*/
	jQuery(document).ready(function(){
		jQuery("select").change(function(){
			var str = "";
			jQuery("select option:selected").each(function () {
				targetstate = '#' + jQuery(this).val() + 'note' ;
			});
			jQuery('div.beernote').css('display','none');
			jQuery(targetstate).css('display','block');
			jQuery('div.spiritscontrolnote').css('display','none');
			jQuery('div.winecontrolnote').css('display','none');
			if (jQuery(this).val() == 'nh' || 
				jQuery(this).val() == 'pa' || 
				jQuery(this).val() == 'ut' || 
				jQuery(this).val() == 'wy' )
				{ jQuery('div.winecontrolnote').css('display','block');
				 jQuery('div.spiritscontrolnote').css('display','block');}
			if (jQuery(this).val() == 'al' || 
				jQuery(this).val() == 'id' || 
				jQuery(this).val() == 'ia' || 
				jQuery(this).val() == 'me' || 
				jQuery(this).val() == 'mi' || 
				jQuery(this).val() == 'ms' || 
				jQuery(this).val() == 'mt' || 
				jQuery(this).val() == 'nc' || 
				jQuery(this).val() == 'oh' || 
				jQuery(this).val() == 'or' || 
				jQuery(this).val() == 'vt' || 
				jQuery(this).val() == 'va' || 
				jQuery(this).val() == 'wa' || 
				jQuery(this).val() == 'wv' )
				{ jQuery('div.spiritscontrolnote').css('display','block');}
		})
			.change();
	
	});
