/* 2009/04/03 */

/*---------------------------------------------------------------------------------------------------- */
/*
/* Copyright (C) Tatusya Kobayashi 2006-2009 All Rights Reserved.
/*
/*---------------------------------------------------------------------------------------------------- */


//#################################################################################################### Mac版FireFox2向けにフォントサイズを調整する
function initializeForAll(e) {
  if (navigator.userAgent.match(/FireFox\/2/i) && navigator.userAgent.match(/Macintosh/i)) { /* Mac版FireFox2向け */
    document.getElementsByTagName("body")[0].style.fontSize = "71.5%";
  }
}
//#################################################################################################### Windows版Safari向けに、記事概要テキストがはみ出るのを修正する
function initializeForIndexInWindowsSafari(e) {
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/Safari/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Safari向け */
    var stylesheet = document.styleSheets.item(1);
    if (stylesheet.cssRules) {
      stylesheet.cssRules.item(0).style.setProperty("width", "265px", "");
    } else if (stylesheet.rules) {
      stylesheet.rules.item(0).style.setAttribute("width", "265px", 1);
    }
  }
}
//#################################################################################################### Windows版Safari向けに、記事概要テキストがはみ出るのを修正する
function initializeForCompleteHomeIndexInWindowsSafari(e) {
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/Safari/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Safari向け */
    var stylesheet = document.styleSheets.item(1);
    if (stylesheet.cssRules) {
      stylesheet.cssRules.item(1).style.setProperty("width", "220px", "");
    } else if (stylesheet.rules) {
      stylesheet.rules.item(1).style.setAttribute("width", "220px", 1);
    }
  }
}
//#################################################################################################### 田中建設　お問い合わせ
function initializeForInquireInConstruction(e) {
  var main_inner_construction_inquire = document.getElementById("main_inner_construction_inquire");
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/FireFox\/3/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox3向け */
    main_inner_construction_inquire.style.width = "59em";
  } else if (navigator_userAgent.match(/FireFox\/2/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox2向け */
    main_inner_construction_inquire.style.width = "60em";
  } else if (navigator_userAgent.match(/Chrome/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Chrome向け（Safariの判定にも反応してしまうため、Safariよりも前で判定すること） */
    main_inner_construction_inquire.style.width = "54.5em";
  } else if (navigator_userAgent.match(/Safari/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Safari向け */
    main_inner_construction_inquire.style.width = "54.5em";
  } else if (navigator_userAgent.match(/Opera/i) && navigator_userAgent.match(/Macintosh/i)) { /* Macintosh版Opera向け */
    main_inner_construction_inquire.style.width = "60em";
  }
}
//#################################################################################################### コンプリートホーム　お問い合わせ
function initializeForInquireInCompleteHome(e) {
  var main_inner_construction_inquire = document.getElementById("main_inner_construction_inquire");
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/FireFox\/3/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox3向け */
    main_inner_construction_inquire.style.width = "59em";
  } else if (navigator_userAgent.match(/FireFox\/2/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox2向け */
    main_inner_construction_inquire.style.width = "60em";
  } else if (navigator_userAgent.match(/Chrome/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Chrome向け（Safariの判定にも反応してしまうため、Safariよりも前で判定すること） */
    main_inner_construction_inquire.style.width = "54.5em";
  } else if (navigator_userAgent.match(/Safari/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Safari向け */
    main_inner_construction_inquire.style.width = "54.5em";
  } else if (navigator_userAgent.match(/Opera/i) && navigator_userAgent.match(/Macintosh/i)) { /* Macintosh版Opera向け */
    main_inner_construction_inquire.style.width = "60em";
  }
}
//#################################################################################################### コンプリートホーム　資料請求
function initializeForDataRequestInCompleteHome(e) {
  var main_inner_construction_inquire_data_request = document.getElementById("main_inner_construction_inquire_data_request");
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/FireFox\/3/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox3向け */
    main_inner_construction_inquire_data_request.style.width = "58em";
  } else if (navigator_userAgent.match(/FireFox\/2/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox2向け */
    main_inner_construction_inquire_data_request.style.width = "59em";
  } else if (navigator_userAgent.match(/Chrome/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Chrome向け（Safariの判定にも反応してしまうため、Safariよりも前で判定すること） */
    main_inner_construction_inquire_data_request.style.width = "52em";
  } else if (navigator_userAgent.match(/Safari/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Safari向け */
    main_inner_construction_inquire_data_request.style.width = "52em";
  } else if (navigator_userAgent.match(/Opera/i) && navigator_userAgent.match(/Macintosh/i)) { /* Macintosh版Opera向け */
    main_inner_construction_inquire_data_request.style.width = "60em";
  }
}
//#################################################################################################### 田中建設　完成工事紹介　一覧
function initializeForConstructionExampleList(e) {
  var navigator_userAgent = navigator.userAgent;
  if (navigator_userAgent.match(/FireFox/i) && navigator_userAgent.match(/Macintosh/i)) { /* Mac版FireFox向け */
    var main_inner_construction_example_list_1_public = document.getElementById("main_inner_construction_example_list_1_public");
    var main_inner_construction_example_list_2_medical = document.getElementById("main_inner_construction_example_list_2_medical");
    var main_inner_construction_example_list_3_factory = document.getElementById("main_inner_construction_example_list_3_factory");
    var main_inner_construction_example_list_4_house = document.getElementById("main_inner_construction_example_list_4_house");
    var main_inner_construction_example_list_5_engineering = document.getElementById("main_inner_construction_example_list_5_engineering");
    main_inner_construction_example_list_1_public.style.fontWeight = "normal";
    main_inner_construction_example_list_2_medical.style.fontWeight = "normal";
    main_inner_construction_example_list_3_factory.style.fontWeight = "normal";
    main_inner_construction_example_list_4_house.style.fontWeight = "normal";
    main_inner_construction_example_list_5_engineering.style.fontWeight = "normal";
  } else if (navigator_userAgent.match(/Chrome/i) && navigator_userAgent.match(/Windows/i)) { /* Windows版Chrome向け（Safariの判定にも反応してしまうため、Safariよりも前で判定すること） */
    var main_inner_construction_example_list_1_public = document.getElementById("main_inner_construction_example_list_1_public");
    var main_inner_construction_example_list_2_medical = document.getElementById("main_inner_construction_example_list_2_medical");
    var main_inner_construction_example_list_3_factory = document.getElementById("main_inner_construction_example_list_3_factory");
    var main_inner_construction_example_list_4_house = document.getElementById("main_inner_construction_example_list_4_house");
    var main_inner_construction_example_list_5_engineering = document.getElementById("main_inner_construction_example_list_5_engineering");
    main_inner_construction_example_list_1_public.style.fontWeight = "bold";
    main_inner_construction_example_list_2_medical.style.fontWeight = "bold";
    main_inner_construction_example_list_3_factory.style.fontWeight = "bold";
    main_inner_construction_example_list_4_house.style.fontWeight = "bold";
    main_inner_construction_example_list_5_engineering.style.fontWeight = "bold";
  } else if (navigator_userAgent.match(/Opera/i) && navigator_userAgent.match(/Macintosh/i)) { /* Macintosh版Opera向け */
    var main_inner_construction_example_list_1_public = document.getElementById("main_inner_construction_example_list_1_public");
    var main_inner_construction_example_list_2_medical = document.getElementById("main_inner_construction_example_list_2_medical");
    var main_inner_construction_example_list_3_factory = document.getElementById("main_inner_construction_example_list_3_factory");
    var main_inner_construction_example_list_4_house = document.getElementById("main_inner_construction_example_list_4_house");
    var main_inner_construction_example_list_5_engineering = document.getElementById("main_inner_construction_example_list_5_engineering");
    main_inner_construction_example_list_1_public.style.fontWeight = "normal";
    main_inner_construction_example_list_2_medical.style.fontWeight = "normal";
    main_inner_construction_example_list_3_factory.style.fontWeight = "normal";
    main_inner_construction_example_list_4_house.style.fontWeight = "normal";
    main_inner_construction_example_list_5_engineering.style.fontWeight = "normal";
  }
}


 
