// JavaScript Document

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_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_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];}

}





//tsukuba



var subopen

function subWin_tsukuba(){

subopen=window.open("http://lions-mansion.jp/sumai/special/tsukuba/","window","resizable=no,scrollbars=no,toolbar=no,menubar=nos,directories=no,status=no,location=no,width=920,height=650");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





//classy



var subopen

function subWin_classy(){

subopen=window.open("http://lions-mansion.jp/sumai/special/classy/index.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=880,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



//mr



var subopen

function subWin_mr(){

subopen=window.open("http://lions-mansion.jp/sumai/special/mr/index.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=815,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



//tenpo



var subopen

function subWin_01(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/map_01.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=800,height=540");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_02(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/MV000620_gaiyo.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_03(){

subopen=window.open("http://lions-mansion.jp/MV000604/map.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_04(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/MV000604_gaiyo.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_05(){

subopen=window.open("http://lions-mansion.jp/MF051029/pvmap.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_06(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/MF051029_gaiyo.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_07(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/MV000641_gaiyo.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





var subopen

function subWin_plan1(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_01.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan2(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_02.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan3(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_03.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan4(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_04.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=620");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan5(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_05.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan6(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_06.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan7(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_07.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_plan8(){

subopen=window.open("http://lions-mansion.jp/sumai/tenpo/plan_08.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=780,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





//お知らせ記事EE

var subopen

function subWin_top_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_kanto_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_osaka_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_tokai_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_hokkaido_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_sendai_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_hiroshima_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_fukuoka_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_okinawa_newslist(){

subopen=window.open("./newslist.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





//condition

var subopen

function subWin_condition(){

subopen=window.open("/condition.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_condition2(){

subopen=window.open("../condition.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





//search



var subopen

function subWin_search(){

subopen=window.open("http://www.daikyo.co.jp/LM/v-search/search.html","search","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=940,height=690");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}

var subopen

function subWin_serPopMobile(url){

subopen=window.open(url,"search","resizable=yes,scrollbars=yes,width=700,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}



var subopen

function subWin_top_topic(){

subopen=window.open("http://lions-mansion.jp/topic.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=740,height=470");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}


var subopen

function subWin_top_newsrelease(){

subopen=window.open("./news_release/index.html","window","resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,directories=no,status=no,location=yes,width=650,height=600");

if (!subopen.opener) subopen.opener=self;

if (window.focus) subopen.focus();

}





//sitemap-popup





linkArea = ".subwin a";

/*

複数指定すEE腓蓮▲ンマ(,)で区切E

linkArea = "#plan-index a,#plan-index2 a";

*/

$(function(){

　$(linkArea).click(function() {

　　var linkclass = $(this).attr("class");

　　if(linkclass == 'subwin-tight') { 

　　　window.open(this.href,'win', 'width=825, height=740, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes, location=yes');

　　} else if(linkclass == 'subwin-wide') {

　　　window.open(this.href,'win', 'width=950, height=745, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes, location=yes');

　　} else {

　　　window.open(this.href,'win', 'width=930, height=710, menubar=yes, toolbar=yes, scrollbars=yes, resizable=yes, location=yes');

　　}

　　return false;

　});

});
