// ホスト名及びパスを取得
var str_hostname = location.hostname;
var str_pathname = location.pathname;





document.write('<script type="text/javascript" language="javascript">');

document.write('function siteJudge(link_num) {');

// 引数を数値で取ってこないとエラーになった為、ここでどのリンクから呼ばれたかを文字列に変換
// Analyticsで表示するページ名
document.write('switch(link_num) {');
document.write(' case 0 :');
document.write('  link_name = "トヨタホームの街づくり";');
document.write('  break;');
document.write(' case 1 :');
document.write('  link_name = "街づくりのコンセプト";');
document.write('  break;');
document.write(' case 2 :');
document.write('  link_name = "住空間づくりのコンセプト";');
document.write('  break;');
document.write(' case 3 :');
document.write('  link_name = "安心の技術とサービス";');
document.write('  break;');
document.write(' case 4 :');
document.write('  link_name = "トヨタホームの技術";');
document.write('  break;');
document.write(' case 5 :');
document.write('  link_name = "安心のサービス";');
document.write('  break;');
document.write(' case 6 :');
document.write('  link_name = "住まいを探す";');
document.write('  break;');
document.write(' case 7 :');
document.write('  link_name = "東京都";');
document.write('  break;');
document.write(' case 8 :');
document.write('  link_name = "神奈川県";');
document.write('  break;');
document.write(' case 9 :');
document.write('  link_name = "千葉県";');
document.write('  break;');
document.write(' case 10 :');
document.write('  link_name = "埼玉県";');
document.write('  break;');
document.write(' case 11 :');
document.write('  link_name = "茨城県";');
document.write('  break;');
document.write(' case 12 :');
document.write('  link_name = "特集1";');
document.write('  break;');
document.write(' case 13 :');
document.write('  link_name = "特集2";');
document.write('  break;');
document.write(' case 14 :');
document.write('  link_name = "トヨタホーム東京株式会社";');
document.write('  break;');
document.write(' default :');
document.write('  link_name = "none";');
document.write('  break;');
document.write('}');

//デバッグ用
//document.write('alert("location.hostname="+location.hostname);');
//document.write('alert("location.pathname="+location.pathname);');

// ホスト名及びパスを取得
document.write('var str_hostname = location.hostname;');
document.write('var str_pathname = location.pathname;');

// ドメイン名が「toyota-town.jp」である場合
document.write('if (str_hostname.match(/toyota-town.jp/)) {');

document.write('url_array = str_pathname.split("/");');
document.write('result_str = url_array[1];');
document.write('_gaq.push(["_trackPageview","/include/" + link_name + "/" + result_str]);');

//デバッグ用
//document.write('alert("/include/" + link_name + "/" + result_str);');

// 独自ドメインまたはテスト環境（IPアドレスそのまま）の場合
document.write('} else { ');

// テスト環境の場合
document.write('if (str_pathname.match(/toyota-tokusetsu-test/)) {');
document.write('url_array = str_pathname.split("/");');
document.write('result_str = url_array[2];');

//独自ドメインの場合
document.write('} else {');
document.write('_gaq.push(["_trackPageview","/include/" + link_name + "/" + str_hostname]);');

//デバッグ用
//document.write('alert("/include/" + str_hostname + "/" + link_name);');

document.write('} ');
document.write('}');

document.write('}');
document.write('</script>');


// フッター表示部分 ↓開始*******************************


document.write('<div class="include-footer clearfix">');
document.write('  <p class="include-footer-tit"><img src="http://www.toyota-town.jp/images/common/include-tit.gif" alt="" width="539" height="38" /></p>');
document.write('  <div class="include-footer-section clearfix">');


// ドメイン名が「toyota-town.jp」である場合
if (str_hostname.match(/toyota-town.jp/)) {


    document.write('    <div class="include-footer-box1">');
    document.write('      <p class="include-footer-box1-tit"><img src="http://www.toyota-town.jp/images/common/include-town-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box1-list"><a href="http://www.toyota-town.jp/others/town" target="_blank" onclick="siteJudge(0);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box1-body">');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/case/" target="_blank" onclick="siteJudge(1);">街づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">トヨタホームこだわりの街づくり、<br />設計についてご紹介します。</p>');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/kukan/" target="_blank" onclick="siteJudge(2);">住空間づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">家族の絆を深める空間家学という住まいづくりの新しい概念です。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box2">');
    document.write('      <p class="include-footer-box2-tit"><img src="http://www.toyota-town.jp/images/common/include-reassurance-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box2-list"><a href="http://www.toyota-town.jp/others/reassurance" target="_blank" onclick="siteJudge(3);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box2-body">');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/technology1/" target="_blank" onclick="siteJudge(4);">トヨタホームの技術</a></p>');
    document.write('        <p class="include-footer-box2-text">高い品質と性能をつくる<br />基本技術（工法）をご紹介します。</p>');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/service/" target="_blank" onclick="siteJudge(5);">安心のサービス</a></p>');
    document.write('        <p class="include-footer-box2-text">永く安心して暮らしていける様々な<br />サポートをお届けします。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box3">');
    document.write('      <p class="include-footer-box3-tit"><img src="http://www.toyota-town.jp/images/common/include-area-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box3-list"><a href="http://www.toyota-town.jp/exhibition/all" target="_blank" onclick="siteJudge(6);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <ul class="include-footer-box3-body">');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/1" target="_blank" onclick="siteJudge(7);">東京都の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/2" target="_blank" onclick="siteJudge(8);">神奈川県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/4" target="_blank" onclick="siteJudge(9);">千葉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/3" target="_blank" onclick="siteJudge(10);">埼玉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/5" target="_blank" onclick="siteJudge(11);">茨城県の分譲住宅を探す</a></li>');
    document.write('      </ul>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box4">');
    document.write('      <p class="include-footer-box4-tit"><img src="http://www.toyota-town.jp/images/common/include-special-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <div class="include-footer-box4-body">');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/others/interview1" target="_blank" onclick="siteJudge(12);"><img src="http://www.toyota-town.jp/images/common/include-bnr1.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/special/ecomirai" target="_blank" onclick="siteJudge(13);"><img src="http://www.toyota-town.jp/images/common/include-bnr-ecomirai.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('      </div>');
    document.write('    </div>');


// 独自ドメインまたはテスト環境（IPアドレスそのまま）の場合
} else {
    // テスト環境の場合
    if (str_pathname.match(/toyota-tokusetsu-test/)) {


    document.write('    <div class="include-footer-box1">');
    document.write('      <p class="include-footer-box1-tit"><img src="http://www.toyota-town.jp/images/common/include-town-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box1-list"><a href="http://www.toyota-town.jp/others/town" target="_blank" onclick="siteJudge(0);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box1-body">');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/case/" target="_blank" onclick="siteJudge(1);">街づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">トヨタホームこだわりの街づくり、<br />設計についてご紹介します。</p>');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/kukan/" target="_blank" onclick="siteJudge(2);">住空間づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">家族の絆を深める空間家学という<br />住まいづくりの新しい概念です。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box2">');
    document.write('      <p class="include-footer-box2-tit"><img src="http://www.toyota-town.jp/images/common/include-reassurance-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box2-list"><a href="http://www.toyota-town.jp/others/reassurance" target="_blank" onclick="siteJudge(3);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box2-body">');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/technology1/" target="_blank" onclick="siteJudge(4);">トヨタホームの技術</a></p>');
    document.write('        <p class="include-footer-box2-text">高い品質と性能をつくる<br />基本技術（工法）をご紹介します。</p>');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/service/" target="_blank" onclick="siteJudge(5);">安心のサービス</a></p>');
    document.write('        <p class="include-footer-box2-text">永く安心して暮らしていける様々な<br />サポートをお届けします。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box3">');
    document.write('      <p class="include-footer-box3-tit"><img src="http://www.toyota-town.jp/images/common/include-area-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box3-list"><a href="http://www.toyota-town.jp/exhibition/all" target="_blank" onclick="siteJudge(6);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <ul class="include-footer-box3-body">');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/1" target="_blank" onclick="siteJudge(7);">東京都の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/2" target="_blank" onclick="siteJudge(8);">神奈川県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/4" target="_blank" onclick="siteJudge(9);">千葉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/3" target="_blank" onclick="siteJudge(10);">埼玉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/5" target="_blank" onclick="siteJudge(11);">茨城県の分譲住宅を探す</a></li>');
    document.write('      </ul>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box4">');
    document.write('      <p class="include-footer-box4-tit"><img src="http://www.toyota-town.jp/images/common/include-special-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <div class="include-footer-box4-body">');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/others/interview1" target="_blank" onclick="siteJudge(12);"><img src="http://www.toyota-town.jp/images/common/include-bnr1.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/special/ecomirai" target="_blank" onclick="siteJudge(13);"><img src="http://www.toyota-town.jp/images/common/include-bnr-ecomirai.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('      </div>');
    document.write('    </div>');


    //独自ドメインの場合
    } else {


    document.write('    <div class="include-footer-box1">');
    document.write('      <p class="include-footer-box1-tit"><img src="http://www.toyota-town.jp/images/common/include-town-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box1-list"><a href="http://www.toyota-town.jp/others/town" target="_blank" onclick="siteJudge(0);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box1-body">');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/case/" target="_blank" onclick="siteJudge(1);">街づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">トヨタホームこだわりの街づくり、<br />設計についてご紹介します。</p>');
    document.write('        <p class="include-footer-box1-subtit"><a href="http://www.toyota-town.jp/others/kukan/" target="_blank" onclick="siteJudge(2);">住空間づくりのコンセプト</a></p>');
    document.write('        <p class="include-footer-box1-text">家族の絆を深める空間家学という<br />住まいづくりの新しい概念です。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box2">');
    document.write('      <p class="include-footer-box2-tit"><img src="http://www.toyota-town.jp/images/common/include-reassurance-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box2-list"><a href="http://www.toyota-town.jp/others/reassurance" target="_blank" onclick="siteJudge(3);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <div class="include-footer-box2-body">');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/technology1/" target="_blank" onclick="siteJudge(4);">トヨタホームの技術</a></p>');
    document.write('        <p class="include-footer-box2-text">高い品質と性能をつくる<br />基本技術（工法）をご紹介します。</p>');
    document.write('        <p class="include-footer-box2-subtit"><a href="http://www.toyota-town.jp/others/service/" target="_blank" onclick="siteJudge(5);">安心のサービス</a></p>');
    document.write('        <p class="include-footer-box2-text">永く安心して暮らしていける様々な<br />サポートをお届けします。</p>');
    document.write('      </div>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box3">');
    document.write('      <p class="include-footer-box3-tit"><img src="http://www.toyota-town.jp/images/common/include-area-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <p class="include-footer-box3-list"><a href="http://www.toyota-town.jp/exhibition/all" target="_blank" onclick="siteJudge(6);"><img src="http://www.toyota-town.jp/images/common/include-list.gif" alt="" width="50" height="18" /></a></p>');
    document.write('      <ul class="include-footer-box3-body">');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/1" target="_blank" onclick="siteJudge(7);">東京都の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/2" target="_blank" onclick="siteJudge(8);">神奈川県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/4" target="_blank" onclick="siteJudge(9);">千葉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/3" target="_blank" onclick="siteJudge(10);">埼玉県の分譲住宅を探す</a></li>');
    document.write('        <li><a href="http://www.toyota-town.jp/exhibition/area/5" target="_blank" onclick="siteJudge(11);">茨城県の分譲住宅を探す</a></li>');
    document.write('      </ul>');
    document.write('    </div>');


    document.write('    <div class="include-footer-box4">');
    document.write('      <p class="include-footer-box4-tit"><img src="http://www.toyota-town.jp/images/common/include-special-tit.jpg" alt="" width="224" height="34" /></p>');
    document.write('      <div class="include-footer-box4-body">');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/others/interview1" target="_blank" onclick="siteJudge(12);"><img src="http://www.toyota-town.jp/images/common/include-bnr1.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('        <p class="include-footer-box4-bnr"><a href="http://www.toyota-town.jp/special/ecomirai" target="_blank" onclick="siteJudge(13);"><img src="http://www.toyota-town.jp/images/common/include-bnr-ecomirai.jpg" alt="" width="193" height="71" /></a></p>');
    document.write('      </div>');
    document.write('    </div>');


    }
}


document.write('  </div>');
document.write('  <p class="include-footer-copyright">Copyright © <a href="http://www.toyota-town.jp/" target="_blank" onclick="siteJudge(14);">トヨタホーム東京株式会社</a>. Co., Ltd. All Rights Reserved.</p>');
document.write('</div><!--include-footer end-->');


// フッター表示部分 ↑終了*******************************

