// JavaScript Document
var tid,s=0,nid,ns=0;

function ch_dis(id){
	hidden();
	document.getElementById("u1").style.display="none";	
	document.getElementById("a1").style.backgroundImage="url(/style/build/images/main_ico01.gif)"
	document.getElementById("u2").style.display="none";	
	document.getElementById("a2").style.backgroundImage="url(/style/build/images/main_ico01.gif)"
	if(s==0||tid!=id){
	    document.getElementById("u"+id).style.display="block";	
	    document.getElementById("a"+id).style.backgroundImage="url(/style/build/images/main_ico03.gif)";
	    tid=id;
	    s=1;
	    if (id==1|| id==2)
	    {
	    document.getElementById("u"+id).style.display="block";	
	    document.getElementById("a"+id).style.backgroundImage="url(/style/build/images/main_ico03.gif)"; 	
 }
	}
		
	s=0;
	
	
    }
function ch_dis2(id){
	hidden();
	document.getElementById("u1").style.display="none";	
	document.getElementById("a1").style.backgroundImage="url(/style/build/images/main_ico01_0223.gif)"
	document.getElementById("u2").style.display="none";	
	document.getElementById("a2").style.backgroundImage="url(/style/build/images/main_ico01_0223.gif)"
	if(s==0||tid!=id){
	    document.getElementById("u"+id).style.display="block";	
	    document.getElementById("a"+id).style.backgroundImage="url(/style/build/images/main_ico03_0223.gif)";
	    tid=id;
	    s=1;
	    if (id==1|| id==2)
	    {
	    document.getElementById("u"+id).style.display="block";	
	    document.getElementById("a"+id).style.backgroundImage="url(/style/build/images/main_ico03_0223.gif)"; 	
 }
	}
		
	s=0;
	
	
    }

function hidden2(){
	for(i=1;i<=9;i++){
		document.getElementById("u"+i).style.display="none";
		document.getElementById("a"+i).style.backgroundImage="url(/style/build/images/main_ico01_0223.gif)";
		if (i==1 || i==2)
		{
		document.getElementById("u"+i).style.display="block";	
	    document.getElementById("a"+i).style.backgroundImage="url(/style/build/images/main_ico03_0223.gif)";}
		}
	}
    
function hidden(){
	for(i=1;i<=9;i++){
		document.getElementById("u"+i).style.display="none";
		document.getElementById("a"+i).style.backgroundImage="url(/style/build/images/main_ico01.gif)";
		if (i==1 || i==2)
		{
		document.getElementById("u"+i).style.display="block";	
	    document.getElementById("a"+i).style.backgroundImage="url(/style/build/images/main_ico03.gif)";}
		}
	}
window.onload=function(){
	hidden();
	 showli(1,1,7);
	//hidden2(1,7);
	//hidden2(11,17)
	//hidden2(111,117)
	//sh(1);
	}
function hidden2(st,en){
	for(j=st;j<=en;j++){
		document.getElementById("n"+j).style.display="none";
		document.getElementById("nL"+j).style.display="block";
		}
	}
function showli(lid,start,end){
	hidden2(start,end);
	if(ns==0||nid!=lid){
	document.getElementById("n"+lid).style.display="block";	
	document.getElementById("nL"+lid).style.display="none";
	nid=lid;
	ns=1;
	 if (lid==1)
	    {
	    document.getElementById("n"+lid).style.display="block";	
	    document.getElementById("nL"+lid).style.backgroundImage="url(/style/build/images/main_ico03.gif)";
    	

	    }
	
	
	
	}else{
		ns=0;
		}
	}
function sh(sid){
    if (document.getElementById("uml1") && document.getElementById("uml1") != null)
	    document.getElementById("uml1").style.display="none";
	if (document.getElementById("uml2") && document.getElementById("uml2") != null)
	    document.getElementById("uml2").style.display="none";
	if (document.getElementById("uml3") && document.getElementById("uml3") != null)
	    document.getElementById("uml3").style.display="none";
	if (document.getElementById("uml") && document.getElementById("uml") != null)
	    document.getElementById("uml"+sid).style.display="block";
	}
	
	
	function ScrollImgLeft(){
var speed=20
var scroll_begin = document.getElementById("scroll_begin");
var scroll_end = document.getElementById("scroll_end");
var scroll_div = document.getElementById("scroll_div");
scroll_end.innerHTML=scroll_begin.innerHTML
  function Marquee(){
    if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
      scroll_div.scrollLeft-=scroll_begin.offsetWidth
    else
      scroll_div.scrollLeft++
  }
var MyMar=setInterval(Marquee,speed)
  scroll_div.onmouseover=function() {clearInterval(MyMar)}
  scroll_div.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
}

function fixPNG(myImage) {     var arVersion = navigator.appVersion.split("MSIE");     var version = parseFloat(arVersion[1]);      if ((version >= 5.5) && (version < 7) && (document.body.filters))     {         var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";         var imgClass = (myImage.className) ? " " : "";         var imgTitle = (myImage.title) ? "title='" + myImage.title   + "' " : "title='" + myImage.alt + "' ";         var imgStyle = "display:inline-block;" + myImage.style.cssText;         var strNewHTML = "<span " + imgID + imgClass + imgTitle              + " style=\"" + "width:" + myImage.width              + "px; height:" + myImage.height              + "px;" + imgStyle + ";"              + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"              + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";          myImage.outerHTML = strNewHTML;     } } 

function useSwf(swfUrl,swfW,swfH,wmode,swfID)
{
	if(swfID){idStr='id='+swfID}else{idStr=''}
	if(wmode){
		wmodeStr1='<param name="wmode" value="transparent" />'
		wmodeStr2='wmode=transparent'
	} else {
		wmodeStr1='';
		wmodeStr2='';
	}
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" '+idStr+' width='+swfW+' height='+swfH+'>')
	document.write('<param name="movie" value="'+swfUrl+'" />')
	document.write('<param name="menu" value="false" />')
	document.write('<param name="quality" value="high" />')
	document.write(wmodeStr1)
	document.write('<embed src="'+swfUrl+'" width='+swfW+' height='+swfH+' '+idStr+' '+wmodeStr2+' menu=false quality=high type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
	document.write('</object>')
}

 function copyAddress(){
    var clipBoardContent="";
    clipBoardContent+=this.location.href;
    window.clipboardData.setData("Text",clipBoardContent);
    alert("���Ƴɹ�");
  }