// ---------------------------------------------------
// 自動フレームセット生成スクリプト
Hs_scriptName = "autoframeset_news.js";
Hs_author     = "Hiyoko";
Hs_version    = "Ver2.03h 2002/06/03-11/09";
Hs_home       = "http://www.hiyoko3.com/";
// ---------------------------------------------------

// フレームセットタグ内のパラメーターを記述します。（以下はフレーム上下２分割の場合）
var HsFramesetOption1 = "border=0 frameSpacing=0 frameBorder=NO rows=83,*";

// ---------------------------------------------------
// 各フレームの詳細を記述します。
// HstopURL は上側フレームへ表示するURLです。
// HstopFrameName はフレーム名
// HstopFrameOption はフレームのオプションパラメーター
// ---------------------------------------------------
var HstopURL          = "http://www.tsuko40.com/navi.html";
var HstopFrameName    = "mainFrame";
var HstopFrameOption  = "noResize scrolling=no";

// ---------------------------------------------------
// メインのフレーム名（例の場合下フレーム）とオプションパラメーター
var HsmainFrameName   = "bottomFrame";
var HsmainFrameOption = "noResize scrolling=yes";

// 設定ここまで
// ---------------------------------------------------

if(top.frames.length==0){
	var HsmainURL  = document.URL;
	var query      = (new Date()).getSeconds();
	if(HsmainURL.indexOf("#",0)>0){
		var HssubURL  = HsmainURL.substring(HsmainURL.indexOf("#",0)+1,HsmainURL.length);
		HsmainURL = HsmainURL.substring(0,HsmainURL.indexOf("#",0))+"?hsanc="+HssubURL;
	}
if(HsmainURL.indexOf("?",0)>0){HsmainURL = HsmainURL+"&Hsdmkey="+query;}else{HsmainURL = HsmainURL+"?dmkey="+query;}
	document.write("<FRAMESET " + HsFramesetOption1 + "><FRAME src='" + HstopURL + "' name='" + HstopFrameName + "' " + HstopFrameOption + ">\n");
	document.write("<FRAME src='" + HsmainURL + "' name='" + HsmainFrameName + "' " + HsmainFrameOption + ">\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;
	}
}

