﻿var __sto = setTimeout;
window.setTimeout = function(callback,timeout,param){
    var args = Array.prototype.slice.call(arguments,2);
    var _cb = function()
    {
        callback.apply(null,args);
    }
    __sto(_cb,timeout);
}

///以下是index.tmp


function loadIndex(){
	picBack(0,10000);
	onLoadOption();//加载区域单位
}
function picBack($count,$miao){
   if(document.getElementById("mingzi")){
        if($renwu.length-1>$count){
        	   document.getElementById("zjlink").href=$link[$count];
               document.getElementById("imgren").src=$renwu[$count];
               document.getElementById("zhiwu").innerHTML=$zhiwu[$count];
               document.getElementById("mingzi").innerHTML=$mingzi[$count];
               document.getElementById("hospital").innerHTML=$hospital[$count];
               document.getElementById("imgren").style.cursor="pointer";
               
               $count++;
           window.setTimeout(picBack,$miao,$count,$miao);
        }else{
            window.setTimeout(picBack,$miao,0,$miao);
        }
    }else{
        window.setTimeout(picBack,200,0,11000);
    }
 }





	
////以下是  detail.tmp
function loadDetail(){
	var $id=document.getElementById("detailContent");
	    $id.innerHTML=unescape($id.innerHTML);
	    $id.style.display="block";
		}
function lr($id){
var $left=document.getElementById("detailA"),
	$right=document.getElementById("detailC"),
	 $this=document.getElementById($id);
	if($this.title=="left"){
	   $this.title="right";
	   $this.innerHTML="&lt;&lt;";
	   $left.style.width="760px";
	   $right.style.display="none";
	}else{
	   $this.title="left";
	   $this.innerHTML="&gt;&gt;"
	   $left.style.width="550px";
	   $right.style.display="block";
	}

}

/*---------------------------------------------------------------------*/


function changeOpt(_num_){
		var _arr=[["","","","","",""],
/*北京	*/		  ['','http://www.bjhb.gov.cn','http://www.bjcdc.org/','http://www.bjfc.gov.cn/','http://www.bjda.gov.cn/','http://www.bjhi.gov.cn/'],
/*天津	*/        ['','http://www.tjwsj.gov.cn/','http://cdctj.com.cn','http://www.tjrkjs.gov.cn/','http://www.tda.gov.cn/','http://www.tjwsj.gov.cn/'],
/*河北	*/        ['','http://www.hebwst.gov.cn/','http://www.hebeicdc.com/','http://www.hebrkjsw.gov.cn/','http://www.hebfda.gov.cn/portal.po','http://www.hebeijd.com/'],
/*山西	*/        ['','http://www.sxws.cn/','http://www.sxcdc.cn/','http://www.sxrk.gov.cn/','http://www.shxda.gov.cn/','http://www.sxwsjd.com/'],
/*内蒙古 */        ['','http://www.nmwst.gov.cn/','http://www.nmgcdc.com/','http://www.nmgpop.gov.cn/','http://www.nmfda.gov.cn/CL0145/','http://www.nmwsjds.net/index1.htm'],	
/*吉林  	*/        ['','http://www.jlws.gov.cn/','http://www.jlcdc.com.cn','http://jsw.jl.gov.cn/','http://www.jlda.gov.cn/','http://www.jlwsjd.gov.cn/'],
/*黑龙江	*/        ['','http://www.hljwst.gov.cn/','http://www.hljcdc.org/','http://www.hljjsw.gov.cn/',' http://www.hljda.gov.cn/','http://www.hljwsjd.com/'],
/*上海	*/        ['','http://wsj.sh.gov.cn','http://www.scdc.sh.cn/','http://js.nanhui.gov.cn/','http://www.shfda.gov.cn/gb/node2/node3/index.html','http://www.hs.sh.cn'],
/*江苏	*/        ['','http://www.jswst.gov.cn/','http://www.jshealth.com/jscdcnew/','http://www.jsfpc.gov.cn/','http://www.jsfda.gov.cn/','http://www.jswj.cn/home/home.asp'],
/*浙江	*/        ['','http://www.zjwst.gov.cn/','http://www.cdc.zj.cn/cdcportal/website/cdcportal/default.jsp','http://www.zjjsw.gov.cn/jsw/index.html','http://www.zjfda.gov.cn/','http://www.zjphis.com/DesktopDefault.aspx'],
/*安徽	*/        ['','http://www.ahwst.gov.cn/','http://www.ahcdc.com.cn/','http://www.ahpfpc.gov.cn/','http://www.ada.gov.cn/','http://www.ahwsjd.cn/'],
/*福建	*/        ['','http://www.fjphb.gov.cn/','http://www.fjcdc.com.cn/','http://www.fjjsw.gov.cn:8080/templates/index.jsp','http://218.66.36.171/directory/web/WS01/CL0003/','http://www.fjhi.gov.cn'],
/*江西	*/        ['','http://www.jxwst.gov.cn/','http://www.jxcdc.cn/','http://www.jxjsw.gov.cn/index.asp','http://www.jxda.gov.cn/','http://www.jxwsjd.cn/'],
/*山东	*/        ['','http://www.sdws.gov.cn/','http://www.sdcdc.cn/','http://www.lqrk.gov.cn/','http://www.sdfda.gov.cn/','http://www.sdcdc.cn/'],
/*河南	*/        ['','http://www.hnwst.gov.cn','http://www.hncdc.com.cn/','http://www.hnjsw.gov.cn/','http://www.hda.gov.cn/CL0001/',''],
/*湖北	*/        ['','http://www.hbws.gov.cn/','http://www.hbcdc.cn/','http://www.hbpop.gov.cn/client/menu/hbpop_2008.asp','http://www.hubfda.gov.cn/cmsPagePub/index.jsp','http://www.hbwsjd.gov.cn/'],
/*湖南	*/        ['','http://www.21hospital.com/','http://www.hncdc.com/','http://www.happyhome.net.cn/','http://www.hn-da.gov.cn/CL0084/','http://www.hnswsjd.com/'],
/*广东	*/        ['','http://www.gdwst.gov.cn/','http://www.cdcp.org.cn/','http://www.gdpic.gov.cn/','http://www.gdda.gov.cn/publicfiles/business/htmlfiles/gdfda/index.htm','http://www.gdwsjd.gov.cn/'],
/*广西	*/        ['','http://www.gxws.gov.cn/','http://www.gxcdc.com.cn/gxcdc/default_oa.asp','http://www.gxrkjsw.gov.cn/','http://www.gxfda.gov.cn/webportal/portal.po','http://www.gxwsjd.com.cn/'],
/*海南	*/        ['','http://www.wst.hainan.gov.cn/','http://www.hncdc.cn/','http://www.jhsy.hainan.gov.cn/','http://www.hifda.gov.cn/hifda/zwgk/index.htm','http://www.cnfdn.com/news/Article_Show.asp?ArticleID=11722'],
/*重庆	*/        ['','http://www.cqwsj.gov.cn/','http://www.cqcdc.org/','http://www.cqrk.gov.cn/','http://www.cqda.gov.cn/portal.po','http://www.cqwsj.gov.cn/'],
/*四川	*/        ['','http://www.scwst.gov.cn/','http://www.sccdpc.gov.cn/','http://www.scpop.gov.cn/','http://www.scfda.gov.cn/CL0182/','http://www.scfda.gov.cn/CL0182/'],
/*贵州	*/        ['','http://www.gzwst.gov.cn/','http://www.gzcdc.gov.cn/','http://www.gzrenkou.gov.cn/','http://www.gzhfda.gov.cn/','http://www.gbwjw.com/'],
/*云南	*/        ['','http://www.pbh.yn.gov.cn/','http://www.yncdc.cn/','http://www.yn.gov.cn/yunnan,china/72905321797910528/20050701/434135.html','http://www.yp.yn.gov.cn/nfda/72057594037927936/index.html','http://www.yp.yn.gov.cn/nfda/72057594037927936/index.html'],
/*西藏	*/        ['','http://www.xizang.gov.cn/govServcie_Content.do?categoryId=1496&amp;attributeId=408&amp;categoryPieceCode=indexGovServicePerson&amp;attributePieceCode=personServiceAllAttribute/','','http://www.tibetinfor.com/zhengfu/zheng200242394036.htm','http://www.xizangda.gov.cn/main/index.asp','http://www.cnfdn.com/news/Article_Show.asp?ArticleID=12633'],
/*陕西	*/        ['','http://www.sxhealth.gov.cn/','http://www.sxcdc.com/','http://www.sxpop.gov.cn/','http://www.sxfda.gov.cn/CL0269/index.html','http://www.shaanxiwj.cn/'],
/*甘肃	*/        ['','http://www.gsws.gov.cn/','http://www.gscdc.net','http://www.gsjsw.gov.cn/','http://www.gsda.gov.cn/webportal/portal.po','http://www.gswsjd.com/'],
/*宁夏	*/        ['','http://www.nxws.gov.cn/','http://www.nxcdc.com.cn/','http://www.nxrkw.gov.cn/','http://www.nxnews.net/zfhf/qypjdjdt.htm','http://www.nxwsjd.gov.cn/'],
/*青海	*/        ['','http://www.qhwst.gov.cn/','http://www.qhcdc.org.cn/','','http://www.sdaqh.gov.cn/','http://www.qhcdc.org.cn/'],
/*新疆	*/        ['','http://www.xjwst.gov.cn','http://www.xjcdc.com/','http://www.xjpop.gov.cn','http://www.xjda.gov.cn/CL0012/index.html','http://www.xjwsjd.gov.cn/structure/index'],
/*香港	*/        ['','','','','',''],
/*澳门	*/        ['','','','','',''],
/*台湾	*/        ['','','','','','']];
	  switch(_num_){
		  	case 0:
		  		     var _ids=document.getElementById("province"),
		  		     	 _num=Number(_ids.options[_ids.selectedIndex].value),
		  		     	 _frag=document.createDocumentFragment();
		  		         if(_num){
		  		            _addOption("types",["请选择单位","卫生局","疾控中心","计生委","药监局","卫监所"],_arr[_num]);
		  		         }
		  	break;
		  	case 1:
		  	    var _ids=document.getElementById("types"),
		  	        _url=_ids.options[_ids.selectedIndex].value;
		  	       if(_url){
			  	        window.open(_url);
		  	        }
			break;         
	   }
  }
function onLoadOption(){
	var _province=["请选择地区","北京市","天津市","河北省","山西","内蒙古自治区","吉林省","黑龙江省","上海市","江苏省","浙江省","安徽省","福建省","江西省","山东省","河南省","湖北省","湖南省","广东省","广西壮族自治区","海南省","重庆省","四川省","贵州省","云南省","西藏","陕西省","甘肃省","宁夏回族自治区","青海省","新疆维吾尔自治区","香港卫生署","澳门卫生局","台湾卫生署"];
        _addOption("province",_province,[]);
}
function _addOption(_id_,_arrOpt_,_arrValue_){
var _frag=document.createDocumentFragment();
    for(var _i=0;_i<_arrOpt_.length;_i++){
        var _opt=document.createElement("option");
            _opt.value=(_arrValue_[_i])?(_arrValue_[_i]):(_i.toString());
            _opt.appendChild(document.createTextNode(_arrOpt_[_i]));
            _frag.appendChild(_opt);
    }
    document.getElementById(_id_).innerHTML=""
    document.getElementById(_id_).appendChild(_frag);
}





