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

/*  ================================================================================
New Window
================================================================================  */
window.onload = function() {
var node_a = document.getElementsByTagName('a');
for (var i in node_a) {
if (node_a[i].className == 'newwin') {
node_a[i].onclick = function() {
window.open(this.href, '', '');
return false;
};
}
}
};

/*  ================================================================================
Window OPEN PV
================================================================================  */

function pv01b_win() {
window.open('pv1/kjy01b.html', 'book', 'width=720, height=620, menubar=no, toolbar=no, scrollbars=no');
}
function pv01s_win() {
window.open('pv1/kjy01s.html', 'book', 'width=480, height=370, menubar=no, toolbar=no, scrollbars=no');
}

function pv02b_win() {
window.open('pv2/kjy01b.html', 'book', 'width=720, height=620, menubar=no, toolbar=no, scrollbars=no');
}
function pv02s_win() {
window.open('pv2/kjy01s.html', 'book', 'width=480, height=370, menubar=no, toolbar=no, scrollbars=no');
}

/*  ================================================================================
Window OPEN web book
================================================================================  */

function book_win() {
window.open('book/book.html', 'book', 'width=640, height=480, menubar=no, toolbar=no, scrollbars=yes');
}
function book_win2() {
window.open('../book/book.html', 'book', 'width=640, height=480, menubar=no, toolbar=no, scrollbars=yes');
}

/*  ================================================================================
Window OPEN service
================================================================================  */

function chita_win() {
window.open('../service/chita.html', 'mywindow1', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}
function tokai_win() {
window.open('../service/tokai.html', 'mywindow2', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}
function obu_win() {
window.open('../service/obu.html', 'mywindow3', 'width=850, height=550, menubar=no, toolbar=no, scrollbars=yes');
}
function other_win() {
window.open('../service/other.html', 'mywindow4', 'width=850, height=420, menubar=no, toolbar=no, scrollbars=yes');
}

/*  ================================================================================
Window OPEN shop
================================================================================  */

function shop_win() {
window.open('shop/shop.html', 'mywindow5', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}

function shop_win2() {
window.open('../shop/shop.html', 'mywindow6', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}

function shop_chita() {
window.open('../shop/shop.html#chita', 'mywindow7', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}

function shop_tokai() {
window.open('../shop/shop.html#tokai', 'mywindow8', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}

function shop_obu() {
window.open('../shop/shop.html#obu', 'mywindow9', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}

function shop_other() {
window.open('../shop/shop.html#other', 'mywindow10', 'width=850, height=640, menubar=no, toolbar=no, scrollbars=yes');
}
