
// ページ下部のフッターリンクバナー表示
// rootのパスの設定
var root_path;
function PASS_SET(path){
	root_path = path;
}
// フッターテーブルの書き出し
function FOOTER_LINK(path){

	document.write('<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px ;" >'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td><img src="'+root_path+'img/all/line_dot_760.gif" width="760" height="2"></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");

	document.write('<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 20px 10px 20px;" class="t9">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+root_path+'medical/products/index.html" target="_blank">福祉介護</a>｜</td>'+"\n");
	document.write('<td valign="top">&nbsp;</td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+root_path+'reform/index.html">リフォーム</a>｜</td>'+"\n");
	document.write('<td valign="top"><img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/service.html">取扱内容</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/flow.html">リフォームの流れ</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/reform_alacarte.html">お住まい相談アラカルト</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/recommend.html">リフォームおすすめ商品</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/example.html">リフォーム事例紹介</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'reform/shop.html">拠点・社員紹介</a></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+root_path+'company/index.html">会社情報</a>｜</td>'+"\n");
	document.write('<td valign="top"><img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'company/index.html">基本方針</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'company/outline.html">会社概要</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'company/activities.html">事業内容</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+root_path+'link/index.html">リンク集</a>　 </td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");

////// コピーライトとテキストリンク↓
	document.write('<table width="800" height="45" border="0" align="center" cellpadding="0" cellspacing="0">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top" class="footer">'+"\n");
	document.write('<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 20px 0px 20px;">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="middle"  class="t8">Copyright(C) 2005-2011 AIR WATER HELLO SUPPORT INC. All Rights Reserved.</td>'+"\n");
	document.write('<td valign="middle"  align="right" class="t8" nowrap><a href="'+root_path+'mail/index.html"><img src="'+root_path+'img/all/btn_mail.gif" width="24" height="10">お問い合わせ</a>｜<a href="'+root_path+'privacy/index.html">個人情報のお取扱いについて</a>｜<a href="'+root_path+'menseki/index.html">免責事項</a>｜<a href="'+root_path+'sitemap/index.html">サイトマップ</a></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");
}

// ページ下部のフッターリンクバナー表示（テキストリンク絶対パス版）
// abs_rootのパスの設定 Java.jsで固定
//var abs_root_path = 'http://www.aw-hellosupport.co.jp/';

// フッターテーブルの書き出し（テキストリンク絶対パス版）
function ABS_FOOTER_LINK(path){

	document.write('<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px ;" >'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td><img src="'+root_path+'img/all/line_dot_760.gif" width="760" height="2"></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");

	document.write('<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 20px 10px 20px;" class="t9">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+abs_root_path+'medical/products/index.html" target="_blank">福祉介護</a>｜</td>'+"\n");
	document.write('<td valign="top">&nbsp;</td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+abs_root_path+'reform/index.html">リフォーム</a>｜</td>'+"\n");
	document.write('<td valign="top"><img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/service.html">取扱内容</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/flow.html">リフォームの流れ</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/reform_alacarte.html">お住まい相談アラカルト</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/recommend.html">リフォームおすすめ商品</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/example.html">リフォーム事例紹介</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'reform/shop.html">拠点・社員紹介</a></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top">｜<a href="'+abs_root_path+'company/index.html">会社情報</a>｜</td>'+"\n");
	document.write('<td valign="top"><img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'company/index.html">基本方針</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'company/outline.html">会社概要</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'company/activities.html">事業内容</a>　<img src="'+root_path+'img/all/icon_p.gif" width="5" height="7"><a href="'+abs_root_path+'link/index.html">リンク集</a>　 </td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");

////// コピーライトとテキストリンク↓
	document.write('<table width="800" height="45" border="0" align="center" cellpadding="0" cellspacing="0">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top" class="footer">'+"\n");
	document.write('<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 20px 0px 20px;">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="middle"  class="t8">Copyright(C) 2005-2011 AIR WATER HELLO SUPPORT INC. All Rights Reserved.</td>'+"\n");
	document.write('<td valign="middle"  align="right" class="t8" nowrap><a href="'+abs_root_path+'mail/index.html"><img src="'+root_path+'img/all/btn_mail.gif" width="24" height="10">お問い合わせ</a>｜<a href="'+abs_root_path+'privacy/index.html">個人情報のお取扱いについて</a>｜<a href="'+abs_root_path+'menseki/index.html">免責事項</a>｜<a href="'+abs_root_path+'sitemap/index.html">サイトマップ</a></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");
}

// コピーライトのみ書き出し
function COPYRIGHT_FOOTER() {

	document.write('<table width="800" height="45" border="0" align="center" cellpadding="0" cellspacing="0">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="top" class="footer">'+"\n");
	document.write('<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:10px 20px 0px 20px;">'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td valign="middle"  class="t8">Copyright(C) 2005-2011 AIR WATER HELLO SUPPORT INC. All Rights Reserved.</td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('</table>'+"\n");

}





// 各カテゴリーTOPの右サイド「チャレンジクッキング」部分のリンク
function CHALLENGE_COOKING_LINK(){

	document.write('<table width="180" border="0" align="center" cellpadding="0" cellspacing="0">'+"\n");
	document.write('<tr>'+"\n");
////// レシピ1（上段）サムネ画像のリンク※ALTも忘れずに↓
	document.write('<td width="35" valign="top"><a href="http://www.airwater-energy.co.jp/hellogas-smilenet/cooking/201003/index.html" target="_blank"><img src="'+root_path+'img/all/right_smilecooking_ph_201003.jpg" alt="お好み焼きめし" width="35" height="35"></a></td>'+"\n");
	document.write('<td width="10" valign="top">&nbsp;</td>'+"\n");
	document.write('<td width="5" valign="top"><img src="'+root_path+'img/all/icon_p.gif" width="5" height="7" style="margin-top:7px;"></td>'+"\n");
////// レシピ1（上段）レシピタイトルとリンク↓
	document.write('<td width="130" valign="top"><span class="t11"><strong><a href="http://www.airwater-energy.co.jp/hellogas-smilenet/cooking/201003/index.html" target="_blank">お好み焼きめし<img src="'+root_path+'img/all/right_icon_new.gif" alt="NEW" width="27" height="11" style="margin-left:2px;"></a></strong></span><br>'+"\n");
////// レシピ1（上段）レシピのひとくちコメント↓
	document.write('<span class="t10">小麦粉を使わずご飯で作る簡単お好み焼き。</span></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
	document.write('<td height="12" colspan="4" valign="middle"><img src="'+root_path+'img/all/line_dot_180.gif" width="180" height="7"></td>'+"\n");
	document.write('</tr>'+"\n");
	document.write('<tr>'+"\n");
}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



// ページTOPへスクロールするJS

function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}

// イベント情報でショールームのリストを開くスクリプト
function OP_URL(theURL,winName,features) { //v2.0
	theURL = "../../shop.html"
	winName = "_self"
	features = " "
	WO=window.open(theURL,winName,features);
	WO.focus();
}


