﻿// JScript 文件

function njlopen(){
    var ie_ver=window.navigator.appVersion.substr(22,1)   
    var height="";
    if(ie_ver=="7")
        height="660px"
    else  
        height="720px";

	window.showModelessDialog('http://www.wzta.gov.cn/zhuanti/njl/',window,'dialogTop:0px;dialogLeft:0px;dialogwidth:1010px;dialogheight:'+height+'');
}
function mmLoadMenus() {
  if (window.mm_menu_0618184345_0) return;
   window.mm_menu_0618184345_0 = new Menu("root",89,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618184345_0.addMenuItem("旅游局简介","window.open('http://www.wzta.gov.cn/aboutus/aboutus.aspx','_blank');");
   mm_menu_0618184345_0.addMenuItem("机构设置","window.open('http://www.wzta.gov.cn/aboutus/dzjg.aspx?jgsz','_blank');");
   mm_menu_0618184345_0.addMenuItem("联系我们","window.open('http://www.wzta.gov.cn/aboutus/lxwm.aspx','_blank');");
   mm_menu_0618184345_0.addMenuItem("温州概览","window.open('http://www.wzta.gov.cn/wzgl.html','_blank');");
   mm_menu_0618184345_0.hideOnMouseOut=true;
   mm_menu_0618184345_0.bgColor='#555555';
   mm_menu_0618184345_0.menuBorder=0;
   mm_menu_0618184345_0.menuLiteBgColor='';
   mm_menu_0618184345_0.menuBorderBgColor='';
   window.mm_menu_0618195114_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618195114_0.addMenuItem("温州动态","window.open('http://www.wzta.gov.cn/xwdt/list-3.html','_blank');");
   mm_menu_0618195114_0.addMenuItem("浙江动态","window.open('http://www.wzta.gov.cn/xwdt/list-71.html','_blank');");
   mm_menu_0618195114_0.addMenuItem("国内动态","window.open('http://www.wzta.gov.cn/xwdt/list-70.html','_blank');");
   mm_menu_0618195114_0.addMenuItem("国际动态","window.open('http://www.wzta.gov.cn/xwdt/list-69.html','_blank');");
   mm_menu_0618195114_0.addMenuItem("区县动态","window.open('http://www.wzta.gov.cn/xwdt/local-54.html','_blank');");
   mm_menu_0618195114_0.hideOnMouseOut=true;
   mm_menu_0618195114_0.bgColor='#555555';
   mm_menu_0618195114_0.menuBorder=0;
   mm_menu_0618195114_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618195114_0.menuBorderBgColor='#777777';
   window.mm_menu_0618203405_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618203405_0.addMenuItem("通知公告","window.open('http://www.wzta.gov.cn/zwgk/list-10.html','_blank');");   
   mm_menu_0618203405_0.addMenuItem("政策法规","window.open('http://www.wzta.gov.cn/zwgk/list-8.html','_blank');");
   mm_menu_0618203405_0.addMenuItem("统计调研","window.open('http://www.wzta.gov.cn/zwgk/list-11.html','_blank');");
   mm_menu_0618203405_0.addMenuItem("旅游质监","window.open('http://www.wzta.gov.cn/zwgk/list-12.html','_blank');");   
   mm_menu_0618203405_0.hideOnMouseOut=true;
   mm_menu_0618203405_0.bgColor='#555555';
   mm_menu_0618203405_0.menuBorder=0;
   mm_menu_0618203405_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618203405_0.menuBorderBgColor='#777777';

   window.mm_menu_0618203552_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618203552_0.addMenuItem("局长信箱","window.open('http://www.wzta.gov.cn/hdjl/jzxx.aspx','_blank');");
   mm_menu_0618203552_0.addMenuItem("旅游投诉","window.open('http://www.wzta.gov.cn/hdjl/lyts.aspx','_blank');");
   mm_menu_0618203552_0.addMenuItem("在线调查","window.open('http://www.wzta.gov.cn/hdjl/zxdc.aspx','_blank');");   
   mm_menu_0618203552_0.hideOnMouseOut=true;
   mm_menu_0618203552_0.bgColor='#555555';
   mm_menu_0618203552_0.menuBorder=0;
   mm_menu_0618203552_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618203552_0.menuBorderBgColor='#777777';
   window.mm_menu_0618203650_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618203650_0.addMenuItem("培训中心","window.open('http://www.wzttc.com', '_blank');");
   mm_menu_0618203650_0.addMenuItem("导服中心","window.open('http://www.wzttc.com/news2/', '_blank');");
   mm_menu_0618203650_0.addMenuItem("人才交流","window.open('http://www.wzttc.com/jobs/', '_blank');");
   mm_menu_0618203650_0.hideOnMouseOut=true;
   mm_menu_0618203650_0.bgColor='#555555';
   mm_menu_0618203650_0.menuBorder=0;
   mm_menu_0618203650_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618203650_0.menuBorderBgColor='#777777';
   window.mm_menu_0618203749_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618203749_0.addMenuItem("游在温州","window.open('http://www.wzta.gov.cn/lyzn/jq-2.aspx','_blank');");
   mm_menu_0618203749_0.addMenuItem("住在温州","window.open('http://www.wzta.gov.cn/lyzn/Hotel-2.aspx','_blank');");
   mm_menu_0618203749_0.addMenuItem("娱乐温州","window.open('http://www.wzta.gov.cn/lyzn/cyyr_list.aspx?type=1','_blank');");
   mm_menu_0618203749_0.addMenuItem("美食温州","window.open('http://www.wzta.gov.cn/lyzn/cyyr_list.aspx?type=2','_blank');");
   mm_menu_0618203749_0.addMenuItem("购物温州","window.open('http://www.wzta.gov.cn/lyzn/lygw_list.aspx','_blank');");
   mm_menu_0618203749_0.addMenuItem("文化温州","window.open('http://www.wzta.gov.cn/lyzn/rwls_list.aspx','_blank');");
   mm_menu_0618203749_0.hideOnMouseOut=true;
   mm_menu_0618203749_0.bgColor='#555555';
   mm_menu_0618203749_0.menuBorder=0;
   mm_menu_0618203749_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618203749_0.menuBorderBgColor='#777777';
   window.mm_menu_0711130911_0 = new Menu("root",60,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,true);
   mm_menu_0711130911_0.addMenuItem("交通地图","window.open('http://61.130.7.232:7001/1024/index.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("电子地图","window.open('http://www.51ditu.com/maps/maps_search.html?c=%E6%B8%A9%E5%B7%9E', '_blank');");
   mm_menu_0711130911_0.addMenuItem("瑞安市","window.open('http://www.wzta.gov.cn/img/map/ruian.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("永嘉县","window.open('http://www.wzta.gov.cn/img/map/yongjia.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("乐清市","window.open('http://www.wzta.gov.cn/img/map/yueqing.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("文成县","window.open('http://www.wzta.gov.cn/img/map/wencheng.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("平阳县","window.open('http://www.wzta.gov.cn/img/map/pingyang.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("苍南县","window.open('http://www.wzta.gov.cn/img/map/cangnan.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("洞头县","window.open('http://www.wzta.gov.cn/img/map/dongtou.htm', '_blank');");
   mm_menu_0711130911_0.addMenuItem("泰顺县","window.open('http://www.wzta.gov.cn/img/map/taishun.htm', '_blank');");
   mm_menu_0711130911_0.hideOnMouseOut=true;
   mm_menu_0711130911_0.bgColor='#555555';
   mm_menu_0711130911_0.menuBorder=0;
   mm_menu_0711130911_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0711130911_0.menuBorderBgColor='#777777';
   window.mm_menu_0712142257_0 = new Menu("root",89,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,true);
   mm_menu_0712142257_0.addMenuItem("办事指南","window.open('http://www.wzta.gov.cn/zxfw/list.aspx?type=9', '_blank');");
   mm_menu_0712142257_0.addMenuItem("表格下载","window.open('http://www.wzta.gov.cn/zxfw/list.aspx?type=13', '_blank');"); 
   mm_menu_0712142257_0.addMenuItem("网上咨询","window.open('http://www.wzta.gov.cn/zxfw/wszx.aspx', '_blank');");
   mm_menu_0712142257_0.addMenuItem("在线申报","window.open('http://www.tourzj.gov.cn/projectitem/Travel/Travel/TravelLogin.aspx', '_blank');");   
   mm_menu_0712142257_0.addMenuItem("状态查询","window.open('http://www.tourzj.gov.cn/projectitem/Travel/Travel/TravelLogin.aspx', '_blank');");
   mm_menu_0712142257_0.hideOnMouseOut=true;
   mm_menu_0712142257_0.bgColor='#555555';
   mm_menu_0712142257_0.menuBorder=0;
   mm_menu_0712142257_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0712142257_0.menuBorderBgColor='#777777';
   window.mm_menu_0618203915_0 = new Menu("root",76,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0618203915_0.addMenuItem("精彩视频","window.open('http://www.wzta.gov.cn/sp/sp.aspx','_blank');");
   mm_menu_0618203915_0.addMenuItem("图游温州","window.open('http://www.wzta.gov.cn/dywz/index.htm','_blank');");
   
   mm_menu_0618203915_0.hideOnMouseOut=true;
   mm_menu_0618203915_0.bgColor='#555555';
   mm_menu_0618203915_0.menuBorder=0;
   mm_menu_0618203915_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0618203915_0.menuBorderBgColor='#777777'
  
   
   window.mm_menu_0811270927_0 = new Menu("root",89,24,"",12,"#ffffff","#FFDE00","#5989BE","#5989BE","center","middle",3,0,10000,-5,7,true,false,false,0,true,false);
   mm_menu_0811270927_0.addMenuItem("景区票务","window.open('http://www.wzttc.com', '_blank');");
   mm_menu_0811270927_0.addMenuItem("酒店预订","window.open('http://www.wzttc.com/news2/', '_blank');");
   mm_menu_0811270927_0.hideOnMouseOut=true;
   mm_menu_0811270927_0.bgColor='#555555';
   mm_menu_0811270927_0.menuBorder=0;
   mm_menu_0811270927_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0811270927_0.menuBorderBgColor='#777777';
   
   mm_menu_0811270927_0.writeMenus();

} // mmLoadMenus()

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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];}
}
 function changeJobTab(tabIndex)
    { 
        var t=document.getElementById("zwgk_change");
        t.style.backgroundImage="url(img/zwgksq/"+tabIndex+".gif)";
        
        tabJobCount = 5;
        for (i = 1; i <= tabJobCount; i++)
        {
            var tab = document.getElementById("JobTab" + i);
            content = document.getElementById("JobDescription" + i);
          
            if (i == tabIndex)
            {
                tab.className = "ActiveJobTab";
                tab.style.color="white";
                content.className = "ActiveJobDescription";
            }
            else
            {
                tab.className = "text12hand";
                tab.style.color="black";
                content.className = "HiddenJobDescription";
            }
        }
    }
    

    function schangeJobTab(tabIndex,strObject)
    { 
        var t=document.getElementById("search");
        var b=document.getElementById(strObject);
        b.value=tabIndex;
        t.style.backgroundImage="url(img/sousuo/"+tabIndex+".gif)";
        
        tabJobCount = 6;
        for (i = 1; i <= tabJobCount; i++)
        {
            var tab = document.getElementById("Td" + i);
            if (i == tabIndex)
            {
                tab.className = "ActiveJobTab";
                tab.style.color="white";
            }
            else
            {
                tab.className = "text12";
                tab.style.color="black";
            }
        }
    }
    
     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");
                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";
            }
        }
    }
function setBigImgSize(theURL,sImage){
    var imgObj;
    var sizeStand = 500;
    if(arguments.length>=3){
        sizeStand = arguments[2];
    }
    if(arguments.length>=4){
        sizeStandh = arguments[3];
    }

    imgObj = new Image();
    imgObj.src = theURL;

    if ((imgObj.width != 0) && (imgObj.height != 0)) {
        if(imgObj.width>sizeStand ){
                var iHeight = imgObj.height*sizeStand/imgObj.width;
                sImage.height = iHeight;
                sImage.width = sizeStand;
        }else{
            sImage.width = imgObj.width;
            sImage.height= imgObj.height;
        }
    }else{
        sImage.width = sizeStand;
        sImage.height= sizeStand;
    }
}