/************************************************
  
    Site Name: ウエディングヴィラ マルキーノ芦屋
    Description: common script
    Last Modified :20080218

************************************************/
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 closeWin(){
    window.close();
}

/************************************************
	Description: お問い合わせ・来館予約・資料請求
************************************************/
function openReserved(){
	window.open("http://www.marchino-ashiya.jp/reserved/event.php","reserve",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=600,height=709');
}
function openContact(){
	window.open("http://www.marchino-ashiya.jp/contact/","contact",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=475,height=695');
}
function openRequest(){
	window.open("http://www.marchino-ashiya.jp/request/","request",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=491,height=660');
}

/************************************************
	Description: トピックス
************************************************/
function openTopics(){
	window.open("topics/index.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=762');
}
function openBridesRoom(){
	window.open("http://www.kkr-town.com/brides_room.html","",'resizable=no,scrollbars=no,menubar=no,directories=no,status=no,location=no,width=820,height=500');
}


/************************************************
	Description: チャペル・フォトストーリー
************************************************/
function openChapel(){
	window.open("gallery/photostory_chapel/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}
/************************************************
	Description: パーティーリポート・フォトストーリー
************************************************/

function open080320(){
	window.open("080320.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}
function open080320ps(){
	window.open("photostory/photostory_04/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}
function open080323(){
	window.open("080323.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}
function open080323ps(){
	window.open("photostory/photostory_03/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}
function open080315(){
	window.open("080315.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}
function open080315ps(){
	window.open("photostory/photostory_01/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}
function open080211(){
	window.open("080211.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}
function open080211ps(){
	window.open("photostory/photostory_02/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}

function open080412(){
	window.open("080412.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open080412ps(){
	window.open("photostory/photostory_05/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}

function open080426(){
	window.open("080426.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open080426ps(){
	window.open("photostory/photostory_06/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}

function open080614(){
	window.open("080614.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open080614ps(){
	window.open("photostory/photostory_07/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}

function open080820(){
	window.open("080820.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open080820ps(){
	window.open("photostory/photostory_08/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}


function open081020(){
	window.open("081020.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open081020ps(){
	window.open("photostory/photostory_09/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}


function open081012(){
	window.open("081012.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open081012ps(){
	window.open("photostory/photostory_10/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}


function open081123(){
	window.open("081123.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open081123ps(){
	window.open("photostory/photostory_11/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}

function open081207(){
	window.open("081207.html","",'resizable=no,scrollbars=yes,menubar=no,directories=no,status=no,location=no,width=766,height=800');
}

function open081207ps(){
	window.open("photostory/photostory_12/photo.html","",'resizable=no,scrollbars=no,toolbar=no,menubar=no,directories=no,status=no,location=no,fullscreen=yes');
}