﻿//#p_data 読み込みアニメ
$(document).ready(function(){
	if ($.browser.safari){
		$('#data_txt,h3.h_name,span.pname').css('display','block');
		$('.player').not('.even').css('display','block');
		$('#img1').show('fast',function(){
			$('#img2').show('fast',function(){
				$('#img3').show('fast',function(){
					$('#img4').show('fast',function(){
						$('#img5').show('fast');
					});
				});
			});
		});
	} else if ($.browser.mozilla){
		$('h3.h_name').show('slow',function(){
			$('span.pname').fadeIn('fast',function(){
				$('#data_txt').show('fast',function(){
					$('.player').not('.even').show('fast',function(){
						$('#img1').show('fast',function(){
							$('#img2').show('fast',function(){
								$('#img3').show('fast',function(){
									$('#img4').show('fast',function(){
										$('#img5').show('fast');
									});
								});
							});
						});
					});
				});
			});
		});
	} else if ($.browser.msie){
		$('h3.h_name').show('slow',function(){
			$('span.pname').fadeIn('fast',function(){
				$('#data_txt').show('fast',function(){
					$('.player').not('.even').show('fast',function(){
						$('#img1').show('fast',function(){
							$('#img2').show('fast',function(){
								$('#img3').show('fast',function(){
									$('#img4').show('fast',function(){
										$('#img5').show('fast');
									});
								});
							});
						});
					});
				});
			});
		});
	} else if ($.browser.opera){
		$('h3.h_name').show('slow',function(){
			$('span.pname').fadeIn('fast',function(){
				$('#data_txt').show('fast',function(){
					$('.player').not('.even').show('fast',function(){
						$('#img1').show('fast',function(){
							$('#img2').show('fast',function(){
								$('#img3').show('fast',function(){
									$('#img4').show('fast',function(){
										$('#img5').show('fast');
									});
								});
							});
						});
					});
				});
			});
		});
	}
});

//Pre ImageSwitch for add "alt"= 'vaildation error' to "img" 
$(document).ready(function(){
	$('#img1 img').attr('rel',$('#img1 img').attr('title'));
	$('#img2 img').attr('rel',$('#img2 img').attr('title'));
	$('#img3 img').attr('rel',$('#img3 img').attr('title'));
	$('#img4 img').attr('rel',$('#img4 img').attr('title'));
	$('#img5 img').attr('rel',$('#img5 img').attr('title'));
	$('#img6 img').attr('rel',$('#img6 img').attr('title'));
	$('#img7 img').attr('rel',$('#img7 img').attr('title'));
	$('#img8 img').attr('rel',$('#img8 img').attr('title'));
	$('#img9 img').attr('rel',$('#img9 img').attr('title'));
	$('#img10 img').attr('rel',$('#img10 img').attr('title'));
	$('.min_img img').removeAttr('title');
	$('.min_img2 img').removeAttr('title');
 });

//ImageSwitch
$(document).ready(function(){
	$(".min_img img").click(function(){
		$(".Slash").ImageSwitch({Type:$(this).attr("class"), 
			NewImage:$(this).attr("rel"),	
			Direction:"DownTop"
			});
	});
});
$(document).ready(function(){
	$(".min_img2 img").click(function(){
		$(".Slash").ImageSwitch({Type:$(this).attr("class"), 
			NewImage:$(this).attr("rel"),	
			Direction:"DownTop"
			});
	});
});

//"div.player" more image 切り替え
$(function(){
	$("a.more").click(function(){
		$(".player").toggle();
	});
});