 // JavaScript Document
	var image = new Image();	
	var image2 = new Image();	
	var image3 = new Image();	
	var image4 = new Image();	
	var image5 = new Image();	
	image.src="/image/potal/content/index/animostyle_top_jikyu.jpg";
	image2.src="/image/potal/content/index/animostyle_top_archive.jpg";
	image3.src="/image/potal/content/index/animostyle_top_web.jpg";
	image4.src="/image/potal/content/index/animostyle_top_ajs02.jpg";
	image5.src="/image/potal/content/index/animostyle_top_ajs.gif";
	
function imageRollover_on($this){
	clearImage();
	
//	$this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
	$("#pr").fadeTo(1000, 0, function(){ 
																			if($this.id == "top_jikyu"){
																				$("#pr").css('background-color','#FFCC00');
																			}else{
																				$("#pr").css('background-color','#FFFFFF');

																			}
																			switch($this.id) {
																			case 'top_jikyu':$imageFile='animostyle_top_jikyu.jpg'; break;
																			case 'top_archive':$imageFile='animostyle_top_archive.jpg'; break;
																			case 'animostyle_top_web':$imageFile='animostyle_top_web.jpg'; break;
																			case 'top_ajs02':$imageFile='animostyle_top_ajs02.jpg'; break;
																			default:$imageFile='animostyle_top_ajs.gif';
																			}

																			$("#topimg").attr('src',"/image/potal/content/index/" + $imageFile);
																		});
	$("#pr").fadeTo(500, 1.0);
//	$("#pr").fadeIn("slow");
	$("#" + $this.id ).attr('src', $this.src.replace("-off.", "-on."));


//	alert(  $this.src.replace("-off.", "-on.")  );

}
function imageRollover_off($this){
//	$this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
	clearImage();
	$("#pr").fadeTo(1000, 0 , function(){$("#pr").queue([function(){
																																$("#topimg").attr('src',"/image/potal/content/index/img-top.jpg");
																																$("#pr").css('background-color','#ffffff');
																																}
																												]
																											)
																				 }
																				 );
	$("#pr").fadeTo(500, 1.0)
	$("#" + $this.id ).attr('src', $this.src.replace("-on.", "-off."));


//	alert(  $this.src.replace("-off.", "-on.")  );

}
function clearImage(){
		$("#pr").queue([])       // 空の配列で置き換え
        .stop();    
}
