


/**
* 低画質モードの注意書きツールチップ表示設定
*/
$('#row_mode').qtip({
	content: '回線速度が遅い場合など、動画が重く感じる場合は低画質モードに切替えてご視聴ください', 
	show: 'mouseover',
	hide: 'mouseout',
	style: {
		name: 'cream', // or cream or blue
		tip: true,
		border: {
			width: 3,
			radius: 7,
			color: '#F9E77E'
		}
	},
	position: {
		corner: {
		target: 'topLeft',
		tooltip: 'bottomRight'
	}
   }

});


/**
* Flashプレイヤーの注意書きツールチップ表示設定
*/
$('#get_flash').qtip({
	content: 'FlashPlayerがインストールされていない場合や、FlashPlayerのバージョンが古い場合、コンテンツが正しく表示されない場合があります。<br /><br />その場合はリンク先より最新のFlashPlayerをインストールしてください。', 
	show: 'mouseover',
	hide: 'mouseout',
	style: {
		name: 'cream', // or cream or blue
		tip: true,
		border: {
			width: 3,
			radius: 7,
			color: '#F9E77E'
		}
	},
	position: {
		corner: {
		target: 'topLeft',
		tooltip: 'bottomRight'
	}
   }

});


/**
* サムネイルスライダー設定
*/
jQuery.fn.fadeSliderToggle = function(settings) {
	 settings = jQuery.extend({
		speed:600,
		easing : "swing"
	}, settings)
	
	caller = this
	if($(caller).css("display") == "none"){
		$(caller).animate({
			opacity: 1,
			height: 'toggle'
		}, settings.speed, settings.easing);
	}else{
		$(caller).animate({
			opacity: 0,
			height: 'toggle'
		}, settings.speed, settings.easing);
	}
};


/**
* ドキュメントの読み込み完了時
* ・テキストのフェードイン表示設定
*/
$(function(){
	
	/**
	* テキストのフェードイン設定
	*/
	var t = setTimeout(
		function(){
			$("#contents").fadeSliderToggle();
			clearTimeout(t);
		},
		1000
	);
	
	return false;
	
	
});


/**
* マウスホバー時の設定
*/
$(document).ready(function() {
		$('ul.thumbs').children().hover(function() {
			$(this).siblings().stop().fadeTo(100, 0.1);  // $1ミリ秒かけて、opacity $2 まで変化
		}, function() {
			$(this).siblings()
				.stop().fadeTo(200, 1); // 戻します
		});
});


/**
* [Flashから起動] 画面拡大クリック時
*  現在再生位置時間
*/
function extensionMovie(time){
	alert("extensionMovie" + time);
	
}
