home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / res / rss.tpl < prev    next >
Text File  |  2013-04-03  |  28KB  |  649 lines

  1. <html>
  2. <meta http-equiv="Content-Type" content="text/html; charset={#}$HTMLCHARSET${/#}">
  3. <head>
  4. <style type="text/css">
  5. <!--
  6.   A:link    {text-decoration: none;      font-size: 12px; font-weight: bold;}
  7.   A:visited {text-decoration: none;      color:#354974; font-size: 12px; font-weight: normal;}
  8.   A:active  {text-decoration: none;      color:#FFFFFF; font-size: 12px; font-weight: normal;}
  9.   A:hover   {text-decoration: underline; color:#354974; font-size: 12px;}
  10.   A.AddRss:link    {text-decoration: none;   color:#ffffff;   font-size: 12px; font-weight: bold;}
  11.   BODY {
  12.     font-family: Arial;
  13.     scrollbar-face-color:#whitesmoke;
  14.     scrollbar-highlight-color:#E0E0E0;
  15.     scrollbar-shadow-color:#B0B0B0;
  16.     scrollbar-3dlight-color:#CCCCCC;
  17.     scrollbar-arrow-color:#808080;
  18.     scrollbar-track-color:#E0E0E0;
  19.     scrollbar-darkshadow-color:#AAAAAA;
  20.     margin-top: -1px; 
  21.     margin-right: -1px; 
  22.     margin-bottom: 0px; 
  23.     margin-left: 0px; 
  24.     padding-top: 0px; 
  25.     padding-right: 0px; 
  26.     padding-bottom: 0px; 
  27.     padding-left: 0px; 
  28.     border-top-width: 0px; 
  29.     border-right-width: 0px; 
  30.     border-bottom-width: 0px; 
  31.     border-left-width: 0px;
  32.     overflow: hidden;
  33.   }  
  34.   .style3  {font-family: Arial; font-size: 16px; color: #FFFFFF; font-weight: bold;}
  35.   .style6  {font-family: Arial; font-size: 12px; color: #FFFFFF;vertical-align:middle}
  36.   .style7  {font-family: Arial; font-size: 20px; color: orange; font-weight: bold;vertical-align:bottom;valign:bottom;} 
  37.   .style8  {font-family: Arial; font-size: 12px; color: #9393AA; height: 12pt; cursor: point;font-weight:bold;}
  38.   .style9  {font-family: Arial; font-size: 12px;}
  39.   .style10 {font-family: Arial; font-size: 12px;color: #354974;cursor:point}
  40.   .style11 {font-family: Arial; font-size: 12px;color: #1529CC;}
  41.   .style12 {overflow:hidden; font-size: 12px;text-overflow:ellipsis; white-space:nowrap;}
  42.   .styleDiv {padding:0px; margin: 0px; overflow-y:scroll; overflow-x:hide; background:WhiteSmoke;  -moz-scrollbars-vertical}
  43.   .itemDesc{font-family: Arial; font-size: 13px;line-height:16px;}
  44.   .valign_middle{vertical-align:middle}
  45.         .valign_bottom{vertical-align:bottom}
  46. -->
  47. </style>
  48. <script language="javascript" >
  49.   var RssItemsArray = new Array();
  50.   var statusForTitle = 0;
  51.   var statusForAuthor = 0;
  52.   var statusForPubDate = 0;
  53.   var targetlink =  "";
  54.   var openNew = false;
  55.   {#}$RSSITEMSARRAY${/#}
  56.   function ShowTableTitle(index) {
  57.     if (index==0) {
  58.       if (statusForTitle==0) {
  59.         statusForTitle = 1;
  60.       } else {
  61.         statusForTitle = 0;
  62.       }
  63.     }
  64.   
  65.     if (index==1) {
  66.       if (statusForAuthor==0) {
  67.         statusForAuthor = 1;
  68.       } else {
  69.         statusForAuthor = 0;
  70.       }
  71.     }
  72.   
  73.     if (index==2) {
  74.       if (statusForPubDate==0) {
  75.         statusForPubDate = 1;
  76.       } else {
  77.         statusForPubDate = 0;
  78.       }
  79.     }
  80.   
  81.     var buf = new Array();
  82.     buf.push("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"{#}$IMGDIR${/#}rss_b2.gif\" bgcolor=\"#999999\"><tr><td width=\"18px\" align=\"center\"><img id=imgViewType border=0 style=\"cursor:pointer\" src=\"{#}$IMGDIR${/#}rss_list.gif\" onClick=\"ChangeView()\"  ></td>");  
  83.     buf.push("<td  nowrap style=\"overflow:hidden; text-overflow:ellipsis;\" onclick=\"return ShowRssItems(0, " + statusForTitle + ", 1);\" ><span class=\"style8\"><IMG src=\"{#}$IMGDIR${/#}rss_sp.gif\" /> Subject </span><IMG ID=\"Image0\" src=\"{#}$IMGDIR${/#}rss_b.gif\"/></td>");
  84.     buf.push("<td  width=\"200px\" valign=\"bottom\" nowrap style=\"overflow:hidden; text-overflow:ellipsis;\" onclick=\"return ShowRssItems(1, " + statusForAuthor + ", 1);\"><span class=\"style8\"><IMG src=\"{#}$IMGDIR${/#}rss_sp.gif\" /> Creator </span><IMG ID=\"Image1\" src=\"{#}$IMGDIR${/#}rss_b.gif\"/></td>");
  85.     buf.push("<td  width=\"217px\" nowrap style=\"overflow:hidden; text-overflow:ellipsis;\" onclick=\"return ShowRssItems(2, " + statusForPubDate + ", 1);\"><span class=\"style8\"><IMG src=\"{#}$IMGDIR${/#}rss_sp.gif\" /> Date </span><IMG ID=\"Image2\" src=\"{#}$IMGDIR${/#}rss_b.gif\"/></td></tr></table>");
  86.     return buf.join("");
  87.   }
  88.   
  89.   function clearSortImages() {
  90.     var selObj = document.getElementById("Image0");
  91.     selObj.src="{#}$IMGDIR${/#}rss_b.gif";
  92.     selObj = document.getElementById("Image1");
  93.     selObj.src="{#}$IMGDIR${/#}rss_b.gif";
  94.     selObj = document.getElementById("Image2");
  95.     selObj.src="{#}$IMGDIR${/#}rss_b.gif";
  96.   }
  97.   
  98.   function showIconForSort(index) {
  99.     var selObject = null;
  100.     var selSelStatus = -1;
  101.     if (index == 0) {
  102.       selObj = document.getElementById("Image0");
  103.       selSelStatus = statusForTitle;
  104.     }
  105.     if (index == 1) {
  106.       selObj = document.getElementById("Image1");
  107.       selSelStatus = statusForAuthor;
  108.     }
  109.     if (index == 2) {
  110.       selObj = document.getElementById("Image2");
  111.       selSelStatus = statusForPubDate;
  112.     }
  113.     var imagesrc = "";
  114.     if (selSelStatus == 0) {
  115.       imagesrc = "{#}$IMGDIR${/#}rss_dn.gif"  
  116.     } else if (selSelStatus == 1) {
  117.       imagesrc = "{#}$IMGDIR${/#}rss_up.gif"
  118.     } else {
  119.       imagesrc = "{#}$IMGDIR${/#}rss_b.gif"
  120.     }
  121.     selObj.src = imagesrc; 
  122.   }
  123.   function ToDateTime(str){ 
  124.     var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/; 
  125.     var r = str.match(reg); 
  126.     if(r==null)
  127.       return new Date(1900,1,1,0,0,0); 
  128.     var d= new Date(r[1], r[3]-1,r[4],r[5],r[6],r[7]); 
  129.     return d;
  130.   } 
  131.  
  132.   
  133.   function SortRssItems(index, direc) {
  134.     for (var i = 0; i < RssItemsArray.length; i++) {
  135.       for (var j = i + 1; j < RssItemsArray.length; j++) {
  136.         if(index !=2)
  137.         {
  138.           if (( direc == 0 && RssItemsArray[i][index] > RssItemsArray[j][index]) ||
  139.             ( direc == 1 && RssItemsArray[i][index] < RssItemsArray[j][index])) {
  140.           tmp =RssItemsArray[i];
  141.           RssItemsArray[i] = RssItemsArray[j];
  142.           RssItemsArray[j] = tmp;
  143.           }
  144.         }
  145.         else
  146.         {
  147.           if (( direc == 0 && ToDateTime(RssItemsArray[i][index]) > ToDateTime(RssItemsArray[j][index])) ||
  148.             ( direc == 1 && ToDateTime(RssItemsArray[i][index]) < ToDateTime(RssItemsArray[j][index]))) {
  149.           tmp =RssItemsArray[i];
  150.           RssItemsArray[i] = RssItemsArray[j];
  151.           RssItemsArray[j] = tmp;
  152.           }
  153.         }
  154.  
  155.       } 
  156.     }
  157.  
  158.     if (index == 0) { statusForTitle = direc; }
  159.     
  160.     if (index == 1) { statusForAuthor = direc; }
  161.  
  162.     if (index == 2) { statusForPubDate = direc; }
  163.   }
  164.  
  165.   function ShowRssItems(index, direc, isCanSort) {
  166.     window.document.getElementById("OutList").style.height = window.document.body.clientHeight - 64;
  167.     dynamiccontentNS6('OutList', "");
  168.     if (isCanSort == "1") {  SortRssItems(index, direc); }
  169.     var buf = new Array();
  170.     var stitle = ShowTableTitle(index);   
  171.     dynamiccontentNS6('TableTitle', stitle);
  172.     clearSortImages();
  173.     showIconForSort(index);
  174.     buf.push("<table id=\"ItemsTable\" width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"WhiteSmoke\" style=\"table-layout:fixed\">");
  175.     buf.push("<COLGROUP><COL width=\"18px\"><COL><COL width=\"200px\"><COL width=\"200px\"></COLGROUP><tbody>\r\n");
  176.       
  177.     for( var i = 0; i < RssItemsArray.length; i++ ){
  178.       var idx = i;
  179.       var xpname = "line" + i;
  180.       var col7 = RssItemsArray[i][7];
  181.       var col6 = RssItemsArray[i][6];
  182.       var col5 = RssItemsArray[i][5];
  183.       var col4 = RssItemsArray[i][4];
  184.       var col3 = RssItemsArray[i][3];
  185.       var col2 = RssItemsArray[i][2];
  186.       var col1 = RssItemsArray[i][1];
  187.       var col0 = RssItemsArray[i][0];
  188.       var sClass = "";
  189.  
  190.       if (col6 == "1") {
  191.         sClass = " class =\"style10\" ";
  192.       } else {
  193.         sClass = " class =\"style11\" ";
  194.       }
  195.  
  196.       buf.push("<tr height=16 id='");
  197.       buf.push(xpname);
  198.       buf.push("' onclick=\"ViewCurrent('");
  199.       buf.push(idx);
  200.       buf.push("')\" onmouseover=\"return onMouseMove('");
  201.       buf.push(idx);
  202.       buf.push("',this);\" onmouseout=\"return onMouseOut('");
  203.       buf.push(idx);
  204.       buf.push("',this);\">");
  205.  
  206.       buf.push(" <td align=center ><IMG SRC=\"{#}$IMGDIR${/#}Plus.gif\" id=\"line_status");
  207.       buf.push(idx);
  208.       buf.push("\" border=0 ></td><td nowrap class=\"style12\"><a"+sClass+" onclick=\"return false;\" href=\""+targetlink);
  209.       buf.push(col5);
  210.       buf.push("\" target=\"dummyDoc\" id=\"a_1_");
  211.       buf.push(idx);
  212.       buf.push("\">");
  213.       buf.push(col0);
  214.       buf.push("</a> <a href=\"#\" onclick=\"return false;\"><IMG SRC=\"{#}$IMGDIR${/#}rss_nw.gif\" border=no onclick=\"javasscript:openNew=true;window.open('");
  215.       buf.push(col5);
  216.       buf.push("');\" /></a></td><td nowrap class=\"style12\" ><span class=\"style9\"><a"+sClass+"href=\""+targetlink);
  217.       buf.push(col5);
  218.       buf.push("\" target=\"dummyDoc\" id=\"a_2_");
  219.       buf.push(idx);
  220.       buf.push("\">");
  221.       buf.push(col1);//Rss Item Author
  222.       buf.push("</a></span></td><td nowrap class=\"style12\" ><span class=\"style9\"><a"+sClass+"href=\""+targetlink);
  223.       buf.push(col5);
  224.       buf.push("\" target=\"dummyDoc\" id=\"a_3_");
  225.       buf.push(idx);
  226.       buf.push("\">");
  227.       buf.push(col2);//Rss Item publish date
  228.       buf.push("</a></span></td></TR>");
  229.       
  230.       //Rss Desc Item
  231.       buf.push("<tr style=\"display:none\"  id=\"desc_line");
  232.       buf.push(idx);
  233.       buf.push("\"><td colspan=4 align=center bgcolor=white>");
  234.       buf.push("<table width=100%><tr><td width=18px></td>");
  235.       buf.push("<td  id=\"desc_");
  236.       buf.push(idx);
  237.       buf.push("\" class=\"itemDesc\"></td>");
  238.       buf.push("<td width=18px></td></tr></table></td></tr>");
  239.     }
  240.     buf.push("</tbody></table>");
  241.  
  242.     dynamiccontentNS6('OutList', buf.join(""));
  243.  
  244.     CollapseAll();
  245.  
  246.   }
  247.   
  248.   var oldStyleColor = null;
  249.   var oldStyleBKColor = null;
  250.   var curselelement = "-1";
  251.   
  252.   function onMouseMove(RssElementID, thisObj) {
  253.     if ( thisObj == null ) return;
  254.     if (curselelement == RssElementID) return;
  255.     oldStyleColor = window.document.getElementById("a_1_" + RssElementID).style.color;
  256.     oldStyleBKColor = thisObj.style.backgroundColor;
  257.     window.document.getElementById("a_1_" + RssElementID).style.color =  "#FA791A";
  258.     window.document.getElementById("a_2_" + RssElementID).style.color =  "#FA791A";
  259.     window.document.getElementById("a_3_" + RssElementID).style.color =  "#FA791A";
  260.     thisObj.style.backgroundColor = "#D8E9E2";  
  261.   }
  262.   
  263.   function onMouseOut(RssElementID, thisObj) {
  264.     if ( thisObj == null ) return;
  265.     if (curselelement == RssElementID) return;
  266.     window.document.getElementById("a_1_" + RssElementID).style.color =  oldStyleColor;
  267.     window.document.getElementById("a_2_" + RssElementID).style.color =  oldStyleColor;
  268.     window.document.getElementById("a_3_" + RssElementID).style.color =  oldStyleColor;
  269.     thisObj.style.backgroundColor = oldStyleBKColor;  
  270.   }
  271.   function ShowCopyRight()
  272.   {
  273.     var buf = new Array();
  274.     buf.push("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset={#}$HTMLCHARSET${/#}\"><style type=\"text/css\">");
  275.     buf.push("<!--");
  276.     buf.push(" BODY { ");
  277.     buf.push(" scrollbar-face-color:#whitesmoke; ");
  278.     buf.push(" scrollbar-highlight-color:#whitesmoke; ");
  279.     buf.push(" scrollbar-shadow-color:#DDDDDD; ");
  280.     buf.push(" scrollbar-3dlight-color:#CCCCCC; ");
  281.     buf.push(" scrollbar-arrow-color:#808080; ");
  282.     buf.push(" scrollbar-track-color:#E0E0E; ");
  283.     buf.push(" scrollbar-darkshadow-color:#CCCCCC; ");
  284.     buf.push(" margin-top: -1px; ");
  285.     buf.push(" margin-right: 0px; "); 
  286.     buf.push(" margin-bottom: 0px; ");
  287.     buf.push(" margin-left: 0px; "); 
  288.     buf.push(" padding-top: 0px; ");
  289.     buf.push(" padding-right: 0px; "); 
  290.     buf.push(" padding-bottom: 0px; ");
  291.     buf.push(" padding-left: 0px; ");
  292.     buf.push(" border-top-width: 0px; ");
  293.     buf.push(" border-right-width: 0px; "); 
  294.     buf.push(" border-bottom-width: 0px; ");
  295.     buf.push(" border-left-width: 0px }");  
  296.     buf.push(" .style8 { color: #9393AA; font-family: Arial; font-size: 12pt; height: 15pt; cursor: default; font-weight: bold;}");
  297.     buf.push(" .style9 { color: #9393AA; font-family: Arial; font-size: 9pt; height: 15pt; cursor: default; font-weight: bold;}");
  298.     buf.push(" .style10 {color: #73738A; font-family: Arial; font-size: 9pt; }");
  299.     buf.push(" .style11 {color: #000000; font-family: Arial; font-size: 10pt; height: 15pt; }");
  300.     buf.push(" -->");
  301.     buf.push(" </style><base target=\"_blank\"></head><body scroll=\"no\">");
  302.     
  303.     var copyRight = "{#}$COPYRIGHT${/#}";
  304.     if(copyRight != "") 
  305.     {
  306.       buf.push( "<table id='copyrighttable' name='copyrighttable' width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" style=\"table-layout:fixed\">" );
  307.       buf.push( "<tr bgcolor=\"#CCCCCC\"><td width=\"100%\"> <div align=\"right\"><span class=\"style10\">" );
  308.       buf.push(copyRight);
  309.       buf.push( " </span></div></td></tr></table></td></tr></table>");
  310.     }
  311.     
  312.     buf.push("</body></html>");
  313.          
  314.     window.parent.frames["bottomDoc"].window.document.close();
  315.     window.parent.frames["bottomDoc"].window.document.open();
  316.     window.parent.frames["bottomDoc"].window.document.write(buf.join(""));  
  317.  
  318.   }
  319.   function ShowCurrentItemDesc( index) {
  320.     var buf = new Array();
  321.     var str=RssItemsArray[index][4];
  322.     buf.push("<br>");
  323.     if(Trim(RssItemsArray[index][4]).length > 0 )
  324.                         buf.push(str.replace(/&AvantLeftTag;/g,'<'));  //Rss Item Desc
  325.  
  326.       //buf.push("<iframe style=\"WIDTH: 100%; HEIGHT: 100%; border:0px\"  frameborder=\"0\" src=\"" + RssItemsArray[index][5] + "\"></iframe>");
  327.                 if(Trim(RssItemsArray[index][5]).length > 0 )
  328.                         buf.push("<br><table width=100%><td align=right>");
  329.                         buf.push("<a href=\"" + RssItemsArray[index][5] + "\"  target=\"_blank\" >>>> " +RssItemsArray[index][5]  + " <<<</a>");
  330.             buf.push("</td><td width=18px></td></tr></table>");
  331.     buf.push("<br>");
  332.     
  333.     if(window.document.getElementById("desc_line" + index).style.display == "")
  334.                 {
  335.       window.document.getElementById("desc_line" + index).style.display = "none";
  336.                         window.document.getElementById("line_status" + index).src =  "{#}$IMGDIR${/#}plus.gif";
  337.                 }
  338.     else
  339.     {
  340.       window.document.getElementById("desc_line" + index).style.display = "";
  341.                         window.document.getElementById("line_status" + index).src =  "{#}$IMGDIR${/#}minus.gif";
  342.       window.document.getElementById("desc_" + index).innerHTML  = buf.join(""); 
  343.     }
  344.   }
  345.   function CollapseAll()
  346.   {
  347.     for( var i = 0; i < RssItemsArray.length; i++ ){
  348.                         window.document.getElementById("desc_line" + i).style.display = "none";
  349.                         window.document.getElementById("line_status" + i).src =  "{#}$IMGDIR${/#}plus.gif";
  350.     }
  351.                 viewType = ListView;
  352.                 window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_list.gif";
  353.                 window.document.getElementById("imgViewType_List").src = "{#}$IMGDIR${/#}rss_b_list2.gif";
  354.                 window.document.getElementById("imgViewType_Detail").src = "{#}$IMGDIR${/#}rss_b_Detail.gif";
  355.  
  356.     MarkCurrent("0");
  357.   }
  358.   function ExpandAll()
  359.   {
  360.     for( var i = 0; i < RssItemsArray.length; i++ )
  361.     {
  362.                         var buf = new Array();
  363.                         var str=RssItemsArray[i][4];
  364.                         buf.push("<br>");
  365.                         if(Trim(RssItemsArray[i][4]).length > 0 )
  366.                                 buf.push(str.replace(/&AvantLeftTag;/g,'<'));  //Rss Item Desc
  367.  
  368.                         //buf.push("<iframe style=\"WIDTH: 100%; HEIGHT: 100%; border:0px\"  frameborder=\"0\" src=\"" + RssItemsArray[i][5] + "\"></iframe>");
  369.                         if(Trim(RssItemsArray[i][5]).length > 0 )
  370.                         {
  371.                                 buf.push("<br><table width=100%><td align=right>");
  372.                                 buf.push("<a href=\"" + RssItemsArray[i][5] + "\"  target=\"_blank\" >>>> " +RssItemsArray[i][5]  + " <<<</a>");
  373.                                 buf.push("</td><td width=18px></td></tr></table>");
  374.  
  375.                         }
  376.                         buf.push("<br>");
  377.                         window.document.getElementById("desc_line" + i).style.display = "";
  378.                         window.document.getElementById("line_status" + i).src =  "{#}$IMGDIR${/#}minus.gif";
  379.                         window.document.getElementById("desc_" + i).innerHTML  = buf.join("");
  380.  
  381.     }
  382.                 viewType = DetailView;
  383.     window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_detail.gif";
  384.                 window.document.getElementById("imgViewType_List").src = "{#}$IMGDIR${/#}rss_b_list.gif";
  385.                 window.document.getElementById("imgViewType_Detail").src = "{#}$IMGDIR${/#}rss_b_Detail2.gif";
  386.     MarkCurrent("0");
  387.   }
  388.   var ListView= "list";
  389.   var DetailView = "detail";
  390.   var viewType=ListView;
  391.   
  392.   var oldIndex = "";
  393.   var oldObjectBGColor = "";
  394.  
  395.   function MarkCurrent(index) {
  396.     if (curselelement == index);
  397.     else  
  398.     {
  399.       if(oldIndex != "")
  400.       {
  401.         if(viewType == ListView)
  402.                                 {
  403.           window.document.getElementById("desc_line" + oldIndex).style.display = "none";
  404.                                         window.document.getElementById("line_status" + oldIndex).src =  "{#}$IMGDIR${/#}plus.gif";
  405.                                 }
  406.       }
  407.        curselelement= index; 
  408.     }
  409.  
  410.     if ( oldIndex!="" ) {
  411.       window.document.getElementById("line" + oldIndex).style.backgroundColor = oldObjectBGColor;  
  412.       window.document.getElementById("a_1_" + oldIndex).style.color = "#666666";  
  413.       window.document.getElementById("a_2_" + oldIndex).style.color = "#666666";  
  414.       window.document.getElementById("a_3_" + oldIndex).style.color = "#666666";  
  415.       window.document.getElementById("a_1_" + oldIndex).style.fontWeight = "normal";
  416.       window.document.getElementById("a_2_" + oldIndex).style.fontWeight = "normal";
  417.       window.document.getElementById("a_3_" + oldIndex).style.fontWeight = "normal";      
  418.     }
  419.     
  420.     oldIndex = index;
  421.     oldObjectBGColor = oldStyleBKColor ;// selObj.style.backgroundColor;
  422.     window.document.getElementById("line" + index).style.backgroundColor = "#A3B2CC";
  423.     window.document.getElementById("a_1_" + index).style.color = "white";  
  424.     window.document.getElementById("a_2_" + index).style.color = "white";  
  425.     window.document.getElementById("a_3_" + index).style.color = "white"; 
  426.     window.document.getElementById("a_1_" + index).style.fontWeight = "bold";
  427.     window.document.getElementById("a_2_" + index).style.fontWeight = "bold";
  428.     window.document.getElementById("a_3_" + index).style.fontWeight = "bold"; 
  429.         
  430.     RssItemsArray[index][6] = "1";  
  431.     
  432.     
  433.   }
  434.   function ViewCurrent(index){
  435.                 if(openNew == true)
  436.                 {
  437.                         openNew = false;
  438.                         return;
  439.                 }
  440.  
  441.  
  442.     MarkCurrent(index) ;
  443.     ShowCurrentItemDesc(index);
  444.   }
  445.   function dynamiccontentNS6(elementid, content) {
  446.     var doc = window.document;
  447.     if( elementid == null )return;
  448.  
  449.     if (doc.getElementById(elementid)!= null && !doc.all) {
  450.       rng = doc.createRange();
  451.       el = doc.getElementById(elementid);
  452.       rng.setStartBefore(el);
  453.       htmlFrag = rng.createContextualFragment(content);
  454.       while (el.hasChildNodes())
  455.         el.removeChild(el.lastChild);
  456.       el.appendChild(htmlFrag);
  457.     }else {
  458.       if(doc.all)
  459.         doc.getElementById(elementid).innerHTML = content;
  460.     }
  461.   }
  462.   
  463.   function dynamiccontentNS6Doc(doc, elementid, content){
  464.     if ( doc == null ) return;
  465.     if( elementid == null ) return;
  466.     
  467.     if (doc.getElementById(elementid)!= null && !doc.all){
  468.       rng = doc.createRange();
  469.       el = doc.getElementById(elementid);
  470.       rng.setStartBefore(el);
  471.       htmlFrag = rng.createContextualFragment(content);
  472.       while (el.hasChildNodes())
  473.         el.removeChild(el.lastChild);
  474.       el.appendChild(htmlFrag);
  475.     }else
  476.     {
  477.       if(doc.all)
  478.         doc.getElementById(elementid).innerHTML = content;
  479.     }
  480.         
  481.   }  
  482.   
  483.   function Trim(TRIM_VALUE){
  484.     if(TRIM_VALUE.length < 1) {
  485.       return "";
  486.     }
  487.     TRIM_VALUE = RTrim(TRIM_VALUE);
  488.     TRIM_VALUE = LTrim(TRIM_VALUE);
  489.     return TRIM_VALUE;
  490.   }
  491.   
  492.   function RTrim(VALUE){
  493.     var w_space = String.fromCharCode(32);
  494.     var v_length = VALUE.length;
  495.     var strTemp = "";
  496.     if (v_length < 1) {
  497.       return "";
  498.     }
  499.     
  500.     var iTemp = v_length -1;
  501.     
  502.     while (iTemp > -1) {
  503.       if (VALUE.charAt(iTemp) != w_space) {
  504.         strTemp = VALUE.substring(0, iTemp+1);
  505.         break;
  506.       }
  507.       iTemp = iTemp-1;
  508.     }
  509.     return strTemp;
  510.   }
  511.   
  512.   function LTrim(VALUE){
  513.     var w_space = String.fromCharCode(32);
  514.     var v_length = VALUE.length;
  515.     var strTemp = "";
  516.  
  517.     if (v_length < 1) {
  518.       return "";
  519.     }
  520.     
  521.     var iTemp = 0;
  522.     
  523.     while (iTemp < v_length) {
  524.       if(VALUE.charAt(iTemp) != w_space){
  525.         strTemp = VALUE.substring(iTemp, v_length);
  526.         break;
  527.       }
  528.       iTemp = iTemp + 1;
  529.     } 
  530.     return strTemp;
  531.   }
  532.  
  533.   function Resize()
  534.   {
  535.     window.document.getElementById("OutList").style.height=window.document.body.clientHeight - 64;
  536.   }
  537.   function Init()
  538.   {
  539.     window.document.getElementById("OutList").style.height=window.document.body.clientHeight - 64;
  540.     oldStyleBKColor = window.document.getElementById("line0").style.backgroundColor;
  541.     MarkCurrent('0');
  542.     ShowCopyRight();
  543.   }
  544.   function ParseAndGetURI(url)
  545.   {
  546.     var firstPlace = url.indexOf("?");
  547.     var newUrl = "";
  548.     if(firstPlace >=0)
  549.     {
  550.       newUrl =  url.substr(firstPlace+1);
  551.   
  552.       if (((newUrl.toLowerCase().substring(0,3) == "http") ||(newUrl.toLowerCase().substring(0,3) == "feed")) == false)
  553.         newUrl = "feed://" + newUrl;
  554.     }
  555.     
  556.     firstPlace = newUrl.lastIndexOf("#");
  557.     if((firstPlace > 1) &&(firstPlace == (newUrl.length - 1)))
  558.       newUrl = newUrl.substring(0 , firstPlace );
  559.       
  560.     return newUrl;
  561.   }
  562.   function SubscribeRss()
  563.   {
  564.     var url = ParseAndGetURI(document.location.toString());
  565.  
  566.     window.external.SubscribeRss(url);
  567.   }
  568.   function ChangeView()
  569.   {
  570.     if(viewType == ListView)
  571.     {
  572.       ExpandAll();
  573.       
  574.     }
  575.     else if(viewType == DetailView)
  576.     {
  577.       
  578.       CollapseAll();
  579.     }
  580.     
  581.   }
  582.         function SetViewType(mode)
  583.   {
  584.     if(mode == ListView)
  585.     {
  586.       CollapseAll();
  587.     }
  588.     else if(mode == DetailView)
  589.     {
  590.  
  591.                         ExpandAll();
  592.     }
  593.   }
  594.         function ShowButtonUpImgs()
  595.   {
  596.     if(viewType == ListView)
  597.     {
  598.       window.document.getElementById("imgViewType2").src = "{#}$IMGDIR${/#}rss_list.gif";
  599.       window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_list.gif";
  600.     }
  601.     else if(viewType == DetailView)
  602.     {
  603.       window.document.getElementById("imgViewType2").src = "{#}$IMGDIR${/#}rss_detail.gif";
  604.       window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_detail.gif";
  605.     }
  606.   }
  607.   function ShowButtonDownImgs()
  608.   {
  609.     if(viewType == ListView)
  610.     {
  611.       window.document.getElementById("imgViewType_list").src = "{#}$IMGDIR${/#}rss_list2.gif";
  612.         
  613.       window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_list2.gif";
  614.     }
  615.     else if(viewType == DetailView)
  616.     {
  617.       window.document.getElementById("imgViewType2").src = "{#}$IMGDIR${/#}rss_detail2.gif";
  618.       window.document.getElementById("imgViewType").src = "{#}$IMGDIR${/#}rss_detail2.gif";
  619.     }
  620.   }
  621. </script></head>
  622. <body scroll=no oncontextmenu="return false;" onload="javascript:Init()" onResize="javascript:Resize()" bgcolor="whitesmoke">
  623. <table width="100%" border="0" cellpadding="0" cellspacing="0" scroll=no style="table-layout:fixed">
  624. <tbody><tr bgcolor="#3F526F"><td valign="top" height="44px">
  625. <table id='tableheader' bgcolor="#3F526F" width="100%" border="0" cellpadding="0" cellspacing="0"  style="table-layout:fixed">
  626. <tbody><tr><td width="16px"></td>
  627. <td nowrap width="67%" class="style7" style="overflow:hidden; text-overflow:ellipsis;" vAlign=Middle>{#}$CHANNELTITLE${/#} <a href="#" onclick="SubscribeRss()" ><img border=0 src="{#}$IMGDIR${/#}rss_new.gif"></a></td>
  628. <td rowspan="2"></td>
  629. <td nowrap width="250px" style="overflow:hidden; text-overflow:ellipsis;" align="right">
  630. <img id="imgViewType_List" class="valign_bottom" border=0 style="cursor:pointer"
  631. src="{#}$IMGDIR${/#}rss_b_list2.gif" onClick="SetViewType('list')"   ><img id="imgViewType_Detail"  class="valign_bottom"  border=0 style="cursor:pointer"
  632. src="{#}$IMGDIR${/#}rss_b_detail.gif"
  633. onClick="SetViewType('detail')" >
  634.  
  635. <span class="style3"> {#}$PUBLISHDATE${/#}</span></td>
  636. <td width="12px"></td></tr><tr bordercolor="#3F526F" bgcolor="#3F526F">
  637. <td></td><td nowrap colspan="4" style="overflow:hidden; text-overflow:ellipsis;valign:middle;"><span class="style6"> {#}$CHANNELDESC${/#}</span></td>
  638. </tr></tbody></table></td></tr>
  639. <tr><td valign="top" height="18px"><span id='TableTitle' name='TableTitle'>
  640. <table width="100%" border="0" cellpadding="0" cellspacing="0" background="{#}$IMGDIR${/#}rss_b2.gif" bgcolor="#999999">
  641. <tr><td height="18px" width="18px" align="center"><img id="imgViewType" border=0 style="cursor:pointer" src="{#}$IMGDIR${/#}rss_list.gif" onClick="ChangeView()"></td>
  642. <td valign="top" height="18px" nowrap style="overflow:hidden; text-overflow:ellipsis; cursor:point;" onclick="return ShowRssItems(0, 0, 1); " ><span class="style8"><IMG src="{#}$IMGDIR${/#}rss_sp.gif" /> Subject </span><IMG ID="Image0" src="{#}$IMGDIR${/#}rss_b.gif"/></td>
  643. <td valign="top" height="18px" width="200px" nowrap style="overflow:hidden; text-overflow:ellipsis; cursor:point" onclick="return ShowRssItems(1, 0, 1);"><span class="style8"><IMG src="{#}$IMGDIR${/#}rss_sp.gif" /> Creator </span><IMG ID="Image1" src="{#}$IMGDIR${/#}rss_b.gif"/></td>
  644. <td valign="top" height="18px" width="217px" nowrap style="overflow:hidden; text-overflow:ellipsis; cursor:point" onclick="return ShowRssItems(2, 0 , 1);"><span class="style8"><IMG src="{#}$IMGDIR${/#}rss_sp.gif" /> Date </span><IMG ID="Image2" src="{#}$IMGDIR${/#}rss_dn.gif"/></td>
  645. </tr></table></span></td></tr><tr><td valign="top"></td></tr></tbody></table><div align="TOP" id='OutList' name='OutListDiv' class="styleDiv">
  646. <table id="ItemsTable" style="TABLE-LAYOUT: fixed" cellSpacing="0" cellPadding="0" width="100%" bgColor="whitesmoke" border="0">
  647. <colgroup><col width="18"><col><col width="200"><col width="200"></colgroup><tbody>
  648. {#}$RSSITEMCONTENT${/#}
  649. </tbody></table></div><form name="myform"  method="post" ID="myform" target="_top"></form></body></html>