﻿// Copyright (c) 2009 HEditor.com
var xmlhttp;
var isNetscape = navigator.appName.indexOf("Netscape") != -1;
var model = "purple";
var extension = ".html";
function element(id) {var e = null; if (document.getElementById) {e = document.getElementById(id);} else if (document.all) {e = document.all[id];} else if (document.layers) {e = document.layers[id];} return e;}
function createHTTP() {if(window.ActiveXObject) {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} else if (window.XMLHttpRequest) {xmlhttp = new XMLHttpRequest();}}
function clear(e) {for (var i=0; i<e.childNodes.length; i++) {var node = e.childNodes[i]; if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) node.parentNode.removeChild(node);}}
function hide(id) {element(id).style.display = "none";}
function select(e, Cn, Cs, XYn, XYs) {
    var pE = isNetscape ? e.parentNode : e.parentElement;
    var ppE = isNetscape ? pE.parentNode : pE.parentElement;
    clear(ppE);
    for (var i = 0; i < ppE.childNodes.length; i++) {clear(ppE.childNodes[i]); ppE.childNodes[i].style.backgroundPosition = XYn; ppE.childNodes[i].childNodes[0].style.color = Cn; ppE.childNodes[i].childNodes[0].style.fontWeight = "normal";}
    pE.style.backgroundPosition = XYs;
    e.style.color = Cs;
    e.style.fontWeight = "bold";}
function list_text(path, page, records, words, rootlist) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            document.writeln("<ul>");
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[10]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("ifindex")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}
                        else {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}}} else {
                        if (root.childNodes[i].selectNodes("ifindex")(0).text == "false") {if (nodes > records) {records++;}} else {
                            if (root.childNodes[i].selectNodes("list")(0).text) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");} else {
                                document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");}}}}
                                document.writeln("</ul>");}}}
function list_photo(path, page, records, w, h, rootlist) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            document.writeln("<ul>");
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[8]);
                clear(root.childNodes[i].childNodes[10]);
                if (isNetscape) {
                if (root.childNodes[i].getElementsByTagName("ifindex")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                if (!root.childNodes[i].getElementsByTagName("images")[0].firstChild) {if (nodes > records) {records++;}} else {
                    if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a></li>");}
                    else {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a></li>");}}}} else {
                if (root.childNodes[i].selectNodes("ifindex")(0).text == "false") {if (nodes > records) {records++;}} else {
                if (!root.childNodes[i].selectNodes("images")(0).text) {if (nodes > records) {records++;}} else {
                if (root.childNodes[i].selectNodes("list")(0).text) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a></li>");} else {
                    document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a></li>");}}}}}
                    document.writeln("</ul>");}}}
function list_photo_text(path, page, records, w, h, words, rootlist) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            document.writeln("<ul>");
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[8]);
                clear(root.childNodes[i].childNodes[10]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("ifindex")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (!root.childNodes[i].getElementsByTagName("images")[0].firstChild) {if (nodes > records) {records++;}} else {
                            if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}
                            else {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}}}} else {
                        if (root.childNodes[i].selectNodes("ifindex")(0).text == "false") {if (nodes > records) {records++;}} else {
                            if (!root.childNodes[i].selectNodes("images")(0).text) {if (nodes > records) {records++;}} else {
                                if (root.childNodes[i].selectNodes("list")(0).text) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");} else {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");}}}}} document.writeln("</ul>");}}}
function list_text_icon(path, page, records, words, rootlist) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            document.writeln("<ul>");
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[10]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("ifindex")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><span>·</span>" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}
                        else {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><span>·</span>" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>");}}} else {
                            if (root.childNodes[i].selectNodes("ifindex")(0).text == "false") {if (nodes > records) {records++;}} else {
                                if (root.childNodes[i].selectNodes("list")(0).text) {document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><span>·</span>" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");} else {
                                    document.writeln("<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><span>·</span>" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>");}}}}
                                    document.writeln("</ul>");}}}
function index_top(path, page, records, w, h, words, digest, rootlist) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            document.writeln("<ul>");
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[7]);
                clear(root.childNodes[i].childNodes[8]);
                clear(root.childNodes[i].childNodes[9]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("iftop")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (!root.childNodes[i].getElementsByTagName("images")[0].firstChild) {if (nodes > records) {records++;}} else {
                            if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {
                            document.writeln("<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].getElementsByTagName("digest")[0].firstChild.nodeValue.substring(0, digest) + "</span></a></li>");}
                            else {document.writeln("<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].getElementsByTagName("digest")[0].firstChild.nodeValue.substring(0, digest) + "</span></a></li>");}}}} else {
                        if (root.childNodes[i].selectNodes("iftop")(0).text == "false") {if (nodes > records) {records++;}} else {
                            if (!root.childNodes[i].selectNodes("images")(0).text) {if (nodes > records) {records++;}} else {
                                if (root.childNodes[i].selectNodes("list")(0).text) {document.writeln("<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].selectNodes("digest")(0).text.substring(0, digest) + "</span></a></li>");} else {
                                document.writeln("<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].selectNodes("digest")(0).text.substring(0, digest) + "</span></a></li>");}}}}} document.writeln("</ul>");}}}
function select_index_top(path, page, records, w, h, words, digest, rootlist, o_list) {
    var writelist = "";
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            writelist += "<ul>";
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[7]);
                clear(root.childNodes[i].childNodes[8]);
                clear(root.childNodes[i].childNodes[9]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("iftop")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (!root.childNodes[i].getElementsByTagName("images")[0].firstChild) {if (nodes > records) {records++;}} else {
                            if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {
                            writelist += "<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].getElementsByTagName("digest")[0].firstChild.nodeValue.substring(0, digest) + "</span></a></li>";}
                            else {writelist += "<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].getElementsByTagName("digest")[0].firstChild.nodeValue.substring(0, digest) + "</span></a></li>";}}}} else {
                        if (root.childNodes[i].selectNodes("iftop")(0).text == "false") {if (nodes > records) {records++;}} else {
                            if (!root.childNodes[i].selectNodes("images")(0).text) {if (nodes > records) {records++;}} else {
                                if (root.childNodes[i].selectNodes("list")(0).text) {writelist += "<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].selectNodes("digest")(0).text.substring(0, digest) + "</span></a></li>";} else {
                                writelist += "<li><a class='center_index_top_img' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a><a class='center_index_top_title' href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a><a class='center_index_top_digest' style='text-decoration:none;'><span>" + root.childNodes[i].selectNodes("digest")(0).text.substring(0, digest) + "</span></a></li>";}}}}} writelist += "</ul>"; element(o_list).innerHTML = writelist;}}}
function select_list_text(path, page, records, words, rootlist, o_list) {
    var writelist = "";
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {
            writelist += "<ul>";
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[0]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                clear(root.childNodes[i].childNodes[3]);
                clear(root.childNodes[i].childNodes[4]);
                clear(root.childNodes[i].childNodes[10]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("ifindex")[0].firstChild.nodeValue == "false") {if (nodes > records) {records++;}} else {
                        if (root.childNodes[i].getElementsByTagName("list")[0].firstChild) {writelist += "<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("list")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>";}
                        else {writelist += "<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].getElementsByTagName("id")[0].firstChild.nodeValue + extension + "\" title=\"" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue + "\" target=\"_blank\">" + root.childNodes[i].getElementsByTagName("title")[0].firstChild.nodeValue.substring(0, words) + "</a></li>";}}} else {
                        if (root.childNodes[i].selectNodes("ifindex")(0).text == "false") {if (nodes > records) {records++;}} else {
                            if (root.childNodes[i].selectNodes("list")(0).text) {writelist += "<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("list")(0).text + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>";} else {
                                writelist += "<li><a href=\"" + rootlist + root.childNodes[i].getElementsByTagName("target")[0].firstChild.nodeValue + "/" + root.childNodes[i].selectNodes("id")(0).text + extension + "\" title=\"" + root.childNodes[i].selectNodes("title")(0).text + "\" target=\"_blank\">" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>";}}}}
                                writelist += "</ul>";
        element(o_list).innerHTML = writelist;}}}
function index_video_top (path, page, records) {
    createHTTP();
    var xmldoc;
    if (window.ActiveXObject) {xmldoc = new ActiveXObject("Microsoft.XMLDOM");}
    else if (document.implementation && document.implementation.createDocument) {xmldoc = document.implementation.createDocument("", "doc", null);}
    xmldoc.async = false;
    xmldoc.load(path + "/" + page + ".xml");
    var root = xmldoc.documentElement;
    if (root != null) {
        clear(root);
        var nodes = root.childNodes.length;
        if (nodes < records) {records = nodes;}
        if (records > 0) {var src = "";
            for (var i = (nodes - 1); i > (nodes - 1 - records); i--) {
                clear(root.childNodes[i]);
                clear(root.childNodes[i].childNodes[1]);
                clear(root.childNodes[i].childNodes[2]);
                if (isNetscape) {
                    if (root.childNodes[i].getElementsByTagName("iftop")[0].firstChild.nodeValue == "true") {src = src + root.childNodes[i].getElementsByTagName("src")[0].firstChild.nodeValue + "|";} else {if (nodes > records) {records++;}}} else {
                    if (root.childNodes[i].selectNodes("iftop")(0).text == "true") {src = src + root.childNodes[i].selectNodes("src")(0).text + "|";} else {if (nodes > records) {records++;}}}}
            if (src == "") {src = "http://www.handelin.com.cn/_video/video.heditor.com.flv";} else {src = src.substring(0, src.length - 1);} return src;}}}