	$(document).ready(function() {
			/*
			*   Examples - images fancytube
			*/

			$("#contents .fancyimg").fancybox({
				'titlePosition'	: 'outside',
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			//ギャラリーのimg用（Pencil,Liquid)
			$("#gallerycase .img a").fancybox({
				'titlePosition'	: 'inside',
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
			
		$("#contents .fancytube").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

		return false;
	});
		//ギャラリーのmovie用（Pencil,Liquid)
		$("#gallerycase .movie a").click(function() {
			$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			    'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
			});

			return false;
		});
		
		$(".openiframe").fancybox({
				'width'				: '75%',
		'height'			: '75%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'

			});
		$('#nivoslider-works').nivoSlider({
			effect:'fade', // sliceDown、sliceDownLeft、sliceUp、sliceUpLeft、sliceUpDown、sliceUpDownLeft、 fold、fade、random
			slices:15, //分割枚数
			animSpeed:500, //アニメーションスピード
			pauseTime:3000, //停止時間
			directionNav:false, //方向ナビ
			directionNavHide:true, //隠す
			controlNav: false // 1,2,3... navigation
});

		});
