var time = 2;
var rtime = 10000;
var image = new Array();
var map_data = new Array();
var x = -1;

/*
x += 1;
image[x]='images/top01.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='15,11,170,228'   href='products/p_shobo.html' alt='消防くん V3'>";
map_data[x]  += "<area shape='rect' coords='175,9,371,58'    href='products/p_shobo.html' alt='消防くん V3'>";
map_data[x]  += "<area shape='rect' coords='210,190,364,218' href='products/p_shobo.html' alt='詳細はこちら'>";
map_data[x]  += "<area shape='rect' coords='376,11,529,227'  href='products/p_waste_demand.html' alt='ウエイストマネージャー'>";
map_data[x]  += "<area shape='rect' coords='534,9,800,60'    href='products/p_waste_demand.html' alt='ウエイストマネージャー'>";
map_data[x]  += "<area shape='rect' coords='635,190,789,218' href='products/p_waste_demand.html' alt='詳細はこちら'>";
map_data[x]  += "</map>";
x += 1;
image[x]='images/top02.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='19,10,170,225'   href='products/p_denkiyasan.html' alt='でんきやさん V4'>";
map_data[x]  += "<area shape='rect' coords='175,9,371,58'    href='products/p_denkiyasan.html' alt='でんきやさん V4'>";
map_data[x]  += "<area shape='rect' coords='210,190,364,218' href='products/p_denkiyasan.html' alt='詳細はこちら'>";
map_data[x]  += "<area shape='rect' coords='376,11,529,227'  href='products/p_setsubi.html' alt='せつびやさん V4'>";
map_data[x]  += "<area shape='rect' coords='534,9,800,60'    href='products/p_setsubi.html' alt='せつびやさん V4'>";
map_data[x]  += "<area shape='rect' coords='635,190,789,218' href='products/p_setsubi.html' alt='詳細はこちら'>";
map_data[x]  += "</map>";
x += 1;
image[x]='images/top03.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='33,9,220,232'    href='products/p_hyper.html' alt='Hyper写楽々21 V6'>";
map_data[x]  += "<area shape='rect' coords='231,9,599,58'    href='products/p_hyper.html' alt='Hyper写楽々21 V6'>";
map_data[x]  += "<area shape='rect' coords='606,190,760,218' href='products/p_hyper.html' alt='詳細はこちら'>";
map_data[x]  += "</map>";
x += 1;
image[x]='images/top04.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='28,12,220,232'   href='products/p_shobo.html' alt='消防くん V3'>";
map_data[x]  += "<area shape='rect' coords='231,9,599,58'    href='products/p_shobo.html' alt='消防くん V3'>";
map_data[x]  += "<area shape='rect' coords='606,190,760,218' href='products/p_shobo.html' alt='詳細はこちら'>";
map_data[x]  += "</map>";
x += 1;
image[x]='images/top05.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='0,0,400,240'    href='products/p_neoforcecs.html' alt='ＮｅｏＦｏｒｃｅＣＳ'>";
map_data[x]  += "<area shape='rect' coords='400,0,800,240'  href='products/p_neoforcecsfpe.html' alt='ＮｅｏＦｏｒｃｅＣＳ 消防労務計画'>";
map_data[x]  += "</map>";

x += 1;
image[x]='images/top06.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='0,0,400,240'    href='products/p_wastemanager.html' alt='ウエイストマネージャー'>";
map_data[x]  += "<area shape='rect' coords='400,0,800,240'  href='products/p_waste_demand.html' alt='ウエイストマネージャー 請求書対応版'>";
map_data[x]  += "</map>";
*/
x += 1;
image[x]='images/top08.gif';
map_data[x]   = "<map name='Map'>";
map_data[x]  += "<area shape='rect' coords='0,0,800,240'    href='products/p_sharara_rebo.html' alt='写楽々ＲｅＢｏ'>";
map_data[x]  += "</map>";


function randimage(x)
{
    imgframe.filters.blendTrans.Apply();
    imgframe.filters.blendTrans.duration=time;

//  x=Math.floor(Math.random() * image.length);
    imgnum = x + 1;

    if(imgnum >= image.length)
    {
        imgnum = 0;
    }
    x = imgnum;

    imgframe.src=image[x];
    imgframe.filters.blendTrans.Play();

    buffer  = map_data[x];
    document.getElementById('imgmap').innerHTML = buffer;

    t=setTimeout('randimage('+ x + ')',rtime);
}

