﻿var imgarray=new Array(); 
var textarray=new Array(); 
var linkarray=new Array(); 
imgarray[0]=new Array("/files/image/indexBanner/ad_img_1.jpg");
textarray[0]=new Array("");
linkarray[0]=new Array("gaoliang.html");
imgarray[1]=new Array("/files/image/indexBanner/ad_img_2.jpg");
textarray[1]=new Array("艾比森第八届广州国际LED光电展览会");
linkarray[1]=new Array("gzled2012/");
imgarray[2]=new Array("/files/image/indexBanner/ad_img_3.jpg");
textarray[2]=new Array("艾比森全球渠道合作加盟");
linkarray[2]=new Array("zhaoshang.html");
imgarray[3]=new Array("/files/image/indexBanner/ad_img_4.jpg");
textarray[3]=new Array("第64届法兰克福车展 艾比森户内全彩LED显示屏(MI069)为奔驰添光");
linkarray[3]=new Array("Frankfurt-Motor-Show.html");
imgarray[4]=new Array("/files/image/indexBanner/ad_img_5(1).jpg");
textarray[4]=new Array("");
linkarray[4]=new Array("0sf.html");
document.write('<input type="hidden" id="adimgnums" name="adimgnums" value="5" />');
document.write('<div id="bigimg" class="ad_bigimg"><a id="bigimg_url" target="_blank" href="gaoliang.html"><img id="bigimg2" title="" border="0" alt="" src="/files/image/indexBanner/ad_img_1.jpg" /></a></div>');
document.write('<div class="btn_div">');
document.write('<div id="ifocus_btn">');
document.write('<ul>');
document.write('<li id="smallBox_1" class="current" onmousemove="mousesetcls(1,5)" onmouseout="mouseout()"><a id="href_1" target="_blank"  href="gaoliang.html"><img title="" border="0" alt="" width="101" height="36" src="/files/image/indexBanner/ad_img_1.jpg" /></a></li>');
document.write('<li id="smallBox_2" class="normal" onmousemove="mousesetcls(2,5)" onmouseout="mouseout()"><a id="href_2" target="_blank"  href="gzled2012/"><img title="艾比森第八届广州国际LED光电展览会" border="0" alt="艾比森第八届广州国际LED光电展览会" width="101" height="36" src="/files/image/indexBanner/ad_img_2.jpg" /></a></li>');
document.write('<li id="smallBox_3" class="normal" onmousemove="mousesetcls(3,5)" onmouseout="mouseout()"><a id="href_3" target="_blank"  href="zhaoshang.html"><img title="艾比森全球渠道合作加盟" border="0" alt="艾比森全球渠道合作加盟" width="101" height="36" src="/files/image/indexBanner/ad_img_3.jpg" /></a></li>');
document.write('<li id="smallBox_4" class="normal" onmousemove="mousesetcls(4,5)" onmouseout="mouseout()"><a id="href_4" target="_blank"  href="Frankfurt-Motor-Show.html"><img title="第64届法兰克福车展 艾比森户内全彩LED显示屏(MI069)为奔驰添光" border="0" alt="第64届法兰克福车展 艾比森户内全彩LED显示屏(MI069)为奔驰添光" width="101" height="36" src="/files/image/indexBanner/ad_img_4.jpg" /></a></li>');
document.write('<li id="smallBox_5" class="normal" onmousemove="mousesetcls(5,5)" onmouseout="mouseout()"><a id="href_5" target="_blank"  href="0sf.html"><img title="" border="0" alt="" width="101" height="36" src="/files/image/indexBanner/ad_img_5(1).jpg" /></a></li>');
document.write('</ul>');
document.write('</div>');
document.write('</div>');
var pubdex=0;
var oTimer = null;
var maxnum=0;
function mousesetcls(dex,maxdex)
{
  window.clearInterval(oTimer);
  setcls(dex,maxdex);
}
function setcls(dex,maxdex)
{
  pubdex=dex;
  var j=0;
  for (var i=1;i<=maxdex;i++)
  {
    j=i-1;
    if (i==dex)
    {
      document.getElementById("smallBox_"+i).className="current";
      document.getElementById("bigimg2").src=imgarray[j];
      document.getElementById("bigimg_url").href= document.getElementById("href_"+dex).href
    }
   else
   {
     document.getElementById("smallBox_"+i).className="normal";
   }
 }
}
function autosetcls()
{
  var thisdex=pubdex+1;
  if (thisdex>maxnum)
  {
     thisdex =1;
  }
  setcls(thisdex,maxnum)
}
function doautosetcls()
{
  if (!document.getElementById("bigimg")) return;
  oTimer=setInterval('autosetcls()',5000);
maxnum=document.getElementById("adimgnums").value*1;
}
function InitBtn()
{
   for(var dex=1;dex<=maxnum;dex++)
    {
      document.getElementById("smallBox_"+dex).style.backgroundImage="url("+smallarr[dex]+")";
    }
}
function mouseout()
{
   window.clearInterval(oTimer);
   doautosetcls();
}
function adgourl()
{
  window.location.href=document.getElementById("linkurl").value;	
}
function setbigimg(str,str2)
{
document.getElementById("bigimg").src=str;
}

