﻿// JScript 文件

var oImg 
function fiximgwin(surl,w,h){ 
if(arguments.length==1){        //如果图像大小未定义 
     oImg=new Image()             //创建图像对象 
     oImg.src=surl                 //设置图像源 
     Size(surl)                    //调用Size函数获取图像尺寸 
} 
//如果已取得图像尺寸，打开固定大小的窗口 
else window.open(surl,"sPIC","width="+w+",height="+h) 
} 
function Size(surl){ 
if(oImg.width&&oImg.height)        //如果已取得图像尺寸 
//将图像尺寸加上一定尺寸后返回给fiximgwin()函数， 
//其中18和25的表现见下图右下角所示 
fiximgwin(surl,oImg.width+18,oImg.height+25)   
else setTimeout("Size(surl)",10) 
}

function mmLoadMenus() {
  if (window.mm_menu_0516184615_0) return;
                    window.mm_menu_0516184615_0 = new Menu("root",145,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516184615_0.addMenuItem("About Olycom","location='../about/default.html'");
  mm_menu_0516184615_0.addMenuItem("Factory environment","location='../about/plant.html'");
  mm_menu_0516184615_0.addMenuItem("Enterprise culture","location='../about/culture.html'");
  mm_menu_0516184615_0.addMenuItem("Product idea","location='../about/concept.html'");
  mm_menu_0516184615_0.addMenuItem("Enterprise honor","location='../about/honour.html'");
  mm_menu_0516184615_0.addMenuItem("Contact Us","location='../about/contact.html'");
   mm_menu_0516184615_0.hideOnMouseOut=true;
   mm_menu_0516184615_0.bgColor='#F9F9F9';
   mm_menu_0516184615_0.menuBorder=1;
   mm_menu_0516184615_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516184615_0.menuBorderBgColor='#CDCDCD';

    window.mm_menu_0516193225_0 = new Menu("root",185,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516193225_0.addMenuItem("Fiber media converter","location='../products/list_41_1.html'");
  mm_menu_0516193225_0.addMenuItem("Video Optical Transmitter","location='../products/list_39_1.html'");
  mm_menu_0516193225_0.addMenuItem("Fiber Switch","location='../products/list_40_1.html'");
  mm_menu_0516193225_0.addMenuItem("Network Booster","location='../products/list_38_1.html'");
  mm_menu_0516193225_0.addMenuItem("Fiber LAN Card","location='../products/list_31_1.html'");
  mm_menu_0516193225_0.addMenuItem("PDH Multiplexer","location='../products/list_37_1.html'");
  mm_menu_0516193225_0.addMenuItem("Protocol Converter","location='../products/list_35_1.html'");
  mm_menu_0516193225_0.addMenuItem("Passive Optical Products","location='../products/list_34_1.html'");
  mm_menu_0516193225_0.addMenuItem("GBIC/SFP Transceiver","location='../products/list_30_1.html'");
  mm_menu_0516193225_0.addMenuItem("Instrument","location='../products/list_42_1.html'");
  
   mm_menu_0516193225_0.hideOnMouseOut=true;
   mm_menu_0516193225_0.bgColor='#F9F9F9';
   mm_menu_0516193225_0.menuBorder=1;
   mm_menu_0516193225_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516193225_0.menuBorderBgColor='#CDCDCD';

  window.mm_menu_0516194354_0 = new Menu("root",135,18,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516194354_0.addMenuItem("Successful Cases","location='../case/default.html'");
  mm_menu_0516194354_0.addMenuItem("Solutions","location='../case/solutions.html'");
   mm_menu_0516194354_0.hideOnMouseOut=true;
   mm_menu_0516194354_0.bgColor='#F9F9F9';
   mm_menu_0516194354_0.menuBorder=1;
   mm_menu_0516194354_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516194354_0.menuBorderBgColor='#CDCDCD';

    window.mm_menu_0516194612_0 = new Menu("root",120,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516194612_0.addMenuItem("Industry News","location='../news/default_77_1.html'");
  mm_menu_0516194612_0.addMenuItem("Company News","location='../news/default_78_1.html'");
  mm_menu_0516194612_0.addMenuItem("Exhibittion","location='../news/default_79_1.html'");
  mm_menu_0516194612_0.addMenuItem("AD Gallery","location='../news/default_80_1.html'");
  mm_menu_0516194612_0.addMenuItem("Supply Info ","location='../news/s_d_1_1.html'");
  mm_menu_0516194612_0.addMenuItem("buy info","location='../news/s_d_0_1.html'");
   mm_menu_0516194612_0.hideOnMouseOut=true;
   mm_menu_0516194612_0.bgColor='#F9F9F9';
   mm_menu_0516194612_0.menuBorder=1;
   mm_menu_0516194612_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516194612_0.menuBorderBgColor='#CDCDCD';

      window.mm_menu_0516194900_0 = new Menu("root",145,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516194900_0.addMenuItem("Technique Support","location='../technology/default.html'");
  mm_menu_0516194900_0.addMenuItem("Partnership Support","location='../technology/info.html'");
   mm_menu_0516194900_0.hideOnMouseOut=true;
   mm_menu_0516194900_0.bgColor='#F9F9F9';
   mm_menu_0516194900_0.menuBorder=1;
   mm_menu_0516194900_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516194900_0.menuBorderBgColor='#CDCDCD';

    window.mm_menu_0516201724_0 = new Menu("root",150,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516201724_0.addMenuItem("Performance Pledge","location='../service/default.html'");
  mm_menu_0516201724_0.addMenuItem("FAQ","location='../service/faq.html'");
  mm_menu_0516201724_0.addMenuItem("Feedback","location='../service/feedback.html'");
   mm_menu_0516201724_0.hideOnMouseOut=true;
   mm_menu_0516201724_0.bgColor='#F9F9F9';
   mm_menu_0516201724_0.menuBorder=1;
   mm_menu_0516201724_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516201724_0.menuBorderBgColor='#CDCDCD';

    window.mm_menu_0516201953_0 = new Menu("root",125,22,"",12,"#000000","#000000","#F9F9F9","#E7E7E7","left","middle",5,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0516201953_0.addMenuItem("Talents Strategic","location='../hr/default.html'");
  mm_menu_0516201953_0.addMenuItem("Recruit","location='../hr/recruit.html'");
   mm_menu_0516201953_0.hideOnMouseOut=true;
   mm_menu_0516201953_0.bgColor='#F9F9F9';
   mm_menu_0516201953_0.menuBorder=1;
   mm_menu_0516201953_0.menuLiteBgColor='#F9F9F9';
   mm_menu_0516201953_0.menuBorderBgColor='#CDCDCD';

mm_menu_0516201953_0.writeMenus();
} // mmLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

