// メニューボタン処理（ロールオーバー）

if (document.images) { 

// 医院紹介
var img0on = new Image();
img0on.src = "images/btn_about02.gif";
var img0off = new Image();
img0off.src = "images/btn_about01.gif";
// 歯内療法とは
var img1on = new Image();
img1on.src = "images/btn_endod02.gif";
var img1off = new Image();
img1off.src = "images/btn_endod01.gif";
// 医院ポリシー
var img2on = new Image();
img2on.src = "images/btn_policy02.gif";
var img2off = new Image();
img2off.src = "images/btn_policy01.gif";
// Q&A
var img3on = new Image();
img3on.src = "images/btn_qanda02.gif";
var img3off = new Image();
img3off.src = "images/btn_qanda01.gif";
// 交通
var img4on = new Image();
img4on.src = "images/btn_access02.gif";
var img4off = new Image();
img4off.src = "images/btn_access01.gif";
// お問い合わせ
var img5on = new Image();
img5on.src = "images/btn_contact02.gif";
var img5off = new Image();
img5off.src = "images/btn_contact01.gif";


} 

// MouseOver
function On(name) { 

if (document.images) { 
document.images[name].src = eval(name + 'on.src'); 
} 

} 

// MouseOut
function Off(name) { 

if (document.images) { 
document.images[name].src = eval(name + 'off.src'); 
} 

} 

//ウインドウオープン

function gladuation()
{
window.open("gladuation.html","gladuation","width=500,height=590");
}

function gladuation2()
{
window.open("gladuation2.html","gladuation2","width=630,height=480");
}

function shigakubu()
{
window.open("shigakubu.html","shigakubu","width=550,height=420");
}

function shikaishi()
{
window.open("shikaishi.html","shikaishi","width=550,height=440");
}

function pprogram()
{
window.open("pp.html","pprogram","width=550,height=440");
}

// 画面入れ替え

index = 0;
pictures = new Array;
pictures[0] = "image1.jpg";
pictures[1] = "image2.jpg";

function change1(){
index++;
if (index > pictures.length-1) index=0;
document.getElementById("pic1").src=pictures[index];}


index = 0;
pictures2 = new Array;
pictures2[0] = "image3.jpg";
pictures2[1] = "image4.jpg";
pictures2[2] = "image5.jpg";
function change2(){
index++;
if (index > pictures2.length-1) index=0;
document.getElementById("pic2").src=pictures2[index];}

index = 0;
pictures3 = new Array;
pictures3[0] = "image6.jpg";
pictures3[1] = "image7.jpg";
pictures3[2] = "image8.jpg";
function change3(){
index++;
if (index > pictures3.length-1) index=0;
document.getElementById("pic3").src=pictures3[index];}
