<!--
/*=================	以下件数表示関連のセッティング	=================*/
//TRESULT	順に、最後がHOME及び他
TRESULT_URI = new Array('hokkaido' , 'tohoku' , 'kanto' , 'koushinetu' , 'tokai' , 'hokuriku' , 'kinki' , 'chugoku' , 'shikoku' , 'kyushu' , 'okinawa');
TRESULT_SUBJECT = new Array("北海道" , "東北" , "関東" , "甲信越" , "東海" , "北陸" , "近畿" , "中国" , "四国" , "九州" , "沖縄");
function TRESULT(){
	basesrc = TRESULT_URI.length
	for(i=0;i<(TRESULT_URI.length);i++){if(document.URL.indexOf( TRESULT_URI[i] , 0 ) > 0 ){ basesrc = [i] }}
	if( basesrc != TRESULT_URI.length ){TV = TRESULT_V[basesrc]}
	else{ TV = TRESULT_V[TRESULT_V.length -1] }
	document.write('登録数：'+TV+'件');
}
function TRESULT_DB(){
	for(i=0;i<(TRESULT_URI.length);i++){document.write(TRESULT_SUBJECT[i]+'&nbsp;&nbsp;登録数：'+TRESULT_V[i]+'件<BR>'); }
	document.write('総合'+'&nbsp;&nbsp;登録数：'+TRESULT_V[TRESULT_V.length-1]+'件<BR>');
}
function TRESULT_AB(){
	TABTR = new Array('<TR>','</TR>')
	TABTD1 = new Array('<TD BGCOLOR="', '" WIDTH="210" HEIGHT="20"><FONT SIZE="2" CLASS="px12" COLOR="','">&nbsp;<STRONG>', '</STRONG></FONT></TD>','')
	TABTD2 = new Array('<TD><FONT SIZE="2" CLASS="px12">&nbsp;・','店</FONT></TD>')
	C1 = new Array("#FFECE0","#DE006B")
	C2 = new Array("#FF6600","#FFFFFF")
	document.write('<TABLE BGCOLOR="#FFFCED" BORDER="0" CELLSPACING="6" CELLPADDING="0" WIDTH="436" HEIGHT="100">')
	for(i=0;i<(TRESULT_URI.length);i++){
		if(i % 2 == 0){
			document.write(TABTR[0]+TABTD1[0]+C1[0]+TABTD1[1]+C2[0]+TABTD1[2]+TRESULT_SUBJECT[i]+TABTD1[3])
			if( i != TRESULT_URI.length -1 ){document.write(TABTD1[0]+C1[0]+TABTD1[1]+C2[0]+TABTD1[2]+TRESULT_SUBJECT[i+1]+TABTD1[3])}
			else{document.write(TABTD1[0]+C1[1]+TABTD1[1]+C2[1]+TABTD1[2]+'総合'+TABTD1[3])}
			document.write(TABTR[1]+TABTR[0]+TABTD2[0]+TRESULT_V[i]+TABTD2[1]+TABTD2[0]+TRESULT_V[i+1]+TABTD2[1]+TABTR[1])
		}
		else{}
	}
	document.write('</TABLE>')
}
/*=================	以下バナー関連のセッティング	=================*/
/*	最後のみ,は付けない（重要）ALT,PRは必ずセットで書くこと ALTの数がランダムの基準になる。	*/
BN_A = new Array(
	'/src/ad/20040601donki.html'
);
BN_ALT = new Array(
	'&nbsp;ドンキ王国'
);
BN_PR = new Array( 
	'&nbsp;ドンキ王国'
);
S = Math.floor(Math.random() * BN_ALT.length);
function LRDBN(){	//呼び出すには、<SCRIPT LANGUAGE="JAVASCRIPT">LRDBN()</SCRIPT>
document.write('<A HREF="'+BN_A[S]+'" TARGET="_blank"><IMG SRC="/src/img/banner/'+S+'.gif" ALT="'+BN_ALT[S]+'" TITLE="'+BN_ALT[S]+'" BORDER="0" WIDTH="166" HEIGHT="58"></A>')
}
function LRDPR(){	//呼び出すには、<SCRIPT LANGUAGE="JAVASCRIPT">LRDPR()</SCRIPT>
document.write('<FONT SIZE="2" CLASS="px10"><font COLOR="#DE006B">[PR]</font><A HREF="'+BN_A[S]+'" TARGET="_blank" CLASS="contents">'+BN_PR[S]+'</a></FONT>')
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
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 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_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];}
}

/*-再読込FOCUS処理-*/
focus();
//-->
function PARENT_HREF(URL){
window.opener.location.href=URL
window.opener.focus();
}