﻿// JScript 文件

function show(d1)
{ 
    document.getElementById(d1).style.display='block';  //显示层 
} 

function hide(d1)
{ 
    document.getElementById(d1).style.display='none';  //隐藏层 
} 

var strMenuHtml='<table width=940 cellpadding=0 cellspacing=0 border=0 height=70px>';
    strMenuHtml+='                   <tr height=40px>'
    strMenuHtml+='                        <td rowspan=2 width=200px><a href=index.htm><img src="Images/img_logo.jpg" border=0 width=160px height=80px/></a></td>';
    strMenuHtml+='                        <td width=740px height=40px></td>';
    strMenuHtml+='                    </tr>';
    strMenuHtml+='                    <tr height=30px>';
    strMenuHtml+='                        <td height=30px align=right>';
    strMenuHtml+='                            <table id="Top_Nav" border="0" cellspacing="0" cellpadding="0"  style="font-weight:bolder;">';
    strMenuHtml+='                              <tr>';
    strMenuHtml+='                                  <td width=60>|<a href=index.htm style="text-align:left; padding-left:5px;">Home</a></td>';
    strMenuHtml+='                                  <td width=75>|<a href=about_us.htm style="text-align:left; padding-left:5px;">Company</a></td>';
    strMenuHtml+='                                  <td width=105>|<a href=manufacturing.htm style="text-align:left;padding-left:5px;">Manufacturing</a></td>';
    strMenuHtml+='                                  <td width=85>|<a href=engineering.htm style="text-align:left;padding-left:5px;">Engineering</a></td>';
    strMenuHtml+='                                  <td width=145>|<a href=value-added_services.htm style="text-align:left;padding-left:5px;">Value-Added Services</a></td>';
    strMenuHtml+='                                  <td width=185 onmousemove="show(\'s1\');" onmouseout="hide(\'s1\');">|<a href="#" style="text-align:left;padding-left:5px;">News & General Information</a></td>';
    strMenuHtml+='                                  <td width=85>|<a href=contact.htm style="text-align:left;padding-left:5px;">Contact Us</a></td>';
    strMenuHtml+='                              </tr>';
    strMenuHtml+='                              <tr>'
    strMenuHtml+='                                  <td colspan=5></td>'
    strMenuHtml+='                                  <td colspan=2 onmousemove="show(\'s1\');" onmouseout="hide(\'s1\');">'
    strMenuHtml+='                                      <div id="s1" style="display:none;position:absolute;z-index:2;background-color:#FFFFFF; ">'
    strMenuHtml+='                                          <a href="news.htm"  style="text-align:left; line-height:30px;margin:0 15 0 10;">News Centre</a><br>'
    strMenuHtml+='                                          <a href="general-terms.htm"  style="text-align:left; line-height:0px;margin:0 15 0 10;">General Terms & Conditions of sale</a>'
    strMenuHtml+='                                      </div>';
    strMenuHtml+='                                  </td>'
    strMenuHtml+='                              </tr>'
    strMenuHtml+='                            </table>';
    strMenuHtml+='                        </td>';
    strMenuHtml+='                    </tr>';
    strMenuHtml+='                </table>';
    strMenuHtml+='<table width=940 cellpadding=0 cellspacing=0 border=0 height=210px>';
    strMenuHtml+='                    <tr height=210>';
    strMenuHtml+='                        <td>';
    strMenuHtml+='                            <div id=ww_img_div>';
    strMenuHtml+='                                <a href="javascript:ww.hotlink();">';
    strMenuHtml+='                               <img id=ww_img style="FILTER: blendTrans(Duration=1)"  width=940 height=210 border=0 src="Images/img_index_banner01.jpg"> </A>';
    strMenuHtml+='                               </div>'                      
    strMenuHtml+='                         </td>'
    strMenuHtml+='                    </tr>'
    strMenuHtml+='                </table>';
                            
   var imgUrl=new Array();
   imgUrl[0]="Images/img_index_banner01.jpg";
   imgUrl[1]="Images/img_index_banner02.jpg";
   imgUrl[2]="Images/img_index_banner03.jpg";
    
    var rl=imgUrl.length;
    var pics="";	
    var links="";	
    var texts="";
    var cons="";
    
    ww = new slideshow("ww");
            ww.prefetch = 1;
            ww.sizelmt = true;
            ww.repeat = true;

    for (var i=0;i<rl;i++) 
    {
        s = new slide();
            s.src = "";
            s.title = "";
            s.link = "";
            s.con = "";

        s.src=imgUrl[i];
        ww.add_slide(s);
    }

    for (var i=0; i < ww.slides.length; i++) 
    {
                s = ww.slides[i];
                s.target = "_blank";
    }                             
					
	document.write(strMenuHtml);

    if (document.images) 
    {
        ww.image = document.images.ww_img;
        ww.update();
        ww.play();
    }

                                 
                                 
                                 
                           

