﻿var index_bottom_ann_all_div=document.getElementById("index_bottom_ann_all_div");
var right_ann_big_line_div1=document.getElementById("right_ann_big_line_div1");
var right_ann_big_line_div2=document.getElementById("right_ann_big_line_div2");
var right_ann_big_line_div3=document.getElementById("right_ann_big_line_div3");
var right_ann_big_line_div4=document.getElementById("right_ann_big_line_div4");
var right_ann_big_line_div5=document.getElementById("right_ann_big_line_div5");
var right_ann_big_line_div6=document.getElementById("right_ann_big_line_div6");
var now_click_index_bottom_btn=1;
index_bottom_ann_all_div.onclick=function()
{
   var e;
   e=window.event?window.event:e;
   var srcTemp=e.target?e.target:e.srcElement;
   if(srcTemp.id.substring(16,17)!=""&&srcTemp.id.substring(16,17)!=now_click_index_bottom_btn)
   {  
     if(srcTemp.id=="index_bottom_ann1_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann1.gif")';
       var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div1.style.display="block";
       now_click_index_bottom_btn=1;
     }
          if(srcTemp.id=="index_bottom_ann2_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann2.gif")';
       var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div2.style.display="block";
       now_click_index_bottom_btn=2;
     }
          if(srcTemp.id=="index_bottom_ann3_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann3.gif")';
              var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div3.style.display="block";
       now_click_index_bottom_btn=3;
     }
          if(srcTemp.id=="index_bottom_ann4_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann4.gif")';
              var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div4.style.display="block";
       now_click_index_bottom_btn=4;
     }
          if(srcTemp.id=="index_bottom_ann5_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann5.gif")';
              var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div5.style.display="block";
       now_click_index_bottom_btn=5;
     }
          if(srcTemp.id=="index_bottom_ann6_div")
     {
       var temp=document.getElementById("index_bottom_ann"+now_click_index_bottom_btn.toString()+"_div");
       temp.style.backgroundImage="url(img/ann"+now_click_index_bottom_btn.toString()+"a.gif)";
       srcTemp.style.backgroundImage='url("img/ann6.gif")';
              var temp2=document.getElementById("right_ann_big_line_div"+now_click_index_bottom_btn.toString());
       temp2.style.display="none";
       right_ann_big_line_div6.style.display="block";
       now_click_index_bottom_btn=6;
     }
   }
}
