<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
    <title>
         Debug.js - AN22    </title>
<meta name="keywords" content="hsphere, webhosting, host, domains, domain names,freebsd, linux, internet" />
<script type="text/javascript" src="http://www.an22.com/prototype.js"></script>
<script type="text/javascript" src="http://www.an22.com/effects.js"></script>
<script type="text/javascript" src="http://www.an22.com/window.js"></script>
<script type="text/javascript" src="http://www.an22.com/debug.js"></script>
<script type="text/javascript" src="http://www.an22.com/tooltip.js"></script>
<link href="http://www.an22.com/themes/default.css" rel="stylesheet" type="text/css" />
<link href="http://www.an22.com/themes/darkX.css" rel="stylesheet" type="text/css" />
<link href="http://www.an22.com/themes/spread.css" rel="stylesheet" type="text/css" />
<link href="http://www.an22.com/blog/templates/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://www.an22.com/an22.js?&amp;page_ml=xhtml"></script>
<link rel="shortcut icon" href="http://www.an22.com/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://www.an22.com/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="http://www.an22.com/an22.css?&amp;page_ml=xhtml" />
</head>
<body rightmargin="0">
<script type="text/javascript"></script>
<div id="container">
   <div id="header"><a href="http://www.an22.com/">
           <img src="http://www.an22.com/an22b.gif" id="logo" alt="AN22 Hosting and Domains" /></a><span id="tagline"><span class="tag1">Hosting,</span><span class="tag2">Redefined.</span><span class="tag3">1-877-WEB-8686</span></span>
        </div>
    <div id="main">  <!-- HEADER -->
        <div id="menu">
            <div id="menubuttons">
<!-- Look ma, it''s web 2.0!!! DIAF. :( -->
                <div class="menu-button" id="mb-an22" onmouseover="menuButton('nav_an22');" onclick="gotoUri('http://www.an22.com/');">
<img class="mb-lb" id="mb-lb-an22" src="http://www.an22.com/rbox_l.gif" alt="Border" /><a href="http://www.an22.com/" class="mb-link" >AN22</a><img class="mb-rb" id="mb-rb-an22" src="http://www.an22.com/rbox_r.gif" alt="Border" /></div><div class="menu-button" id="mb-hosting" onmouseover="menuButton('nav_hosting');" onclick="gotoUri('http://www.an22.com/hosting/');">
<img class="mb-lb" id="mb-lb-hosting" src="http://www.an22.com/rbox_l.gif" alt="Border" /><a href="http://www.an22.com/hosting/" class="mb-link" >Hosting</a><img class="mb-rb" id="mb-rb-hosting" src="http://www.an22.com/rbox_r.gif" alt="Border" /></div><div class="menu-button" id="mb-domains" onmouseover="menuButton('nav_domains');" onclick="gotoUri('http://domains.an22.com');">
<img class="mb-lb" id="mb-lb-domains" src="http://www.an22.com/rbox_l.gif" alt="Border" /><a href="http://domains.an22.com" class="mb-link"  >Domains</a><img class="mb-rb" id="mb-rb-domains" src="http://www.an22.com/rbox_r.gif" alt="Border" /></div><div class="menu-button" id="mb-support" onmouseover="menuButton('nav_support');" onclick="gotoUri('http://www.an22.com/support/');">
<img class="mb-lb" id="mb-lb-support" src="http://www.an22.com/rbox_l.gif" alt="Border" /><a href="http://www.an22.com/support/" class="mb-link" >Support</a><img class="mb-rb" id="mb-rb-support" src="http://www.an22.com/rbox_r.gif" alt="Border" /></div><div class="menu-button" id="mb-contact" onmouseover="menuButton('nav_contact');" onclick="gotoUri('http://www.an22.com/contact/');">
<img class="mb-lb" id="mb-lb-contact" src="http://www.an22.com/rbox_l.gif" alt="Border" /><a href="http://www.an22.com/contact/" class="mb-link" >Contact</a><img class="mb-rb" id="mb-rb-contact" src="http://www.an22.com/rbox_r.gif" alt="Border" /></div>            </div>
        </div>
        <div id="view">
				            <div id="right-view">
                            <div id="navigation">
                    
    <div class="navbox" id="navbox1">
                            <ul class="navlist">
    <li class="navlink" onclick="gotoUri('http://www.an22.com/');"><a class="nav-url" href="http://www.an22.com/">Home</a></li><li class="navlink" onclick="gotoUri('http://www.an22.com/blog/');"><a class="nav-url" href="http://www.an22.com/blog/">Blog</a></li><li class="navlink" onclick="gotoUri('http://www.an22.com/legal/');"><a class="nav-url" href="http://www.an22.com/legal/">Legal</a></li><li class="navlink" onclick="gotoUri('https://cp.an22.com:8413/psoft/servlet/psoft.hsphere.CP');"><a class="nav-url" href="https://cp.an22.com:8413/psoft/servlet/psoft.hsphere.CP">HSphere Login</a></li>
                            </ul>

                        </div>
                        <div id="livechat" class="navbox" style="display:none;">
    <!-- Powered by: Crafty Syntax Live Help        http://www.craftysyntax.com/ -->
   <!-- This JS hacked by Jeff Jones :/ -->
    <!-- Powered by: Crafty Syntax Live Help http://www.craftysyntax.com/ -->
    <a href="#" onclick="javscript:openLiveHelp()">
    <img src="http://www.an22.com/craftysyntax/image.php?&amp;what=getstate" alt="Click for Live Chat!" style="border:0;"/>
    </a>
    <!-- copyright 2003 - 2006 by Eric Gerdes -->
                                    </div>
                    <div id="nav-phone" class="navbox" style="display:none;">
                        Questions?<br />
                        1-877-WEB-8686
                    </div>
                </div>

            </div>
            <div id="left-view">
                <div id="content">
                    <div id="content-page">
                    <!-- </PREPEND> -->
var debugWindow = null;
function debug(text, reverse) {
	if (debugWindow == null)
 		return;

	time = "-"; //new Date();
	if (reverse) {
		$('debug').innerHTML = time + " " + text + "<br>"+ 	$('debug').innerHTML;
		debugWindow.getContent().scrollTop=0;
	}
	else {
		$('debug').innerHTML +=  time + " " + text + "<br>";
		debugWindow.getContent().scrollTop=10000; // Far away 
	}
}

function hideDebug() {
	if (debugWindow) {
		debugWindow.destroy();
		debugWindow = null;
	}
}

function showDebug(bShow) {
 if (debugWindow == null) {
  debugWindow = new Window('debug_window', {className: 'dialog',width:250, height:100, right:4, bottom:42, zIndex:1000, opacity:1, showEffect: Element.show, resizable: true, title: "Debug"})
  debugWindow.getContent().innerHTML = "<style>#debug_window .dialog_content {background:#000;}</style> <div id='debug'></div>";
  date=new Date;
    date.setMonth(date.getMonth()+3);
    
  //debugWindow.setCookie(null, date);
 }
 if( typeof bShow == 'undefined' || bShow)debugWindow.show()
}


function clearDebug() {
	if (debugWindow == null)
 		return;
	$('debug').innerHTML = "";
}

/**
 * document.createElement convenience wrapper
 *
 * The data parameter is an object that must have the "tag" key, containing
 * a string with the tagname of the element to create.  It can optionally have
 * a "children" key which can be: a string, "data" object, or an array of "data"
 * objects to append to this element as children.  Any other key is taken as an
 * attribute to be applied to this tag.
 *
 * Available under an MIT license:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * @param {Object} data The data representing the element to create
 * @return {Element} The element created.
 */
function $E(data) {
  var el;
  if ('string'==typeof data) {
      el=document.createTextNode(data);
  } else {
    //create the element
    el=document.createElement(data.tag);
    delete(data.tag);

    //append the children
    if ('undefined'!=typeof data.children) {
      if ('string'==typeof data.children ||'undefined'==typeof data.children.length) {
        //strings and single elements
        el.appendChild($E(data.children));
      } else {
        //arrays of elements
        for (var i=0, child=null; 'undefined'!=typeof (child=data.children[i]); i++) {
            el.appendChild($E(child));
        }
      }
      delete(data.children);
    }

    //any other data is attributes
    for (attr in data) {
      el[attr]=data[attr];
    }
  }

  return el;
}

// FROM Nick Hemsley
var Debug = {
	inspectOutput: function (container, within) {
		within = within || debugWindow.getContent()
		
		if (debugWindow == null)
 			return;

		within.appendChild(container)
	},
	
	inspect: function(object) {
		var cont = $E({tag: "div", className: "inspector"})
		Debug.inspectObj(object, cont)
		debugWindow.getContent().appendChild(cont)
	},
	
	inspectObj: function (object, container) {
		for (prop in object) {
			Debug.inspectOutput(Debug.inspectable(object, prop), container)
		}
	},
	
	inspectable: function(object, prop) {
		cont = $E({tag: 'div', className: 'inspectable', children: [prop + " value: " + object[prop] ]})
		cont.toInspect = object[prop]
		Event.observe(cont, 'click', Debug.inspectClicked, false)
		return cont
	},
	
	inspectClicked: function(e) {
		Debug.inspectContained(Event.element(e))
		Event.stop(e)
	},
	
	inspectContained: function(container) {
		if (container.opened) {
			container.parentNode.removeChild(container.opened)
			delete(container.opened)
		} else {
			sibling = container.parentNode.insertBefore($E({tag: "div", className: "child"}), container.nextSibling)
			if (container.toInspect)
				Debug.inspectObj(container.toInspect, sibling)
			container.opened = sibling
		}
	}
}
var inspect = Debug.inspect;
                    </div>
                </div>
                <div id="footer">
                    <div class="goldbar" style=""></div>
                                         <div id="flivechat"><!-- Powered by: Crafty Syntax Live Help        http://www.craftysyntax.com/ -->
	   <!-- This JS hacked by Jeff Jones :/ -->
	    <!-- Powered by: Crafty Syntax Live Help http://www.craftysyntax.com/ -->
	    <a href="#" onclick="javscript:openLiveHelp()">
	    <img src="http://www.an22.com/craftysyntax/image.php?&amp;what=getstate" alt="Click for Live Chat!" style="border:0;" height="40px"/>
	    </a>
	    <!-- copyright 2003 - 2006 by Eric Gerdes --></div>
                    <div id="copyright">
&copy;Copyright 2006-2010 <a href="http://www.mccreeventures.com" id="mclink">McCree Ventures, LLC</a><br />
All Rights Reserved
                    </div>
                    <div id="tollfree">1-877-WEB-8686</div>
                </div>
            </div>
        </div>
<div id="c2">
</div>
    </div>

</div>

<script type="text/javascript">
TetraAppend('text');
</script>
</body>
</html>

