var baseUrl    = "http://www.hakatanomori.info";
var baseSllUrl = "https://www.hakatanomori.info";

// home 
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];}}
}

// home 
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;
}

// home 
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;
}

// home 
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];}
}

// home
function MM_newWindow(url, type, width, height) {
	var param;
	if(type == 0){
		param = 'menubar=yes,scrollbars=yes';
	}else{
		param = 'resizable=yes';
	}
	param += ',width=' + width + ',height=' + height;
	window.open(url, '_blank', param);
}

function MM_newWindow1(url, width, height) {
	window.open(url, '_blank', 'scrollbars=yes,resizable=yes,width='+ width + ',height=' + height);
}

function MM_newWindow(url, type) {
	var param;
	if(type == 0){
		param = 'menubar=yes,scrollbars=yes';
	}else{
		param = 'menubar=no,scrollbars=no,location=no,status=no,titlebar=no,toolbar=no';
	}
	window.open(url, '_blank', param);
}

function pageJump_pamphlet() {
	document.location.href = baseSllUrl + '/materials/materials_input.php';
}

function pageJump_applicationForm() {
	document.location.href = baseSllUrl + '/application/application_input.php';
}

function pageJump_reservation() {
	MM_newWindow1('http://yoyaku.hakatanomori.info/cgi-bin/index.cgi', 300, 300);
}

function pageJump_preEntry() {
	document.location.href = baseSllUrl + '/registration/registration_input.php';
}

function pageJump_practice() {
	MM_newWindow('http://www.musasi.jp/hakatanomori', 0);
}

function pageJump_busCatch() {
	MM_newWindow('http://www.buscatch.com/i_guidance/hakatanomori/', 0);
}

function pageJump_SelectedSchool() {
	MM_newWindow('http://www.hakatanomori.info/hakata_img_page/download_page/shiteikou.pdf', 0);
}

function pageJump_Home() {
	document.location.href = baseUrl + '/index.html';
}

function pageJump_School() {
	document.location.href = baseUrl + '/school/index.html';
}

function pageJump_Entrance() {
	document.location.href = baseUrl + '/entrance/index.html';
}

function pageJump_Price() {
	document.location.href = baseUrl + '/price/index.html';
}

function pageJump_Guide() {
	document.location.href = baseUrl + '/guide/index.html';
}

function pageJump_Plan() {
	document.location.href = baseUrl + '/plan/index.html';
}

function pageJump_SchoolBus() {
	document.location.href = baseUrl + '/schoolbus/index.html';
}

function pageJump_Access() {
	document.location.href = baseUrl + '/access/index.html';
}

function pageJump_Service() {
	document.location.href = baseUrl + '/service/index.html';
}

function pageJump_PrivacyPolicy() {
	document.location.href = baseUrl + '/privacy/index.html';
}

function pageJump_SiteMap() {
	document.location.href = baseUrl + '/sitemap/index.html';
}

function pageJump_News() {
	document.location.href = baseUrl + '/news/index.html';
}

function pageJump_Campain() {
	document.location.href = '/plan/index.html';
}

function pageJump_CityStay() {
	document.location.href = '/plan/citystay/index.html';
}

function pageJump_Law() {
	document.location.href = '/law/index.html';
}

function mailTo() {
	document.location.href = 'mailto:ekimae@hakatanomori.info';
}