	$(document).ready(function(){
		
		$('.select').hover(
	      function () {
	        $(this).find('ul').show();
	      }, 
	      function () {
	        $(this).find('ul').hide();
	      }
	    );
	    
		$('.select_option').click(function(){
			this_select = $(this).parents('.select').find('.current_select');
			the_input = $(this).parents('.select').next('.select_input');
			value = $(this).attr('rel');
			text = $(this).text();
			// we've got the data, now let's work the magic
			$(this_select).text(text);
			$(the_input).val(value);
			$(this).parents('.select').find('ul').slideUp("fast");
			$(the_input).focus();
			$(the_input).blur();
			return false;
		})
		
	});
