﻿/**
作者：
时间：2010-11-25
功能：首页代码
**/

var TPXWList = new Array(); //图片新闻
var TTList = new Array(); //头条
var ZWXXList = new Array(); //政务信息
var GGGSList = new Array(); //公告公示
var ZTTPList = new Array(); //专题图片
var ZZGLList = new Array(); //资质管理
var GCZBList = new Array(); //工程招标
var MMXXList = new Array(); //苗木信息
var BGXZList = new Array(); //表格下载
var GKDHList = new Array(); //公开电话

var YLJGYList = new Array(); //公园
var CAQGYList = new Array(); //长安区公园
var QDQGYList = new Array(); //长安区公园
var QXQGYList = new Array(); //长安区公园
var XHQGYList = new Array(); //长安区公园
var YHQGYList = new Array(); //长安区公园

var SSSHList = new Array(); //市树市花
var GSMMList = new Array(); //古树名木

var CSYLList = new Array(); //城市园林
var DHBMList = new Array(); //导航部门
var DHHYList = new Array(); //导航行业

var HDJLList = new Array(); //互动交流

//var WJXZList = new Array(); //文件下载

var screenWidth = 1024;

function ShowMain() {
    GetNewList();
}

function GetNewList() {
    str = '';
    str += '<div height="100%" width="100%">';
    str += '<div height="33%" width="100%">';
    str += '</div>';
    str += '<div height="33%" width="100%" align="center">';
    str += ' <div id="logindiv" style="float:inherit; margin:280 10 0 0;display:none" class="aa06"><center><img src="' + SWebPath + '/images/loadinfo.gif" /></center></div>';
    str += '</div>';
    str += '<div id="Content" height="34%" width="100%">';
    str += '</div>';
    str += '</div>';
    $("StrContent").innerHTML = str;
    $("logindiv").style.display = "";

    var url = encodeURI(SWebPath + '/action/Index.aspx');
    var pars = encodeURI("");
    var myAjax = new Ajax.Request(url, { method: 'get', parameters: pars, onComplete: sGetNewList, onFailure: fGetNewList });
}
//获取"信息列表"成功
function sGetNewList(o) {
    TPXWList = Map_SY(o, "Web_tpxw");
    TTList = Map_SY(o, "Web_tt");
    ZWXXList = Map_SY(o, "Web_zwxx");
    GGGSList = Map_SY(o, "Web_gggs");
    ZTTPList = Map_SY(o, "Web_zttp");
    ZZGLList = Map_SY(o, "Web_zzgl");
    GCZBList = Map_SY(o, "Web_gczb");
    MMXXList = Map_SY(o, "Web_mmxx");
    BGXZList = Map_SY(o, "Web_wjxz");
    GKDHList = Map_SY(o, "Web_gkdh");

    YLJGYList = Map_SY(o, "Web_yljgy");
    CAQGYList = Map_SY(o, "Web_caqgy");
    QDQGYList = Map_SY(o, "Web_qdqgy");
    QXQGYList = Map_SY(o, "Web_qxqgy");
    XHQGYList = Map_SY(o, "Web_xhqgy");
    YHQGYList = Map_SY(o, "Web_yhqgy");

    SSSHList = Map_SY(o, "Web_sssh");
    GSMMList = Map_SY(o, "Web_gsmm");

    CSYLList = Map_SY(o, "Web_csyl");
    DHBMList = Map_SY(o, "Web_dhbm");
    DHHYList = Map_SY(o, "Web_dhhy");

    HDJLList = Map_HDJL(o, "Web_hdjl");



    //WJXZList = Map_SY(o, "Web_wjxz"); //文件下载
    ShowContent();

}


function fGetNewList() { }

function CutChar(titles) {
var tmp = "";
var tmp1 = "";
tmp = titles.replace(/<(\w+)\s[^>]*>/g, "<$1>");
tmp1 = tmp.replace(/<[^>]*>/g, '');
return tmp1;
}

function ShowContent() {
    var str = '';   
    
    //2011-5-17
    str = '    <div id="container">';
    str += '<!--页面层容器--->';
    str += '<!--页面头部----->';
    str += '<div id="Header">';
    str += '  <iframe src="top.htm" width="100%" frameborder="0" scrolling="no" style="height:100%"></iframe>';
    str += '</div>';
    str += '<!--页面头部end-->';
    str += '<!--页面主体-->';
    str += '<div id="pagebody">';
    
    str += '  <DIV class="banner" id="banner">';
    str += '    <DIV class="banner_tab clearfix">';
    str += '      <UL>';
    str += '<input id="tplen" type="hidden" value="'+TPXWList.length+'" />';
    for (var i = 0; i < TPXWList.length; i++) {
        str += '        <LI id="tab_tophome_' + (i+1)*1 + '" ';
        if (i == 0) { str += ' class="on" '; } else { str += ' class="out"'; }
        str += ' onMouseMove="startIndex=1;setTab(\'tophome\',' + TPXWList.length + ',' + (i + 1) * 1 + ',\'out\',\'on\');"><img src="' + SWebPath + TPXWList[i].ImgUrl + '" border=0 width=72 height=35 hspace=3/></LI>';
    }
//    str += '        <LI id="tab_tophome_2" class="out" onMouseMove="startIndex=1;setTab(\'tophome\',3,2,\'out\',\'on\');"><img src="images/2.jpg" border=0 width=72 height=35 hspace=3/></LI>';
//    str += '        <LI id="tab_tophome_3" class="out" onMouseMove="startIndex=1;setTab(\'tophome\',3,3,\'out\',\'on\');"><img src="images/3.jpg" border=0 width=72 height=35 hspace=3/></LI>';
    str += '      </UL>';
    str += '    </DIV>';
    
    str += '    <DIV>';
    for (var i = 0; i < TPXWList.length; i++) {
        str += '      <DIV id="con_tophome_' + (i + 1) * 1 + '"  ';
        if (i == 0) { str += ' style="display: block; " '; } else { str += ' style="display: none; " '; }
        //str += ' ><a href="#" target="_blank"><img src="' + SWebPath + TPXWList[i].ImgUrl + '" border=0 width=964 height=259/></a></DIV>';
        if (TPXWList[i].HtmUrl.toLowerCase().indexOf('http://') != -1) {
            str += ' ><a href="' + TPXWList[i].HtmUrl + '" target="_blank">';
        } else {
            str += ' ><a href="#" target="_self">';
        }
        str += '<img src="' + SWebPath + TPXWList[i].ImgUrl + '" border=0 width=964 height=259/></a></DIV>';

    }
//    str += '      <DIV id="con_tophome_2" class="hidecontent" style="display: none; "><a href="#" target="_blank"><img src="images/2.jpg" border=0 width=964 height=259/></a></DIV>';
//    str += '      <DIV id="con_tophome_3" class="hidecontent" style="display: none; "><a href="#" target="_blank"><img src="images/3.jpg" border=0 width=964 height=259/></a></DIV>';
    str += '      <DIV class="clear"></DIV>';
    str += '    </DIV>';
    str += '  </DIV>';
    
    str += '  <div class="clear_float"></div>';
    str += '  <!--左边部分-------->';
    str += '  <div id="CLeft">';
    
    str += '    <!--政府信息公开-->';
    str += '    <div class="infogk float_left">';
    str += '      <div class="infogk_tit"><a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开\',\'\',\'\',\'\')"  href="#">政府信息公开</a></div>';
    str += '      <div class="infogk_list">';
    str += '        <div class="infogk_b">';
    str += '          <ul>';
    str += '            <li>·&nbsp;<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开\',\'\',\'政府信息公开指南\',\'\')"  href="#">政府信息公开指南</a></li>';
    str += '            <li>·&nbsp;<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'机构职能\',\'\',\'\')"  href="#">政府信息公开目录</a></li>';
    str += '            <li>·&nbsp;<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开\',\'\',\'政府信息公开年报\',\'\')"  href="#">政府信息公开年报</a></li>';
    str += '            <li>·&nbsp;<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开\',\'\',\'依法申请公开流程\',\'\')"  href="#">依法申请公开流程</a></li>';
    str += '            <li>·&nbsp;<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开\',\'\',\'监督投诉\',\'\')"  href="#">监督投诉</a></li>';
    str += '          </ul>';
    str += '        </div>';
    str += '        <ul>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds.htm\',\'政务信息\',\'\',\'\',\'_blank\')">政务信息</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'机构职能\',\'机构设置\',\'\')" >机构设置</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'法规文件\',\'\',\'\')" >法规文件</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'公告公示\',\'\')" >公告公示</a></li>';
    //str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'工程招标\',\'\')" >工程招标</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'工程招标\',\'\')" >工程招标</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'\',\'\')">互动交流</a></li>';
    //str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds_ZZ.htm\',\'\',\'公共服务\',\'资质管理\',\'\')">资质管理</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'资质管理\',\'\')">资质管理</a></li>';
    str += '          <li>·&nbsp;<a href="http://www.sjzylj.com:9001" target="_blank">诚信备案</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'机构职能\',\'直属机构\',\'\')">直属机构</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'古树名木\',\'\')">古树名木</a></li>';
    //str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds_ZZ.htm\',\'\',\'\',\'苗木信息\',\'\')">苗木信息</a></li>';
    //str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds_GY.htm\',\'公共服务\',\'公园广场\',\'\',\'\')">公园广场</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'苗木信息\',\'\')">苗木信息</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'\',\'\',\'\')">公园广场</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'市树市花\',\'\')">市树市花</a></li>';
    str += '          <li>·&nbsp;<a href="#" onclick="javascript:open_Win(\'seconds_zt.htm\',\'\',\'专题活动\',\'\',\'\')">专题活动</a></li>';
    str += '          <li>·&nbsp;<a href="lxwm.htm" target="_blank">联系我们</a></li>';
    str += '        </ul>';
    str += '      </div>';
    str += '	  <div class="infogk_bottom"></div>';
    str += '    </div>';
    
    str += '    <!--公告公示-->';
    str += '    <div class="News float_right">';
    str += '      <div class="N_tit">';
    str += '        <ul>';
    str += '            <LI onclick="javascript:open_Win(\'seconds.htm\',\'政务信息\',\'\',\'\',\'_blank\')" style="cursor:hand;" id="jcdw_li0" onmouseover="ChangeAll(\'2\',\'0\',\'jcdw_li\',\'jcdw_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)"  class="selectd">政务信息</LI>';
    str += '            <LI onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'公告公示\',\'\')" style="cursor:hand;" id="jcdw_li1" onmouseover="ChangeAll(\'2\',\'1\',\'jcdw_li\',\'jcdw_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)">公告公示</LI>';
    str += '        </ul>';
    str += '      </div>';
    
    //头条和政务信息
    str += '<div class="list" id="jcdw_div0">';
    str += '<div class="tt">';
    for (var i = 0; i < TTList.length; i++) {
        var Title = CutChar(TTList[i].Title);
        if (Title.length > 22) {
            Title = Title.substring(0, 22) + "...";
        }
        var url = checkeURL(TTList[i].HtmUrl);
        var dt = '' + TTList[i].SendTime + '';
        if (TTList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<a title="' + TTList[i].Title + '" href="' + TTList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<a title="' + TTList[i].Title + '" href="' + SWebPath + TTList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    str+='</div>';
    str += '<ul>';
    for (var i = 0; i < ZWXXList.length; i++) {
        var Title = CutChar(ZWXXList[i].Title);
        if (Title.length > 30) {
            Title = Title.substring(0, 30) + "...";
        }
        var url = checkeURL(ZWXXList[i].HtmUrl);
        var dt = '' + ZWXXList[i].SendTime + '';
        if (ZWXXList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + ZWXXList[i].Title + '" href="' + ZWXXList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + ZWXXList[i].Title + '" href="' + SWebPath + ZWXXList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    str += '</ul>';
    str += '<span class="float_right more"><a onclick="javascript:open_Win(\'seconds.htm\',\'政务信息\',\'\',\'\',\'_blank\')" style="cursor:hand">更多>></a></span> ';
    str += '</div>';
    
    //公告公示
    str += '<div class="list" style="display:none" id="jcdw_div1">';
    str += '<ul>';
    for (var i = 0; i < GGGSList.length; i++) {
        var Title = CutChar(GGGSList[i].Title);
        if (Title.length > 30) {
            Title = Title.substring(0, 30) + "...";
        }
        var url = checkeURL(GGGSList[i].HtmUrl);
        var dt = '' + GGGSList[i].SendTime + '';
        if (GGGSList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + GGGSList[i].Title + '" href="' + GGGSList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + GGGSList[i].Title + '" href="' + SWebPath + GGGSList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    str += '</ul>';
    str += '<span class="float_right more"><a onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'公告公示\',\'_blank\')" style="cursor:hand" >更多>></a></span> ';
    str += '</div>';
    
    str += '</div>';
    str += '    <div class="clear_float"></div>';
    str += '    <!--办事大厅-->';
    str += '    <div class="info_h">';
    str += '      <div class="N_tit">';
    str += '        <ul>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'资质管理\',\'\')" style="cursor:hand;" id="bsdt_li0" onmouseover="ChangeAll(\'5\',\'0\',\'bsdt_li\',\'bsdt_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)"  class="selectd">资质管理</li>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'工程招标\',\'\')" style="cursor:hand;" id="bsdt_li1" onmouseover="ChangeAll(\'5\',\'1\',\'bsdt_li\',\'bsdt_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" >工程招标</li>';
    str += '          <li><a href="http://www.sjzylj.com:9001" target="_blank">诚信备案</a></li>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'苗木信息\',\'\')" style="cursor:hand;" id="bsdt_li2" onmouseover="ChangeAll(\'5\',\'2\',\'bsdt_li\',\'bsdt_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" ><a href="#">苗木信息</a></li>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'表格下载\',\'\')" style="cursor:hand;" id="bsdt_li3" onmouseover="ChangeAll(\'5\',\'3\',\'bsdt_li\',\'bsdt_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" ><a href="#">表格下载</a></li>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'公开电话\',\'\')" style="cursor:hand;" id="bsdt_li4" onmouseover="ChangeAll(\'5\',\'4\',\'bsdt_li\',\'bsdt_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" ><a href="#">公开电话</a></li>';
    str += '        </ul>';
    str += '      </div>';
    str += '      <!---资质管理--->';
    str += '      <div style="padding:3px 10px 0" id="bsdt_div0">';
    str += '        <table width="100%"  border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#cddacb" >';
    str += '          <tr >';
    str += '            <td width="7%" height="26" align="center" class="table_bg">序号</td>';
    str += '            <td width="44%" align="center" class="table_bg">名&nbsp;&nbsp;称</td>';
    str += '            <td width="49%" class="table_bg" align="center">文&nbsp;&nbsp;件</td>';
    str += '          </tr>';
    for (var i = 0; i < ZZGLList.length; i++) {
        str += '          <tr bgcolor="#FFFFFF">';
        str += '            <td height="28" align="center" >' + (i + 1) * 1 + '</td>';
        var Title = CutChar(ZZGLList[i].Title);
        if (Title.length > 23) {
            Title = Title.substring(0, 22) + "...";
        }
        var url = checkeURL(ZZGLList[i].HtmUrl);
        var dt = '' + ZZGLList[i].SendTime + '';
        if (ZZGLList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<td >&nbsp;<a title="' + ZZGLList[i].Title + '" href="' + ZZGLList[i].HtmUrl + '" target="_blank">' + Title + '</a>&nbsp;</td>';
        }
        else {
            str += '<td >&nbsp;<a title="' + ZZGLList[i].Title + '" href="' + SWebPath + ZZGLList[i].HtmUrl + '" target="_blank">' + Title + '</a>&nbsp;</td>';
        }
        var FuJianName = ZZGLList[i].FuJianName;
        if (FuJianName.length > 0) { FuJianName = FuJianName.split(';'); }
        var FuJianUrl = ZZGLList[i].FuJianUrl;
        if (FuJianUrl.length > 0) { FuJianUrl = FuJianUrl.split(';'); }
        str += '<td>&nbsp;';
        for (var j = 0; j < FuJianName.length - 1; j++) {
            if (j != 0) { str += '，'; }
            var LSFuJianName = CutChar(FuJianName[j]);
            if (LSFuJianName.length > 26) {
                LSFuJianName = LSFuJianName.substring(0, 25) + "...";
            }
            //str += '<a title="' + FuJianName[j] + '" href="' + SWebPath + FuJianUrl[j] + '" >' + LSFuJianName + '</a>';
            str += '<a title="' + FuJianName[j] + '" href="' + SWebPath + '/adminmanage/action/lzzlxz/filedowns.aspx?id=' + ZZGLList[i].ID + '&n=' + j + '""" target="_blank" >' + LSFuJianName + '</a>';
        }
        str += '</td>';
        str += '</tr>';
    }    
    str += '        </table>';
    //str += '        <span class="float_right more"><a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公共服务\',\'资质管理\',\'\')" style="cursor:hand;">更多>></a></span> ';
    str += ' </div>';
    str += '      <!--工程招标-->';
    str += '	  <div class="list" style="display:none;" id="bsdt_div1">';
    str += '        <ul>';
    for (var i = 0; i < GCZBList.length; i++) {
        var Title = CutChar(GCZBList[i].Title);
        if (Title.length > 30) {
            Title = Title.substring(0, 30) + "...";
        }
        var url = checkeURL(GCZBList[i].HtmUrl);
        var dt = '' + GCZBList[i].SendTime + '';
        if (GCZBList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + GCZBList[i].Title + '" href="' + GCZBList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<li><span>' + dt + '&nbsp;</span>&nbsp;·&nbsp;<a title="' + GCZBList[i].Title + '" href="' + SWebPath + GCZBList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    //str += '<li class="float_right more"><a onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'工程招标\',\'\')" style="cursor:hand;">更多>></a></li>';
    str += '        </ul>';
    str += '      </div>';


    str += '      <!---苗木信息--->';
    str += '      <div style="display:none;padding:3px 10px 0" id="bsdt_div2">';
    str += '        <table width="100%"  border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#cddacb" >';
    str += '          <tr >';
    str += '            <td width="7%" height="26" align="center" class="table_bg">序号</td>';
    str += '            <td width="29%" align="center" class="table_bg">年&nbsp;&nbsp;度</td>';
    str += '            <td width="64%" class="table_bg" align="center">文&nbsp;&nbsp;件</td>';
    str += '          </tr>';
    for (var i = 0; i < MMXXList.length; i++) {
        str += '          <tr bgcolor="#FFFFFF">';
        str += '            <td height="38" align="center" >' + (i + 1) * 1 + '</td>';
        var Title = CutChar(MMXXList[i].Title);
        if (Title.length > 15) {
            Title = Title.substring(0, 15) + "...";
        }
        var url = checkeURL(MMXXList[i].HtmUrl);
        var dt = '' + MMXXList[i].SendTime + '';
        if (MMXXList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            //str += '<td align="left" ><a title="' + MMXXList[i].Title + '" href="' + MMXXList[i].HtmUrl + '" target="_blank">&nbsp;' + Title + '</a></td>';
            str += '<td align="left" >&nbsp;' + Title + '</td>';
        }
        else {
            //str += '<td align="left" ><a title="' + MMXXList[i].Title + '" href="' + SWebPath + MMXXList[i].HtmUrl + '" target="_blank">&nbsp;' + Title + '</a></td>';
            str += '<td align="left" >&nbsp;' + Title + '</td>';
        }
        var FuJianName = MMXXList[i].FuJianName;
        if (FuJianName.length > 0) { FuJianName = FuJianName.split(';'); }
        var FuJianUrl = MMXXList[i].FuJianUrl;
        if (FuJianUrl.length > 0) { FuJianUrl = FuJianUrl.split(';'); }
        str += '<td align="left">&nbsp;';
        for (var j = 0; j < FuJianName.length - 1; j++) {
            if (j != 0) { str += '，'; }
            //str += '<a title="' + FuJianName[j] + '" href="' + SWebPath + FuJianUrl[j] + '" >' + FuJianName[j] + '</a>';
            str += '<a title="' + FuJianName[j] + '" href="' + SWebPath + '/adminmanage/action/lzzlxz/filedowns.aspx?id=' + MMXXList[i].ID + '&n=' + j + '""" target="_blank" >' + FuJianName[j] + '</a>';
        }
        str += '</td>';
        str += '</tr>';
    }
    str += '        </table>';
/*    str += '        <span class="float_right more"><a onclick="javascript:open_Win(\'seconds_ZZ.htm\',\'\',\'\',\'苗木信息\',\'\')" style="cursor:hand;">更多>></a></span>';*/
	str += '</div>';


	str += '      <!---表格下载--->';
	str += '      <div style="display:none;padding:3px 10px 0" id="bsdt_div3">';
	str += '        <table width="100%"  border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#cddacb" >';
	str += '          <tr >';
	str += '            <td width="7%" height="26" align="center" class="table_bg">序号</td>';
	str += '            <td width="73%" align="center" class="table_bg">文&nbsp;&nbsp;件</td>';
	str += '            <td width="20%" class="table_bg" align="center">下&nbsp;&nbsp;载</td>';
	str += '          </tr>';
	for (var i = 0; i < BGXZList.length; i++) {
	    str += '          <tr bgcolor="#FFFFFF">';
	    str += '            <td height="28" align="center" >' + (i + 1) * 1 + '</td>';
	    var Title = CutChar(BGXZList[i].Title);
	    if (Title.length > 25) {
	        Title = Title.substring(0, 25) + "...";
	    }
	    var url = checkeURL(BGXZList[i].HtmUrl);
	    var dt = '' + BGXZList[i].SendTime + '';
	    if (BGXZList[i].IsNew == "1") {
	        dt = '<font color="Red" >' + dt + '</font>';
	    }
	    str += '<td align="left">&nbsp;';
	    str += '&nbsp;<a title="' + BGXZList[i].Title + '" href="' + SWebPath + '/adminmanage/action/lzzlxz/filedown.aspx?id=' + BGXZList[i].ID + '"" target="_blank">' + Title + '</a>';
	    str += '</td>';
	    str += '<td align="center">&nbsp;';
	    str += '&nbsp;<a title="' + BGXZList[i].Title + '" href="' + SWebPath + '/adminmanage/action/lzzlxz/filedown.aspx?id=' + BGXZList[i].ID + '"" target="_blank">下载</a>';
	    str += '</td>';
	    str += '</tr>';
	}
	str += '        </table>';
	/*    str += '        <span class="float_right more"><a onclick="javascript:open_Win(\'seconds_ZZ.htm\',\'\',\'\',\'表格下载\',\'\')" style="cursor:hand;">更多>></a></span>';*/
	str += '</div>';


    str += '      <!---公开电话--->';
    str += '      <div style="display:none;padding:3px 10px 0" id="bsdt_div4">';
    str += '        <table width="100%"  border="0" cellpadding="0" cellspacing="1" align="center" bgcolor="#cddacb" >';
    str += '          <tr >';
    str += '            <td width="7%" height="26" align="center" class="table_bg">序号</td>';
    str += '            <td width="25%" align="center" class="table_bg">单&nbsp;&nbsp;位</td>';
    str += '            <td width="15%" class="table_bg" align="center">值班电话</td>';
    str += '            <td width="53%" class="table_bg" align="center">单位地址</td>';
    str += '          </tr>';
    for (var i = 0; i < GKDHList.length; i++) {
        str += '          <tr bgcolor="#FFFFFF">';
        str += '            <td height="28" align="center" >' + (i + 1) * 1 + '</td>';
        var Title = CutChar(GKDHList[i].Title);
        if (Title.length > 15) {
            Title = Title.substring(0, 15) + "...";
        }
        var url = checkeURL(GKDHList[i].HtmUrl);
        var dt = '' + GKDHList[i].SendTime + '';
        if (GKDHList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            //str += '<td align="left" ><a title="' + GKDHList[i].Title + '" href="' + GKDHList[i].HtmUrl + '" target="_blank">&nbsp;' + Title + '</a></td>';
            str += '<td align="left" >&nbsp;' + Title + '</td>';
        }
        else {
            //str += '<td align="left" ><a title="' + GKDHList[i].Title + '" href="' + SWebPath + GKDHList[i].HtmUrl + '" target="_blank">&nbsp;' + Title + '</a></td>';
            str += '<td align="left" >&nbsp;' + Title + '</td>';
        }
        str += '<td align="left">&nbsp;';
        str += GKDHList[i].Zbdh;
        str += '</td>';
        str += '<td align="left">&nbsp;';
        str += GKDHList[i].Gydz;
        str += '</td>';
        str += '</tr>';
    }
    str += '        </table>';
    /*str += '        <span class="float_right more"><a onclick="javascript:open_Win(\'seconds_DH.htm\',\'\',\'\',\'公开电话\',\'\')" style="cursor:hand;">更多>></a></span>';*/
	str += ' </div>';
    
    
    str += '    </div>';
    str += '    <div class="clear_float"></div>';
    str += '    <!--公园广场-->';
    str += '    <div class="btm_info">';
    str += '      <div class="N_tit">';
    str += '        <ul>';
    str += '          <LI onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'\',\'\')" style="cursor:hand;" id="gygc_li0" onmouseover="ChangeAll(\'5\',\'0\',\'gygc_li\',\'gygc_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)"  class="selectd">公园广场</li>';
    str += '          <LI onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'市树市花\',\'\')" style="cursor:hand;" id="gygc_li1" onmouseover="ChangeAll(\'5\',\'1\',\'gygc_li\',\'gygc_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" >市树市花</li>';
    str += '          <LI onclick="javascript:open_Win(\'seconds.htm\',\'\',\'\',\'古树名木\',\'\')" style="cursor:hand;" id="gygc_li2" onmouseover="ChangeAll(\'5\',\'2\',\'gygc_li\',\'gygc_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" >古树名木</li>';
    str += '          <LI onclick="javascript:open_Win(\'seconds_pic.htm\',\'\',\'\',\'城市园林\',\'\')" style="cursor:hand;" id="gygc_li3" onmouseover="ChangeAll(\'5\',\'3\',\'gygc_li\',\'gygc_div\',\'selectd\',\'\');CB_Init();" onmouseout="reset_all(this.id)" >城市园林</li>';
    str += '          <LI  style="cursor:hand;" id="gygc_li4" onmouseover="ChangeAll(\'5\',\'4\',\'gygc_li\',\'gygc_div\',\'selectd\',\'\')" onmouseout="reset_all(this.id)" >站点导航</li>';
    str += '        </ul>';
    str += '      </div>';
    str += '      <!--公园广场信息显示-->';
    str += '	  <div class="list1" id="gygc_div0">';
    str += '        <ul>';

    str += '          <li><span class="float_left">园林局&nbsp;</span>';
    for (var i = 0; i < YLJGYList.length; i++) {
        var Title = CutChar(YLJGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(YLJGYList[i].HtmUrl);
        var dt = '' + YLJGYList[i].SendTime + '';
        if (YLJGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + YLJGYList[i].Title + '" href="' + YLJGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + YLJGYList[i].Title + '" href="' + SWebPath + YLJGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (YLJGYList.length==7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'园林局\',\'\')" style="cursor:hand;">更多>></a>';

    str += '</li>';
    
    str += '          <li><span class="float_left">长安区&nbsp;</span>';
    for (var i = 0; i < CAQGYList.length; i++) {
        var Title = CutChar(CAQGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(CAQGYList[i].HtmUrl);
        var dt = '' + CAQGYList[i].SendTime + '';
        if (CAQGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + CAQGYList[i].Title + '" href="' + CAQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + CAQGYList[i].Title + '" href="' + SWebPath + CAQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (CAQGYList.length == 7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'长安区\',\'\')" style="cursor:hand;">更多>></a>';
    str += '</li>';

    str += '          <li><span class="float_left">桥东区&nbsp;</span>';
    for (var i = 0; i < QDQGYList.length; i++) {
        var Title = CutChar(QDQGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(QDQGYList[i].HtmUrl);
        var dt = '' + QDQGYList[i].SendTime + '';
        if (QDQGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + QDQGYList[i].Title + '" href="' + QDQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + QDQGYList[i].Title + '" href="' + SWebPath + QDQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (QDQGYList.length == 7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'桥东区\',\'\')" style="cursor:hand;">更多>></a>';
    str += '</li>';

    str += '          <li><span class="float_left">桥西区&nbsp;</span>';
    for (var i = 0; i < QXQGYList.length; i++) {
        var Title = CutChar(QXQGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(QXQGYList[i].HtmUrl);
        var dt = '' + QXQGYList[i].SendTime + '';
        if (QXQGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + QXQGYList[i].Title + '" href="' + QXQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + QXQGYList[i].Title + '" href="' + SWebPath + QXQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (QXQGYList.length == 7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'桥西区\',\'\')" style="cursor:hand;">更多>></a>';
    str += '</li>';

    str += '		  <li><span class="float_left">新华区&nbsp;</span>';
    for (var i = 0; i < XHQGYList.length; i++) {
        var Title = CutChar(XHQGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(XHQGYList[i].HtmUrl);
        var dt = '' + XHQGYList[i].SendTime + '';
        if (XHQGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + XHQGYList[i].Title + '" href="' + XHQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + XHQGYList[i].Title + '" href="' + SWebPath + XHQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (XHQGYList.length == 7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'新华区\',\'\')" style="cursor:hand;">更多>></a>';
    str += '</li>';

    str += '          <li><span class="float_left">裕华区&nbsp;</span>';
    for (var i = 0; i < YHQGYList.length; i++) {
        var Title = CutChar(YHQGYList[i].Title);
        if (Title.length > 6) {
            Title = Title.substring(0, 5) + "...";
        }
        var url = checkeURL(YHQGYList[i].HtmUrl);
        var dt = '' + YHQGYList[i].SendTime + '';
        if (YHQGYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<div class="index_gy float_left"><a title="' + YHQGYList[i].Title + '" href="' + YHQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
        else {
            str += '<div class="index_gy float_left"><a title="' + YHQGYList[i].Title + '" href="' + SWebPath + YHQGYList[i].HtmUrl + '" target="_blank">' + Title + '</a></div>';
        }
    }
    if (YHQGYList.length == 7) str += '<a onclick="javascript:open_Win(\'index_zw.htm\',\'政府信息公开 >> 政府信息公开目录\',\'公园广场\',\'裕华区\',\'\')" style="cursor:hand;">更多>></a>';
    str += '</li>';
    
    str += '        </ul>';
    str += '      </div>	';
    
    str += '      <!--市树市花 信息显示-->';
    str += '	  <div class="list1"  id="gygc_div1"  style="display:none">';
    str += '        <ul>';
    for (var i = 0; i < SSSHList.length; i++) {
        var Title = CutChar(SSSHList[i].Title);
        if (Title.length > 30) {
            Title = Title.substring(0, 30) + "...";
        }
        var url = checkeURL(SSSHList[i].HtmUrl);
        var dt = '' + SSSHList[i].SendTime + '';
        if (SSSHList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><span>&nbsp;&nbsp;&nbsp;' + Title + '&nbsp;</span>&nbsp;&nbsp;<a title="' + SSSHList[i].Title + '" href="' + SSSHList[i].HtmUrl + '" target="_blank">' + SSSHList[i].Contents + '</a></li>';
        }
        else {
            str += '<li><span>&nbsp;&nbsp;&nbsp;' + Title + '&nbsp;</span>&nbsp;&nbsp;<a title="' + SSSHList[i].Title + '" href="' + SWebPath + SSSHList[i].HtmUrl + '" target="_blank">' + SSSHList[i].Contents + '</a></li>';
        }
    }
    str += '        </ul>';
    str += '      </div>';

    str += '      <!--古树名木 信息显示-->';
    str += '	  <div class="list1"  id="gygc_div2"  style="display:none">';
    str += '        <ul>';
    for (var i = 0; i < GSMMList.length; i++) {
        var Title = CutChar(GSMMList[i].Title);
        if (Title.length > 30) {
            Title = Title.substring(0, 30) + "...";
        }
        var url = checkeURL(GSMMList[i].HtmUrl);
        var dt = '' + GSMMList[i].SendTime + '';
        if (GSMMList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><span>&nbsp;&nbsp;&nbsp;' + Title + '&nbsp;</span>&nbsp;&nbsp;<a title="' + GSMMList[i].Title + '" href="' + GSMMList[i].HtmUrl + '" target="_blank">' + GSMMList[i].Contents + '</a></li>';
        }
        else {
            str += '<li><span>&nbsp;&nbsp;&nbsp;' + Title + '&nbsp;</span>&nbsp;&nbsp;<a title="' + GSMMList[i].Title + '" href="' + SWebPath + GSMMList[i].HtmUrl + '" target="_blank">' + GSMMList[i].Contents + '</a></li>';
        }
    }
    str += '        </ul>';
    str += '      </div>';

    str += '	<!--城市园林-->';
    str += '        <DIV class=blk_29 id="gygc_div3"  style="display:none">';
    //str += '          <DIV class=LeftBotton id=LeftArr></DIV>';
    str += '          <DIV class=Cont id=ISL_Cont_1>';
    for (var i = 0; i < CSYLList.length; i++) {
        var Title = CutChar(CSYLList[i].Title);
        if (Title.length > 10) {
            Title = Title.substring(0, 10) + "...";
        }
        var url = checkeURL(CSYLList[i].HtmUrl);
        str += '<DIV class=box_z>';
        var ttt = CSYLList[i].Title;
        if (ttt.length > 110) { ttt = ttt.substring(0, 55) + "<br/>" + ttt.substring(55, 110) + "<br/>" + ttt.substring(110, ttt.length); }
        else if (ttt.length > 55) { ttt = ttt.substring(0, 55) + "<br/>" + ttt.substring(55, ttt.length); }
//        if (url == true) {
//            str += '<a class=imgBorder title="' + ttt + '" href="' + SWebPath + CSYLList[i].BigImgUrl + '" rel="clearbox[xiedx]"><IMG width=152 height=117 alt="' + CSYLList[i].Title + '" src="' + SWebPath + CSYLList[i].ImgUrl + '" border=0></A>';
//            str += '<P><a title="' + ttt + '" href="' + SWebPath + CSYLList[i].BigImgUrl + '" rel="clearbox[Title_xiedx]">' + Title + '</a> </P>';
//        }
//        else {
//            str += '<a class=imgBorder title="' + ttt + '" href="' + SWebPath + CSYLList[i].BigImgUrl + '" rel="clearbox[xiedx]"><IMG width=152 height=117 alt="' + CSYLList[i].Title + '" src="' + SWebPath + CSYLList[i].ImgUrl + '" border=0></a>';
//            str += '<P><a title="' + ttt + '" href="' + SWebPath + CSYLList[i].BigImgUrl + '" rel="clearbox[Title_xiedx]">' + Title + '</a> </P>';
//        }
        if (url == true) {
            str += '<div class="boxz"><a class=imgBorder title="' + ttt + '" href="' + SWebPath + '/seconds_pics.htm?Id=' + CSYLList[i].ID + '" target="_blank" ><IMG width=157 height=121 alt="' + CSYLList[i].Title + '" src="' + SWebPath + CSYLList[i].ImgUrl + '" border=0></A></div>';
            str += '<P><a title="' + ttt + '" href="' + SWebPath + '/seconds_pics.htm?Id=' + CSYLList[i].ID + '" target="_blank" >' + Title + '</a> </P>';
        }
        else {
            str += '<div class="boxz"><a class=imgBorder title="' + ttt + '" href="' + SWebPath + '/seconds_pics.htm?Id=' + CSYLList[i].ID + '" target="_blank" ><IMG width=157 height=121 alt="' + CSYLList[i].Title + '" src="' + SWebPath + CSYLList[i].ImgUrl + '" border=0></a></div>';
            str += '<P><a title="' + ttt + '" href="' + SWebPath + '/seconds_pics.htm?Id=' + CSYLList[i].ID + '" target="_blank" >' + Title + '</a> </P>';
        }

        str += '</DIV>';
    }
    str += '          </DIV>';
    //str += '          <DIV class=RightBotton id=RightArr></DIV>';
    str += '      <span class="float_right more"><a onclick="javascript:open_Win(\'seconds_pic.htm\',\'\',\'\',\'城市园林\',\'\')" style="cursor:hand;">更多>></a></span>';

    str += '        </DIV>';
    
    
       
    str += '      <!--站点导航 信息显示-->';
    str += '	  <div class="wzdh_h"  id="gygc_div4" style="display:none">';
    str += '        <ul  class="wzdh">';
    str += '        <span>部门网站&nbsp;</span>';
    for (var i = 0; i < DHBMList.length; i++) {
        var Title = CutChar(DHBMList[i].Title);
        if (Title.length > 10) {
            Title = Title.substring(0, 10) + "...";
        }
        var url = checkeURL(DHBMList[i].HtmUrl);
        var dt = '' + DHBMList[i].SendTime + '';
        if (DHBMList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><a title="' + DHBMList[i].Title + '" href="' + DHBMList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<li><a title="' + DHBMList[i].Title + '" href="' + SWebPath + DHBMList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    str += '</ul>';

    str += '     <div class="clear_float"></div>';
    
    str+='    <ul class="wzdh">';
    str += '      <span>行业网站&nbsp;</span>';
    for (var i = 0; i < DHHYList.length; i++) {
        var Title = CutChar(DHHYList[i].Title);
        if (Title.length > 10) {
            Title = Title.substring(0, 10) + "...";
        }
        var url = checkeURL(DHHYList[i].HtmUrl);
        var dt = '' + DHHYList[i].SendTime + '';
        if (DHHYList[i].IsNew == "1") {
            dt = '<font color="Red" >' + dt + '</font>';
        }
        if (url == true) {
            str += '<li><a title="' + DHHYList[i].Title + '" href="' + DHHYList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
        else {
            str += '<li><a title="' + DHHYList[i].Title + '" href="' + SWebPath + DHHYList[i].HtmUrl + '" target="_blank">' + Title + '</a></li>';
        }
    }
    str += '        </ul>';
    str += '      </div>';
    str += '  </div>';
    
    str+=' </div>';
    
    
    str += '  <div id="CRight">';
    str += '    <!--天气-->';
    str += '    <div class="tq"><iframe src="http://m.weather.com.cn/m/pn3/weather.htm?id=101090101T " width="227" height="28" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>';
    //str += '<img src="images/index_21_26.jpg" width="227" height="33" />';
    str += '</div>';
    str += '    <div class="clear_float"></div>';
    str += '    <!--用户登录-->';
    str += '    <div class="yhdl border_green">';
    str += '      <div class="sidebar_tit"><img src="images/index_21_40.jpg" width="11" height="11" />&nbsp;<a href="#">用户登录</a></div>';
    str += '      <div class="sidebar_line"></div>';
    str += '      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:13px">';
    str += '        <tr>';
    str += '          <td width="32%" height="37" align="right">用户名:&nbsp;</td>';
    str += '          <td width="68%"><input type="text" name="UserName" id="UserName" class="b_green"/></td>';
    str += '        </tr>';
    str += '        <tr>';
    str += '          <td height="26"align="right">密&nbsp;&nbsp;码:&nbsp;</td>';
    str += '          <td><input type="password" name="UserPwd" id="UserPwd" class="b_green"/></td>';
    str += '        </tr>';
    str += '        <tr>';
    str += '          <td height="26"align="right">验证码:&nbsp;</td>';
    str += '          <td><input type="text" name="Code" id="Code" class="b_green" style="width:60px"/>';
    str += '&nbsp;<img title="看不清，换一张" style="cursor:pointer" onclick="change()" src="Action/WaterMark.ashx" id="vimg" alt="看不清，换一张" width="58" height="20" style="vertical-align:bottom" />'; //验证码
    //str += '<img src="images/yzm.jpg" width="58" height="20" style="vertical-align:bottom" />';
    str += '           </td>';
    str += '        </tr>';
    str += '        <tr>';
    str += '          <td colspan="2" height="38" align="center"><input type="button" id="dl" class="btn_bg" value="登&nbsp;录" onclick="LoginOA()"/>';
    str += '            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    str += '            <input type="button" class="btn_bg" value="重&nbsp;置"  onclick="ClearLoginOA()"/></td>';
    str += '        </tr>';
    str += '      </table>';
    str += '    </div>';
    str += '    <div class="clear_float"></div>';
/*     str += '    <!--公开电话-->';
    str += '    <div class="gkdh border_green">';
    str += '      <div class="sidebar_tit"><span class="more"><a onclick="javascript:open_Win(\'seconds_DH.htm\',\'\',\'\',\'公开电话\',\'\')" style="cursor:hand;">更多>></a></span><img src="images/index_21_40.jpg" width="11" height="11" />&nbsp;<a href="#">公开电话</a></div>';
    str += '      <div class="sidebar_line"></div>';
    str += '      <div style="line-height:22px; padding-top:3px; text-align:center" class="f_weight">值班电话：0311-86031126<br/>';
    str += '        执法举报：0311-86824200<br/>';
    str += '        病虫害咨询：0311-87719570 </div>';
    str += '    </div>';*/
    str += '    <!--专栏-->';
    str += '    <div class="zl_h"><a href="http://info.sjzchina.com/col/1308640235317/index.html" target="_blank" style="cursor:hand;"><img src="images/pic.jpg"  width="230"  height="60" boder=0/></a></div>';
    str += '    <div class="clear_float"></div>';
    str += '    <!--专题活动-->';
    str += '    <div class="zt border_green">';
    str += '      <div class="sidebar_tit"><span class="more"><a onclick="javascript:open_Win(\'seconds_zt.htm\',\'\',\'专题活动\',\'\',\'\')" style="cursor:hand">更多>></a></span><img src="images/index_21_40.jpg" width="11" height="11" />&nbsp;<a  onclick="javascript:open_Win(\'seconds_zt.htm\',\'\',\'专题活动\',\'\',\'\')" style="cursor:hand">专题活动</a></div>';
    str += '      <div class="sidebar_line"></div>';
    str += '	  <div class="clear_float"></div>   ';
    for (var i = 0; i < ZTTPList.length; i++) {
        str += '<div align="center" style="padding:2px 0"><img onclick="javascript:open_Win(\'seconds_zt.htm\',\'\',\'专题活动\',\'' + ZTTPList[i].Title + '\',\'\')" style="cursor:hand;" src="' + SWebPath + ZTTPList[i].ImgUrl + '" width="214" height="49"/></div>';
    }
    str += '    </div>';
    str += '    <div class="clear_float"></div>';
    str += '    <!--互动交流-->';
    str += '    <div class="hdjl border_green">';
    str += '      <div class="sidebar_tit"><span class="more"><a href="seconds_HD_R.htm?AddModel=&PModel='+encodeURI("互动交流")+'&Model=" target="_blank" >我要写信</a>&nbsp;&nbsp;<a onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'\',\'\')" style="cursor:hand">更多>></a></span><img src="images/index_21_40.jpg" width="11" height="11" />&nbsp;<a onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'\',\'\')" style="cursor:hand">互动交流</a></div>';
    str += '      <div class="sidebar_line"></div>';
    str += '      <div class="hdjl_ly">';
    str += '        <ul>';
    for (var i = 0; i < HDJLList.length; i++) {
        var Title = CutChar(HDJLList[i].Title);
        if (Title.length > 11) {
            Title = Title.substring(0, 11) + "...";
        }
        str += '          <li><span>办结</span>·&nbsp;<a title="'+HDJLList[i].Title+'" href="seconds_HD_XX.htm?ID=' + HDJLList[i].ID + '&AddModel=&PModel=' + encodeURI("互动交流") + '&Model=' + encodeURI(HDJLList[i].Type) + '" target="_blank">' + Title + '</a></li>';
    }
    str += '        </ul>';
    str += '      </div>';
    str += '      <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">';
    str += '        <tr>';
    str += '          <td width="16%" height="25"><img src="images/index_21_52.jpg" width="20" height="20" /></td>';
    str += '          <td width="34%"><a onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'领导信箱\',\'\')" style="cursor:hand"><font color="#41951a">领导信箱</font></a></td>';
    str += '          <td width="16%"><img src="images/index_21_57.jpg" width="20" height="18" /></td>';
    str += '          <td width="34%"><a onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'建议咨询\',\'\')" style="cursor:hand"><font color="#41951a">建议咨询</font></a></td>';
    str += '        </tr>';
    str += '        <tr>';
    str += '          <td><img src="images/index_21_54.jpg" width="20" height="18" /></td>';
    str += '          <td><a onclick="javascript:open_Win(\'seconds_HD.htm\',\'\',\'互动交流\',\'投诉举报\',\'\')" style="cursor:hand"><font color="#41951a">投诉举报</font></a></td>';
    str += '          <td><img src="images/index-4-18_20-24.jpg" width="21" height="21" /></td>';
    str += '          <td ><a onclick="javascript:open_Win(\'seconds_FT.htm\',\'\',\'互动交流\',\'在线访谈\',\'\')" style="cursor:hand"><font color="#41951a">在线访谈</font></a></td>';
    str += '        </tr>';
    str += '      </table>';
    str += '    </div>';
    str += '  </div>';
    str += '  </div>';
    str += '  <!--页面主体end--->';
    str += '  <!--页面底部----->';
    str += '    <div class="clear_float"></div>';
    str += '  <div id="Footer">';
   str += '    <iframe src="bottom.htm" width="100%" frameborder="0" scrolling="no" style="height:100%"></iframe>';
   str += '  </div>';
   str += '  <!--页面底部end-->';
   str += '</div>';
    //2011-5-17

    $("StrContent").innerHTML = str;

    setLoop(); //2011-5-17
    
   
    var scrollPic_02 = new ScrollPic(); //图片滚动
    scrollPic_02.scrollContId = "ISL_Cont_1"; //内容容器ID
    scrollPic_02.arrLeftId = "LeftArr"; //左箭头ID
    scrollPic_02.arrRightId = "RightArr"; //右箭头ID

    scrollPic_02.frameWidth = 708; //显示框宽度
    scrollPic_02.pageWidth = 5; //翻页宽度

    scrollPic_02.speed = 50; //移动速度(单位毫秒，越小越快)
    scrollPic_02.space = 10; //每次移动像素(单位px，越大越快)
    scrollPic_02.autoPlay = true; //自动播放
    scrollPic_02.autoPlayTime = 0; //自动播放间隔时间(秒)
    scrollPic_02.initialize(); //初始化';

    //纠风无题图片切换
    if ($("tpbd_len").value != "0") {
        fnToggle();
    }
    
    CB_Init(); //查看大图 If you load new content with AJAX in your webpage without refreshing it and you want, that the clearbox work with the new content too, you have to call CB_Init(); function AFTER your AJAX content-load.

}


//2011-5-17
var pause = false;
var con_num = 3;
var startIndex = 1;
function setLoop() {
    try {
        con_num = $("tplen").value;
        var oScroll = document.getElementById('banner');
        oScroll.noWrap = true;
        oScroll.onmouseover = function(e) { pause = true; };
        oScroll.onmouseout = function(e) { pause = false; };
        setInterval('scrollTopHome()', 5000);
    } catch (e) { alert(e.toString()); }
}
function scrollTopHome() {
    if (pause) return;
    startIndex += 1;
    if (startIndex > con_num) { startIndex = 1; }
    setTab('tophome', con_num, startIndex, 'out', 'on');
}

function setTab(/*string*/name, /*int*/itemCnt, /*int*/curItem, /**/classHide, /**/classShow) {
    for (i = 1; i <= itemCnt; i++) {
        eval("document.getElementById('tab_" + name + "_" + i + "').className='" + classHide + "'");
    }
    eval("document.getElementById('tab_" + name + "_" + curItem + "').className='" + classShow + "'");

    for (i = 1; i <= itemCnt; i++) {
        eval("ele_hide = document.getElementById('con_" + name + "_" + i + "')");
        if (ele_hide) ele_hide.style.display = "none";
    }
    eval("ele_play = document.getElementById('con_" + name + "_" + curItem + "')");
    if (ele_play) ele_play.style.display = "block";
}
//2011-5-17



var NowFrame = 1;
var MaxFrame = 4;
var bStart = 0;
function fnToggle() {
    MaxFrame = $("tpbd_len").value;
    var next = NowFrame + 1;
    if (NowFrame == MaxFrame) {
        NowFrame = MaxFrame;
        next = 1;
    }
    if (bStart == 0) {
        bStart = 1;
        setTimeout('fnToggle()', 2500);
        return;
    }
    else {
        oTransContainer.filters[0].Apply();
        document.images['oDIV' + next].style.display = "";
        document.images['oDIV' + NowFrame].style.display = "none";
        oTransContainer.filters[0].Play(duration = 2);
        if (NowFrame == MaxFrame) {
            NowFrame = 1;
        }
        else {
            NowFrame++;
        }
    }
    setTimeout('fnToggle()', 5000);
}

//2011-5-19
function open_Win(url, mara, mara1, mara2, tgt) {
    window.parent.location.href = url + "?AddModel=" + encodeURI(mara) + "&PModel=" + encodeURI(mara1) + "&Model=" + encodeURI(mara2);
}

//-------图片视频切换----------------------------------------------------------
function ShowPic_Play(id, liname, contname) {
for (var i = 0; i < 2; i++)
{
    var li = document.getElementById(liname + i);
    var cint = document.getElementById(contname + i);
    if (i == id) {
        li.className = "selectd";
        cint.style.display = "block";
    }
    else {
        li.className = "";
        cint.style.display = "none";
    }
 }
}
function reset(id) {
}
//-------------------------------------------------------------------------------

//-------模块内容切换----------------------------------------------------------
//总个数，当前值，li名称，div名称，样式1，样式2
function ChangeAll(cou, curri, liname, divname, sty1, sty2) {
    for (var i = 0; i < cou; i++) {
        var li = document.getElementById(liname + i);
        var cint = document.getElementById(divname + i);
        if (i == curri) {
            li.className = "selectd";
            cint.style.display = "block";
        }
        else {
            li.className = "";
            cint.style.display = "none";
        }
    }
}
function reset_all(id) {
}
//-------------------------------------------------------------------------------


//----------------网上调查-----------------
function tijiao(id) {
SelectIDs("diaocha", id);
}
function SelectIDs(name, id) {
var checks = document.getElementsByTagName("input");
var str = "";
for (var i = 0; i < checks.length; i++) {
if (checks[i].name == name && checks[i].checked) {
str += checks[i].value + ",";
}
}
if (str == "") {
alert("请选择选项");
return
}
else {
Get_Tijiao(id, str);
}
};

function Get_Tijiao(id, str) {
var url = encodeURI(SWebPath + "/action/DiaoCha.aspx?id=" + id + "&str=" + str);
var pars = encodeURI("");
var myAjax = new Ajax.Request(url, { method: 'get', parameters: pars, onComplete: sGet_TiJiao, onFailure: fGetNewList });
}
//操作成功
function sGet_TiJiao(o) {
var root = o.responseXML.documentElement;
var flag = GetXmlData(root, "Value");
if (flag == "true") {
alert("谢谢您的投票");
var checks = document.getElementsByTagName("input");
for (var i = 0; i < checks.length; i++) {
checks[i].checked = false;
}
chakan(DiaoCha[0].ID);
}
else {
alert("对不起，您已经投过票了");
var checks = document.getElementsByTagName("input");
for (var i = 0; i < checks.length; i++) {
checks[i].checked = false;
}
}
}
//-------------查看-------------------------------------------
function chakan(id) {
var url = encodeURI(SWebPath + "/action/DiaoCha_ChaKan.aspx?id=" + id);
var pars = encodeURI("");
var myAjax = new Ajax.Request(url, { method: 'get', parameters: pars, onComplete: sGet_ChaKan, onFailure: fGetNewList });
}
function sGet_ChaKan(o) {
DiaoCha = Map_DiaoCha(o); //调查
DiaoCha_Items = Map_DiaoCha_Items(o); //调查项
var str = '';
str += '<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">';
if (DiaoCha.length > 0) {
str += '<tr>';
str += '<td colspan="3" height="26" align="center" class="f_blue">';
str += DiaoCha[0].question_item + '&nbsp;&nbsp;共有' + DiaoCha[0].num + '人投票';
str += '</td>';
str += '</tr>';

if (DiaoCha_Items.length > 0) {
for (var i = 0; i < DiaoCha_Items.length; i++) {
str += '<tr>';
str += '<td style="width:60%" height="18" valign="top" align="center" >';
str += DiaoCha_Items[i].question_item;
str += '</td>';
var bili = DiaoCha_Items[i].num * 100 / DiaoCha[0].num;
str += '<td style="width:70px;height:22px;background-image:url(images/news_xq_ws_017.gif);"><img style=" border:0px; width:' + bili + '%;height:22px" src="images/news_xq_ws_019.gif" /></td>';
str += '<td style="width:5%">&nbsp;' + DiaoCha_Items[i].num + '</td>';
str += '</tr><tr><td height=2></td></tr>';
}
}
}
str += '</table>';
$("diaocha_haha").innerHTML = str;

var str1 = '';
str1 += '<a href="#002" onclick="back()"><img style="border:0px" src="images/index_54.gif" /></a>&nbsp;&nbsp;<a href="#001" onclick="chakan(\'' + DiaoCha[0].ID + '\')"><img style="border:0px" src="images/index_54-57.gif"/></a>';

$("anniu").innerHTML = str1;
}
function back()
{ GetNewList(); }

//查询
function search() {
    var keyword = $("headq").value;
    if (keyword == "") {alert("请输入关键字");return;}
    var type = $("searchType").value;
    window.open("Search.htm?type=" + encodeURI(type) + "&keyword=" + encodeURI(keyword));
}
//-----------------------------------------------------------------------------

function checkeURL(URL) {
    var str = URL;
    //在JavaScript中，正则表达式只能使用"/"开头和结束，不能使用双引号
    //判断URL地址的正则表达式为:http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
    //下面的代码中应用了转义字符"\"输出一个字符"/"
    var Expression = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
    var objExp = new RegExp(Expression);
    if (objExp.test(str) == true) {
        return true;
    } else {
        return false;
    }
}

//得到字节长度2010-12-30
function strlen(str, length) {
    var retStr = "";
    var len;
    var i;
    len = 0;
    for (i = 0; i < str.length; i++) {
        if (str.charCodeAt(i) > 255) len += 2; else len++;
        if (len <= length) {
            retStr += str.charAt(i);
        }
        if (len >= length) {
            if (i < str.length) { retStr += "..."; } break;
        }
    }
    return retStr;
}

//2011-5-18验证码切换
function change() {
    var imgNode = document.getElementById("vimg");
    imgNode.src = "Action/WaterMark.ashx?t=" + (new Date()).valueOf(); // 这里加个时间的参数是为了防止浏览器缓存的问题
}
function LoginOA() {
    var username = $("UserName").value;
    var userpwd = $("UserPwd").value;
    var Code = $("Code").value;
    if (username == "") { alert("用户名不能为空");$("UserName").focus(); }
    else if (userpwd == "") { alert("密码不能为空"); $("UserPwd").focus(); }
    else if (Code == "") { alert("验证码不能为空"); $("Code").focus(); }
    else {
        var url = encodeURI(SWebPath + '/action/WaterMarkCheck.aspx');
        var pars = encodeURI("?CheckCode=" + Code);
        var myAjax = new Ajax.Request(url, { method: 'get', parameters: pars, onComplete: sLoginOA, onFailure: fLoginOA });
    }
}
function sLoginOA(o) {
    var Flg = MapPage(o, "Value");
    if (Flg == "true") {
        //alert("正确");
        window.open("http://www.sjzylj.com:9000/LiveFlowWeb/LoginWeb.html?UserName=" + JavaEn($("UserName").value) + "&UserPwd=" + JavaEn($("UserPwd").value));
    }
    else { alert("验证码错误"); }
}
function fLoginOA() { }
function ClearLoginOA() {
    $("UserName").value = "";
    $("UserPwd").value = "";
    $("Code").value = "";
}
function JavaEn(txt) {//加密
    var monyer = new Array(); var i, s;
    for (i = 0; i < txt.length; i++) {
        s = txt.charCodeAt(i).toString(16);
        monyer += "\\" + new Array(5 - String(s).length).join("0") + s;
    }
    return monyer;
}
function JavaDe(txt) {//解密
    var monyer = new Array(); var i;
    var s = txt.split("\\");
    for (i = 1; i < s.length; i++) monyer += String.fromCharCode(parseInt(s[i], 16));
    return monyer;
}

//验证

function document.onkeydown()                //网页内按下回车触发
{
        if(event.keyCode==13)
        {
            document.getElementById("dl").click();   
            return false;                             
        }
    }

