﻿if (document.images) { 


// 設定開始（使用する画像を設定してください） 

//ページのトップへ戻る

var Img1on = new Image();
Img1on.src = "http://hair-life.com/wp-content/themes/rootlife/images/pagetop_on.gif"; // ポイント時の画像
var Img1off = new Image();
Img1off.src = "http://hair-life.com/wp-content/themes/rootlife/images/pagetop_off.gif"; // 通常の画像

//メニュー

var Img2on = new Image();
Img2on.src = "http://hair-life.com/wp-content/themes/rootlife/images/menu_over.gif"; // ポイント時の画像
var Img2off = new Image();
Img2off.src = "http://hair-life.com/wp-content/themes/rootlife/images/menu.gif"; // 通常の画像

//スタッフ

var Img3on = new Image();
Img3on.src = "http://hair-life.com/wp-content/themes/rootlife/images/staff_over.gif"; // ポイント時の画像
var Img3off = new Image();
Img3off.src = "http://hair-life.com/wp-content/themes/rootlife/images/staff.gif"; // 通常の画像

//ご予約

var Img4on = new Image();
Img4on.src = "http://hair-life.com/wp-content/themes/rootlife/images/reservation_over.gif"; // ポイント時の画像
var Img4off = new Image();
Img4off.src = "http://hair-life.com/wp-content/themes/rootlife/images/reservation.gif"; // 通常の画像

//お客様の声

var Img5on = new Image();
Img5on.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_voice_over.gif"; // ポイント時の画像
var Img5off = new Image();
Img5off.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_voice.gif"; // 通常の画像

//ブログ

var Img6on = new Image();
Img6on.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_blog_over.gif"; // ポイント時の画像
var Img6off = new Image();
Img6off.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_blog.gif"; // 通常の画像

//ギャラリー

var Img7on = new Image();
Img7on.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_gallery_over.gif"; // ポイント時の画像
var Img7off = new Image();
Img7off.src = "http://hair-life.com/wp-content/themes/rootlife/images/side_gallery.gif"; // 通常の画像



// 設定終了 


} 

// ポイント時の処理 
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'); 
} 

} 

