$(document).ready(function() {
	$('dd.locale a').qtip({
		position: {
			corner: {
				tooltip: 'bottomLeft',
				target: 'topMiddle'
			}
		},
		style: {
			padding: 10,
			textAlign: 'center',
			tip: true,
			name: 'light'
		}
	});
	$('#sidebar img, ul.ccPeople li a').qtip({
		content: $(this).attr('alt'),
		position: {
			corner: {
				tooltip: 'bottomMiddle',
				target: 'topMiddle'
			}
		},
		style: {
			border: {
				width: 5,
				radius: 5
			},
			padding: 10,
			textAlign: 'center',
			tip: true,
			name: 'dark'
		}
	});
	$('#sidebar .toAll').qtip({
		position: {
			corner: {
				tooltip: 'bottomRight',
				target: 'topLeft'
			}
		},
		style: {
			border: {
				width: 5,
				radius: 5
			},
			padding: 10,
			textAlign: 'center',
			tip: true,
			name: 'light'
		}
	});
	$('.linkSNS').qtip({
		position: {
			corner: {
				tooltip: 'bottomMiddle',
				target: 'topMiddle'
			}
		},
		style: {
			padding: 10,
			tip: true,
			name: 'cream'
		}
	});

	$('.addiInfo').qtip({
		position: {
			corner: {
				tooltip: 'bottomLeft',
				target: 'topMiddle'
			}
		},
		style: {
			padding: 10,
			tip: true,
			name: 'light'
		}
	});

	$('.addiInfo2').qtip({
		position: {
			corner: {
				tooltip: 'bottomMiddle',
				target: 'topMiddle'
			}
		},
		style: {
			padding: 10,
			tip: true,
			name: 'cream'
		}
	});



	$('#bookAddform').qtip({
		position: {
			corner: {
				tooltip: 'topMiddle',
				target: 'bottomMiddle'
			}
		},
		style: {
			padding: 10,
			tip: true,
			name: 'cream',
			width: { min: 440 }
		}
	});





//	$('.bookshelf img').qtip({
//		show: { effect: 'slide' },
//		hide: { when: 'mouseout', fixed: true },
//		position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle' }}, style: { border: { width: 4, radius: 4, color: '#6C7E68' }, padding: 10, textAlign: 'center', tip: true }
//	});

	$("input#bookAddform").toggleVal({
		focusClass: "hasFocus"
	});

//	$("input#bookSearch").toggleVal({
//		focusClass: "hasFocus"
//	});

	$('#feedli4').hover(
		function() { $('ul', this).fadeIn('fast') },
		function() { $('ul', this).hide(); }
	);

	// 메모 textArea resizer
	$('textarea.resizable:not(.processed)').TextAreaResizer();

	// 구매하기 버튼
	$(".purchase").hover(
		function() { $("#purchaseBox").show(); },
		function() { $("#purchaseBox").hide(); }
	);



});