	$(document).ready(function() {
		$(".rehome").click(function() {
			var code = ($(this).attr("rel"));
			$.ajax({
				type : "post",
				cache	: false,
				async	: false,
				url 	: "./pageset_rehome_nikki.php",
				data 	: "no=" + code,
				success	: function(msg) {
					code = msg;
				}
			});
			$.fancybox({
				'href'	: './refine_data/reform/reform/' + code + '/01.html',
				'width'				: '85%',
				'height'			: '95%',
				'overlayColor'		: '#E3DCD4',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'padding'			: 1,
				'margin'			: 10,
				'showNavArrows'		: false,
				'type'				: 'iframe'
			});
		});
		
		$(".remail").click(function() {
			var code = ($(this).attr("rel"));
			$.ajax({
				type	: "POST",
				cache	: false,
				async	: false,
				url 	: "./pageset_refine_mail.php",
				data 	: "no=" + code,
				success	: function(msg) {
					code = msg;
				}
			});
			$.fancybox({
				'href'	: './refine_data/remail/remail/' + code + '/01.html',
				'width'				: '75%',
				'height'			: '90%',
				'overlayColor'		: '#FFD886',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'padding'			: 1,
				'margin'			: 10,
				'showNavArrows'		: false,
				'type'				: 'iframe'
			});
		});
		
		$(".jireisyu").click(function() {
			var code = ($(this).attr("rel"));
			$.ajax({
				type : "post",
				cache	: false,
				async	: false,
				url 	: "./pageset_refine_jireisyu.php",
				data 	: "no=" + code,
				success	: function(msg) {
					code = msg;
				}
			});
			$.fancybox({
				'href'	: './refine_data/jireisyu/jireisyu/' + code + '/01.html',
				'width'				: '92%',
				'height'			: '87%',
				'overlayColor'		: '#E3DCD4',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'padding'			: 5,
				'margin'			: 5,
				'showNavArrows'		: false,
				'type'				: 'iframe',
				'titlePosition' 	: 'inside',
				'titleFormat'		: function() {
					return '<P style="margin:0 0 0 60px; font-size:14px; font-weight: bolder; color:#0033CC;">画像をクリックすると拡大されます。</P>';
				}
			});
		});
		
		$("#moriuama").fancybox({
				'width'				: '80%',
				'height'			: '80%',
				'overlayColor'		: '#CAFDC8',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
		});
		$("#ritto").fancybox({
				'width'				: '80%',
				'height'			: '80%',
				'overlayColor'		: '#FFE983',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
		});
		$(".annai_i").fancybox({
				'transitionIn'			: 'elastic',
				'transitionOut'			: 'elastic',
				'hideOnContentClick'	: true,
				'centerOnScroll'        : true
		});
		$(".annai_h").fancybox({
				'width'				: '95%',
				'height'			: '95%',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
		});
		$(".annai_it").click(function() {
			var code = ($(this).attr("rel"));
			$.fancybox({
				'href'					: './refine_data/annai/' + code ,
				'transitionIn'			: 'elastic',
				'transitionOut'			: 'elastic',
				'hideOnContentClick'	: true,
				'centerOnScroll'        : true
			});
		});
		$(".annai_ht").click(function() {
			var code = ($(this).attr("rel"));
			$.fancybox({
				'href'				: './refine_data/annai/' + code ,
				'width'				: '95%',
				'height'			: '95%',
				'autoScale'			: false,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'iframe'
			});
		});
		
		$('#slider').nivoSlider({
			animSpeed:100,
			directionNav:false,
			keyboardNav:false,
			controlNav:false
		});
			
		if(!jQuery.support.opacity){
		    if(!jQuery.support.style){
		    	if (typeof document.documentElement.style.maxHeight == "undefined") {
					jAlert('当サイトでは、最新のブラウザーでの閲覧に最適化されています。<BR>お使いのブラウザーでは正しく表示がされません。<BR>Microsoft IE7 以上　Firefox 3.6 以上　Opera 10.5 以上　Safari 5 以上をお薦めします。', 'ブラウザーのバージョンについて');
				}
		    }
		}

	});
	
function presen_set() {
	$("#presen03").empty();
	$("#presen02").css({"display": "block", "zIndex": 5});
}	
	
