var majorPartArray;
function initMajor() {
    var str = '[';

    function getStr(test, value) {
        return '{"text":"' + test + '","value":"' + value + '"}';
    }

    function addStr(test, value) {
        var tmp = getStr(test, value);
        if (str.length > 1) {
            str += ',' + tmp;
        } else {
            str += tmp;
        }
    }

    addStr('市发展和改革委员会', 'http://fgw.sh.gov.cn/');
    addStr('市经济和信息化委员会', 'http://www.sheitc.gov.cn/');
    addStr('市商务委员会', 'http://www.scofcom.gov.cn');
    addStr('市教育委员会', 'http://www.shmec.gov.cn/index.php');
    addStr('市科学技术委员会', 'http://www.stcsm.gov.cn/');
    addStr('市民族和宗教事务委员会', 'http://www.shmzw.gov.cn/gb/mzw/index.html');
    addStr('市公安局', 'http://gaj.sh.gov.cn/shga/gweb/');
    addStr('市监察局', 'http://jcw.sh.gov.cn/');
    addStr('市民政局', 'http://mzj.sh.gov.cn/gb/shmzj/index.html');
    addStr('市司法局', 'http://www.justice.gov.cn/sfxzinfoplat/platformData/infoplat/pub/wetsite_12/shouye_102/index.html');
    addStr('市财政局', 'http://www.czj.sh.gov.cn');
    addStr('市人力资源和社会保障局', 'http://www.12333sh.gov.cn/index.shtml');
    addStr('市城乡建设和交通委员会', 'http://jsjtw.sh.gov.cn/');
    addStr('市农业委员会', 'http://e-nw.shac.gov.cn/index.jsp');
    addStr('市环境保护局', 'http://www.sepb.gov.cn/');
    addStr('市规划和国土资源管理局', 'http://www.shgtj.gov.cn/');
    addStr('市水务局(市海洋局)', 'http://www.shanghaiwater.gov.cn/web/homepage/new_index.jsp');
    addStr('市文化广播影视管理局', 'http://wgj.sh.gov.cn/');
    addStr('市卫生局', 'http://wsj.sh.gov.cn/website/');
    addStr('市人口和计划生育委员会', 'http://rkjsw.sh.gov.cn/');
    addStr('市审计局', 'http://sjj.sh.gov.cn/');
    addStr('市人民政府外事办公室', 'http://www.shfao.gov.cn/');
    addStr('市国有资产监督管理委员会', 'http://www.shgzw.gov.cn/');
    addStr('市国家税务局（市地方税务局）', 'http://www.tax.sh.gov.cn');
    addStr('市质量技术监督局', 'http://www.shzj.gov.cn/');
    addStr('市统计局', 'http://tjj.sh.gov.cn/');
    addStr('市新闻出版局', 'http://cbj.sh.gov.cn/index.jsp');
    addStr('市体育局', 'http://www.shsports.gov.cn/');
    addStr('市旅游局', 'http://lyw.sh.gov.cn/');
    addStr('市知识产权局', 'http://www.sipa.gov.cn/');
    addStr('市绿化和市容管理局', 'http://lhsr.sh.gov.cn/');
    addStr('市住房保障和房屋管理局', 'http://www.shfg.gov.cn');
    addStr('市交通运输和港口管理局', 'http://jtj.sh.gov.cn/');
    addStr('市安全生产监督管理局', 'http://www.shsafety.gov.cn/index.html');
    addStr('市民防办公室', 'http://www.mfb.sh.cn/mfbinfoplat/platformData/infoplat/pub/shmf_104/shouye_1002/index.html');
    addStr('市人民政府合作交流办公室', 'http://xzb.sh.gov.cn/');
    addStr('市人民政府侨务办公室', 'http://qwb.sh.gov.cn/');
    addStr('市人民政府法制办公室', 'http://www.shanghailaw.gov.cn/fzbChinese/index.jsp');
    addStr('市金融服务办公室', 'http://sjr.sh.gov.cn/');
    addStr('市口岸服务办公室', 'http://www.shport.gov.cn/');
    addStr('市人民政府新闻办公室', 'http://www.shio.gov.cn/');
    addStr('市人民政府发展研究中心', 'http://www.fzzx.sh.gov.cn/');
    addStr('市粮食局', 'http://www.shgrain.gov.cn/foodnetmis/website/index.aspx');
    addStr('市监狱管理局', 'http://jyj.sh.gov.cn/site/index_html');
    addStr('市食品药品监督管理局', 'http://www.shfda.gov.cn/gb/node2/node3/index.html');
    addStr('市社会团体管理局', 'http://stj.sh.gov.cn/');
    addStr('纠风在线', 'http://www.shjfzx.gov.cn');
    str += ']';
    majorPartArray = eval(str);
}
initMajor();
