﻿chkKeyW="";
cntKeyW=0;

unit=r_style_unit;
if(r_style_unit>5) unit=5;
if(r_style_unit<1) unit=1;

if(r_style_blank=="on") {
var blk=" target='_blank'";
}else{
var blk="";
}

var KeySort = "(KEY)";


while(cntKeyW<unit){
rand = Math.floor( Math.random() * Title.length );
 rsLink=Title[rand].substring(1,6);
if(chkKeyW.indexOf("["+rand+"]")<0 && Title[rand].substring(0,1) !="×"){
 cntTitle=Title[rand].toUpperCase().indexOf(KeySort);
  if(Title[rand].substring(0,1) =="N"){
  Title[rand] = "<img src='http://www.r-style-fukuoka.com/new.gif' border='0'><br>" + Title[rand].substring(6,cntTitle);
  }else{
  Title[rand] = Title[rand].substring(6,cntTitle)
  }
 document.write("<table width='"+r_style_width+"' style='font-size:12px; border-top: 1px solid #CCCCCC; line-height: 1.0em;'><tr><td align='center' bgcolor='#FFFFFF'><br><a href='http://www.r-style-fukuoka.com/" + rsLink + ".html' " + blk + "><img src='http://www.r-style-fukuoka.com/" + rsLink + ".jpg' border='0' class='photo' width='90'></a></td></tr><tr><td align='center'><a href='http://www.r-style-fukuoka.com/" + rsLink + ".html' " + blk + "><B><font color='"+r_style_color+"'>" + Title[rand]+"</font></B></a><br>" + Title4[rand]  + "<br><font color='green'><B>" + Title3[rand] + "</B><br>" + Title5[rand]  + "</font></td></tr></table>");
 chkKeyW=chkKeyW+"["+rand+"]";
 cntKeyW++;
 }
}

document.write("<br><a href='http://www.r-style-fukuoka.com/' style='color:#990000;font-size:10px; text-decoration:none' onmouseover=this.style.textDecoration='underline' onmouseout=this.style.textDecoration='none' target='_blank'><B>by アールスタイル</B></a>");
