﻿// 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 selectList(e, o, b_folder) {
    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.backgroundImage = "url(" + b_folder + "/" + model + "/list_1.jpg)"; ppE.childNodes[i].childNodes[0].style.color = "Black";}
    pE.style.backgroundImage = "url(" + b_folder + "/" + model + "/list_2.jpg)";
    e.style.color = "Red";}
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[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[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[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[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 select_list_photo(path, page, records, w, h, 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[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) {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\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].getElementsByTagName("images")[0].firstChild.nodeValue + "\" width=\"" + w + "\" height=\"" + h + "\" /></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\"><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) {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\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></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\"><img src=\"http://www.heditor.com/upload/images/index/" + root.childNodes[i].selectNodes("images")(0).text + "\" width=\"" + w + "\" height=\"" + h + "\" /></a></li>";}}}}}
            writelist += "</ul>";
            element(o_list).innerHTML = writelist;}}}
function select_list_image(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[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\"><span>·</span>" + 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\"><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) {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\"><span>·</span>" + 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\"><span>·</span>" + root.childNodes[i].selectNodes("title")(0).text.substring(0, words) + "</a></li>";}}}}
            writelist += "</ul>";
            element(o_list).innerHTML = writelist;}}}