$(function()
{
	$('.textBox').val('');
	
	$('.button').bind('click', function () {
		$('.dropDown').css('display', 'block');
	});
	
	$('.dropDownItem').hover(function(){ $(this).css('background-color', '#397DF3').css('color', '#fff'); }, function(){ $(this).css('background-color', '#fff').css('color', '#000');
	});
	
	$('.dropDownItem').bind('click', function () {
		$('.textBox').val( $(this).html() );
		$('.textBox').attr( 'alt', $(this).attr('rel') );
		$('.dropDown').css('display', 'none');
	});
	
	 if(!$.browser.mozilla)
		$('.jComboBox').hover(function(){}, function(){$('.dropDown').css('display', 'none');});
		
	$('.textBox').bind('click', function () {
			$('.dropDown').css('display', 'none');
	});
});

