
function SetHome(obj){
    var strHref=window.location.href;
    obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.hainet.cn');
}
function AddFavorite(){
    url = "http://club.hainet.cn";
    title = "海网首页";
    window.external.AddFavorite(url,title); 
}
/* slide */
var currslid = 0;
var slidint;
function setfoc(id){
document.getElementById("focpic").src = picarry[id];
document.getElementById("foclnk").href = lnkarry[id];
document.getElementById("fttltxt").innerHTML = "<a href=\""+lnkarry[id]+"\" target=_blank>"+ttlarry[id]+"</a>";
currslid = id;
for(i=0;i<4;i++)
{document.getElementById("tmb"+i).className = "thubpic";
};
document.getElementById("tmb"+id).className ="thubpiccur";
focpic.style.visibility = "hidden";
focpic.filters[0].Apply();
if (focpic.style.visibility == "visible") {
focpic.style.visibility = "hidden";
focpic.filters.revealTrans.transition=12;
}
else {
focpic.style.visibility = "visible";focpic.filters[0].transition=12;
}
focpic.filters[0].Play();
}
function playnext(){
	if(currslid==3){
		currslid = 0;
	}else{
		currslid++;
	};
	setfoc(currslid);
};
function playit(){
	//slidint = setInterval(playnext,3500);
};
function stopit(){
	//clearInterval(slidint);
};

/* news biz active ent xpm */
function change1()
{
  newstt.style.display = "block";
  biztt.style.display = "none";
  activett.style.display = "none";
  enttt.style.display = "none";
  xpmtt.style.display = "none";

  newst.style.display = "block";
  bizt.style.display = "none";
  activet.style.display = "none";
  entt.style.display = "none";
  xpmt.style.display = "none";
}
function change2()
{
  newstt.style.display = "none";
  biztt.style.display = "block";
  activett.style.display = "none";
  enttt.style.display = "none";
  xpmtt.style.display = "none";

  newst.style.display = "none";
  bizt.style.display = "block";
  activet.style.display = "none";
  entt.style.display = "none";
  xpmt.style.display = "none";
}
function change3()
{
  newstt.style.display = "none";
  biztt.style.display = "none";
  activett.style.display = "block";
  enttt.style.display = "none";
  xpmtt.style.display = "none";

  newst.style.display = "none";
  bizt.style.display = "none";
  activet.style.display = "block";
  entt.style.display = "none";
  xpmt.style.display = "none";
}
function change4()
{
  newstt.style.display = "none";
  biztt.style.display = "none";
  activett.style.display = "none";
  enttt.style.display = "block";
  xpmtt.style.display = "none";

  newst.style.display = "none";
  bizt.style.display = "none";
  activet.style.display = "none";
  entt.style.display = "block";
  xpmt.style.display = "none";
}
function change5()
{
  newstt.style.display = "none";
  biztt.style.display = "none";
  activett.style.display = "none";
  enttt.style.display = "none";
  xpmtt.style.display = "block";

  newst.style.display = "none";
  bizt.style.display = "none";
  activet.style.display = "none";
  entt.style.display = "none";
  xpmt.style.display = "block";
}

/* sell vip zt */
function change6()
{
  selltt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  viptt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  zttt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  sellt.style.display = "block";
  vipt.style.display = "none";
  ztt.style.display = "none";
}
function change7()
{
  selltt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  viptt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  zttt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  sellt.style.display = "none";
  vipt.style.display = "block";
  ztt.style.display = "none";
}
function change8()
{
  selltt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  viptt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  zttt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  sellt.style.display = "none";
  vipt.style.display = "none";
  ztt.style.display = "block";
}

/* pet bird fish */
function change9()
{
  pettt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  birdtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  fishtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  pett.style.display = "block";
  birdt.style.display = "none";
  fisht.style.display = "none";
}
function change10()
{
  pettt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  birdtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  fishtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  pett.style.display = "none";
  birdt.style.display = "block";
  fisht.style.display = "none";
}
function change11()
{
  pettt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  birdtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  fishtt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  pett.style.display = "none";
  birdt.style.display = "none";
  fisht.style.display = "block";
}

/* tuya video egao */
function change12()
{
  tuyatt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  videott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  egaott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  tuyat.style.display = "block";
  videot.style.display = "none";
  egaot.style.display = "none";
}
function change13()
{
  tuyatt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  videott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  egaott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  tuyat.style.display = "none";
  videot.style.display = "block";
  egaot.style.display = "none";
}

function change14()
{
  tuyatt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  videott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  egaott.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  tuyat.style.display = "none";
  videot.style.display = "none";
  egaot.style.display = "block";
}

/* bbs space ask */
function change15()
{
  bbstt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  spacett.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  asktt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  bbst.style.display = "block";
  spacet.style.display = "none";
  askt.style.display = "none";
}
function change16()
{
  bbstt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  spacett.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  asktt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  bbst.style.display = "none";
  spacet.style.display = "block";
  askt.style.display = "none";
}
function change17()
{
  bbstt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  spacett.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  asktt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  bbst.style.display = "none";
  spacet.style.display = "none";
  askt.style.display = "block";
}
function change18()
{
  bkt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  ztt2.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  bk.style.display = "block";
  zt.style.display = "none";
}
function change19()
{
  bkt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  ztt2.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  bk.style.display = "none";
  zt.style.display = "block";
}
function change20()
{
  rdppt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";
  zxppt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";

  rdpp.style.display = "block";
  zxpp.style.display = "none";
}
function change21()
{
  rdppt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_4.gif";
  zxppt.background = "http://images.hainet.cn/2007hainet/071224hainet/images/bk_5_3.gif";

  rdpp.style.display = "none";
  zxpp.style.display = "block";
}
function change22()
{
  cwdst.style.display = "block";
  hndst.style.display = "none";
  szdst.style.display = "none";
  
  cwds.style.display = "block";
  hnds.style.display = "none";
  szds.style.display = "none";
}
function change23()
{
  cwdst.style.display = "none";
  hndst.style.display = "block";
  szdst.style.display = "none";
  
  cwds.style.display = "none";
  hnds.style.display = "block";
  szds.style.display = "none";
}
function change24()
{
  cwdst.style.display = "none";
  hndst.style.display = "none";
  szdst.style.display = "block";
  
  cwds.style.display = "none";
  hnds.style.display = "none";
  szds.style.display = "block";
}
function change25()
{
  cwztt.style.display = "block";
  hnztt.style.display = "none";
  szztt.style.display = "none";
  
  cwzt.style.display = "block";
  hnzt.style.display = "none";
  szzt.style.display = "none";
}
function change26()
{
  cwztt.style.display = "none";
  hnztt.style.display = "block";
  szztt.style.display = "none";
  
  cwzt.style.display = "none";
  hnzt.style.display = "block";
  szzt.style.display = "none";
}
function change27()
{
  cwztt.style.display = "none";
  hnztt.style.display = "none";
  szztt.style.display = "block";
  
  cwzt.style.display = "none";
  hnzt.style.display = "none";
  szzt.style.display = "block";
}
function change28()
{
  spt.style.display = "block";
  xct.style.display = "none";
  ypt.style.display = "none";
  
  sp.style.display = "block";
  xc.style.display = "none";
  yp.style.display = "none";
}
function change29()
{
  spt.style.display = "none";
  xct.style.display = "block";
  ypt.style.display = "none";
  
  sp.style.display = "none";
  xc.style.display = "block";
  yp.style.display = "none";
}
function change30()
{
  spt.style.display = "none";
  xct.style.display = "none";
  ypt.style.display = "block";
  
  sp.style.display = "none";
  xc.style.display = "none";
  yp.style.display = "block";
}
function change31()
{
  cwdqt.style.display = "block";
  hndqt.style.display = "none";
  szdqt.style.display = "none";
  
  cwdq.style.display = "block";
  hndq.style.display = "none";
  szdq.style.display = "none";
}
function change32()
{
  cwdqt.style.display = "none";
  hndqt.style.display = "block";
  szdqt.style.display = "none";
  
  cwdq.style.display = "none";
  hndq.style.display = "block";
  szdq.style.display = "none";
}
function change33()
{
  cwdqt.style.display = "none";
  hndqt.style.display = "none";
  szdqt.style.display = "block";
  
  cwdq.style.display = "none";
  hndq.style.display = "none";
  szdq.style.display = "block";
}
function change34()
{
  cwwht.style.display = "block";
  hnwht.style.display = "none";
  szwht.style.display = "none";
  
  cwwh.style.display = "block";
  hnwh.style.display = "none";
  szwh.style.display = "none";
}
function change35()
{
  cwwht.style.display = "none";
  hnwht.style.display = "block";
  szwht.style.display = "none";
  
  cwwh.style.display = "none";
  hnwh.style.display = "block";
  szwh.style.display = "none";
}
function change36()
{
  cwwht.style.display = "none";
  hnwht.style.display = "none";
  szwht.style.display = "block";
  
  cwwh.style.display = "none";
  hnwh.style.display = "none";
  szwh.style.display = "block";
}