<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="generator"
          content="JS Editor v9, http://www.c-point.com" />

    <title></title>
</head>

<body>
    /** @texteditor * Using Geany, the GTK+ editor based on Scintilla, *
    collapse and reveal will function as intended for the * per-item,
    multi-line comments such as those in loadIframe() **/ function
    initLoaders() { var aletosDomiloader, aletosCssloader, domScriptDomi,
    domScriptCss, thisDocHead, docHead; /* * GET NODE: #aletosDomiloader | SET
    VAR aletosDomiloader */ aletosDomiloader =
    document.getElementById(&quot;aletosDomiloader&quot;); /* * GET NODE:
    #aletosCssloader | SET VAR aletosDomiloader */ aletosCssloader =
    document.getElementById(&quot;aletosCssloader&quot;); /* * MAKE NODE:
    SCRIPT | SET VAR domScript */ domScriptDomi =
    document.createElement(&quot;script&quot;); /* * MAKE NODE: SCRIPT | SET
    VAR domScript */ domScriptCss = document.createElement(&quot;script&quot;);
    /* * GET NODE: HEAD | SET VAR thisDocHead */ thisDocHead =
    document.getElementsByTagName(&quot;head&quot;); docHead = thisDocHead[0];
    /* * WITH domScriptDomi * CHANGE_NODE SCRIPT -&gt; SET ATTRIBUTE.src */
    domScriptDomi.src = &quot;js/aletos-domi2.js&quot;; /* * WITH domScriptCss
    * CHANGE_NODE SCRIPT -&gt; SET ATTRIBUTE.src */ domScriptCss.src =
    &quot;js/aletos-stylecompy.js&quot;; /* * WITH aletosDomiloader | HANDLE
    ONCLICK */ aletosDomiloader.onclick = function() { /* * WITH docHead * WITH
    domScriptDomi * CHANGE_NODE HEAD -&gt; ADD_CHILD domScriptDomi[SCRIPT] */
    docHead.appendChild(domScriptDomi); return true; }; /* * WITH
    aletosCssloader | HANDLE ONCLICK */ aletosCssloader.onclick = function() {
    /* * WITH docHead * WITH domScriptCss * CHANGE_NODE thisDocHead[HEAD] -&gt;
    ADD_CHILD domScriptCss[SCRIPT] */ docHead.appendChild(domScriptCss); return
    true; }; } /** @function toggleSection(param1, param2) * toggle the
    visibility of the designated parameters passed ** @param ** thisImage: an
    image object contained within the document ** @param ** thisDd: a DD
    element object contained within the document ** detailSection: eq thisDd,
    the element to be hidden or shown ** toggleImage: eq thisImage. when
    thisImage.onclick, the detailSection is toggled */ function
    toggleSection(thisImage, thisDd) { var detailSection, toggleImage;
    detailSection = thisDd; toggleImage = thisImage; if
    (detailSection.style.display === &#39;block&#39;) {
    detailSection.style.display = &#39;none&#39;; toggleImage.src =
    &#39;css/collapsed.gif&#39;; } else { detailSection.style.display =
    &#39;block&#39;; toggleImage.src = &#39;css/expanded.gif&#39;; } } /**
    @function getToggleGraphics() ** scan the document for elements which are
    assigned as triggers for toggling ** other elements to be hidden or made
    visible using CSS style properties **/ function getToggleGraphics() { var
    i, j, allNodes, classArr, thisNode, thisImage, thisNodeClass, thisSibling,
    nodeSiblings, thisNodeId, regexTrigger, regexTarget, jsTriggerRevDump,
    triggerReview, siblingId; /* * GET NODE: #maincol DIV #jsTriggerRevDump |
    SET VAR{OBJ} jsTriggerRevDump */ jsTriggerRevDump =
    document.getElementById(&quot;jsTriggerRevDump&quot;); /* * GET NODE:
    #maincol DIV #triggerReview | SET VAR{OBJ} triggerReview */ triggerReview =
    document.getElementById(&quot;triggerReview&quot;); /* * TRAVERSE_DOM[*] AT
    #document | SET VAR{ARRAY} allNodes */ allNodes =
    document.getElementsByTagName(&quot;*&quot;); /* * REGEX_MATCH
    &quot;/(\w+)Trigger/ig&quot; | SET VAR{MATCH} regexTrigger */ regexTrigger
    = /(\w+)Trigger/ig; /* * REGEX_MATCH &quot;/(\w+)Target/ig&quot; | SET
    VAR{MATCH} regexTarget */ regexTarget = /(\w+)Target/ig; for (i = 0; i &lt;
    allNodes.length; ++i) { if(allNodes[i].className) { /* * GET {STRING} WHERE
    ARRAY ITEM allNodes[i] HAS className | * SET VAR{STRING} thisNodeClass */
    thisNodeClass = allNodes[i].className; /* * WITH thisNodeClass * TESTRX
    regexTrigger */ if(regexTrigger.test(thisNodeClass)) { /* TRAVERSE_DOM[*]
    AT PARENT_OF ARRAY ITEM allNodes[i] | * SET VAR{ARRAY} nodeSiblings */
    nodeSiblings = allNodes[i].parentNode.getElementsByTagName(&quot;*&quot;);
    /* WITH LENGTH OF VAR{ARRAY} nodeSiblings * ITERATE LOOP FOR{J} */ for(j =
    0; j &lt; nodeSiblings.length; ++j){ /* * AT ARRAY ITEM nodeSiblings[j] *
    GET NODE | SET VAR{OBJECT} thisSibling */ thisSibling = nodeSiblings[j]; /*
    WITH thisSibling GET TAG_NAME | SET VAR{STRING} siblingId */ siblingId =
    thisSibling.nodeName; if(regexTarget.test(siblingId)) { /* *
    FLOW_CONTROL{TRUE} * USE ERROR_HANDLING: */ try{ allNodes[i].onclick =
    (function() { toggleObject(thisSibling); // if(thisSibling.style){ //
    if(thisSibling.style.display != &quot;block&quot;) { //
    thisSibling.style.display = &quot;block&quot;; // } // else{ //
    thisSibling.style.display = &quot;none&quot;; // } // } return true; }); }
    catch(e){ jsTriggerRevDump.innerHTML += &quot;

    <p><em>Diptwist!</em> I was unable to do some shit, because: &quot; + e +
    &quot;</p>&quot;; } } } } } } } /** @function toggleObject() * * @param
    toggObject object **/ function toggleObject(toggObject) { var targetObj;
    targetObj = toggObject; if (targetObj.style.display !== &quot;block&quot;)
    { targetObj.style.display = &quot;block&quot;; } else {
    targetObj.style.display = &quot;none&quot;; } if (toggObject.style.display
    !== &quot;block&quot;) { toggObject.style.display = &quot;block&quot;; }
    else { toggObject.style.display = &quot;none&quot;; } return false; } /**
    @function scanTriggers() ** scan nodes of the DOM for those which are
    triggers and trigger-targets ** the former.onclick will check
    style.property of the latter ** depending upon that style.display.value,
    the element will ** either be made style.display.block or
    style.display.none **/ function scanTriggers() { var triggerReview,
    triggerReviewDiv, cssClassString, classArray, triggerClassNode, i, j,
    trigger, targetObject, regexTrigger, gEmtByTgNmAll, test_ID, regexTarget,
    jsTriggerRevDump, tiBackref; /** ** gEmtByTgNmAll: get all elements of the
    document. store the list here. ** cssClassString: current DOM element
    class. Derived from &quot;i&quot;, in gEmtByTgNmAll[i] ** classArray: small
    array of strings. created using split.cssClassString ** toggReview: an
    element in the document meant for displaying events within this function,
    scanTogglers ** toggReview.innerHTML: textual representation of the values
    rendered by this function ** toggReviewDiv: eq toggReview ** togglerClass:
    current DOM element Object. Derived from &quot;i&quot;, in gEmtByTgNmAll[i]
    ** test_ID: represents the ID of togglerClass ** demoDiv: CURRENTLY
    UNDEFINED **/ jsTriggerRevDump =
    document.getElementById(&quot;jsTriggerRevDump&quot;); triggerReview =
    document.getElementById(&quot;triggerReview&quot;);
    triggerReview.style.backgroundColor = &quot;#FFA&quot;;
    triggerReview.innerHTML = &quot;triggerReview&quot;; triggerReviewDiv =
    triggerReview; regexTrigger = /trigger/gi; regexTarget = /(\w+)Target/gi;
    gEmtByTgNmAll = document.getElementsByTagName(&quot;*&quot;); for (i = 0; i
    &lt; gEmtByTgNmAll.length; i++) { if(gEmtByTgNmAll[i].className){
    cssClassString = gEmtByTgNmAll[i].className; classArray =
    cssClassString.split(&quot; &quot;); triggerReviewDiv.innerHTML +=
    gEmtByTgNmAll[i].nodeName + &quot;
    <br />
    &quot;; for (j = 0; j &lt; classArray.length; j++) { if
    (regexTrigger.test(classArray[j])) { triggerClassNode = gEmtByTgNmAll[i];
    try{ test_ID = triggerClassNode.id; if (regexTarget.exec(test_ID)) {
    tiBackref = RegEx.$1; regexTarget = new RegEx(tiBackref +
    &quot;Target&quot;, &quot;gi&quot;); } } catch(e){ jsTriggerRevDump +=
    &quot;

    <p>Unable to assign triggerClassNodeId to test_id for regexExec, because:
    &quot; + e + &quot;</p>&quot;; } } } } if(gEmtByTgNmAll[i].id){ var
    targetNodeId = gEmtByTgNmAll[i].id; if (regexTarget.test(targetNodeId)) {
    // TEST FOR id = __Target targetObject = gEmtByTgNmAll[targetNodeId]; var
    trigId = tiBackref + &quot;Trigger&quot;; trigger =
    triggerClassNode[trigId]; } } // experimenting here... //
    targetObject.onclick = toggleObject(trigger); trigger.onclick =
    toggleObject(targetObject); } } /** @function loadIframe * @param whatclick
    (var.typeof.string) * 2009-09-12 * #see /inc/arrayobjectanchors.inc.php *
    HTML Attribute: onClick=&quot;loadIframe( PHP::$basename )&quot; *
    whatclick Detailed: * DOM Node Path: div#leftcol &gt; ul#navlist &gt; li
    &gt; a#navAnchor_&#39;whatclick&#39; * where _whatclick set by
    PHP::readdir(basename), as unique filename string * therefore, loadIframe()
    can identify <a> **/ function loadIframe(whatclick) { var anchorClicked,
    clickId, node2style, jsLoadIframeDump, mainFrame, frameName, i,
    mainFrameStyleStr = &#39;&#39;; /* GET PARAM: whatclick | SET VAR:
    anchorClicked */ anchorClicked = whatclick; /* GET NODE: IFRAME #mainFrame
    | SET VAR: mainFrame */ mainFrame =
    document.getElementById(&quot;mainFrame&quot;); /* GET NODE: DIV #frameName
    | SET VAR: frameName */ frameName =
    document.getElementById(&quot;frameName&quot;); /* GET NODE: DIV
    #jsLoadIframeDump | SET VAR: jsLoadIframeDump */ jsLoadIframeDump =
    document.getElementById(&quot;jsLoadIframeDump&quot;); /* WITH
    anchorClicked: CONCAT STRING * SET VAR: node2style */ node2style =
    &quot;navAnchor_&quot; + anchorClicked; /* GET NODE: A #navAnchor_X | SET
    VAR: clickId */ clickId = document.getElementById(node2style); /* WITH
    clickId GET NODE: UL #navlist &gt; LI * SET VAR: parentListItem */
    parentListItem = clickId.parentNode; /* WITH clickId GET NODE: A
    #navAnchor_X * CHANGE_NODE #navAnchor_X -&gt; SET ATTRIBUTE.STYLE */
    if(clickId.style.backgroundColor != &quot;navy&quot;) {
    clickId.style.backgroundColor = &quot;#888&quot;; clickId.style.color =
    &quot;#ddd&quot;; } /* WITH parentListItem GET NODE: UL #navList &gt; LI *
    CHANGE_NODE LI -&gt; SET ATTRIBUTE.STYLE.BACKGROUND */
    if(parentListItem.style.backgroundImage != &quot;none&quot;){
    parentListItem.style.backgroundImage = &quot;none&quot;;
    parentListItem.style.backgroundColor = &quot;#777&quot;; } /* WITH
    mainFrame GET NODE: IFRAME #mainFrame * CHANGE_NODE #mainFrame -&gt; SET
    ATTRIBUTE.SRC */ mainFrame.src = anchorClicked; /* WITH frameName GET NODE:
    DIV #frameName * WITH anchorClicked GET PARAM: whatclick * CHANGE_NODE
    #frameName -&gt; SET ATTRIBUTE.innerHTML */ frameName.innerHTML =
    anchorClicked; // return false; } function justTitleIt() { var firstFrame,
    secondFrame; secondFrame = this.frameSource; firstFrame =
    document.getElementById(&quot;mainFrame&quot;); frameTitle =
    document.getElementById(&quot;jsLoadIframeDump&quot;); if (firstFrame.src
    !== secondFrame.src) { frameTitle.innerHTML = secondFrame.src; } } function
    collapseNav(navDiv) { var leftcol, maincol, navImage, toggleTxt, spacer;
    leftcol = document.getElementById(navDiv); maincol =
    document.getElementById(&#39;maincol&#39;); navImage =
    document.getElementById(&#39;navControl&#39;); toggleTxt =
    document.getElementById(&#39;navTxt&#39;); spacer = &#39;&#39;; if
    (navImage.src === (&#39;css/directional-arrow-left.png&#39; ||
    &#39;css/directional-arrow-right.png&#39;)) { spacer = &#39;../&#39;; }
    else { spacer = &#39;&#39;; } if (leftcol.style.display !== &#39;none&#39;)
    { leftcol.style.display = &#39;none&#39;; maincol.style.width =
    &#39;100%&#39;; maincol.style.paddingLeft = 0; navImage.src = spacer +
    &#39;css/directional-arrow-right.png&#39;; toggleTxt.innerHTML =
    &quot;show&quot;; } else { leftcol.style.display = &#39;block&#39;;
    maincol.style.width = &#39;79%&#39;; navImage.src = spacer +
    &#39;css/directional-arrow-left.png&#39;; toggleTxt.innerHTML =
    &quot;collapse&quot;; } } function popMeUp(target) { var newWinUp = window
    .open( (target), &#39;newPopWin&#39;, &#39;height = 500, width = 600,
    toolbar = no, directories = no, status = no, menubar = no, scrollbars = no,
    resizable = yes&#39;); newWinUp.focus(); return false; } function
    showHide(obj1) { var el1 = document.getElementById(obj1); if
    (el1.style.display !== &quot;block&quot;) { el1.style.display =
    &#39;block&#39;; } else { el1.style.display = &#39;none&#39;; } } function
    goBack() { window.history.back(); } function onloadLoop(getFunky) { var
    onloadPartial = window.onload; if (typeof onloadPartial ===
    &quot;function&quot;) { window.onload = function() { if (onloadPartial) {
    onloadPartial(); } getFunky(); }; } else { window.onload = getFunky; } }
    onloadLoop(getToggleGraphics); //onloadLoop(scanTriggers);
    onloadLoop(initLoaders); /** * * * * @end */</a>
</body>
</html>
