// プリロードイメージ
window.onload = function() {
MM_preloadImages('img/menu_bt1_over.gif','img/menu_bt2_over.gif');
}

// MMロールオーバー
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];}
}

//ボタンのプリロード
window.onload = function(){
MM_preloadImages(
'../img/navib_olive2.gif',
'../img/navib_gimon2.gif',
'../img/navib_restaurant2.gif',
'../img/navib_siryo2.gif',
'../img/navib_soudan2.gif',
'../img/navib_item2.gif',
'../img/navib_voice2.gif',
'../img/navi_olive2.gif',
'../img/navi_gimon2.gif',
'../img/navi_restaurant2.gif',
'../img/navi_siryo2.gif',
'../img/navi_soudan2.gif',
'../img/navi_item2.gif',
'../img/navi_voice2.gif',
'../img/bottom_p2.gif',
'../img/banner_info2.gif',
'../img/banner_propose_click2.gif',
'../img/banner_sept2.jpg',
'../img/banner_propose_2.jpg',
'../img/banner_r_sept2.gif',
'../img/banner_winter2.jpg',
'../img/banner_propose_s2.gif',
'../img/salon_access2.gif',
'../img/salon_res2.gif',
'../img/bottom_p2.gif',
'../img/banner_campaign2.jpg')
}

// メルアド二重入力とhttp入力禁止
function FormCheck(F) {
var f0 = document.forms[0];
if (f0.email.value.toLowerCase() == f0.email2.value.toLowerCase() ) {
}else{
alert("メールアドレスが一致していません。入力に間違いが無いかご確認下さい");
return false
}
for(var i=0;F.elements[i];i++){
if(F.elements[i].nodeName == 'INPUT' && F.elements[i].type=='text'
|| F.elements[i].nodeName == 'TEXTAREA') {
if(F.elements[i].value.indexOf('http') > -1) {
alert('恐れ入りますが、ウェブアドレスはご送信いただけません。');
return false;
}}}}

//http入力禁止
function check(F){
for(var i=0;F.elements[i];i++){
if(F.elements[i].nodeName == 'INPUT' && F.elements[i].type=='text'
|| F.elements[i].nodeName == 'TEXTAREA') {
if(F.elements[i].value.indexOf('http') > -1) {
alert('恐れ入りますが、ウェブアドレスはご送信いただけません。');
return false;
}}}}

//フェア情報ポップアップ
function infowin(){
window.open('http://www.olive-hill.com/restaurant/information.html','information','width=750,height=500,top=0,left=0,scrollbars=yes,resizable=yes');
}


//無料相談体験レポート
function report(){
window.open('http://www.olive-hill.com/form/report.html','report','scrollbars=yes,resizable=yes,width=760,height=550,top=0,left=0');
}

//まり社長プロフィール
function mari(){
window.open('http://www.olive-hill.com/prologue/profile.html','mari','scrollbars=yes,resizable=yes,width=330,height=600,top=0,left=0');
}

//まり社長結婚式
function wedding(){
window.open('http://higuchimari.jp/profile/wedding.html','wedding','scrollbars=yes,resizable=yes,width=800,height=550,top=0,left=0');
}

//マナーとコツ
function book(){
window.open('http://www.olive-hill.com/prologue/book.html','mari','scrollbars=yes,resizable=yes,width=340,height=250,top=0,left=0');
}

//シーマ地図拡大（D33）
function mapcima(){
window.open('http://www.olive-hill.com/protocol2/map_cima.html','mapd','scrollbars=yes,resizable=yes,width=400,height=400,top=0,left=0');
}

//フェアお知らせメール登録
function fairmail(){
window.open('https://24auto.biz/olivehill/touroku/scenario16.htm','subscribe','scrollbars=yes,resizable=yes,width=650,height=250,top=0,left=0');
}
//クラブ婚特集
function vip(){
window.open('http://www.olive-hill.com/vip/index.html','vip','location=yes,scrollbars=yes,resizable=yes,width=800,height=600,top=0,left=0');
}

//年内プラン
function plan2(){
window.open('http://www.olive-hill.com/plan/2010.html','plan','location=yes,scrollbars=yes,resizable=yes,width=800,height=370,top=0,left=0');
}


//フェスタ
function festa(){
window.open('http://www.olive-hill.com/festa/index.html','festa','location=yes,scrollbars=yes,resizable=yes,width=800,height=600,top=0,left=0');
}

//まり会長勝田禰宜インタビュー
function shibainterview(){
window.open ('http://www.olive-hill.com/movie/shiba.html','interview','scrollbars=yes,resizable=yes,width=500,height=400,top=0,left=0');
}
//アリュール
function allure(){
window.open('http://www.olive-hill.com/allure/index.html','allure','scrollbars=yes,resizable=yes,width=800,height=550,top=0,left=0');
}
//Google 外部リンククリック測定
function recordOutboundLink(link, category, action) {  try {    var pageTracker=_gat._getTracker("UA-263404-2");    pageTracker._trackEvent(category, action);    setTimeout('document.location = "' + link.href + '"', 100)  }catch(err){}}
