// 首页图片的显示(UEL要使用绝对路径)JavaScript Document
<!--
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;

imgUrl[1]="images/photo1.gif";
imgLink[1]="http://www.svcg.cn/source/Design_why.htm";
imgUrl[2]="images/photo2.gif";
imgLink[2]="http://www.svcg.cn/source/Design_why.htm";
imgUrl[3]="images/photo3.gif";
imgLink[3]="http://www.svcg.cn/source/GraphicsDesignCompany.htm";

var imgPre=new Array();
var j=0;
for (i=0;i<=2;i++) { if(imgLink[i]!="") {j++;}
  else {break;}}function playTran(){ 
  if (document.all)
    imgInit.filters.revealTrans.play();}
    var key=0;function nextAd(){ if(adNum<j)adNum++ ; 
  else adNum=1;  
  if( key==0 ){key=1;}
    else if (document.all){  imgInit.filters.revealTrans.Transition=24;
      imgInit.filters.revealTrans.apply();
              playTran(); } document.images.imgInit.src=imgUrl[adNum]; 
              jumpUrl=imgLink[adNum]; 
              theTimer=setTimeout("nextAd()", 4000);}
              function goUrl(){  jumpTarget='_blank'; 
              if (jumpUrl != ''){
              if (jumpTarget != '') window.open(jumpUrl,jumpTarget);  
              else location.href=jumpUrl; }}
//-->

// 意向合作的展开动作JavaScript Document
if (document.getElementById){ //动作
<!--
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
 if(document.getElementById){
 var el = document.getElementById(obj);
 var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //动作
  if(el.style.display != "block"){ //动作
   for (var i=0; i<ar.length; i++){
    if (ar[i].className=="submenu") //动作
    ar[i].style.display = "none";
   }
   el.style.display = "block";
  }else{
   el.style.display = "none";
  }
 }
}
//-->

// 图片渐进显示JavaScript Document
<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",40)
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}
//-->

// 按钮图片渐进显示JavaScript Document
if ((navigator.appName.indexOf('Microsoft')+1)) {
document.write('<style type="text/css"> .opacity1 {filter:alpha(opacity=80)} .opacity2 {filter:alpha(opacity=100)} </style>'); }
if ((navigator.appName.indexOf('Netscape')+1)) {
document.write('<style type="text/css"> .opacity1 {-moz-opacity:0.5} .opacity2 {-moz-opacity:1} </style>'); }
else {
document.write(''); }
//-->

//首页滚动字幕
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

//作品选择导航菜单
<!-- 
function MM_jumpMenu(targ,selObj,restore){ //v3.0 
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); 
if (restore) selObj.selectedIndex=0; 
} 
//--> 

//隐藏与展开留言板菜单
function menuIn() //菜单隐藏
{
        if(n4) {
                clearTimeout(out_ID)
                if( menu.top > menuH*-1+20+10 ) {  
                        menu.top -= 8
                        in_ID = setTimeout("menuIn()", 1)
                }
                else if( menu.top > menuH*-1+20 ) {
                        menu.top--
                        in_ID = setTimeout("menuIn()", 1)
                }
        }
        else { 
                clearTimeout(out_ID)
                if( menu.pixelTop > menuH*-1+20+10 ) {
                        menu.pixelTop -= 8
                        in_ID = setTimeout("menuIn()", 1) 
                }
                else if( menu.pixelTop > menuH*-1+20 ) {
                        menu.pixelTop--
                        in_ID = setTimeout("menuIn()", 1)
                }
        }
}
function menuOut() //菜单显示
{
        if(n4) {
                clearTimeout(in_ID)
                if( menu.top < -10) { 
                        menu.top += 4
                        out_ID = setTimeout("menuOut()", 1)
                }
                else if( menu.top < 0) { 
                        menu.top++
                        out_ID = setTimeout("menuOut()", 1)
                }
                
        }
        else { 
                clearTimeout(in_ID)
                if( menu.pixelTop < -10) {
                        menu.pixelTop += 2
                        out_ID = setTimeout("menuOut()", 1)
                }
                else if( menu.pixelTop < 0 ) {
                        menu.pixelTop++
                        out_ID = setTimeout("menuOut()", 1)
                }
        }
}
function fireOver() { 
        clearTimeout(F_out)	       
        F_over = setTimeout("menuOut()", 10) 
}
function fireOut() { 
        clearTimeout(F_over)
         F_out = setTimeout("menuIn()", 10)
}
function init() {
        if(n4) {
                menu = document.D1
                menuH = menu.document.height
                menu.tāop = menu.document.height*-1+20 
                menu.onmouseover = menuOut
                menu.onmouseout = menuIn
		menu.visibility = "visible"
        }
        else if(e4) {
                menu = D1.style
                menuH = D1.offsetHeight
                D1.style.pixelTop = D1.offsetHeight*-1+20
                D1.onmouseover = fireOver
                D1.onmouseout = fireOut
                D1.style.visibility = "visible"
        }
}
F_over=F_out=in_ID=out_ID=null
n4 = (document.layers)?1:0
e4 = (document.all)?1:0;
//--> 
//预约信息收合模块------------------------------------------------
function expandCollapse(elem, changeImage)
{
    if (document.getElementById)
    {
        ecBlock = document.getElementById(elem);

        if (ecBlock != undefined && ecBlock != null)
        {
            if (changeImage)
            {
                //获得相关的形象
                elemImage = document.getElementById(elem + "Image");
            }

            //确保图像是好的
            if (!changeImage || (elemImage != undefined && elemImage != null))
            {
                if (ecBlock.currentStyle.display == "none" || ecBlock.currentStyle.display == null || ecBlock.currentStyle.display == "")
                {
                    //显示的信息。
                    ecBlock.style.display = "block";
                    if (changeImage)
                    {
                        //折叠隐藏信息改变形象图像 "collapse"
                        elemImage.src = "../images/up.png";
                    }
                }
                else if (ecBlock.currentStyle.display == "block")
                {
                    //隐藏信息
                    ecBlock.style.display = "none";
                    if (changeImage)
                    {
                        //打开模式时形象图形改变。 "expand"
                        elemImage.src = "../images/down.png";
                    }
                }
                else
                {
                    //catch any weird circumstances.发现任何奇怪的情况。
                    ecBlock.style.display = "block";
                    if (changeImage)
                    {
                        elemImage.src = "../images/up.png";
                    }
                }
            }//结束图像改变
        }//结束返回
    }//结束ID
}//结束折叠-------------------------
