window.onunload = function () {}

//who
function whoReady(){
	closeClick();
	if($.browser.msie && $.browser.version<7){
		$(window).scroll(function(){
			$("#glay").css('top',$(document).scrollTop())
		})
	}

}

//閉じるボタン
function closeClick(){
$(".closesBtn,.closesBtn2").click(function() {
	$("#glay").hide();
	$(".characterBox").hide();	
	
});
}

//表示
function who(sel){
	$(".characterBox").hide();
	bg();
	$("#"+sel).show();
	leftP = $(window).width() / 2 - 336;
	leftP = leftP + 105;
	$(".characterBox").css("left",leftP + 'px');
}

//背景表示
function bg(){
	$("#glay").show();
}




//ext rool over
function over(sel,last){
	$("#subSideNavi"+sel).attr("src",$("#subSideNavi"+sel).attr("src").replace(".gif","_on.gif"));
	var next = sel+1;
	if(last == 0){
		$("#subSideNavi"+next).attr("src",$("#subSideNavi"+next).attr("src").replace(".gif","_hover.gif"));	
	}
}

function overOut(sel,last){
	$("#subSideNavi"+sel).attr("src",$("#subSideNavi"+sel).attr("src").replace("_on.gif",".gif"));
	var next = sel+1;
	if(last == 0){
	$("#subSideNavi"+next).attr("src",$("#subSideNavi"+next).attr("src").replace("_hover.gif",".gif"));
	}
}





function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

