//首页联系方式
function changeDiv(obj,mix,themax,index,divname) 
{
for(i=mix;i<=themax;i++)
{
	if(i==obj)
	  {
			eval("document.getElementById('"+divname+i+"').style.display='block'");
			eval("document.getElementById('objName"+i+"').className='btn01'");
	  }
		else
	  {
			eval("document.getElementById('"+divname+i+"').style.display='none'");
			eval("document.getElementById('objName"+i+"').className='btn02'");
	  }
	}
}
//Flash
function flash(ur,w,h){ //flash
document.write('<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+ur+'">');
document.write('<param name="quality" value="high"> ');
document.write('<param name="wmode" value="transparent"> ');
document.write('<param name="menu" value="false"> ');
document.write('<embed src="'+ur+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="'+w+'" height="'+h+'" quality="High" wmode="transparent">');
document.write('</embed>');
document.write('</object>');
}
function setTab(n,com){
     var tli=document.getElementById(com).getElementsByTagName("a");
      for(i=0;i<tli.length;i++){
           tli[i].className=i==n?"on":"off";
           document.getElementById(com+i).style.display=i==n?"block":"none";
       }
}



function AutoScroll(obj){       //Choose us
        $(obj).find("ul:first").animate({
                marginTop:"-152px"
        },1000,function(){
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
        });
}
$(document).ready(function(){
setInterval('AutoScroll("#scrollDiv")',3000)
});
