var temp;
var selected;
bigclass = new Object();
bigclass['照相机'] = new Array({showName:"EOS数码单反相机",showUrl:"/products/camera/eos/index.html",childs:null},{showName:"EOS胶片单反相机",showUrl:"/products/camera/eos-film/index.html",childs:null},{showName:"EF镜头",showUrl:"/products/camera/ef/index.html",childs:null},{showName:"IXUS数码相机",showUrl:"/products/camera/ixus/index.html",childs:null},{showName:"PowerShot博秀数码相机",showUrl:"/products/camera/powershot/index.html",childs:null},{showName:"SELPHY炫飞",showUrl:"/products/printer/selphy/index.html",childs:null})
bigclass['数码摄像机'] = new Array({showName:"高清数码摄像机",showUrl:"/products/dv/index.html",childs:null},{showName:"标准数码摄像机",showUrl:"/products/dv/index.html",childs:null},{showName:"专业数码摄像机",showUrl:"/products/dv/index.html",childs:null})
bigclass['打印机'] = new Array({showName:"喷墨照片打印机",showUrl:"/products/printer/pixma-photo/index.html?printer",childs:null},{showName:"多功能照片一体机",showUrl:"/products/printer/pixma/index.html?printer",childs:null},{showName:"多功能传真一体机",showUrl:"/products/printer/pixma-fax/index.html?printer",childs:null},{showName:"SELPHY炫飞",showUrl:"/products/printer/selphy/index.html",childs:null},{showName:"LASERSHOT激光打印机",showUrl:"/products/printer/lasershot/index.html?printer",childs:null},{showName:"imagePROGRAF大幅面打印机",showUrl:"/products/pro-printer/imageprograf/index.html?printer",childs:null},{showName:"激光多功能一体机",showUrl:"/products/aio/imageclass/index.html?printer",childs:null},{showName:"激光多功能传真机",showUrl:"/products/fax/laser-fax/index.html?printer",childs:null},{showName:"彩色数码复合机",showUrl:"/products/printer/imagerunnercolor/index.html?printer",childs:null},{showName:"黑白数码复合机",showUrl:"/products/printer/imagerunner/index.html?printer",childs:null},{showName:"彩色数码印刷设备",showUrl:"/products/pro-printer/imagepress/index.html?printer",childs:null})
bigclass['一体机'] = new Array({showName:"PIXMA喷墨多功能照片一体机",showUrl:"/products/printer/pixma/index.html?aio",childs:null},{showName:"PIXMA多功能传真一体机",showUrl:"/products/printer/pixma-fax/index.html?aio",childs:[{showName:'喷墨传真机',showUrl:"/products/fax/inkjet/index.html?fax"},{showName:'激光多功能传真机',showUrl:"/products/fax/laser-fax/index.html?aio"}]},{showName:"激光多功能一体机",showUrl:"/products/aio/imageclass/index.html?aio",childs:null},{showName:"激光多功能传真机",showUrl:"/products/fax/laser-fax/index.html?aio",childs:null},{showName:"彩色数码复合机",showUrl:"/products/printer/imagerunnercolor/index.html?aio",childs:null},{showName:"黑白数码复合机",showUrl:"/products/printer/imagerunner/index.html?aio",childs:null},{showName:"彩色数码印刷设备",showUrl:"/products/pro-printer/imagepress/index.html?aio",childs:null})
bigclass['复印机'] = new Array({showName:"彩色数码复合机",showUrl:"/products/printer/imagerunnercolor/index.html?copier",childs:null},{showName:"黑白数码复合机",showUrl:"/products/printer/imagerunner/index.html?copier",childs:null},{showName:"激光多功能一体机",showUrl:"/products/aio/imageclass/index.html?copier",childs:null},{showName:"便携式复印机",showUrl:"/products/copier/black/index.html?copier",childs:null})
bigclass['扫描仪'] = new Array({showName:"彩色图像扫描仪",showUrl:"/products/scaner/canoscan/index.html?scaner",childs:null},{showName:"专业高速文件扫描仪",showUrl:"/products/scaner/dscanner/index.html?scaner",childs:null},{showName:"多功能照相一体机",showUrl:"/products/printer/pixma/index.html?scaner",childs:null},{showName:"激光多功能一体机",showUrl:"/products/aio/imageclass/index.html?scaner",childs:null},{showName:"彩色数码复合机",showUrl:"/products/printer/imagerunnercolor/index.html?scaner",childs:null},{showName:"黑白数码复合机",showUrl:"/products/printer/imagerunner/index.html?scaner",childs:null})
bigclass['传真机'] = new Array({showName:"激光多功能传真机",showUrl:"/products/fax/laser-fax/index.html?fax",childs:null},{showName:"喷墨传真机",showUrl:"/products/fax/inkjet/index.html?fax",childs:null},{showName:"激光多功能一体机",showUrl:"/products/aio/imageclass/index.html?fax",childs:null},{showName:"彩色数码复合机",showUrl:"/products/printer/imagerunnercolor/index.html?fax",childs:null},{showName:"黑白数码复合机",showUrl:"/products/printer/imagerunner/index.html?fax",childs:null},{showName:"多功能传真一体机",showUrl:"/products/printer/pixma-fax/index.html?fax",childs:null})
bigclass['专业打印设备'] = new Array({showName:"imagePROGRAF大幅面打印机",showUrl:"/products/pro-printer/imageprograf/index.html?pro-printer",childs:null},{showName:"卡片打印机",showUrl:"/products/pro-printer/colorcard/index.html?pro-printer",childs:null},{showName:"彩色数码印刷设备",showUrl:"/products/pro-printer/imagepress/index.html?pro-printer",childs:null},{showName:"黑白数码印刷设备",showUrl:"/products/pro-printer/imagepress/index2.html?pro-printer",childs:null})
bigclass['数码印刷设备'] = new Array({showName:"彩色数码印刷设备",showUrl:"/products/pro-printer/imagepress/index.html?production",childs:null},{showName:"黑白数码印刷设备",showUrl:"/products/pro-printer/imagepress/index2.html?production",childs:null})
bigclass['双眼望远镜'] = new Array()
bigclass['投影机'] = new Array({showName:"LCOS投影机系列",showUrl:"/products/projector/sx/index.html",childs:null},{showName:"多媒体液晶投影机系列",showUrl:"/products/projector/lv/index.html",childs:null})
bigclass['医疗设备'] = new Array({showName:"数字影像系统",showUrl:"/products/heals/dr/index.html",childs:null},{showName:"眼科设备",showUrl:"/products/heals/ophthalmology/index.html",childs:null})
bigclass['耗材'] = new Array()
bigclass['软件'] = new Array({showName:"MEAP iW记账管理软件",showUrl:"/products/software/iwam/index.html",childs:null},{showName:"MEAP IC卡认证功能",showUrl:"/products/software/ic/index.html",childs:null},{showName:"MEAP智能打印机功能",showUrl:"/products/software/sp/index.html",childs:null},{showName:"iWDM文件管理软件",showUrl:"/products/software/iwdm/index.html",childs:null},{showName:"iWPM排版管理软件",showUrl:"/products/software/iwpm/index.html",childs:null})

function set_city(pv, city)
{
  var cv;
  var i, ii;

  cv=city.value;
  city.length=1;
  var subclass = document.getElementById("subclass");
  subclass.length=1;
  subclass.options[0].text ="请选择产品子系列";
  subclass.disabled=false;  

if(pv=='0') return;
if(typeof(bigclass[pv])=='undefined') return;

  for(i=0; i<bigclass[pv].length; i++)
  {
     ii = i+1;
     city.options[ii] = new Option();
     city.options[ii].text = bigclass[pv][i]["showName"];
     city.options[ii].value = bigclass[pv][i]["showUrl"];
	 city.options[ii].childs = bigclass[pv][i]["childs"];
  }
  
}

function set_subclass(city,subclass){
    subclass.length=1;
    var childs = city.options[city.selectedIndex].childs
    if(childs=='0') return; 
	if(childs==null){ 
	 subclass.options[0].text ="没有子系列";
	 subclass.disabled=true;
	 return;
	}
	subclass.disabled=false;
	for(i=0;i<childs.length;i++){
	 ii = i+1;
	 subclass.options[0].text ="请选择产品子系列";
	 subclass.options[ii] = new Option();
     subclass.options[ii].text = childs[i]["showName"];
     subclass.options[ii].value = childs[i]["showUrl"];
	}
}

function jump(){
   var city = document.getElementById("city");
   var province = document.getElementById("province").value;
   if (province=="双眼望远镜"){
	 		window.location.href="/products/telscope/index.html";
	 } else if (province=="耗材"){
	 		window.location.href="http://211.100.29.105/consumable/index.html";
	 } else if(city.selectedIndex == 0){
      alert("请选择产品系列！");
      return false;
   }
   var subclass = document.getElementById("subclass");
   if(subclass.selectedIndex ==0){
       window.location.href=city.options[city.selectedIndex].value;
   }else{
       window.location.href=subclass.options[subclass.selectedIndex].value;
   }
}