/***********************************************************************************************************
 * com.oclib.javascript.lang.root.20070110.Root
 * Location: http://www.oclib.com/library/com/oclib/javascript/lang/Root.js
 * Version Location: http://www.oclib.com/library/com/oclib/javascript/lang/root/builds/20070512/index.html
 * Index Version Location: http://www.oclib.com/library/com/oclib/javascript/lang/root/builds/20070512/index.html
 * © Open Class Library (http://www.oclib.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.oclib == "undefined") {com.oclib = {};};
if (typeof com.oclib.javascript == "undefined") {com.oclib.javascript = {};};
if (typeof com.oclib.javascript.lang == "undefined") {com.oclib.javascript.lang = {};};

if (typeof com.oclib.javascript.lang.Root == "undefined") {
 com.oclib.javascript.lang.Root = function() {};

 com.oclib.javascript.lang.Root.prototype.classCreated = "20061018"; 
  com.oclib.javascript.lang.Root.prototype.getClassCreated = function () {return this.classCreated;};
 com.oclib.javascript.lang.Root.prototype.classCreator = "http://www.oclib.com/"; 
  com.oclib.javascript.lang.Root.prototype.getClassCreator = function () {return this.classCreator;};
 com.oclib.javascript.lang.Root.prototype.classIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/lang/root/"; 
  com.oclib.javascript.lang.Root.prototype.getClassIndexLocation = function () {return this.classIndexLocation;};
 com.oclib.javascript.lang.Root.prototype.classLocation = "http://www.oclib.com/library/com/oclib/javascript/lang/Root.js"; 
  com.oclib.javascript.lang.Root.prototype.getClassLocation = function () {return this.classLocation;};
 com.oclib.javascript.lang.Root.prototype.className = "Root"; 
  com.oclib.javascript.lang.Root.prototype.getClassName = function () {return this.className;};
 com.oclib.javascript.lang.Root.prototype.classNamespace = "com.oclib.javascript.lang.Root"; 
  com.oclib.javascript.lang.Root.prototype.getClassNamespace = function () {return this.classNamespace;};
 com.oclib.javascript.lang.Root.prototype.classVersion = "20070512"; 
  com.oclib.javascript.lang.Root.prototype.getClassVersion = function () {return this.classVersion;};
 com.oclib.javascript.lang.Root.prototype.classVersionIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/lang/root/builds/20070512/"; 
  com.oclib.javascript.lang.Root.prototype.getClassVersionIndexLocation = function () {return this.classVersionIndexLocation;};
 com.oclib.javascript.lang.Root.prototype.classVersionLocation = "http://www.oclib.com/library/com/oclib/javascript/lang/root/builds/20070512/Root.js"; 
  com.oclib.javascript.lang.Root.prototype.getClassVersionLocation = function () {return this.classVersionLocation;};
  
 com.oclib.javascript.lang.Root.prototype.clone = function () {var c = new this.constructor(); for(var p in this){c[p]=this[p];}; return c;};
 com.oclib.javascript.lang.Root.prototype.getClone = function () {return this.clone();};
 com.oclib.javascript.lang.Root.prototype.debugging = false;
  com.oclib.javascript.lang.Root.prototype.getDebugging = function () {return this.debugging;};
  com.oclib.javascript.lang.Root.prototype.getDebuging = function () {return this.getDebugging();};
  com.oclib.javascript.lang.Root.prototype.mustDebug = function () {return (this.getDebugging() && this.getLog());};
  com.oclib.javascript.lang.Root.prototype.setDebugging = function (debugging) {this.debugging = debugging;};
  com.oclib.javascript.lang.Root.prototype.setDebuging = function (debugging) {return this.setDebugging(debugging);};
 com.oclib.javascript.lang.Root.prototype.profile = false;
  com.oclib.javascript.lang.Root.prototype.getProfile = function () {return this.profile;};
  com.oclib.javascript.lang.Root.prototype.mustProfile = function () {return (this.getProfile() && this.getProfiler());};
  com.oclib.javascript.lang.Root.prototype.setProfile = function (profile) {this.profile = profile;};
 com.oclib.javascript.lang.Root.prototype.rootLog; 
  com.oclib.javascript.lang.Root.prototype.getLog = function () {return this.rootLog;};
  com.oclib.javascript.lang.Root.prototype.setLog = function (rootLog) {this.rootLog = rootLog;};
 com.oclib.javascript.lang.Root.prototype.rootProfiler; 
  com.oclib.javascript.lang.Root.prototype.getProfiler = function () {return this.rootProfiler;};
  com.oclib.javascript.lang.Root.prototype.setProfiler = function (rootProfiler) {this.rootProfiler = rootProfiler;};
 com.oclib.javascript.lang.Root.prototype.tracing = false;
  com.oclib.javascript.lang.Root.prototype.getTracing = function () {return this.tracing;};
  com.oclib.javascript.lang.Root.prototype.mustTrace = function () {return (this.getTracing() && this.getLog());};
  com.oclib.javascript.lang.Root.prototype.setTracing = function (tracing) {this.tracing = tracing;};
};
/***********************************************************************************************************
 * com.oclib.javascript.util.dom.20070110. Dom
 * Location: http://www.oclib.com/library/com/oclib/javascript/util/Dom.js
 * Version Location: http://www.oclib.com/library/com/oclib/javascript/util/dom/20070110/.js
 * Index Version Location: http://www.oclib.com/library/com/oclib/javascript/util/dom/20070110/index.html
 * © Open Class Library (http://www.oclib.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.oclib == "undefined") {com.oclib = {};};
if (typeof com.oclib.javascript == "undefined") {com.oclib.javascript = {};};
if (typeof com.oclib.javascript.util == "undefined") {com.oclib.javascript.util = {};};

if (typeof com.oclib.javascript.util.Dom == "undefined") {
 com.oclib.javascript.util.Dom = function() {};
 
 com.oclib.javascript.util.Dom.prototype = new com.oclib.javascript.lang.Root(); 

 com.oclib.javascript.util.Dom.prototype.className = "Dom"; 
 com.oclib.javascript.util.Dom.prototype.classNamespace = "com.oclib.javascript.util.Dom"; 
 com.oclib.javascript.util.Dom.prototype.classCreated = "20060101"; 
 com.oclib.javascript.util.Dom.prototype.classCreator = "http://www.oclib.com/"; 
 com.oclib.javascript.util.Dom.prototype.classLocation = "http://www.oclib.com/library/com/oclib/javascript/util/Dom.js"; 
 com.oclib.javascript.util.Dom.prototype.classIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/dom/"; 
 com.oclib.javascript.util.Dom.prototype.classVersion = "20070110"; 
 com.oclib.javascript.util.Dom.prototype.classVersionLocation = "http://www.oclib.com/library/com/oclib/javascript/util/dom/20070110/Dom.js"; 
 com.oclib.javascript.util.Dom.prototype.classVersionIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/dom/20070110/"; 

 com.oclib.javascript.util.Dom.prototype.appendTextContent = function(element, content) {
  if(this.mustTrace()) {this.getLog().println("Dom.appendTextContent is running...");}; 
  if(typeof element == "string") {element = document.getElementById(element)};
  
  element.appendChild(document.createTextNode(content));
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.changeChilds = function(element, newChildsRootElement) {
  if(this.mustTrace()) {this.getLog().println("Dom.changeChilds is running...");}; 
  if(typeof element == "string") {element = document.getElementById(element)};
  if(typeof newChildsRootElement == "string") {newChildsRootElement = document.getElementById(newChildsRootElement)};
  
  this.removeChilds(element);
  
  element.appendChild(newChildsRootElement);
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.changeTextContent = function(element, content) {
  if(this.mustTrace()) {this.getLog().println("Dom..changeTextContent is running...");}; 
  if(typeof element == "string") {element = document.getElementById(element)};
  if(element) {
   this.removeChilds(element); 
   element.appendChild(document.createTextNode(content));
   return 1;
  } else {
   return 0;
  };
 };

 com.oclib.javascript.util.Dom.prototype.clearTextContent = function(element) {
  if(this.mustTrace()) {this.getLog().println("Dom.changeTextContent is running...");}; 
  if(typeof element == "string") {element = document.getElementById(element)};
  if(element) {
   this.removeChilds(element); 
   return 1;
  } else {
   return 0;
  };
 };

 com.oclib.javascript.util.Dom.prototype.copyContent = function(fromElement, toElement, removeToStatus) {
  if(this.mustTrace()) {this.getLog().println("Dom.copyContent is running...");};
  if(typeof fromElement == "string") {fromElement = document.getElementById(fromElement)};
  if(typeof toElement == "string") {toElement = document.getElementById(toElement)};
  
  if(!fromElement) {return -1;} 
  if(!toElement) {return -2;} 
  
  if(removeToStatus) {this.removeChilds(element);}
 
  var copyElement = fromElement.firstChild; 
  while(copyElement) {
   toElement.appendChild(copyElement.cloneNode(true));
   copyElement = copyElement.nextSibling;
  };
 
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.createCookie = function(name, value, days) {
  if(this.mustTrace()) {this.getLog().println("Dom.createCookie is running...");};
  var expires;
  if (days) {
   var date = new Date();
   date.setDate(date.getDate()+days);
    expires = "; expires="+date.toGMTString();
  } else {
   expires = "";
  };
  document.cookie = name+"="+value+expires+"; path=/";
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.createLinkElement = function(id, href, text) {
  if(this.mustTrace()) {this.getLog().println("Dom.createLinkElement is running...");};
  var linkElement = document.createElement("a");
  linkElement.id = id;
  linkElement.setAttribute("href", href);
  linkElement.appendChild(document.createTextNode(text)); 
  return linkElement;
 };
 
 com.oclib.javascript.util.Dom.prototype.doHidden = function(element) {
  if(this.mustTrace()) {this.getLog().println("Dom.doHidden is running...");};
  if(typeof element == "string") {element = document.getElementById(element)};
  if(!element) {return -1;};
  element.style.visibility = "hidden";
  element.style.position = "absolute";
  element.style.left = "-1000em";
  element.style.top = "-1000em";
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.doVisible = function(element) {
  if(this.mustTrace()) {this.getLog().println("Dom.doVisible is running...");};
  if(typeof element == "string") {element = document.getElementById(element)};
  if(!element) {return -1;} 
  if(!element.style) {return -2;} 
  element.style.position = "static";
  element.style.left = "auto";
  element.style.top = "auto";  
  element.style.visibility = "visible";
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.eraseCookie = function(name) {
  if(this.mustTrace()) {this.getLog().println("Dom.eraseCookie is running...");};
  this.createCookie(name,"",-1);
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.getTextContent = function(element) {
  if(this.mustTrace()) {this.getLog().println("Dom.getTextContent is running...");};
  if(typeof element == "string") {element = document.getElementById(element)};
  if(!element) {return -1;} 
  if(!element.firstChild) {return -2;} 
  var childNode = element.firstChild;
  if(!childNode) {return -3;}
  if(childNode.nodeType != 3) {return -4;}
  var text = childNode.nodeValue;
  return text;
 };

 com.oclib.javascript.util.Dom.prototype.invertVisibility = function(element) {
  if(this.mustTrace()) {this.getLog().println("Dom.invertVisibility is running...");};
  if(typeof element == "string") {element = document.getElementById(element)};
  if(element.style.visibility == "visible" || element.style.visibility == "") {doHidden(element)} else {doVisible(element)}
  return 1;
 };

 com.oclib.javascript.util.Dom.prototype.readCookie = function(name) {
  if(this.mustTrace()) {this.getLog().println("Dom.readCookie is running...");};
  var nameEQ = name + "=";
  var ca = document.cookie.split(";");
  for(var i=0; i < ca.length; i++) {
   var c = ca[i];
   while (c.charAt(0)==" ") c = c.substring(1,c.length);
   if (c.indexOf(nameEQ) == 0) {
    return c.substring(nameEQ.length,c.length);
   };
  }
  return null;
 };

 com.oclib.javascript.util.Dom.prototype.removeChilds = function(element) { 
  if(this.mustTrace()) {this.getLog().println(" com.oclib.javascript.util.Dom.prototype.removeChilds is running...");};
  if(typeof element == "string") {element = document.getElementById(element)}; 
  if(element) {
   while(element.hasChildNodes() && element.firstChild) {element.removeChild(element.firstChild);};
   return 1;
  } else {
   return 0;
  };
 };

 com.oclib.javascript.util.Dom.prototype.setTextContent = function(element, content) {
  if(this.mustTrace()) {this.getLog().println(" com.oclib.javascript.util.Dom.prototype.setTextContent is running...");};
  return this.changeTextContent(element, content);
 };
};
/***********************************************************************************************************
 * com.oclib.javascript.util.events.20070110. Events
 * Location: http://www.oclib.com/library/com/oclib/javascript/util/Events.js
 * Version Location: http://www.oclib.com/library/com/oclib/javascript/util/events/20070110/.js
 * Index Version Location: http://www.oclib.com/library/com/oclib/javascript/util/events/20070110/index.html
 * © Open Class Library (http://www.oclib.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.oclib == "undefined") {com.oclib = {};};
if (typeof com.oclib.javascript == "undefined") {com.oclib.javascript = {};};
if (typeof com.oclib.javascript.util == "undefined") {com.oclib.javascript.util = {};};

if (typeof com.oclib.javascript.util.Events == "undefined") {
 com.oclib.javascript.util.Events = function() {};

 com.oclib.javascript.util.Events.prototype = new com.oclib.javascript.lang.Root();

 com.oclib.javascript.util.Events.prototype.className = "Events"; 
 com.oclib.javascript.util.Events.prototype.classNamespace = "com.oclib.javascript.util.Events"; 
 com.oclib.javascript.util.Events.prototype.classCreated = "20061018"; 
 com.oclib.javascript.util.Events.prototype.classCreator = "http://www.oclib.com/"; 
 com.oclib.javascript.util.Events.prototype.classLocation = "http://www.oclib.com/library/com/oclib/javascript/util/Events.js"; 
 com.oclib.javascript.util.Events.prototype.classIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/events/"; 
 com.oclib.javascript.util.Events.prototype.classVersion = "20070110"; 
 com.oclib.javascript.util.Events.prototype.classVersionLocation = "http://www.oclib.com/library/com/oclib/javascript/util/events/20070110/Events.js"; 
 com.oclib.javascript.util.Events.prototype.classVersionIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/events/20070110/"; 


 /**
  * Events.addEventListener
  * Parameter: element of type DOMString or Element - Element or Name of element.
  * Parameter: type of type DOMString - The event type for which the user is registering
  * Parameter: listener of type EventListener - The listener parameter takes an interface implemented by the user which contains the methods to be called when the event occurs.
  * Parameter: useCapture of type boolean - If true, useCapture indicates that the user wishes to initiate capture. After initiating capture, all events of the specified type will be dispatched to the registered EventListener before being dispatched to any EventTargets beneath them in the tree. Events which are bubbling upward through the tree will not trigger an EventListener designated to use capture.
  * Return: void
  * See more: <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-registration">http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-registration</a>
  * See more: <a href="http://developer.mozilla.org/en/docs/DOM:element.addEventListener">http://developer.mozilla.org/en/docs/DOM:element.addEventListener</a>
  */
 com.oclib.javascript.util.Events.prototype.addEventListener = function(element, type, listener, useCapture) {
  if(this.mustTrace()) {this.getLog().println("Events.addEventListener is runing...");}; 
  if(typeof element == "string") {element = document.getElementById(element)}; 
  if(!element) {return -1;};
  if(element.addEventListener) {
   element.addEventListener(type, listener, useCapture);
  } else if(element.attachEvent) {
   eventIE = "on"+type;
   element.attachEvent(eventIE, listener);
  } else {
   return -1;
  };
 };
 
 /**
  * Events.removeEventListener
  * Parameter: element of type DOMString or Element - Element or Name of element.
  * Parameter: type of type DOMString - Specifies the event type of the EventListener being removed.
  * Parameter: listener of type EventListener - The EventListener parameter indicates the EventListener to be removed.
  * Parameter: useCapture of type boolean - Specifies whether the EventListener being removed was registered as a capturing listener or not. If a listener was registered twice, one with capture and one without, each must be removed separately. Removal of a capturing listener does not affect a non-capturing version of the same listener, and vice versa.
  * Return: void
  * See more: <a href="http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-registration">http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-registration</a>
  * See more: <a href="http://developer.mozilla.org/en/docs/DOM:element.removeEventListener">http://developer.mozilla.org/en/docs/DOM:element.removeEventListener</a>
  */
 com.oclib.javascript.util.Events.prototype.removeEventListener = function(element, type, listener, useCapture) {
  if(this.mustTrace()) {this.getLog().println("Events.removeEventListener is runing...");}; 
  if(typeof element == "string") {element = document.getElementById(element)}; 
  if(!element) {return -1;};
  if(element.removeEventListener) {
   element.removeEventListener(type, listener, useCapture);
  } else if (element.detachEvent) {
   eventIE = "on"+type;
   element.detachEvent(eventIE, listener);
  } else {
   return -1;
  };
 };
};
/***********************************************************************************************************
 * com.oclib.javascript.util.loader.20070120. Loader
 * Location: http://www.oclib.com/library/com/oclib/javascript/util/Loader.js
 * Version Location: http://www.oclib.com/library/com/oclib/javascript/util/loader/20070120/.js
 * Index Version Location: http://www.oclib.com/library/com/oclib/javascript/util/loader/20070120/index.html
 * © Open Class Library (http://www.oclib.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.oclib == "undefined") {com.oclib = {};};
if (typeof com.oclib.javascript == "undefined") {com.oclib.javascript = {};};
if (typeof com.oclib.javascript.util == "undefined") {com.oclib.javascript.util = {};};

if (typeof com.oclib.javascript.util.Loader == "undefined") {
 com.oclib.javascript.util.Loader = function() {
  this.httpRequest;
 
  if (window.XMLHttpRequest) {
   this.httpRequest = new XMLHttpRequest();
   if (this.httpRequest.overrideMimeType) {
    this.httpRequest.overrideMimeType('text/xml');
   }
  } else if (window.ActiveXObject) { // IE
   try {
    this.httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
    try {
     this.httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (e) {}
   }
  } else if (window.createRequest) {
    try {
     this.httpRequest = window.createRequest();
    } catch (e) {}
  }
 } 

 com.oclib.javascript.util.Loader.prototype = new com.oclib.javascript.lang.Root();

 com.oclib.javascript.util.Loader.prototype.className = "Loader"; 
 com.oclib.javascript.util.Loader.prototype.classNamespace = "com.oclib.javascript.util.Loader"; 
 com.oclib.javascript.util.Loader.prototype.classCreated = "20061018"; 
 com.oclib.javascript.util.Loader.prototype.classCreator = "http://www.oclib.com/"; 
 com.oclib.javascript.util.Loader.prototype.classLocation = "http://www.oclib.com/library/com/oclib/javascript/util/Loader.js"; 
 com.oclib.javascript.util.Loader.prototype.classIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/loader/"; 
 com.oclib.javascript.util.Loader.prototype.classVersion = "20070120"; 
 com.oclib.javascript.util.Loader.prototype.classVersionLocation = "http://www.oclib.com/library/com/oclib/javascript/util/loader/20070120/Loader.js"; 
 com.oclib.javascript.util.Loader.prototype.classVersionIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/loader/20070120/"; 

 com.oclib.javascript.util.Loader.prototype.asynchronous = true; 
  com.oclib.javascript.util.Loader.prototype.getAsynchronous = function () {return this.asynchronous;};
  com.oclib.javascript.util.Loader.prototype.setAsynchronous = function (asynchronous) {this.asynchronous = asynchronous; return 1;};
 com.oclib.javascript.util.Loader.prototype.content = ""; 
  com.oclib.javascript.util.Loader.prototype.getContent = function () {return this.content;};
  com.oclib.javascript.util.Loader.prototype.setContent = function (content) {this.content = content; return 1;};
 com.oclib.javascript.util.Loader.prototype.completionStatus; 
  com.oclib.javascript.util.Loader.prototype.getCompletionStatus = function () {return this.completionStatus;};
  com.oclib.javascript.util.Loader.prototype.setCompletionStatus = function (completionStatus) {this.completionStatus = completionStatus; return 1;};
 com.oclib.javascript.util.Loader.prototype.data = ""; 
  com.oclib.javascript.util.Loader.prototype.getData = function () {return this.data;};
  com.oclib.javascript.util.Loader.prototype.setData = function (data) {this.data = data; return 1;};
 com.oclib.javascript.util.Loader.prototype.doIfError = null; 
  com.oclib.javascript.util.Loader.prototype.getDoIfError = function () {return this.doIfError;};
  com.oclib.javascript.util.Loader.prototype.setDoIfError = function (doIfError) {this.doIfError = doIfError; return 1;};
 com.oclib.javascript.util.Loader.prototype.handler = null; 
  com.oclib.javascript.util.Loader.prototype.getDoIfSuccess = function () {return this.handler;};
  com.oclib.javascript.util.Loader.prototype.setDoIfSuccess = function (doIfSuccess) {this.handler = doIfSuccess; return 1;};
  com.oclib.javascript.util.Loader.prototype.getHandler = function () {return this.handler;};
  com.oclib.javascript.util.Loader.prototype.setHandler = function (handler) {this.handler = handler; return 1;};
 com.oclib.javascript.util.Loader.prototype.httpRequest; 
  com.oclib.javascript.util.Loader.prototype.getHttpRequest = function () {return this.httpRequest;};
  com.oclib.javascript.util.Loader.prototype.setHttpRequest = function (httpRequest) {this.httpRequest = httpRequest; return 1;};
 com.oclib.javascript.util.Loader.prototype.method = "GET"; 
  com.oclib.javascript.util.Loader.prototype.getMethod = function () {return this.method;};
  com.oclib.javascript.util.Loader.prototype.setMethod = function (method) {this.method = method; return 1;};
 com.oclib.javascript.util.Loader.prototype.overrideMimeType = "text/xml"; 
  com.oclib.javascript.util.Loader.prototype.getOverrideMimeType = function () {return this.overrideMimeType;};
  com.oclib.javascript.util.Loader.prototype.setOverrideMimeType = function (overrideMimeType) {this.overrideMimeType = overrideMimeType; return 1;};
 com.oclib.javascript.util.Loader.prototype.url = ""; 
  com.oclib.javascript.util.Loader.prototype.getUrl = function () {return this.url;};
  com.oclib.javascript.util.Loader.prototype.setUrl = function (url) {this.url = url; return 1;};
 com.oclib.javascript.util.Loader.prototype.xml = ""; 
  com.oclib.javascript.util.Loader.prototype.getXml = function () {return this.xml;};
  com.oclib.javascript.util.Loader.prototype.setXml = function (xml) {this.xml = xml; return 1;};

 com.oclib.javascript.util.Loader.prototype.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE = ( com.oclib.javascript.util.Loader.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE = -10);
 com.oclib.javascript.util.Loader.prototype.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE_MESSAGE = ( com.oclib.javascript.util.Loader.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE_MESSAGE = "Giving up :( Cannot create an XMLHTTP instance...");

 com.oclib.javascript.util.Loader.prototype.load = function() {
  if(this.mustTrace()) {this.getLog().println("Loader.load is running...");};
  if(this.mustDebug()) {this.getLog().println("Loader.load: "+"method="+this.getMethod()+"; url="+this.getUrl()+"; data="+this.getData()+";");}; 
  var the = this;
  if(this.asynchronous) {
   this.makeRequest(this.getMethod(), this.getUrl(), this.getData());
   return 1;
  } else {
   return this.makeRequest(this.getMethod(), this.getUrl(), this.getData());
  }; 
 }

 com.oclib.javascript.util.Loader.prototype.makeRequest = function(method, url, data) {
  if(this.mustTrace()) {this.getLog().println("Loader.makeRequest is running...");};
  method = method || this.getMethod() || "GET";
  url = url || this.getUrl() || ""; 
  data = data || this.getData() || ""; 
  if(this.mustDebug()) {this.getLog().println("Loader.makeRequest: "+"method="+method+"; url="+url+"; data="+data+";");};  
 
  if (!this.httpRequest) {
   this.completionStatus = this.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE;
   if(this.mustDebug()) {this.getLog().println(this.ERROR_CANNOT_CREATE_XMLHTT_INSTANCE_MESSAGE);};
   return this.completionStatus;
  }
 
  var httpRequest = this.httpRequest;
  if(this.httpRequest.overrideMimeType) {
   this.httpRequest.overrideMimeType(this.getOverrideMimeType());
  };
  if(this.asynchronous) {
   var the = this;
   this.httpRequest.onreadystatechange = function () {
    if(the.mustDebug()) {the.getLog().println("Loader.makeRequest.onreadystatechange is running...");}; 
    the.response();
   };
  } else {
   if(this.mustTrace()) {this.getLog().println("Loader.makeRequest this.asynchronous is false...");};
  };
  if(method == "GET" || method == "get") {
   if(this.mustTrace()) {this.getLog().println("Loader.makeRequest method is GET...");};
   this.httpRequest.open(method, url, this.asynchronous);
   this.httpRequest.send(null);
  } else {
   this.httpRequest.open('POST', url, this.asynchronous);
   this.httpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"); 
   this.httpRequest.send(data);
  };
  if(!this.asynchronous) {
   if(this.mustDebug()) {this.getLog().println("Loader.makeRequest: "+"this.httpRequest.responseText="+this.httpRequest.responseText+";");}; 
   return this.content = this.httpRequest.responseText;
  };
 }

 com.oclib.javascript.util.Loader.prototype.response = function() {
  if(this.mustTrace()) {this.getLog().println("Loader.response is running...");};
  if(this.mustDebug()) {this.getLog().println("Loader.response: "+"this.httpRequest.readyState="+this.httpRequest.readyState);};
  if (this.httpRequest.readyState == 4) {
   if (this.httpRequest.status && this.httpRequest.status == 200) {
    if(this.mustDebug()) {this.getLog().println("Loader.response: "+"this.httpRequest.status="+this.httpRequest.status);};
    if(this.mustDebug()) {this.getLog().println("Loader.response: "+"this.httpRequest.responseXML: ok");};  
   
    try {
     if(this.httpRequest.getAllResponseHeaders && this.httpRequest.getAllResponseHeaders()) {this.headers = this.httpRequest.getAllResponseHeaders();};     
    } catch (e) {
     if(this.mustDebug()) {this.getLog().println("Loader.response: "+"Postmaster.response this.httpRequest.getAllResponseHeaders() exception...");};
     this.doIfError();
     this.completionStatus = -20;
    }
    this.content = this.httpRequest.responseText;
    if(this.mustDebug()) {this.getLog().println("Loader.response: this.content="+this.content);};
    this.xml = this.httpRequest.responseXML; 
    if(this.mustDebug()) {this.getLog().println("Loader.response: this.xml="+this.xml);};
    if(this.mustDebug()) {this.getLog().println("Loader.response: this.handler="+this.handler);}; 
    this.handler(); 
   } else {
    if(this.mustDebug()) {this.getLog().println("Loader.response: "+"There was a problem with the request.");};
    this.doIfError();    
    this.completionStatus = -10;
   }
  } else {
   if(this.mustDebug()) {this.getLog().println("Loader.response: "+"Not yet...");};
  };
 };
};
/***********************************************************************************************************
 * com.oclib.javascript.util.log.20070110.Log
 * Location: http://www.oclib.com/library/com/oclib/javascript/util/Log.js
 * Version Location: http://www.oclib.com/library/com/oclib/javascript/util/log/20070110/Loader.js
 * Index Version Location: http://www.oclib.com/library/com/oclib/javascript/util/log/20070110/index.html
 * © Open Class Library (http://www.oclib.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.oclib == "undefined") {com.oclib = {};};
if (typeof com.oclib.javascript == "undefined") {com.oclib.javascript = {};};
if (typeof com.oclib.javascript.util == "undefined") {com.oclib.javascript.util = {};};

if (typeof com.oclib.javascript.lang.Log == "undefined") {
 com.oclib.javascript.util.Log = function (logElementId, logType, logPlace) { 
  this.completionStatus = 0;
  
  this.logType = logType;
  if(!this.logType) {this.logType = this.SYMPLE_TEXT_LOG_TYPE;}; 
  
  this.logPlace = logPlace;
  if(!this.logPlace) {this.logPlace = this.INTRO_ELEMENT_LOG_PLACE;}; 
  
  if(!logElementId || logElementId == "") {return -1;}
  this.logElementId = logElementId;
  this.createLogElement(); 
 };
 
 com.oclib.javascript.util.Log.prototype = new com.oclib.javascript.lang.Root(); 
 
 com.oclib.javascript.util.Log.prototype.classCreated = "20060101"; 
 com.oclib.javascript.util.Log.prototype.classCreator = "http://www.oclib.com/"; 
 com.oclib.javascript.util.Log.prototype.classIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/log/"; 
 com.oclib.javascript.util.Log.prototype.classLocation = "http://www.oclib.com/library/com/oclib/javascript/util/Log.js"; 
 com.oclib.javascript.util.Log.prototype.className = "Log"; 
 com.oclib.javascript.util.Log.prototype.classNamespace = "com.oclib.javascript.util.Log"; 
 com.oclib.javascript.util.Log.prototype.classVersion = "20070110"; 
 com.oclib.javascript.util.Log.prototype.classVersionIndexLocation = "http://www.oclib.com/library/com/oclib/javascript/util/log/20070110/";  
 com.oclib.javascript.util.Log.prototype.classVersionLocation = "http://www.oclib.com/library/com/oclib/javascript/util/log/20070110/Log.js";  

 com.oclib.javascript.util.Log.prototype.SYMPLE_TEXT_LOG_TYPE = (com.oclib.javascript.util.Log.SYMPLE_TEXT_LOG_TYPE = 100);
 
 com.oclib.javascript.util.Log.prototype.BOTTOM_DOCUMENT_LOG_PLACE = (com.oclib.javascript.util.Log.BOTTOM_DOCUMENT_LOG_PLACE  = 3);
 com.oclib.javascript.util.Log.prototype.HIDDEN_LOG_PLACE = (com.oclib.javascript.util.Log.HIDDEN_LOG_PLACE = 0);
 com.oclib.javascript.util.Log.prototype.INTRO_ELEMENT_LOG_PLACE = (com.oclib.javascript.util.Log.INTRO_ELEMENT_LOG_PLACE = 1);
 com.oclib.javascript.util.Log.prototype.TOP_DOCUMENT_LOG_PLACE = (com.oclib.javascript.util.Log.TOP_DOCUMENT_LOG_PLACE = 2); 
 
 com.oclib.javascript.util.Log.prototype.logElemen;
  com.oclib.javascript.util.Log.prototype.getLogElemen = function () {return this.logElemen;};
  com.oclib.javascript.util.Log.prototype.setLogElemen = function (logElemen) {this.logElemen = logElemen; return 1;};
 com.oclib.javascript.util.Log.prototype.logElemenId;
  com.oclib.javascript.util.Log.prototype.getLogElemenId = function () {return this.logElemenId;};
  com.oclib.javascript.util.Log.prototype.setLogElemenId = function (logElemenId) {this.logElemenId = logElemenId; return 1;}; 
 
 com.oclib.javascript.util.Log.prototype.println = function(text) {	
  if(!text) {return -1;};
  if(!this.logElement) {return -1;};
  if(!this.logElement.appendChild) {return -1;}; 
  var textNode = document.createTextNode(text);
  var divElement = document.createElement("div");
  divElement.appendChild(textNode);
  this.logElement.appendChild(divElement); 
  return 1;
 };
 
 com.oclib.javascript.util.Log.prototype.createLogElement = function() {
  if (this.logPlace == this.TOP_DOCUMENT_LOG_PLACE) {
   this.completionStatus =  this.createLogElementTop();
  } else if (this.logPlace == this.BOTTOM_DOCUMENT_LOG_PLACE) {
   this.completionStatus = this.createLogElementBottom();
  } else if (this.logPlace == this.INTRO_ELEMENT_LOG_PLACE) {
   this.completionStatus = this.createLogElementIntro();
  } else {
   return -1;
  };  
  this.logElement = document.getElementById(this.logElementId); 
  return 1; 
 } ;
 
 com.oclib.javascript.util.Log.prototype.createLogElementBottom = function() {
  var divElement = document.createElement("div");
  divElement.id = this.logElementId;
  divElement.style.textAlign = "left"
  var bodyElement = document.body;
  if(!bodyElement) {return -1;};
  bodyElement.appendChild(divElement);
  return 1;
 };
 
 com.oclib.javascript.util.Log.prototype.createLogElementIntro = function() {return 1;} 
 
 com.oclib.javascript.util.Log.prototype.createLogElementTop = function() {
  var divElement = document.createElement("div");
  divElement.id = this.logElementId;
  var bodyElement = document.body;
  if(!bodyElement) {return -1;};
  var bodyFirstChild = bodyElement.firstChild;
  if(!bodyFirstChild) {
   bodyElement.appendChild(divElement);
  } else {
   bodyElement.insertBefore (divElement, bodyFirstChild);
  };
  return 1;
 };
};
/***********************************************************************************************************
 * com.upmeter.javascript.Rating
 * Location: http://www.upmeter.com/library/com/upmeter/javascript/Rating.js
 * Version Location: http://www.upmeter.com/library/com/upmeter/javascript/rating/builds/20070901/Rating.js
 * Index Version Location: http://www.upmeter.com/library/com/upmeter/javascript/rating/index.html
 * Â© upmeter.com (http://www.upmeter.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.upmeter == "undefined") {com.upmeter = {};};
if (typeof com.upmeter.javascript == "undefined") {com.upmeter.javascript = {};};

if (typeof com.upmeter.javascript.Rating == "undefined") {
 com.upmeter.javascript.Rating = function() {};
 
 com.upmeter.javascript.Rating.prototype = new com.oclib.javascript.lang.Root(); 
 
 com.upmeter.javascript.Rating.prototype.classCreated = "20070627"; 
 com.upmeter.javascript.Rating.prototype.classCreator = "http://www.upmeter.com/"; 
 com.upmeter.javascript.Rating.prototype.classIndexLocation = "http://www.upmeter.com/library/com/upmeter/"; 
 com.upmeter.javascript.Rating.prototype.classLocation = "http://www.upmeter.com/library/com/upmeter/javascript/Rating.js"; 
 com.upmeter.javascript.Rating.prototype.className = "Rating"; 
 com.upmeter.javascript.Rating.prototype.classNamespace = "com.upmeter.javascript.Rating"; 
 com.upmeter.javascript.Rating.prototype.classVersion = "20070901"; 
 com.upmeter.javascript.Rating.prototype.classVersionIndexLocation = "http://www.upmeter.com/library/com/upmeter/javascript/rating/builds/20070901/index.html";  
 com.upmeter.javascript.Rating.prototype.classVersionLocation = "http://www.upmeter.com/library/com/upmeter/javascript/rating/builds/20070901/Rating.js"; 
 
 com.upmeter.javascript.Rating.prototype.account = false;   
  com.upmeter.javascript.Rating.prototype.getAccount = function () {return this.account;};
  com.upmeter.javascript.Rating.prototype.setAccount = function (account) {this.account = account;};
 com.upmeter.javascript.Rating.prototype.dom = null;   
  com.upmeter.javascript.Rating.prototype.getDom = function () {return this.dom;};
  com.upmeter.javascript.Rating.prototype.setDom = function (dom) {this.dom = dom;};
 com.upmeter.javascript.Rating.prototype.events = null;   
  com.upmeter.javascript.Rating.prototype.getEvents = function () {return this.events;};
  com.upmeter.javascript.Rating.prototype.setEvents = function (events) {this.events = events;};
 com.upmeter.javascript.Rating.prototype.id = "";   
  com.upmeter.javascript.Rating.prototype.getId = function () {return this.id;};
  com.upmeter.javascript.Rating.prototype.setId = function (id) {this.id = id;};
 com.upmeter.javascript.Rating.prototype.li = "english";   
  com.upmeter.javascript.Rating.prototype.getLi = function () {return this.li;};
  com.upmeter.javascript.Rating.prototype.setLi = function (li) {this.li = li;};
 com.upmeter.javascript.Rating.prototype.name = "";   
  com.upmeter.javascript.Rating.prototype.getName = function () {return this.name;};
  com.upmeter.javascript.Rating.prototype.setName = function (name) {this.name = name;};
 com.upmeter.javascript.Rating.prototype.rid = "";   
  com.upmeter.javascript.Rating.prototype.getRid = function () {return this.rid;};
  com.upmeter.javascript.Rating.prototype.setRid = function (rid) {this.rid = rid;};
 com.upmeter.javascript.Rating.prototype.shortName = "";   
  com.upmeter.javascript.Rating.prototype.getShortName = function () {return this.shortName;};
  com.upmeter.javascript.Rating.prototype.setShortName = function (shortName) {this.shortName = shortName;};
 com.upmeter.javascript.Rating.prototype.urlRating = "/cgi-bin/library/com/upmeter/perl/cgi/create/builds/20070901/create.cgi";   
  com.upmeter.javascript.Rating.prototype.getUrlRating = function () {return this.urlRating;};
  com.upmeter.javascript.Rating.prototype.setUrlRating = function (urlRating) {this.urlRating = urlRating;};
 
 com.upmeter.javascript.Rating.prototype.init = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.init is runing...");}; 
  this.li = document.getElementById("li").value;
  if(this.mustDebug()) {this.getLog().println("Rating.init li="+this.li);};
  var the = this;
  events.addEventListener("ratingButtonCancel", "click", function() {window.location="http://www.upmeter.com/poll/li/"+the.li+"/";}, false);
  events.addEventListener("ratingButtonCreate", "click", function() {the.createRating();}, false);
  events.addEventListener("ratingButtonDelete", "click", function() {the.deleteRating();}, false);
  events.addEventListener("ratingButtonNew", "click", function() {window.location="http://www.upmeter.com/poll/li/"+the.li+"/pn/create/";}, false);
 };
 
 com.upmeter.javascript.Rating.prototype.createRating = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.cretaeRating is runing...");}; 
  this.dom.doHidden("ratingSuccess");
  this.dom.changeTextContent("ratingMessageError", "");  
  this.dom.doHidden("ratingMessageError"); 
  var el = document.getElementById("ratingLanguage");  
  var ratingLanguage = el.options[el.selectedIndex].value;
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingLanguage="+ratingLanguage);};
  var ratingName = document.getElementById("ratingName").value;
  this.name = ratingName;
  //eratingName = escape(ratingName);
  //eratingName = eratingName.replace(/\+/g, "%2B");
  ratingName = ratingName.replace(/&/g, "%26");
  ratingName = ratingName.replace(/\+/g, "%2B");
  ratingName = ratingName.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingName="+ratingName);};
  var ratingTargetGroup = document.getElementById("ratingTargetGroup").value;
  ratingTargetGroup = ratingTargetGroup.replace(/&/g, "%26");
  ratingTargetGroup = ratingTargetGroup.replace(/\+/g, "%2B");
  ratingTargetGroup = ratingTargetGroup.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingTargetGroup="+ratingTargetGroup);};
  var ratingAdult = (document.getElementById("ratingAdult").checked) ? "true" : "false";
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingAdult="+ratingAdult);};
  var ratingTerms = document.getElementById("ratingTerms").value;
  ratingTerms = ratingTerms.replace(/&/g, "%26");
  ratingTerms = ratingTerms.replace(/\+/g, "%2B");
  ratingTerms = ratingTerms.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingTerms="+ratingTerms);};
  var shortName = document.getElementById("ratingShortName").value;
  shortName = shortName.replace(/&/g, "%26");
  shortName = shortName.replace(/\+/g, "%2B");
  shortName = shortName.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating shortName="+shortName);};
  var ratingSiteURL = document.getElementById("ratingSiteURL").value;
  ratingSiteURL = ratingSiteURL.replace(/&/g, "%26");
  ratingSiteURL = ratingSiteURL.replace(/\+/g, "%2B");
  ratingSiteURL = ratingSiteURL.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingSiteURL="+ratingSiteURL);};
  var ratingSiteName = document.getElementById("ratingSiteName").value;
  ratingSiteName = ratingSiteName.replace(/&/g, "%26");
  ratingSiteName = ratingSiteName.replace(/\+/g, "%2B");
  ratingSiteName = ratingSiteName.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingSiteName="+ratingSiteName);};
  var ratingAuthorName = document.getElementById("ratingAuthorName").value;
  ratingAuthorName = ratingAuthorName.replace(/&/g, "%26");
  ratingAuthorName = ratingAuthorName.replace(/\+/g, "%2B");
  ratingAuthorName = ratingAuthorName.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingAuthorName="+ratingAuthorName);};
  var ratingAuthorEmail = document.getElementById("ratingAuthorEmail").value;
  ratingAuthorEmail = ratingAuthorEmail.replace(/&/g, "%26");
  ratingAuthorEmail = ratingAuthorEmail.replace(/\+/g, "%2B");
  ratingAuthorEmail = ratingAuthorEmail.replace(/=/g, "%3D");
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingAuthorEmail="+ratingAuthorEmail);};
  if(ratingLanguage == "" || ratingName == "" || ratingTerms == "") {
   this.dom.changeTextContent("ratingMessageError", document.getElementById("errorCreateEmpty").value);
  this.dom.doVisible("ratingMessageError"); 
  } else { 
   var data = "li="+this.li//escape(this.li)
              +"&language="+ratingLanguage//escape(ratingLanguage)
              +"&id="+this.id//escape(this.id)
              +"&rid="+this.rid//escape(this.rid)
              +"&name="+ratingName//eratingName//escape(ratingName)//
              +"&targetGroup="+ratingTargetGroup//escape(ratingTargetGroup)//
              +"&terms="+ratingTerms//escape(ratingTerms)
              +"&shortnamef="+shortName//escape(shortName)
              +"&siteURL="+ratingSiteURL//escape(ratingSiteURL)
              +"&siteName="+ratingSiteName//escape(ratingSiteName)
              +"&authorName="+ratingAuthorName//escape(ratingAuthorName)
              +"&authorEmail="+ratingAuthorEmail//escape(ratingAuthorEmail)
              +"&r="+ratingAdult//escape(ratingAdult)
              +"&x=false"
              +"&active=true";
			  
   if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating data="+data);};
   var loader = new com.oclib.javascript.util.Loader();
   loader.setDebugging(this.getDebugging()); loader.setLog(this.getLog()); loader.setTracing(this.getTracing());
   loader.setMethod("POST");
   var the = this;
   loader.setDoIfError(function() {the.createRatingError(loader);});
   loader.setDoIfSuccess(function() {the.createRatingSuccess(loader);});
   loader.makeRequest(this.method, this.urlRating, data);
  };
 };
 
 com.upmeter.javascript.Rating.prototype.createRatingError = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.creteRatingError is runing...");}; 
  this.dom.changeTextContent("ratingMessageError", document.getElementById("errorCreateStrange").value);
  this.dom.doVisible("ratingMessageError");
 };
 
 com.upmeter.javascript.Rating.prototype.createRatingSuccess = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.createRatingSuccess is runing...");}; 
  var responseXML = loader.xml;  
  if(responseXML.getElementsByTagName("status") && responseXML.getElementsByTagName("status").item(0) && responseXML.getElementsByTagName("status").item(0).firstChild) {
   var status = responseXML.getElementsByTagName("status").item(0).firstChild.data;
   if(this.mustDebug()) {this.getLog().println("Rating.createRatingSuccess: status="+status);};
   if(status == "success") {
    if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.createRatingSuccess: success...");};
	if(responseXML.getElementsByTagName("rid") && responseXML.getElementsByTagName("rid").item(0) && responseXML.getElementsByTagName("rid").item(0).firstChild) {
     this.rid = responseXML.getElementsByTagName("rid").item(0).firstChild.data;
	};
	if(responseXML.getElementsByTagName("id") && responseXML.getElementsByTagName("id").item(0) && responseXML.getElementsByTagName("id").item(0).firstChild) {
     this.id = responseXML.getElementsByTagName("id").item(0).firstChild.data;
	};
	if(responseXML.getElementsByTagName("shortname") && responseXML.getElementsByTagName("shortname").item(0) && responseXML.getElementsByTagName("shortname").item(0).firstChild) {
     this.shortname = responseXML.getElementsByTagName("shortname").item(0).firstChild.data;
	};
	var aElement = document.createElement("a");
	aElement.className = "ratingLink";
	aElement.setAttribute("target", "_blank");
	aElement.setAttribute("href", "http://www.upmeter.com/poll/li/"+this.li+"/pn/rating/q/"+this.shortname+"/");
	aElement.appendChild(document.createTextNode(this.name));
	this.dom.changeChilds(document.getElementById("ratingMessageSuccessURL"), aElement);
    this.dom.doHidden("ratingMessageError");
    this.dom.doVisible("ratingSuccess");
	return;
   } else {
    if(responseXML.getElementsByTagName("details") && responseXML.getElementsByTagName("details").item(0) && responseXML.getElementsByTagName("details").item(0).firstChild) {
     var details = responseXML.getElementsByTagName("details").item(0).firstChild.data;
     if(details == "empty") {
      this.dom.changeTextContent("ratingMessageError", document.getElementById("errorCreateEmpty").value);
      this.dom.doVisible("ratingMessageError");
      return;
     } else if(details == "noSuchRating") {
      this.dom.changeTextContent("ratingMessageError", document.getElementById("errorCreateNoSuchRating").value);
      this.dom.doVisible("ratingMessageError");
      return;
	 } else if(details == "repeatName") {
      this.dom.changeTextContent("ratingMessageError", document.getElementById("errorCreateRepeatName").value);
      this.dom.doVisible("ratingMessageError");
      return;
	 };
	};
   };
  };
  this.createRatingError(loader);
 };
 
 com.upmeter.javascript.Rating.prototype.deleteRating = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.deleteRating is runing...");}; 
  this.dom.doHidden("ratingSuccess");
  this.dom.changeTextContent("ratingMessageError", "");  
  this.dom.doHidden("ratingMessageError"); 
  var el = document.getElementById("ratingLanguage");  
  var ratingLanguage = el.options[el.selectedIndex].value;
  if(this.mustDebug()) {this.getLog().println("Rating.cretaeRating ratingLanguage="+ratingLanguage);};
  var ratingName = document.getElementById("ratingName").value;
  this.name = ratingName;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingName="+ratingName);};
  var ratingTargetGroup = document.getElementById("ratingTargetGroup").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingTargetGroup="+ratingTargetGroup);};
  var ratingAdult = (document.getElementById("ratingAdult").checked) ? "true" : "false";
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingAdult="+ratingAdult);};
  var ratingTerms = document.getElementById("ratingTerms").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingTerms="+ratingTerms);};
  var shortName = document.getElementById("ratingShortName").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating shortName="+shortName);};
  var ratingSiteURL = document.getElementById("ratingSiteURL").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingSiteURL="+ratingSiteURL);};
  var ratingSiteName = document.getElementById("ratingSiteName").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingSiteName="+ratingSiteName);};
  var ratingAuthorName = document.getElementById("ratingAuthorName").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingAuthorName="+ratingAuthorName);};
  var ratingAuthorEmail = document.getElementById("ratingAuthorEmail").value;
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating ratingAuthorEmail="+ratingAuthorEmail);};
  var data = "li="+escape(this.li)
              +"&language="+escape(ratingLanguage)
              +"&id="+escape(this.id)
              +"&rid="+escape(this.rid)
              +"&name="+escape(ratingName)
              +"&targetGroup="+escape(ratingTargetGroup)
              +"&terms="+escape(ratingTerms)
              +"&shortnamef="+escape(shortName)
              +"&siteURL="+escape(ratingSiteURL)
              +"&siteName="+escape(ratingSiteName)
              +"&authorName="+escape(ratingAuthorName)
              +"&authorEmail="+escape(ratingAuthorEmail)
              +"&r="+escape(ratingAdult)
              +"&x=false"
              +"&active=false";
			  
  if(this.mustDebug()) {this.getLog().println("Rating.deleteRating data="+data);};
  var loader = new com.oclib.javascript.util.Loader();
  loader.setDebugging(this.getDebugging()); loader.setLog(this.getLog()); loader.setTracing(this.getTracing());
  loader.setMethod("POST");
  var the = this;
  loader.setDoIfError(function() {the.deleteRatingError(loader);});
  loader.setDoIfSuccess(function() {the.deleteRatingSuccess(loader);});
  loader.makeRequest(this.method, this.urlRating, data);
 };
 
 com.upmeter.javascript.Rating.prototype.deleteRatingError = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.deleteRatingError is runing...");}; 
 };
 
 com.upmeter.javascript.Rating.prototype.deleteRatingSuccess = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Rating.deleteRatingSuccess is runing...");}; 
  var responseXML = loader.xml;  
  if(responseXML.getElementsByTagName("status") && responseXML.getElementsByTagName("status").item(0) && responseXML.getElementsByTagName("status").item(0).firstChild) {
   var status = responseXML.getElementsByTagName("status").item(0).firstChild.data;
   if(this.mustDebug()) {this.getLog().println("Rating.createRatingSuccess: status="+status);};
   if(status == "success") {
    this.dom.changeTextContent("ratingMessageError", document.getElementById("ratingMessageDeleteSuccess").value);
    this.dom.doVisible("ratingMessageError");
	this.id="";
	this.rid="";
   };
  };
 };
 
};

/***********************************************************************************************************
 * com.upmeter.javascript.Search
 * Location: http://www.upmeter.com/library/com/upmeter/javascript/Search.js
 * Version Location: http://www.upmeter.com/library/com/upmeter/javascript/search/builds/20070901/Search.js
 * Index Version Location: http://www.upmeter.com/library/com/upmeter/javascript/search/index.html
 * Â© upmeter.com (http://www.upmeter.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.upmeter == "undefined") {com.upmeter = {};};
if (typeof com.upmeter.javascript == "undefined") {com.upmeter.javascript = {};};

if (typeof com.upmeter.javascript.Search == "undefined") {
 com.upmeter.javascript.Search = function() {};
 
 com.upmeter.javascript.Search.prototype = new com.oclib.javascript.lang.Root(); 
 
 com.upmeter.javascript.Search.prototype.classCreated = "20070718"; 
 com.upmeter.javascript.Search.prototype.classCreator = "http://www.upmeter.com/"; 
 com.upmeter.javascript.Search.prototype.classIndexLocation = "http://www.upmeter.com/library/com/upmeter/"; 
 com.upmeter.javascript.Search.prototype.classLocation = "http://www.upmeter.com/library/com/upmeter/javascript/Search.js"; 
 com.upmeter.javascript.Search.prototype.className = "Search"; 
 com.upmeter.javascript.Search.prototype.classNamespace = "com.upmeter.javascript.Search"; 
 com.upmeter.javascript.Search.prototype.classVersion = "20070901"; 
 com.upmeter.javascript.Search.prototype.classVersionIndexLocation = "http://www.upmeter.com/library/com/upmeter/javascript/search/builds/20070901/index.html";  
 com.upmeter.javascript.Search.prototype.classVersionLocation = "http://www.upmeter.com/library/com/upmeter/javascript/search/builds/20070901/Search.js"; 
 
 com.upmeter.javascript.Search.prototype.dom = null;   
  com.upmeter.javascript.Search.prototype.getDom = function () {return this.dom;};
  com.upmeter.javascript.Search.prototype.setDom = function (dom) {this.dom = dom;};
 com.upmeter.javascript.Search.prototype.events = null;   
  com.upmeter.javascript.Search.prototype.getEvents = function () {return this.events;};
  com.upmeter.javascript.Search.prototype.setEvents = function (events) {this.events = events;};
 com.upmeter.javascript.Search.prototype.li = "english";   
  com.upmeter.javascript.Search.prototype.getLi = function () {return this.li;};
  com.upmeter.javascript.Search.prototype.setLi = function (li) {this.li = li;};
 
 com.upmeter.javascript.Search.prototype.init = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Search.init is runing...");};
  this.li = document.getElementById("li").value;
  if(this.mustDebug()) {this.getLog().println("Search.init li="+this.li);};
  var the = this;
  events.addEventListener("searchButton", "click", function(e) {the.searchThis(e);}, false);
  events.addEventListener("searchText", "keypress", function(e) {if(e.keyCode != 13 && e.which != 13){return -1;}; the.searchThis(e);}, false);
 };
 
 com.upmeter.javascript.Search.prototype.searchThis = function(e) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Search.searchThis is runing...");};
  var q = encodeURIComponent(document.getElementById("searchText").value);
  if(this.mustDebug()) {this.getLog().println("Search.searchThis q="+q);};
  if(q == "") {return;}
  var t = document.getElementById("search-name").checked ? "search-name" : "search-term";
  var a = document.getElementById("all-search").checked ? "all-" : "";
  if(this.mustDebug()) {this.getLog().println("Search.searchThis a="+a);}; 
  t = a+t;
  var u = "http://www.upmeter.com/poll/li/"+this.li+"/pn/"+t+"/q/"+q+"/";
  if(this.mustDebug()) {this.getLog().println("Search.searchThis u="+u);};
  window.location = u; 
 };
};

/***********************************************************************************************************
 * com.upmeter.javascript.ViewPage
 * Location: http://www.upmeter.com/library/com/upmeter/javascript/ViewPage.js
 * Version Location: http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/ViewPage.js
 * Index Version Location: http://www.upmeter.com/library/com/upmeter/javascript/siewpage/index.html
 * Â© upmeter.com (http://www.upmeter.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.upmeter == "undefined") {com.upmeter = {};};
if (typeof com.upmeter.javascript == "undefined") {com.upmeter.javascript = {};};

if (typeof com.upmeter.javascript.ViewPage == "undefined") {
 com.upmeter.javascript.ViewPage = function() {};
 
 com.upmeter.javascript.ViewPage.prototype = new com.oclib.javascript.lang.Root(); 
 
 com.upmeter.javascript.ViewPage.prototype.classCreated = "20070718"; 
 com.upmeter.javascript.ViewPage.prototype.classCreator = "http://www.upmeter.com/"; 
 com.upmeter.javascript.ViewPage.prototype.classIndexLocation = "http://www.upmeter.com/library/com/upmeter/"; 
 com.upmeter.javascript.ViewPage.prototype.classLocation = "http://www.upmeter.com/library/com/upmeter/javascript/ViewPage.js"; 
 com.upmeter.javascript.ViewPage.prototype.className = "ViewPage"; 
 com.upmeter.javascript.ViewPage.prototype.classNamespace = "com.upmeter.javascript.ViewPage"; 
 com.upmeter.javascript.ViewPage.prototype.classVersion = "20070901"; 
 com.upmeter.javascript.ViewPage.prototype.classVersionIndexLocation = "http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/index.html";  
 com.upmeter.javascript.ViewPage.prototype.classVersionLocation = "http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/ViewPage.js"; 
 
 com.upmeter.javascript.ViewPage.prototype.dom = null;   
  com.upmeter.javascript.ViewPage.prototype.getDom = function () {return this.dom;};
  com.upmeter.javascript.ViewPage.prototype.setDom = function (dom) {this.dom = dom;};
 com.upmeter.javascript.ViewPage.prototype.events = null;   
  com.upmeter.javascript.ViewPage.prototype.getEvents = function () {return this.events;};
  com.upmeter.javascript.ViewPage.prototype.setEvents = function (events) {this.events = events;};
 com.upmeter.javascript.ViewPage.prototype.location = "";   
  com.upmeter.javascript.ViewPage.prototype.getLocation = function () {return this.location;};
  com.upmeter.javascript.ViewPage.prototype.setLocation = function (location) {this.location = location;};
 
 com.upmeter.javascript.ViewPage.prototype.init = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.ViewPage.init is runing...");};
  this.location = window.location;
  if(this.mustDebug()) {this.getLog().println("ViewPage.init location="+this.location);};
 };
};

/***********************************************************************************************************
 * com.upmeter.javascript.Vote
 * Location: http://www.upmeter.com/library/com/upmeter/javascript/Vote.js
 * Version Location: http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/Vote.js
 * Index Version Location: http://www.upmeter.com/library/com/upmeter/javascript/siewpage/index.html
 * Â© upmeter.com (http://www.upmeter.com/)
***********************************************************************************************************/
if (typeof com == "undefined") {com = {};};
if (typeof com.upmeter == "undefined") {com.upmeter = {};};
if (typeof com.upmeter.javascript == "undefined") {com.upmeter.javascript = {};};

if (typeof com.upmeter.javascript.Vote == "undefined") {
 com.upmeter.javascript.Vote = function() {};
 
 com.upmeter.javascript.Vote.prototype = new com.oclib.javascript.lang.Root(); 
 
 com.upmeter.javascript.Vote.prototype.classCreated = "20070718"; 
 com.upmeter.javascript.Vote.prototype.classCreator = "http://www.upmeter.com/"; 
 com.upmeter.javascript.Vote.prototype.classIndexLocation = "http://www.upmeter.com/library/com/upmeter/"; 
 com.upmeter.javascript.Vote.prototype.classLocation = "http://www.upmeter.com/library/com/upmeter/javascript/Vote.js"; 
 com.upmeter.javascript.Vote.prototype.className = "Vote"; 
 com.upmeter.javascript.Vote.prototype.classNamespace = "com.upmeter.javascript.Vote"; 
 com.upmeter.javascript.Vote.prototype.classVersion = "20070901"; 
 com.upmeter.javascript.Vote.prototype.classVersionIndexLocation = "http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/index.html";  
 com.upmeter.javascript.Vote.prototype.classVersionLocation = "http://www.upmeter.com/library/com/upmeter/javascript/siewpage/builds/20070901/Vote.js"; 
 
 com.upmeter.javascript.Vote.prototype.dom = null;   
  com.upmeter.javascript.Vote.prototype.getDom = function () {return this.dom;};
  com.upmeter.javascript.Vote.prototype.setDom = function (dom) {this.dom = dom;};
 com.upmeter.javascript.Vote.prototype.events = null;   
  com.upmeter.javascript.Vote.prototype.getEvents = function () {return this.events;};
  com.upmeter.javascript.Vote.prototype.setEvents = function (events) {this.events = events;};
 com.upmeter.javascript.Vote.prototype.lock = false;   
  com.upmeter.javascript.Vote.prototype.getLock = function () {return this.lock;};
  com.upmeter.javascript.Vote.prototype.setLock = function (lock) {this.lock = lock;};
 com.upmeter.javascript.Vote.prototype.rid = null;   
  com.upmeter.javascript.Vote.prototype.getRid = function () {return this.rid;};
  com.upmeter.javascript.Vote.prototype.setRid = function (rid) {this.rid = rid;};
 com.upmeter.javascript.Vote.prototype.term = "";   
  com.upmeter.javascript.Vote.prototype.getTerm = function () {return this.term;};
  com.upmeter.javascript.Vote.prototype.setTerm = function (term) {this.term = term;};
 com.upmeter.javascript.Vote.prototype.urlVote = "/cgi-bin/library/com/upmeter/perl/cgi/vote/builds/20070901/vote.cgi";   
  com.upmeter.javascript.Vote.prototype.getUrlVote = function () {return this.urlVote;};
  com.upmeter.javascript.Vote.prototype.setUrlVote = function (urlVote) {this.urlVote = urlVote;};
 
 com.upmeter.javascript.Vote.prototype.add = function(e) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.add is runing...");}; 
  var term = document.getElementById("ratingAddText").value;
  if(this.lock || term == "") {return;}
  this.term = term;
  term = term.replace(/&/g, "%26");
  term = term.replace(/\+/g, "%2B");
  term = term.replace(/=/g, "%3D");
  this.lock = true;
  var tid = "";
  if(this.mustDebug()) {this.getLog().println("Vote.add term="+term);};
  var data = "rid="+escape(this.rid)
              +"&vote=1"
              +"&term="+term; //escape(term)			  
  if(this.mustDebug()) {this.getLog().println("Vote.add data="+data);};
  var loader = new com.oclib.javascript.util.Loader();
  loader.setDebugging(this.getDebugging()); loader.setLog(this.getLog()); loader.setTracing(this.getTracing());
  loader.setMethod("POST");
  var the = this;
  loader.setDoIfError(function() {the.addError(loader);});
  loader.setDoIfSuccess(function() {the.addSuccess(loader);});
  loader.makeRequest(this.method, this.urlVote, data); 
 };
 
 com.upmeter.javascript.Vote.prototype.addError = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.addError is runing...");};
  this.lock = false; 
 };
 
 com.upmeter.javascript.Vote.prototype.addSuccess = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.addSuccess is runing...");}; 
  var responseXML = loader.xml;  
  if(responseXML.getElementsByTagName("status") && responseXML.getElementsByTagName("status").item(0) && responseXML.getElementsByTagName("status").item(0).firstChild) {
   var status = responseXML.getElementsByTagName("status").item(0).firstChild.data;
   if(this.mustDebug()) {this.getLog().println("Rating.createRatingSuccess: status="+status);};
   if(status == "success") {
    if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.addSuccess: success...");};
	if(responseXML.getElementsByTagName("id") && responseXML.getElementsByTagName("id").item(0) && responseXML.getElementsByTagName("id").item(0).firstChild
       //&& responseXML.getElementsByTagName("term") && responseXML.getElementsByTagName("term").item(0) && responseXML.getElementsByTagName("term").item(0).firstChild
       && responseXML.getElementsByTagName("voteall") && responseXML.getElementsByTagName("voteall").item(0) && responseXML.getElementsByTagName("voteall").item(0).firstChild) {
     var tid = responseXML.getElementsByTagName("id").item(0).firstChild.data;
     //var term = unescape(responseXML.getElementsByTagName("term").item(0).firstChild.data);
     var voteall = responseXML.getElementsByTagName("voteall").item(0).firstChild.data;
     if(this.mustDebug()) {this.getLog().println("com.upmeter.javascript.Vote.addSuccess tid="+tid+"; term="+this.term+"; voteall="+voteall);};
	 var trElement = document.createElement("tr");
	 trElement.className = "ratingVoteTr";
	 trElement.id = "voteTr"+tid;
	 var tdElementNumber = document.createElement("td");
	 tdElementNumber.className = "ratingNumber";
	 tdElementNumber.appendChild(document.createTextNode("*"));
	 trElement.appendChild(tdElementNumber);
	 var tdElementTerm = document.createElement("td");
	 tdElementTerm.className = "ratingTerm";
	 tdElementTerm.appendChild(document.createTextNode(this.term));
	 this.term = "";
	 trElement.appendChild(tdElementTerm);
	 var tdElementCount = document.createElement("td");
	 tdElementCount.className = "ratingCount";
	 tdElementCount.id = "votes"+tid;
	 tdElementCount.appendChild(document.createTextNode(voteall));
	 trElement.appendChild(tdElementCount);
	 var tdElementVoteUp = document.createElement("td");
	 tdElementVoteUp.className = "ratingVote";
	  var divElementVoteUp = document.createElement("div");
	  divElementVoteUp.className = "divVoteUp";
	  divElementVoteUp.id = "voteUp"+tid;
	  divElementVoteUp.setAttribute("title", "Vote Up: +1");
	  //divElementVoteUp.appendChild(document.createTextNode("â†‘"));
	 tdElementVoteUp.appendChild(divElementVoteUp);
	 trElement.appendChild(tdElementVoteUp);
	 var tdElementVoteDown = document.createElement("td");
	 tdElementVoteDown.className = "ratingVote";
	  var divElementVoteDown = document.createElement("div");
	  divElementVoteDown.className = "divVoteDown";
	  divElementVoteDown.id = "voteDown"+tid;
	  divElementVoteDown.setAttribute("title", "Vote Down: -1");
	  //divElementVoteDown.appendChild(document.createTextNode("â†“"));
	 tdElementVoteDown.appendChild(divElementVoteDown);
	 trElement.appendChild(tdElementVoteDown);
	 document.getElementById("ratingsTbody").appendChild(trElement);
     this.lock = false;
	 return;
	};
   };
  };
  this.addError(loader);
 };
 
 com.upmeter.javascript.Vote.prototype.init = function() {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.init is runing...");};
  if(document.getElementById("rid") && document.getElementById("rid").value != "") {
   this.rid = document.getElementById("rid").value;
  };
  if(this.mustDebug()) {this.getLog().println("Vote.init rid="+this.rid);};
  var the = this;
  events.addEventListener("ratingAddButton", "click", function(e) {the.add(e);}, false);
  events.addEventListener("ratingAddText", "keypress", function(e) {if(e.keyCode != 13 && e.which != 13){return -1;}; the.add(e);}, false);
  events.addEventListener("ratings", "click", function(e) {the.vote(e);}, false);
 };
 
 com.upmeter.javascript.Vote.prototype.vote = function(e) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.vote is runing...");}; 
  var targetElement;
  if (e.target) {targetElement = e.target;} else if (e.srcElement) {targetElement = e.srcElement;};
  if (targetElement.nodeType == 3) {targetElement = targetElement.parentNode;}; // defeat Safari bug
  if(this.mustDebug()) {this.getLog().println("Vote.vote targetElement.id="+targetElement.id);};
  var id = targetElement.id;
  var action = id.substr(0, 6);
  var tid = id.substr(6);
  if(this.mustDebug()) {this.getLog().println("Vote.vote action="+action+"; tid="+tid);};
  var vote = (action == "voteUp") ? 1 : -1;
  var data = "rid="+escape(this.rid)
              +"&id="+escape(tid)
              +"&vote="+escape(vote);			  
  if(this.mustDebug()) {this.getLog().println("Vote.vote data="+data);};
  var loader = new com.oclib.javascript.util.Loader();
  loader.setDebugging(this.getDebugging()); loader.setLog(this.getLog()); loader.setTracing(this.getTracing());
  loader.setMethod("POST");
  var the = this;
  loader.setDoIfError(function() {the.voteError(loader);});
  loader.setDoIfSuccess(function() {the.voteSuccess(loader);});
  loader.makeRequest(this.method, this.urlVote, data); 
 };
 
 com.upmeter.javascript.Vote.prototype.voteError = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.voteError is runing...");}; 
 };
 
 com.upmeter.javascript.Vote.prototype.voteSuccess = function(loader) {
  if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.voteSuccess is runing...");}; 
  var responseXML = loader.xml;  
  if(responseXML.getElementsByTagName("status") && responseXML.getElementsByTagName("status").item(0) && responseXML.getElementsByTagName("status").item(0).firstChild) {
   var status = responseXML.getElementsByTagName("status").item(0).firstChild.data;
   if(this.mustDebug()) {this.getLog().println("Rating.createRatingSuccess: status="+status);};
   if(status == "success") {
    if(this.mustTrace()) {this.getLog().println("com.upmeter.javascript.Vote.voteSuccess: success...");};
	if(responseXML.getElementsByTagName("id") && responseXML.getElementsByTagName("id").item(0) && responseXML.getElementsByTagName("id").item(0).firstChild
       && responseXML.getElementsByTagName("voteall") && responseXML.getElementsByTagName("voteall").item(0) && responseXML.getElementsByTagName("voteall").item(0).firstChild) {
     var tid = responseXML.getElementsByTagName("id").item(0).firstChild.data;
	 var id = "votes"+tid;
     var voteall = responseXML.getElementsByTagName("voteall").item(0).firstChild.data;
     if(this.mustDebug()) {this.getLog().println("com.upmeter.javascript.Vote.voteSuccess tid="+tid+"; id="+id+"; voteall="+voteall);};
	 this.dom.changeChilds(id, document.createTextNode(voteall));
	 return;
	};
   };
  };
  this.voteError(loader);
 };
};

/***********************************************************************************************************
 * su.bot.checkers.javascript.demo
 * Location: http://www.upmeter.com/library/com/upmeter/javascript/poll.js
 * © upmeter.com (http://www.upmeter.com/)
***********************************************************************************************************/
var debugging = false;
var upmeterLogName = "upmeterLog";
var tracing = false;

var dom, events;
var upmeterLog;
var rating, searcher, viewPage;

//var init = function(e) {
if((debugging || tracing) && com.oclib.javascript.util.Log) {
  upmeterLog = new com.oclib.javascript.util.Log(upmeterLogName, com.oclib.javascript.util.Log.SYMPLE_TEXT_LOG_TYPE, com.oclib.javascript.util.Log.INTRO_ELEMENT_LOG_PLACE);
  if(debugging && upmeterLog) {upmeterLog.println("private.js:init: "+"com.oclib.javascript.util.Log (Version "+(new com.oclib.javascript.util.Log()).getClassVersion()+")  is loaded...");};
};
if(debugging && tracing && upmeterLog) { 
  if(com.oclib.javascript.util.Dom) {upmeterLog.println("private.js:init: "+"com.oclib.javascript.util.Dom (Version "+(new com.oclib.javascript.util.Dom()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.oclib.javascript.util.Dom is NOT loaded...");};
  if(com.oclib.javascript.util.Loader) {upmeterLog.println("private.js:init: "+"com.oclib.javascript.util.Loader (Version "+(new com.oclib.javascript.util.Loader()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.oclib.javascript.util.Loader is NOT loaded...");};
  if(com.upmeter.javascript.Rating) {upmeterLog.println("private.js:init: "+"com.upmeter.javascript.Rating (Version "+(new com.upmeter.javascript.Rating()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.upmeter.javascript.Rating is NOT loaded...");};
  if(com.upmeter.javascript.Search) {upmeterLog.println("private.js:init: "+"com.upmeter.javascript.Search (Version "+(new com.upmeter.javascript.Search()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.upmeter.javascript.Search is NOT loaded...");};
  if(com.upmeter.javascript.Vote) {upmeterLog.println("private.js:init: "+"com.upmeter.javascript.Vote (Version "+(new com.upmeter.javascript.Vote()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.upmeter.javascript.Vote is NOT loaded...");};
  if(com.upmeter.javascript.ViewPage) {upmeterLog.println("private.js:init: "+"com.upmeter.javascript.ViewPage (Version "+(new com.upmeter.javascript.ViewPage()).getClassVersion()+") is loaded...");} else {upmeterLog.println("demo.js:init: "+"com.upmeter.javascript.ViewPage is NOT loaded...");};
} else {
 events = new com.oclib.javascript.util.Events();
 dom = new com.oclib.javascript.util.Dom();
 if((debugging || tracing) && upmeterLog) {dom.doVisible("logWindow");} else {dom.doHidden("logWindow");};
 rating = new com.upmeter.javascript.Rating();
 rating.setDebugging(debugging); rating.setTracing(tracing); rating.setLog(upmeterLog);
 rating.setDom(dom); rating.setEvents(events);
 rating.init();
 searcher = new com.upmeter.javascript.Search();
 searcher.setDebugging(debugging); searcher.setTracing(tracing); searcher.setLog(upmeterLog);
 searcher.setDom(dom); searcher.setEvents(events);
 searcher.init();
 vote = new com.upmeter.javascript.Vote();
 vote.setDebugging(debugging); vote.setTracing(tracing); vote.setLog(upmeterLog);
 vote.setDom(dom); vote.setEvents(events);
 vote.init();
 viewPage = new com.upmeter.javascript.ViewPage();
 viewPage.setDebugging(debugging); viewPage.setTracing(tracing); viewPage.setLog(upmeterLog);
 viewPage.setDom(dom); viewPage.setEvents(events);
};
/*
 viewPage.init();
};

init();

if(com.oclib.javascript.lang.Root && com.oclib.javascript.util.Events) {
 events = new com.oclib.javascript.util.Events();
 events.addEventListener(window, "load", init, false);
};
*/


