//////////////////////////////////////////////////
//　URL　　 http://www.yumenara.com/
//　E-Mail  bac@yumenara.com
//////////////////////////////////////////////////

ta_cols = 32 ;
ta_rows = 9 ;
looooooop = 45 ;
sleeptime = 500 ;
scstart = Math.floor( (looooooop - ta_rows) / 2 ) ;

arr_char_s =  new Array('ｱ','ｲ','ｳ','ｴ','ｵ','ｶ','ｷ','ｸ','ｹ','ｺ','ｻ','ｼ','ｽ','ｾ',
                        'ｿ','ﾀ','ﾁ','ﾂ','ﾃ','ﾄ','ﾅ','ﾆ','ﾇ','ﾈ','ﾉ','ﾊ','ﾋ','ﾌ',
                        'ﾍ','ﾎ','ﾏ','ﾐ','ﾑ','ﾒ','ﾓ','ﾔ','ﾕ','ﾖ','ﾜ','ｦ','ﾝ','ﾞ','ﾟ',
                        '0','1','2','3','4','5','6','7','8','9','Y','U','M','E',
                        'N','A','R','A','y','u','m','e','n','a','r','a') ;
arr_char_s_length = arr_char_s.length ;

arr_str = new Array(ta_cols) ;
for(i = 0; i < ta_cols; i++){
  arr_str[i] = new Array(ta_rows) ;
}

start_no = new Array(ta_cols) ;
for(i = 0; i < ta_cols; i++){
  start_no[i] = Math.floor(Math.random() * looooooop) ;
}

str_long = new Array(ta_cols) ;
for(i = 0; i < ta_cols; i++){
  str_long[i] = Math.floor(Math.random() * ta_rows) ;
}

function loop_func(){
  
  text = "" ;
  for(i = 0; i < ta_rows; i++){
    for(k = 0; k < ta_cols; k++){
      if( (start_no[k] >= i + scstart) && (start_no[k] - str_long[k] <= i + scstart) ){
        text += ran_char() ;
      }else{
        text += " " ;
      }
    }
    if(i < ta_rows - 1) text += "\n" ;
  }
  for(i = 0; i < ta_cols; i++){
    start_no[i]++ ;
    if(start_no[i] >= looooooop){
      start_no[i] = 0 ;
      str_long[i] = Math.floor(Math.random() * ta_rows) ;
      start_no[i] = Math.floor(Math.random() * looooooop) ;
    }
  }
  document.fo.ta.value = text ;
  window.setTimeout("loop_func()", sleeptime) ;
}

function ran_char(){
  rdm = Math.floor(Math.random() * arr_char_s_length) ;
  var c = arr_char_s[rdm] ;
  return c ;
}

//　URL　　 http://www.yumenara.com/
//　E-Mail  bac@yumenara.com
