﻿if (document.images) {

/* INDEX PHOTOs */
var photo1on = new Image();
photo1on.src = "images/001index2.jpg";
var photo1off = new Image();
photo1off.src = "images/001index.jpg";

var photo2on = new Image();
photo2on.src = "images/002index2.jpg";
var photo2off = new Image();
photo2off.src = "images/002index.jpg";

var photo3on = new Image();
photo3on.src = "images/003index2.jpg";
var photo3off = new Image();
photo3off.src = "images/003index.jpg";

var photo4on = new Image();
photo4on.src = "images/004index2.jpg";
var photo4off = new Image();
photo4off.src = "images/004index.jpg";

var photo5on = new Image();
photo5on.src = "images/005index2.jpg";
var photo5off = new Image();
photo5off.src = "images/005index.jpg";

var photo6on = new Image();
photo6on.src = "images/006index2.jpg";
var photo6off = new Image();
photo6off.src = "images/006index.jpg";

var photo7on = new Image();
photo7on.src = "images/007index2.jpg";
var photo7off = new Image();
photo7off.src = "images/007index.jpg";

var photo8on = new Image();
photo8on.src = "images/008index2.jpg";
var photo8off = new Image();
photo8off.src = "images/008index.jpg";

var photo9on = new Image();
photo9on.src = "images/009index2.jpg";
var photo9off = new Image();
photo9off.src = "images/009index.jpg";

var photo10on = new Image();
photo10on.src = "images/010index2.jpg";
var photo10off = new Image();
photo10off.src = "images/010index.jpg";

var photo11on = new Image();
photo11on.src = "images/011index2.jpg";
var photo11off = new Image();
photo11off.src = "images/011index.jpg";

var photo12on = new Image();
photo12on.src = "images/012index2.jpg";
var photo12off = new Image();
photo12off.src = "images/012index.jpg";

var photo13on = new Image();
photo13on.src = "images/013index2.jpg";
var photo13off = new Image();
photo13off.src = "images/013index.jpg";

var photo14on = new Image();
photo14on.src = "images/014index2.jpg";
var photo14off = new Image();
photo14off.src = "images/014index.jpg";

var photo15on = new Image();
photo15on.src = "images/015index2.jpg";
var photo15off = new Image();
photo15off.src = "images/015index.jpg";

var photo16on = new Image();
photo16on.src = "images/016index2.jpg";
var photo16off = new Image();
photo16off.src = "images/016index.jpg";


}

function On(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'on.src');
  }
}

function Off(name) {
  if (document.images) {
    document.images[name].src = eval(name + 'off.src');
  }
}

function Clock(){
youbi=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
myDate=new Date();
myyear=myDate.getFullYear();
mymonth=myDate.getMonth()+1;
myday=myDate.getDate();
myyoubi=youbi[myDate.getDay()];
myhour=myDate.getHours();
myminute=myDate.getMinutes();
mysecond=myDate.getSeconds();
if (mymonth<10) {mymonth="0"+mymonth}
if (myday<10) {myday="0"+myday}
if (myhour<10) {myhour="0"+myhour}
if (myminute<10) {myminute="0"+myminute}
if (mysecond<10) {mysecond="0"+mysecond}
window.status=""+myyear+"/"+mymonth+"/"+myday+" ("+myyoubi+") "+myhour+":"+myminute+":"+mysecond+"";
setTimeout("Clock()",1000);
}