    function my_albumMain(objID){
            
      var width = $(objID).attr("width");
      var pos = (parseInt($(objID).attr("top"))+1);    
      var px = pos * width;      
      $(objID).attr("top", pos);
              
      var pos = parseInt($(objID).attr("top"));
      var total = parseInt($(objID).attr("total"));

      $(objID).css("left", -px);

      if (pos>=total) {
        $(objID).attr("top", 0);
        $(objID).css("left", "0px");
      }        
    }

    function my_albumBackMain(objID){    
      
      if ($(objID+":animated").size()) return false;
      var width = $(objID).attr("width");
      var pos = (parseInt($(objID).attr("top"))-1);    
      var px = pos * width;      
      $(objID).attr("top", pos);
      
      var pos = parseInt($(objID).attr("top"));
      var total = parseInt($(objID).attr("total"));

      $(objID).css("left", -px);

      if (pos>=total) {
        $(objID).attr("top", 0);
        $(objID).css("left", "0px");
      }        
    }

    function nextBannerMain(mode){    
      clearInterval($("#banner2").attr("timer"));
      if ( mode == "right" ) {      
          my_albumMain("#banner2");      
      } else if ( mode == "left" ) {      
        if( parseInt($("#banner2").attr("top")) == 0 ) {
          alert('더 이상 앞으로 갈 수 없습니다.');
        } else {
          my_albumBackMain("#banner2");
        }
      }
      $("#banner2").attr("timer", setInterval("my_albumMain('#banner2')", 5000));
    }
               
    function setTagCloud(sPeriod) {
      if ( sPeriod == "1") {
        $("#tag24Hour").addClass("on");
        $("#tag7Day").removeClass("on");
        $("#moreTag").attr("href","../../program/tag/favorite.jsp?menuID=001001002006001");
      } else {
        $("#tag24Hour").removeClass("on");
        $("#tag7Day").addClass("on");
        $("#moreTag").attr("href","../../program/tag/favorite.jsp?menuID=001001002006001&period=7");
      }      
      $("#tagList").load("../../program/tag/favoriteAjax.jsp", {"period":sPeriod, "style":"tag", "howMany":"7"});
    }
    
    var bannerTime1 = 5000;
    var bannerTime2 = 5000;
    var moveSpeed = 500; //이동시간 5초
    function getMoveElement(obj) {                  
      return obj.parent().parent().parent();
    }
    
    function writeDivIndexCookie(){
      var divIndex = $(".divIndex");
      var divIndexText = "";      
      for( var i = 0; i < divIndex.length; i++ ) {
        if ( divIndexText == '' ) {
          divIndexText = divIndex[i].id;
        } else {
          divIndexText += "|" + divIndex[i].id;
        }
      }
      setCookie("divIndex", divIndexText,365);
    }
        
    function moveUp(obj) {
      
      var prevObj = obj.prev();
      if ( prevObj.attr("class") ) {

        var temp = obj.css("z-index");
        obj.css("z-index",prevObj.css("z-index"));
        prevObj.css("z-index", temp);

        obj.animate({ top: getHeight(prevObj) * (-1) }, moveSpeed, function() { obj.css("top", "0px"); } );    
        prevObj.animate({ top:  getHeight(obj) }, moveSpeed, function() { obj.insertBefore(prevObj); prevObj.css("top", "0px"); writeDivIndexCookie(); });
      } else {
        alert("위로 이동할 수 없습니다.");
      }      
    }
   
    function moveDown(obj) {
      var nextObj = obj.next();      
      if ( nextObj.attr("class") ) {

        var temp = obj.css("z-index");
        obj.css("z-index",nextObj.css("z-index"));
        nextObj.css("z-index",temp);        

        obj.animate({ top: getHeight(nextObj) }, moveSpeed, function() { obj.css("top", "0px"); } );    
        nextObj.animate({ top:  getHeight(obj) * (-1)   }, moveSpeed, function() { nextObj.insertBefore(obj); nextObj.css("top", "0px"); writeDivIndexCookie(); });

      } else {
        alert("아래로 이동할 수 없습니다.");
      }      
    }

    function sortingDiv() {
      var divIndex = getCookie("divIndex");
      
      if(divIndex == ''){
        
      } else{
        var oDiv = divIndex.split('|');
        for( var k = 0; k<oDiv.length; k++){  
          $("#"+oDiv[k]).appendTo($("#middleGroupParent"));                
        }
      }            
    }
    
    function getHeight(obj) {
      return ( obj.outerHeight(true) - obj.outerHeight() ) / 2 + obj.outerHeight();
    }   

  function my_album(objID){    
    
    if ($(objID+":animated").size()) return false;
    
    var width = $(objID).attr("width");
    var pos = (parseInt($(objID).attr("top"))+1);    
    var px = pos * width;      

    $(objID).attr("top", pos);
    $(objID).animate({ 
      left: ((px * -1) + "px")
    }, 1500, $(objID).attr("motion"), 
      function() {
        var pos = parseInt($(objID).attr("top"));
        var total = parseInt($(objID).attr("total"));
        
        if (pos>=total) {
          $(objID).attr("top", 0);
          $(objID).css("left", "0px");
        }
      }
    );

    if ( objID == "#banner" ) {
      var profileTextList = $(".profileText");
      document.getElementById("profileText").innerHTML = profileTextList[(parseInt(pos))%parseInt($(objID).attr("total"))].innerHTML;       
    }

  }
  
  function my_albumBack(objID){    
    
    if ($(objID+":animated").size()) return false;
    var width = $(objID).attr("width");
    var pos = (parseInt($(objID).attr("top"))-1);    
    var px = pos * width;      
    $(objID).attr("top", pos);
    $(objID).animate({ 
      left: ((px * -1) + "px")
    }, 2500, $(objID).attr("motion"), 
      function() {
        var pos = parseInt($(objID).attr("top"));
        var total = parseInt($(objID).attr("total"));
        
        if (pos>=total) {
          $(objID).attr("top", 0);
          $(objID).css("left", "0px");
        }
      }
    );
    if ( objID == "#banner" ) {
      var profileTextList = $(".profileText");      
      document.getElementById("profileText").innerHTML = profileTextList[(parseInt(pos))%parseInt($(objID).attr("total"))].innerHTML;       
    }    
  }
  
  function nextBanner(mode, bannerID){    
    clearInterval($("#"+bannerID).attr("timer"));
    if ( mode == "right" ) {      
        my_album("#"+bannerID);      
    } else if ( mode == "left" ) {      
      if( parseInt($("#"+bannerID).attr("top")) == 0 ) {
        alert('더 이상 앞으로 갈 수 없습니다.');
      } else {        
        my_albumBack("#"+bannerID);
        clearInterval($("#"+bannerID).attr("timer"));
      }
    }
    if ( bannerID == "banner" ) {
      $("#"+bannerID).attr("timer", setInterval("my_album('#"+bannerID+"')", bannerTime1));
    } else if ( bannerID == "banner2" ) {
      $("#"+bannerID).attr("timer", setInterval("my_album('#"+bannerID+"')", bannerTime2));
    }
  }

  function stopBanner(bannerID){    
    clearInterval($("#"+bannerID).attr("timer"));    
  }
  
  function listIntegrationBoard(value){

    var currentIndex = 0;
    var currentPage  = parseInt($("#currentPage").attr("value"))+ value;
    var tabID        = $("#tabID").attr("value");
    if($("#currentIndex")){
      currentIndex = $("#currentIndex").attr("value");
    }
    if($("#totalPage")){
      var totalPage = $("#totalPage").attr("value");      
      if( currentPage < 1 ) {
        currentPage = totalPage;
      }      
      if( currentPage > totalPage ) {
        currentPage = 1;
              
      }       
    }
    
    document.getElementById("currentPage").value = currentPage;
    var link = "listIntegrationBoard.jsp";
    if ( tabID == "mTab2" ) {
      link = "listMyIntegrationBoard.jsp";
    }

    $.post("../../main/inc/" + link, 
        { "currentPage" : currentPage, "currentIndex" : currentIndex, "siteID" : "001"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수         
          data = trim(data);
          document.getElementById(tabID).innerHTML = data
          if(data.length > 0 ) {
            if ( tabID == "mTab2" ) {
              $("#mTab").html("");            
            }else{
              $("#mTab2").html("");            
            }
            
            if ( document.getElementById(tabID+"Value") ) {            
              var tabInfo = document.getElementById(tabID+"Value").value.split(",");
              $("#lineCount").attr("value",tabInfo[0]);
              $("#totalPage").attr("value",tabInfo[1]);
              $("#totalList").attr("value",tabInfo[2]);
              $("#currentIndex").attr("value",tabInfo[3]);
              $("#currentBoardTypeID").attr("value",tabInfo[4]);          
              currentPage = $("#currentIndex").attr("value");
              getList($("#"+tabID+">li").eq(currentPage).attr("id"),$("#"+tabID+">li").eq(currentPage).attr("name"));
              $("#mordBoardList").css("display","");
            }else {
              $("#boardListName_Main").text("선택된 소식이 없습니다.");
              $("#mordBoardList").css("display","none");
            }      
          }else {
            $("#boardListName_Main").text("선택된 소식이 없습니다.");
            $("#"+tabID).html("<li>[My소식]을 설정하지 않으셨습니다.</li>");
            $("#bodyList1").html("<div class='ac' style='vertical-align:middle;'>[My소식 편집]버튼을 클릭하면<br/>My소식 설정화면으로 이동합니다.</div>");
            $("#mordBoardList").css("display","none");
          }
        }, 
        "text");
  }
  
  function getList(boardTypeID, menuID){  
    
    var tabID = $("#tabID").attr("value");
    
    if(boardTypeID == ''){
        boardTypeID = parseInt($("#currentBoardTypeID").attr("value"));
    }
	if ( boardTypeID=="126"  ) {
		$.post("../../main/inc/listCitynet.jsp", 
		        { 'boardTypeID' : boardTypeID, "siteID" : "001"},  // 선택된 것 Array로 넘기기
		        function(data) {            // Callback 함수
		          $("#bodyList1").html(data);
		          $("#mordBoardList").attr("href","../../program/citynet/view.jsp?menuID="+menuID);
		        }, 
		        "text");
	} else if ( boardTypeID == "120") {
		$.post("../../main/inc/listCitynetNews.jsp", 
		        { 'boardTypeID' : boardTypeID, "siteID" : "001"},  // 선택된 것 Array로 넘기기
		        function(data) {            // Callback 함수
		          $("#bodyList1").html(data);
		          $("#mordBoardList").attr("href","../../program/citynet/viewNews.jsp?menuID="+menuID);
		        }, 
		        "text");
	} else {
    $.post("../../main/inc/listBoard.jsp", 
        { 'boardTypeID' : boardTypeID, "siteID" : "001"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수
          $("#bodyList1").html(data);
          $("#mordBoardList").attr("href","../../program/board/list.jsp?menuID="+menuID+"&boardTypeID=" + boardTypeID);
        }, 
        "text");
	}	
    $("#"+tabID+">li .on").removeClass("on");  
    $("#"+boardTypeID+" a").addClass("on");
    $("#boardListName_Main").text($("#"+boardTypeID+" a").text());
        
  }

  function nextList(){      
    var tabID = $("#tabID").attr("value");
    var boardTypeID  = parseInt($("#currentBoardTypeID").attr("value"));
    var currentIndex = parseInt($("#currentIndex").attr("value"));
    var totalIndex   = parseInt($("#totalList").attr("value"));
    var totalPage    = parseInt($("#totalPage").attr("value"));
    currentIndex++;    
    
    if ( currentIndex > totalIndex ) {                
      currentIndex = 0;
      $("#currentIndex").attr("value", currentIndex);
      if(totalPage == 1 || totalPage == 0){
        listIntegrationBoard(0);            
      }else {
        listIntegrationBoard(1);            
      }
      
    }else{
      
      $("#currentIndex").attr("value", currentIndex);
      getList($("#"+tabID+">li").eq(parseInt(currentIndex)).attr("id"),$("#"+tabID+">li").eq(parseInt(currentIndex)).attr("name"));  
    }
  }
  
  function prevList(){
    var tabID = $("#tabID").attr("value");
    var boardTypeID  = parseInt($("#currentBoardTypeID").attr("value"));
    var currentIndex = parseInt($("#currentIndex").attr("value"));
    var totalIndex   = parseInt($("#totalList").attr("value"));
    var totalPage    = parseInt($("#totalPage").attr("value"));
    
    currentIndex--;    
    
    if ( currentIndex < 0 ) {                
      currentIndex = $("#lineCount").attr("value");
      $("#currentIndex").attr("value", currentIndex);
      if(totalPage == 1){
        listIntegrationBoard(0);            
      }else {
        listIntegrationBoard(-1);            
      }                  
    }else{
      $("#currentIndex").attr("value", currentIndex);
      getList($("#"+tabID+">li").eq(parseInt(currentIndex)).attr("id"),$("#"+tabID+">li").eq(parseInt(currentIndex)).attr("name"));  
    }
  }

  function viewList( ulID ){
    $("#tabID").attr("value",ulID);
    //clearInterval($("#mTab").attr("timer"));
    //clearInterval($("#mTab2").attr("timer"));
    if ( ulID == "mTab" ){            
      tab3('tab3_1', '2');
    } else if ( ulID == "mTab2" ){            
      tab3('tab3_2', '2');
    }
    
    //$("#"+ulID).attr("timer", setInterval("nextList()", 10000));
    $("#currentIndex").attr("value",0);
    $("#currentPage").attr("value",1);
    $("#totalPage").attr("value",1);    
    $("#totalList").attr("value",0);
        
    listIntegrationBoard(0);
  }

  function showMyNewsEdit() {    
    $.post("../../main/inc/editMyBoardList.jsp", 
        {"siteID" : "001"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수
          $("#myNewsEdit").html("");
          $("#myNewsEdit").html(data);
          showHide('myNewsEdit','','show');
        }, 
        "text");
  }

  function fncMyBoardListUpdate(){

    var objID = '';    
    var updateObj = $(".totalBoardList");

    for(var i = 0; i < updateObj.size(); i++ ) {
      if ( updateObj[i].checked == true ) {
        updateObj[i].checked = false;        
        objID = updateObj[i].id.replace("list","");
        $("#totalBoardList"+objID).appendTo($("#myBoardList"));
        $("#totalBoardList"+objID).attr("id","myBoardList"+objID);
        $("#list"+objID).removeClass("totalBoardList");
        $("#list"+objID).addClass("myBoardList");
      }
    }
    fncMyBoardListCommit();
  }
 
  function fncMyBoardListDelete(){
    
    var objID = '';
    var deleteObj = $(".myBoardList");
    
    for(var i = 0; i < deleteObj.length; i++ ) {        
      if ( deleteObj[i].checked == true ) {
        deleteObj[i].checked = false;        
        objID = deleteObj[i].id.replace("list","");
        var type = deleteObj[i].value.split("|");    
                
        if(type[1] == '1'){
          $("#myBoardList"+objID).appendTo($("#editTab"));
        } else if(type[1] == '2'){
          $("#myBoardList"+objID).appendTo($("#editTab2"));
        } else if(type[1] == '3'){
          $("#myBoardList"+objID).appendTo($("#editTab3"));
        }
        $("#myBoardList"+objID).attr("id","totalBoardList"+objID);
        $("#list"+objID).removeClass("myBoardList");
        $("#list"+objID).addClass("totalBoardList");

      }
    }    
  }

  function fncMyBoardListClose(){
    var orgList = $("#orgBoardList").attr("value");
    var currentMyList = $(".myBoardList");
    var idList = "";
    
    for(var i = 0; i < currentMyList.length; i++ ) {
      if ( idList == "" ) {
        idList  = currentMyList[i].id.replace("list",""); 
      } else {
        idList  += "," + currentMyList[i].id.replace("list",""); 
      }
    } 

    if ( idList == orgList ) {
      showHide('myNewsEdit','','hide');
    } else {
      if ( confirm("편집하신 사항을 적용하시겠습니까?") ) {
        fncMyBoardListCommit();
      }else {
        showHide('myNewsEdit','','hide');
      }
    }   
  }
  
  function fncMyBoardListCommit(){
    var currentMyList = $(".myBoardList");
    var idList = "";
    for(var i = 0; i < currentMyList.length; i++ ) {
      if ( idList == "" ) {
        idList  = currentMyList[i].id.replace("list",""); 
      } else {
        idList  += "," + currentMyList[i].id.replace("list",""); 
      }
    } 

    $.post("../../main/inc/updateMyBoardList.jsp", 
        {"listMyBoardID" : idList, "siteID" : "001", "mode" : "myBoardList"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수
          if ( trim(data) == "success" ) {
            showHide('myNewsEdit','','hide');
          } else {
            alert("적용에 실패하였습니다. 다시한번 시도해 주세요.");
          }
          viewList("mTab2");
        }, 
        "text");
  }

  function editMyFavoriteService(){    
    
    $.post("../../main/inc/editMyFavoriteService.jsp", 
        {"siteID" : "001"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수
          $("#editFavoriteService").html(data);
          
        }, 
        "text");

    showHide('conSpace','','hide');
    showHide('conSpaceEdit','','show');
  }

  function updateMyFavoriteService(){    
    
    var objList = $(".favoriteServiceList");
    var myFavoriteServiceList = '';
    var maxCount = 0;
    for( var i = 0; i < objList.length; i++ ) {
      
      if( objList[i].checked == true ) {
        maxCount++;        
        if( myFavoriteServiceList == '' ) {
          myFavoriteServiceList = objList[i].value; 
        } else {
          myFavoriteServiceList += ',' + objList[i].value;;
        }
      }
    }
    
    if ( maxCount < 3 ) {
      alert("최소 3개 이상 등록하셔야 합니다.");
      return false;
    }
    
    if ( maxCount > 12 ) {
      alert("최대 12개의 서비스를 등록하실 수 있습니다.");
      return false;
    }
    
    $.post("../../main/inc/updateMyBoardList.jsp", 
        {"myFavoriteServiceList" : myFavoriteServiceList, "siteID" : "001", "mode" : "myFavoriteServiceList"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수   
          alert(data);                
          if ( trim(data) == "success" ) {
            listMyFavoriteService();
            showHide('conSpaceEdit','','hide');
            showHide('conSpace','','show');
          } else {
            alert("적용에 실패하였습니다. 다시한번 시도해 주세요.");
            listMyFavoriteService();
            showHide('conSpaceEdit','','hide');
            showHide('conSpace','','show');
          }          
        }, 
        "text");
  }

  function defaultMyFavoriteService(){
    $("#editFavoriteService>input:checked").attr("checked","false");    
    $("#myFavoriteServiceList1, #myFavoriteServiceList2, #myFavoriteServiceList3, #myFavoriteServiceList4, #myFavoriteServiceList5, #myFavoriteServiceList6, #myFavoriteServiceList7, #myFavoriteServiceList8, #myFavoriteServiceList9").attr("checked","checked");    
  }
  
  function listMyFavoriteService(){
    $.post("../../main/inc/listMyFavoriteService.jsp", 
        {"siteID" : "001"},  // 선택된 것 Array로 넘기기
        function(data) {            // Callback 함수                    
          $("#myFavoriteServiceList").html(data);          
        }, 
        "text");
  }
  
  function showFavoriteServiceTab(){
    listMyFavoriteService();
    showHide('middleTabGroup','','hide'); 
    showHide('middleTab','','hide'); 
    showHide('middleTab2','','hide'); 
    showHide('middleTab3','','show');
  }
  
  function setCurrentIndex(value){
    document.getElementById("currentIndex").value = value;
  }

  function selectInside(id){
    var obj = "inside"+id;
    var menuList = "insideMenuList" + id;
    $(".menuList .insideMenuList").removeClass("on");
    $("#"+menuList).addClass("on");
    if ( id == "1" ) {
    	getConcertList("0");
    } else if ( id == "2") {    	
    	getParticipationList("0");
    } else if ( id == "3" ) {
    	getTodayList("0");
    } else if ( id == "4" ) {
    	getiLoveUCC();
    }
    
    $("#inside .inside").attr("style","display:none");
    $("#"+obj).attr("style","display:block");
  }
  function getiLoveUCC() {
	  $("#inside4").html("<div class=\"head2\"><span class=\"tit\"><strong>I Love UCC</strong></span><div class=\"cGroup\" id=\"cGroup4\"><span></span></div></div><div class=\"body2\" style=\"padding-left:7px;\"><iframe name=\"uccList\" id=\"uccList\"  style=\"margin-top:-5px;text-align:center;\"  width=\"330px\" height=\"97px\" scrolling=\"no\" marginwidth=\"0\"  marginheight=\"0\" frameborder=\"0\"  src=\"http://tv.incheon.go.kr/citizen/ucc/ucc2.jsp\"  title=\"I LOVE UCC\"></iframe></div>");
  }
  function nextSelectInside(value){
    var oSelect = parseInt(document.getElementById("insideIndex").value) + value;
    
    if ( oSelect > 5 ) {
      oSelect = 1;
    }else if ( oSelect < 1 ) {
      oSelect = 5;
    }
    selectInside(oSelect);
    document.getElementById("insideIndex").value = oSelect;
  }

  /* 인사이드 인천 공연전시 리스트 가져오기
   * 작성자 서경대
   * 작성이 2009.10.19
   * */
  var concertIndex = 0;  
  function getConcertList(value){   
    
    concertIndex = Number(concertIndex) + Number(value);
    
    if ( concertIndex < 0 ) {
      alert("이전 게시물이 없습니다.");
      concertIndex = 0;
      return false;
    }else{      
      $.post("../../main/inc/listConcert.jsp", {"currentIndex" : concertIndex},
          function(data) {
            if( concertIndex < 0  || trim(data) == '' ) {              
              concertIndex = 0;
              getConcertList("0");
            } else {            
              $("#concertList").html(data);
            }
          }, 
          "text");        
    }
  }  

  /* 인사이드 인천 참여공간 리스트 가져오기
   * 작성자 서경대
   * 작성이 2009.10.19
   * */
  var participationIndex = 0;
  
  function getParticipationList(value){
  
    participationIndex = Number(participationIndex) + Number(value);
    if ( participationIndex < 0 ) {
      alert("이전 게시물이 없습니다.");
      participationIndex = 0;
      return false;
    }else{ 
      $.post("../../main/inc/listParticipation.jsp", 
          {"mode":"all", "currentIndex" : participationIndex},
        function(data) {
          if( participationIndex < 0  || trim(data) == '' ) {              
            participationIndex = 0;
            getParticipationList("0");
          } else {            
            $("#participationList").html(data);
          }
        },"text"); 
    }
  }
  
  function getPopularNew(){
    $.post("../../main/inc/listPopularNew.jsp",
      function(data) {            // Callback 함수
        $("#coreListContent").html(data);
        nextNews(1);
        $("#coreListContent").attr("timer", setInterval("nextNews(1)", 3000));        
      }, 
      "text");    
  }
  var newsIndex = -1;
  function nextNews(){
    newsIndex = Number(newsIndex) + 1;
    $("#coreList").html("");
    $("#coreListContent>li").eq(newsIndex).clone().appendTo("#coreList");
    if ( newsIndex == 4 ) {
      newsIndex = -1;
    }
  }
  
  function prevNews(){
    newsIndex = Number(newsIndex) - 1;
    if ( newsIndex == -1 ) {
      newsIndex = 4;
    }
    $("#coreList").html("");
    $("#coreListContent>li").eq(newsIndex).clone().appendTo("#coreList");
  }
  
  function fncViewMiddle(viewID){
    $("#headMiddle>ul").css("display","none");
    $("#bodyMiddle>ul").css("display","none");
    $("#headMiddle"+viewID).css("display","");
    $("#bodyMiddle"+viewID).css("display","");
        
    for(var i = 0; i < $(".viewMiddle").size(); i++){
      if ( (i+1) == viewID ) {
        $(".viewMiddle").eq(i).attr("src","../../files/web1/images/main/btn_m2_00"+(viewID)+"_on.gif");
      }else{
        $(".viewMiddle").eq(i).attr("src","../../files/web1/images/main/btn_m2_00"+(i+1)+"_off.gif");
      }
    }
    
  }
  
  var todayIndex = 0;  
  function getTodayList(value){
    
    todayIndex = Number(todayIndex) + Number(value);
    
    if ( todayIndex < 0 ) {
      alert("이전 게시물이 없습니다.");
      todayIndex = 0;
      return false;
    }else{      
      $.post("../../main/inc/listToday.jsp",
          {"mode":"all", "currentIndex" : todayIndex},
        function(data) {
          if( todayIndex < 0  || trim(data) == '' ) {              
            todayIndex = 0;
            getTodayList("0");
          } else {
          $("#listToday").html(data);
          }          
        },"text");          
    }
  }  
