$(document).ready(

// Top Headline Photo
	function(){
		$("#topHeadlinePhotoInside li:nth-child(7)").css("width","75px");
		$("#topHeadlinePhotoInside li img").fadeTo(100,1);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail1").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail2").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail3").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail4").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail5").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail6").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

		$("#topHeadlinePhotoInside li#topHeadlinePhotoThumbnail7").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

// For Blog Index
		$(".blogIndexMemberList div.blogIndexMember:nth-child(5)").css("width","175px");
		$(".blogIndexMemberList div.blogIndexMember:nth-child(10)").css("width","175px");
		$(".blogIndexMemberList div.blogIndexMember:nth-child(15)").css("width","175px");
		$(".blogIndexMemberList div.blogIndexMember:nth-child(29)").css("width","175px");


		$(".blogIndexMemberThumb a img").hover(
			function(){
				$(this).fadeTo(100,0.5);
			},
			function(){
		 	$(this).fadeTo(100,1);
			}
		);

	}
);

function blogIndexRenew1(blogid){
		$(document).ready(
	function(){
		var func = arguments.callee;
		var blogcssid = "#"+blogid+" .blogIndexMemberRenewIcon1";
		$(blogcssid).fadeTo(1200,(func.b = !!!func.b) ? 0.1 : 1,func);
	});
}

function blogIndexRenew2(blogid){
		$(document).ready(
	function(){
		var func = arguments.callee;
		var blogcssid = "#"+blogid+" .blogIndexMemberRenewIcon2";
		$(blogcssid).fadeTo(1200,(func.b = !!!func.b) ? 0.1 : 1,func);
	});
}



// Category Title

function photogalleryCategoryTitle(){
var nowaddress = document.URL;
var matchletter1 = "C\=1";
var matchletter2 = "C\=2";
var matchletter3 = "C\=3";
var matchletter4 = "C\=4";
var matchletter5 = "C\=5";

if(nowaddress.match(matchletter1)){ document.write('<img src="/img_photogallery/photogallerySubTitleGirlish.jpg" />'); }
if(nowaddress.match(matchletter2)){ document.write('<img src="/img_photogallery/photogallerySubTitleSweet.jpg" />'); }
if(nowaddress.match(matchletter3)){ document.write('<img src="/img_photogallery/photogallerySubTitleNaked.jpg" />'); }
if(nowaddress.match(matchletter4)){ document.write('<img src="/img_photogallery/photogallerySubTitleAudition.jpg" />'); }
if(nowaddress.match(matchletter5)){ document.write('<img src="/img_photogallery/photogallerySubTitleDancer.jpg" />'); }
}


// For Blog / Kiroku & News Split

var nowaddress = document.URL;
var matchletter1 = "/kiroku";
var matchletter2 = "/news";

function blogTitleImg(){
	if(nowaddress.match(matchletter1)){
		blogTitle = '<img src="/blog/img/kirokuTitle.jpg" width="110" height="29" alt="Kiroku" />';
	}else if(nowaddress.match(matchletter2)){
		blogTitle = '<img src="/blog/img/newsTitle.jpg" width="98" height="30" alt="News" />';
	}else{
		blogTitle = '<img src="/blog/img/blogTitle.jpg" width="79" height="37" alt="Blog" />';
	}
	document.write( blogTitle );
}

if(nowaddress.match(matchletter1)){
	$(document).ready(
		function(){
			$("#blogRightProfile").css("display","none");
		}
	);
}else if(nowaddress.match(matchletter2)){
	$(document).ready(
		function(){
			$("#blogRightProfile").css("display","none");
		}
	);
}
