if (document.images) { 


// 設定開始（使用する画像を設定してください） 

// 画像1 メインメニュー／トップ
var img1on = new Image();
img1on.src = "./ci_img/menu1_on.gif"; // ポイント時の画像
var img1off = new Image();
img1off.src = "./ci_img/menu1_off.gif"; // 通常の画像

// 画像2 メインメニュー／彼氏以外
var img2on = new Image();
img2on.src = "./ci_img/menu2_on.gif"; // ポイント時の画像
var img2off = new Image();
img2off.src = "./ci_img/menu2_off.gif"; // 通常の画像

// 画像3 メインメニュー／実況！お宅の晩御飯
var img3on = new Image();
img3on.src = "./ci_img/menu3_on.gif"; // ポイント時の画像
var img3off = new Image();
img3off.src = "./ci_img/menu3_off.gif"; // 通常の画像

// 画像4 メインメニュー／ブログ
var img4on = new Image();
img4on.src = "./ci_img/menu4_on.gif"; // ポイント時の画像
var img4off = new Image();
img4off.src = "./ci_img/menu4_off.gif"; // 通常の画像

// 画像5 メインメニュー／お問い合わせ
var img5on = new Image();
img5on.src = "./ci_img/menu5_on.gif"; // ポイント時の画像
var img5off = new Image();
img5off.src = "./ci_img/menu5_off.gif"; // 通常の画像

// 画像6 メインメニュー／サイネリア通販
var img6on = new Image();
img6on.src = "./ci_img/menu6_on.gif"; // ポイント時の画像
var img6off = new Image();
img6off.src = "./ci_img/menu6_off2.gif"; // 通常の画像



// 画像7 サブメニュー／彼氏以外とは？
var img7on = new Image();
img7on.src = "./ci_img/menu2_1on.gif"; // ポイント時の画像
var img7off = new Image();
img7off.src = "./ci_img/menu2_1off.gif"; // 通常の画像

// 画像8 サブメニュー／第一弾同僚との過ち
var img8on = new Image();
img8on.src = "./ci_img/menu2_2on.gif"; // ポイント時の画像
var img8off = new Image();
img8off.src = "./ci_img/menu2_2off.gif"; // 通常の画像

// 画像10 サブメニュー／第二弾上司との過ち
var img10on = new Image();
img10on.src = "./ci_img/menu2_3on.gif"; // ポイント時の画像
var img10off = new Image();
img10off.src = "./ci_img/menu2_3off.gif"; // 通常の画像



// 画像9 彼氏以外トップキャラメニュー／望
var img9on = new Image();
img9on.src = "./ci_img/karetop1_on.png"; // ポイント時の画像
var img9off = new Image();
img9off.src = "./ci_img/karetop1_off.png"; // 通常の画像

// 画像11 彼氏以外トップキャラメニュー／光
var img11on = new Image();
img11on.src = "./ci_img/karetop2_on.png"; // ポイント時の画像
var img11off = new Image();
img11off.src = "./ci_img/karetop2_off.png"; // 通常の画像



// 画像12 サブメニュー／彼氏以外ＣＭ
var img12on = new Image();
img12on.src = "./ci_img/menu2_4on.gif"; // ポイント時の画像
var img12off = new Image();
img12off.src = "./ci_img/menu2_4off.gif"; // 通常の画像


// 画像13 メインメニュー／SLEEPx2
var img13on = new Image();
img13on.src = "./ci_img/menu7_on.gif"; // ポイント時の画像
var img13off = new Image();
img13off.src = "./ci_img/menu7_off2.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'); 
} 

}




<!-----
//ランダムリンク

function randomLink(){
  var linkIt = new Array(
    '<A href="http://www.asgard-japan.com/io/"><img src="./asg_imgh/topira1.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/starry_sky.html"><img src="./asg_imgh/topira2.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.asgard-japan.com/planpeace/products/loverevo/index.html"><img src="./asg_imgh/topira3.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/vx_top.html"><img src="./asg_imgh/topira4.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/rode_top.html"><img src="./asg_imgh/topira5.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/me_top.html"><img src="./asg_imgh/topira6.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/master_top.html"><img src="./asg_imgh/topira7.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/heart_top.html"><img src="./asg_imgh/topira8.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/hituji_top.html"><img src="./asg_imgh/topira9.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/vz_top.html"><img src="./asg_imgh/topira10.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.blackbutterfly-cd.com/short/"><img src="./asg_imgh/topira12.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/heta_top.html"><img src="./asg_imgh/topira13.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.blackbutterfly-cd.com/br/br_top.html"><img src="./asg_imgh/topira14.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.honeybee-cd.com/enren_top.html"><img src="./asg_imgh/topira15.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.blackbutterfly-cd.com/toriai/index.html"><img src="./asg_imgh/topira16.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.asgard-japan.com/booston/"><img src="./asg_imgh/topira17.jpg" width="863" height="335" border="0"></A>',
    '<A href="http://www.blackbutterfly-cd.com/dolly/dolly_top.html"><img src="./asg_imgh/topira11.jpg" width="863" height="335" border="0"></A>');

    return linkIt[Math.floor(Math.random()*linkIt.length)];
}

//----->
