/*

	/************************************************************
	 STATE SELECT BOX
		v. 1.03.01
	 ************************************************************
		Javascript:
			Copyright (©) June 2007-Present by Nick Russo
			nick@poregon.com
		Creation Notes:
			Developed For: Contracted work under Shane Rathbun
		Copyright Information:
			Usage of this code in whole or in part, outside
			of the initial intent, it prohibited.
			This file may be used for educational
			purposes in any tax-funded school with
			written permission from the creator.
		Dependencies:
			jQuery 1.2.6+
				(http://www.jquery.com)
			jQuery Select Box Manipulation Rev 5886+
				(http://www.texotela.co.uk/code/jquery/select/)
			
		
	 ************************************************************/

;(function($) {

	var us_states = {
		'AL' : 'Alabama',
		'AK' : 'Alaska',
		'AS' : 'American Samoa',
		'AZ' : 'Arizona',
		'AR' : 'Arkansas',
		'CA' : 'California',
		'CO' : 'Colorado',
		'CT' : 'Connecticut',
		'DE' : 'Delaware',
		'DC' : 'District of Columbis',
		'FM' : 'Federated States of Micronesia',
		'FL' : 'Florida',
		'GA' : 'Georgia',
		'HI' : 'Hawaii',
		'ID' : 'Idaho',
		'IL' : 'Illinois',
		'IN' : 'Indiana',
		'IA' : 'Iowa',
		'KS' : 'Kansas',
		'KY' : 'Kentucky',
		'LO' : 'Louisiana',
		'ME' : 'Maine',
		'MD' : 'Maryland',
		'MA' : 'Massachusetts',
		'MI' : 'Michigan',
		'MN' : 'Minnesota',
		'MS' : 'Mississippi',
		'MO' : 'Missouri',
		'MT' : 'Montana',
		'NE' : 'Nebraska',
		'NV' : 'Nevada',
		'NH' : 'New Hampshire',
		'NJ' : 'New Jersey',              
		'NM' : 'New Mexico',
		'NY' : 'New York',
		'NC' : 'North Carolina',
		'ND' : 'North Dakota',
		'OH' : 'Ohio',
		'OK' : 'Oklahoma',
		'OR' : 'Oregon',
		'PW' : 'Palau',
		'PA' : 'Pennsylvania',
		'PR' : 'Puerto Rico',
		'RI' : 'Rhode Island',
		'SC' : 'South Carolina',
		'SD' : 'South Dakota',
		'TN' : 'Tennessee',
		'TX' : 'Texas',
		'UT' : 'Utah',
		'VT' : 'Vermont',
		'VI' : 'Virgin Islands',
		'VA' : 'Virginia',
		'WA' : 'Washington',
		'WV' : 'West Virginia',
		'WI' : 'Wisconsin',
		'WY' : 'Wyoming'
	};
	
	$.fn.extend({
		addStates: function(selected_value) {
			$(this).addOption(us_states, false);
			$(this).selectOptions(selected_value);
		}
	});
	
	
})(jQuery);