var HsFramesetOption1 = "frameborder=NO border=0 framespacing=0 rows=83,*,21";



var HstopFrameName    = "header";

var HstopFrameOption  = "scrolling=NO noresize";



var HsmainURL         = "top.html";

var HsmainFrameName   = "main";

var HsmainFrameOption = "";



// 設定ここまで

// ---------------------------------------------------

if(top.frames.length==0){

	var HstopURL  = document.URL;

	var query      = (new Date()).getSeconds();

	if(HstopURL.indexOf("#",0)>0){

		var HssubURL  = HstopURL.substring(HsmainURL.indexOf("#",0)+1,HstopURL.length);

		HstopURL = HstopURL.substring(0,HstopURL.indexOf("#",0))+"?hsanc="+HssubURL;

	}

if(HstopURL.indexOf("?",0)>0){HstopURL = HstopURL+"&Hsdmkey="+query;}else{HstopURL = HstopURL+"?dmkey="+query;}

	document.write("<FRAMESET " + HsFramesetOption1 + "><FRAME src='" + HstopURL + "' name='" + HstopFrameName + "' " + HstopFrameOption + ">\n");

	document.write("<FRAME src='" + HsmainURL + "' name='" + HsmainFrameName + "' " + HsmainFrameOption + ">\n");

	document.write("<FRAME src='footer.html' name='footer' scrolling=NO noresize>\n");

	document.write("<NOFRAMES><BODY>\n"); 

	document.write("<P>このページをご覧いただくにはフレーム対応のブラウザが必要です。<"+"/P>\n"); 

	document.write("<"+"/BODY><"+"/NOFRAMES><"+"/FRAMESET><"+"!--"); 

}else{

	var HssubURL  = location.search;

	var ancloc = HssubURL.indexOf("hsanc=",0)

	if(ancloc>0){

		if(HssubURL.indexOf("&",ancloc)>0){var nextloc = HssubURL.indexOf("&",ancloc);}

		if(HssubURL.indexOf("%26",ancloc)>0){var nextloc = HssubURL.indexOf("%26",ancloc);}

		if(nextloc>0){var Lastloc=nextloc;}else{var Lastloc=HssubURL.length;}

		HssubURL = "#"+HssubURL.substring(ancloc+6,Lastloc);

		self.location.href=HssubURL;

	}

}