﻿if (document.images) {

/* INDEX PHOTOs */
var photo1on = new Image();
photo1on.src = "images/001-2.jpg";
var photo1off = new Image();
photo1off.src = "images/001.jpg";

var photo2on = new Image();
photo2on.src = "images/002-2.jpg";
var photo2off = new Image();
photo2off.src = "images/002.jpg";

var photo3on = new Image();
photo3on.src = "images/003-2.jpg";
var photo3off = new Image();
photo3off.src = "images/003.jpg";

var photo4on = new Image();
photo4on.src = "images/004-2.jpg";
var photo4off = new Image();
photo4off.src = "images/004.jpg";

var photo5on = new Image();
photo5on.src = "images/005-2.jpg";
var photo5off = new Image();
photo5off.src = "images/005.jpg";

var photo6on = new Image();
photo6on.src = "images/006-2.jpg";
var photo6off = new Image();
photo6off.src = "images/006.jpg";

var photo7on = new Image();
photo7on.src = "images/007-2.jpg";
var photo7off = new Image();
photo7off.src = "images/007.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);
}