﻿/*     copyright (c)1998-2005   ken' kawakami with the stackroom associates.,  all rights reserved.     */
<!--to hide script contents for old browsers
/*     050801     */


//////////////////////////////////////////////////////////////////////////////












var mac = navigator.appVersion.indexOf('Mac',0) 	!= -1;
var win = navigator.appVersion.indexOf('Win',0) 	!= -1;
var mnr = ( !mac && !win ) ? true : false;
	OSx = false;
	if (mac) { if( navigator.plugins ){ for(i=0;i<navigator.plugins.length;i++) { if( navigator.plugins[i].filename.indexOf("QuickTime Plugin.plugin") != -1 ) { OSx  = true; }}}}
function checkBrowser() {
	this.ver	=	navigator.appVersion
	this.uag	=	navigator.userAgent
	this.dom	=	document.getElementById ? 1:0
	this.ie	=	(	this.ver.indexOf( "MSIE" ) > -1 					) ? 1:0;
	this.ie5	=	(	this.ie &&  this.dom		) ? 1:0;
	this.ie4	=	(	document.all && !this.dom 					) ? 1:0;
	this.iex	=	(	this.ie5 &&  OSx								) ? 1:0;
	this.bwop=		( this.uag.indexOf("Opera") > -1				) ? 1:0;
	this.bwop6 =		( this.bwop && this.ver.indexOf( "MSIE 5" ) > -1 && !this.uag.indexOf( "Opera 7" ) > -1 		) ? 1:0;
	this.bwoph =		( this.bwop && this.dom 						) ? 1:0;
	this.bwopx =		( this.bwoph && OSx 							) ? 1:0;
	this.bwsfr =		( this.uag.indexOf("Safari") > -1 					) ? 1:0;
	this.ns5	=	(	this.dom && parseInt( this.ver ) >= 5 && !this.bwsfr			) ? 1:0;
	this.ns9	=	(	this.ns5 && mac && !OSx			) ? 1:0;
	this.nsx	=	(	this.ns5 && OSx 			) ? 1:0;
	this.ns4	=	(	document.layers && !this.dom 					)? 1:0;
	this.mie	=	(	this.ie && mac 			) ? 1:0;
	this.lg	=	(	this.ie4 || this.ns4 || this.bwop6 		)
	this.bw	=	(	this.ie5 || this.ie4 || this.iex || this.bwop || this.bwop6 || this.bwoph || this.bwopx || this.bwsfr || this.nsx || this.ns5 || this.ns4 || this.mie 		)
	bwnm	=		this.iex ? 1 : this.ie5 ? 2 : this.ie4 ? 3 : this.bwop ? 4 : this.bwoph ? 5 : this.bwopx ? 6 : this.bwsfr ? 7 : this.nsx ? 8 : this.ns5  ? 9 : this.ns4 ? 10 : this.mie ? 11 : 0;
	return this
}
bw = new checkBrowser();
if( bw.lg ) {  alert("現在開発中につき、バージョン｢6｣以上のブラウザで閲覧ください。")
		//location.replace("/unsupported.html");}; //function findInit() {}; function findRset() {};
		}
if (self.location.href.indexOf("cache")  != -1 ) { self.location.replace( "/" ); }
/*
var Mac = navigator.appVersion.indexOf('Mac',0) != -1;
var Win = navigator.appVersion.indexOf('Win',0) != -1;
var IE  = navigator.appName.indexOf("Microsoft Internet Explorer",0) != -1;
var NN  = navigator.appName.indexOf("Netscape",0) != -1;
var Moz = navigator.userAgent.indexOf("Gecko") != -1;
var Vmajor = parseInt(navigator.appVersion);	// ex. 3
var Vminor = parseFloat(navigator.appVersion);	// ex. 3.01

var MacIE4 = ((Mac && navigator.appVersion.indexOf('MSIE 4.',0) != -1));
var MacIE3 = ((Mac && navigator.appVersion.indexOf('MSIE 3.',0) != -1));
*/
//////////////////////////////////////////////////////////////////////////////
		refs = new Array()
		rsver = "_7_on"
		cpver = "_2a"
		ncver = "_j"
		nin = "n"
					rgm=0

		chrSET = 'kantei'
		document.refpoint = false;
		setftref 	= ''
		refimg 	= '<img width="1" height="1" border="0" src="http://'
		SCHD 		= 	'<scr' + 'ipt type="text\/javascript" src="'
		SCFT 		= 	'.js" charset="Shift_JIS"><\/scr' + 'ipt>'

	var classID 		= 'home';
	var SLF			= 'index_topic';
	var chrID = 'インデックス';
	var pmord 		= "standard"
	var nvmode= 'navi0';
	var catID 		= 'front';
	var siteID 		= 'view';
	var INTVmode 	= false;
	var Bnmode 		= false;
	var smmode 		= false;
	wx = 656;
	wy = 506;
		clv="#8CA5FF";
		clh="blue";
		var posXB = screen.width / 2 - 328;
		var posYB = screen.height/ 2 - 300;
		var browserName = navigator.appName.charAt(0);
		var barInit;
	prmv = '8'
	Ztr = 'Math.2* Math.5*'
	ee = 'view_goods'
	Pn = new Array()
	Dn = new Array()
	F2 = new Array()

	Nm = new Array()
	Ch = new Array()
	Md = new Array()

	Sf = new Array()
	Dt = new Array()
	Th = new Array()
	Tx = new Array()
	Tn = new Array()
	Ts = new Array()

		tps = 0; tid = "hm"; DP = "./";  DR= "common/images/";
		WD = "asked"
		EDD = 1
		PLG = 3
		swh = ""; swm = 0; stts = 0;
		locDD = "base";
		refs = new Array()
		FER = 0;

	JStr = ''

	if(self.location.href.indexOf('about') >0 ) {
			classID 		= 'bse';
			SLF			= 'base_topic';
		tid = "abut"; swh = "TM"
		refs[1] = "gavina"
			WD = "index"; 			FER = 3;EDD = 0;PLG = 3;	swm=1;	stts = 0;
		if 		(self.location.href.indexOf('tm1') >0 ) {
			WD = "whos"; 			FER = 3;EDD = 1;PLG = 3;	swm=1;	stts = 1;
		} else if 	(self.location.href.indexOf('tm2') >0 ) {
			WD = "designers"; 		FER = 3;EDD = 2;PLG = 4;	swm=1;	stts = 2;
			} else if 	(self.location.href.indexOf('tm3') >0 ) {
			WD = "japan"; 			FER = 3;EDD = 2;PLG = 4;	swm=1;	stts = 3;
		}

	} else 
	if(self.location.href.indexOf('topics') >0 ) {
			classID 		= 'bse';
			SLF			= 'base_topic';

		tid = "tpic"; swh = "TP"
		if 		(self.location.href.indexOf('index') >0 ) {
			WD = "recent"; 		FER = 0;EDD = 1;PLG = 3;	swm=1;	stts = 1;
		} else {
			WD = "backnumber"; 	FER = 0;EDD = 1;PLG = 3;	swm=1;	stts = 1;
		}

	} else 
	if(self.location.href.indexOf('catalogue') >0 ) {
			classID 		= 'bse';
			SLF			= 'base_topic';
		tid = "ctlg";

	} else 
	if(self.location.href.indexOf('showroom') >0 ) {
			classID 		= 'bse';
			SLF			= 'base_topic';
		tid = "shwr"; swh = "SHWR"
			WD = "showroom"; 		FER = 3;EDD = 1;PLG = 3;	swm=1;	stts = 1;

	} else 
	if(self.location.href.indexOf('products') >0 ) {
			classID 		= 'bse';
			SLF			= 'base_topic';
		tid = "prdt"; 	FER = 0;
		if 		(self.location.href.indexOf('sofa') >0 ) {
			WD = "sofa"; 			FER = 1;EDD = 1;PLG = 3;			stts = 1;
		} else if 	(self.location.href.indexOf('chair') >0 ) {
			WD = "chair"; 			FER = 1;EDD = 2;PLG = 4;			stts = 2;

//		} else if 	(self.location.href.indexOf('hightable') >0 ) {
//			WD = "hightable"; 		FER = 1;EDD = 3;PLG = 2;			stts = 3;
//		} else if 	(self.location.href.indexOf('lowtable') >0 ) {
//			WD = "lowtable"; 		FER = 1;EDD = 4;PLG = 6;			stts = 4;

		} else if 	(self.location.href.indexOf('table_and_desk') >0 ) {
			WD = "table_and_desk"; 		FER = 1;EDD = 3;PLG = 2;			stts = 3;
		} else if 	(self.location.href.indexOf('exective') >0 ) {
			WD = "exective"; 		FER = 1;EDD = 4;PLG = 6;			stts = 4;

		} else if 	(self.location.href.indexOf('bed') >0 ) {
			WD = "bed"; 			FER = 1;EDD = 5;PLG = 3;			stts = 5;
		} else if 	(self.location.href.indexOf('cabinet') >0 ) {
			WD = "cabinet"; 		FER = 1;	EDD = 1;	PLG = 3;		stts = 6;
		} else if 	(self.location.href.indexOf('ultra') >0 ) {
			WD = "ultra"; 			FER = 1;	EDD = 1;	PLG = 3;		stts = 7;
		} else if 	(self.location.href.indexOf('sirrah') >0 ) {
			WD = "sirrah"; 		FER = 1;	EDD = 1;	PLG = 3;		stts = 8;
		} else if 	(self.location.href.indexOf('histricchart') >0 ) {
			WD = "histricchart"; 	FER = 2;	EDD = 1;PLG = 3;		stts = 10;
		}
		if ( FER==0 ) {
			//JStr +=	'<script type="text/javascript" src="../common/scripts/setPDmenu.js"></script>'
		} else {
		//	JStr +=	'<script type="text/javascript" src="pstr_'+WD+'.js"></script>'+
		//			'<script type="text/javascript" src="../common/scripts/setCngLyrs_sm.js"></script>'
		}
	} else 
	if ( self.location.href.indexOf('komatta') >0  ) {
			classID 	= 'komatta';
			SLF			= 'base_topic';
			tid = "komatta"; 	FER = 0;
			chrID = '困ったとき、仕事を頼みたいとき';
			SLF= 'index_topic';
		if 		(( self.location.href.indexOf('irai') >0 ) || ( self.location.href.indexOf('test') >0 )) {
			WD = "test"; 			FER = 1;EDD = 1;PLG = 3;			stts = 1;
		} else 
		if 		(( self.location.href.indexOf('register') >0 ) || ( self.location.href.indexOf('test') >0 )) {
			WD = "test"; 			FER = 2;EDD = 1;PLG = 3;			stts = 1;
		}

		if ( FER==0 ) {
			//	JStr +=	'<script type="text/javascript" src="../common/scripts/setPDmenu.js"></script>'
		} else {
			//	JStr +=	'<script type="text/javascript" src="pstr_'+WD+'.js"></script>'+
			//		'<script type="text/javascript" src="../common/scripts/setCngLyrs_tk.js"></script>'
		}
	} else 
	if ((self.location.href.indexOf('meibo30') >0 )) {
			classID 		= 'meibo';
			SLF			= 'base_topic';
			tid = "meibo"; 	FER = 0;
	} else 
	if ((self.location.href.indexOf('/seido') >0 )) {
			classID 		= 'seido';
			SLF			= 'base_topic';
			tid = "seido"; 	FER = 0;
				if 	(( self.location.href.indexOf('chikachousa') >0 )) {
					WD = "test"; 			FER = 1;EDD = 1;PLG = 3;			stts = 1;
					rgm=1
				}
	} else 
	if ((self.location.href.indexOf('katsudou') >0 )) {
			classID 		= 'katsudou';
			SLF			= 'base_topic';
			tid = "katsudou"; 	FER = 0;
		chrID = '協会活動のご案内 ';
		SLF= 'index_topic';
		if 		(( self.location.href.indexOf('kyoukai') >0 )) {
			WD = "test"; 			FER = 1;EDD = 1;PLG = 3;			stts = 1;
		} else 
		if 		(( self.location.href.indexOf('register') >0 )) {
			WD = "test"; 			FER = 2;EDD = 1;PLG = 3;			stts = 1;

		}
		if ( FER==0 ) {
			//	JStr +=	'<script type="text/javascript" src="../common/scripts/setPDmenu.js"></script>'
		} else {
			//	JStr +=	'<script type="text/javascript" src="pstr_'+WD+'.js"></script>'+
			//		'<script type="text/javascript" src="../common/scripts/setCngLyrs_tk.js"></script>'
		}
	} else 
	if ((self.location.href.indexOf('sonota') >0 )) {
			classID 		= 'sonota';
			SLF			= 'base_topic';
			tid = "sonota"; 	FER = 0;

				if 	(( self.location.href.indexOf('rep10th') >0 ) || ( self.location.href.indexOf('test') >0 )) {
					WD = "test"; 			FER = 1;EDD = 1;PLG = 3;			stts = 1;
					rgm=1
				}
	} else 
	if ((self.location.href.indexOf('privacy') >0 )) {
			classID 		= 'privacy';
			SLF			= 'base_topic';
			tid = "privacy"; 	FER = 0;
	} else 
	if ((self.location.href.indexOf('elections') >0 )) {
			classID 		= 'elections';
			SLF			= 'base_topic';
			tid = "elections"; 	FER = 0;
	} else 
	if (
		(self.location.href.indexOf('news') >0 ) ||
		(self.location.href.indexOf('terms') >0 ) || 
		(self.location.href.indexOf('map') >0 ) || 
		(self.location.href.indexOf('enq') >0 ) || 
		(self.location.href.indexOf('right') >0 ) 
	) {
			classID 		= 'sitemap';
			classID 		= 'cmbase';
			SLF			= 'base_topic';

		tid = "sub"; 	FER = 6;
		chrID = 'サイトマップ';
	//	SLF= 'index_topic';
	
	} else 
	if ( self.location.href.indexOf('sch') >0 ) {
			classID 		= 'sitemap';
			classID 		= 'cmbase';
			SLF			= 'base_topic';

		tid = "bin"; 	FER = 6;
		chrID = 'サイトマップ';
	//	SLF= 'index_topic';
	} else 
	if ( 	

		(self.location.href.indexOf('tchika') >0 ) || 
		(self.location.href.indexOf('previous') >0 ) || 
		(self.location.href.indexOf('faq') >0 ) || 
		(self.location.href.indexOf('coffee') >0 ) || 
		(self.location.href.indexOf('links') >0 ) || 
		(self.location.href.indexOf('download') >0 )) {
			classID 		= 'previous';
			SLF			= 'base_topic';
			tid = "pre"; 	FER = 6;
		chrID = '準備中';
	//	SLF= 'index_topic';
		//	if (( 	self.location.href.indexOf('links') >0 ) && ( 	self.location.href.indexOf('index_t') >0 )) {
			if (( 	self.location.href.indexOf('tchika') >0 )) {
				classID = "tchika";
				pmord = "subs";
			}
			if (( 	self.location.href.indexOf('links') >0 )) {
				classID = "links";
				pmord = "subs";
			}
			if (( 	self.location.href.indexOf('faq') >0 ) && ( 	self.location.href.indexOf('index_t') >0 )) {
				classID = "faq"; 
				pmord = "subs";
			}
	} else 
	if ( 	(self.location.href.indexOf('news') >0 ) || 
		(self.location.href.indexOf('news') >0 ) || 
		(self.location.href.indexOf('news') >0 )) {
			classID 		= 'constituent';
			SLF			= 'parts_topic';

		tid = "elem"; 	FER = 6;
		chrID = '';
	} else 
	if ( 	(self.location.href.indexOf('/en/') >0 ) || 
		(self.location.href.indexOf('englishnews') >0 ) || 
		(self.location.href.indexOf('englishnews') >0 )) {
			classID 		= 'english';
			SLF			= 'base_topic';

		tid = "english"; 	FER = 6;
		chrID = '';

	}

//	if ( FER == 1 ) DP = ( ".." + DP ) ;
//	if (( tid != "hm" ) || ( tid != "sub" )) DP = ( ".." + DP ) ;
	if (( tid != "hm" ) && ( tid != "sub" )) DP = ( "." + DP ) ;
	if (( FER == 2 )) DP= DP+DP

		JStr +=	SCHD + DP + 'common/scripts/preload' + SCFT
	//	JStr +=	SCHD + DP + 'common/scripts/jquery-1.2.6' + SCFT

		if ( tid == "hm" ) JStr +=	SCHD +DP+ 'common/scripts/hmpicInit' 			+ SCFT
		if ( tid == "english" ) JStr +=	SCHD +DP+ 'common/scripts/hmpicInit' 			+ SCFT

		JStr +=	SCHD +DP+ 'common/scripts/dactInit' 	+ SCFT

		if ( tid != "hm" ) JStr +=	SCHD +DP+ 'common/scripts/setGroup' 				+ SCFT
		//if ( tid != "hm" ) alert()

		JStr +=	SCHD +DP+ 'common/scripts/fm' 		+ SCFT

		if ( self.location.href.indexOf('2.html') >0 ) {
		//alert("?wあり")

			JStr +=	SCHD +DP+ 'common/scripts/tmpInit_www' 	+ SCFT
		} else {
			JStr +=	SCHD +DP+ 'common/scripts/tmpInit_ww2' 	+ SCFT
		}
	//	alert(hdStr)

	//	JStr +=	SCHD +DP+ 'common/scripts/sctopoint' 	+ SCFT;
				if ( self.location.href.indexOf('rep10th3') >0 ) 		JStr +=	SCHD +DP+ 'common/scripts/dactInit_3' 	+ SCFT
		//		if ( pmord == "subs" ) 							JStr +=	SCHD +DP+ 'common/scripts/sctopoint' 	+ SCFT
				if ( self.location.href.indexOf('rep10th3') >0 ) 		JStr +=	SCHD +DP+ 'common/scripts/sctopoint' 	+ SCFT;
				
				

	JStr += ''
	document.write( JStr )
	avs	= ( bw.mie ) ? "print" : "";
	//alert(avs)

	bsStr = '';
		bsStr = '<sty' + 'le type="text/css"><!--\n'
		if ( tid == "hm" ) {
			bsStr += '@im' + 'port url("' +DP+ 'common/styles/hmset.c' + 'ss"); 		'
		}
		//alert( classID )
		if (( classID == "tchika" ) || ( classID == "links" ) ||  ( classID == "faq" ) || ( self.location.href.indexOf('rep10th') >0 )) {

			bsStr += '@im' + 'port url("' +DP+ 'common/styles/linkset.c' + 'ss"); 		'

			bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset11.c' + 'ss"); 		'

					if(self.location.href.indexOf('t0511') >0 ) {
				//	alert()
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset11.c' + 'ss"); 		'
					} else 
					if(self.location.href.indexOf('t0563') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset59.c' + 'ss"); 		'
					} else
					if(self.location.href.indexOf('t0543') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset56.c' + 'ss"); 		'
					} else
					if(self.location.href.indexOf('t0533') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset55.c' + 'ss"); 		'
					} else
					if(self.location.href.indexOf('t0503') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset.c' + 'ss"); 		'
					} else
					if(self.location.href.indexOf('t0502') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset.c' + 'ss"); 		'
					} else 
					{
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset58.c' + 'ss"); 		'
					}
					
		}
		bsStr += '@im' + 'port url("' +DP+ 'common/styles/advance_tk0505.c' + 'ss"); 		'

			if ( classID == "english" ) {
				//alert(515)
				bsStr += '@im' + 'port url("' +DP+ 'common/styles/en.c' + 'ss"); 		'
				}

		if (( classID == "privacy" )||( classID == "elections" )||( 					rgm==1 )||( 					classID == "tchika" )) {
		//alert(5)

			innStr = '@im' + 'port url("advance_pv.c' + 'ss"); 		'

			//alert(innStr)

			bsStr += innStr

					if(self.location.href.indexOf('t0503') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset.c' + 'ss"); 		'
					}
					if(self.location.href.indexOf('t0502') >0 ) {
						bsStr += '@im' + 'port url("' +DP+ 'common/styles/tabset.c' + 'ss"); 		'
					}
		}

		bsStr += '@im' + 'port url("' +DP+ 'common/styles/avoid_tk0505.c' + 'ss")' +avs+ '; '

					if(self.location.href.indexOf('_t') >0 ) {
					bsStr += 'div#dgm dl dd#tgList111 { bor' + 'der-left:1px solid #999; } '
					}

		bsStr += '\n--></sty' + 'le>'
	//	bsStr += '<li' + 'nk rel="sty' + 'lesheet" type="text/c' + 'ss" href="' +DP+ 'common/styles/avoid_tk.c' + 'ss" media="print" > 		'
	document.write ( bsStr );


function MM_nbGroup( event, grpName ) { //v6.0
var i,img,nbArr,args = MM_nbGroup.arguments;

	if ( event == "init" && args.length > 2 ) {
		if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
			img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
			if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
			nbArr[nbArr.length] = img;
				for (i=4; i < args.length-1; i+=2) 

				if ((img = MM_findObj(args[i])) != null) {
					if (!img.MM_up) img.MM_up = img.src;
						img.src = img.MM_dn = args[i+1];
						nbArr[nbArr.length] = img;
				}
		}
	} else if (event == "over") {
			document.MM_nbOver = nbArr = new Array();
			for (i=1; i < args.length-1; i+=3) 
				if ((img = MM_findObj(args[i])) != null) {
					if (!img.MM_up) img.MM_up = img.src;
					img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
					nbArr[nbArr.length] = img;
				}
	} else if ( event == "out" ) {
		for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
	} else if ( event == "down" ) {				
		nbArr = document[grpName];
			if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0;		 }
			document[grpName] = nbArr = new Array();
			for (i=2; i < args.length-1; i+=2)
				if ((img = MM_findObj(args[i])) != null) {
					if (!img.MM_up) img.MM_up = img.src;
					img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
					nbArr[nbArr.length] = img;
				}
	}
}
/////////////////////////////////////////////////
	numIMG = new Array(
		DP + DR +"num_0.gif",
		DP + DR +"num_1.gif",
		DP + DR +"num_2.gif",
		DP + DR +"num_3.gif",
		DP + DR +"num_4.gif",
		DP + DR +"num_5.gif",
		DP + DR +"num_6.gif",
		DP + DR +"num_7.gif",
		DP + DR +"num_8.gif",
		DP + DR +"num_9.gif",
		'')

//////////////////////////////////////////////////////////////////////////////

	if ( !document.refpoint ){
	//	document.refpoint = (( self.location.href.indexOf("test") != -1 ) && ( self.location.href.indexOf("net") == -1 )) ? true : false;
	//	document.refpoint = (( self.location.href.indexOf("test") == -1 ) && ( self.location.href.indexOf("64") != -1 )) ? true : false;
	//	document.refpoint = (( self.location.href.indexOf("test") == -1 )) ? true : false;
		document.refpoint = true;
	//	alert(document.refpoint)
			xx = escape( document.referrer );
			rhost = "202.212.208.183";
			rdoc = "smt";
			yy = "";
			for (i = 0; i < xx.length; i++) {
			zz = xx.charAt(i);
			yy += (zz == "+") ? "%2B" : zz;
			}
	}


//////////////////////////////////////////////////////////////////////////////


	var pdID = 1
	var sem 	= new Array()
	var sse 	= new Array()
	var stt 	= ""
	var sep 	= ""
	var spd 	= ""
		callfile = self.location.search;
		callfile = callfile.substring ( 1, callfile.length ) ;

	//	document.pdset = ( callfile.indexOf("pdID") != -1 ) ? true : false;
	//	alert( document.pdset )
	//	if( document.pdset ) {
		document.pdset = ( callfile.indexOf("word=") != -1 ) ? true : false;
		if( document.pdset ) {

			sep = callfile.split("&");			//alert(sep.length)	 			
		//	sep = callfile.split();			//alert(sep.length)	 			
		//	alert(sep)
			sse 	= sep[sep.length-1];
			sem 	= sep[sep.length-2];
				sse 	= sse.split("=");
				sem 	= sem.split("=");
				if( sep.length >2 ) {
				//	spd 	= sep[sep.length-3];
				//	spd	= spd.split("=");
				stt 	= sep[sep.length-3];
				stt	= stt.split("=");
					//	self.location.hash = '#tc'+spd[1];
				//	alert( self.location.href.substring ( 1, self.location.href ));
					//	self.location.replace( self.location.href+"#tc"+spd[1])
					//	self.location.replace( "#tc"+spd[1] )
					//	self.location.hash = '#tc'+spd[1];
				//	alert(self.location.href)
					//	self.location.hash = '#tc'+spd[1];

			//	self.location.replace ( '#tc'+spd[1] );
				//self.location.replace( self.location.href+"#tc"+spd[1])     ;    //winIE6動くが#なしが履歴にあり、macie5　動く・履歴もなし、nn7帰って来ない、Sf動く
					if( bw.ns5 || bw.nsx ){
				//	self.location.replace( self.location.href+"#tc"+spd[1])
					}
				}
		} else {
			if( self.location.href.indexOf("term") >0 ) {
				stt[1] = ""
				sse[1] = ""
				sem[1] = ""
			} else {
				stt[1] = ""
				sse[1] = 1
				sem[1] = 1
			}
		}
		ctID = stt[1];
		pdNM = sse[1];
		pdID = sem[1];
	//	alert( ctID)
	//	alert(pdID)
	//	alert( pdNM)
/*
			alert(callfile)	 			
			alert(sep)	 			
			alert(sse)	 			
			//alert(spd)	 			
			alert(pdNM)	 			
			alert(sem)	 			
			alert(pdID)	 			*/

//		if() 	window.onload = FWOnLoad;

	function reDraw(){ location.reload();}
//	if (parent.location.href != window.location.href) parent.location.href = window.location.href;



wrtStyleTop = '<link rel="sty' + 'lesheet" type="text/css" href="';
wrtStyleBtm = '.css" media="screen">';
wrtScriptTop = '<scr' + 'ipt type="text/javascript" src="';
wrtScriptBtm = '.js" charset="UTF-8"></scr' + 'ipt>';

	function bgleft() {
		if( curw < 800 ){
		document.write("<sty"+ "le type=\"text/css\">\n", "body#txc { background-position:left; }",
			"\n</sty","le>");
		}
	}
//////////////////////////////////////////////////////////////////////////////
//	if(document.layers)
//	{ document.write("<sty", "le type=\"text/css\">\n", "h1.head{ margin-bottom:1px; line-height:0px; }",
//	"\n</sty","le>");
//////////////////////////////////////////////////////////////////////////////
	if ( mac && bw.ie ) { 
		scrStr = '<sty' + 'le type="text/css"><!--\n'
			scrStr += ' body { overflow-y:hidden; } '
			scrStr += '\n--></sty' + 'le>'
		document.write( scrStr )
	}
		Scrollinit = true;
		function changeState( dir ) {
		Scrollinit = dir;
		}
		function clsScllCtl() {
			if ( mac && bw.ie ) {
			document.body.overflow = 'visible';
			document.body.scroll = 'yes';
			}
		}
	

//////////////////////////////////////////////////////////////////////////////
/*
function checkBrowser() {
	this.ver	=	navigator.appVersion
	this.dom	=	document.getElementById ? 1:0
	this.ie	=	(	this.ver.indexOf( "MSIE" ) > -1 				) ? 1:0;
	this.ie5	=	(	this.ver.indexOf( "MSIE" ) > -1 && this.dom		) ? 1:0; 		//"MSIE 5"
	this.ie4	=	(	document.all && !this.dom 					) ? 1:0;
	this.ns5	=	(	this.dom && parseInt( this.ver ) >= 5 			) ? 1:0;
	this.ns4	=	(	document.layers && !this.dom 				)? 1:0;
	this.bw	=	(	this.ie5 || this.ie4 || this.ns4 || this.ns5			)
	return this
}
bw = new checkBrowser()
//alert( bw )
function chkInit() {

	this.chkW	=bw.ie ? document.body.clientWidth : window.innerWidth;
	this.chkH	=bw.ie ? document.body.clientHeight : window.innerHeight;
//	eval( this.chkW + this.chkH )
	return this
	alert( chkW )
}

//////////////////////////////////////////////////////////////////////chk = new chkInit()


	if ( navigator.appName == "Netscape" && parseInt( navigator.appVersion ) == 4 ) {
		chkW 	= window.innerWidth;
		chkH 	= window.innerHeight;
	window.onResize = resizeFix
	}

	window.onResize = alert(chk)

	function resizeFix() {
		if ( chkW != window.innerWidth || chkH != window.innerHeight )
		alert("Fix"); document.location.href = document.location.href
	}
 if(!window.saveInnerWidth) {
   window.onresize = resizeIt;
   window.saveInnerWidth = window.innerWidth;
   window.saveInnerHeight = window.innerHeight;
   alert(7)
 }
function resizeIt() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        window.history.go(0);
    }
}
	if(! window.loseWidth){
	//alert("window.loseWidth");
		window.onresize = check_size;
		window.loseWidth = window.innerWidth;
		window.loseHeight = window.innerHeight;
	}
	function check_size(){
		if(loseWidth < window.innerWidth || loseWidth > window.innerWidth || loseHeight > window.innerHeight || loseHeight < window.innerHeight){
		//	alert("check_size");
		location.reload();
		}
	}
*/

	wsp = 'letter-spacing:1px';
	wsp = 'letter-spacing:1px';
	indt = '-2530px';
	cspStr = ''		//for netscape 4x
	cspStr += 	'<sty' + 'le type="text/css"><!--\n'
		if( tid == "hm" ) {
			cspStr += '#hd { background: transparent url(base/hm_title'+cpver+'.gif) no-repeat; text-indent:'+indt+'; } 		'+
					' 		'
		}
			cspStr += '#txcbase h1 {text-indent:'+indt+'; } 		'
			cspStr += '#hdleft a,#hdleft a:link, #hdleft a:visited, #hdleft a:active, #hdleft a:hover { text-indent:'+indt+'; } 		'
			cspStr += '#hdleft a,#navi2 li a#links,#navi2 li a#faq { text-indent:'+indt+'; } 		'

		//	cspStr += '#navi2 li a { text-indent:'+indt+'; } 		'

			cspStr += '#navi2 li a#n_copy { text-indent:'+indt+'; } 		'
			cspStr += '#navi2 li a#n_priva { text-indent:'+indt+'; } 		'
			cspStr += '#navi2 li a#tchika { text-indent:'+indt+'; } 		'
			cspStr += '#navi2 li a#n_datalink { text-indent:'+indt+'; } 		'


if ( mac ) { //code : extra : win
	wsp = '';
	fsr 	= ( bw.ns5 ) ?				86 					: 78
////	lhtr 	= ( !bw.bwsfr ) ?			1.8 					: 1.7
////m9ie(1.8)   m9n7(1.85-1.9)   mXn7(1.9)   mXie,mXOP,m9ie(1.75)   
	lhtr 	= ( bw.ns5 ) ?	1.9 								: 1.75
	lhtn 	= ( !bw.bwsfr ) ?		1.7 					: 1.65
//	fsm 	= ( bw.bwsfr ) ?			68 	: ( bw.nsx ) ? 		80 	: ( bw.ns5 ) ?	78 		: 70
	fsm 	= ( bw.bwsfr ) ?			62 	: ( bw.nsx ) ? 		72 	: ( bw.ns5 ) ?	78 		: 65
	lhtm 	= ( bw.bwsfr ) ?		1.7 					: 1.6
	fss 	= ( !bw.ns5 ) ?				58 					: 66
////	lhts 	= ( !bw.ns5 ) ?				1.5 					: 1.5
	lhts 	= ( !bw.nsx ) ?				1.8 					: 2.5

	cspStr += 	'			.reguler			{	font-size: '+ fsr +'%;	line-height: '+ lhtr +'em;		' + wsp + '	}\n' +
		//	'			.narrow			{	font-size: '+ fsr +'%;	line-height: '+ lhtm +'em;		' + wsp + '	}\n' +
			'			.narrow			{	font-size: '+ fsr +'%;	line-height: '+ lhtn +'em;		' + wsp + '	}\n' +
			'			.sline			{	font-size: '+ fsr +'%;		}\n' +
			'			.semismall		{	font-size: '+ fsm +'%;	line-height: '+ lhtm +'em;	}\n' +
			'			.small			{	font-size: '+ fss +'%;	line-height: '+ lhts +'em; margin-top:5px;	}\n' +
			'			.mrsmall			{	font-size: '+ fss +'%;	line-height: '+ lhts +'em; margin-top:5px;	}\n' +
				/////////win=.mrsmall 		{	font-size: 8px;	line-height: 1.6em;	}
			'			.scaps			{	font-size: '+ fss +'%;	line-height: '+ lhts +'em;	}\n'

} else {
	cspStr += 	'			.narrow			{	' + wsp + '	}\n'
}

	cspStr += 	'--></sty' + 'le>'
	document.write( cspStr )


if ( mac ) { 
	excStr = 	'<sty' + 'le type="text/css"><!--\n'

		if( bw.ns9 ){
			excStr += '#hdleft a, #hdleft a:link, #hdleft a:visited, #hdleft a:active, #hdleft a:hover { 		'+
					'margin:0 0 0 15px; height:64px; }		'
			}
		if ( bw.ie ) { 
			excStr += '#MAIN p {  	text-align:left; text-justify:auto; } 		'+
					' 		'
			}
	excStr += 	'--></sty' + 'le>'
	document.write( excStr )
}


function TextChange(id, text){
	if(document.all){
		document.all(id).innerHTML = text;
	}else if(document.getElementById){
		document.getElementById(id).innerHTML = text;
	}
}

/*
msf,wnn,miex,msf
	.arwright_midb_img  {	margin:-3px 0px 0px 6px ;vertical-align:middle;	}
wie
	.arwright_midb_img  {	margin:-1px 0px 0px 6px ;vertical-align:middle;	}
mnnx
	.arwright_midb_img  {	margin:0px 0px 2px 6px ;vertical-align:middle;	}
*/

	if ( document.refpoint ) {
		if( ( self.location.href.indexOf('demo') >0 ) || ( self.location.href.indexOf('_t0') >0 ) ) {
			setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/tkt_demo.cgi?gif+ref+'   +yy+   '">                                '
			//alert(555)
		} else {

			if(  ( self.location.href.indexOf('/en') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/english.cgi?gif+ref+'   +yy+   '">                                '
			//	alert(refimg + rhost +'/cgi-bin/'   +chrSET+   '/english.cgi?gif+ref+'   +yy)
			}

			if( ( self.location.href.indexOf('rep10th') >0 ) || ( self.location.href.indexOf('/en') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/ronbun10th.cgi?gif+ref+'   +yy+   '">                                '
		//		setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/english.cgi?gif+ref+'   +yy+   '">                                '
			} 
			if( ( self.location.href.indexOf('privacy') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/privacy.cgi?gif+ref+'   +yy+   '">                                '
			}
			if( ( self.location.href.indexOf('elections') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/elections.cgi?gif+ref+'   +yy+   '">                                '
			}
			if( ( self.location.href.indexOf('tchika') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/tchika.cgi?gif+ref+'   +yy+   '">                                '
			//	alert(2)
			} 
			if( ( self.location.href.indexOf('links') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/links.cgi?gif+ref+'   +yy+   '">                                '
			//	alert(2)
			} 



			if( ( self.location.href.indexOf('_t0') >0 ) || ( self.location.href.indexOf('_t0') >0 ) ) {
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/tkt_demo_inside.cgi?gif+ref+'   +yy+   '">                                '
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/tkt_demo_guest.cgi?gif+ref+'   +yy+   '">                                '
				//alert("CHE6")
			} 

			if( self.location.href.indexOf('kt8238') >0 ) {
				//alert("yes")
				setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/staff.cgi?gif+ref+'   +yy+   '">                                '
			} else {

				if ( tid == "hm" ) {
					if( self.location.href.indexOf('_t0') >0 ) {
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/guest_dmo.cgi?gif+ref+'   +yy+   '">                                '
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/check_dmo.cgi?gif+ref+'   +yy+   '">                                '
					} else {
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/guest.cgi?gif+ref+'   +yy+   '">                                '
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/inside.cgi?gif+ref+'   +yy+   '">                                '
					}
				} else
				{
					if( self.location.href.indexOf('_t0') >0 ) {
					//	setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/' +tid+ '.cgi?gif+ref+'   +yy+   '">                                '
					//	setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/sm_' +tid+ '.cgi?gif+ref+'   +yy+   '">                                '
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/local_dmo.cgi?gif+ref+'   +yy+   '">                                '
					//	setftref += refimg + rhost +'/cgi-bin/sm_' +tid+ '.cgi?gif+ref+'   +yy+   '">                                '
					} else {
						setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/local.cgi?gif+ref+'   +yy+   '">                                '
					}
				}

				if( self.location.href.indexOf('rty') >0 ) {
					setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/whole_dmo.cgi?gif+ref+'   +yy+   '">                                '
					setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/inside_dmo.cgi?gif+ref+'   +yy+   '">                                '
				} else {
					setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/whole.cgi?gif+ref+'   +yy+   '">                                '
					setftref += refimg + rhost +'/cgi-bin/'   +chrSET+   '/check.cgi?gif+ref+'   +yy+   '">                                '
				}
			}

		}
	}
	function FindObj(n,done) {
	var p,i,x;
	if(! done) done = document;
	if((p = n.indexOf("?")) > 0 && parent.frames.length) {
		done = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if( !( x = done[n] ) && done.all ) x = done.all[n];
		for (i=0; !x && i < done.forms.length; i++) x = done.forms[i][n];
		for(i=0; !x && done.layers && i < done.layers.length;i++) x = FindObj(n,done.layers[i].document);
			if(!x && done.getElementById) x = done.getElementById(n);
			return x;
	}
	function SwpImg() {
	var i, j = 0,x,a = SwpImg.arguments;
		document.must_sr = new Array;
		for(i=0; i < (a.length - 2); i += 3)
		if ((x = FindObj(a[i])) != null){
			document.must_sr[j++] = x;
			if(!x.oSrc) x.oSrc = x.src; x.src = a[i+2];
		}
	}
	function SwpImgRstr() {
		var i,x,a = document.must_sr;
		for(i=0; a && i < a.length && (x = a[i]) && x.oSrc;i++) x.src = x.oSrc;
	}
///
	function MM_findObj(n, d) { //v4.01
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() { //v3.0
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	function MM_swapImgRestore() { //v3.0
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	function MM_preloadImages() { //v3.0
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
///
function chgtxt ( txID,tbg,tpx,twt,tdc ) {
	if(document.all) {
		document.all[txID].style.color			= tbg;
		document.all[txID].style.fontSize		= tpx;
		document.all[txID].style.fontWeight		= twt;
		document.all[txID].style.textDecoration	= tdc;
	} else if (document.getElementById) {
		document.getElementById(txID).style.color			= tbg;
		document.getElementById(txID).style.fontSize			= tpx;
		document.getElementById(txID).style.fontWeight		= twt;
		document.getElementById(txID).style.textDecoration		= tdc;
	}
}
function hvtxt ( txID,value ) {
	if(value=="black"){
	chgtxt(txID,'black','14px','bold','underline')
	} else {
	chgtxt(txID,'black','12px','normal','none')
	}
}
///
if ( Bnmode == true ) {
	Bnm = Math.floor( Math.random()*Pnm )
	cdt = "2003"
	ccr = "e"
			granImg = DP +"img/pic/hrpic" + cdt + "/hd_" + ccr + "_0"+Bnm+".jpg"
		if (self.location.href.indexOf("dialy")  != -1 ) {
			granImg = "img/main/dialy/bg_dialy_0"+Bnm+".jpg"
		} else if (self.location.href.indexOf("room")  != -1 ) {
			granImg = "img/main/room/bg_room_0"+Bnm+".jpg"
		} else if (self.location.href.indexOf("ask")  != -1 ) {
			granImg = "img/main/ask/bg_ask_0"+Bnm+".jpg"
		} else if (self.location.href.indexOf("voice")  != -1 ) {
			granImg = "img/main/voices/bg_voices_0"+Bnm+".jpg"
		}
	bgStr = '<sty'+'le type="text/css"><!--'
		bgStr += 'td.'+ picboxID +' { background:url('+ granImg +') no-repeat white ; }'
		bgStr += '--></sty'+'le>'
	document.write(bgStr)
}
/*
function preloadImg( imgName ) {
	if ( document.images ) ( new Image()).src = imgName;
}

function preloadimgApp( imgArray ) {
	for ( i=0; i < imgArray.length; i++) {
		if( classID == 'home' ) preloadImg( imgArray[i].split('**')[0] );
	}
}
*/


	function LinkSelect(form, sel)
	{
	        adrs = sel.options[sel.selectedIndex].value;
	        if (adrs != "-" ) location.href = adrs;
	}

// stop hiding  -->
