$(document).ready(function(){
	
	$('.hint input, .hint select, .hint textarea').focusin(function() {
		$(this).parent().find('.hint_text').show();
	});
	
	$('.hint input, .hint select, .hint textarea').focusout(function() {
		$(this).parent().find('.hint_text').hide();
	});
	
	
	
	$('.input_click input, .input_click select, .input_click textarea').focusin(function() {
		if( $(this).parent().hasClass('input_check') ){
			$(this).attr( 'rel', $(this).val() );
			$(this).val('');
		}
		$(this).parent().removeClass('input_check');
	});
	
	$('.input_click input, .input_click select, .input_click textarea').focusout(function() {
		if( $(this).val() == '' ){
			$(this).val($(this).attr( 'rel' ));
			$(this).parent().addClass('input_check');
		}
	});
	
	
	$('select.select_style_50').selectmenu({
		maxHeight: 150,
		menuWidth: 50,
		width: 50,
		style:'dropdown'
	});
	
	$('select.select_style_70').selectmenu({
		maxHeight: 150,
		menuWidth: 70,
		width: 70,
		style:'dropdown'
	});
	
	$('select.select_style_123').selectmenu({
		maxHeight: 150,
		menuWidth: 123,
		width: 123,
		style:'dropdown'
	});
	
	$('select.select_style_137').selectmenu({
		maxHeight: 150,
		menuWidth: 137,
		width: 137,
		style:'dropdown'
	});
	
	$('select.select_style_144').selectmenu({
		maxHeight: 150,
		menuWidth: 144,
		width: 144,
		style:'dropdown'
	});
	
	$('select.select_style_198').selectmenu({
		maxHeight: 150,
		menuWidth: 198,
		width: 198,
		style:'dropdown'
	});

	$('select.select_style_248').selectmenu({
		maxHeight: 150,
		menuWidth: 248,
		width: 248,
		style:'dropdown'
	});

	$('select.select_style_284').selectmenu({
		maxHeight: 150,
		menuWidth: 283,
		width: 284,
		style:'dropdown'
	});

	$('select.select_style_315').selectmenu({
		maxHeight: 150,
		menuWidth: 314,
		width: 315,
		style:'dropdown'
	});

	$('select.select_style_352').selectmenu({
		maxHeight: 150,
		menuWidth: 351,
		width: 352,
		style:'dropdown'
	});


});

