<!--
Img_dir = doc_dir + 'img/';
Ban_dir = doc_dir + 'banner/';
MM_p = new Array(
	   Img_dir + 'bt_1_o.gif',
	   Img_dir + 'bt_2_o.gif',
	   Img_dir + 'bt_3_o.gif',
	   Img_dir + 'bt_4_o.gif',
	   Img_dir + 'bt_5_o.gif',
	   Img_dir + 'bt_6_o.gif',
	   Img_dir + 'bt_7_o.gif',
	   Img_dir + 'bt_8_o.gif');
menuPos = new Array();
menuPos[0] = 0;
menuPos[1] = 13;
menuPos[2] = 108;
menuPos[3] = 203;
menuPos[4] = 298;
menuPos[5] = 393;
menuPos[6] = 488;
menuPos[7] = 583;
menuPos[8] = 678;
menuStatus=new Array();
btnStatus=new Array();
for(i = 1; i < 9; i++){
	menuStatus[i] = 0;
	btnStatus[i] = 0;
}
function btnOver(a,b){
	btnStatus[a] = 1;
	tm = setTimeout("menuShow('" + a + "','" + b + "')",1);
}
function btnOut(a,b){
	btnStatus[a] = 0;
	tm = setTimeout("menuHide('" + a + "','" + b + "')",1);
}
function menuOver(a,b){
	menuStatus[a] = 1;
}
function menuOut(a,b){
	menuStatus[a] = 0;
	tm = setTimeout("menuHide('" + a + "','" + b + "')",1);
}

function menuShow(t,x){
	if(document.all){
		basePos = (document.body.clientWidth - 901) / 2;
		if(basePos < 0){ basePos = 0; }
		document.all["menu" + t].style.pixelLeft = basePos + menuPos[t] - 2;
		document.all["menu" + t].style.zIndex = 100;
		document.all["menu" + t].style.visibility = "visible";
	}else{
		if(document.getElementById){
			basePos = (window.innerWidth - 901) / 2;
			if(basePos < 0){ basePos = 0; }
			mpos= basePos + menuPos[t] - 2;
			document.getElementById("menu" + t).style.left = mpos;
			document.getElementById("menu" + t).style.zIndex = 100;
			document.getElementById("menu" + t).style.visibility = "visible";
		}
		if(document.layers){
			basePos = (window.innerWidth - 901) / 2;
			if(basePos < 0){ basePos = 0; }
			document.layers["menu" + t].pageX = basePos + menuPos[t] - 2;
			document.layers["menu" + t].zIndex = 100;
			document.layers["menu" + t].visibility = "visible";
		}
	}
	document.images["bt" + t].src = Img_dir + 'bt_' + t + '_' + x + '.gif';
}


function menuHide(t,x){
	if((menuStatus[t] == 0) && (btnStatus[t] == 0)){
		if(document.all){
			document.all["menu" + t].style.visibility = "hidden";
		}else{
			if(document.getElementById){
				document.getElementById("menu" + t).style.visibility = "hidden";
			}
			if(document.layers){
				document.layers["menu" + t].visibility = "hidden";
				document.layers["menu" + t].zIndex = t;
			}
		}
		document.images["bt" + t].src = Img_dir + 'bt_' + t + '_' + x + '.gif';
	}
}
function rBt(idx,mdx){
	doc = 'bt_' + idx;
	doc_img = Img_dir + doc + '_' + mdx + '.gif';
	document.images[doc].src = doc_img;
}
function rBt2(idx,mdx){
	doc = 'bt_' + idx;
	doc_img = '../img/' + doc + '_' + mdx + '.gif';
	document.images[doc].src = doc_img;
}

function rBt2_com(idx,mdx){
	doc = 'bt_' + idx;
	if(doc_dir == '../'){
	  doc_img = './img/' + doc + '_' + mdx + '.gif';
	}
	if(doc_dir == '../../'){
	  doc_img = '../img/' + doc + '_' + mdx + '.gif';
	}
	document.images[doc].src = doc_img;
}

function rBt3(idx,mdx){
	doc = 'bt_' + idx;
	doc_img = './img/' + doc + '_' + mdx + '.gif';
	if(document.all){
		document.all[doc].style.backgroundImage = 'url(' + doc_img + ')';
	}else{
		if(document.getElementById){
			document.getElementById(doc).style.backgroundImage = 'url(' + doc_img + ')';
		}
		if(document.layers){
			document.layers[doc].style.backgroundImage = 'url(' + doc_img + ')';
		}
	}
}
function rBt_R(idx,zdx,mdx){
	doc = 'bt_' + idx;
	docs = doc + zdx;
	doc_img = './img/' + doc + '_' + mdx + '.gif';
	document.images[docs].src = doc_img;
}
function rFt(idx,mdx,qdx){
	doc_id = 'mn_' + idx + '_' + mdx;
	mk_id = 'mk_' + idx + '_' + mdx;
	if(qdx == "o"){
		ftC = '#ffffff';
		bgC = '#ee0000';
		mkC = '#ffffff';
	}else{
		ftC = '#773300';
		bgC = '#FFF6EE';
		if(mdx == "01"){
			mkC = '#ff6600';
		}else{
			if(qdx == "nn"){ mkC = '#eebb88'; }else{ mkC = '#cc9966'; }
		}
	}
	if(document.all){
		document.all[mk_id].style.color = mkC;
		document.all[doc_id].style.color = ftC;
		document.all[doc_id].style.backgroundColor = bgC;
	}else{
		if(document.getElementById){
			document.getElementById(mk_id).style.color = mkC;
			document.getElementById(doc_id).style.color = ftC;
			document.getElementById(doc_id).style.backgroundColor = bgC;
		}
		if(document.layers){
			document.layers[mk_id].color = mkC;
			document.layers[doc_id].color = ftC;
			document.layers[doc_id].backgroundColor = bgC;
		}
	}
}
function rFt_R(idx,mdx,vdx){
	doc = 'ft_' + idx;
	if(document.all){
		document.all[doc].style.color = mdx;
		document.all[doc].style.backgroundColor = vdx;
	}else{
		if(document.getElementById){
			document.getElementById(doc).style.color = mdx;
			document.getElementById(doc).style.backgroundColor = vdx;
		}
		if(document.layers){
			document.layers[doc].color = mdx;
			document.layers[doc].backgroundColor = vdx;
		}
	}
}

function Ban_A_view(){
  
  ImageCount=Ban_A[1][4]+Ban_A[2][4];
  
  if(ImageCount>0){
    if(ImageCount == 2){
      num = Math.floor(Math.random() * ImageCount)+1;
    }
    else{
      if(Ban_A[1][4] == 1){
        num=1;
      }
      else{
        num=2;
      }
    }
    Ban_img = Ban_dir + Ban_A[num][0];
    Banner = '<A href="' + Ban_A[num][2] + '" target="' + Ban_A[num][3] + '"><img src="' + Ban_img + '" width="234" height="60" border="0" alt="' + Ban_A[num][1] + '"></A>';
  }
  else{
  	Banner='';
  }
	document.write(Banner);
	
}

function Ban_B_view(xid){
  if(Ban_B[xid][4] == 1){
	Ban_img = Ban_dir + Ban_B[xid][0];
	Banner = '<A href="' + Ban_B[xid][2] + '" target="' + Ban_B[xid][3] + '"><img src="' + Ban_img + '" width="120" height="60" border="0" alt="' + Ban_B[xid][1] + '"></A><br>';
  }
  else{
    Banner='';
  }

  document.write(Banner);

}

function Ban_C_view(xid){
  if(Ban_C[xid][4] == 1){
	Ban_img = Ban_dir + Ban_C[xid][0];
	Banner = '<A href="' + Ban_C[xid][2] + '" target="' + Ban_C[xid][3] + '"><img src="' + Ban_img + '" width="120" height="60" border="0" alt="' + Ban_C[xid][1] + '"><br>';
  }
  else{
    Banner='';
  }

  document.write(Banner);
}

function Ban_D_view(xid){
  if(Ban_D[xid][4] == 1){
	Ban_img = Ban_dir + Ban_D[xid][0];
	Banner = '<A href="' + Ban_D[xid][2] + '" target="' + Ban_D[xid][3] + '"><img src="' + Ban_img + '" width="130" height="32" border="0" alt="' + Ban_D[xid][1] + '"></A>';
  }
  else{
    Banner='';
  }

  document.write(Banner);
}

function link_up(v,w){
  pUrl = window.location.href;
  
  if(pUrl.substr(0,5) == 'https'){
    if(Links[v][w].substr(0,4) != 'http'){
      sPos = doc_dir.length;
      txtLen = Links[v][w].length - sPos;
      LinkURL = 'http://www.rsk.co.jp/' + Links[v][w].substr(sPos,txtLen);
    }
    else{
      LinkURL = Links[v][w];
    }
  }
  else{
    LinkURL = Links[v][w];
  }
   
  
   if(TgtWin[v][w] == ''){
	window.open(LinkURL,'_self');
   }
   else{
     window.open(LinkURL,TgtWin[v][w]);
   }
   
   
//   if(TgtWin[v][w] == ''){
//	window.open(Links[v][w],'_self');
//   }
//   else{
//     window.open(Links[v][w],TgtWin[v][w]);
//   }
   
}





function link_up2(v,w,target){
	window.open(Links[v][w],'target');
}

function ftOv(idx,mdx){
	doc_id = 'ft_' + idx
	if(mdx == "o"){ ftC = '#009966'; }else{ ftC = '#884400'; }
	if(document.all){
		document.all[doc_id].style.color = ftC;
	}else{
		if(document.getElementById){
			document.getElementById(doc_id).style.color = ftC;
		}
		if(document.layers){
			document.layers[doc_id].color = ftC;
		}
	}
}
function MM_preloadImages(idx) { //v3.0
	j = MM_p.length;
	if(idx){
		h = idx.length;
		x = 0;
		for(i = j; i < h; i++){
			MM_p[i] = idx[x];
			x++;
		}
	}
	if(document.images){
		for(i = 0; i < j; i++){
			if(MM_p[i].indexOf("#") != 0){
				MM_p[i] = new Image();
			}
		}
	}
}
-->
