<!--

var zxcImgPath='/images/top_image/';

var zxcImgAry=['01.jpg','02.jpg','03.jpg','04.jpg','05.jpg','06.jpg','07.jpg','08.jpg','09.jpg','10.jpg','11.jpg','12.jpg'];

var zxcBObj;

function zxcInitBanner(id,pth,ary,zxcw,zxch){

var zxcp=document.getElementById(id)

zxcp.cnt=0;

zxcp.ary=[];

for (var zxc0=0;zxc0<Math.max(zxcImgAry.length,Math.ceil(zxcp.offsetWidth/zxcw)+1);zxc0++){

zxcp.cnt=++zxcp.cnt%ary.length;

zxcp.ary[zxc0]=document.createElement('IMG');

zxcp.ary[zxc0].src=pth+ary[zxcp.cnt];

zxcStyle(zxcp.ary[zxc0],{position:'absolute',left:(zxcw*zxc0)+'px',top:'0px',width:zxcw+'px',height:zxch+'px'});

zxcp.appendChild(zxcp.ary[zxc0]);

}

zxcp.cnt=0;

zxcp.first=zxcp.ary[zxcp.cnt];

zxcp.last=zxcp.ary[zxcp.ary.length-1];

zxcBObj=zxcp;

setTimeout('zxcRotate()',500);

}



function zxcRotate(){

for (var zxc0=0;zxc0<zxcBObj.ary.length;zxc0++){

zxcBObj.ary[zxc0].style.left=(parseInt(zxcBObj.ary[zxc0].style.left)-1)+'px';

if (parseInt(zxcBObj.first.style.left)+parseInt(zxcBObj.first.style.width)<0){

zxcBObj.first.style.left=(parseInt(zxcBObj.last.style.left)+parseInt(zxcBObj.last.style.width))+'px' ;

zxcBObj.last=zxcBObj.first;

zxcBObj.cnt=++zxcBObj.cnt%zxcBObj.ary.length;

zxcBObj.first=zxcBObj.ary[zxcBObj.cnt];

}

}

setTimeout('zxcRotate()',50);

}

function zxcStyle(zxcele,zxcstyle){

for (key in zxcstyle){ zxcele.style[key]=zxcstyle[key]; }

}

//-->

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}


