﻿var myURL
myURL = "http://www.hiraoka-kaigofukushi.jp/";
// myURL = "http://www.risuke.co.jp/~demo2/hiraoka/_KAIGO/";

// HEADER -------------------------------------------------------------------------------------
function includeHeader(){
document.write(
"<div id='head' class='clear'>"+
"<h1 class='logo'><a href='" + myURL + "index.html'>学校法人 平岡学園 平岡介護福祉専門学校((厚生労働大臣指定校 専修学校)</a></h1>"+
"<div class='subMenuContR'><a href='" + myURL + "admissions/request/index.shtml'><img src='" + myURL + "common/btn_material.jpg' alt='資料請求' width='130' height='40' border='0'></a></div>"+
"<div class='subMenuContL'>"+
"<ul class='subMenuList clear'>"+
"<li><a href='" + myURL + "about/access/index.html'>交通アクセス</a></li>"+
"<li><a href='" + myURL + "about/contact/index.shtml'>お問い合わせ</a></li>"+
"<li><a href='" + myURL + "sitemap/index.html'>サイトマップ</a></li>"+
"</ul>"+
"<ul class='subMenuBtn clear'>"+
"<li><a href='" + myURL + "teacher/index.html'><img src='" + myURL + "common/menu_s01.gif' alt='高校教員の皆様' width='105' height='17' border='0'></a></li>"+
"<li><a href='" + myURL + "adoption/index.shtml'><img src='" + myURL + "common/menu_s02.gif' alt='採用ご担当者様' width='108' height='17' border='0'></a></li>"+
"<li><a href='http://www.hiraoka.ac.jp/cgi-bin/bbs/bbs.cgi' target='_blank'><img src='" + myURL + "common/menu_s03.gif' alt='学園卒業生の皆様' width='100' height='17' border='0'></a></li>"+
"</ul>"+
"<ul class='subMenuBtn clear'>"+
"<li><a href='" + myURL + "admissions/social/index.html'><img src='" + myURL + "common/menu_s04.gif' alt='社会人・大学生の方へ' width='105' height='17' border='0'></a></li>"+
"<li><a href='" + myURL + "admissions/parent/index.html'><img src='" + myURL + "common/menu_s05.gif' alt='受験生の保護者の方へ' width='108' height='17' border='0'></a></li>"+
"<li><a href='" + myURL + "remote/index.html'><img src='" + myURL + "common/menu_s06.gif' alt='遠隔地の方へ' width='100' height='17' border='0'></a></li>"+
"</ul>"+
"</div>"+
"</div>"
);
}

// MENU -------------------------------------------------------------------------------------
function includeMenuOff(){
document.write(
"<div id='menuCont' class='clear'>"+
"<h3>"+
"<ul>"+
"<li class='menuAbout'><a href='" + myURL + "about/index.html'>学園概要</a></li>"+
"<li class='menuCourse'><a href='" + myURL + "course/index.html'>学科紹介</a></li>"+
"<li class='menuFacilities'><a href='" + myURL + "facilities/index.html'>施設・設備</a></li>"+
"<li class='menuCampuslife'><a href='" + myURL + "campuslife/index.html'>キャンパスライフ</a></li>"+
"<li class='menuRecruit'><a href='" + myURL + "recruit/index.html'>就職実績</a></li>"+
"<li class='menuAdmissions'><a href='" + myURL + "admissions/index.html'>募集要項</a></li>"+
"<li class='menuOpencampus'><a href='" + myURL + "opencampus/index.html'>体験入学</a></li>"+
"</ul>"+
"</h3>"+
"</div>"
);
}

// FOOTER -------------------------------------------------------------------------------------
function includeFooter(){
document.write(
"<div class='privacyPolicy'><a href='" + myURL + "privacy/index.html'>プライバシーポリシー</a></div>"+
"<div id='footer'>"+
"<div class='footerCont clear'>"+
"<p class='address'>〒838-0197 福岡県小郡市大保1434-3／TEL.0942-72-0002(代表)</p>"+
"<p class='copyright'>&copy; Heartful College Hiraoka. All Rights Reserved.</p>"+
"</div>"+
"</div>"
);
}


// -------------------------------------------------------------------------------------------
// preload

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];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


