// バナー表示外部スクリプト

  theURL = new Array();
  theURL[0] = "http://www.homemate.co.jp'target='_blank";
  theURL[1] = "http://www.token.co.jp/about_token/information/sisha/index.html'target='_blank";
  theURL[2] = "http://www.token.co.jp/pr/event/token_cup/index.html'target='_blank";
  theURL[3] = "http://www.token.co.jp/travel/index.html'target='_blank";
  theURL[4] = "http://www.token.co.jp/leava/index.html'target='_blank";
  theURL[5] = "http://www.token.co.jp/house/multi/index.html'target='_blank";
  theURL[6] = "http://www.token.co.jp/house/homemate/index.html'target='_blank";
  ImageCount = 7;
  num = Math.floor(Math.random() * ImageCount);

function randomJump(banner_flg)
{
 if (banner_flg == true) {
    num1 = num
    document.write("<A HREF='"+theURL[num1]+"'>");
    document.write("<IMG SRC='http://www.token.co.jp/bn_image/"+num1+".gif'WIDTH='232' HEIGHT='32' BORDER='0'></A>");
  }
}

function randomJump2(banner_flg)
{
  if (banner_flg == true) {
    if (num < 1) {num2 = ++num}
    else{num2 = --num}

    document.write("<A HREF='"+theURL[num2]+"'>");
    document.write("<IMG SRC='http://www.token.co.jp/bn_image/"+num2+".gif'WIDTH='232' HEIGHT='32' BORDER='0'></A>");
  }
}

//HOMEアイコン表示＆リンク　スクリプト
function dispIcon(user_home)
{
  //親ファイルがindex.asp以外の時はリンクしない
  if (user_home == "" ) {
		location.href = "#";
  }
  else{
		location.href = user_home;  
  }
}
