// flash.js 中的代码开始

function ShowControl(ElementID){
 document.getElementById(ElementID).style.display="block";
}

function HideControl(ElementID){
 document.getElementById(ElementID).style.display="none";
}

function InsertFlash(Flash,Width,Height,ID){
 document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");
 document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
 document.write("width=\"" + Width + "\" height=\"" + Height + "\" id=\"" + ID + "\">");
 document.write("<param name=\"movie\" value=\"" + Flash + "\">");
 document.write("<param name=\"quality\" value=\"high\">");
 document.write("<param name=\"wmode\" value=\"transparent\">");
 document.write("<embed src=\"" + Flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" ");
 document.write("type=\"application/x-shockwave-flash\" width=\"" + Width + "\" height=\"" + Height + "\"></embed>");
 document.write("</object>");
}

// flash.js 中的代码结束

// 页面中写入的代码开始

//  说明：先调用本js程序
// <script type="text/javascript" src="flash.js"></script>
// 说明：flash的插入,需要注意,insertflash最后一个属性是ID,在同一个页面中必须是唯一的
// <script type="text/javascript">InsertFlash("images/top.swf",476,158,"top");</script>

// 页面中写入的代码开始

// 层切换效果代码
function changeNewsTab(tabIndex)
    { 
        var t=document.getElementById("new_changage");
        t.style.backgroundImage="url(img/news_"+tabIndex+".gif)";
        
        tabJobCount = 4;
        for (i = 1; i <= tabJobCount; i++)
        {
            var tab = document.getElementById("NewsTab" + i);
            content = document.getElementById("NewsDescription" + i);
          
            if (i == tabIndex)
            {
               var tit=document.getElementById("ctl00_body_title");	//当id=1时,才显示和隐藏 ctl00_body_title
                if(i==1){
                    tit.style.display="block";
                }else{
                    tit.style.display="none";
                }
                tab.className = "ActiveJobTab";
                tab.style.color="white";
                content.className = "ActiveXwJobDescription";
            }
            else
            {
                tab.className = "text12hand";
                tab.style.color="black";
                content.className = "HiddenJobDescription";
            }
        }
    }


