function setCookie(cookieID , data , day){




  // クッキーをセットします

  // クッキーIDを指定して保存します

  // 第一引数：クッキーID

  // 第二引数：保存するデータ

  // 第三引数：クッキーの有効期限

  //           省略するとブラウザが終了するまで

  // 戻り値

  // true / false




  // クッキーIDが無ければ、リターンして終了

  if (cookieID == null)

    return false;

  // 有効期限の指定がなければ、ブラウザを終了させるまで

  if (day == '' || day == null)

    document.cookie = cookieID + "=" + escape(data) + ";";

  else{

    //day = evel(day); エラーになる・・・

    theDay = new Date();

    // theDay の時間を進めます

    theDay.setTime(theDay.getTime() + (day * 1000 * 60 * 60 * 24));

    // クッキーに保存します

    document.cookie = cookieID + "=" + escape(data) + ";expires="

    + theDay.toGMTString();

  }

  return true;

}


function getCookie(key){



  // クッキーデータを取得します

  // データを識別するためのクッキーIDが必要です

  // 取得したデータは連想配列で返されます

  // 第一引数：クッキーID

  // 戻り値

  // 取得したデータ（連想配列） / null



  // クッキーが無ければ null を返す



 if (document.cookie.length < 1)

    return null;



 var cookieArr = document.cookie.split(" ");

  var max       = cookieArr.length;

  // 全てのクッキーをチェック

  var oneCookie;

  for(var i = 0; i < max; i++){

    // 目的のクッキーIDをもつデータを探す



    if (key == cookieArr[i].substr(0 , key.length)){

      // 同じだったら

      var temp = cookieArr[i].split("=");

      // エスケープ文字を元に

      temp[1]  = unescape(temp[1]);

      // 末尾に「;」が付いてるモノは削除

      if ((temp[1].length -1) == temp[1].lastIndexOf(";"))

        temp[1] = temp[1].slice(0 , temp[1].length - 1);

      // 各データを分割

      var cookie = temp[1].split("&");

     var cMax = cookie.length;

     var arr = new Array();

     var tmp  = new Array();

     for(var j = 0; j < cMax; j++){

        tmp = cookie[j].split("=");

        arr[tmp[0]] = tmp[1];

     }

    return arr;

    }

  }

  return null;

}


function classChange(){

var tactics2 = getCookie("master2");
if(tactics2 != null){
document.getElementById("tactics_2").className = "tactics_box odd";
} else {
}

var tactics3 = getCookie("master3");
if(tactics3 != null){
document.getElementById("tactics_3").className = "tactics_box odd";
} else {
}

var tactics12 = getCookie("master12");
if(tactics12 != null){
document.getElementById("tactics_12").className = "tactics_box odd";
} else {
}

var tactics21 = getCookie("master21");
if(tactics21 != null){
document.getElementById("tactics_21").className = "tactics_box odd";
} else {
}

var tactics13 = getCookie("master13");
if(tactics13 != null){
document.getElementById("tactics_13").className = "tactics_box odd";
} else {
}

var tactics14 = getCookie("master14");
if(tactics14 != null){
document.getElementById("tactics_14").className = "tactics_box odd";
} else {
}

var tactics19 = getCookie("master19");
if(tactics19 != null){
document.getElementById("tactics_19").className = "tactics_box odd";
} else {
}

var tactics15 = getCookie("master15");
if(tactics15 != null){
document.getElementById("tactics_15").className = "tactics_box odd";
} else {
}

var tactics16 = getCookie("master16");
if(tactics16 != null){
document.getElementById("tactics_16").className = "tactics_box odd";
} else {
}

var tactics17 = getCookie("master17");
if(tactics17 != null){
document.getElementById("tactics_17").className = "tactics_box odd";
} else {
}

var tactics28 = getCookie("master28");
if(tactics28 != null){
document.getElementById("tactics_28").className = "tactics_box odd";
} else {
}

var tactics18 = getCookie("master18");
if(tactics18 != null){
document.getElementById("tactics_18").className = "tactics_box odd";
} else {
}

var tactics30 = getCookie("master30");
if(tactics30 != null){
document.getElementById("tactics_30").className = "tactics_box odd";
} else {
}

var tactics26 = getCookie("master26");
if(tactics26 != null){
document.getElementById("tactics_26").className = "tactics_box odd";
} else {
}

var tactics37 = getCookie("master37");
if(tactics37 != null){
document.getElementById("tactics_37").className = "tactics_box odd";
} else {
}

}

function subTxtChange(){

var tactics2 = getCookie("master2");
if(tactics2 != null){
document.getElementById("sub_tactics_2").innerHTML= "<img src=\"../img/tactics/first.gif\" height=\"23\" alt=\"其の一\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon01\" />";
} else {
}

var tactics3 = getCookie("master3");
if(tactics3 != null){
document.getElementById("sub_tactics_3").innerHTML= "<img src=\"../img/tactics/second.gif\" height=\"23\" alt=\"其の二\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon02\" />";
} else {
}

var tactics12 = getCookie("master12");
if(tactics12 != null){
document.getElementById("sub_tactics_12").innerHTML= "<img src=\"../img/tactics/third.gif\" height=\"23\" alt=\"其の三\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon03\" />";
} else {
}

var tactics21 = getCookie("master21");
if(tactics21 != null){
document.getElementById("sub_tactics_21").innerHTML= "<img src=\"../img/tactics/fourth.gif\" height=\"23\" alt=\"其の四\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon04\" />";
} else {
}

var tactics13 = getCookie("master13");
if(tactics13 != null){
document.getElementById("sub_tactics_13").innerHTML= "<img src=\"../img/tactics/fifth.gif\" height=\"23\" alt=\"其の五\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon05\" />";
} else {
}

var tactics14 = getCookie("master14");
if(tactics14 != null){
document.getElementById("sub_tactics_14").innerHTML= "<img src=\"../img/tactics/sixth.gif\" height=\"23\" alt=\"其の六\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon06\" />";
} else {
}

var tactics19 = getCookie("master19");
if(tactics19 != null){
document.getElementById("sub_tactics_19").innerHTML= "<img src=\"../img/tactics/seventh.gif\" height=\"23\" alt=\"其の七\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon07\" />";
} else {
}

var tactics15 = getCookie("master15");
if(tactics15 != null){
document.getElementById("sub_tactics_15").innerHTML= "<img src=\"../img/tactics/eighth.gif\" height=\"23\" alt=\"其の八\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon08\" />";
} else {
}

var tactics16 = getCookie("master16");
if(tactics16 != null){
document.getElementById("sub_tactics_16").innerHTML= "<img src=\"../img/tactics/ninth.gif\" height=\"23\" alt=\"其の九\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon09\" />";
} else {
}

var tactics17 = getCookie("master17");
if(tactics17 != null){
document.getElementById("sub_tactics_17").innerHTML= "<img src=\"../img/tactics/tenth.gif\" height=\"23\" alt=\"其の十\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon10\" />";
} else {
}

var tactics28 = getCookie("master28");
if(tactics28 != null){
document.getElementById("sub_tactics_28").innerHTML= "<img src=\"../img/tactics/bangai.gif\" height=\"23\" alt=\"番外\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon28\" />";
} else {
}

var tactics18 = getCookie("master18");
if(tactics18 != null){
document.getElementById("sub_tactics_18").innerHTML= "<img src=\"../img/tactics/bangai.gif\" height=\"23\" alt=\"番外\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon29\" />";
} else {
}

var tactics30 = getCookie("master30");
if(tactics30 != null){
document.getElementById("sub_tactics_30").innerHTML= "<img src=\"../img/tactics/bangai.gif\" height=\"23\" alt=\"番外\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon30\" />";
} else {
}

var tactics26 = getCookie("master26");
if(tactics26 != null){
document.getElementById("sub_tactics_26").innerHTML= "<img src=\"../img/tactics/bangai.gif\" height=\"23\" alt=\"番外\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon31\" />";
} else {
}

var tactics37 = getCookie("master37");
if(tactics37 != null){
document.getElementById("sub_tactics_37").innerHTML= "<img src=\"../img/tactics/bangai.gif\" height=\"23\" alt=\"番外\" /> <img src=\"../img/tactics/master_mini.gif\" width=\"32\" height=\"32\" alt=\"秘伝習得\" class=\"masterIcon14\" />";
} else {
}

}


function txtChange2(){
var finish2 = getCookie("master2");
if(finish2 != null){
document.getElementById("finish_2").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange3(){
var finish3 = getCookie("master3");
if(finish3 != null){
document.getElementById("finish_3").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange12(){
var finish12 = getCookie("master12");
if(finish12 != null){
document.getElementById("finish_12").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange21(){
var finish21 = getCookie("master21");
if(finish21 != null){
document.getElementById("finish_21").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange13(){
var finish13 = getCookie("master13");
if(finish13 != null){
document.getElementById("finish_13").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange14(){
var finish14 = getCookie("master14");
if(finish14 != null){
document.getElementById("finish_14").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange19(){
var finish19 = getCookie("master19");
if(finish19 != null){
document.getElementById("finish_19").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange15(){
var finish15 = getCookie("master15");
if(finish15 != null){
document.getElementById("finish_15").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange16(){
var finish16 = getCookie("master16");
if(finish16 != null){
document.getElementById("finish_16").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange17(){
var finish17 = getCookie("master17");
if(finish17 != null){
document.getElementById("finish_17").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange28(){
var finish28 = getCookie("master28");
if(finish28 != null){
document.getElementById("finish_28").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange18(){
var finish18 = getCookie("master18");
if(finish18 != null){
document.getElementById("finish_18").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange30(){
var finish30 = getCookie("master30");
if(finish30 != null){
document.getElementById("finish_30").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange26(){
var finish26 = getCookie("master26");
if(finish26 != null){
document.getElementById("finish_26").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}

function txtChange37(){
var finish37 = getCookie("master37");
if(finish37 != null){
document.getElementById("finish_37").innerHTML= "その調子でどんどん秘伝を習得して行こう！";
} else {
}
}



function txtComplete2(){
var finish2 = getCookie("master2");
if(finish2 != null){
document.getElementById("finish_2").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete3(){
var finish3 = getCookie("master3");
if(finish3 != null){
document.getElementById("finish_3").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete12(){
var finish12 = getCookie("master12");
if(finish12 != null){
document.getElementById("finish_12").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete21(){
var finish21 = getCookie("master21");
if(finish21 != null){
document.getElementById("finish_21").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete13(){
var finish13 = getCookie("master13");
if(finish13 != null){
document.getElementById("finish_13").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete14(){
var finish14 = getCookie("master14");
if(finish14 != null){
document.getElementById("finish_14").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete19(){
var finish19 = getCookie("master19");
if(finish19 != null){
document.getElementById("finish_19").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete15(){
var finish15 = getCookie("master15");
if(finish15 != null){
document.getElementById("finish_15").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete16(){
var finish16 = getCookie("master16");
if(finish16 != null){
document.getElementById("finish_16").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete17(){
var finish17 = getCookie("master17");
if(finish17 != null){
document.getElementById("finish_17").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete28(){
var finish28 = getCookie("master28");
if(finish28 != null){
document.getElementById("finish_28").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete18(){
var finish18 = getCookie("master18");
if(finish18 != null){
document.getElementById("finish_18").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete30(){
var finish30 = getCookie("master30");
if(finish30 != null){
document.getElementById("finish_30").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete26(){
var finish26 = getCookie("master26");
if(finish26 != null){
document.getElementById("finish_26").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

function txtComplete37(){
var finish37 = getCookie("master37");
if(finish37 != null){
document.getElementById("finish_37").innerHTML= "この秘伝は習得済みです。";
} else {

}
}

