window.onload = function(){
	$('.itemstitle_shadow').removeShadow();
	$('.itemstitle_shadow').dropShadow({top:1, left:1, blur:1, opacity:0.5, color:'#000000'});
	$('.itemsimg_shadow').removeShadow();
//	$('.itemsimg_shadow').dropShadow({top:5, left:5, blur:3, opacity:1, color:'#000000'});
	$('.itemsimg_shadow').dropShadow({top:2, left:2, blur:1, opacity:0.6, color:'#000000'});
 
	$('#coda-slider-7').codaSlider({
		autoHeightEaseDuration: 300,
		autoHeightEaseFunction: "easeInBounce",
		slideEaseDuration: 300,
		slideEaseFunction: "easeInBounce"
	});
 
	$('#coda-slider-1').codaSlider();
 
//	$('#pagerating').rater('/cgi/jquery/jquery_rater/pagerating.php');
//	$('#pagerating').rater('/cgi/jquery/jquery_rater/pagerating.php', {style: 'inline'});
//$(function(){
	$("input#btn_vote").hide(); // ボタンを隠して
	$("form#rate_this input[type='radio']").hide(); // ラジオボタンを隠して
	$("form#rate_this label").addClass("selector"); // ラベルをクリックしやすいように
	// マウスオーバーした時ラベルをハイライト表示
	$("label.selector, #rating_scores a").hover(
		function(){ 
			$(this).addClass("selector_h"); 
		}, function() { 
			$(this).removeClass("selector_h");
		});
		/* クリックしたラベルの値を取得して表示 */
		$("form#rate_this input[type='radio']").click(function() { 
			data = $("form").serialize();
			$.ajax({
				type: "POST",
				url: "/cgi/jquery/jquery_rater/set_pagerating.php",
				data:data,
				success: function(evt, request, settings) {
				//$("#rating_result").text(evt);
					$("#rating_result").hide().fadeOut(1 * 1000);
					$("#rating_result").css({color:"#3D70E6"});
					$("#rating_result").text("ありがとうございました！");
					$("#rating_result").hide().fadeIn(3 * 1000);
					// 一定時間後
					myTimer = $.timer(2 * 1000,function() {
						// メッセージエリア初期化
						$("#rating_result").hide().fadeOut(3 * 1000);
						$("#rating_result").css({color:"#FF3366"});
						$("#rating_result").text("ご利用、ありがとうございます！");
						$("#rating_result").hide().fadeIn(3 * 1000);
					});
 
				},
				error: function(msg) {
				 alert("申し訳ございません。うまく送れませんでした。"); }
		});
	});
	//         });
 
 
	$('.slide-out-div').tabSlideOut({
		tabHandle: '.handle', //class of the element that will become your tab
		pathToTabImage: '/images/top_tab.gif', //path to the image for the tab *required*
		imageHeight: '32px', //height of tab image *required*
		imageWidth: '167px', //width of tab image *required*    
		tabLocation: 'top', //side of screen where tab lives, top, right, bottom, or left
		speed: 300, //speed of animation
		action: 'hover', //options: 'click' or 'hover', action to trigger animation
		topPos: '70px', //position from the top/ use if tabLocation is left or right
		leftPos: '670px', //position from left/ use if tabLocation is bottom or top
		fixedPosition: false //options: true makes it stick(fixed position) on scroll
	});
}
