// rental.html－qtip.jsの設定用
// imgタグのrel属性の値をチップ内に表示する。
//

$(function(){
	qtips('#rental_compare td'); //どこでチップを有効にするか指定
//	qtips('');                   他でも使用する場合、('')内にチップをつけたいコンテンツを指定
});

function qtips(qcontent){
	$(qcontent).each(function() {
		$(this).qtip({
			content: $(this).find('img').attr('rel'),
			style: {
				border: {
					radius: 3,
					color: '#ff7777'
				},
				tip: {
					corner: 'topRight'
				}
			},
			position: {
				corner: {
					target: 'bottomMiddle',
					tooltip: 'topRight'
				},
				adjust: {
				}
			}
		});
	});
}
