(3823809,'prototajp',3823806,1,'no','private',0,332,'2008-03-24 21:42:48','2010-02-16 23:04:49',0,21,NULL,'2008-03-24 21:42:48',14,'2008-03-24 21:46:56','template://3823809','015496890190888801549689015596350382380603823809','/*  Prototype JavaScript framework, version 1.6.0\r\n *  (c) 2005-2007 Sam Stephenson\r\n *\r\n *  Prototype is freely distributable under the terms of an MIT-style license.\r\n *  For details, see the Prototype web site: http://www.prototypejs.org/\r\n *\r\n *--------------------------------------------------------------------------*/\r\n\r\nvar Prototype = {\r\n  Version: \'1.6.0\',\r\n\r\n  Browser: {\r\n    IE:     !!(window.attachEvent && !window.opera),\r\n    Opera:  !!window.opera,\r\n    WebKit: navigator.userAgent.indexOf(\'AppleWebKit/\') > -1,\r\n    Gecko:  navigator.userAgent.indexOf(\'Gecko\') > -1 && navigator.userAgent.indexOf(\'KHTML\') == -1,\r\n    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)\r\n  },\r\n\r\n  BrowserFeatures: {\r\n    XPath: !!document.evaluate,\r\n    ElementExtensions: !!window.HTMLElement,\r\n    SpecificElementExtensions:\r\n      document.createElement(\'div\').__proto__ &&\r\n      document.createElement(\'div\').__proto__ !==\r\n        document.createElement(\'form\').__proto__\r\n  },\r\n\r\n  ScriptFragment: \'<script[^>]*>([\\\\S\\\\s]*?)<\\/script>\',\r\n  JSONFilter: /^\\/\\*-secure-([\\s\\S]*)\\*\\/\\s*$/,\r\n\r\n  emptyFunction: function() { },\r\n  K: function(x) { return x }\r\n};\r\n\r\nif (Prototype.Browser.MobileSafari)\r\n  Prototype.BrowserFeatures.SpecificElementExtensions = false;\r\n\r\nif (Prototype.Browser.WebKit)\r\n  Prototype.BrowserFeatures.XPath = false;\r\n\r\n/* Based on Alex Arnell\'s inheritance implementation. */\r\nvar Class = {\r\n  create: function() {\r\n    var parent = null, properties = $A(arguments);\r\n    if (Object.isFunction(properties[0]))\r\n      parent = properties.shift();\r\n\r\n    function klass() {\r\n      this.initialize.apply(this, arguments);\r\n    }\r\n\r\n    Object.extend(klass, Class.Methods);\r\n    klass.superclass = parent;\r\n    klass.subclasses = [];\r\n\r\n    if (parent) {\r\n      var subclass = function() { };\r\n      subclass.prototype = parent.prototype;\r\n      klass.prototype = new subclass;\r\n      parent.subclasses.push(klass);\r\n    }\r\n\r\n    for (var i = 0; i < properties.length; i++)\r\n      klass.addMethods(properties[i]);\r\n\r\n    if (!klass.prototype.initialize)\r\n      klass.prototype.initialize = Prototype.emptyFunction;\r\n\r\n    klass.prototype.constructor = klass;\r\n\r\n    return klass;\r\n  }\r\n};\r\n\r\nClass.Methods = {\r\n  addMethods: function(source) {\r\n    var ancestor   = this.superclass && this.superclass.prototype;\r\n    var properties = Object.keys(source);\r\n\r\n    if (!Object.keys({ toString: true }).length)\r\n      properties.push(\"toString\", \"valueOf\");\r\n\r\n    for (var i = 0, length = properties.length; i < length; i++) {\r\n      var property = properties[i], value = source[property];\r\n      if (ancestor && Object.isFunction(value) &&\r\n          value.argumentNames().first() == \"$super\") {\r\n        var method = value, value = Object.extend((function(m) {\r\n          return function() { return ancestor[m].apply(this, arguments) };\r\n        })(property).wrap(method), {\r\n          valueOf:  function() { return method },\r\n          toString: function() { return method.toString() }\r\n        });\r\n      }\r\n      this.prototype[property] = value;\r\n    }\r\n\r\n    return this;\r\n  }\r\n};\r\n\r\nvar Abstract = { };\r\n\r\nObject.extend = function(destination, source) {\r\n  for (var property in source)\r\n    destination[property] = source[property];\r\n  return destination;\r\n};\r\n\r\nObject.extend(Object, {\r\n  inspect: function(object) {\r\n    try {\r\n      if (object === undefined) return \'undefined\';\r\n      if (object === null) return \'null\';\r\n      return object.inspect ? object.inspect() : object.toString();\r\n    } catch (e) {\r\n      if (e instanceof RangeError) return \'...\';\r\n      throw e;\r\n    }\r\n  },\r\n\r\n  toJSON: function(object) {\r\n    var type = typeof object;\r\n    switch (type) {\r\n      case \'undefined\':\r\n      case \'function\':\r\n      case \'unknown\': return;\r\n      case \'boolean\': return object.toString();\r\n    }\r\n\r\n    if (object === null) return \'null\';\r\n    if (object.toJSON) return object.toJSON();\r\n    if (Object.isElement(object)) return;\r\n\r\n    var results = [];\r\n    for (var property in object) {\r\n      var value = Object.toJSON(object[property]);\r\n      if (value !== undefined)\r\n        results.push(property.toJSON() + \': \' + value);\r\n    }\r\n\r\n    return \'{\' + results.join(\', \') + \'}\';\r\n  },\r\n\r\n  toQueryString: function(object) {\r\n    return $H(object).toQueryString();\r\n  },\r\n\r\n  toHTML: function(object) {\r\n    return object && object.toHTML ? object.toHTML() : String.interpret(object);\r\n  },\r\n\r\n  keys: function(object) {\r\n    var keys = [];\r\n    for (var property in object)\r\n      keys.push(property);\r\n    return keys;\r\n  },\r\n\r\n  values: function(object) {\r\n    var values = [];\r\n    for (var property in object)\r\n      values.push(object[property]);\r\n    return values;\r\n  },\r\n\r\n  clone: function(object) {\r\n    return Object.extend({ }, object);\r\n  },\r\n\r\n  isElement: function(object) {\r\n    return object && object.nodeType == 1;\r\n  },\r\n\r\n  isArray: function(object) {\r\n    return object && object.constructor === Array;\r\n  },\r\n\r\n  isHash: function(object) {\r\n    return object instanceof Hash;\r\n  },\r\n\r\n  isFunction: function(object) {\r\n    return typeof object == \"function\";\r\n  },\r\n\r\n  isString: function(object) {\r\n    return typeof object == \"string\";\r\n  },\r\n\r\n  isNumber: function(object) {\r\n    return typeof object == \"number\";\r\n  },\r\n\r\n  isUndefined: function(object) {\r\n    return typeof object == \"undefined\";\r\n  }\r\n});\r\n\r\nObject.extend(Function.prototype, {\r\n  argumentNames: function() {\r\n    var names = this.toString().match(/^[\\s\\(]*function[^(]*\\((.*?)\\)/)[1].split(\",\").invoke(\"strip\");\r\n    return names.length == 1 && !names[0] ? [] : names;\r\n  },\r\n\r\n  bind: function() {\r\n    if (arguments.length < 2 && arguments[0] === undefined) return this;\r\n    var __method = this, args = $A(arguments), object = args.shift();\r\n    return function() {\r\n      return __method.apply(object, args.concat($A(arguments)));\r\n    }\r\n  },\r\n\r\n  bindAsEventListener: function() {\r\n    var __method = this, args = $A(arguments), object = args.shift();\r\n    return function(event) {\r\n      return __method.apply(object, [event || window.event].concat(args));\r\n    }\r\n  },\r\n\r\n  curry: function() {\r\n    if (!arguments.length) return this;\r\n    var __method = this, args = $A(arguments);\r\n    return function() {\r\n      return __method.apply(this, args.concat($A(arguments)));\r\n    }\r\n  },\r\n\r\n  delay: function() {\r\n    var __method = this, args = $A(arguments), timeout = args.shift() * 1000;\r\n    return window.setTimeout(function() {\r\n      return __method.apply(__method, args);\r\n    }, timeout);\r\n  },\r\n\r\n  wrap: function(wrapper) {\r\n    var __method = this;\r\n    return function() {\r\n      return wrapper.apply(this, [__method.bind(this)].concat($A(arguments)));\r\n    }\r\n  },\r\n\r\n  methodize: function() {\r\n    if (this._methodized) return this._methodized;\r\n    var __method = this;\r\n    return this._methodized = function() {\r\n      return __method.apply(null, [this].concat($A(arguments)));\r\n    };\r\n  }\r\n});\r\n\r\nFunction.prototype.defer = Function.prototype.delay.curry(0.01);\r\n\r\nDate.prototype.toJSON = function() {\r\n  return \'\"\' + this.getUTCFullYear() + \'-\' +\r\n    (this.getUTCMonth() + 1).toPaddedString(2) + \'-\' +\r\n    this.getUTCDate().toPaddedString(2) + \'T\' +\r\n    this.getUTCHours().toPaddedString(2) + \':\' +\r\n    this.getUTCMinutes().toPaddedString(2) + \':\' +\r\n    this.getUTCSeconds().toPaddedString(2) + \'Z\"\';\r\n};\r\n\r\nvar Try = {\r\n  these: function() {\r\n    var returnValue;\r\n\r\n    for (var i = 0, length = arguments.length; i < length; i++) {\r\n      var lambda = arguments[i];\r\n      try {\r\n        returnValue = lambda();\r\n        break;\r\n      } catch (e) { }\r\n    }\r\n\r\n    return returnValue;\r\n  }\r\n};\r\n\r\nRegExp.prototype.match = RegExp.prototype.test;\r\n\r\nRegExp.escape = function(str) {\r\n  return String(str).replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, \'\\\\$1\');\r\n};\r\n\r\n/*--------------------------------------------------------------------------*/\r\n\r\nvar PeriodicalExecuter = Class.create({\r\n  initialize: function(callback, frequency) {\r\n    this.callback = callback;\r\n    this.frequency = frequency;\r\n    this.currentlyExecuting = false;\r\n\r\n    this.registerCallback();\r\n  },\r\n\r\n  registerCallback: function() {\r\n    this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000);\r\n  },\r\n\r\n  execute: function() {\r\n    this.callback(this);\r\n  },\r\n\r\n  stop: function() {\r\n    if (!this.timer) return;\r\n    clearInterval(this.timer);\r\n    this.timer = null;\r\n  },\r\n\r\n  onTimerEvent: function() {\r\n    if (!this.currentlyExecuting) {\r\n      try {\r\n        this.currentlyExecuting = true;\r\n        this.execute();\r\n      } finally {\r\n        this.currentlyExecuting = false;\r\n      }\r\n    }\r\n  }\r\n});\r\nObject.extend(String, {\r\n  interpret: function(value) {\r\n    return value == null ? \'\' : String(value);\r\n  },\r\n  specialChar: {\r\n    \'\\b\': \'\\\\b\',\r\n    \'\\t\': \'\\\\t\',\r\n    \'\\n\': \'\\\\n\',\r\n    \'\\f\': \'\\\\f\',\r\n    \'\\r\': \'\\\\r\',\r\n    \'\\\\\': \'\\\\\\\\\'\r\n  }\r\n});\r\n\r\nObject.extend(String.prototype, {\r\n  gsub: function(pattern, replacement) {\r\n    var result = \'\', source = this, match;\r\n    replacement = arguments.callee.prepareReplacement(replacement);\r\n\r\n    while (source.length > 0) {\r\n      if (match = source.match(pattern)) {\r\n        result += source.slice(0, match.index);\r\n        result += String.interpret(replacement(match));\r\n        source  = source.slice(match.index + match[0].length);\r\n      } else {\r\n        result += source, source = \'\';\r\n      }\r\n    }\r\n    return result;\r\n  },\r\n\r\n  sub: function(pattern, replacement, count) {\r\n    replacement = this.gsub.prepareReplacement(replacement);\r\n    count = count === undefined ? 1 : count;\r\n\r\n    return this.gsub(pattern, function(match) {\r\n      if (--count < 0) return match[0];\r\n      return replacement(match);\r\n    });\r\n  },\r\n\r\n  scan: function(pattern, iterator) {\r\n    this.gsub(pattern, iterator);\r\n    return String(this);\r\n  },\r\n\r\n  truncate: function(length, truncation) {\r\n    length = length || 30;\r\n    truncation = truncation === undefined ? \'...\' : truncation;\r\n    return this.length > length ?\r\n      this.slice(0, length - truncation.length) + truncation : String(this);\r\n  },\r\n\r\n  strip: function() {\r\n    return this.replace(/^\\s+/, \'\').replace(/\\s+$/, \'\');\r\n  },\r\n\r\n  stripTags: function() {\r\n    return this.replace(/<\\/?[^>]+>/gi, \'\');\r\n  },\r\n\r\n  stripScripts: function() {\r\n    return this.replace(new RegExp(Prototype.ScriptFragment, \'img\'), \'\');\r\n  },\r\n\r\n  extractScripts: function() {\r\n    var matchAll = new RegExp(Prototype.ScriptFragment, \'img\');\r\n    var matchOne = new RegExp(Prototype.ScriptFragment, \'im\');\r\n    return (this.match(matchAll) || []).map(function(scriptTag) {\r\n      return (scriptTag.match(matchOne) || [\'\', \'\'])[1];\r\n    });\r\n  },\r\n\r\n  evalScripts: function() {\r\n    return this.extractScripts().map(function(script) { return eval(script) });\r\n  },\r\n\r\n  escapeHTML: function() {\r\n    var self = arguments.callee;\r\n    self.text.data = this;\r\n    return self.div.innerHTML;\r\n  },\r\n\r\n  unescapeHTML: function() {\r\n    var div = new Element(\'div\');\r\n    div.innerHTML = this.stripTags();\r\n    return div.childNodes[0] ? (div.childNodes.length > 1 ?\r\n      $A(div.childNodes).inject(\'\', function(memo, node) { return memo+node.nodeValue }) :\r\n      div.childNodes[0].nodeValue) : \'\';\r\n  },\r\n\r\n  toQueryParams: function(separator) {\r\n    var match = this.strip().match(/([^?#]*)(#.*)?$/);\r\n    if (!match) return { };\r\n\r\n    return match[1].split(separator || \'&\').inject({ }, function(hash, pair) {\r\n      if ((pair = pair.split(\'=\'))[0]) {\r\n        var key = decodeURIComponent(pair.shift());\r\n        var value = pair.length > 1 ? pair.join(\'=\') : pair[0];\r\n        if (value != undefined) value = decodeURIComponent(value);\r\n\r\n        if (key in hash) {\r\n          if (!Object.isArray(hash[key])) hash[key] = [hash[key]];\r\n          hash[key].push(value);\r\n        }\r\n        else hash[key] = value;\r\n      }\r\n      return hash;\r\n    });\r\n  },\r\n\r\n  toArray: function() {\r\n    return this.split(\'\');\r\n  },\r\n\r\n  succ: function() {\r\n    return this.slice(0, this.length - 1) +\r\n      String.fromCharCode(this.charCodeAt(this.length - 1) + 1);\r\n  },\r\n\r\n  times: function(count) {\r\n    return count < 1 ? \'\' : new Array(count + 1).join(this);\r\n  },\r\n\r\n  camelize: function() {\r\n    var parts = this.split(\'-\'), len = parts.length;\r\n    if (len == 1) return parts[0];\r\n\r\n    var camelized = this.charAt(0) == \'-\'\r\n      ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)\r\n      : parts[0];\r\n\r\n    for (var i = 1; i < len; i++)\r\n      camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);\r\n\r\n    return camelized;\r\n  },\r\n\r\n  capitalize: function() {\r\n    return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase();\r\n  },\r\n\r\n  underscore: function() {\r\n    return this.gsub(/::/, \'/\').gsub(/([A-Z]+)([A-Z][a-z])/,\'#{1}_#{2}\').gsub(/([a-z\\d])([A-Z])/,\'#{1}_#{2}\').gsub(/-/,\'_\').toLowerCase();\r\n  },\r\n\r\n  dasherize: function() {\r\n    return this.gsub(/_/,\'-\');\r\n  },\r\n\r\n  inspect: function(useDoubleQuotes) {\r\n    var escapedString = this.gsub(/[\\x00-\\x1f\\\\]/, function(match) {\r\n      var character = String.specialChar[match[0]];\r\n      return character ? character : \'\\\\u00\' + match[0].charCodeAt().toPaddedString(2, 16);\r\n    });\r\n    if (useDoubleQuotes) return \'\"\' + escapedString.replace(/\"/g, \'\\\\\"\') + \'\"\';\r\n    return \"\'\" + escapedString.replace(/\'/g, \'\\\\\\\'\') + \"\'\";\r\n  },\r\n\r\n  toJSON: function() {\r\n    return this.inspect(true);\r\n  },\r\n\r\n  unfilterJSON: function(filter) {\r\n    return this.sub(filter || Prototype.JSONFilter, \'#{1}\');\r\n  },\r\n\r\n  isJSON: function() {\r\n    var str = this.replace(/\\\\./g, \'@\').replace(/\"[^\"\\\\\\n\\r]*\"/g, \'\');\r\n    return (/^[,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]*$/).test(str);\r\n  },\r\n\r\n  evalJSON: function(sanitize) {\r\n    var json = this.unfilterJSON();\r\n    try {\r\n      if (!sanitize || json.isJSON()) return eval(\'(\' + json + \')\');\r\n    } catch (e) { }\r\n    throw new SyntaxError(\'Badly formed JSON string: \' + this.inspect());\r\n  },\r\n\r\n  include: function(pattern) {\r\n    return this.indexOf(pattern) > -1;\r\n  },\r\n\r\n  startsWith: function(pattern) {\r\n    return this.indexOf(pattern) === 0;\r\n  },\r\n\r\n  endsWith: function(pattern) {\r\n    var d = this.length - pattern.length;\r\n    return d >= 0 && this.lastIndexOf(pattern) === d;\r\n  },\r\n\r\n  empty: function() {\r\n    return this == \'\';\r\n  },\r\n\r\n  blank: function() {\r\n    return /^\\s*$/.test(this);\r\n  },\r\n\r\n  interpolate: function(object, pattern) {\r\n    return new Template(this, pattern).evaluate(object);\r\n  }\r\n});\r\n\r\nif (Prototype.Browser.WebKit || Prototype.Browser.IE) Object.extend(String.prototype, {\r\n  escapeHTML: function() {\r\n    return this.replace(/&/g,\'&amp;\').replace(/</g,\'&lt;\').replace(/>/g,\'&gt;\');\r\n  },\r\n  unescapeHTML: function() {\r\n    return this.replace(/&amp;/g,\'&\').replace(/&lt;/g,\'<\').replace(/&gt;/g,\'>\');\r\n  }\r\n});\r\n\r\nString.prototype.gsub.prepareReplacement = function(replacement) {\r\n  if (Object.isFunction(replacement)) return replacement;\r\n  var template = new Template(replacement);\r\n  return function(match) { return template.evaluate(match) };\r\n};\r\n\r\nString.prototype.parseQuery = String.prototype.toQueryParams;\r\n\r\nObject.extend(String.prototype.escapeHTML, {\r\n  div:  document.createElement(\'div\'),\r\n  text: document.createTextNode(\'\')\r\n});\r\n\r\nwith (String.prototype.escapeHTML) div.appendChild(text);\r\n\r\nvar Template = Class.create({\r\n  initialize: function(template, pattern) {\r\n    this.template = template.toString();\r\n    this.pattern = pattern || Template.Pattern;\r\n  },\r\n\r\n  evaluate: function(object) {\r\n    if (Object.isFunction(object.toTemplateReplacements))\r\n      object = object.toTemplateReplacements();\r\n\r\n    return this.template.gsub(this.pattern, function(match) {\r\n      if (object == null) return \'\';\r\n\r\n      var before = match[1] || \'\';\r\n      if (before == \'\\\\\') return match[2];\r\n\r\n      var ctx = object, expr = match[3];\r\n      var pattern = /^([^.[]+|\\[((?:.*?[^\\\\])?)\\])(\\.|\\[|$)/, match = pattern.exec(expr);\r\n      if (match == null) return before;\r\n\r\n      while (match != null) {\r\n        var comp = match[1].startsWith(\'[\') ? match[2].gsub(\'\\\\\\\\]\', \']\') : match[1];\r\n        ctx = ctx[comp];\r\n        if (null == ctx || \'\' == match[3]) break;\r\n        expr = expr.substring(\'[\' == match[3] ? match[1].length : match[0].length);\r\n        match = pattern.exec(expr);\r\n      }\r\n\r\n      return before + String.interpret(ctx);\r\n    }.bind(this));\r\n  }\r\n});\r\nTemplate.Pattern = /(^|.|\\r|\\n)(#\\{(.*?)\\})/;\r\n\r\nvar $break = { };\r\n\r\nvar Enumerable = {\r\n  each: function(iterator, context) {\r\n    var index = 0;\r\n    iterator = iterator.bind(context);\r\n    try {\r\n      this._each(function(value) {\r\n        iterator(value, index++);\r\n      });\r\n    } catch (e) {\r\n      if (e != $break) throw e;\r\n    }\r\n    return this;\r\n  },\r\n\r\n  eachSlice: function(number, iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var index = -number, slices = [], array = this.toArray();\r\n    while ((index += number) < array.length)\r\n      slices.push(array.slice(index, index+number));\r\n    return slices.collect(iterator, context);\r\n  },\r\n\r\n  all: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var result = true;\r\n    this.each(function(value, index) {\r\n      result = result && !!iterator(value, index);\r\n      if (!result) throw $break;\r\n    });\r\n    return result;\r\n  },\r\n\r\n  any: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var result = false;\r\n    this.each(function(value, index) {\r\n      if (result = !!iterator(value, index))\r\n        throw $break;\r\n    });\r\n    return result;\r\n  },\r\n\r\n  collect: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var results = [];\r\n    this.each(function(value, index) {\r\n      results.push(iterator(value, index));\r\n    });\r\n    return results;\r\n  },\r\n\r\n  detect: function(iterator, context) {\r\n    iterator = iterator.bind(context);\r\n    var result;\r\n    this.each(function(value, index) {\r\n      if (iterator(value, index)) {\r\n        result = value;\r\n        throw $break;\r\n      }\r\n    });\r\n    return result;\r\n  },\r\n\r\n  findAll: function(iterator, context) {\r\n    iterator = iterator.bind(context);\r\n    var results = [];\r\n    this.each(function(value, index) {\r\n      if (iterator(value, index))\r\n        results.push(value);\r\n    });\r\n    return results;\r\n  },\r\n\r\n  grep: function(filter, iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var results = [];\r\n\r\n    if (Object.isString(filter))\r\n      filter = new RegExp(filter);\r\n\r\n    this.each(function(value, index) {\r\n      if (filter.match(value))\r\n        results.push(iterator(value, index));\r\n    });\r\n    return results;\r\n  },\r\n\r\n  include: function(object) {\r\n    if (Object.isFunction(this.indexOf))\r\n      if (this.indexOf(object) != -1) return true;\r\n\r\n    var found = false;\r\n    this.each(function(value) {\r\n      if (value == object) {\r\n        found = true;\r\n        throw $break;\r\n      }\r\n    });\r\n    return found;\r\n  },\r\n\r\n  inGroupsOf: function(number, fillWith) {\r\n    fillWith = fillWith === undefined ? null : fillWith;\r\n    return this.eachSlice(number, function(slice) {\r\n      while(slice.length < number) slice.push(fillWith);\r\n      return slice;\r\n    });\r\n  },\r\n\r\n  inject: function(memo, iterator, context) {\r\n    iterator = iterator.bind(context);\r\n    this.each(function(value, index) {\r\n      memo = iterator(memo, value, index);\r\n    });\r\n    return memo;\r\n  },\r\n\r\n  invoke: function(method) {\r\n    var args = $A(arguments).slice(1);\r\n    return this.map(function(value) {\r\n      return value[method].apply(value, args);\r\n    });\r\n  },\r\n\r\n  max: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var result;\r\n    this.each(function(value, index) {\r\n      value = iterator(value, index);\r\n      if (result == undefined || value >= result)\r\n        result = value;\r\n    });\r\n    return result;\r\n  },\r\n\r\n  min: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var result;\r\n    this.each(function(value, index) {\r\n      value = iterator(value, index);\r\n      if (result == undefined || value < result)\r\n        result = value;\r\n    });\r\n    return result;\r\n  },\r\n\r\n  partition: function(iterator, context) {\r\n    iterator = iterator ? iterator.bind(context) : Prototype.K;\r\n    var trues = [], falses = [];\r\n    this.each(function(value, index) {\r\n      (iterator(value, index) ?\r\n        trues : falses).push(value);\r\n    });\r\n    return [trues, falses];\r\n  },\r\n\r\n  pluck: function(property) {\r\n    var results = [];\r\n    this.each(function(value) {\r\n      results.push(value[property]);\r\n    });\r\n    return results;\r\n  },\r\n\r\n  reject: function(iterator, context) {\r\n    iterator = iterator.bind(context);\r\n    var results = [];\r\n    this.each(function(value, index) {\r\n      if (!iterator(value, index))\r\n        results.push(value);\r\n    });\r\n    return results;\r\n  },\r\n\r\n  sortBy: function(iterator, context) {\r\n    iterator = iterator.bind(context);\r\n    return this.map(function(value, index) {\r\n      return {value: value, criteria: iterator(value, index)};\r\n    }).sort(function(left, right) {\r\n      var a = left.criteria, b = right.criteria;\r\n      return a < b ? -1 : a > b ? 1 : 0;\r\n    }).pluck(\'value\');\r\n  },\r\n\r\n  toArray: function() {\r\n    return this.map();\r\n  },\r\n\r\n  zip: function() {\r\n    var iterator = Prototype.K, args = $A(arguments);\r\n    if (Object.isFunction(args.last()))\r\n      iterator = args.pop();\r\n\r\n    var collections = [this].concat(args).map($A);\r\n    return this.map(function(value, index) {\r\n      return iterator(collections.pluck(index));\r\n    });\r\n  },\r\n\r\n  size: function() {\r\n    return this.toArray().length;\r\n  },\r\n\r\n  inspect: function() {\r\n    return \'#<Enumerable:\' + this.toArray().inspect() + \'>\';\r\n  }\r\n};\r\n\r\nObject.extend(Enumerable, {\r\n  map:     Enumerable.collect,\r\n  find:    Enumerable.detect,\r\n  select:  Enumerable.findAll,\r\n  filter:  Enumerable.findAll,\r\n  member:  Enumerable.include,\r\n  entries: Enumerable.toArray,\r\n  every:   Enumerable.all,\r\n  some:    Enumerable.any\r\n});\r\nfunction $A(iterable) {\r\n  if (!iterable) return [];\r\n  if (iterable.toArray) return iterable.toArray();\r\n  var length = iterable.length, results = new Array(length);\r\n  while (length--) results[length] = iterable[length];\r\n  return results;\r\n}\r\n\r\nif (Prototype.Browser.WebKit) {\r\n  function $A(iterable) {\r\n    if (!iterable) return [];\r\n    if (!(Object.isFunction(iterable) && iterable == \'[object NodeList]\') &&\r\n        iterable.toArray) return iterable.toArray();\r\n    var length = iterable.length, results = new Array(length);\r\n    while (length--) results[length] = iterable[length];\r\n    return results;\r\n  }\r\n}\r\n\r\nArray.from = $A;\r\n\r\nObject.extend(Array.prototype, Enumerable);\r\n\r\nif (!Array.prototype._reverse) Array.prototype._reverse = Array.prototype.reverse;\r\n\r\nObject.extend(Array.prototype, {\r\n  _each: function(iterator) {\r\n    for (var i = 0, length = this.length; i < length; i++)\r\n      iterator(this[i]);\r\n  },\r\n\r\n  clear: function() {\r\n    this.length = 0;\r\n    return this;\r\n  },\r\n\r\n  first: function() {\r\n    return this[0];\r\n  },\r\n\r\n  last: function() {\r\n    return this[this.length - 1];\r\n  },\r\n\r\n  compact: function() {\r\n    return this.select(function(value) {\r\n      return value != null;\r\n    });\r\n  },\r\n\r\n  flatten: function() {\r\n    return this.inject([], function(array, value) {\r\n      return array.concat(Object.isArray(value) ?\r\n        value.flatten() : [value]);\r\n    });\r\n  },\r\n\r\n  without: function() {\r\n    var values = $A(arguments);\r\n    return this.select(function(value) {\r\n      return !values.include(value);\r\n    });\r\n  },\r\n\r\n  reverse: function(inline) {\r\n    return (inline !== false ? this : this.toArray())._reverse();\r\n  },\r\n\r\n  reduce: function() {\r\n    return this.length > 1 ? this : this[0];\r\n  },\r\n\r\n  uniq: function(sorted) {\r\n    return this.inject([], function(array, value, index) {\r\n      if (0 == index || (sorted ? array.last() != value : !array.include(value)))\r\n        array.push(value);\r\n      return array;\r\n    });\r\n  },\r\n\r\n  intersect: function(array) {\r\n    return this.uniq().findAll(function(item) {\r\n      return array.detect(function(value) { return item === value });\r\n    });\r\n  },\r\n\r\n  clone: function() {\r\n    return [].concat(this);\r\n  },\r\n\r\n  size: function() {\r\n    return this.length;\r\n  },\r\n\r\n  inspect: function() {\r\n    return \'[\' + this.map(Object.inspect).join(\', \') + \']\';\r\n  },\r\n\r\n  toJSON: function() {\r\n    var results = [];\r\n    this.each(function(object) {\r\n      var value = Object.toJSON(object);\r\n      if (value !== undefined) results.push(value);\r\n    });\r\n    return \'[\' + results.join(\', \') + \']\';\r\n  }\r\n});\r\n\r\n// use native browser JS 1.6 implementation if available\r\nif (Object.isFunction(Array.prototype.forEach))\r\n  Array.prototype._each = Array.prototype.forEach;\r\n\r\nif (!Array.prototype.indexOf) Array.prototype.indexOf = function(item, i) {\r\n  i || (i = 0);\r\n  var length = this.length;\r\n  if (i < 0) i = length + i;\r\n  for (; i < length; i++)\r\n    if (this[i] === item) return i;\r\n  return -1;\r\n};\r\n\r\nif (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf = function(item, i) {\r\n  i = isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1;\r\n  var n = this.slice(0, i).reverse().indexOf(item);\r\n  return (n < 0) ? n : i - n - 1;\r\n};\r\n\r\nArray.prototype.toArray = Array.prototype.clone;\r\n\r\nfunction $w(string) {\r\n  if (!Object.isString(string)) return [];\r\n  string = string.strip();\r\n  return string ? string.split(/\\s+/) : [];\r\n}\r\n\r\nif (Prototype.Browser.Opera){\r\n  Array.prototype.concat = function() {\r\n    var array = [];\r\n    for (var i = 0, length = this.length; i < length; i++) array.push(this[i]);\r\n    for (var i = 0, length = arguments.length; i < length; i++) {\r\n      if (Object.isArray(arguments[i])) {\r\n        for (var j = 0, arrayLength = arguments[i].length; j < arrayLength; j++)\r\n          array.push(arguments[i][j]);\r\n      } else {\r\n        array.push(arguments[i]);\r\n      }\r\n    }\r\n    return array;\r\n  };\r\n}\r\nObject.extend(Number.prototype, {\r\n  toColorPart: function() {\r\n    return this.toPaddedString(2, 16);\r\n  },\r\n\r\n  succ: function() {\r\n    return this + 1;\r\n  },\r\n\r\n  times: function(iterator) {\r\n    $R(0, this, true).each(iterator);\r\n    return this;\r\n  },\r\n\r\n  toPaddedString: function(length, radix) {\r\n    var string = this.toString(radix || 10);\r\n    return \'0\'.times(length - string.length) + string;\r\n  },\r\n\r\n  toJSON: function() {\r\n    return isFinite(this) ? this.toString() : \'null\';\r\n  }\r\n});\r\n\r\n$w(\'abs round ceil floor\').each(function(method){\r\n  Number.prototype[method] = Math[method].methodize();\r\n});\r\nfunction $H(object) {\r\n  return new Hash(object);\r\n};\r\n\r\nvar Hash = Class.create(Enumerable, (function() {\r\n  if (function() {\r\n    var i = 0, Test = function(value) { this.key = value };\r\n    Test.prototype.key = \'foo\';\r\n    for (var property in new Test(\'bar\')) i++;\r\n    return i > 1;\r\n  }()) {\r\n    function each(iterator) {\r\n      var cache = [];\r\n      for (var key in this._object) {\r\n        var value = this._object[key];\r\n        if (cache.include(key)) continue;\r\n        cache.push(key);\r\n        var pair = [key, value];\r\n        pair.key = key;\r\n        pair.value = value;\r\n        iterator(pair);\r\n      }\r\n    }\r\n  } else {\r\n    function each(iterator) {\r\n      for (var key in this._object) {\r\n        var value = this._object[key], pair = [key, value];\r\n        pair.key = key;\r\n        pair.value = value;\r\n        iterator(pair);\r\n      }\r\n    }\r\n  }\r\n\r\n  function toQueryPair(key, value) {\r\n    if (Object.isUndefined(value)) return key;\r\n    return key + \'=\' + encodeURIComponent(String.interpret(value));\r\n  }\r\n\r\n  return {\r\n    initialize: function(object) {\r\n      this._object = Object.isHash(object) ? object.toObject() : Object.clone(object);\r\n    },\r\n\r\n    _each: each,\r\n\r\n    set: function(key, value) {\r\n      return this._object[key] = value;\r\n    },\r\n\r\n    get: function(key) {\r\n      return this._object[key];\r\n    },\r\n\r\n    unset: function(key) {\r\n      var value = this._object[key];\r\n      delete this._object[key];\r\n      return value;\r\n    },\r\n\r\n    toObject: function() {\r\n      return Object.clone(this._object);\r\n    },\r\n\r\n    keys: function() {\r\n      return this.pluck(\'key\');\r\n    },\r\n\r\n    values: function() {\r\n      return this.pluck(\'value\');\r\n    },\r\n\r\n    index: function(value) {\r\n      var match = this.detect(function(pair) {\r\n        return pair.value === value;\r\n      });\r\n      return match && match.key;\r\n    },\r\n\r\n    merge: function(object) {\r\n      return this.clone().update(object);\r\n    },\r\n\r\n    update: function(object) {\r\n      return new Hash(object).inject(this, function(result, pair) {\r\n        result.set(pair.key, pair.value);\r\n        return result;\r\n      });\r\n    },\r\n\r\n    toQueryString: function() {\r\n      return this.map(function(pair) {\r\n        var key = encodeURIComponent(pair.key), values = pair.value;\r\n\r\n        if (values && typeof values == \'object\') {\r\n          if (Object.isArray(values))\r\n            return values.map(toQueryPair.curry(key)).join(\'&\');\r\n        }\r\n        return toQueryPair(key, values);\r\n      }).join(\'&\');\r\n    },\r\n\r\n    inspect: function() {\r\n      return \'#<Hash:{\' + this.map(function(pair) {\r\n        return pair.map(Object.inspect).join(\': \');\r\n      }).join(\', \') + \'}>\';\r\n    },\r\n\r\n    toJSON: function() {\r\n      return Object.toJSON(this.toObject());\r\n    },\r\n\r\n    clone: function() {\r\n      return new Hash(this);\r\n    }\r\n  }\r\n})());\r\n\r\nHash.prototype.toTemplateReplacements = Hash.prototype.toObject;\r\nHash.from = $H;\r\nvar ObjectRange = Class.create(Enumerable, {\r\n  initialize: function(start, end, exclusive) {\r\n    this.start = start;\r\n    this.end = end;\r\n    this.exclusive = exclusive;\r\n  },\r\n\r\n  _each: function(iterator) {\r\n    var value = this.start;\r\n    while (this.include(value)) {\r\n      iterator(value);\r\n      value = value.succ();\r\n    }\r\n  },\r\n\r\n  include: function(value) {\r\n    if (value < this.start)\r\n      return false;\r\n    if (this.exclusive)\r\n      return value < this.end;\r\n    return value <= this.end;\r\n  }\r\n});\r\n\r\nvar $R = function(start, end, exclusive) {\r\n  return new ObjectRange(start, end, exclusive);\r\n};\r\n\r\nvar Ajax = {\r\n  getTransport: function() {\r\n    return Try.these(\r\n      function() {return new XMLHttpRequest()},\r\n      function() {return new ActiveXObject(\'Msxml2.XMLHTTP\')},\r\n      function() {return new ActiveXObject(\'Microsoft.XMLHTTP\')}\r\n    ) || false;\r\n  },\r\n\r\n  activeRequestCount: 0\r\n};\r\n\r\nAjax.Responders = {\r\n  responders: [],\r\n\r\n  _each: function(iterator) {\r\n    this.responders._each(iterator);\r\n  },\r\n\r\n  register: function(responder) {\r\n    if (!this.include(responder))\r\n      this.responders.push(responder);\r\n  },\r\n\r\n  unregister: function(responder) {\r\n    this.responders = this.responders.without(responder);\r\n  },\r\n\r\n  dispatch: function(callback, request, transport, json) {\r\n    this.each(function(responder) {\r\n      if (Object.isFunction(responder[callback])) {\r\n        try {\r\n          responder[callback].apply(responder, [request, transport, json]);\r\n        } catch (e) { }\r\n      }\r\n    });\r\n  }\r\n};\r\n\r\nObject.extend(Ajax.Responders, Enumerable);\r\n\r\nAjax.Responders.register({\r\n  onCreate:   function() { Ajax.activeRequestCount++ },\r\n  onComplete: function() { Ajax.activeRequestCount-- }\r\n});\r\n\r\nAjax.Base = Class.create({\r\n  initialize: function(options) {\r\n    this.options = {\r\n      method:       \'post\',\r\n      asynchronous: true,\r\n      contentType:  \'application/x-www-form-urlencoded\',\r\n      encoding:     \'UTF-8\',\r\n      parameters:   \'\',\r\n      evalJSON:     true,\r\n      evalJS:       true\r\n    };\r\n    Object.extend(this.options, options || { });\r\n\r\n    this.options.method = this.options.method.toLowerCase();\r\n    if (Object.isString(this.options.parameters))\r\n      this.options.parameters = this.options.parameters.toQueryParams();\r\n  }\r\n});\r\n\r\nAjax.Request = Class.create(Ajax.Base, {\r\n  _complete: false,\r\n\r\n  initialize: function($super, url, options) {\r\n    $super(options);\r\n    this.transport = Ajax.getTransport();\r\n    this.request(url);\r\n  },\r\n\r\n  request: function(url) {\r\n    this.url = url;\r\n    this.method = this.options.method;\r\n    var params = Object.clone(this.options.parameters);\r\n\r\n    if (![\'get\', \'post\'].include(this.method)) {\r\n      // simulate other verbs over post\r\n      params[\'_method\'] = this.method;\r\n      this.method = \'post\';\r\n    }\r\n\r\n    this.parameters = params;\r\n\r\n    if (params = Object.toQueryString(params)) {\r\n      // when GET, append parameters to URL\r\n      if (this.method == \'get\')\r\n        this.url += (this.url.include(\'?\') ? \'&\' : \'?\') + params;\r\n      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))\r\n        params += \'&_=\';\r\n    }\r\n\r\n    try {\r\n      var response = new Ajax.Response(this);\r\n      if (this.options.onCreate) this.options.onCreate(response);\r\n      Ajax.Responders.dispatch(\'onCreate\', this, response);\r\n\r\n      this.transport.open(this.method.toUpperCase(), this.url,\r\n        this.options.asynchronous);\r\n\r\n      if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);\r\n\r\n      this.transport.onreadystatechange = this.onStateChange.bind(this);\r\n      this.setRequestHeaders();\r\n\r\n      this.body = this.method == \'post\' ? (this.options.postBody || params) : null;\r\n      this.transport.send(this.body);\r\n\r\n      /* Force Firefox to handle ready state 4 for synchronous requests */\r\n      if (!this.options.asynchronous && this.transport.overrideMimeType)\r\n        this.onStateChange();\r\n\r\n    }\r\n    catch (e) {\r\n      this.dispatchException(e);\r\n    }\r\n  },\r\n\r\n  onStateChange: function() {\r\n    var readyState = this.transport.readyState;\r\n    if (readyState > 1 && !((readyState == 4) && this._complete))\r\n      this.respondToReadyState(this.transport.readyState);\r\n  },\r\n\r\n  setRequestHeaders: function() {\r\n    var headers = {\r\n      \'X-Requested-With\': \'XMLHttpRequest\',\r\n      \'X-Prototype-Version\': Prototype.Version,\r\n      \'Accept\': \'text/javascript, text/html, application/xml, text/xml, */*\'\r\n    };\r\n\r\n    if (this.method == \'post\') {\r\n      headers[\'Content-type\'] = this.options.contentType +\r\n        (this.options.encoding ? \'; charset=\' + this.options.encoding : \'\');\r\n\r\n      /* Force \"Connection: close\" for older Mozilla browsers to work\r\n       * around a bug where XMLHttpRequest sends an incorrect\r\n       * Content-length header. See Mozilla Bugzilla #246651.\r\n       */\r\n      if (this.transport.overrideMimeType &&\r\n          (navigator.userAgent.match(/Gecko\\/(\\d{4})/) || [0,2005])[1] < 2005)\r\n            headers[\'Connection\'] = \'close\';\r\n    }\r\n\r\n    // user-defined headers\r\n    if (typeof this.options.requestHeaders == \'object\') {\r\n      var extras = this.options.requestHeaders;\r\n\r\n      if (Object.isFunction(extras.push))\r\n        for (var i = 0, length = extras.length; i < length; i += 2)\r\n          headers[extras[i]] = extras[i+1];\r\n      else\r\n        $H(extras).each(function(pair) { headers[pair.key] = pair.value });\r\n    }\r\n\r\n    for (var name in headers)\r\n      this.transport.setRequestHeader(name, headers[name]);\r\n  },\r\n\r\n  success: function() {\r\n    var status = this.getStatus();\r\n    return !status || (status >= 200 && status < 300);\r\n  },\r\n\r\n  getStatus: function() {\r\n    try {\r\n      return this.transport.status || 0;\r\n    } catch (e) { return 0 }\r\n  },\r\n\r\n  respondToReadyState: function(readyState) {\r\n    var state = Ajax.Request.Events[readyState], response = new Ajax.Response(this);\r\n\r\n    if (state == \'Complete\') {\r\n      try {\r\n        this._complete = true;\r\n        (this.options[\'on\' + response.status]\r\n         || this.options[\'on\' + (this.success() ? \'Success\' : \'Failure\')]\r\n         || Prototype.emptyFunction)(response, response.headerJSON);\r\n      } catch (e) {\r\n        this.dispatchException(e);\r\n      }\r\n\r\n      var contentType = response.getHeader(\'Content-type\');\r\n      if (this.options.evalJS == \'force\'\r\n          || (this.options.evalJS && contentType\r\n          && contentType.match(/^\\s*(text|application)\\/(x-)?(java|ecma)script(;.*)?\\s*$/i)))\r\n        this.evalResponse();\r\n    }\r\n\r\n    try {\r\n      (this.options[\'on\' + state] || Prototype.emptyFunction)(response, response.headerJSON);\r\n      Ajax.Responders.dispatch(\'on\' + state, this, response, response.headerJSON);\r\n    } catch (e) {\r\n      this.dispatchException(e);\r\n    }\r\n\r\n    if (state == \'Complete\') {\r\n      // avoid memory leak in MSIE: clean up\r\n      this.transport.onreadystatechange = Prototype.emptyFunction;\r\n    }\r\n  },\r\n\r\n  getHeader: function(name) {\r\n    try {\r\n      return this.transport.getResponseHeader(name);\r\n    } catch (e) { return null }\r\n  },\r\n\r\n  evalResponse: function() {\r\n    try {\r\n      return eval((this.transport.responseText || \'\').unfilterJSON());\r\n    } catch (e) {\r\n      this.dispatchException(e);\r\n    }\r\n  },\r\n\r\n  dispatchException: function(exception) {\r\n    (this.options.onException || Prototype.emptyFunction)(this, exception);\r\n    Ajax.Responders.dispatch(\'onException\', this, exception);\r\n  }\r\n});\r\n\r\nAjax.Request.Events =\r\n  [\'Uninitialized\', \'Loading\', \'Loaded\', \'Interactive\', \'Complete\'];\r\n\r\nAjax.Response = Class.create({\r\n  initialize: function(request){\r\n    this.request = request;\r\n    var transport  = this.transport  = request.transport,\r\n        readyState = this.readyState = transport.readyState;\r\n\r\n    if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {\r\n      this.status       = this.getStatus();\r\n      this.statusText   = this.getStatusText();\r\n      this.responseText = String.interpret(transport.responseText);\r\n      this.headerJSON   = this._getHeaderJSON();\r\n    }\r\n\r\n    if(readyState == 4) {\r\n      var xml = transport.responseXML;\r\n      this.responseXML  = xml === undefined ? null : xml;\r\n      this.responseJSON = this._getResponseJSON();\r\n    }\r\n  },\r\n\r\n  status:      0,\r\n  statusText: \'\',\r\n\r\n  getStatus: Ajax.Request.prototype.getStatus,\r\n\r\n  getStatusText: function() {\r\n    try {\r\n      return this.transport.statusText || \'\';\r\n    } catch (e) { return \'\' }\r\n  },\r\n\r\n  getHeader: Ajax.Request.prototype.getHeader,\r\n\r\n  getAllHeaders: function() {\r\n    try {\r\n      return this.getAllResponseHeaders();\r\n    } catch (e) { return null }\r\n  },\r\n\r\n  getResponseHeader: function(name) {\r\n    return this.transport.getResponseHeader(name);\r\n  },\r\n\r\n  getAllResponseHeaders: function() {\r\n    return this.transport.getAllResponseHeaders();\r\n  },\r\n\r\n  _getHeaderJSON: function() {\r\n    var json = this.getHeader(\'X-JSON\');\r\n    if (!json) return null;\r\n    json = decodeURIComponent(escape(json));\r\n    try {\r\n      return json.evalJSON(this.request.options.sanitizeJSON);\r\n    } catch (e) {\r\n      this.request.dispatchException(e);\r\n    }\r\n  },\r\n\r\n  _getResponseJSON: function() {\r\n    var options = this.request.options;\r\n    if (!options.evalJSON || (options.evalJSON != \'force\' &&\r\n      !(this.getHeader(\'Content-type\') || \'\').include(\'application/json\')))\r\n        return null;\r\n    try {\r\n      return this.transport.responseText.evalJSON(options.sanitizeJSON);\r\n    } catch (e) {\r\n      this.request.dispatchException(e);\r\n    }\r\n  }\r\n});\r\n\r\nAjax.Updater = Class.create(Ajax.Request, {\r\n  initialize: function($super, container, url, options) {\r\n    this.container = {\r\n      success: (container.success || container),\r\n      failure: (container.failure || (container.success ? null : container))\r\n    };\r\n\r\n    options = options || { };\r\n    var onComplete = options.onComplete;\r\n    options.onComplete = (function(response, param) {\r\n      this.updateContent(response.responseText);\r\n      if (Object.isFunction(onComplete)) onComplete(response, param);\r\n    }).bind(this);\r\n\r\n    $super(url, options);\r\n  },\r\n\r\n  updateContent: function(responseText) {\r\n    var receiver = this.container[this.success() ? \'success\' : \'failure\'],\r\n        options = this.options;\r\n\r\n    if (!options.evalScripts) responseText = responseText.stripScripts();\r\n\r\n    if (receiver = $(receiver)) {\r\n      if (options.insertion) {\r\n        if (Object.isString(options.insertion)) {\r\n          var insertion = { }; insertion[options.insertion] = responseText;\r\n          receiver.insert(insertion);\r\n        }\r\n        else options.insertion(receiver, responseText);\r\n      }\r\n      else receiver.update(responseText);\r\n    }\r\n\r\n    if (this.success()) {\r\n      if (this.onComplete) this.onComplete.bind(this).defer();\r\n    }\r\n  }\r\n});\r\n\r\nAjax.PeriodicalUpdater = Class.create(Ajax.Base, {\r\n  initialize: function($super, container, url, options) {\r\n    $super(options);\r\n    this.onComplete = this.options.onComplete;\r\n\r\n    this.frequency = (this.options.frequency || 2);\r\n    this.decay = (this.options.decay || 1);\r\n\r\n    this.updater = { };\r\n    this.container = container;\r\n    this.url = url;\r\n\r\n    this.start();\r\n  },\r\n\r\n  start: function() {\r\n    this.options.onComplete = this.updateComplete.bind(this);\r\n    this.onTimerEvent();\r\n  },\r\n\r\n  stop: function() {\r\n    this.updater.options.onComplete = undefined;\r\n    clearTimeout(this.timer);\r\n    (this.onComplete || Prototype.emptyFunction).apply(this, arguments);\r\n  },\r\n\r\n  updateComplete: function(response) {\r\n    if (this.options.decay) {\r\n      this.decay = (response.responseText == this.lastText ?\r\n        this.decay * this.options.decay : 1);\r\n\r\n      this.lastText = response.responseText;\r\n    }\r\n    this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency);\r\n  },\r\n\r\n  onTimerEvent: function() {\r\n    this.updater = new Ajax.Updater(this.container, this.url, this.options);\r\n  }\r\n});\r\nfunction $(element) {\r\n  if (arguments.length > 1) {\r\n    for (var i = 0, elements = [], length = arguments.length; i < length; i++)\r\n      elements.push($(arguments[i]));\r\n    return elements;\r\n  }\r\n  if (Object.isString(element))\r\n    element = document.getElementById(element);\r\n  return Element.extend(element);\r\n}\r\n\r\nif (Prototype.BrowserFeatures.XPath) {\r\n  document._getElementsByXPath = function(expression, parentElement) {\r\n    var results = [];\r\n    var query = document.evaluate(expression, $(parentElement) || document,\r\n      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);\r\n    for (var i = 0, length = query.snapshotLength; i < length; i++)\r\n      results.push(Element.extend(query.snapshotItem(i)));\r\n    return results;\r\n  };\r\n}\r\n\r\n/*--------------------------------------------------------------------------*/\r\n\r\nif (!window.Node) var Node = { };\r\n\r\nif (!Node.ELEMENT_NODE) {\r\n  // DOM level 2 ECMAScript Language Binding\r\n  Object.extend(Node, {\r\n    ELEMENT_NODE: 1,\r\n    ATTRIBUTE_NODE: 2,\r\n    TEXT_NODE: 3,\r\n    CDATA_SECTION_NODE: 4,\r\n    ENTITY_REFERENCE_NODE: 5,\r\n    ENTITY_NODE: 6,\r\n    PROCESSING_INSTRUCTION_NODE: 7,\r\n    COMMENT_NODE: 8,\r\n    DOCUMENT_NODE: 9,\r\n    DOCUMENT_TYPE_NODE: 10,\r\n    DOCUMENT_FRAGMENT_NODE: 11,\r\n    NOTATION_NODE: 12\r\n  });\r\n}\r\n\r\n(function() {\r\n  var element = this.Element;\r\n  this.Element = function(tagName, attributes) {\r\n    attributes = attributes || { };\r\n    tagName = tagName.toLowerCase();\r\n    var cache = Element.cache;\r\n    if (Prototype.Browser.IE && attributes.name) {\r\n      tagName = \'<\' + tagName + \' name=\"\' + attributes.name + \'\">\';\r\n      delete attributes.name;\r\n      return Element.writeAttribute(document.createElement(tagName), attributes);\r\n    }\r\n    if (!cache[tagName]) cache[tagName] = Element.extend(document.createElement(tagName));\r\n    return Element.writeAttribute(cache[tagName].cloneNode(false), attributes);\r\n  };\r\n  Object.extend(this.Element, element || { });\r\n}).call(window);\r\n\r\nElement.cache = { };\r\n\r\nElement.Methods = {\r\n  visible: function(element) {\r\n    return $(element).style.display != \'none\';\r\n  },\r\n\r\n  toggle: function(element) {\r\n    element = $(element);\r\n    Element[Element.visible(element) ? \'hide\' : \'show\'](element);\r\n    return element;\r\n  },\r\n\r\n  hide: function(element) {\r\n    $(element).style.display = \'none\';\r\n    return element;\r\n  },\r\n\r\n  show: function(element) {\r\n    $(element).style.display = \'\';\r\n    return element;\r\n  },\r\n\r\n  remove: function(element) {\r\n    element = $(element);\r\n    element.parentNode.removeChild(element);\r\n    return element;\r\n  },\r\n\r\n  update: function(element, content) {\r\n    element = $(element);\r\n    if (content && content.toElement) content = content.toElement();\r\n    if (Object.isElement(content)) return element.update().insert(content);\r\n    content = Object.toHTML(content);\r\n    element.innerHTML = content.stripScripts();\r\n    content.evalScripts.bind(content).defer();\r\n    return element;\r\n  },\r\n\r\n  replace: function(element, content) {\r\n    element = $(element);\r\n    if (content && content.toElement) content = content.toElement();\r\n    else if (!Object.isElement(content)) {\r\n      content = Object.toHTML(content);\r\n      var range = element.ownerDocument.createRange();\r\n      range.selectNode(element);\r\n      content.evalScripts.bind(content).defer();\r\n      content = range.createContextualFragment(content.stripScripts());\r\n    }\r\n    element.parentNode.replaceChild(content, element);\r\n    return element;\r\n  },\r\n\r\n  insert: function(element, insertions) {\r\n    element = $(element);\r\n\r\n    if (Object.isString(insertions) || Object.isNumber(insertions) ||\r\n        Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))\r\n          insertions = {bottom:insertions};\r\n\r\n    var content, t, range;\r\n\r\n    for (position in insertions) {\r\n      content  = insertions[position];\r\n      position = position.toLowerCase();\r\n      t = Element._insertionTranslations[position];\r\n\r\n      if (content && content.toElement) content = content.toElement();\r\n      if (Object.isElement(content)) {\r\n        t.insert(element, content);\r\n        continue;\r\n      }\r\n\r\n      content = Object.toHTML(content);\r\n\r\n      range = element.ownerDocument.createRange();\r\n      t.initializeRange(element, range);\r\n      t.insert(element, range.createContextualFragment(content.stripScripts()));\r\n\r\n      content.evalScripts.bind(content).defer();\r\n    }\r\n\r\n    return element;\r\n  },\r\n\r\n  wrap: function(element, wrapper, attributes) {\r\n    element = $(element);\r\n    if (Object.isElement(wrapper))\r\n      $(wrapper).writeAttribute(attributes || { });\r\n    else if (Object.isString(wrapper)) wrapper = new Element(wrapper, attributes);\r\n    else wrapper = new Element(\'div\', wrapper);\r\n    if (element.parentNode)\r\n      element.parentNode.replaceChild(wrapper, element);\r\n    wrapper.appendChild(element);\r\n    return wrapper;\r\n  },\r\n\r\n  inspect: function(element) {\r\n    element = $(element);\r\n    var result = \'<\' + element.tagName.toLowerCase();\r\n    $H({\'id\': \'id\', \'className\': \'class\'}).each(function(pair) {\r\n      var property = pair.first(), attribute = pair.last();\r\n      var value = (element[property] || \'\').toString();\r\n      if (value) result += \' \' + attribute + \'=\' + value.inspect(true);\r\n    });\r\n    return result + \'>\';\r\n  },\r\n\r\n  recursivelyCollect: function(element, property) {\r\n    element = $(element);\r\n    var elements = [];\r\n    while (element = element[property])\r\n      if (element.nodeType == 1)\r\n        elements.push(Element.extend(element));\r\n    return elements;\r\n  },\r\n\r\n  ancestors: function(element) {\r\n    return $(element).recursivelyCollect(\'parentNode\');\r\n  },\r\n\r\n  descendants: function(element) {\r\n    return $A($(element).getElementsByTagName(\'*\')).each(Element.extend);\r\n  },\r\n\r\n  firstDescendant: function(element) {\r\n    element = $(element).firstChild;\r\n    while (element && element.nodeType != 1) element = element.nextSibling;\r\n    return $(element);\r\n  },\r\n\r\n  immediateDescendants: function(element) {\r\n    if (!(element = $(element).firstChild)) return [];\r\n    while (element && element.nodeType != 1) element = element.nextSibling;\r\n    if (element) return [element].concat($(element).nextSiblings());\r\n    return [];\r\n  },\r\n\r\n  previousSiblings: function(element) {\r\n    return $(element).recursivelyCollect(\'previousSibling\');\r\n  },\r\n\r\n  nextSiblings: function(element) {\r\n    return $(element).recursivelyCollect(\'nextSibling\');\r\n  },\r\n\r\n  siblings: function(element) {\r\n    element = $(element);\r\n    return element.previousSiblings().reverse().concat(element.nextSiblings());\r\n  },\r\n\r\n  match: function(element, selector) {\r\n    if (Object.isString(selector))\r\n      selector = new Selector(selector);\r\n    return selector.match($(element));\r\n  },\r\n\r\n  up: function(element, expression, index) {\r\n    element = $(element);\r\n    if (arguments.length == 1) return $(element.parentNode);\r\n    var ancestors = element.ancestors();\r\n    return expression ? Selector.findElement(ancestors, expression, index) :\r\n      ancestors[index || 0];\r\n  },\r\n\r\n  down: function(element, expression, index) {\r\n    element = $(element);\r\n    if (arguments.length == 1) return element.firstDescendant();\r\n    var descendants = element.descendants();\r\n    return expression ? Selector.findElement(descendants, expression, index) :\r\n      descendants[index || 0];\r\n  },\r\n\r\n  previous: function(element, expression, index) {\r\n    element = $(element);\r\n    if (arguments.length == 1) return $(Selector.handlers.previousElementSibling(element));\r\n    var previousSiblings = element.previousSiblings();\r\n    return expression ? Selector.findElement(previousSiblings, expression, index) :\r\n      previousSiblings[index || 0];\r\n  },\r\n\r\n  next: function(element, expression, index) {\r\n    element = $(element);\r\n    if (arguments.length == 1) return $(Selector.handlers.nextElementSibling(element));\r\n    var nextSiblings = element.nextSiblings();\r\n    return expression ? Selector.findElement(nextSiblings, expression, index) :\r\n      nextSiblings[index || 0];\r\n  },\r\n\r\n  select: function() {\r\n    var args = $A(arguments), element = $(args.shift());\r\n    return Selector.findChildElements(element, args);\r\n  },\r\n\r\n  adjacent: function() {\r\n    var args = $A(arguments), element = $(args.shift());\r\n    return Selector.findChildElements(element.parentNode, args).without(element);\r\n  },\r\n\r\n  identify: function(element) {\r\n    element = $(element);\r\n    var id = element.readAttribute(\'id\'), self = arguments.callee;\r\n    if (id) return id;\r\n    do { id = \'anonymous_element_\' + self.counter++ } while ($(id));\r\n    element.writeAttribute(\'id\', id);\r\n    return id;\r\n  },\r\n\r\n  readAttribute: function(element, name) {\r\n    element = $(element);\r\n    if (Prototype.Browser.IE) {\r\n      var t = Element._attributeTranslations.read;\r\n      if (t.values[name]) return t.values[name](element, name);\r\n      if (t.names[name]) name = t.names[name];\r\n      if (name.include(\':\')) {\r\n        return (!element.attributes || !element.attributes[name]) ? null :\r\n         element.attributes[name].value;\r\n      }\r\n    }\r\n    return element.getAttribute(name);\r\n  },\r\n\r\n  writeAttribute: function(element, name, value) {\r\n    element = $(element);\r\n    var attributes = { }, t = Element._attributeTranslations.write;\r\n\r\n    if (typeof name == \'object\') attributes = name;\r\n    else attributes[name] = value === undefined ? true : value;\r\n\r\n    for (var attr in attributes) {\r\n      var name = t.names[attr] || attr, value = attributes[attr];\r\n      if (t.values[attr]) name = t.values[attr](element, value);\r\n      if (value === false || value === null)\r\n        element.removeAttribute(name);\r\n      else if (value === true)\r\n        element.setAttribute(name, name);\r\n      else element.setAttribute(name, value);\r\n    }\r\n    return element;\r\n  },\r\n\r\n  getHeight: function(element) {\r\n    return $(element).getDimensions().height;\r\n  },\r\n\r\n  getWidth: function(element) {\r\n    return $(element).getDimensions().width;\r\n  },\r\n\r\n  classNames: function(element) {\r\n    return new Element.ClassNames(element);\r\n  },\r\n\r\n  hasClassName: function(element, className) {\r\n    if (!(element = $(element))) return;\r\n    var elementClassName = element.className;\r\n    return (elementClassName.length > 0 && (elementClassName == className ||\r\n      new RegExp(\"(^|\\\\s)\" + className + \"(\\\\s|$)\").test(elementClassName)));\r\n  },\r\n\r\n  addClassName: function(element, className) {\r\n    if (!(element = $(element))) return;\r\n    if (!element.hasClassName(className))\r\n      element.className += (element.className ? \' \' : \'\') + className;\r\n    return element;\r\n  },\r\n\r\n  removeClassName: function(element, className) {\r\n    if (!(element = $(element))) return;\r\n    element.className = element.className.replace(\r\n      new RegExp(\"(^|\\\\s+)\" + className + \"(\\\\s+|$)\"), \' \').strip();\r\n    return element;\r\n  },\r\n\r\n  toggleClassName: function(element, className) {\r\n    if (!(element = $(element))) return;\r\n    return element[element.hasClassName(className) ?\r\n      \'removeClassName\' : \'addClassName\'](className);\r\n  },\r\n\r\n  // removes whitespace-only text node children\r\n  cleanWhitespace: function(element) {\r\n    element = $(element);\r\n    var node = element.firstChild;\r\n    while (node) {\r\n      var nextNode = node.nextSibling;\r\n      if (node.nodeType == 3 && !/\\S/.test(node.nodeValue))\r\n        element.removeChild(node);\r\n      node = nextNode;\r\n    }\r\n    return element;\r\n  },\r\n\r\n  empty: function(element) {\r\n    return $(element).innerHTML.blank();\r\n  },\r\n\r\n  descendantOf: function(element, ancestor) {\r\n    element = $(element), ancestor = $(ancestor);\r\n\r\n    if (element.compareDocumentPosition)\r\n      return (element.compareDocumentPosition(ancestor) & 8) === 8;\r\n\r\n    if (element.sourceIndex && !Prototype.Browser.Opera) {\r\n      var e = element.sourceIndex, a = ancestor.sourceIndex,\r\n       nextAncestor = ancestor.nextSibling;\r\n      if (!nextAncestor) {\r\n        do { ancestor = ancestor.parentNode; }\r\n        while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode);\r\n      }\r\n      if (nextAncestor) return (e > a && e < nextAncestor.sourceIndex);\r\n    }\r\n\r\n    while (element = element.parentNode)\r\n      if (element == ancestor) return true;\r\n    return false;\r\n  },\r\n\r\n  scrollTo: function(element) {\r\n    element = $(element);\r\n    var pos = element.cumulativeOffset();\r\n    window.scrollTo(pos[0], pos[1]);\r\n    return element;\r\n  },\r\n\r\n  getStyle: function(element, style) {\r\n    element = $(element);\r\n    style = style == \'float\' ? \'cssFloat\' : style.camelize();\r\n    var value = element.style[style];\r\n    if (!value) {\r\n      var css = document.defaultView.getComputedStyle(element, null);\r\n      value = css ? css[style] : null;\r\n    }\r\n    if (style == \'opacity\') return value ? parseFloat(value) : 1.0;\r\n    return value == \'auto\' ? null : value;\r\n  },\r\n\r\n  getOpacity: function(element) {\r\n    return $(element).getStyle(\'opacity\');\r\n  },\r\n\r\n  setStyle: function(element, styles) {\r\n    element = $(element);\r\n    var elementStyle = element.style, match;\r\n    if (Object.isString(styles)) {\r\n      element.style.cssText += \';\' + styles;\r\n      return styles.include(\'opacity\') ?\r\n        element.setOpacity(styles.match(/opacity:\\s*(\\d?\\.?\\d*)/)[1]) : element;\r\n    }\r\n    for (var property in styles)\r\n      if (property == \'opacity\') element.setOpacity(styles[property]);\r\n      else\r\n        elementStyle[(property == \'float\' || property == \'cssFloat\') ?\r\n          (elementStyle.styleFloat === undefined ? \'cssFloat\' : \'styleFloat\') :\r\n            property] = styles[property];\r\n\r\n    return element;\r\n  },\r\n\r\n  setOpacity: function(element, value) {\r\n    element = $(element);\r\n    element.style.opacity = (value == 1 || value === \'\') ? \'\' :\r\n      (value < 0.00001) ? 0 : value;\r\n    return element;\r\n  },\r\n\r\n  getDimensions: function(element) {\r\n    element = $(element);\r\n    var display = $(element).getStyle(\'display\');\r\n    if (display != \'none\' && display != null) // Safari bug\r\n      return {width: element.offsetWidth, height: element.offsetHeight};\r\n\r\n    // All *Width and *Height properties give 0 on elements with display none,\r\n    // so enable the element temporarily\r\n    var els = element.style;\r\n    var originalVisibility = els.visibility;\r\n    var originalPosition = els.position;\r\n    var originalDisplay = els.display;\r\n    els.visibility = \'hidden\';\r\n    els.position = \'absolute\';\r\n    els.display = \'block\';\r\n    var originalWidth = element.clientWidth;\r\n    var originalHeight = element.clientHeight;\r\n    els.display = originalDisplay;\r\n    els.position = originalPosition;\r\n    els.visibility = originalVisibility;\r\n    return {width: originalWidth, height: originalHeight};\r\n  },\r\n\r\n  makePositioned: function(element) {\r\n    element = $(element);\r\n    var pos = Element.getStyle(element, \'position\');\r\n    if (pos == \'static\' || !pos) {\r\n      element._madePositioned = true;\r\n      element.style.position = \'relative\';\r\n      // Opera returns the offset relative to the positioning context, when an\r\n      // element is position relative but top and left have not been defined\r\n      if (window.opera) {\r\n        element.style.top = 0;\r\n        element.style.left = 0;\r\n      }\r\n    }\r\n    return element;\r\n  },\r\n\r\n  undoPositioned: function(element) {\r\n    element = $(element);\r\n    if (element._madePositioned) {\r\n      element._madePositioned = undefined;\r\n      element.style.position =\r\n        element.style.top =\r\n        element.style.left =\r\n        element.style.bottom =\r\n        element.style.right = \'\';\r\n    }\r\n    return element;\r\n  },\r\n\r\n  makeClipping: function(element) {\r\n    element = $(element);\r\n    if (element._overflow) return element;\r\n    element._overflow = Element.getStyle(element, \'overflow\') || \'auto\';\r\n    if (element._overflow !== \'hidden\')\r\n      element.style.overflow = \'hidden\';\r\n    return element;\r\n  },\r\n\r\n  undoClipping: function(element) {\r\n    element = $(element);\r\n    if (!element._overflow) return element;\r\n    element.style.overflow = element._overflow == \'auto\' ? \'\' : element._overflow;\r\n    element._overflow = null;\r\n    return element;\r\n  },\r\n\r\n  cumulativeOffset: function(element) {\r\n    var valueT = 0, valueL = 0;\r\n    do {\r\n      valueT += element.offsetTop  || 0;\r\n      valueL += element.offsetLeft || 0;\r\n      element = element.offsetParent;\r\n    } while (element);\r\n    return Element._returnOffset(valueL, valueT);\r\n  },\r\n\r\n  positionedOffset: function(element) {\r\n    var valueT = 0, valueL = 0;\r\n    do {\r\n      valueT += element.offsetTop  || 0;\r\n      valueL += element.offsetLeft || 0;\r\n      element = element.offsetParent;\r\n      if (element) {\r\n        if (element.tagName == \'BODY\') break;\r\n        var p = Element.getStyle(element, \'position\');\r\n        if (p == \'relative\' || p == \'absolute\') break;\r\n      }\r\n    } while (element);\r\n    return Element._returnOffset(valueL, valueT);\r\n  },\r\n\r\n  absolutize: function(element) {\r\n    element = $(element);\r\n    if (element.getStyle(\'position\') == \'absolute\') return;\r\n    // Position.prepare(); // To be done manually by Scripty when it needs it.\r\n\r\n    var offsets = element.positionedOffset();\r\n    var top     = offsets[1];\r\n    var left    = offsets[0];\r\n    var width   = element.clientWidth;\r\n    var height  = element.clientHeight;\r\n\r\n    element._originalLeft   = left - parseFloat(element.style.left  || 0);\r\n    element._originalTop    = top  - parseFloat(element.style.top || 0);\r\n    element._originalWidth  = element.style.width;\r\n    element._originalHeight = element.style.height;\r\n\r\n    element.style.position = \'absolute\';\r\n    element.style.top    = top + \'px\';\r\n    element.style.left   = left + \'px\';\r\n    element.style.width  = width + \'px\';\r\n    element.style.height = height + \'px\';\r\n    return element;\r\n  },\r\n\r\n  relativize: function(element) {\r\n    element = $(element);\r\n    if (element.getStyle(\'position\') == \'relative\') return;\r\n    // Position.prepare(); // To be done manually by Scripty when it needs it.\r\n\r\n    element.style.position = \'relative\';\r\n    var top  = parseFloat(element.style.top  || 0) - (element._originalTop || 0);\r\n    var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);\r\n\r\n    element.style.top    = top + \'px\';\r\n    element.style.left   = left + \'px\';\r\n    element.style.height = element._originalHeight;\r\n    element.style.width  = element._originalWidth;\r\n    return element;\r\n  },\r\n\r\n  cumulativeScrollOffset: function(element) {\r\n    var valueT = 0, valueL = 0;\r\n    do {\r\n      valueT += element.scrollTop  || 0;\r\n      valueL += element.scrollLeft || 0;\r\n      element = element.parentNode;\r\n    } while (element);\r\n    return Element._returnOffset(valueL, valueT);\r\n  },\r\n\r\n  getOffsetParent: function(element) {\r\n    if (element.offsetParent) return $(element.offsetParent);\r\n    if (element == document.body) return $(element);\r\n\r\n    while ((element = element.parentNode) && element != document.body)\r\n      if (Element.getStyle(element, \'position\') != \'static\')\r\n        return $(element);\r\n\r\n    return $(document.body);\r\n  },\r\n\r\n  viewportOffset: function(forElement) {\r\n    var valueT = 0, valueL = 0;\r\n\r\n    var element = forElement;\r\n    do {\r\n      valueT += element.offsetTop  || 0;\r\n      valueL += element.offsetLeft || 0;\r\n\r\n      // Safari fix\r\n      if (element.offsetParent == document.body &&\r\n        Element.getStyle(element, \'position\') == \'absolute\') break;\r\n\r\n    } while (element = element.offsetParent);\r\n\r\n    element = forElement;\r\n    do {\r\n      if (!Prototype.Browser.Opera || element.tagName == \'BODY\') {\r\n        valueT -= element.scrollTop  || 0;\r\n        valueL -= element.scrollLeft || 0;\r\n      }\r\n    } while (element = element.parentNode);\r\n\r\n    return Element._returnOffset(valueL, valueT);\r\n  },\r\n\r\n  clonePosition: function(element, source) {\r\n    var options = Object.extend({\r\n      setLeft:    true,\r\n      setTop:     true,\r\n      setWidth:   true,\r\n      setHeight:  true,\r\n      offsetTop:  0,\r\n      offsetLeft: 0\r\n    }, arguments[2] || { });\r\n\r\n    // find page position of source\r\n    source = $(source);\r\n    var p = source.viewportOffset();\r\n\r\n    // find coordinate system to use\r\n    element = $(element);\r\n    var delta = [0, 0];\r\n    var parent = null;\r\n    // delta [0,0] will do fine with position: fixed elements,\r\n    // position:absolute needs offsetParent deltas\r\n    if (Element.getStyle(element, \'position\') == \'absolute\') {\r\n      parent = element.getOffsetParent();\r\n      delta = parent.viewportOffset();\r\n    }\r\n\r\n    // correct by body offsets (fixes Safari)\r\n    if (parent == document.body) {\r\n      delta[0] -= document.body.offsetLeft;\r\n      delta[1] -= document.body.offsetTop;\r\n    }\r\n\r\n    // set position\r\n    if (options.setLeft)   element.style.left  = (p[0] - delta[0] + options.offsetLeft) + \'px\';\r\n    if (options.setTop)    element.style.top   = (p[1] - delta[1] + options.offsetTop) + \'px\';\r\n    if (options.setWidth)  element.style.width = source.offsetWidth + \'px\';\r\n    if (options.setHeight) element.style.height = source.offsetHeight + \'px\';\r\n    return element;\r\n  }\r\n};\r\n\r\nElement.Methods.identify.counter = 1;\r\n\r\nObject.extend(Element.Methods, {\r\n  getElementsBySelector: Element.Methods.select,\r\n  childElements: Element.Methods.immediateDescendants\r\n});\r\n\r\nElement._attributeTranslations = {\r\n  write: {\r\n    names: {\r\n      className: \'class\',\r\n      htmlFor:   \'for\'\r\n    },\r\n    values: { }\r\n  }\r\n};\r\n\r\n\r\nif (!document.createRange || Prototype.Browser.Opera) {\r\n  Element.Methods.insert = function(element, insertions) {\r\n    element = $(element);\r\n\r\n    if (Object.isString(insertions) || Object.isNumber(insertions) ||\r\n        Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))\r\n          insertions = { bottom: insertions };\r\n\r\n    var t = Element._insertionTranslations, content, position, pos, tagName;\r\n\r\n    for (position in insertions) {\r\n      content  = insertions[position];\r\n      position = position.toLowerCase();\r\n      pos      = t[position];\r\n\r\n      if (content && content.toElement) content = content.toElement();\r\n      if (Object.isElement(content)) {\r\n        pos.insert(element, content);\r\n        continue;\r\n      }\r\n\r\n      content = Object.toHTML(content);\r\n      tagName = ((position == \'before\' || position == \'after\')\r\n        ? element.parentNode : element).tagName.toUpperCase();\r\n\r\n      if (t.tags[tagName]) {\r\n        var fragments = Element._getContentFromAnonymousElement(tagName, content.stripScripts());\r\n        if (position == \'top\' || position == \'after\') fragments.reverse();\r\n        fragments.each(pos.insert.curry(element));\r\n      }\r\n      else element.insertAdjacentHTML(pos.adjacency, content.stripScripts());\r\n\r\n      content.evalScripts.bind(content).defer();\r\n    }\r\n\r\n    return element;\r\n  };\r\n}\r\n\r\nif (Prototype.Browser.Opera) {\r\n  Element.Methods._getStyle = Element.Methods.getStyle;\r\n  Element.Methods.getStyle = function(element, style) {\r\n    switch(style) {\r\n      case \'left\':\r\n      case \'top\':\r\n      case \'right\':\r\n      case \'bottom\':\r\n        if (Element._getStyle(element, \'position\') == \'static\') return null;\r\n      default: return Element._getStyle(element, style);\r\n    }\r\n  };\r\n  Element.Methods._readAttribute = Element.Methods.readAttribute;\r\n  Element.Methods.readAttribute = function(element, attribute) {\r\n    if (attribute == \'title\') return element.title;\r\n    return Element._readAttribute(element, attribute);\r\n  };\r\n}\r\n\r\nelse if (Prototype.Browser.IE) {\r\n  $w(\'positionedOffset getOffsetParent viewportOffset\').each(function(method) {\r\n    Element.Methods[method] = Element.Met',1549689,1),(3824059,'quick_bookmarks',4200220,1,'no','moderated',3,332,'2008-03-24 23:05:40','2010-02-16 23:04:49',0,192,NULL,'2008-03-24 23:53:06',14,'2008-09-28 13:07:44','template://3824059','0000010100063535000635590381976303824059','<h3>Quick bookmarks <span style=\\\"font-weight:normal;font-size:9px\\\">[linked to 3777333]</span></h3><div>\r\n{get_linked_nodes node_id=3777333}\r\n<div class=\\\"module\\\">\r\n  {foreach from=$get_linked_nodes item=child}\r\n    {if $user_id == $child.synapse_creator}\r\n      <div>\r\n        <a href=\\\"/id/{$child.node_id}\\\" title=\\\"{$child.node_name|strip_tags|stripslashes}\\\">\r\n        {$child.node_name|strip_tags|stripslashes|truncate:40:\\\"...\\\":true}</a>\r\n\r\n      </div>\r\n    {/if}\r\n  {/foreach}\r\n</div>\r\n</div>',63559,1),(3827651,'last friends submissions',3819763,1,'no','moderated',0,332,'2008-03-25 22:52:44','2010-02-16 23:04:49',0,134,NULL,'2008-03-25 22:52:44',14,'2009-05-31 13:43:58','template://3827651','0000010100063535000635590381976303827651','<h3>Last friends submissions</h3><div>\r\n{get_movement_params}\r\n{get_last vector=\'00\' listing_amount=100}\r\n{foreach from=$get_last item=child}\r\n{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}\r\n  {if $friends[$child.node_creator] eq true}\r\n    <div class=\"last\">\r\n      <a href=\'/id/{$child.node_creator}\'><img border=0  style=\"float:left\" width=\"23\"\r\n    height=\"23\"\r\n      src=\'{get_image_link id=$child.node_creator}\' width=\'50\'\r\n      title=\'{$child.login} | {$child.node_created|date_format:\"%H:%M:%S - %d.%m.%Y\"}\'></a>\r\n      {if $child.node_created > $node.last_visit}<span class=\"most_important\">N</span>{/if}\r\n      <a href=\'/id/{$child.node_id}\' title=\'{$child.node_name|imagestrip|strip_tags|stripslashes}\'>{$child.node_name|imagestrip|strip_tags|stripslashes|truncate:27:\"...\":true}</a>\r\n      in<br />\r\n      <a href=\'/id/{$child.node_parent}\' title=\'{$child.parent_name|strip_tags|stripslashes}\'>{$child.parent_name|strip_tags|stripslashes|truncate:27:\"...\":true}</a>\r\n      {if $child.k > 0} [<span class=\"most_important\">{$child.k}K</span>]{/if}\r\n      {if $child.node_children_count}[<span class=\"important\">{$child.node_children_count}</span>]{/if}\r\n      <br />\r\n      {$child.node_content|nl2br|imagestrip|strip_tags|stripslashes|truncate:100:\"...\":true}\r\n    </div>\r\n  {/if}\r\n{/if}{*IGNORE USER CONDITION end*}\r\n{/foreach}\r\n</div>',63559,1),(3830464,'xml header',1772147,1,'no','public',1,332,'2008-03-26 19:02:31','2010-02-16 23:04:49',0,78,NULL,'2008-03-26 19:02:31',14,'2008-03-29 19:09:32','template://3830464','017448840383037803830464','{literal}<?xml version=\"1.0\" encoding=\"iso-8859-2\"?>{/literal}\r\n{if $error eq true}<ERROR>{$error}</ERROR>{/if}',3830464,1),(3830508,'xml node - threaded',1772147,1,'no','public',1,332,'2008-03-26 19:13:32','2010-02-16 23:04:49',0,84,NULL,'2008-03-26 19:13:32',14,'2009-02-05 23:32:54','template://3830508','017448840383037803830508','{get_movement_params children_count=$node.node_children_count}\r\n{if $user_id eq false}\r\n<NOTE msg=\'unloged\' /> \r\n{/if} \r\n\r\n<NODE id=\'{$node.node_id}\' name=\"{$node.node_name|escape:\'hexentity\'}\" creatorid=\'{$node.node_creator}\' creatornick=\'{$node.owner}\' vector=\'{$node.node_vector}\' created=\'{$node.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}}\'{if $node.node_updated} updated=\'{$node.node_updated|date_format:\"%d.%m.%Y - %H:%M:%S\"}\'{/if}{if $node.k > 0} node_k=\'{$node.k}\'{/if} {if $new_mail eq true}mail_count=\"{$new_mail}\" mail_from=\"{$new_mail_name}\"{/if} k=\"{$user_k}\" wallet=\"{$k_wallet}\">\r\n{* miesto pre node_settings *}\r\n{* miesto pre get_poll_box *}\r\n{* miesto pre get_bookmark_statistics_box*}  \r\n<TITLE><![CDATA[{$node.node_name}]]></TITLE>\r\n<CONTENT><![CDATA[{$node.node_content|replaceLocalURLs}]]></CONTENT>\r\n\r\n{* threaded children *}\r\n{include file=\"3821431.tpl\"}\r\n</NODE>',3830508,1),(3830757,'xml bookmarks',1772147,1,'no','public',1,332,'2008-03-26 20:25:53','2010-02-16 23:04:49',0,114,NULL,'2008-03-26 20:25:53',14,'2009-02-05 23:33:35','template://3830757','017448840383037803830757','{get_bookmarks}\r\n<BOOKMARKS id=\'{$node.node_id}\' name=\"{$node.node_name|escape:\'hexentity\'}\" {if $new_mail eq true}mail_count=\"{$new_mail}\" mail_from=\"{$new_mail_name}\"{/if} k=\"{$user_k}\" wallet=\"{$k_wallet}\"\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n  <CATEGORY id=\'{$bookmark_category.node_id}\' name=\'{if $bookmark_category.node_name neq false}{$bookmark_category.node_name|stripslashes|strip_tags}{/if}\' new=\'{if $bookmark_category.sum neq false}{$bookmark_category.sum}{else}0{/if}\'>\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n    <BOOKMARK id=\'{$bookmarks.node_id}\' name=\'{$bookmarks.node_name|stripslashes|strip_tags}\' new_children=\'{if $bookmarks.node_user_subchild_count neq false}{$bookmarks.node_user_subchild_count}{else}0{/if}\' new_descendants=\'{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}1{else}0{/if}\' changed=\'{if $bookmarks.node_updated > $bookmarks.last_visit}1{else}0{/if}\' />\r\n    {/foreach}    \r\n  </CATEGORY>\r\n{/foreach}\r\n</BOOKMARKS>',3830757,1),(3830897,'new books',3819763,1,'no','moderated',0,332,'2008-03-26 21:01:28','2010-02-16 23:04:49',0,48,NULL,'2008-03-26 21:01:28',14,'2008-03-26 22:11:33','template://3830897','0000010100063535000635590381976303830897','{get_last vector=\\\'00000101000635320068381700683643\\\' listing_amount=$listing_amount offset=$offset}\r\n<div class=\\\"module\\\">\r\n  {foreach from=$get_last item=child name=kniha}\r\n  {if ($child.node_created > $node.last_visit) && ($child.template_id eq 12)}\r\n    <div class=\\\"news {if $friends[$child.node_creator] eq true}friend{/if}\\\">\r\n      <span class=\\\"most_important\\\">NEW</span>\r\n      <span class=\\\"important\\\">BOOK</span> by {$child.login}, ({$child.node_children_count})\r\n      <a href=\\\'/id/{$child.node_id}\\\'>{$child.node_name}</a><br />\r\n      in <a href=\\\'/id/{$child.node_parent}\\\'>{$child.parent_name}</a><br>\r\n      {$child.node_content|truncate:300|strip_tags}\r\n    </div>\r\n  {/if}\r\n  {/foreach}\r\n</div>',63559,1),(3831180,'new friends submisions',3819763,1,'no','moderated',0,332,'2008-03-26 22:17:33','2010-02-16 23:04:49',0,82,NULL,'2008-03-26 22:17:33',14,'2009-05-31 13:46:00','template://3831180','0000010100063535000635590381976303831180','{get_movement_params}\r\n{get_last vector=\'00\' listing_amount=100}\r\n{foreach from=$get_last item=child}\r\n{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}\r\n  {if ($friends[$child.node_creator] eq true) && ($child.node_created > $node.last_visit)}\r\n    <div class=\"last\">\r\n      <a href=\'/id/{$child.node_creator}\'><img border=0  style=\"float:left\" width=\"23\" height=\"23\"\r\n      src=\'{get_image_link id=$child.node_creator}\' width=\'50\'\r\n      title=\'{$child.login} | {$child.node_created|date_format:\"%H:%M:%S - %d.%m.%Y\"}\'></a>\r\n      <span class=\"most_important\">N</span><span class=\"important\">FRsub</span>\r\n      <a href=\'/id/{$child.node_id}\' title=\'{$child.node_name|imagestrip|strip_tags|stripslashes}\'>{$child.node_name|imagestrip|strip_tags|stripslashes|truncate:27:\"...\":true}</a>\r\n      <br />in <a href=\'/id/{$child.node_parent}\' title=\'{$child.parent_name|strip_tags|stripslashes}\'>{$child.parent_name|strip_tags|stripslashes|truncate:27:\"...\":true}</a>\r\n      {if $child.k > 0} [<span class=\"most_important\">{$child.k}K</span>]{/if}\r\n      {if $child.node_children_count}[<span class=\"important\">{$child.node_children_count}</span>]{/if}\r\n      <br />\r\n      {$child.node_content|nl2br|imagestrip|strip_tags|stripslashes|truncate:200:\"...\":true}\r\n    </div>\r\n  {/if}\r\n{/if}{*IGNORE USER CONDITION end*}\r\n{/foreach}',63559,1),(3834114,'gate',3830378,1,'no','private',0,332,'2008-03-27 19:32:54','2010-02-16 23:04:49',0,715,NULL,'2008-03-27 19:32:54',3834114,'2009-02-05 23:31:46','template://3834114','017448840383037803834114','<OPEN id=\"{$node.node_id}\" name=\"{$node.node_name|escape:\'hexentity\'}\" {if $new_mail eq true}mail_count=\"{$new_mail}\" mail_from=\"{$new_mail_name}\"{/if} k=\"{$user_k}\" wallet=\"{$k_wallet}\"></OPEN>',3834114,1),(3836706,'xml get_links',1772147,1,'no','public',1,332,'2008-03-28 23:11:14','2010-02-16 23:04:49',0,49,NULL,'2008-03-28 23:11:14',14,'2009-02-05 23:33:15','template://3836706','017448840383037803836706','<NODESHELL id=\'{$node.node_id}\' name=\"{$node.node_name|escape:\'hexentity\'}\" {if $new_mail eq true}mail_count=\"{$new_mail}\" mail_from=\"{$new_mail_name}\"{/if} k=\"{$user_k}\" wallet=\"{$k_wallet}\">\r\n{get_linked_nodes orderby=$listing_order}\r\n{foreach from=$get_linked_nodes item=link}\r\n  <NODE id=\'{$link.node_id}\' new=\'{if $link.synapse_created > $node.last_visit}1{else}0{/if}\'><![CDATA[{$link.node_content|strip_tags}]]></NODE>\r\n{/foreach}\r\n</NODESHELL>',3836706,1),(3846447,'catman´s extended header',3696905,1,'no','public',0,332,'2008-04-01 13:16:32','2010-02-16 23:04:49',0,126,NULL,'2008-04-01 13:16:32',14,'2008-04-28 12:59:51','template://3846447','0000010100792011035271190369690503846447','<html>\r\n    <head>\r\n        <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n        <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\r\n        <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\' />\r\n\r\n        <!-- AJAX CONNECTION -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n\r\n        <!-- USER MENU PANEL JS -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n\r\n        <!-- CHECK NEW MAIL -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n        \r\n        <!-- LOGGED OUT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/logged_out.js\"></script>\r\n\r\n        <!-- MAIL SCRIPT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n\r\n        <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n</head><body>\r\n{if $user_id eq true} <div class=\"t1\">  <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'>\r\n\r\n<div style=\"position: fixed; top: 0px; width: 100%; border: 0px; background-color: #000000;\"><center>\r\n[ \r\n<a href=\'/id/1/\'>main</a> --\r\n<a href=\'/id/101/\'>kyberia</a> -- \r\n<a href=\'/id/102/\'>hysteria</a> -- \r\n<a href=\'/id/683817/\'>kniznica</a> \r\n]\r\n[\r\n<a href=\'/id/3777777\'>bookz</a> (<a href=\'/id/19\'>old</a>) --\r\n<a href=\'/id/24\'>posta</a> --\r\n<a href=\'/id/{$user_id}/1573668\'>subs</a>/<a href=\'/id/1522695\'>re</a> --\r\n<a href=\'/id/23\'>last</a>/<a href=\'/id/3576777\'>frendz</a> --\r\n<a href=\'/chat/chat.htm\' target=\'_blank\'>chat</a> --\r\n<a href=\'/id/27\'>ludia</a> \r\n]\r\n[\r\n<a href=\'/id/15\'>K!</a> (<a href=\'/id/788016\'>new</a>) --\r\n<a href=\'/id/876611\'>senate</a> --\r\n<a href=\'/id/21\'>blogz</a> -- \r\n<a href=\'/id/1058182\'>forumz</a> \r\n]\r\n[\r\n<a href=\'/id/25\'>search</a> --\r\n<a href=\'/id/{$user_id}\'>userinfo</a> (<a href=\'/id/{$user_id}/1961033\'>setup</a>) -- \r\n<a href=\'/id/1017832\'>?</a>\r\n\r\n]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n</center></div>\r\n  </form>  </div><div class=\"t2\"></div>  \r\n\r\n{/if} {if $error eq true} <center><span class=\'most_important\'>{$error}</span></center>  {/if} {if $new_mail eq true} <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a></center>  {/if} <!-- USER MENU PANEL --> <div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div> <script language=\'JavaScript\' type=\'text/javascript\'>p = document.getElementById(\"panel\");</script>',3527119,1),(3863860,'my.book.marks',3976313,1,'no','public',1,332,'2008-04-06 23:57:39','2010-02-16 23:04:49',0,43998,NULL,'2008-05-02 23:08:58',3863860,'2008-05-16 00:24:00','template://3863860','00000101007920110397631303863860','{* header *}{include file=\"1549864.tpl\"}\r\n<link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/id/3980561/download\'\r\n/>\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.nextSibling.style.display == \'block\' || this.nextSibling.style.display == \'\') {\r\n            this.nextSibling.style.display = \'none\';\r\n         } else {\r\n            this.nextSibling.style.display = \'block\';\r\n         }\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n//-->\r\n</script>\r\n{/literal}\r\n\r\n<table width=100%><tr>\r\n<td valign=\'top\' width=20% class=\"books_left\">\r\n<br />\r\n{* K_wallet *}{include file=\"3819953.tpl\"}<br />\r\n<table>\r\n  <tr><td>\r\n      <center>\r\n\r\n        <form method=\"post\" style=\"padding:0; margin:0\">\r\n          your K nodes for last:\r\n          <input type=\"text\" name=\"interval\" style=\"width:20px\" />\r\n          <input type=\"submit\" value=\"Hour\" />\r\n        </form>\r\n        {get_temp_k}\r\n        {foreach from=$get_temp_k item=k}\r\n            {if $k.node_creator == $user_id}\r\n              <span class=\"most_important\">{$k.count} k</span>\r\n              <a href=\"/id/{$k.node_id}/\">{$k.node_name|stripslashes|truncate:30:\"...\":true}</a>\r\n{$k.k}k\r\n              <br />\r\n            {/if}\r\n        {/foreach}\r\n      </center>\r\n  </td></tr>\r\n</table>\r\n\r\n  {* user_submissions_children *}{include file=\"3820015.tpl\"}\r\n  <center><span class=\'important\'>Friends online</span></center><div>{* active_friends\r\n*}{include file=\"3819817.tpl\"}</div>\r\n  <h3>users on.line</h3><div>{* active_users *}{include file=\"3819906.tpl\"}</div>\r\n</td>\r\n\r\n\r\n<td valign=\'top\' width=60% class=\"books_center\">\r\n  \r\n<form method=\'post\' action=\'/id/{$node.node_id}\' name=\"bookmarks_full\">\r\n{if $bookstyl eq 0}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n<h3>{if $bookmark_category.node_name neq false}\r\n <a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'important\'> {$bookmark_category.sum}</span>\r\n        {/if}\r\n{/if}\r\n</h3><div>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\'\r\n{if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}\r\n{if $bookmarks.node_user_subchild_count eq false and\r\n    $bookmarks.lastdescendant_created < $bookmarks.last_visit and\r\n    $bookmarks.node_updated < $bookmarks.last_visit} class=\'empty\'\r\n{/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n{/if}\r\n<br>\r\n{/foreach}\r\n</div>\r\n{/foreach}\r\n\r\n\r\n{/if}\r\n{if $bookstyl eq 1}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n\r\n{/if}\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n\r\n{/if}\r\n{if $bookstyl eq 2}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n<br>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n{/if}\r\n\r\n{if $bookstyl eq 3}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.node_user_subchild_count neq false || $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name|stripslashes}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n{/if}\r\n\r\n<br>\r\n\r\n<select name=\"bookmark_category_id\">\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {if $bookmark_category.node_name neq false}\r\n      <option\r\nvalue=\"{$bookmark_category.node_id}\">{$bookmark_category.node_name|stripslashes|truncate:40:\"...\":true}</option>\r\n    {/if}\r\n  {/foreach}\r\n  <option value=\"\">...no category</option>\r\n</select>\r\n<input type=\'submit\' name=\'event\' value=\'set_bookmark_category\' /><br /><br />\r\n\r\n\r\n<span class=\"bookcat0\"><input type=\'radio\' value=\'0\' name=\'bookstyl\'>\r\nall</span>\r\n<span class=\"bookcat2\"><input type=\'radio\' value=\'2\' name=\'bookstyl\'> new\r\nchildren</span>\r\n<span class=\"bookcat3\"><input type=\'radio\' value=\'3\' name=\'bookstyl\'> new\r\nchildren & new descendant</span>\r\n<input type=\'submit\' name=\'event\' value=\'bookstyl\' />\r\n</form>\r\n\r\n</td>\r\n\r\n<td valign=\'top\' width=20% class=\"books_right\">\r\n  <h3>Last friends submissions</h3><div>{* Last friends submissions *}\r\n{get_movement_params}\r\n{get_last vector=\'00\' listing_amount=100}\r\n{foreach from=$get_last item=child}\r\n{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true}\r\n  {if $friends[$child.node_creator] eq true}\r\n    <div class=\"last\">\r\n      <a href=\'/id/{$child.node_creator}\'><img border=0  style=\"float:left\" width=\"32\"\r\n    height=\"32\"\r\n      src=\'{get_image_link id=$child.node_creator}\' width=\'50\'\r\n      title=\'{$child.login} | {$child.node_created|date_format:\"%H:%M:%S - %d.%m.%Y\"}\'></a>\r\n      {if $child.node_created > $node.last_visit}<span class=\"most_important\">N</span>{/if}\r\n      <a\r\n    href=\'/id/{$child.node_id}\' title=\'{$child.node_name|escape:\'html\'}\'>{$child.node_name|imagestrip|strip_tags|stripslashes|truncate:23:\"...\":true}</a>\r\n    <br /> in \r\n      <a\r\n    href=\'/id/{$child.node_parent}\' title=\'{$child.parent_name|escape:\'html\'}\'>{$child.parent_name|strip_tags|stripslashes|truncate:19:\"...\":true}</a>\r\n      {if $child.k > 0} [{$child.k}K]{/if}<br />\r\n      {$child.node_content|nl2br|imagestrip|strip_tags|stripslashes|truncate:128:\"...\":true}<br />\r\n      <i>({$child.node_created|date_format:\"%H:%M:%S\"})</i>\r\n    </div>\r\n  {/if}\r\n{/if}{*IGNORE USER CONDITION end*}\r\n{/foreach}\r\n<a href=\'/id/3576777/\'><i>more...</i></a>\r\n</div>\r\n  <div>{* new_articles *}{include file=\"3820099.tpl\"}</div>\r\n  <div>{* new_forums *}{include file=\"3820159.tpl\"}</div>\r\n  <div>{* new_blogs *}{include file=\"3820175.tpl\"}</div>\r\n  <div>{* New books in library *}{include file=\"3830897.tpl\"}</div>\r\n</td>\r\n</tr></table>\r\n',3976313,1),(3867422,'::header',1059952,1,'no','public',1,332,'2008-04-07 23:12:40','2010-02-16 23:04:49',0,130,NULL,'2008-04-08 11:56:45',14,'2008-04-07 23:46:32','template://3867422','00000101010598780105995203867422','<html> <head> <meta http-equiv=\"Cache-Control\" content=\"Public\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <!-- AJAX CONNECTION --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>  <!-- PANEL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script> <!-- CHECK NEW MAIL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script> {if $node.node_id eq 24} <!-- MAIL SCRIPT --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script> {/if} <!-- MENU --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/templates/1378272.tpl\"></script> <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\'> <title> {$node.node_name} | {if $new_mail eq true}{$new_mail}_{$new_mail_name}{/if} </title> </head> <body> <!-- here you can realize yourself --> <div class=\"t1\"> <form enctype=\"multipart/form-data\" action=\'/id/{$user_id}/\' action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'> \r\n\r\n[<a href=\'/id/1/\'>main</a> ::\r\n<a href=\'/id/101/\'>root</a> :: \r\n<a href=\'/id/3819850\'>dashboard</a>\r\n] - [\r\n<a href=\'/id/24\'>posta</a> :: \r\n<a href=\'/id/23\'>last</a> :: \r\n<a href=\'/id/27\'>people</a> :: \r\n<a href=\'/id/15\'>k</a> :: \r\n<a href=\'/id/3819850\'>consc</a> :: \r\n<a href=\'/id/21\'>blogz</a>\r\n] - [\r\n<a href=\'/id/2489\'>me</a> :: \r\n<a href=\'/id/3091918\'>playground</a> :: \r\n<a href=\'/id/1522695/1522695\'>children</a>\r\n] - [\r\n<a href=\'/id/25\'>search</a> :: \r\n<a href=\'/id/2489/1961033\'>settings</a>\r\n]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'> </form> </div> <div class=\"t2\"></div> {if $new_mail eq true} <center><a href=\'/id/24\'><b>{$new_mail} new mail, last from {$new_mail_name}</b></a></center> {/if} {if $error eq true} <center><span align=\'center\' class=\'most_important\'>{$error}</span></center> {/if}',1059952,1),(3867587,'eaheader',1059952,1,'no','public',0,332,'2008-04-08 00:05:16','2010-02-16 23:04:49',0,74,NULL,'2008-04-08 00:05:16',14,'2008-04-08 00:05:23','template://3867587','00000101010598780105995203867587','<html> <head> <meta http-equiv=\"Cache-Control\" content=\"Public\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <!-- AJAX CONNECTION --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>  <!-- PANEL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script> <!-- CHECK NEW MAIL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script> {if $node.node_id eq 24} <!-- MAIL SCRIPT --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script> {/if} <!-- MENU --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/templates/1378272.tpl\"></script> <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\'> <title> {$node.node_name} | {if $new_mail eq true}{$new_mail}_{$new_mail_name}{/if} </title> </head> <body> <!-- here you can realize yourself --> <div class=\"t1\"> <form enctype=\"multipart/form-data\" action=\'/id/{$user_id}/\' action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'> \r\n\r\n[<a href=\'/id/1/\'>main</a> ::\r\n<a href=\'/id/101/\'>root</a> :: \r\n<a href=\'/id/3819850\'>dashboard</a>\r\n] - [\r\n<a href=\'/id/24\'>posta</a> :: \r\n<a href=\'/id/23\'>last</a> :: \r\n<a href=\'/id/27\'>people</a> :: \r\n<a href=\'/id/15\'>k</a> :: \r\n<a href=\'/id/3819850\'>consc</a> :: \r\n<a href=\'/id/21\'>blogz</a>\r\n] - [\r\n<a href=\'/id/1007\'>me</a> :: \r\n<a href=\'/id/798958\'>ea data</a> :: \r\n<a href=\'/id/1522695/1522695\'>children</a> :: \r\n] - [\r\n<a href=\'/id/25\'>search</a> :: \r\n<a href=\'/id/2489/1961033\'>settings</a>\r\n]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'> </form> </div> <div class=\"t2\"></div> {if $new_mail eq true} <center><a href=\'/id/24\'><b>{$new_mail} new mail, last from {$new_mail_name}</b></a></center> {/if} {if $error eq true} <center><span align=\'center\' class=\'most_important\'>{$error}</span></center> {/if}',1059952,1),(3871282,'inso.header',2810527,1,NULL,'public',0,332,'2008-04-09 08:15:18','2010-02-16 23:04:49',0,58,NULL,'2008-04-09 08:15:18',14,'2008-04-14 15:17:39','template://3871282','0000010100792011009499500281052703871282','<html>\r\n<head>\r\n<meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n<meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\r\n<link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\' />\r\n\r\n<!-- AJAX CONNECTION -->\r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n\r\n<!-- USER MENU PANEL JS -->\r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n\r\n<!-- CHECK NEW MAIL -->\r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n\r\n<!-- LOGGED OUT -->\r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/logged_out.js\"></script>\r\n\r\n<!-- MAIL SCRIPT -->\r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n\r\n<title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n</head>\r\n\r\n<body>\r\n\r\n{if $user_id eq true}\r\n<div class=\"t1\">\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'>\r\n<center>\r\n[ \r\n<a href=\'/id/1/\'>main</a> --\r\n<a href=\'/id/101/\'>kyberia</a> -- \r\n<a href=\'/id/102/\'>hysteria</a> -- \r\n<a href=\'/id/683817/\'>kniznica</a> -- \r\n<a href=\'/id/3777777\'>bookmarkz</a> \r\n]\r\n[\r\n<a href=\'/id/24\'>posta</a> --\r\n<a href=\'/chat/chat.htm\' target=\'_blank\'>chat</a> --\r\n<a href=\'/id/23\'>last</a> --\r\n<a href=\'/id/27\'>ludia</a> --\r\n<a href=\'/id/21\'>blogz</a> \r\n]\r\n[\r\n<a href=\'/id/15\'>k NEW</a> / <a href=\'/id/788016\'>CONSCIOUSNESS</a> --\r\n<a href=\'/id/876611\'>senate</a> --\r\n<!--  <a href=\'/id/20\'>clanky</a> ---- -->\r\n<a href=\'/id/1058182\'>forumz</a> \r\n]\r\n[\r\n<a href=\'/id/25\'>search</a> --\r\n<a href=\'/id/{$user_id}\'>userinfo</a> (<a href=\'/id/{$user_id}/1961033\'>setup</a>) -- \r\n<a href=\'/id/1017832\'>help</a>\r\n]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n</center>\r\n</form>\r\n</div><div class=\"t2\"></div>\r\n{/if}\r\n\r\n{if $error eq true}\r\n<center><span class=\'most_important\'>{$error}</span></center>\r\n{/if}\r\n\r\n{if $new_mail eq true}\r\n<center>\r\n<a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a>\r\n</center>\r\n{/if}\r\n\r\n<!-- USER MENU PANEL -->\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div>\r\n<script language=\'JavaScript\' type=\'text/javascript\'>p = document.getElementById(\"panel\");</script>',949950,1),(3878935,'personal_notepad_template',4128533,1,'no','private',0,332,'2008-04-11 13:31:41','2010-02-16 23:04:49',0,95,NULL,'2008-04-11 13:31:41',4,'2009-01-06 19:54:13','template://3878935','021275010412853303878935','{* header *}{include file=\"1549864.tpl\"} {if $user_id eq false} <center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> {/if} <table width=\'100%\'><tr> <!--left column--> <td valign=\'top\' align=\'center\' width=\'23%\'> {* node_settings *} {include file=\"4129471.tpl\"} {* get_poll_box *} {include file=\"1549834.tpl\"} <br> {*get_bookmark_statistics_box*} {include file=\"1549386.tpl\"} <br> {include file=\"4099350.tpl\"} </td> <!--end of left column--> <!--main central column--> <td width=666 valign=\'top\'> {*node_content*} {include file=\"1549916.tpl\"} {*showing form for adding child node*} <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'method=\'post\' name=\'formular\'> {if $permissions.w eq true}\r\n{*addnode*}\r\n\r\n<!-- ADDNODE | MARIN --> {if $permissions.w eq true} <div class=\'add_title\' style=\'margin-bottom:2pt;\'>  title or keywords:: <input type=\'text\' name=\'node_name\' value=\'{$post_vars.node_name}\'>  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NO HTML <!-- <input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;code &nbsp;&nbsp;&nbsp;&nbsp;<input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;code &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional data file::<input type=\'file\' name=\'data_file\'>  &nbsp;{$user_quota}bytez --> </div><!-- class=\'add_title\' end --> <textarea name=\'node_content\' id=\'node_content\' rows=200>{$post_vars.node_content|escape:\"html\"|stripslashes} tie palacinky mi uz lezu na nervy!!;]</textarea>  <div class=\'toolbar\'>  <input type=\'submit\' value=\'add\' name=\'event\' />  <!-- <select name=\'template_id\'>  <option value=\'4\'>submission</option>  <option value=\'3\'>forum</option>  <option value=\'2\'>nodeshell</option>  <option value=\'8\'>friend</option>  </select>  -->  <input type=\'submit\' value=\'preview\' name=\'template_event\' class=\'preview_button\' />  <input type=\'text\' name=\'template_id\' size=5 value=\'4\' title=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12]\' />  <select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>  <option value=\'\' selected>helpful</option>  <option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>  <option value=\'<img src=\"\">\'>image</option>  <option value=\'<b></b>\'>bold</option>  <option value=\'<i></i>\'>italic</option>  </select>  <!--<td>&nbsp;<input type=\'checkbox\' name=\'between\' value=\'yes\'><td valign=\'middle\'>&nbsp;use between</td>-->  {* movement *}{include file=\"1549913.tpl\"} <input type=\'submit\' value=\'filter_by\' name=\'template_event\' />  <select name=\'search_type\' style=\'\'>  <option value=\'content\'>content</option>  <option value=\'user\'>user</option>  </select>  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'> </div>  {* owner_toolbar *}{include file=\"1549939.tpl\"} {/if} <div class=\'add_put\'>  <input type=\'submit\' value=\'delete\' name=\'event\' />  <span class=\'add_k_cmnt\'>&nbsp; u have {$user_k} </span>  <input type=\'submit\' value=\'K\' name=\'event\' />  <input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />  <input type=\'submit\' value=\'put\' name=\'event\' /> into <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />  <select name=\'nodeshell_id_select\'>  {foreach from=$bookmarks key=id item=name}<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach} </select>  <input type=\'submit\' value=\'go_to\' name=\'event\' /> </div> <br> {* get_node_userlist *}{include file=\"1549803.tpl\"}\r\n\r\n{else}{* read-only *}{include file=\"2264143.tpl\"}{/if} {*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4} </form> <!--end of central column--> </td></tr></table> {*footer*}{include file=\"1549377.tpl\"} ',3878935,1),(3882200,'lomolog-tpl',1559635,1,'no','private',0,332,'2008-04-12 17:12:15','2010-02-16 23:04:49',0,1055,NULL,'2008-04-12 17:12:15',14,'2008-09-28 19:43:01','template://3882200','0154968901908888015496890155963503882200','<html>\r\n  <head>\r\n    <meta http-equiv=\"Cache-Control\" content=\"Public\">\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n    <!-- AJAX CONNECTION --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script> \r\n    <!-- PANEL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script> \r\n    <!-- CHECK NEW MAIL --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script> \r\n    <!-- MENU --> <script language=\"JavaScript\" type=\"text/javascript\" src=\"/templates/1378272.tpl\"></script> \r\n    <!-- Prototype--> <script language=\"JavaScript\" type=\"text/javascript\" src=\"http://llllll.eu/script/jquery.js\"></script> \r\n    <title> {* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n    <!--\r\ndiv.node_content\r\ntable.node_stats\r\n  a\r\nul.node_children\r\n  li.root_photos\r\n    a.vector\r\n    div.th_cnt_photos\r\n      div.sub-header\r\n        input[type=\'checkbox\']\r\n        div.node_name\r\n          a\r\n      div.sub-content\r\n        img\r\n    ul\r\n      li.sub-list\r\n        a.vector\r\n        div.th_cnt\r\n          div.sub-header\r\n            input[type=\'checkbox\']\r\n            div.node_name\r\n              a\r\n          div.sub-content\r\n    -->\r\n    {literal}\r\n    <style>\r\n      body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {  \r\n        margin:0; \r\n        padding:0; \r\n      }\r\n      table {\r\n        border-collapse:collapse;\r\n        border-spacing:0;\r\n      }\r\n      \r\n      body {font:10px}\r\n      \r\n      \r\n      div.node_content {float:left; padding:0.5em 0.6em; background:#222;}\r\n      \r\n      table.node_stats {border:0.5em solid #222}\r\n      table.node_stats td {padding:0 0.2em}\r\n      \r\n      ul.node_children {clear:left; list-style-type:none;}\r\n      \r\n      li.root_photos {list-style-type:none;}\r\n      div.th_cnt_photos {width:100%; border-bottom:1.5em solid #111; overflow: hidden;}\r\n      div.th_cnt_photos div.sub-content {height:300px; width:8000px}\r\n      li.sub-list-a {width: 300px;}\r\n      \r\n      li.sub-list,li.sub-list-a {list-style-type:none; margin:0 0 0 50px; float:left;}\r\n      \r\n      \r\n      a.vector {display:none}\r\n            \r\n      div.sub-header {background: #333; height: 4em}\r\n      div.sub-content {background: ;}\r\n      div.sub-content img {margin: 0 1px 0 0;position:relative; z-index:-1}\r\n      \r\n      li.sub-list div.th_cnt, li.sub-list-a div.th_cnt {border:1px solid #222; border-right:0.5em solid #222}\r\n      li.sub-list div.sub-header, li.sub-list-a div.sub-header {background: #000; position:relative; height:50px;}\r\n      li.sub-list div.sub-header div.IeIsShit, li.sub-list-a div.sub-header div.IeIsShit {margin: 0 0 0 50px; padding: 0.2em 0.2em 0.2em 1em;}\r\n      li.sub-list div.sub-header img, li.sub-list-a div.sub-header img { position:absolute;top:0;left:0;border-right:0.5em solid #222;}\r\n      li.sub-list div.sub-content, li.sub-list-a div.sub-content {background: #222;}\r\n    </style>\r\n    \r\n    <script type=\"text/javascript\">\r\n    <!--\r\n      $(document).ready(function(){\r\n        $(\'div.th_cnt_photos div.sub-content img\').css({\'visibility\':\'hidden\'});\r\n      });\r\n      \r\n      $(window).load(function(){\r\n        $(\'div.th_cnt_photos div.sub-content img\').each(function (n) {\r\n          var img2div = document.createElement(\'div\');\r\n          $(img2div).css({ \'background\':\'url(\'+$(this).attr(\"src\")+\') no-repeat\', \'width\': $(this).width()+\'px\', \'height\': $(this).height()+\'px\', \'float\':\'left\', \'marginRight\':\'1px\'});\r\n          $(this).replaceWith(img2div);\r\n        });\r\n        \r\n        $(\'div.th_cnt_photos div.sub-content\').mousemove(function(e){\r\n          var percento = $(window).width() / 100;\r\n          var percent  = e.pageX / percento;\r\n          if (a != percent || a == 0) {\r\n\r\n        \r\n            if (a > percent) {\r\n              this.style.marginLeft = (this.offsetLeft + 10)+\'px\';\r\n            } else {\r\n              this.style.marginLeft = (this.offsetLeft - 10)+\'px\';\r\n            }\r\n            var a = percent;\r\n          }alert(\'a=\'+a+\' p=\'+percent);\r\n        });/*\r\n        $(\'div.th_cnt_photos div.sub-content\').bind(\'mousedownd\', function() {\r\n          $(this).mousemove(function(e){\r\n            var percento = $(window).width() / 100;\r\n            var percent  = e.pageX / percento;\r\n            if (a != percent || a == 0) {\r\n              if (a > percent) {\r\n                this.style.marginLeft = (this.offsetLeft + 10)+\'px\';\r\n              } else {\r\n                this.style.marginLeft = (this.offsetLeft - 10)+\'px\';\r\n              }\r\n              var a = percent;\r\n            }\r\n          });\r\n        });*/        \r\n      });\r\n          \r\n    //-->\r\n    </script>\r\n    {/literal}\r\n  </head>\r\n  \r\n  <body>\r\n    <div class=\'node_content\'>\r\n    {$node.node_content}\r\n    </div>\r\n    <table class=\'node_stats\'>\r\n      <tr><td>node: </td><td><a href=\'/id/{$node.node_id}\'>{$node.node_name|strip_tags}</a></td></tr>\r\n      <tr><td>parent: </td><td><a href=\'/id/{$node.node_parent}\'>{$node.node_parent_name|strip_tags}</a></td></tr>\r\n      <tr><td>owner: </td><td><a href=\'/id/{$node.node_creator}\'>{$node.owner}</a></td></tr>\r\n    </table>\r\n    {include file=\"3882249.tpl\"}\r\n    \r\n  </body>\r\n</html>',1549689,1),(3882249,'p_log-get_threaded',1432202,1,'yes','private',0,332,'2008-04-12 17:36:42','2010-02-16 23:04:49',0,171,NULL,'2008-04-12 17:36:42',14,'2008-04-13 05:03:52','template://3882249','015496890190888801549689015596350143220203882249','{math equation=\"x/8\" x=$node.vector_depth assign=\"crd\"}{get_threaded_children link=\'yes\' listing_amount=$listing_amount offset=$offset ordearby=$listing_order}\r\n<ul class=\'node_children\'>{section name=child loop=$get_threaded_children}{if $get_threaded_children[child].template_id neq 1549834}\r\n{*position in tree*}{math equation=\"(x/8)-y\" x=$get_threaded_children[child].depth y=$crd assign=\"hierarch\"}{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_prev].depth y=$crd assign=\"prev_depth\"}{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_next].depth y=$crd assign=\"next_depth\"}\r\n{*depth in hierarchy*}{if $smarty.section.child.last}{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}{else}{math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"}{/if}\r\n{*root_id decka*}{str_split string=$get_threaded_children[child].node_vector name=hroot length=8}{eval var=$str_split.hroot.$crd assign=\"h_root\"}{str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8}{eval var=$str_split.proot.$crd assign=\"p_root\"}{str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8}{eval var=$str_split.nroot.$crd assign=\"n_root\"}\r\n{*depth in hierarchy*}{math equation=\"(x-y)-1\" x=$hierarch y=$prev_depth assign=\"p_depth\"}{math equation=\"x-1\" x=$hierarch assign=\"ph_depth\"}{math equation=\"x-y\" x=$next_depth y=$hierarch assign=\"c_depth\"}{if $smarty.section.child.last}{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}{elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq \'linked\'}{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}{elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'}{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}{else}{math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"}{/if}{math equation=\"x+1\" x=$crd assign=\"starter\"}\r\n\r\n{*obsah childu*}\r\n{capture name=child_container}\r\n<div class=\'sub-header\'>{if $hierarch neq 1}\r\n{if $child.synapse_creator neq \'\'}<img src=\'{get_image_link id=$get_threaded_children[child].synapse_creator}\' width=\'50\' alt=\'SYNAPSE CREATOR\' {if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> {else} <img src=\'{get_image_link id=$get_threaded_children[child].node_creator}\' width=\'50\' alt=\'{$get_threaded_children[child].login}\' onclick=\"km();sm(\'{$get_threaded_children[child].login|escape:\"html\"}\',\'{$get_threaded_children[child].node_creator}\',\'{$node.node_id}\')\" {if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> {/if}<div class=\'IeIsShit\'>\r\n<a href=\'/id/{$get_threaded_children[child].node_creator}\' {if $node.node_system_access neq \'private\'}class=\'msgNick\'{/if}>{$get_threaded_children[child].login}</a>\r\n{/if}\r\n<input type=\'checkbox\' value=\'{$get_threaded_children[child].node_id}\' name=\'node_chosen[]\' />\r\n{$get_threaded_children[child].node_created|date_format:\"%d.%m.%Y. - %H:%M:%S\"}\r\n{if $child.node_updated} (modif: {$get_threaded_children[child].node_updated|date_format:\"%d.%m.%Y. - %H:%M:%S\"}){/if}\r\n{if $get_threaded_children[child].node_updated > $node.last_visit}<span class=\'most_important\'>updated</span>{/if}\r\n<div class=\'node_name\'>{if $get_threaded_children[child].node_name eq \'\'}\r\n  <a href=\'/id/{$get_threaded_children[child].node_id}\'>enter node {$get_threaded_children[child].node_id}</a>\r\n{else}\r\n  <a href=\'/id/{$get_threaded_children[child].node_id}\'>{$get_threaded_children[child].node_name|stripslashes|strip_tags}</a>\r\n{/if}{if $get_threaded_children[child].node_creator eq $user_id || $get_threaded_children[child].node_permission eq \'master\'}| <a href=\'/id/{$get_threaded_children[child].node_id}/1961033\'>conf</a>{/if}\r\n</div>{if $hierarch neq 1}</div>{/if}\r\n</div>\r\n<div class=\'sub-content\'>{$get_threaded_children[child].node_content|nl2br}</div> \r\n{/capture} \r\n\r\n{*stromcek prestri sa*}\r\n{if $smarty.section.child.first && $sterter < $hierarch}{section name=sta loop=$ph_depth}<li><ul>{/section}{/if}\r\n{if $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}{section name=sta loop=$p_depth}<li><ul>{/section}\r\n{elseif $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch}{section name=sta loop=$p_depth}<li><ul>{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\'}{section name=sta loop=$ph_depth}<li><ul>{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\'}{section name=sta loop=$hp_depth}<li><ul>{/section}{/if}\r\n  <li class=\'{if $hierarch eq 1}root_photos{elseif $hierarch eq 2}sub-list-a{else}sub-list{/if}\'>\r\n    <a href=\'/id/{$get_threaded_children[child].node_parent}\' class=\'vector\'>{$get_threaded_children[child].node_vector}</a>\r\n    <div class=\'th_cnt{if $hierarch eq 1}_photos{/if}\'  id=\'sub{$get_threaded_children[child].node_id}\'>\r\n      {$smarty.capture.child_container}\r\n    </div>{if $hierarch eq 1}<a href=\"#\" onclick=\"return false;\" class=\"s_right\"> &gt;&gt;&gt;&gt; </a>{/if}\r\n{if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id}\r\n{section name=con loop=$c_depth}\r\n  <ul>\r\n    <li>\r\n{/section}\r\n\r\n{elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'}\r\n    <ul>{elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq \'linked\'}<ul>{else}\r\n  </li>\r\n{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}\r\n{section name=fin loop=$h_depth}\r\n  </ul>\r\n</li>\r\n{/section}{/if}\r\n{/if}{/section}\r\n</ul>',1549689,1),(3923830,'nju-nuevo',2436573,1,'no','private',0,332,'2008-04-26 20:18:58','2010-02-16 23:04:49',0,729,NULL,'2008-04-26 20:18:58',4,'2008-05-04 01:40:52','template://3923830','00000224014068380243657303923830','<div style=\'text-align: center; margin-bottom: 20; padding: 5px; wordwrap: break-word; width: 666px \'>\r\n{get_nodes_by_parent parent=2569224 listing_amount=3 offset=1} {foreach from=$get_nodes_by_parent item=node}{if $node.external_link neq \"session://fook\"}\r\n<div style=\'position: relative; float: right; top: 0; width: 75%; margin-left: 30% \'>\r\n<div class=\'header\' style=\'text-align: center \'> <a href=\'/id/{$node.node_id}\'>{$node.node_name}</a> by <a href=\'/id/{$node.user_id}\'>{$node.login}</a>@{$node.node_created|date_format:\"%d.%m.%Y. - %H:%M:%S\"} </div> <div style=\'text-align: left; height: 2em\'> {$node.node_content|strip_tags|truncate:120|stripslashes}\r\n</div>\r\n</div> {/if} {/foreach}\r\n<a href=/id/2569224 alt=\"akcie ...\" title=\"akcie ...\">\r\n<div style=\"caption-side: left; width: 23%; background: #6DAE42; color: #000; margin-bottom: 20px\">\r\n<b>AKCIE: </b>\r\n</div>\r\n</a>\r\n</div>\r\n\r\n\r\n<div style=\'text-align: center; margin-bottom: 20; padding: 5px; wordwrap: break-word; width: 666px \'>\r\n{get_nodes_by_parent parent=2141033 listing_amount=3 offset=1} {foreach from=$get_nodes_by_parent item=node}{if $node.external_link neq \"session://fook\"}\r\n<div style=\'position: relative; float: right; top: 0; width: 75%; margin-left: 30% \'>\r\n<div class=\'header\' style=\'text-align: center \'> <a href=\'/id/{$node.node_id}\'>{$node.node_name}</a> by <a href=\'/id/{$node.user_id}\'>{$node.login}</a>@{$node.node_created|date_format:\"%d.%m.%Y. - %H:%M:%S\"} </div> <div style=\'text-align: left; height: 2em\'> {$node.node_content|strip_tags|truncate:120|stripslashes}\r\n</div>\r\n</div> {/if} {/foreach}\r\n<a href=/id/2141033 alt=\"video ...\" title=\"video ...\">\r\n<div style=\"caption-side: left; width: 23%; background: #6DAE42; color: #000\">\r\n<b>VIDEO: </b>\r\n</div>\r\n</a>\r\n</div>\r\n\r\n<div style=\'text-align: center; margin-bottom: 20; padding: 5px; wordwrap: break-word; width: 666px \'>\r\n{get_nodes_by_parent parent=1478948 listing_amount=3 offset=1} {foreach from=$get_nodes_by_parent item=node} {if $node.external_link neq \"session://fook\"}\r\n<div style=\'position: relative; float: right; top: 0; width: 75%; margin-left: 25% \'>\r\n<div class=\'header\' style=\'text-align: center \'> <a href=\'/id/{$node.node_id}\'>{$node.node_name}</a> by <a href=\'/id/{$node.user_id}\'>{$node.login}</a>@{$node.node_created|date_format:\"%d.%m.%Y. - %H:%M:%S\"} </div> <div style=\'text-align: left; height: 2em\'> {$node.node_content|strip_tags|truncate:120|stripslashes}\r\n</div>\r\n</div> {/if} {/foreach}\r\n<a href=/id/1478948 alt=\"galeria ...\" title=\"galeria ...\">\r\n<div style=\"caption-side: left; width: 23%; background: #6DAE42; color: #000 \">\r\n<b>GALERIA: </b>\r\n</div>\r\n</a>\r\n</div>\r\n\r\n<div style=\'text-align: center; margin-bottom: 20; padding: 5px; wordwrap: break-word; width: 666px \'>\r\n{get_nodes_by_parent parent=2591985 listing_amount=3 offset=1} {foreach from=$get_nodes_by_parent item=node} {if $node.external_link neq \"session://fook\"}\r\n<div style=\'position: relative; float: right; top: 0; width: 75%; margin-left: 25% \'>\r\n<div class=\'header\' style=\'text-align: center \'> <a href=\'/id/{$node.node_id}\'>{$node.node_name}</a> by <a href=\'/id/{$node.user_id}\'>{$node.login}</a>@{$node.node_created|date_format:\"%d.%m.%Y. - %H:%M:%S\"} </div> <div style=\'text-align: left; height: 2em\'> {$node.node_content|strip_tags|truncate:120|stripslashes}\r\n</div>\r\n</div> {/if} {/foreach}\r\n<a href=/id/2591985  alt=\"odkazy ...\" title=\"odkazy ...\">\r\n<div style=\"caption-side: left; width: 23%; background: #6DAE42; color: #000 \">\r\n<b>ODKAZY: </b>\r\n</div>\r\n</a>\r\n</div>',2436573,1),(3924053,'novy frshv teplak',2561514,1,'no','private',0,332,'2008-04-26 22:31:55','2010-02-16 23:04:49',0,7,NULL,'2008-04-26 22:31:55',4,'2008-04-26 22:32:10','template://3924053','0000022401406838024365730256151403924053','{* header *}{include file=\"1549864.tpl\"} {if $user_id eq false} <center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> {/if} <table width=\'100%\'><tr> <!--left column--> <td valign=\'top\' align=\'center\' width=\'23%\'> {* node_settings *} {include file=\"1549925.tpl\"} {* get_poll_box *} {include file=\"1549834.tpl\"}<br><img src=/images/nodes/1/0/101.gif border=1></td> <!--end of left column--> <!--main central column--> <td width=666 valign=\'top\'> {*node_content*} {include file=\"1549916.tpl\"} {*nju::*} {include file=\"3923830.tpl\"} {*showing form for adding child node*} <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'method=\'post\' name=\'formular\'> {if $permissions.w eq true}{*addnode*}{include file=\"1548927.tpl\"}{/if} {*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4} </form> <!--end of central column--> </td></tr></table> {*footer*}{include file=\"1549377.tpl\"}',2436573,1),(3931784,'me+a|',3851274,1,'yes','public',0,332,'2008-04-29 13:40:41','2010-02-16 23:04:49',0,63,NULL,'2008-04-29 13:40:41',3931784,'2009-03-16 11:31:53','template://3931784','015496890190888801549689012148890385127403931784','<style>{literal}\r\nbody {background:white;}\r\n.t1 {display:none}\r\n{/literal}</style>\r\n\r\n<div style=\"margin:0 0 0 50%; border:1px solid red\"><img src=\"http://x86.sk/~marin/lalal.jpg\" style=\"margin:0 0 0 -400px\"></div>\r\n',1549689,1),(3963469,'tmplt',3976313,1,'no','public',0,332,'2008-05-10 13:00:25','2010-02-16 23:04:49',0,195,NULL,'2008-05-10 13:00:25',2,'2008-11-17 12:14:49','template://3963469','00000101007920110397631303963469','<html>\r\n<head>\r\n<meta http-equiv=\"Cache-Control\" content=\"Public\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n\r\n<!-- AJAX CONNECTION --> \r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script> \r\n\r\n<!-- PANEL --> <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/panel.js\"></script> \r\n\r\n<!-- CHECK NEW MAIL --> \r\n<script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/check_new_mail.js\"></script> \r\n\r\n{if $node.node_id eq 24} \r\n   <!-- MAIL SCRIPT -->  \r\n   <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script> \r\n{/if} \r\n\r\n<!-- MENU --> \r\n<script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/templates/1378272.tpl\"></script> \r\n\r\n<!-- CSS --> \r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/id/4296665/download\"\r\nmedia=\"screen\"> \r\n\r\n<title> {* title.tpl *}{include file=\"791948.tpl\"} {if $new_mail eq\r\ntrue}|{$new_mail}_{$new_mail_name}{/if}</title>\r\n\r\n\r\n</head>\r\n\r\n<body>\r\n<!-- here you can realize yourself -->\r\n<div class=\"t1\">\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$user_id}/\' action=\'/id/{$node.node_id}/{if $action\r\nneq false}{$action}{/if}\' method=\'post\'>[ \r\n<a href=\'/id/1/\'>main</a> ----\r\n<a href=\'/id/101/\'>kyberia</a> ----\r\n<a href=\'/id/3863860/\'>bookmarks</a><a href=\'/id/19\'> /19</a>\r\n ] :: [\r\n<a href=\'/id/24\'>mail</a> ----\r\n<a href=\'/id/23\'>last</a> ----\r\n<a href=\'/id/3777728\'>K!</a> ----\r\n<a href=\'/id/27\'>ludia</a> ----\r\n<a href=\'/id/21\'>blogz</a> ] :: [\r\n<a href=\'/id/{$user_id}/\'>me</a>\r\n<a href=\'/id/{$user_id}/1961033\'>(conf)</a> -----\r\n<!-- <a href=\'/id/20\'>clanky</a> ---- -->\r\n<!-- <a href=\'/id/29\'>news</a> ---- -->\r\n<!-- <a href=\'/id/1058182\'>forumz</a> ---- -->\r\n<a href=\'/id/25\'>search</a> ----\r\n<a href=\'/id/1017832\'>help</a> ]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n</form>\r\n</div>\r\n<div class=\"t2\"></div>\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div> <script\r\nlanguage=\'JavaScript\' type=\'text/javascript\'>p =\r\ndocument.getElementById(\"panel\");</script>\r\n{if $new_mail eq true}\r\n<center><a href=\'/id/24\' class=\'mail\'>mas {$new_mail} new mail||posledny od {$new_mail_name}\r\n{$new_mail_user_id}</a></center>\r\n{/if}\r\n\r\n{if $error eq true}\r\n<center><span align=\'center\' class=\'most_important\'>{$error}</span></center>\r\n{/if}\r\n<div id=\"mnu\"></div>',3976313,1),(3966062,'template',3645017,1,'no','public',0,332,'2008-05-11 15:32:33','2010-02-16 23:04:49',0,93,NULL,'2008-05-11 15:32:33',14,'2008-05-11 17:25:41','template://3966062','00000101007920110364501703966062','<html>\r\n  <head>\r\n    <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n    <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\r\n    <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\'\r\nhref=\'/templates/2083975.tpl\' />\r\n\r\n    <!-- AJAX CONNECTION -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/ajax/XHConn.js\"></script>\r\n\r\n    <!-- USER MENU PANEL JS -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n\r\n    <!-- CHECK NEW MAIL -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/check_new_mail.js\"></script>\r\n        \r\n    <!-- LOGGED OUT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/logged_out.js\"></script>\r\n\r\n    <!-- MAIL SCRIPT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n\r\n    <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n  </head>\r\n\r\n  <body>\r\n    \r\n    {if $user_id eq true}\r\n    <div class=\"t1\">\r\n    <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'\r\nmethod=\'post\'>\r\n    <center>\r\n    <a href=\'/id/1/\'>main</a> ----\r\n    <a href=\'/id/101/\'>kyberia</a> ----\r\n    <a href=\'/id/3555832\'>bookmarks</a>[<a href=\'/id/19\'>b</a>] ----\r\n    <a href=\'/id/24\'>posta</a> ----\r\n    <a href=\'/id/3065925\'>uschildren</a> ----\r\n    <a href=\'/id/23\'>last</a> ----\r\n    <a href=\'/id/15\'>k NEW</a> ----\r\n    <a href=\'/id/27\'>ppl</a> ----\r\n    <a href=\'/id/21\'>blogz</a> ----\r\n    <a href=\'/id/2836882\'>ntpd</a> ----\r\n    <a href=\'/id/1058182\'>forumz</a> ----\r\n    <a href=\'/id/25\'>search</a> ----\r\n    <a href=\'/id/{$user_id}\'>userinfo</a>[<a href=\'/id/{$user_id}/1961033\'>conf</a>] \r\n----\r\n    <a href=\'/id/1017832\'>help</a> ----\r\n    <input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n    </center>\r\n    </form>\r\n    </div><div class=\"t2\"></div>\r\n    {/if}\r\n    \r\n    {if $error eq true}\r\n      <center><span class=\'most_important\'>{$error}</span></center>\r\n    {/if}\r\n    {if $new_mail eq true}\r\n      <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from\r\n{$new_mail_name}</a></center>\r\n    {/if}\r\n\r\n<!-- USER MENU PANEL -->\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div>\r\n<script language=\'JavaScript\' type=\'text/javascript\'>p =\r\ndocument.getElementById(\"panel\");</script>',3645017,1),(3974103,'test node',3976313,1,'no','private',0,332,'2008-05-14 00:25:06','2010-02-16 23:04:49',0,275,NULL,'2008-05-14 00:25:06',3974103,'2008-05-14 16:57:32','template://3974103','00000101007920110397631303974103','{* header *}{include file=\"1549864.tpl\"}\r\n<link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/3819836.tpl\'\r\n/>\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.nextSibling.style.display == \'block\' || this.nextSibling.style.display == \'\') {\r\n            this.nextSibling.style.display = \'none\';\r\n         } else {\r\n            this.nextSibling.style.display = \'block\';\r\n         }\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n//-->\r\n</script>\r\n{/literal}\r\n\r\n<table width=100%><tr>\r\n<td valign=\'top\' width=20% class=\"books_left\">\r\n<br />\r\n{* K_wallet *}{include file=\"3819953.tpl\"}<br />\r\n<table>\r\n  <tr><td>\r\n      <center>\r\n\r\n        <form method=\"post\" style=\"padding:0; margin:0\">\r\n          your K nodes for last:\r\n          <input type=\"text\" name=\"interval\" style=\"width:20px\" />\r\n          <input type=\"submit\" value=\"Hour\" />\r\n        </form>\r\n        {get_temp_k}\r\n        {foreach from=$get_temp_k item=k}\r\n            {if $k.node_creator == $user_id}\r\n              <span class=\"most_important\">{$k.count} k</span>\r\n              <a href=\"/id/{$k.node_id}/\">{$k.node_name|stripslashes|truncate:30:\"...\":true}</a>\r\n{$k.k}k\r\n              <br />\r\n            {/if}\r\n        {/foreach}\r\n      </center>\r\n  </td></tr>\r\n</table>\r\n\r\n  {* user_submissions_children *}{include file=\"3820015.tpl\"}\r\n  <center><span class=\'important\'>Friends online</span></center><div>{* active_friends *}{include file=\"3819817.tpl\"}</div>\r\n  <h3>users on.line</h3><div>{* active_users *}{include file=\"3819906.tpl\"}</div>\r\n</td>\r\n\r\n\r\n<td valign=\'top\' width=60% class=\"books_center\">\r\n  \r\n<form method=\'post\' action=\'/id/{$node.node_id}\' name=\"bookmarks_full\">\r\n{if $bookstyl eq 0}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n<h3>{if $bookmark_category.node_name neq false}\r\n <a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'important\'> {$bookmark_category.sum}</span>\r\n        {/if}\r\n{/if}\r\n</h3><div>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\'\r\n{if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}\r\n{if $bookmarks.node_user_subchild_count eq false and\r\n    $bookmarks.lastdescendant_created < $bookmarks.last_visit and\r\n    $bookmarks.node_updated < $bookmarks.last_visit} class=\'empty\'\r\n{/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n{/if}\r\n<br>\r\n{/foreach}\r\n</div>\r\n{/foreach}\r\n\r\n\r\n{/if}\r\n{if $bookstyl eq 1}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n\r\n{/if}\r\n<br />\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n\r\n{/if}\r\n{if $bookstyl eq 2}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n<br>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n{/if}\r\n\r\n{if $bookstyl eq 3}\r\n\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\' href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n<br>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n{if $bookmarks.node_user_subchild_count neq false || $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n{if $bookmarks.node_name|stripslashes}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n\r\n{/if}\r\n<br>\r\n{/if}\r\n{/foreach}\r\n\r\n<br>\r\n{/foreach}\r\n\r\n{/if}\r\n\r\n\r\n<br>\r\n\r\n<select name=\"bookmark_category_id\">\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {if $bookmark_category.node_name neq false}\r\n      <option value=\"{$bookmark_category.node_id}\">{$bookmark_category.node_name|stripslashes|truncate:40:\"...\":true}</option>\r\n    {/if}\r\n  {/foreach}\r\n  <option value=\"\">...no category</option>\r\n</select>\r\n<input type=\'submit\' name=\'event\' value=\'set_bookmark_category\' /><br /><br />\r\n\r\n\r\n<span class=\"bookcat0\"><input type=\'radio\' value=\'0\' name=\'bookstyl\'> all</span>\r\n<span class=\"bookcat2\"><input type=\'radio\' value=\'2\' name=\'bookstyl\'> new children</span>\r\n<span class=\"bookcat3\"><input type=\'radio\' value=\'3\' name=\'bookstyl\'> new children & new descendant</span>\r\n<input type=\'submit\' name=\'event\' value=\'bookstyl\' />\r\n</form>\r\n\r\n</td>\r\n\r\n<td valign=\'top\' width=20% class=\"books_right\">\r\n  <div>{* new_articles *}{include file=\"3820099.tpl\"}</div>\r\n  <div>{* new_forums *}{include file=\"3820159.tpl\"}</div>\r\n  <div>{* new_blogs *}{include file=\"3820175.tpl\"}</div>\r\n  <div>{* New books in library *}{include file=\"3830897.tpl\"}</div>\r\n  <h3>Last friends submissions</h3><div>{* Last friends submissions *}{include\r\nfile=\"3827651.tpl\"}</div>\r\n<a href=\'/id/3576777/\'>more...</a>\r\n</td>\r\n\r\n</tr></table>\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',3976313,1),(3980670,'classic.tpl',3976313,1,'no','private',0,332,'2008-05-16 00:48:54','2010-02-16 23:04:49',0,43,NULL,'2008-05-16 00:48:54',2,'2008-05-16 01:07:28','template://3980670','00000101007920110397631303980670','<html>\r\n<head>\r\n<meta http-equiv=\"Cache-Control\" content=\"Public\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n\r\n<!-- AJAX CONNECTION --> \r\n<script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script> \r\n\r\n<!-- PANEL --> <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/panel.js\"></script> \r\n\r\n<!-- CHECK NEW MAIL --> \r\n<script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/check_new_mail.js\"></script> \r\n\r\n{if $node.node_id eq 24} \r\n   <!-- MAIL SCRIPT -->  \r\n   <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script> \r\n{/if} \r\n\r\n<!-- MENU --> \r\n<script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/templates/1378272.tpl\"></script> \r\n\r\n<!-- CSS --> \r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/templates/2070521.tpl\"\r\nmedia=\"screen\"> \r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"/templates/973161.tpl\"\r\nmedia=\"handheld\">\r\n\r\n<title> {* title.tpl *}{include file=\"791948.tpl\"} {if $new_mail eq\r\ntrue}|{$new_mail}_{$new_mail_name}{/if}</title>\r\n\r\n\r\n</head>\r\n\r\n<body>\r\n<!-- here you can realize yourself -->\r\n<div class=\"t1\">\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$user_id}/\' action=\'/id/{$node.node_id}/{if $action\r\nneq false}{$action}{/if}\' method=\'post\'>[ \r\n<a href=\'/id/1/\'>main</a> ----\r\n<a href=\'/id/101/\'>kyberia</a> ----\r\n<a href=\'/id/3863860/\'>bookmarks</a><a href=\'/id/19\'> /19</a>\r\n ] :: [\r\n<a href=\'/id/24\'>mail</a> ----\r\n<a href=\'/id/23\'>last</a> ----\r\n<a href=\'/id/3777728\'>K!</a> ----\r\n<a href=\'/id/27\'>ludia</a> ----\r\n<a href=\'/id/21\'>blogz</a> ] :: [\r\n<a href=\'/id/{$user_id}/\'>me</a>\r\n<a href=\'/id/{$user_id}/1961033\'>(conf)</a> -----\r\n<!-- <a href=\'/id/20\'>clanky</a> ---- -->\r\n<!-- <a href=\'/id/29\'>news</a> ---- -->\r\n<!-- <a href=\'/id/1058182\'>forumz</a> ---- -->\r\n<a href=\'/id/25\'>search</a> ----\r\n<a href=\'/id/1017832\'>help</a> ]\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n</form>\r\n</div>\r\n<div class=\"t2\"></div>\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div> <script\r\nlanguage=\'JavaScript\' type=\'text/javascript\'>p =\r\ndocument.getElementById(\"panel\");</script>\r\n{if $new_mail eq true}\r\n<center><a href=\'/id/24\' class=\'mail\'>mas {$new_mail} new mail||posledny od {$new_mail_name}\r\n{$new_mail_user_id}</a></center>\r\n{/if}\r\n\r\n{if $error eq true}\r\n<center><span align=\'center\' class=\'most_important\'>{$error}</span></center>\r\n{/if}\r\n<div id=\"mnu\"></div>',3976313,1),(3993166,'_HEADER_coffee_fix-btn_preview',3556736,1,'no','public',1,332,'2008-05-20 15:51:36','2010-02-16 23:04:49',0,167,NULL,'2008-07-23 18:57:56',14,'2009-10-30 10:57:38','template://3993166','0000010100792011025850360355673603993166','<html>\r\n<head>\r\n  <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n  <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n  <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/3557478.tpl\' />\r\n  <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/4983755.tpl\' />\r\n  <!-- AJAX CONNECTION -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n  <!-- USER MENU PANEL JS -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n  <!-- CHECK NEW MAIL -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n  <!-- LOGGED OUT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/logged_out.js\"></script>\r\n  <!-- MAIL SCRIPT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n  <!-- MooTools -->\r\n    <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mootools-core-nc.js\"></script>\r\n    <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mootools-more.js\"></script>\r\n  <!-- ToggleThread -->\r\n    <script language=\"javascript\" type=\"text/javascript\" src=\"/templates/4977710.tpl\"></script>\r\n  <!-- QuickSearch -->\r\n    <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mt_quick_search.js\"></script>\r\n  <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n  <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n</head>\r\n\r\n<body>\r\n  {if $user_id eq true}\r\n<div class=\"t1\">\r\n    <center>[\r\n      <a href=\'/id/1/\'>main</a> -\r\n      <a href=\'/id/101/\'>kyberia</a> -\r\n      <a href=\'/id/{$user_id}/1573668\'>sub</a>\r\n      /<a href=\'/id/3576777/\'>fr</a>\r\n      /<a href=\'/id/3579407/\'>RE</a> -\r\n      <a href=\'/id/19\'>bookmarks</a> \r\n       /<a href=\'/id/3777777/\'>2</a>\r\n       /<a href=\'/id/3819850\'>pr</a>]:[\r\n      <a href=\"/id/24/\" {if $new_mail eq true} class=\"mail\" {/if}>mail</a> -\r\n      <a href=\'/chat/chat.htm\' target=\'_blank\'>chat</a> -\r\n      <a href=\'/id/23\'>last</a> -\r\n      <a href=\'/id/27\'>people</a> -\r\n      <a href=\'/id/21\'>blogz</a>]:[\r\n      <a href=\'/id/3777728/\'>kNEW</a>\r\n      /<a href=\'/id/1569351\'>noImg</a> -\r\n      <a href=\'/id/788016\'>CONS</a> -\r\n      <!--  <a href=\'/id/876611\'>senate</a>  -->\r\n      <!--  <a href=\'/id/20\'>clanky</a> - -->\r\n      <a href=\'/id/1058182\'>forumz</a>]:[\r\n      <a href=\'/id/{$user_id}\'>userinfo</a>\r\n      [<a href=\'/id/{$user_id}/1961033\'>setup</a>] -\r\n      <a href=\'/id/{$node.node_id}/1961033\' {if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}{else}style=\'color:#888\'{/if}>/conf</a>\r\n      </span>\r\n      <a href=\'/id/{$node.node_id}/2\'>/2</a> -\r\n      <a href=\'/id/25\'>search</a> -\r\n      <a href=\'/id/1017832\'>help</a>]\r\n      <input type=\"text\" name=\"quick_search\" id=\"quick_search\" value=\"Quick search...\" />\r\n      <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\' style=\'display:inline\'>\r\n        <input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n      </form>\r\n    </center>\r\n</div>\r\n<div class=\"t2\"></div>\r\n  {/if}\r\n  {if $error eq true}\r\n    <center><span class=\'most_important\'>{$error}</span></center>\r\n  {/if}\r\n  {if $new_mail eq true}\r\n      <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a></center>\r\n  {/if}\r\n<!-- USER MENU PANEL -->\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div>\r\n<script language=\'JavaScript\' type=\'text/javascript\'>p = document.getElementById(\"panel\");</script>',2585036,1),(4044750,'movment graph v3',1908888,1,'no','public',0,332,'2008-06-08 03:44:59','2010-02-16 23:04:49',0,150,NULL,'2008-06-08 03:44:59',14,'2009-02-02 19:23:14','template://4044750','0154968901908888015496890190888804044750','{get_userlist}\r\n<ACTIONS>\r\n  <TIME now=\'{$smarty.now|date_format:\'%Y-%m-%d %H:%M:%S\'}\'/>\r\n{foreach name=friends from=$active_friends item=active_friend}\r\n  <ACTION user_name=\'{$active_friend.login|strip_tags|escape:\"hexentity\"}\' user_id=\'{$active_friend.user_id}\' node_id=\'{$active_friend.user_action_id}\' node_name=\'{$active_friend.user_action|strip_tags|escape:\"hexentity\"}\' idle_m=\'{$active_friend.idle_time_minutes}\' idle_s=\'{$active_friend.idle_time_seconds}\' friend=\'true\' />\r\n{/foreach}\r\n\r\n{foreach name=users from=$active_users item=active_user} \r\n  <ACTION user_name=\'{$active_user.login|strip_tags|escape:\"hexentity\"}\' user_id=\'{$active_user.user_id}\' node_id=\'{$active_user.user_action_id}\' node_name=\'{$active_user.user_action|strip_tags|escape:\"hexentity\"}\' idle_m=\'{$active_user.idle_time_minutes}\' idle_s=\'{$active_user.idle_time_seconds}\' />\r\n{/foreach}\r\n</ACTIONS>\r\n',1549689,1),(4055387,'k.2_only_new',3556736,1,'no','public',0,332,'2008-06-11 16:02:25','2010-02-16 23:04:49',0,1282,NULL,'2008-06-11 16:02:25',4055387,'2008-06-11 16:08:31','template://4055387','0000010100792011025850360355673604055387','<!-- K | Hromi, edited by freezy, 20070929(patch by w) -->\r\n{* header *}{include file=\"1549864.tpl\"}\r\n{if $user_id eq false}\r\n    <center>{* loginbox *}{include file=\"1549885.tpl\"}</center>\r\n{else}\r\n{get_movement_params children_count=$node.node_children_count}\r\n<table>\r\n    <tr>\r\n        <td valign=\"top\" width=\"23%\">{* get_userlist *}{include\r\nfile=\"1549848.tpl\"}</td>\r\n        <td valign=\"top\">\r\n            <center>\r\n                    {if $node.node_id neq 4055387}\r\n                        <span class=\"important\">\r\n                            {get_k vector=$node.node_vector} in vector {$node.node_vector}\r\n                        </span>\r\n                        <span class=\"important\">\r\n                            newly CREATED K-valued nodes\r\n                            <form method=\"post\">\r\n                                Interval:\r\n                                <input type=\"text\" name=\"interval\">\r\n                                <input type=\"submit\" value=\"Days\">\r\n                            </form>\r\n                            <br />\r\n                            newly K-VALUED nodes <a href=\"/id/788016\">here</a>\r\n                        </span>\r\n                        {* movement *}{include file=\"1549913.tpl\"}\r\n                    {else}\r\n                        <span class=\"important\">\r\n                            newly CREATED K-valued nodes\r\n                            <form method=\"post\">\r\n                                Interval:\r\n                                <input type=\"text\" name=\"interval\">\r\n                                <input type=\"submit\" value=\"Days\">\r\n                            </form>\r\n                            <br />\r\n                            newly K-VALUED nodes <a href=\"/id/788016\">here</a>\r\n                        </span>\r\n                        {get_k}\r\n                        {* movement *}{include file=\"1549913.tpl\"}\r\n                    {/if}\r\n                    <br style=\"clear:left;\">\r\n            </center>\r\n            {foreach from=$get_k item=k}\r\n                {if $fook[$k.node_parent] neq true and $fook[$k.node_id] neq true and $ignore[$k.node_creator] neq true}\r\n                  {if $k.node_created > $node.last_visit}\r\n                    <table class=\"bordered\">\r\n                        <tr>\r\n                            <td align=\"center\" rowspan=\"2\" valign=\"top\">\r\n                                <a href=\"#{$k.node_id}\" title=\"skip\"><img border=\"0\" hspace=\"5\" width=\"50\" src={get_image_link id=$k.node_creator}></a>\r\n                                <span class=\"most_important\">{$k.k} k</span>\r\n                                <form action=\"/id/{$k.node_id}\" method=\"post\"><input type=\"submit\" name=\"event\" value=\"K\"></form>\r\n                                <a href=\"#{$k.node_id}\">skip</a>\r\n                            </td>\r\n                            <td class=\"header\" width=\"100%\">\r\n                                <a href=\"/id/{$k.node_id}/\">{$k.node_name|strip_tags}</a>\r\n                                in <a href=\"/id/{$k.node_parent}\">{$k.parent_name|strip_tags}</a>\r\n                                by <a href=\"/id/{$k.node_creator}\">{$k.creator}</a>\r\n                            </td>\r\n                        </tr>\r\n                        <tr>\r\n                            <td valign=\"top\">{$k.node_content|stripslashes|nl2br} <a name=\"{$k.node_id}\"></a></td>\r\n                        </tr>\r\n                    </table>\r\n                    <br />\r\n                  {/if}\r\n                {/if}\r\n            {/foreach}\r\n        </td>\r\n    </tr>\r\n</table>\r\n{/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',2585036,1),(4093604,'//nothing',4128533,1,'no','private',0,332,'2008-06-25 14:18:46','2010-02-16 23:04:49',0,29,NULL,'2008-06-25 14:18:46',4,'2008-07-09 11:00:43','template://4093604','021275010412853304093604','{get_movement_params children_count=$node.node_children_count}\r\n{include file=\"modules/header.tpl\"}\r\n {if $error eq true} <center><span style=\'error\'>{$error}</span></center> {/if} \r\n{if $user_id eq false} <center>{include file=\"modules/loginbox.tpl\"}</center>\r\n<br><br> {/if} \r\n<table width=\'100%\'><tr> <!--left column--> \r\n<td valign=\'top\' align=\'center\' width=\'23%\'>\r\n {* show node info *} {include file=\"modules/node_settings.tpl\"} \r\n{* showing poll *} {include file=\"modules/get_poll_box.tpl\"}\r\n<br> {*showing bookmark_statistics*}\r\n {include file=\"modules/get_bookmark_statistics_box.tpl\"}\r\n </td> <!--end of left column--> <!--main central column--> \r\n<td valign=\'top\'> {*showing node_content*} {include file=\"modules/node_content.tpl\"} <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\' name=\'formular\'> {if $permissions.w eq true}{include file=\"modules/addnode.tpl\"}{/if} </form> {get_nodes_by_parent parent=4128533 listing_amount=666 offset=$offset} <span class=\"important\">nodes::</span><br> {foreach from=$get_nodes_by_parent item=child} <!-- <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' value=\'{$child.node_id}\' name=\'node_chosen[]\'> -->  recycled:: <a href=\'/id/{$child.node_id}\'>{$child.node_id}||{$child.node_name}</a> :: {if $child.node_creator eq $user_id or $child.node_permission eq \'master\' or $child.node_permission eq \'op\'}(<a href=\'/id/{$child.node_id}/1961033\'>configure</a>){/if} (<a href=\'/id/{$child.node_creator}\'>{$child.login}</a>)<br> {/foreach} <br><br> <span class=\"important\">forum::</span> {include file=\"1549839.tpl\" children_type=4} <!--end of central column--> </td></tr></table> {include file=\"modules/footer.tpl\"} ',4093604,1),(4098591,'limin',4126137,1,'no','public',0,332,'2008-06-27 02:33:40','2010-02-16 23:04:49',0,164,NULL,'2008-06-27 02:33:40',14,'2010-01-13 03:34:37','template://4098591','0000010100792011009903130412613704098591','<html>\r\n<head>\r\n{if $node.node_name eq \'mail\'}\r\n<script>\r\nfunction vymena() {ldelim}\r\ndocument.formular.mail_to.value = document.formular.mail_to.value.toLowerCase() ;\r\ndocument.images[\'fricon\'].src = \'/images/users/\'+document.formular.mail_to.value+\'.gif\';\r\n{rdelim}\r\n\r\nfunction chngto(name,id) {ldelim}\r\ndocument.formular.mail_to.value = name ;\r\nname = name.toLowerCase() ;\r\ndocument.images[\'fricon\'].src = \'/images/nodes/\'\r\n+id.substr(0,1)+\'/\'+id.substr(1,1)+\'/\'+id+\'.gif\';\r\n{rdelim}\r\n</script>\r\n{/if}\r\n<meta http-equiv=\"Cache-Control\" content=\"Public\">\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<link rel=\'stylesheet\' type=\'text/css\' href=\'/templates/2019722.tpl\'>\r\n<title>{$user_id}@{$node.node_name}</title>\r\n</head>\r\n<body>\r\n{if $new_mail eq true}\r\n<div><center><a href=\'/id/24\'><b>kikni si tii {$new_mail}ks pisti, pislidni ti pisil(i) {$new_mail_name}</b></a></center></div>\r\n{/if}\r\n<center>\r\n<a href=\'/id/1/\'>r11t</a> ::\r\n<a href=\'/id/101/\'>kibirki</a> ::\r\n<a href=\'/id/102/\'>histirki</a> ::\r\n<a href=\'/id/876611/\'>spinich</a> ::\r\n<a href=\'/id/3555832\'>zilizki</a> ::\r\n<a href=\'/id/24\'>mi</a>|<a href=\'/id/1953327\'>il</a> ::\r\n<a href=\'/id/23\'>list</a> ::\r\n<a href=\'/id/3576777\'>friinds\' sibmissiins</a> ::\r\n<a href=\'/id/27\'>zivislici</a> ::\r\n<a href=\'/id/15\'>K!</a>|<a href=\'/id/788016\'>K-cinsciiisniss!</a> ::\r\n<a href=\'/id/64113\'>niwsy</a> ::\r\n<a href=\'/id/21\'>bligijimi</a>::\r\n<br>\r\n<a href=\'/id/{$user_id}/stats\'>{$user_id}</a> ::\r\n<a href=\'/id/{$user_id}/1961033\'>{$user_id}_cinf</a> ::\r\n{if $user_id eq \'2209\'}\r\n<a href=\'/id/4098591/1961033\'>TiPiL_cinf</a> ::\r\n<a href=\'/id/990313\'>mim-IN-ti</a>|<a href=\'/id/990313/2\'>/2</a> ::\r\n<a href=\'/id/4126221\'>niti</a>|<a href=\'/id/4126221/1961033\'>pid</a> :: \r\n<a href=\'/id/4126137\'>tmpl_node_shell</a>{/if}</center>\r\n<center><table border=0 ><tr><td><form enctype=\"multipart/form-data\" action=\'/id/24/\' method=\'post\'><input type=\'hidden\' name=\'event\' value=\'logout\'><input type=\'submit\' value=\'isc_hit\' tabindex=\'23\'></form></td><td><form enctype=\"multipart/form-data\" action=\'/id/25/\' method=\'post\'><input type=\"text\" name=\"search\" tabindex=\"1\" id=\"search\" value=\"{$smarty.post.search}\"><input type=\'submit\' name=\'template_event\' tabindex=\"2\" value=\'siirch\'></form></td>\r\n<!-- quick search CODE -->\r\n<td valign=top><font color=red><b>skus quick search</b></font></td><td><form method=\"get\" target=\"_blank\" action=\"http://google.com/search\"><input type=\"hidden\" name=\"q\" value=\"site:kyberia.sk\"><input type=\"text\" name=\"q\" size=\"50\" value=\"\"><input type=\"submit\" value=\"find\"></form></td></tr></table></center>\r\n</body>\r\n</html>',990313,1),(4098614,'iiiii',4126137,1,'no','public',0,332,'2008-06-27 03:00:19','2010-02-16 23:04:49',0,97,NULL,'2008-06-27 03:00:19',14,'2008-07-08 02:15:39','template://4098614','0000010100792011009903130412613704098614','{* header *}\r\n{if $user_id neq \'2209\'}{include file=\"4098591.tpl\"} {/if}\r\n\r\n{if $user_id eq false} <center>\r\n{* loginbox *}\r\n\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'> {$error} {if $permissions.r neq true} iii din\'t hivi pirmissiins fir viiwing this diti nidi{/if} {if $user_id eq false} <table>  <tr>  <td>ligin::</td>  <td><input tabindex=1 accesskey=l type=\'text\' name=\'login\' /></td>  <td>&nbsp;pisswird::</td><td><input tabindex=2 accesskey=p type=\'password\' name=\'password\' /></td>  <td><input tabindex=3 type=\'submit\' name=\'event\' value=\'login\' /></td>  </tr>  <tr>  <td></td>  <td colspan=3 align=\'center\'>nimi:: <input type=\'radio\' accesskey=n name=\'login_type\' value=\'name\' checked />  id:: <input type=\'radio\' accesskey=i name=\'login_type\' value=\'id\' /></td>  <td></td>  </tr> </table> <script language=\"JavaScript\" type=\"text/javascript\"> <!-- document.write(\"<input type=\'hidden\' name=\'screen_width\' value=\'\" + screen.width + \"\'><input type=\'hidden\' name=\'screen_height\' value=\'\" + screen.height + \"\'>\"); // --> </script> {/if} </form> \r\n\r\n</center>\r\n\r\n<br><br> {/if} \r\n<table width=\'100%\'>\r\n<tr> \r\n\r\n<!--left column--> \r\n<td valign=\'top\' align=\'center\' width=\'23%\'> \r\n{* node_settings *} \r\n\r\n<div id=\'left-panel\'> \r\n<table>  \r\n<tr>  \r\n<td colspan=\'2\' align=\'center\'><img src=\'{get_image_link id=$node.node_id}\' style=\'max-width:123px;\' /></td>  </tr>  \r\n<tr>  \r\n<td>nidi:</td>  \r\n<td><a href=\'/id/{$node.node_id}\'>{$node.node_name|strip_tags}</a></td>  \r\n</tr>  \r\n<tr>  \r\n<td>timpliti:</td>  \r\n<td><a href=\'/id/{$node.template_id}\'>{$node.template_id}</a></td>  \r\n</tr>  \r\n<tr>  \r\n<td>pirint:</td>  \r\n<td><a href=\'/id/{$node.node_parent}\'>{$node.node_parent_name|strip_tags}</a></td>  \r\n</tr>  \r\n<tr>  \r\n<td>iwnir:</td>  \r\n<td><a href=\'/id/{$node.node_creator}\'>{$node.owner}</a></td>  \r\n</tr> \r\n</table> \r\n<br/><br/> {* cwbe *}{include file=\'1555468.tpl\'} <table class=\'bordered\' id=\'node_perm\'>  \r\n<tr>  \r\n<td colspan=\'2\' align=\'center\' class=\'important\'>pirmissiins</td>  \r\n</tr>  \r\n<tr>  \r\n<td>iii:</td>  \r\n<td align=\'center\'>  {if $permissions.r}r,{/if} {if $permissions.w}w,{/if} {$node.node_permission} </td>  \r\n</tr>  \r\n<tr>  \r\n<td>sistim:</td>  \r\n<td align=\'center\'>{$node.node_system_access}</td>  \r\n</tr>  \r\n<tr>  \r\n<td>nit:</td>  \r\n<td align=\'center\'>{$node.node_external_access}</td>  \r\n</tr> \r\n</table> <br> <center><a href=\'/id/{$node.node_id}/1961036\'>niirins</a></center> <br> \r\n<center><a href=\'/id/{$node.node_id}/1961037\'>stits</a>|<a href=\'/id/{$node.node_id}/748131\'>bi_visit</a>|<a href=\'/id/{$node.node_id}/1908499\'>bi_K</a></center> <!-- <center><a href=\'/id/{$node.node_id}/offtopic\'>ifftipic</a></center> --> <center><a href=\'/id/{$node.node_id}/14\'>siirci</a></center> <center><a href=\'/id/{$node.node_id}/30\'>tiimit</a></center> <!-- <center><a href=\'/id/{$node.node_id}/links\'>links</a></center> --> <!-- <center><a href=\'/id/{$node.node_id}/print\'>print</a></center> --> {if $node.node_children_count neq 0} <center><a href=\'/id/{$node.node_id}/15\'>k</a></center> <center><a href=\'/id/{$node.node_id}/23\'>list</a></center> {/if} <center><a href=\'/id/{$node.node_id}/2224463\'>cimmindirs</a></center> <center><a href=\'/id/{$node.node_id}/1549314\'>pills</a></center> <span class=\'node_info2\'> <br>nidi viiwid {$node.node_views} timis <br>titil discindints::{$node.node_descendant_count} <br>titil childrin::{$node.node_children_count} {if $node.node_user_subchild_count neq false}</span> <br><span class=\'most_important\'>{$node.node_user_subchild_count} NIW</span> {/if} {if $node.k neq false} <br><span class=\'most_important\'>{$node.k} K</span><br><br> {/if} {if $offset neq false} <br><span class=\'important\'>ising iffsit:: {$offset} </span> {/if} <form action=\'/id/{$node.node_id}/\' method=\'post\'>  {if $node.node_bookmark neq \'yes\'} <input type=\'submit\' name=\'event\' value=\'book\' class=\'book_b\'>  {else} <input type=\'submit\' name=\'event\' value=\'unbook\' class=\'book_b\'>  {/if} <input type=\'submit\' name=\'event\' value=\'K\'>  {if $fook[$node.node_id] neq true} <br /><br /><input type=\'submit\' name=\'event\' value=\'fook\' class=\'book_b\'>  {/if} </form> {if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}<center><a href=\'/id/{$node.node_id}/1961033\'>cinfigiri</a></center>{/if} <center>shiw[ <a href=\'/id/{$node.node_id}/2\'>2</a> | <a href=\'/id/{$node.node_id}/3\'>3</a> ] <a href=\'/id/{$node.node_id}/3755160\'>flit</a></center> <br> {if $node.external_link eq \'db://user\' or $node.external_link eq \'session://user\' or $node.template_id eq 7} <a href=\'/id/{$node.node_id}/1970182\'>biikmirks</a><br /> <a href=\'/id/{$node.node_id}/1911535\'>mivimint</a><br /><br /> <a href=\'/id/{$node.node_id}/1757900\'>nidishills</a><br /> <a href=\'/id/{$node.node_id}/1761254\'>firims</a><br /> <a href=\'/id/{$node.node_id}/1573668\'>sibmissiins</a>{if $node.node_id eq $user_id} [<a href=\"/id/1522695\">ri</a>]{/if}<br /> <a href=\'/id/{$node.node_id}/1773535\'>irticlis</a><br /> <a href=\'/id/{$node.node_id}/1757556\'>bligs</a><br /> <a href=\'/id/{$node.node_id}/1757626\'>ditis</a><br /> <a href=\'/id/{$node.node_id}/1752584\'>K</a><br /><br /> <a href=\'/id/{$node.node_id}/1769388\'>friinds</a><br /> {/if} </div> \r\n\r\n{* get_poll_box *} \r\n\r\n{include file=\"1549834.tpl\"} <br> \r\n\r\n{*get_bookmark_statistics_box*}\r\n\r\n <!--showing bookmark statistic table --> <table class=\'bordered\' id=\'bookstat\'> {get_bookmark_statistics} {foreach from=$get_bookmark_statistics item=bookmark_statistic} <tr><td><a href=\'/id/{$bookmark_statistic.user_id}\'>{$bookmark_statistic.login|replace:\' \':\'&#09;\'|truncate:15:\"...\":true}</a></td><td>{$bookmark_statistic.node_user_subchild_count}</td></tr> {/foreach} </table> <!--end of bookmark statistic table -->\r\n\r\n</td> \r\n<!--end of left column--> \r\n\r\n<!--main central column--> \r\n<td width=666 valign=\'top\'>\r\n{*node_content*} \r\n{if $user_id == \"1859269\"} <img src=\"http://www.dreams.sk/marion.php\"> {/if} <div class=\'bordered\' id=\'topic\'>  {$node.node_content|nl2br|replace:\' ... \':\'&hellip;\'|replaceLocalURLs} </div><br /><br />\r\n\r\n{*showing form for adding child node*} \r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'method=\'post\' name=\'formular\'>\r\n{if $permissions.w eq true}\r\n{*addnode*}\r\n\r\n<!-- ADDNODE | MARIN --> \r\n{if $permissions.w eq true} <div class=\'add_title\' style=\'margin-bottom:2pt;\'>  titli ir kiiwirds:: <input type=\'text\' name=\'node_name\' value=\'{$post_vars.node_name}\'>  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NI HTML <!-- <input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;cidi &nbsp;&nbsp;&nbsp;&nbsp;<input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;cidi &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iptiinil diti fili::<input type=\'file\' name=\'data_file\'>  &nbsp;{$user_quota}bitiz --> </div><!-- class=\'add_title\' end --> <textarea name=\'node_content\' id=\'node_content\'>{$post_vars.node_content|escape:\"html\"|stripslashes}</textarea>  <div class=\'toolbar\'>  <input type=\'submit\' value=\'add\' name=\'event\' />  <!-- <select name=\'template_id\'>  <option value=\'4\'>sibmissiin</option>  <option value=\'3\'>firim</option>  <option value=\'2\'>nidishill</option>  <option value=\'8\'>friind</option>  </select>  -->  <input type=\'submit\' value=\'priviiw\' name=\'template_event\' class=\'preview_button\' />  <input type=\'text\' name=\'timpliti_id\' size=5 value=\'4\' title=\'[sibmissiin: 4 | firim: 3 | nidishill: 2 | irticli: 5 | diti: 12]\' />  <select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>  <option value=\'\' selected>hilpfil</option>  <option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>  <option value=\'<img src=\"\">\'>imigi</option>  <option value=\'<b></b>\'>bild</option>  <option value=\'<i></i>\'>itilic</option>  </select>  <!--<td>&nbsp;<input type=\'checkbox\' name=\'between\' value=\'yes\'><td valign=\'middle\'>&nbsp;isi bitwiin</td>-->  \r\n\r\n{* movement *}\r\n{include file=\"1549913.tpl\"} \r\n\r\n<input type=\'submit\' value=\'filter_by\' name=\'template_event\' />  <select name=\'search_type\' style=\'\'>  <option value=\'content\'>cintint</option>  <option value=\'user\'>isir</option>  </select>  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'> </div>  \r\n\r\n{* owner_toolbar *}\r\n{include file=\"1549939.tpl\"} \r\n\r\n{/if} <div class=\'add_put\'>  <input type=\'submit\' value=\'delete\' name=\'event\' />  <span class=\'add_k_cmnt\'>&nbsp; i hivi {$user_k} </span>  <input type=\'submit\' value=\'K\' name=\'event\' />  <input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />  <input type=\'submit\' value=\'put\' name=\'event\' /> inti <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />  <select name=\'nodeshell_id_select\'>  {foreach from=$bookmarks key=id item=name}<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach} </select>  <input type=\'submit\' value=\'go_to\' name=\'event\' /> </div> <br> \r\n\r\n{* get_node_userlist *}\r\n{include file=\"1549803.tpl\"}\r\n\r\n{else}\r\n{* read-only *}\r\n\r\n<div class=\'toolbar\'>  <input type=\'submit\' name=\'event\' value=\'K\' />  <input type=\'text\' name=\'node_content\' style=\"width:123px; height:20px;\" class=\'bordered\' />  <input type=\'submit\' name=\'template_event\' value=\'filter_by\' />  <select name=\'search_type\' />  <option value=\'content\'>cintint</option>  <option value=\'user\'>isir</option>  </select>  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\' />  \r\n{* movement *}\r\n\r\n{include file=\"1549913.tpl\"}\r\n\r\n<br style=\'clear:left\' /> </div> <br />\r\n{/if} \r\n{*get_threaded_children*}\r\n\r\n{if $template_event eq \'preview\'} \r\n<table>  \r\n<tr>  \r\n<td valign=\'top\' rowspan=\'2\' >\r\n  <img hspace=\'5\' src=\'{get_image_link id=$user_id}\'></td>\r\n<td width=\'100%\' valign=\'top\'>\r\n\r\n<table width=\'100%\'>\r\n<tr class=\'header\'>\r\n<td align=\'center\'>PRIVIIW if {$post_vars.node_name}</td>\r\n</tr>\r\n\r\n<tr>\r\n<td>{$post_vars.node_content|preview}</td>\r\n</tr>\r\n\r\n</table>\r\n</table> \r\n{* end of preview *} \r\n{elseif $template_event eq \'filter_by\'} \r\n{get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} \r\n\r\n{elseif $node.node_user_subchild_count eq true} \r\n{get_threaded_children offset=0 link=\'yes\' listing_amount=23232323232 time=$node.last_visit orderby=$listing_order } \r\n\r\n<!--<center><span class=\'most_important\'>pizir disli k zmini finkcnisti sistimi, NIW prispivki (vsitki) si zibriziji id nijstirsiihi k nijnivsiimi zhiri dili</span></center>--> \r\n\r\n{else} {get_threaded_children link=\'yes\' listing_amount=$listing_amount offset=$offset orderby=$listing_order} {/if} \r\n{foreach from=$get_threaded_children item=child}{if $child.template_id neq 1549834 and $child.external_link neq \"session://fook\"} <table width=\'666\'> \r\n{*IGNORE USER CONDITION*}{if $ignore[$child.node_creator] neq true} \r\n{*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} {*/if*} \r\n\r\n<tr class=\'vector\'>  \r\n<td colspan=\'3\' class=\'vector\'><a href=\'/id/{$child.node_parent}\' class=\'childVector\'>{$child.node_vector}</a></td>  \r\n</tr>  \r\n\r\n<tr>  \r\n<td width=\'{math equation=\"(x-y)-8\" x=$child.depth y=$node.vector_depth}%\'></td>  \r\n\r\n<td valign=\'top\' rowspan=\'2\'> {* put.Ty hack *} {if $child.synapse_creator neq \'\'} <img src=\'{get_image_link id=$child.synapse_creator}\' width=\'50\' hspace=\'5\' alt=\'SINIPSI CRIITIR\' {if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> \r\n{else} <img src=\'{get_image_link id=$child.node_creator}\' width=\'50\' hspace=\'5\' alt=\'{$child.login}\' onclick=\"km();sm(\'{$child.login|escape:\"html\"}\',\'{$child.node_creator}\',\'{$node.node_id}\')\" \r\n{if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> {/if} \r\n{*end of put.Ty hack *} </td>  \r\n\r\n<td width=\'{math equation=\"100-(x-y)\" x=$child.depth y=$node.vector_depth}%\'>  \r\n\r\n<table class=\'bordered\' width=\'100%\'><tr class=\'header\'>  \r\n<td>  &nbsp;\r\n<a href=\'/id/{$child.node_creator}\' {if $node.node_system_access neq \'private\'}class=\'msgNick\'{/if}>{$child.login}</a> {if $child.user_action neq false} &nbsp;[likicii :: <a href=\'/{$child.user_actions}/\'>{$child.user_action}</a>] {/if} &nbsp;&nbsp;<input type=\'checkbox\' value=\'{$child.node_id}\' name=\'node_chosen[]\'> &nbsp;&nbsp;<span title=\'{$child.login}\'>{$child.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}</span> {if $child.node_updated} (midif: {$child.node_updated|date_format:\"%d.%m.%Y - %H:%M:%S\"}){/if} {if $child.k > 0} [<span class=\'most_important\'>{$child.k}K</span>] {/if} , livil: {math equation=\"(x-y-8)/8+1\" x=$child.depth y=$node.vector_depth}, <a href=\'/id/{$child.node_parent}\' class=\'childVector\' title=\'Link ni pirinti, {$child.node_parent}\' alt=\'Link ni pirinti, {$child.node_parent}\'>IP</a> {if $child.node_created > $node.last_visit and !$child.orphan}<span class=\'most_important\'>&nbsp;&nbsp;NIW</span> {elseif $child.node_created > $node.last_visit}<span class=\'most_important\'>&nbsp;&nbsp;SIRITKI</span>{/if} {if $child.node_status eq \'linked\'} &nbsp;<span class=\'important\'>HIRDLINK</span> {/if} {if $child.node_updated > $node.last_visit}<span class=\'most_important\'>!!CINTINT CHINGID!!</span>{/if} {if $bookmarks.last_visit eq true and $child.lastdescendant_created > $bookmarks.last_visit}<span class=\'most_important\'>!!NIW DISCINDINT!!</span>{/if} <div style=\'text-align:center;\'> {if $child.node_name eq \'\'} <a href=\'/id/{$child.node_id}\'>intir nidi {$child.node_id}</a> <a href=\'/id/{$child.node_id}\'>intir nidi {$child.node_id}</a> {else} <a href=\'/id/{$child.node_id}\'>{$child.node_name|stripslashes|strip_tags}</a> {/if} {if $child.node_creator eq $user_id || $child.node_permission eq \'master\'}| <a href=\'/id/{$child.node_id}/1961033\'>cinf</a>{/if} </div></td></tr> <tr><td>{if $permissions.r}{$child.node_content|stripslashes|nl2br|replace:\'...\':\'&hellip;\'|replaceLocalURLs}{else}iii din\'t hivi pirmissiins fir viiwing this diti nidi{/if}</td></tr> </table></td> {/if}{*IGNORE USER CONDITION end*} </tr> </table> <br>{/if} {/foreach} <table align=\'center\' class=\'movement\'><tr> <td><input type=\'hidden\' name=\'get_children_offset\' value=\'{$offset}\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'<\' class=\'fw\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'<<\' class=\'ffw\'></td> <td><input name=\'get_children_move\' type=\'submit\' value=\'>>\' class=\'bw\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'>\' class=\'bbw\'></td> </tr></table>  </form> \r\n<!--end of central column--> \r\n</td>\r\n</tr>\r\n</table> \r\n\r\n{*footer*}\r\n<!-- in memoriam ergond [/id/258] 23.7.2002 --> \r\n<!-- in memoriam kovo [/id/2417] 11.1.2008 --> \r\n<!-- tymto /id/2510464 nas dna 7.7.2006 opustil Hromi [/id/548] --> \r\n\r\n<center>&copy; kibirii.sk v2.3 - silin\'s rivingi [firivir]<br> prividzkivitil strinky rici zi nic<br> \r\n</center> \r\n\r\n<!-- google analytics --> <script type=\"text/javascript\"> var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\"); document.write(unescape(\"%3Cscript src=\'\" + gaJsHost + \"google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E\")); </script> <script type=\"text/javascript\"> var pageTracker = _gat._getTracker(\"UA-4494123-1\"); pageTracker._initData(); pageTracker._trackPageview(); </script> \r\n</body> \r\n</html> ',990313,1),(4099350,'GCI_box',4128533,1,'no','private',0,332,'2008-06-27 11:21:41','2010-02-16 23:04:49',0,27,NULL,'2008-06-27 11:21:41',4,'2008-07-09 10:51:01','template://4099350','021275010412853304099350','<table class=\'bordered\' id=\'bookstat\'>\r\n<td align=\"center\" valign=\"middle\">\r\n<center>\r\n<h4>Global Consciousness Index</h4>\r\n<small> 4 more info click on the image</small>\r\n\r\n\r\n<iframe src=\"http://gcp.djbradanderson.com/?index=yes&noText\" height=\"48\" width=\"48\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\" ></iframe>\r\n</td>\r\n</center>\r\n</table> ',4099350,1),(4121865,'Nejde internet',63556,1,'yes','public',64,332,'2008-07-07 04:21:14','2010-02-16 23:04:49',6,2624,NULL,'2008-12-15 18:11:47',4123830,'2008-07-08 13:31:16','template://4121865','00000101000635390006355604121865','Ide internet?\r\n<small>(c) huba, topic&system.tpl by lemon_xd</small>',63556,1),(4123668,'Re: test vecy',123456,1,'no','private',0,332,'2008-07-07 17:32:35','2010-02-16 23:04:49',0,62,NULL,'2008-07-07 17:32:35',4,'2008-07-07 17:55:06','template://4123668','0012345604123668','<html> <head> <meta http-equiv=\"Cache-Control\" content=\"Public\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> <link rel=\'stylesheet\' type=\'text/css\' href=\'/templates/3598053.tpl\'> <title>{$node.node_name}</title> {if $node.node_name eq \'mail\'} <script> function vymena() {ldelim} document.formular.mail_to.value = document.formular.mail_to.value.toLowerCase() ; document.images[\'fricon\'].src = \'/images/users/\'+document.formular.mail_to.value+\'.gif\'; {rdelim} function chngto(name,id) {ldelim} document.formular.mail_to.value = name ; name = name.toLowerCase() ; document.images[\'fricon\'].src = \'/images/nodes/\' +id.substr(0,1)+\'/\'+id.substr(1,1)+\'/\'+id+\'.gif\'; {rdelim} </script> {/if} </head> <body> <center> <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'> <a href=\'/id/1/\'>:main:</a> -- <a href=\'/id/101/\'>:kyberia:</a> -- <a href=\'/id/102/\'>:hysteria:</a> -- <a href=\'/id/19\'>:bookmarks:</a> -- <a href=\'/id/24\'>:mail:</a> -- <a href=\'/chat/chat.htm\'>:chat:</a> -- <a href=\'/id/23\'>:last:</a> -- <a href=\'/id/15\'>:k!:</a> -- <a href=\'/id/27\'>:ludia:</a> -- <a href=\'/id/21\'>:blogs:</a> -- <a href=\'/id/876611\'>:senat:</a> -- <a href=\'/id/25\'>:search:</a> -- <a href=\'/id/{$user_id}/1961033\'>:setup:</a> -- <a class=\"important\" href=\'/id/1017832\'>:help:</a> -- <input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'> </form> </center> {if $new_mail eq true} <center><a href=\'/id/24\'><b>u have {$new_mail} new mail,last from {$new_mail_name}</b></a></center> {/if} {if $error eq true} <center><span align=\'center\' class=\'most_important\'>{$error}</span></center> {/if}\r\n\r\n',0,1),(4123830,'neide_tmpl',2209,1,'yes','public',0,332,'2008-07-07 18:36:27','2010-02-16 23:04:49',0,573,NULL,'2008-07-07 18:36:27',14,'2008-07-08 16:45:50','template://4123830','0000220904123830','{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false} <center>\r\n{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> {/if} <table width=\'100%\'><tr> <!--left column--> <td valign=\'top\' align=\'center\' width=\'23%\'> \r\n{* node_settings *} {include file=\"1549925.tpl\"} \r\n{* get_poll_box *} {include file=\"1549834.tpl\"} <br> \r\n{*get_bookmark_statistics_box*} {include file=\"1549386.tpl\"} </td> \r\n<!--end of left column--> \r\n\r\n<!--main central column--> \r\n<td width=\'50%\' valign=\'top\'> \r\n{*node_content*}<div class=\'bordered\' id=\'topic\' width=\'50%\'>  \r\n\r\nNa čo všetko sa dá odpovedať \'Nejde internet\'?<br>\r\n<br> <br>\r\n\r\nnapríklad:<br>\r\nkedy pôjde trolejbus? (nejde internet)<br>\r\nprečo nehrá rádio? (nejde internet)<br>\r\ndošlo to už? (nejde internet)<br> <br>\r\n\r\nprosim pouzivat:<br>\r\n&lt;small&gt; &lt;/small&gt; = &lt;font style=\"font-size: xx-small\"&gt; &lt;/font&gt;\r\n<br> <br>\r\n\r\n{if $user_id eq false} <center>\r\n{* loginbox *}{include file=\"1549885.tpl\"}</center> \r\n{else} {get_movement_params children_count=10} <table>  <tr> <td valign=\"top\">  <center>  {if $node.node_id neq 15} <span class=\"important\">  {get_k vector=$node.node_vector} <b>K-LIST</b><br> in vector \'Nejde internet\' </span>  {else} <span class=\"important\">  newly CREATED K-valued nodes <form method=\"post\">  Interval: <input type=\"text\" name=\"interval\">  <input type=\"submit\" value=\"Days\">  </form>  <br />  newly K-VALUED nodes <a href=\"/id/788016\">here</a>  </span>  {get_k} \r\n{* movement *}{include file=\"1549913.tpl\"} {/if} <br style=\"clear:left;\">  </center>  \r\n{foreach from=$get_k item=k} {if $fook[$k.node_parent] neq true and $fook[$k.node_id] neq true and $ignore[$k.node_creator] neq true} <table >  <tr>  <td align=\"center\" rowspan=\"2\" valign=\"top\">  <img border=\"0\" hspace=\"5\" width=\"50\" src={get_image_link id=$k.node_creator}>  <span class=\"most_important\">{$k.k} k</span>  <form action=\"/id/{$k.node_id}\" method=\"post\"></form>  </td>  \r\n<td class=\"header\" width=\"66%\">  <a href=\"/id/{$k.node_id}/\">{$k.node_name|strip_tags}</a>  in <a href=\"/id/{$k.node_parent}\">{$k.parent_name|strip_tags}</a>  by <a href=\"/id/{$k.node_creator}\">{$k.creator}</a>  </td>  </tr>  <tr>  <td valign=\"top\">A: {$k.node_content|stripslashes|nl2br|replace:\'<br/>\':\' \'|replace:\'<br>\':\' \'|replace:\'<small>\':\'<font size=0px><!--//\'|replace:\'</small>\':\'//--></font>\'}<br><a href=/id/{$k.node_creator}>B</a>: (nejde internet.)  </td>  </tr>  </table>  <br />  {/if} {/foreach} </td>  </tr> </table> {/if} \r\n<p align=center class=important style=\'color:#ff0000\'>offtopic sa v tomto prípade musí mazat</p>\r\n<center><small>(c) huba, topic&system.tpl by lemon_xd</small></center>\r\n</div><br /> \r\n\r\n{*showing form for adding child node*} <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'method=\'post\' name=\'formular\'> {if $permissions.w eq true}\r\n{*addnode*}\r\n\r\n<!-- ADDNODE | MARIN --> \r\n{if $permissions.w eq true} \r\n<div class=\'add_title\' style=\'margin-bottom:2pt;\'>  title or keywords:: <input type=\'text\' name=\'node_name\' value=\'{$post_vars.node_name}\'>  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NO HTML <!-- <input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;code &nbsp;&nbsp;&nbsp;&nbsp;<input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;code &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;optional data file::<input type=\'file\' name=\'data_file\'>  &nbsp;{$user_quota}bytez --> </div>\r\n<!-- class=\'add_title\' end --> \r\n<textarea name=\'node_content\' id=\'node_content\'>{$post_vars.node_content|escape:\"html\"|stripslashes}</textarea>  \r\n<div class=\'toolbar\'>  <input type=\'submit\' value=\'add\' name=\'event\' />  \r\n<!-- <select name=\'template_id\'>  \r\n<option value=\'4\'>submission</option>  \r\n<option value=\'3\'>forum</option>  \r\n<option value=\'2\'>nodeshell</option>  \r\n<option value=\'8\'>friend</option>  \r\n</select>  -->  \r\n\r\n<input type=\'submit\' value=\'preview\' name=\'template_event\' class=\'preview_button\' />  \r\n<input type=\'text\' name=\'template_id\' size=5 value=\'4\' title=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12]\' />  \r\n<select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>  \r\n<option value=\'\' selected>helpful</option>  \r\n<option value=\'<font style=\"font-size: xx-small\"> </font>\'>small</option>\r\n<option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>  \r\n<option value=\'<img src=\"\">\'>image</option>  \r\n<option value=\'<b></b>\'>bold</option>  \r\n<option value=\'<i></i>\'>italic</option>  \r\n</select>  \r\n\r\n<!--<td>&nbsp;<input type=\'checkbox\' name=\'between\' value=\'yes\'><td valign=\'middle\'>&nbsp;use between</td>-->  \r\n\r\n{* movement *}\r\n{include file=\"1549913.tpl\"} \r\n<input type=\'submit\' value=\'filter_by\' name=\'template_event\' />  \r\n<select name=\'search_type\' style=\'\'>  \r\n<option value=\'content\'>content</option>  \r\n<option value=\'user\'>user</option>  \r\n</select>  \r\n<input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'> </div>  \r\n\r\n{* owner_toolbar *}\r\n{include file=\"1549939.tpl\"} {/if} \r\n\r\n<div class=\'add_put\'>  <input type=\'submit\' value=\'delete\' name=\'event\' />  \r\n<span class=\'add_k_cmnt\'>&nbsp; u have {$user_k} </span>  \r\n<input type=\'submit\' value=\'K\' name=\'event\' />  \r\n<input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />  \r\n<input type=\'submit\' value=\'put\' name=\'event\' /> into <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />  <select name=\'nodeshell_id_select\'>  \r\n{foreach from=$bookmarks key=id item=name}\r\n<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach} \r\n</select>  \r\n<input type=\'submit\' value=\'go_to\' name=\'event\' /> </div> <br> \r\n{* get_node_userlist *}{include file=\"1549803.tpl\"} \r\n\r\n{else}\r\n{* read-only *}{include file=\"2264143.tpl\"}{/if} \r\n{*get_threaded_children*}\r\n\r\n\r\n{if $template_event eq \'preview\'} \r\n<table>  \r\n<tr>  \r\n<td valign=\'top\' rowspan=\'2\' ><img hspace=\'5\' src=\'{get_image_link id=$user_id}\'></td>  \r\n<td width=\'66%\' valign=\'top\'>  \r\n<table width=\'66%\'>  \r\n<tr class=\'header\'><td align=\'center\'>PREVIEW of {$post_vars.node_name}\r\nA</td>\r\n</tr>  \r\n\r\n<tr>\r\n<td>{$post_vars.node_content|preview}</td>\r\n</tr>  \r\n\r\n</table> \r\n</table> \r\n{* end of preview *} \r\n\r\n{elseif $template_event eq \'filter_by\'} \r\n{get_threaded_children listing_amount=23232322323 offset=$offset types=$children_types search_type=$post_vars.search_type search=$post_vars.node_content} \r\n{elseif $node.node_user_subchild_count eq true} \r\n{get_threaded_children offset=0 link=\'yes\' listing_amount=23232323232 time=$node.last_visit orderby=$listing_order } \r\n\r\n<!--<center><span class=\'most_important\'>pozor doslo k zmene funkcnosti systemu, NEW prispevky (vsetky) sa zobrazuju od najstarsieho k najnovsiemu zhora dolu</span></center>--> \r\n\r\n{else}\r\n {get_threaded_children link=\'yes\' listing_amount=$listing_amount offset=$offset orderby=$listing_order} {/if}\r\n\r\n {foreach from=$get_threaded_children item=child}\r\n{if $child.template_id neq 1549834 and $child.external_link neq \"session://fook\"} \r\n<table width=\'480\'> {*IGNORE USER CONDITION*}\r\n\r\n{if $ignore[$child.node_creator] neq true} \r\n{*if $child.node_created > $node.last_visit and $child.depth>$node.vector_depth*} {*/if*} \r\n<tr class=\'vector\'>  \r\n<td colspan=\'3\' class=\'vector\'>\r\n<a href=\'/id/{$child.node_parent}\' class=\'childVector\'>{$child.node_vector}</a></td>  \r\n</tr>  \r\n\r\n<tr>  \r\n<td width=\'{math equation=\"(x-y)-8\" x=$child.depth y=$node.vector_depth}%\'></td>  \r\n<td valign=\'top\' rowspan=\'2\'> \r\n\r\n{* put.Ty hack *} {if $child.synapse_creator neq \'\'} \r\n<img src=\'{get_image_link id=$child.synapse_creator}\' width=\'50\' hspace=\'5\' alt=\'SYNAPSE CREATOR\' {if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> {else} <img src=\'{get_image_link id=$child.node_creator}\' width=\'50\' hspace=\'5\' alt=\'{$child.login}\' onclick=\"km();sm(\'{$child.login|escape:\"html\"}\',\'{$child.node_creator}\',\'{$node.node_id}\')\" {if $node.node_system_access neq \'private\'}class=\'icoImg\'{/if}/> {/if} {*end of put.Ty hack *} \r\n\r\n</td>  \r\n<td width=\'{math equation=\"100-(x-y)\" x=$child.depth y=$node.vector_depth}%\'>  \r\n<table class=\'bordered\' valign=\'top\' width=\'66%\'>\r\n<tr class=\'header\' valign=\'top\'>  \r\n<td>  &nbsp;\r\n<a href=\'/id/{$child.node_creator}\' \r\n{if $node.node_system_access neq \'private\'}class=\'msgNick\'{/if}>\r\n{$child.login}</a> \r\n{if $child.user_action neq false} &nbsp;[lokacia :: <a href=\'/{$child.user_actions}/\'>{$child.user_action}</a>] {/if}\r\n &nbsp;&nbsp;\r\n<input type=\'checkbox\' value=\'{$child.node_id}\' name=\'node_chosen[]\'> &nbsp;&nbsp;\r\n<span title=\'{$child.login}\'>{$child.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}</span> \r\n{if $child.node_updated} (modif: {$child.node_updated|date_format:\"%d.%m.%Y - %H:%M:%S\"}){/if}\r\n {if $child.k > 0} [<span class=\'most_important\'>{$child.k}K</span>] {/if} , level: {math equation=\"(x-y-8)/8+1\" x=$child.depth y=$node.vector_depth}, <a href=\'/id/{$child.node_parent}\' class=\'childVector\' title=\'Link na parenta, {$child.node_parent}\' alt=\'Link na parenta, {$child.node_parent}\'>UP</a> \r\n{if $child.node_created > $node.last_visit and !$child.orphan}\r\n<span class=\'most_important\'>&nbsp;&nbsp;NEW</span> \r\n{elseif $child.node_created > $node.last_visit}<span class=\'most_important\'>&nbsp;&nbsp;SIRôTKA</span>{/if} \r\n{if $child.node_status eq \'linked\'} &nbsp;<span class=\'important\'>HARDLINK</span> {/if} \r\n{if $child.node_updated > $node.last_visit}<span class=\'most_important\'>!!CONTENT CHANGED!!</span>{/if} \r\n{if $bookmarks.last_visit eq true and $child.lastdescendant_created > $bookmarks.last_visit}<span class=\'most_important\'>!!NEW DESCENDANT!!</span>{/if} \r\n<div style=\'text-align:center;\'> \r\n{if $child.node_name eq \'\'} <a href=\'/id/{$child.node_id}\'>enter node {$child.node_id}</a> <a href=\'/id/{$child.node_id}\'>enter node {$child.node_id}</a> {else}\r\n <a href=\'/id/{$child.node_id}\'>{$child.node_name|stripslashes|strip_tags}</a> {/if} \r\n{if $child.node_creator eq $user_id || $child.node_permission eq \'master\'}| \r\n<a href=\'/id/{$child.node_id}/1961033\'>conf</a>{/if} </div></td></tr> \r\n\r\n<tr><td>\r\n{if $permissions.r}\r\n\r\nA: {$child.node_content|replace:\' ... \':\'&hellip;\'|replaceLocalURLs|replace:\'<br/>\':\' \r\n\'|replace:\'<br>\':\' \'|replace:\'<small>\':\'<p><font\r\nsize=0px><!--//\'|replace:\'</small>\':\'//--></font></p>\'|stripslashes} <br/>\r\n<a href=\"/id/{$child.node_creator}\">{$child.login}:</a> (nejde internet.)\r\n</td></tr></table></td>\r\n\r\n{else}you don\'t have permissions for viewing this data node{/if}{/if}\r\n{*IGNORE USER CONDITION end*}  </tr> </table> {/if} {/foreach} \r\n<table align=\'center\' class=\'movement\'>\r\n<tr> \r\n<td>\r\n<input type=\'hidden\' name=\'get_children_offset\' value=\'{$offset}\'></td> <td>\r\n<input type=\'submit\' name=\'get_children_move\' value=\'<\' class=\'fw\'></td> \r\n<td>\r\n<input type=\'submit\' name=\'get_children_move\' value=\'<<\' class=\'ffw\'></td> <td><input name=\'get_children_move\' type=\'submit\' value=\'>>\' class=\'bw\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'>\' class=\'bbw\'></td> </tr></table> \r\n\r\n </form> \r\n<!--end of central column--> </td></tr></table> \r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',0,1),(4123921,'neide_content',1548898,1,'no','private',0,332,'2008-07-07 19:19:02','2010-02-16 23:04:49',0,23,NULL,'2008-07-07 19:19:02',14,'2008-07-07 19:24:15','template://4123921','00000101010598780154889804123921','<div class=\'bordered\' id=\'topic\'>  {$node.neide_content|nl2br|replace:\' ... \':\'&hellip;\'|replaceLocalURLs} \r\n<a href=\"/id/{$child.node_creator}\">{$child.node_creator}: (neide internet.)</td></tr> </table></td>\r\n</div>\r\n',1548898,1),(4125546,'predam',2699630,1,'no','private',0,332,'2008-07-08 11:51:24','2010-02-16 23:04:49',1,46,NULL,'2008-07-08 11:51:24',4,'2008-07-08 15:04:54','template://4125546','0269963004125546','edit ceny!\r\n\r\nPredam listok na <b>Masters Of Rock</b> 10-13.7 2008 (Vizovice)\r\n(~170km od bratislavy)\r\n\r\nDEF LEPPARD (UK)\r\nTobias Sammet´s AVANTASIA (International)\r\nAPOCALYPTICA (Fin)\r\nWITHIN TEMPTATION (Nl)\r\n...\r\n\r\n<a target=\\\'_blank\\\' href=\\\"http://www.mastersofrock.cz/\\\">http://www.mastersofrock.cz/</a>\r\n\r\n4 dnovy\r\n\r\ncena: 2ks za 2000,-sk\r\nlokacia: bratislava\r\ndetaily: posta',0,1),(4126093,'conf_tmpl',4126137,1,'no','public',0,332,'2008-07-08 14:11:00','2010-02-16 23:04:49',0,27,NULL,'2008-07-08 14:11:00',14,'2008-07-08 14:15:50','template://4126093','0000010100792011009903130412613704126093','<!-- configure by Daniel, edited by lemon_xd -->\r\n{if $header_id neq true}\r\n<html>\r\n    <head>      \r\n        <meta http-equiv=\"Default-Style\" content=\"kyberia\">\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n        <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\'>\r\n        <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n        <!-- AJAX CONNECTION -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n        <!-- CHECK NEW MAIL -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n    </head>\r\n    <body>\r\n        {if $user_id eq true}{include file=\"1549959.tpl\"}{/if}\r\n        {if $error eq true}<center><span class=\'most_important\'>{$error}</span></center>{/if}\r\n        {if $new_mail eq true}<center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a></center>{/if}\r\n{/if}\r\n	   \r\n	   <table style=\'width: 100%; align:center;\' id=\'configure\'>\r\n		   <tr>\r\n				<td align=\'center\'>\r\n				   {if $user_id eq false}<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br /><br />{/if}\r\n				   {if $node.node_creator eq $user_id or $node.node_permission eq \'master\'}\r\n				   <form method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n					   <table align=\'center\'>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'node_name\' value=\'{$node.node_name}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_node_name\' /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td>\r\n								   <select name=\'node_system_access\'>\r\n									   <option value=\'public\' {if $node.node_system_access eq \'public\'}selected{/if}>public</option>\r\n									   <option value=\'moderated\' {if $node.node_system_access eq \'moderated\'}selected{/if}>moderated</option>\r\n									   <option value=\'private\' {if $node.node_system_access eq \'private\'}selected{/if}>private</option>\r\n									   <option value=\'cube\' {if $node.node_system_access eq \'cube\'}selected{/if}>cube</option>\r\n									   <option value=\'crypto\' {if $node.node_system_access eq \'crypto\'}selected{/if}>crypto</option>\r\n								   </select>\r\n							   </td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_system_access\' /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td><input name=\'node_external_access\' type=\'checkbox\' value=\'yes\' {if $node.node_external_access eq \'yes\'}checked{/if} /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_external_access\' /></td>\r\n						   </tr>\r\n						   {if $node.node_creator eq $user_id}\r\n						   <tr>\r\n							   <td><input type=\'file\' name=\'description_image\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_image\' /></td>\r\n						   </tr>\r\n						   {/if}\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'template_id\' value=\'{$node.template_id}\' title=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12 | user: 7]\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_template_id\' /></td>\r\n						   </tr>\r\n					   </table>\r\n					   <table>\r\n							<tr>\r\n								<td>apply on vector ??? <input type=\'checkbox\' name=\'apply_on_vector\' /></td>\r\n							</tr>\r\n					   </table>\r\n				   </form>\r\n				   \r\n				   <form action=\'/id/{$node.node_id}/\' method=\'post\'>\r\n					   <table>\r\n						   <tr>\r\n							   <td colspan=\'2\'>vector: {$node.node_vector}</td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'new_parent\' value=\'{$node.node_parent}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'set_parent\' /></td>\r\n						   </tr>\r\n						   {if $node.node_creator eq $user_id}\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'external_link\' value=\'{$node.external_link}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'set_external_link\' /></td>\r\n						   </tr>\r\n						   {/if}\r\n					   </table>\r\n				   </form>\r\n				   \r\n				   {if $node.node_creator eq $user_id}\r\n				   <form action=\'/id/{$node.node_id}/\' method=\'post\'>\r\n					   <input type=\'text\' name=\'owner\' value=\'{$node.owner}\' />\r\n					   <input type=\'submit\' name=\'event\' value=\'set_creator\' />\r\n				   </form>\r\n				   {/if}\r\n				   \r\n				   <form method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n					   {if $node.node_system_access eq \'crypto\'}crypto password: {$crypto_pass}{/if}\r\n					   <input type=\'file\' name=\'data_file\' />\r\n					   <input type=\'submit\' name=\'event\' value=\'upload_data_file\' /><br />\r\n					   <input type=\'checkbox\' name=\'unzip\' />unzip?\r\n					   <input type=\'checkbox\' name=\'gallery\'>gallery<br /><br />\r\n				   </form>\r\n				   \r\n				   {if $user_id eq $node.node_id}\r\n				   <form action=\'/id/{$node.node_id}/\' method=\'post\'>\r\n					   <table align=\'center\'>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'k_wallet\' value=\'{$k_wallet}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'k_wallet\' /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'header_id\' value=\'{$header_id}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'set_header_template\' /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'listing_amount\' value=\'{$listing_amount}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'set_listing_amount\'  /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td>\r\n								   <select name=\'listing_order\'>\r\n									   <option value=\'desc\'  {if $smarty.session.listing_order eq \'desc\'}selected{/if}>najnovsie hore</option>\r\n									   <option value=\'asc\' {if $smarty.session.listing_order eq \'asc\'}selected{/if}>najstarsie hore</option>\r\n								   </select>\r\n							   </td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'set_listing_order\' /></td>\r\n						   </tr>\r\n					   </table>\r\n					   <br />\r\n					   <table class=\'bordered\'>\r\n						   <tr><td>old password</td><td><input name=\'old_password\' type=\'password\' /></td></tr>\r\n						   <tr><td>new password</td><td><input name=\'new_password1\' type=\'password\' /></td></tr>\r\n						   <tr><td>new password (again)</td><td><input name=\'new_password2\' type=\'password\' /></td></tr>\r\n						   <tr><td colspan=\'2\' align=\'center\'><input type=\'submit\' name=\'event\' value=\'set_password\' /></td></tr>\r\n					   </table>\r\n				   </form><br />\r\n				   \r\n				   {get_user_email_icq_www user_id=$node.node_id}\r\n				   {get_moods user_id=$user_id}\r\n				   <form action=\'/id/{$node.node_id}/\' method=\'post\'>\r\n					   <table>\r\n                            <tr>\r\n                                <td>\r\n                                    <select name=\"mail_notify\">\r\n								        <option value=\"0\" {if $mail_notify == 0}selected{/if}>none</option>\r\n									    <option value=\"1\" {if $mail_notify == 1}selected{/if}>popup</option>\r\n									    <option value=\"2\" {if $mail_notify == 2}selected{/if}>title</option>\r\n								    </select>\r\n                                </td>\r\n                                <td>\r\n                                    <input type=\"submit\" name=\"event\" value=\"configure_mail_notify\" />\r\n                                </td>\r\n                            </tr>\r\n						   <tr>\r\n							   <td><input type=\'text\' name=\'user_email\' value=\'{$get_user_email}\' /></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'configure_email\' /></td>\r\n						   </tr><br />\r\n						   <tr>\r\n							   <td><textarea class=\'small\' name=\'moodlist\'>{$get_moods_string}</textarea></td>\r\n							   <td><input type=\'submit\' name=\'event\' value=\'moodlist\' /></td>\r\n						   </tr>\r\n						   <tr>\r\n							   <td>\r\n								   <select name=\'mood\'>\r\n									   {foreach from=$get_moods item=mood}\r\n									   <option value=\'{$mood.node_id}\' {if $get_moods_mood.node_id eq $mood.node_id}selected{/if}>{$mood.node_name}</option>\r\n									   {/foreach}\r\n									   <option value=\'\' {if $get_moods_mood.node_id eq \'\'}selected{/if}>clear mood</option>\r\n								   </select>\r\n								</td>\r\n								<td><input type=\'submit\' name=\'event\' value=\'set_mood\' /></td>\r\n						   </tr>\r\n					   </table>\r\n					</form>\r\n					{/if}\r\n					{/if}\r\n					\r\n					<form method=\'post\'>\r\n						template_id: <input type=\'text\' value=\'{$node.node_id}\' name=\'add_template_id\' /><br />\r\n						<input type=\'submit\' name=\'event\' value=\'addTemplate\' />\r\n					</form>\r\n					\r\n					{if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}\r\n					<form method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n						<textarea class=node_content name=\'node_content\'>{$node.node_content|escape:\"html\"}</textarea><br />\r\n						<center>\r\n							<input type=\'submit\' name=\'event\' value=\'configure_content\'> &nbsp;&nbsp;\r\n							<input type=\'checkbox\' name=\'no_html\' value=\'yes\' />&nbsp;NO HTML &nbsp;&nbsp;\r\n							<input type=\'checkbox\' name=\'code\' value=\'yes\'>&nbsp;code &nbsp;&nbsp;\r\n							<input type=\'checkbox\' name=\'wiki\' value=\'yes\'>&nbsp;wiki\r\n						</center><br /><br />\r\n					</form>\r\n					<form method=\'post\' action=\'/id/{$node.node_id}\'>\r\n						{get_node_commanders}{*masterlist*}{include file=\"1549911.tpl\"}\r\n					</form>\r\n					{/if}\r\n				</td>\r\n			</tr>\r\n		</table>\r\n	   \r\n	   <!-- in memorian ergond 23.7.2002 -->\r\n		<center>\r\n			&copy; kyberia.sk v2.3 - solon\'s revenge<br />\r\n			prevadzkovatel stranky ruci za nic<br />\r\n		</center>\r\n   </body>\r\n</html>',990313,1),(4126120,'neur_tmpl',4126137,1,'no','public',0,332,'2008-07-08 14:16:35','2010-02-16 23:04:49',0,25,NULL,'2008-07-08 14:16:35',14,'2008-07-08 14:17:37','template://4126120','0000010100792011009903130412613704126120','{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false}\r\n    <center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> \r\n{else}\r\n    {get_neurons user_id=$node.node_id}\r\n    <table width=\"100%\">\r\n        <tr>\r\n            <!--left column-->\r\n            <td valign=\"top\" align=\"center\" width=\"23%\">\r\n                <!-- node settings -->\r\n                {include file=\"1549925.tpl\"}\r\n            </td>\r\n            <!--end of left column-->\r\n\r\n            <!--central column-->\r\n            <td valign=\"top\">\r\n                <b>dendrites</b>\r\n                <table class=\"bordered\">\r\n                    {foreach from=$get_dendrites item=synapse}\r\n                    <tr>\r\n                        <td>\r\n                            <a href=\"/id/{$synapse.node_id}\">{$synapse.node_name}</a>\r\n                            :: [<a href=\"/id/{$synapse.user_id}\">{$synapse.login}</a>]\r\n                            {if $synapse.link == \"hard\"}\r\n                                <span class=\"important\">HARDLINK</span>\r\n                            {/if}\r\n                        </td>\r\n                    </tr>\r\n                    {/foreach}\r\n                </table>\r\n            </td>\r\n            <!--end of central column-->\r\n\r\n            <!--right column-->\r\n            <td valign=\"top\">\r\n                <b>axons</b>\r\n                <table class=\"bordered\">\r\n                    {foreach from=$get_axons item=synapse}\r\n                    <tr>\r\n                        <td>\r\n                            <a href=\"/id/{$synapse.node_id}\">{$synapse.node_name}</a>\r\n                            :: [<a href=\"/id/{$synapse.user_id}\">{$synapse.login}</a>]\r\n                            {if $synapse.link == \"hard\"}\r\n                                <span class=\"important\">HARDLINK</span>\r\n                            {/if}\r\n                        </td>\r\n                    </tr>\r\n                    {/foreach}\r\n                </table>\r\n            </td>\r\n            <!--end of right column-->\r\n        </tr>\r\n    </table>\r\n{/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',990313,1),(4129391,'Re: test vecy',4123661,1,'no','private',0,332,'2008-07-09 14:28:47','2010-02-16 23:04:49',0,10,NULL,'2008-07-09 14:28:47',4,'2008-07-09 14:31:20','template://4129391','0000010100792011041226760412366104129391','/* pasteka */\r\nbody {\r\n	color: #444444;\r\n	margin: 0;\r\n	padding: 0;\r\n	background-color: #060606;\r\n	font-size: 8pt;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	scrollbar-shadow-color: #6DAE42;\r\n	scrollbar-highlight-color: #6DAE42;\r\n	scrollbar-3dlight-color: #6DAE42;\r\n	scrollbar-base-color: black;\r\n	scrollbar-darkshadow-color: #6DAE42;\r\n	scrollbar-track-color: black;\r\n	scrollbar-arrow-color: black;\r\n}\r\ninframe {\r\n	width: 90%;\r\n	height: 230px;\r\n}\r\ntd {\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n	padding: 0.1em 0.1em 0.1em 0.1em;\r\n}\r\n/* header [momentalne vypnute fixnutie] */\r\n/* header [zapol som ho] */\r\n\r\n/* top-green\r\n.t1 {\r\n	position: fixed;\r\n	top:0px;\r\n	margin: 0;\r\n	text-align: center;\r\n	background-color: #6DAE42;\r\n	width: 100%;\r\n	height: 15px;\r\n	color: #346513;\r\n	line-height: 1em;\r\n	border-bottom: 1px #000 solid;\r\n}\r\n.t1 a {\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n	color: #000;\r\n}\r\n\r\n.t1 input, button {\r\n	color: 346513;\r\n	background-color: #6DAE42;\r\n	vertical-align: middle;\r\n	border: solid 1px #346513;\r\n	height: 13px;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\n*/\r\n\r\n.t1 {\r\n	position: fixed;\r\n	top:0px;\r\n	margin: 0;\r\n	text-align: center;\r\n	background-color: #000;\r\n	width: 100%;\r\n	height: 20px;\r\n	line-height: 1em;\r\n  z-index: 666;\r\n}\r\n.t1 a {\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\n\r\n.t1 input, button {\r\n	height: 18px;\r\n}\r\n\r\n\r\n.t2 {\r\n	height: 20px;\r\n}\r\n/* obsah nody */\r\n#topic {\r\n	width: 662px;\r\n	padding: 2px;\r\n	display: table;\r\n}\r\na {\r\n	color: white;\r\n	text-decoration: none;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\na:hover {\r\n	color: red;\r\n}\r\na.mail {\r\n	color: red;\r\n	font-weight: bold;\r\n	text-align: center;\r\n	text-decoration: none;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\na.mail:hover {\r\n	color: white;\r\n	font-weight: bold;\r\n	text-align: center;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\n.bordered {\r\n	border: 1px solid  #6DAE42;\r\n}\r\n.bordered2 {\r\n	border-left: solid 1pt #6DAE42;\r\n	border-right: solid 1pt #6DAE42;\r\n	border-bottom: solid 1pt #6DAE42;\r\n}\r\n.header {\r\n	background-color: #333;\r\n	border-bottom: solid 1px #6DAE42;\r\n	height: 100%;\r\n	width: 100%;\r\n	vertical-align: top;\r\n	align: left;\r\n	padding: 0pt;\r\n\r\n}\r\n.header input {\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 8pt;\r\n	height: 8pt;\r\n	background: #444;\r\n/* len opera */\r\n	border: 1px solid #000;\r\n/* len opera */\r\n	color: #000;\r\n	opacity: 0.8;\r\n}\r\n.header input {\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 8pt;\r\n	height: 8pt;\r\n	background: #444;\r\n/* len opera */\r\n	border: 1px solid #000;\r\n/* len opera */\r\n	color: #000;\r\n	opacity: 0.8;\r\n}\r\n\r\n.important {\r\n	font-weight: bold;\r\n	text-align: center;\r\n}\r\n.most_important {\r\n	font-weight: bold;\r\n	color: red;\r\n	size: 70%;\r\n}\r\n.important_y {\r\n	color: red;\r\n	display: block;\r\n	font-size: 2em;\r\n	margin: .67em 0\r\n}\r\n.important_n {\r\n	color: green;\r\n	display: block;\r\n	font-size: 2em;\r\n	margin: .67em 0\r\n}\r\n/* userlisty a podobny sajrajt ----------------------------------------- */\r\n.active_user_img {\r\n	float: left;\r\n	width: 50px;\r\n	margin: 0 3px 3px 0;\r\n	_margin-bottom: 0;\r\n}\r\n.active_user_img img {\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 50px;\r\n	height: 50px;\r\n	border: 0;\r\n}\r\n.active_users .active_user_name {\r\n	text-align: center;\r\n}\r\n.node_userlist {\r\n	width: 666px;\r\n	text-align: center;\r\n	margin-bottom: 10px;\r\n	position: relative;\r\n}\r\n.node_userlist img {\r\n	width: 50px;\r\n	height: 50px;\r\n	border: 0;\r\n	margin: 0 3px 3px 0;\r\n}\r\n/* thread -------------------------------------------------------------- */\r\n#th_root {\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n#th_root li {\r\n	list-style-type: none;\r\n	border-left: 1px dotted #444;\r\n	padding-left: 2pt;\r\n	margin-top: 5pt;\r\n}\r\n#th_root > li {\r\n	border-bottom: 1px dotted #333;\r\n}\r\n.th_cnt {\r\n	margin: 0;\r\n	padding: 0;\r\n	border-bottom: 1px dotted #444;\r\n}\r\ntd.vector a.childVector {\r\n	color: #dddddd;\r\n	font-size:9px;\r\n}\r\ntd.vector a:hover.childVector {\r\n	color: #ff0000;\r\n}\r\n.th_cnt .bordered {\r\n	margin: 0;\r\n	padding: 2px;\r\n	border: 1px solid #6dae42;\r\n	background: #060606;\r\n}\r\n.th_header {\r\n	margin: 0;\r\n	padding: 0.2em;\r\n	background: #333;\r\n}\r\n.th_header input {\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 8pt;\r\n	height: 8pt;\r\n	background: #444;\r\n/* len opera */\r\n	border: 1px solid #060606;\r\n/* len opera */\r\n	color: #060606;\r\n	opacity: 0.8;\r\n}\r\n.th_header input:hover {\r\n	background: #060606;\r\n	color: #6dae42;\r\n	border: 1px solid;\r\n	opacity: 1;\r\n}\r\n.th_header div {\r\n	margin: 0;\r\n}\r\n.th_content {\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n.th_content img {\r\n	max-width: 560px;\r\n/* loliik[=  */\r\n}\r\n/* form ---------------------------------------------------------------- */\r\ninput, button {\r\n	color: white;\r\n	background-color: #060606;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\ninput.small {\r\n	color: white;\r\n	background-color: #060606;\r\n	width: 50px;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n	line-height: 1em;\r\n}\r\n\r\n\r\nselect {\r\n	color: white;\r\n	background-color: #060606;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \\\"Lucida Grande CE\\\", lucida, sans-serif;\r\n	font-size: 8pt;\r\n}\r\ntextarea {\r\n	width: 666px;\r\n	height: 123px;\r\n	background-color: #060606;\r\n	border: 1px solid #6DAE42;\r\n	color: white;\r\n}\r\ntextarea.node_content {\r\n	width: 800px;\r\n	height: 666px;\r\n	background-color: #060606;\r\n	color: white;\r\n}\r\ntextarea.small {\r\n	width: 90%;\r\n	height: 42px;\r\n	background-color: #060606;\r\n	overflow: hidden;\r\n	font-color: white;\r\n	color: white;\r\n}\r\n.controls {\r\n	margin-top: 3px;\r\n}\r\n.controls input {\r\n	margin-right: 2px;\r\n}\r\n.toolbar {\r\n	margin: 2px 0;\r\n}\r\n.toolbar input {\r\n	margin-right: 2px;\r\n}\r\n.add_put {\r\n	margin-top: 3px;\r\n}\r\n/* mejl ---------------------------------------------------------------- */\r\n#mail_form {\r\n	margin-bottom: 10px\r\n}\r\n#mail_form .controls {\r\n	margin-top: 2px;\r\n}\r\n.message .header {\r\n	padding: 0.2em\r\n}\r\n/* friend hilight [zatim len v blogs] ---------------------------------- */\r\n.hilight {\r\n	background-color: #222;\r\n}\r\n.hilight .header {\r\n	background-color: #555;\r\n}\r\n/* user panel ---------------------------------------------------------- */\r\n#panel {\r\n	position: absolute;\r\n	top: 0px;\r\n	left: 0px;\r\n	display: none;\r\n	z-index: 23;\r\n	color: #FFF;\r\n	background: #060606;\r\n	border: 1px solid #6DAE42;\r\n	padding: 2px;\r\n	margin: 0;\r\n}\r\n#panel .panel_btn {\r\n	border: 0;\r\n	color: #FFF;\r\n	background: transparent;\r\n	margin: 0;\r\n	padding: 1px 0 1px 0;\r\n}\r\n#panel .panel_btn:hover {\r\n	color: #F00;\r\n}\r\n#panel form {\r\n	padding: 0;\r\n	margin: 0;\r\n}',4122676,1),(4129396,'Re: test vecy',4123661,1,'no','private',0,332,'2008-07-09 14:29:33','2010-02-16 23:04:49',0,28,NULL,'2008-07-09 14:29:34',4,'2008-07-10 12:13:14','template://4129396','0000010100792011041226760412366104129396','<html>\r\n<head>\r\n  <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n  <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n  <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/4129391.tpl\' />\r\n  <!-- AJAX CONNECTION -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n  <!-- USER MENU PANEL JS -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n  <!-- CHECK NEW MAIL -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n  <!-- LOGGED OUT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/logged_out.js\"></script>\r\n  <!-- MAIL SCRIPT -->\r\n    <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n  <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n</head>\r\n\r\n<body>\r\n  {if $user_id eq true}\r\n  <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action {/if}\' method=\'post\'>\r\n    <center>[\r\n      <a href=\'/id/1/\'>main</a> -\r\n      <a href=\'/id/101/\'>kyberia</a> -\r\n      <a href=\'/id/{$user_id}/1573668\'>sub</a>\r\n      /<a href=\'/id/3576777/\'>fr</a>\r\n      /<a href=\'/id/3579407/\'>RE</a> -\r\n      <a href=\'/id/4129396/\'>bookmarks</a> /\r\n      <a href=\'/id/19/\'>19</a>]:[\r\n      <a href=\"/id/24/\" {if $new_mail eq true} class=\"mail\" {/if}>mail</a> -\r\n      <a href=\'/chat/chat.htm\' target=\'_blank\'>chat</a> -\r\n      <a href=\'/id/23\'>last</a> -\r\n      <a href=\'/id/27\'>people</a> -\r\n      <a href=\'/id/21\'>blogz</a>]:[\r\n      <a href=\'/id/3777728/\'>kNEW</a> /\r\n      <a href=\'/id/1569351\'>noImg</a> -\r\n      <a href=\'/id/788016\'>CONS</a> -\r\n      <!--  <a href=\'/id/876611\'>senate</a>  -->\r\n      <!--  <a href=\'/id/20\'>clanky</a> - -->\r\n      <a href=\'/id/1058182\'>forumz</a>]:[\r\n      <a href=\'/id/{$user_id}\'>userinfo</a>\r\n      [<a href=\'/id/{$user_id}/1961033\'>setup</a>] -\r\n      <a href=\'/id/{$node.node_id}/1961033\' {if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}{else}style=\'color:#888\'{/if}>/conf</a>\r\n      </span>\r\n      <a href=\'/id/{$node.node_id}/2\'>/2</a> -\r\n      <a href=\'/id/25\'>search</a> -\r\n      <a href=\'/id/1017832\'>help</a>]\r\n      <input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n    </center>\r\n  </form>\r\n</div>\r\n<div class=\"t2\"></div>\r\n  {/if}\r\n  {if $error eq true}\r\n    <center><span class=\'most_important\'>{$error}</span></center>\r\n  {/if}\r\n  {if $new_mail eq true}\r\n      <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a></center>\r\n  {/if}\r\n<!-- USER MENU PANEL -->\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div>\r\n<script language=\'JavaScript\' type=\'text/javascript\'>p = document.getElementById(\"panel\");</script>',4122676,1),(4129471,'specked_off_node_settings',4128533,1,'no','private',0,332,'2008-07-09 14:45:39','2010-02-16 23:04:49',0,22,NULL,'2008-07-09 14:45:39',4,'2008-07-09 14:49:08','template://4129471','021275010412853304129471','<div id=\'left-panel\'> <table>  <tr>  <td colspan=\'2\' align=\'center\'><img src=\'{get_image_link id=$node.node_id}\' style=\'max-width:123px;\' /></td>  </tr>  <tr>  <td>node:</td>  <td><a href=\'/id/{$node.node_id}\'>{$node.node_name|strip_tags}</a></td>  </tr>  <tr>  <td>template:</td>  <td><a href=\'/id/{$node.template_id}\'>{$node.template_id}</a></td>  </tr>  <tr>  <td>parent:</td>  <td><a href=\'/id/{$node.node_parent}\'>{$node.node_parent_name|strip_tags}</a></td>  </tr>  <tr>  <td>owner:</td>  <td><a href=\'/id/{$node.node_creator}\'>{$node.owner}</a></td>  </tr> </table> <br/><br/> {* cwbe *}{ * include file=\'1555468.tpl\' * } <table class=\'bordered\' id=\'node_perm\'>  <tr>  <td colspan=\'2\' align=\'center\' class=\'important\'>permissions</td>  </tr>  <tr>  <td>you:</td>  <td align=\'center\'>  {if $permissions.r}r,{/if} {if $permissions.w}w,{/if} {$node.node_permission} </td>  </tr>  <tr>  <td>system:</td>  <td align=\'center\'>{$node.node_system_access}</td>  </tr>  <tr>  <td>net:</td>  <td align=\'center\'>{$node.node_external_access}</td>  </tr> </table> <br> <center><a href=\'/id/{$node.node_id}/1961036\'>neurons</a></center> <br> <center><a href=\'/id/{$node.node_id}/1961037\'>stats</a>|<a href=\'/id/{$node.node_id}/748131\'>by_visit</a>|<a href=\'/id/{$node.node_id}/1908499\'>by_K</a></center> \r\n <center><a href=\'/id/{$node.node_id}/2224463\'>commanders</a></center> <center><a href=\'/id/{$node.node_id}/1549314\'>polls</a></center> <span class=\'node_info2\'> <br>node viewed {$node.node_views} times <br>total descendants::{$node.node_descendant_count} <br>total children::{$node.node_children_count} {if $node.node_user_subchild_count neq false}</span> <br><span class=\'most_important\'>{$node.node_user_subchild_count} NEW</span> {/if} {if $node.k neq false} <br><span class=\'most_important\'>{$node.k} K</span><br><br> {/if} {if $offset neq false} <br><span class=\'important\'>using offset:: {$offset} </span> {/if} <form action=\'/id/{$node.node_id}/\' method=\'post\'>  {if $node.node_bookmark neq \'yes\'} <input type=\'submit\' name=\'event\' value=\'book\' class=\'book_b\'>  {else} <input type=\'submit\' name=\'event\' value=\'unbook\' class=\'book_b\'>  {/if} <input type=\'submit\' name=\'event\' value=\'K\'>  {if $fook[$node.node_id] neq true} <br /><br /><input type=\'submit\' name=\'event\' value=\'fook\' class=\'book_b\'>  {/if} </form> {if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}<center><a href=\'/id/{$node.node_id}/1961033\'>configure</a></center>{/if} <center>show[ <a href=\'/id/{$node.node_id}/2\'>2</a> | <a href=\'/id/{$node.node_id}/3\'>3</a> ] <a href=\'/id/{$node.node_id}/3755160\'>flat</a></center> <br> {if $node.external_link eq \'db://user\' or $node.external_link eq \'session://user\' or $node.template_id eq 7} <a href=\'/id/{$node.node_id}/1970182\'>bookmarks</a><br /> <a href=\'/id/{$node.node_id}/1911535\'>movement</a><br /><br /> <a href=\'/id/{$node.node_id}/1757900\'>nodeshells</a><br /> <a href=\'/id/{$node.node_id}/1761254\'>forums</a><br /> <a href=\'/id/{$node.node_id}/1573668\'>submissions</a>{if $node.node_id eq $user_id} [<a href=\"/id/1522695\">re</a>]{/if}<br /> <a href=\'/id/{$node.node_id}/1773535\'>articles</a><br /> <a href=\'/id/{$node.node_id}/1757556\'>blogs</a><br /> <a href=\'/id/{$node.node_id}/1757626\'>datas</a><br /> <a href=\'/id/{$node.node_id}/1752584\'>K</a><br /><br /> <a href=\'/id/{$node.node_id}/1769388\'>friends</a><br /> {/if} </div>',4129471,1),(4132332,'template nejaky do buducna',2810527,1,NULL,'private',0,332,'2008-07-10 14:03:20','2010-02-16 23:04:49',0,83,NULL,'2008-07-10 14:03:20',4,'2008-07-10 14:21:55','template://4132332','0000010100792011009499500281052704132332','blah',949950,1),(4169475,'unfook',1075292,1,'no','public',0,332,'2008-09-11 23:18:44','2010-02-16 23:04:49',0,13,NULL,'2008-09-11 23:18:44',14,NULL,'event://unfook','0107529204169475','function unfook() {\r\n}',0,1),(4178737,'ignore_mail',1075292,1,'no','public',0,332,'2008-09-17 00:27:43','2010-02-16 23:04:49',0,8,NULL,'2008-09-17 00:27:43',14,NULL,'event://ignore_mail','0107529204178737','function ignore_mail() {\r\n}',0,1),(4178738,'unignore_mail',1075292,1,'no','public',0,332,'2008-09-17 00:28:07','2010-02-16 23:04:49',0,9,NULL,'2008-09-17 00:28:07',14,NULL,'event://unignore_mail','0107529204178738','function unignore_mail() {\r\n}',0,1),(4181175,'18.09.2008-2:24:333',1440515,1,'no','private',0,332,'2008-09-18 02:24:33','2010-02-16 23:04:49',0,86,NULL,'2008-09-18 02:24:33',4,'2009-07-10 17:52:16','template://4181175','01549689011914270144051504181175','<style type=\"text/css\">\r\n.gustav_link {color: #5C5C5C;} \r\n.gustav_link:hover {text-decoration: underline;color: #3FE8EB;}\r\n</style>\r\n\r\n<a href=\"http://www.sme.sk\" class=\"gustav_link\">tsme</a>\r\n',1440515,0),(4192286,'bookmarks_2.1',123456,1,'no','moderated',1,332,'2008-09-23 16:38:31','2010-02-16 23:04:49',0,185,NULL,'2008-09-23 16:38:31',14,'2008-09-23 21:51:35','template://4192286','0000010100063535000635590381976304192286','<form method=\'post\' action=\'/id/{$node.node_id}\' name=\"bookmarks_full\">\r\n\r\n{if $bookstyl eq 0}\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n<br>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\'\r\n{if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}\r\n{if $bookmarks.node_user_subchild_count eq false and\r\n    $bookmarks.lastdescendant_created < $bookmarks.last_visit and\r\n    $bookmarks.node_updated < $bookmarks.last_visit} class=\'empty\'\r\n{/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n{/if}\r\n<br>\r\n{/foreach}\r\n<br>\r\n{/foreach}\r\n{/if}\r\n\r\n{* -------------------------------------------  *}\r\n\r\n\r\n\r\n\r\n{if $bookstyl eq 1}\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\'\r\n      href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n    {/if}\r\n    <br>\r\n    \r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n        {if $bookmarks.node_name}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n        {/if}\r\n        <br>\r\n      {/if}\r\n    {/foreach}\r\n\r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.lastdescendant_created < $bookmarks.last_visit}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_user_subchild_count neq false}\r\n              :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n            {/if}\r\n            {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>descdnt</span>\r\n            {/if}\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n    \r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n\r\n{* -------------------------------------------  *}\r\n\r\n\r\n{if $bookstyl eq 2}\r\n\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\'\r\n      href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n      {if $bookmark_category.sum neq false}\r\n        :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n      {/if}\r\n    {/if}\r\n    <br>\r\n\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.node_user_subchild_count neq false}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n        {if $bookmarks.node_name}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n\r\n        {/if}\r\n        <br>\r\n      {/if}\r\n    {/foreach}\r\n    \r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.node_user_subchild_count eq false}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_user_subchild_count neq false}\r\n              :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n            {/if}\r\n            {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>descdnt</span>\r\n            {/if}\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n{* -------------------------------------------  *}\r\n\r\n{if $bookstyl eq 3}\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\' href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n      {if $bookmark_category.sum neq false}\r\n        :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n      {/if}\r\n    {/if}\r\n    <br>\r\n\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.node_user_subchild_count neq false || $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\'{/if}>\r\n\r\n        {if $bookmarks.node_name|stripslashes}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/if}\r\n    {/foreach}\r\n\r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.node_user_subchild_count eq false || $bookmarks.lastdescendant_created < $bookmarks.last_visit}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n\r\n<br>\r\n\r\n<select name=\"bookmark_category_id\">\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {if $bookmark_category.node_name neq false}\r\n      <option value=\"{$bookmark_category.node_id}\">{$bookmark_category.node_name|stripslashes|truncate:40:\"...\":true}</option>\r\n    {/if}\r\n  {/foreach}\r\n  <option value=\"\">...no category</option>\r\n</select>\r\n<input type=\'submit\' name=\'event\' value=\'set_bookmark_category\' /><br /><br />\r\n<span class=\"important\">Novú kategóriu</span> si vytvorte cez klasické bookmarky <a href=\"/id/19\">/id/19</a><br /><br />\r\n\r\n<input type=\'submit\' name=\'event\' value=\'unbook_multi\' />\r\n<input type=\'submit\' name=\'event\' value=\'set_as_read\' /><br />\r\n<span class=\"bookcat0\"><input type=\'radio\' value=\'0\' name=\'bookstyl\'> all</span>\r\n<span class=\"bookcat1\"><input type=\'radio\' value=\'1\' name=\'bookstyl\'> new descendant</span>\r\n<span class=\"bookcat2\"><input type=\'radio\' value=\'2\' name=\'bookstyl\'> new children</span>\r\n<span class=\"bookcat3\"><input type=\'radio\' value=\'3\' name=\'bookstyl\'> new children & new descendant</span>\r\n<input type=\'submit\' name=\'event\' value=\'bookstyl\' />\r\n</form>\r\n',63559,1),(4194946,'posta',4194945,1,'yes','private',0,332,'2008-09-24 22:42:52','2010-02-16 23:04:49',0,90,NULL,'2008-09-24 22:42:52',4194946,'2008-09-25 17:50:08','template://4194946','0000144901663286016631760419494504194946','{if $user_id eq false} \r\n\r\n{* loginbox *}{include file=\"1549885.tpl\"}\r\n\r\n{else}\r\n\r\n<a href=\"/id/1680050/\">mail archive</a><br />\r\n\r\n<form enctype=\"multipart/form-data\" action=\"/id/{$node.node_id}/\r\n{if $action neq false}{$action}{/if}\" method=\"post\" name=\"formular\" id=\"formular\">\r\n\r\n{include file=\"1549897.tpl\"}\r\n{include file=\"1549888.tpl\" listing_amount=$listing_amount offset=$offset} </form>\r\n\r\n{/if}\r\n',1663176,1),(4195040,'AAfor',4194945,1,'yes','private',0,332,'2008-09-24 23:37:45','2010-02-16 23:04:49',0,7,NULL,'2008-09-24 23:37:45',4,'2008-09-24 23:47:06','template://4195040','0000144901663286016631760419494504195040','\r\n{if $user_id eq false}\r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br>\r\n{/if}\r\n\r\n\r\n\r\n\r\n{*get_bookmark_statistics_box*}\r\n<!--showing bookmark statistic table -->\r\n<table class=\'bordered\' id=\'bookstat\'>\r\n{get_bookmark_statistics}\r\n{foreach from=$get_bookmark_statistics item=bookmark_statistic}\r\n<tr><td>\r\n<a href=\'/id/{$bookmark_statistic.user_id}\'>{$bookmark_statistic.login}</a>\r\n</td><td>\r\n{$bookmark_statistic.node_user_subchild_count}\r\n</td></tr>\r\n{/foreach}\r\n</table>\r\n<!--end of bookmark statistic table -->\r\n\r\n\r\n<!--main central column-->\r\n<td width=666 valign=\'top\'>\r\n\r\n{*node_content*}\r\n<div class=\'bordered\' id=\'topic\'>\r\n{$node.node_content}\r\n</div>\r\n<br /><br />\r\n\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'method=\'post\' name=\'formular\'>\r\n{if $permissions.w eq true}{*addnode*}{include file=\"1548927.tpl\"}{/if}\r\n{*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4}\r\n\r\n</form>\r\n<!--end of central column-->',1663176,1),(4200077,'configure_nl2br',1075292,1,'no','public',0,332,'2008-09-27 16:08:54','2010-02-16 23:04:49',0,8,NULL,'2008-09-27 16:08:54',14,NULL,'event://configure_nl2br','0107529204200077','function configure_nl2br() {\r\n}',0,1),(4200201,'add_cust_module',1075292,1,'no','public',0,332,'2008-09-27 17:22:24','2010-02-16 23:04:49',0,8,NULL,'2008-09-27 17:22:24',14,NULL,'event://add_cust_module','0107529204200201','function add_cust_module() {\r\n}',0,1),(4200204,'del_cust_module',1075292,1,'no','public',0,332,'2008-09-27 17:23:39','2010-02-16 23:04:49',0,8,NULL,'2008-09-27 17:23:39',14,NULL,'event://del_cust_module','0107529204200204','function del_cust_module() {\r\n}',0,1),(4201234,'bookmarks_css+js',4200220,1,'no','moderated',0,332,'2008-09-28 13:30:06','2010-02-16 23:04:49',0,48,NULL,'2008-09-28 13:30:06',14,'2008-09-28 13:31:46','template://4201234','000001010079201102585036035567360420022004201234','<link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/3819836.tpl\'/>\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.nextSibling.style.display == \'block\' || this.nextSibling.style.display == \'\') {\r\n            this.nextSibling.style.display = \'none\';\r\n         } else {\r\n            this.nextSibling.style.display = \'block\';\r\n         }\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n//-->\r\n</script>\r\n{/literal}',2585036,1),(4237785,'bookmarks_count',3556736,1,'no','moderated',2,332,'2008-10-15 20:12:25','2010-02-16 23:04:49',0,94,NULL,'2008-10-15 20:12:25',4237785,'2008-10-15 20:20:22','template://4237785','000001010079201102585036035567360420022004237785','<br /><br />\r\n<center>Máš celkom {get_bookmarks}<b>{$bookmarks|@count}</b> bookmarkov</center>',2585036,1),(4264734,'bookmarks 2.0',3819763,1,'no','moderated',0,332,'2008-11-02 18:36:33','2010-02-16 23:04:49',0,84,NULL,'2008-11-02 18:36:33',14,'2010-02-12 08:44:36','template://4264734','0000010100063535000635590381976304264734','<form method=\'post\' action=\'/id/{$node.node_id}\' name=\"bookmarks_full\">\r\n{if $bookstyl eq 0}\r\n{get_bookmarks}\r\n{foreach from=$get_bookmarks item=bookmark_category}\r\n{* showing bookmark category  *}\r\n{if $bookmark_category.node_name neq false}\r\n kategoria::<a class=\'important\'\r\nhref=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n        {if $bookmark_category.sum neq false}\r\n                :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n        {/if}\r\n{/if}\r\n<br>\r\n\r\n{foreach from=$bookmark_category.children item=bookmarks}\r\n<input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\nvalue=\'{$bookmarks.node_id}\'\r\n{if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}\r\n{if $bookmarks.node_user_subchild_count eq false and\r\n    $bookmarks.lastdescendant_created < $bookmarks.last_visit and\r\n    $bookmarks.node_updated < $bookmarks.last_visit} class=\'empty\'\r\n{/if}>\r\n{if $bookmarks.node_name}\r\n<a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n{if $bookmarks.node_user_subchild_count neq false}\r\n:: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n{/if}\r\n{if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n:: <span class=\'important\'>descdnt</span>\r\n{/if}\r\n{if $bookmarks.node_updated > $bookmarks.last_visit}\r\n:: <span class=\'important\'>changed</span>\r\n{/if}\r\n{/if}\r\n<br>\r\n{/foreach}\r\n<br>\r\n{/foreach}\r\n{/if}\r\n\r\n{* -------------------------------------------  *}\r\n\r\n\r\n\r\n\r\n{if $bookstyl eq 1}\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\'\r\n      href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n    {/if}\r\n    <br>\r\n\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n        {if $bookmarks.node_name}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n        {/if}\r\n        <br>\r\n      {/if}\r\n    {/foreach}\r\n\r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.lastdescendant_created < $bookmarks.last_visit}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_user_subchild_count neq false}\r\n              :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n            {/if}\r\n            {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>descdnt</span>\r\n            {/if}\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n\r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n\r\n{* -------------------------------------------  *}\r\n\r\n\r\n{if $bookstyl eq 2}\r\n\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\'\r\n      href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n      {if $bookmark_category.sum neq false}\r\n        :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n      {/if}\r\n    {/if}\r\n    <br>\r\n\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.node_user_subchild_count neq false}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\' {/if}>\r\n        {if $bookmarks.node_name}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n        {/if}\r\n        <br>\r\n      {/if}\r\n    {/foreach}\r\n\r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.node_user_subchild_count eq false}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_user_subchild_count neq false}\r\n              :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n            {/if}\r\n            {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>descdnt</span>\r\n            {/if}\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n{* -------------------------------------------  *}\r\n\r\n{if $bookstyl eq 3}\r\n  {get_bookmarks}\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {* showing bookmark category  *}\r\n\r\n    {if $bookmark_category.node_name neq false}\r\n      kategoria::<a class=\'important\' href=\'/id/{$bookmark_category.node_id}/\'>{$bookmark_category.node_name|stripslashes}</a>\r\n      {if $bookmark_category.sum neq false}\r\n        :: <span class=\'most_important\'> {$bookmark_category.sum} NEW</span>\r\n      {/if}\r\n    {/if}\r\n    <br>\r\n\r\n    {foreach from=$bookmark_category.children item=bookmarks}\r\n      {if $bookmarks.node_user_subchild_count neq false || $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n        <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\'\r\n        value=\'{$bookmarks.node_id}\' {if $bookmarks.node_user_subchild_count neq false} class=\'mark\'{/if}>\r\n\r\n        {if $bookmarks.node_name|stripslashes}\r\n          <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n          {if $bookmarks.node_user_subchild_count neq false}\r\n            :: <span class=\'most_important\'> {$bookmarks.node_user_subchild_count} NEW Child</span>\r\n          {/if}\r\n          {if $bookmarks.lastdescendant_created > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>descdnt</span>\r\n          {/if}\r\n          {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n            :: <span class=\'important\'>changed</span>\r\n          {/if}\r\n          <br />\r\n        {/if}\r\n      {/if}\r\n    {/foreach}\r\n\r\n    {if $bookmark_category.children}\r\n      <h3 class=\"h3_unread_books\">all+</h3><div class=\"div_unread_books\" style=\"display:none\">\r\n      {foreach from=$bookmark_category.children item=bookmarks}\r\n        {if $bookmarks.node_user_subchild_count eq false && $bookmarks.lastdescendant_created < $bookmarks.last_visit}\r\n          <input style=\'height: 11px; width: 11px;\' type=\'checkbox\' name=\'bookmarks_chosen[]\' value=\'{$bookmarks.node_id}\' class=\'empty\'>\r\n          {if $bookmarks.node_name|stripslashes}\r\n            <a href=\'/id/{$bookmarks.node_id}\'>{$bookmarks.node_name|stripslashes}</a>\r\n            {if $bookmarks.node_updated > $bookmarks.last_visit}\r\n              :: <span class=\'important\'>changed</span>\r\n            {/if}\r\n          {/if}\r\n          <br>\r\n        {/if}\r\n      {/foreach}\r\n      </div>\r\n    {/if}\r\n\r\n    <br>\r\n  {/foreach}\r\n{/if}\r\n\r\n\r\n<br>\r\n\r\n<select name=\"bookmark_category_id\">\r\n  {foreach from=$get_bookmarks item=bookmark_category}\r\n    {if $bookmark_category.node_name neq false}\r\n      <option value=\"{$bookmark_category.node_id}\">{$bookmark_category.node_name|stripslashes|truncate:40:\"...\":true}</option>\r\n    {/if}\r\n  {/foreach}\r\n  <option value=\"\">...no category</option>\r\n</select>\r\n<input type=\'submit\' name=\'event\' value=\'set_bookmark_category\' /><br /><br />\r\n<span class=\"important\">Novú kategóriu</span> si vytvorte cez klasické bookmarky <a href=\"/id/19\">/id/19</a><br /><br />\r\n<input type=\'submit\' name=\'event\' value=\'unbook_multi\' />\r\n<input type=\'submit\' name=\'event\' value=\'set_as_read\' /><br />\r\n<span class=\"bookcat0\"><input type=\'radio\' value=\'0\' name=\'bookstyl\'> all</span>\r\n<span class=\"bookcat1\"><input type=\'radio\' value=\'1\' name=\'bookstyl\'> new descendant</span>\r\n<span class=\"bookcat2\"><input type=\'radio\' value=\'2\' name=\'bookstyl\'> new children</span>\r\n<span class=\"bookcat3\"><input type=\'radio\' value=\'3\' name=\'bookstyl\'> new children & new descendant</span>\r\n<input type=\'submit\' name=\'event\' value=\'bookstyl\' />\r\n</form>\r\n',63559,1),(4285554,'K3',3556736,1,'no','public',0,332,'2008-11-11 21:21:43','2010-02-16 23:04:49',0,739,NULL,'2008-11-11 21:21:43',4285554,'2008-11-11 22:18:51','template://4285554','0000010100792011025850360355673604285554','<!-- K | Hromi, edited by freezy, edited by coffee -->\r\n{* header *}{include file=\"1549864.tpl\"}\r\n{if $user_id eq false}\r\n    <center>{* loginbox *}{include file=\"1549885.tpl\"}</center>\r\n{else}\r\n\r\n\r\n{* CSS *} <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/4285579.tpl\'/>\r\n\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.previousSibling.style.overflow == \'hidden\' || this.previousSibling.style.overflow == \'\') {\r\n            this.previousSibling.style.overflow = \'visible\';\r\n         } else {\r\n            this.previousSibling.style.overflow = \'hidden\';\r\n         }\r\n\r\n         //this.previousSibling.style.overflow = \'visible\';\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n//-->\r\n</script>\r\n{/literal}\r\n\r\n\r\n{get_movement_params children_count=$node.node_children_count}\r\n<table>\r\n    <tr>\r\n        <td valign=\"top\" width=\"23%\">{* get_userlist *}{include file=\"1549848.tpl\"}</td>\r\n        <td valign=\"top\">\r\n            <center>\r\n                <span class=\"important\">\r\n                    newly CREATED K-valued nodes\r\n                    <form method=\"post\">\r\n                        Interval:\r\n                        <input type=\"text\" name=\"interval\">\r\n                        <input type=\"submit\" value=\"Days\">\r\n                    </form>\r\n                    <br />\r\n                    newly K-VALUED nodes <a href=\"/id/788016\">here</a>\r\n                </span>\r\n                {get_k}\r\n                {* movement *}{include file=\"1549913.tpl\"}\r\n\r\n            <br style=\"clear:left;\">\r\n            </center>\r\n            {foreach from=$get_k item=k}\r\n                {if $fook[$k.node_parent] neq true and $fook[$k.node_id] neq true and $ignore[$k.node_creator] neq true}\r\n\r\n<div class=\"show_1\">\r\n                    <table class=\"bordered\">\r\n                        <tr>\r\n                            <td align=\"center\" rowspan=\"2\" valign=\"top\">\r\n                                <a href=\"#{$k.node_id}\" title=\"skip\"><img border=\"0\" hspace=\"5\" width=\"50\" src={get_image_link id=$k.node_creator}></a>\r\n                                <span class=\"most_important\">{$k.k} k</span>\r\n                                <form action=\"/id/{$k.node_id}\" method=\"post\"><input type=\"submit\" name=\"event\" value=\"K\"><br />\r\n                                <input type=\"submit\" name=\"event\" value=\"fook\"></form>\r\n                                <a href=\"#{$k.node_id}\">skip</a>\r\n                            </td>\r\n                            <td class=\"header\" width=\"100%\">\r\n                                <a href=\"/id/{$k.node_id}/\">{$k.node_name|strip_tags}</a>\r\n                                in <a href=\"/id/{$k.node_parent}\">{$k.parent_name|strip_tags}</a>\r\n                                by <a href=\"/id/{$k.node_creator}\">{$k.creator}</a>\r\n                                created: {$k.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}\r\n                                {if $k.node_created > $node.last_visit}<span class=\"most_important\">NEW</span>{/if}\r\n                            </td>\r\n                        </tr>\r\n                        <tr>\r\n                            <td valign=\"top\">{$k.node_content|stripslashes|nl2br}</td>\r\n                        </tr>\r\n                    </table><a name=\"{$k.node_id}\"></a>\r\n                  </div><h3>full+</h3>\r\n\r\n                  <br />\r\n                {/if}\r\n            {/foreach}\r\n        </td>\r\n    </tr>\r\n</table>\r\n{/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',2585036,1),(4285579,'css__k3',3556736,1,'no','public',0,332,'2008-11-11 21:29:59','2010-02-16 23:04:49',0,39,NULL,'2008-11-11 21:29:59',14,'2008-11-11 22:05:10','template://4285579','0000010100792011025850360355673604285579','\r\n.show_1 {\r\n  height:160px;\r\n  overflow: hidden;\r\n}\r\n\r\nh3 {\r\n  background-color: #222;\r\n  display: block;\r\n  padding-left:3px;\r\n  margin: 0;\r\n  font-size:12px\r\n}',2585036,1),(4285609,'k3_js+css',123456,1,'no','public',1,332,'2008-11-11 21:42:53','2010-02-16 23:04:49',0,9,NULL,'2008-11-11 21:42:53',14,'2008-11-11 21:43:30','template://4285609','0000010100792011025850360355673604285609','{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.nextSibling.style.display == \'block\' || this.nextSibling.style.display == \'\') {\r\n            this.nextSibling.style.display = \'none\';\r\n         } else {\r\n            this.nextSibling.style.display = \'block\';\r\n         }\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n//-->\r\n</script>\r\n{/literal}',2585036,1),(4289280,'k_div',799119,1,NULL,'private',0,332,'2008-11-13 12:07:52','2010-02-16 23:04:49',0,27,NULL,'2008-11-13 12:07:53',4,'2008-11-13 12:15:36','template://4289280','00000101007920110079911904289280','<!-- K | Hromi, edited by freezy, 20070929(patch by w) --> {* header *}{include file=\"1549864.tpl\"} {if $user_id eq false} <center>{* loginbox *}{include file=\"1549885.tpl\"}</center> {else} {get_movement_params children_count=$node.node_children_count} <table>  <tr>  <td valign=\"top\" width=\"23%\">{* get_userlist *}{include file=\"1549848.tpl\"}</td>  <td valign=\"top\">  <center>  {if $node.node_id neq 15} <span class=\"important\">  {get_k vector=$node.node_vector} in vector {$node.node_vector} </span>  {else} <span class=\"important\">  newly CREATED K-valued nodes <form method=\"post\">  Interval: <input type=\"text\" name=\"interval\">  <input type=\"submit\" value=\"Days\">  </form>  <br />  newly K-VALUED nodes <a href=\"/id/788016\">here</a>  </span>  {get_k} {* movement *}{include file=\"1549913.tpl\"} {/if} <br style=\"clear:left;\">  </center>  {foreach from=$get_k item=k} <table class=\"bordered\">  <tr>  <td align=\"center\" rowspan=\"2\" valign=\"top\">  <img border=\"0\" hspace=\"5\" width=\"50\" src={get_image_link id=$k.node_creator}>  <span class=\"most_important\">{$k.k} k</span>  <form action=\"/id/{$k.node_id}\" method=\"post\"><input type=\"submit\" name=\"event\" value=\"K\"></form>  </td>  <td class=\"header\" width=\"100%\">  <a href=\"/id/{$k.node_id}/\">{$k.node_name|strip_tags}</a>  in <a href=\"/id/{$k.node_parent}\">{$k.parent_name|strip_tags}</a>  by <a href=\"/id/{$k.node_creator}\">{$k.creator}</a>  created: {$k.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"} </td>  </tr>  <tr>  <td valign=\"top\"><div style=\"max-height:220px;max-width:800px;overflow:scroll;\">{$k.node_content|stripslashes|nl2br} </div></td>  </tr>  </table>  <br />  {/foreach} </td>  </tr> </table> {/if} {*footer*}{include file=\"1549377.tpl\"}\r\n',799119,1),(4374880,'001',1440515,1,'no','private',0,332,'2008-12-19 21:26:29','2010-02-16 23:04:49',0,92,NULL,'2008-12-19 21:26:29',4374880,'2008-12-19 21:59:01','template://4374880','01549689011914270144051504374880','{math equation=\"x/8\" x=$node.vector_depth assign=\"crd\"} \r\n{get_movement_params}\r\n{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $error eq true}\r\n<center><font style=\'error\'>{$error}</font></center>\r\n{/if}\r\n\r\n{if $user_id eq false}\r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center>\r\n\r\n{else}\r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column-->\r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td valign=\'top\'>\r\n<form method=\'post\'>\r\n<table align=\'center\'><tr>\r\n<td><input type=\'hidden\' name=\'get_children_offset\' value=\'{$offset}\'></td>\r\n<td><input type=\'submit\' name=\'get_children_move\' value=\'<\'></td>\r\n<td><input type=\'submit\' name=\'get_children_move\' value=\'<<\'></td>\r\n<td><input name=\'get_children_move\' type=\'submit\' value=\'>>\'></td>\r\n<td><input type=\'submit\' name=\'get_children_move\' value=\'>\'></td>\r\n</tr></table>\r\n</form>\r\n{get_last listing_amount=$listing_amount offset=$offset}\r\n\r\n{foreach from=$get_last item=child}\r\n<table>\r\n<tr>\r\n<td width=\'100\' valign=\'top\' rowspan=\'2\'><a\r\nhref=\'/id/{$child.node_creator}\'><img border=0 hspace=\'5\' src=\'{get_image_link\r\nid=$child.node_creator}\' width=\'50\'></a>&nbsp;</td>\r\n<td style=\'width: 100%\' valign=\'top\'>\r\n<table width=100%><tr class=\'header\' width=100%>\r\n<td>\r\n<a href=\'/id/{$child.node_id}\'>{$child.node_name}</a> in <a\r\nhref=\'/id/{$child.node_parent}\'>{$child.parent_name}</a><br>\r\nauthor: <a href=\'/id/{$child.node_creator}\'>{$child.login}</a>\r\n{if $child.user_action neq false}\r\n&nbsp;[lokacia :: <a href=\'/id/{$child.user_action_id}/\'>{$child.user_action|strip_tags}</a>]\r\n{/if}\r\n&nbsp;&nbsp;{$child.node_created|date_format:\"%H:%M:%S - %d.%m.%Y\"}&nbsp;\r\n{if $child.k > 0} [{$child.k}K]{/if}\r\n{if $child.node_created > $node.last_visit}<span class=\'most_important\'>&nbsp;NEW</span>{/if}\r\n{str_split string=$child.node_vector name=root length=8}\r\n{eval var=$str_split.root.0 assign=\"root\"}\r\n{if $root eq \"00123456\"}<span class=\'most_important\'>&nbsp;deleted</span{/if}\r\n<tr><td></td></tr>\r\n</table>\r\n</table>\r\n{/foreach}\r\n<!--end of central column-->\r\n\r\n</td></tr></table>\r\n{/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',1440515,1),(4393300,'defaule+b.2',1570604,1,'yes','public',0,332,'2008-12-29 00:34:00','2010-02-16 23:04:49',0,71,NULL,'2008-12-29 00:34:00',14,'2009-11-04 15:33:51','template://4393300','01549689015596350157060404393300','<html>\r\n    <head>\r\n        <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n        <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\r\n        <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\' />\r\n        \r\n        <!-- MooTools -->\r\n\r\n        <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mootools-core-nc.js\"></script>\r\n\r\n        <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mootools-more.js\"></script>\r\n\r\n        <!-- QuickSearch -->\r\n\r\n        <script language=\"javascript\" type=\"text/javascript\" src=\"/js/mt_quick_search.js\"></script>\r\n\r\n        <!-- AJAX CONNECTION -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n\r\n        <!-- USER MENU PANEL JS -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/panel.js\"></script>\r\n\r\n        <!-- CHECK NEW MAIL -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/check_new_mail.js\"></script>\r\n        \r\n        <!-- LOGGED OUT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/logged_out.js\"></script>\r\n\r\n        <!-- MAIL SCRIPT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/js/mail.js\"></script>\r\n\r\n        <!-- ToggleThread -->\r\n        <script language=\"javascript\" type=\"text/javascript\" src=\"/templates/4977710.tpl\"></script>\r\n\r\n        <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n    </head>\r\n\r\n    <body>\r\n        {if $user_id eq true}\r\n            \r\n<div class=\"t1\">\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\' method=\'post\'>\r\n<center>\r\n[ \r\n<a href=\'/id/1/\'>main</a> --\r\n<a href=\'/id/101/\'>kyberia</a> -- \r\n<a href=\'/id/102/\'>hysteria</a> -- \r\n<a href=\'/id/683817/\'>kniznica</a> -- \r\n<a href=\'/id/3819850\'>bookmarkz</a> \r\n]\r\n[\r\n<a href=\'/id/24\'>posta</a> --\r\n<a href=\'/id/23\'>last</a> --\r\n<a href=\'/id/27\'>ludia</a> --\r\n<a href=\'/id/21\'>blogz</a> \r\n]\r\n[\r\n<a href=\'/id/3660841\'>k NEW</a> / <a href=\'/id/788016\'>CONSCIOUSNESS</a> --\r\n<a href=\'/id/876611\'>senate</a> --\r\n<!--  <a href=\'/id/20\'>clanky</a> ---- -->\r\n<a href=\'/id/1058182\'>forumz</a> \r\n]\r\n[\r\n<a href=\'/id/25\'>search</a> --\r\n<a href=\'/id/{$user_id}\'>userinfo</a> (<a href=\'/id/{$user_id}/1961033\'>setup</a>) -- \r\n<a href=\'/id/1017832\'>help</a>\r\n]\r\n<input type=\"text\" name=\"quick_search\" id=\"quick_search\" value=\"Quick search...\" autocomplete=\"off\" />\r\n<input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n</center>\r\n</form>\r\n</div><div class=\"t2\"></div>\r\n\r\n        {/if}\r\n        {if $error eq true}\r\n            <center><span class=\'most_important\'>{$error}</span></center>\r\n        {/if}        {if $new_mail eq true}\r\n            <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from {$new_mail_name}</a></center>\r\n        {/if}\r\n\r\n<!-- USER MENU PANEL -->\r\n<div id=\'panel\' onmouseout=\'hideSubmenu();\' onmouseover=\'km();\'></div>\r\n<script language=\'JavaScript\' type=\'text/javascript\'>p = document.getElementById(\"panel\");</script>',1570604,1),(4434959,'tpl',4434951,1,'no','private',0,332,'2009-01-14 13:04:34','2010-02-16 23:04:49',0,181,NULL,'2009-01-14 13:04:34',4434959,'2009-01-14 22:46:13','template://4434959','000013420443495104434959','{if $header_id neq true} <html> <head>  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />  <link rel=\"stylesheet\" type=\"text/css\" href=\"/css/main.css\" />  <title>{* title *}{include file=\"791948.tpl\"}</title> \r\n<script type=\"text/javascript\" src=\"/id/4434971/download\"> </script>\r\n<script type=\"text/javascript\">\r\n\r\nif (window.addEventListener)\r\nwindow.addEventListener(\"load\", pagestart, false)\r\nelse if (window.attachEvent)\r\nwindow.attachEvent(\"onload\", pagestart)\r\nelse if (document.getElementById)\r\nwindow.onload=pagestart\r\n</script>\r\n\r\n</head> <body>  {if $user_id eq true} {if $header_id neq true} {* toolbar *}{include file=\"1549959.tpl\"} {/if} {/if} {if $error eq true} <center><span class=\"most_important\">{$error}</span></center>  {/if} {if $new_mail eq true} <center><a href=\"/id/24/\" class=\"mail\">u have {$new_mail} new mail,last from {$new_mail_name}</a></center>  {/if} {/if} <center>  <img src=\"/images/top.gif\" />  <table align=\"center\" valign=\"top\" class=\"bordered\" width=\"780\" cellspacing=\"0\" cellpadding=\"3\" style=\"border: 0;\">  <tr>  <td colspan=\"3\" style=\"width: 160px; text-align: center; border-width: 0 1px; border-style: solid; border-color: #6DAE42;\">  <!-- reklama? -->  {* banner editovat na /id/1870248 *}{include file=\"1870248.tpl\"} </td>  </tr>  <tr>  <!-- left column -->  <td align=\"left\" valign=\"top\" style=\"width: 230px; white-space: normal; border-width: 0 0 1px 1px; border-style: solid; border-color: #6DAE42;\"> {* <!-- blogs -->  <center><span class=\"important\">user blogs</span></center><Br>  {get_nodes_by_parent parent=21 listing_amount=23 offset=$offset} {foreach from=$get_nodes_by_parent item=child} <table width=\"230\">  <tr>  <td>  <img src=\"{get_image_link id=$child.node_creator}\" align=\"left\" hspace=\"5\" vspace=\"5\" border=\"0\">  <a href=\"/id/{$child.node_id}\">{$child.node_name|wordwrap:20:\"<br>\":true|stripslashes}</a><br>  \r\n\r\n\r\n{$child.node_content|strip_tags:false|stripslashes|truncate:66:\"...\":true|wordwrap:20:\"<br>\":true}<br>  by <a href=\"/id/{$child.node_creator}\">{$child.login}</a> {$child.node_views} views </td>  </tr>  </table>  <br>  {/foreach} <!-- end of blogs --> *} <br />  <!-- data nodes -->  <center><span class=\"important\">latest data nodes</span></center><br><br>  {get_nodes_by_type type=12 listing_amount=23 offset=$offset} {foreach from=$get_nodes_by_type item=child} <div style=\"margin-bottom: 6px;\">  <a href=\"/id/{$child.node_id}\">{$child.node_name|wordwrap:40:\"<br>\":true}</a><br>  by <a href=\"/id/{$child.node_creator}\">{$child.login|wordwrap:40:\"<br>\":true}</a><br>  in <a href=\"/id/{$child.node_parent}\">{$child.parent_name|wordwrap:40:\"<br>\":true}</a><br>  </div>  {/foreach} <!-- end of datanodes -->  <center>{* node_settings *}{include file=\"1549925.tpl\"}</center>  </td>  <!-- end of left column -->  <!-- central column -->  <td valign=\"top\" style=\"width: 380px; white-space: normal; border-width: 0 0 1px 0; border-style: solid; border-color: #6DAE42;\">  <center>{* stav uctu *}{include file=\"3024338.tpl\"}</center> \r\n\r\n<DIV ID=\"flyimage1\" STYLE=\"position:absolute; left: 3px; width:47; height:68;\">\r\n<A HREF=\"\"><IMG SRC=\"/id/4436539/download\" BORDER=0></a>\r\n</DIV>\r\n\r\n\r\n <!-- forums -->  <center><span align=\"center\" class=\"important\">latest forums</span></center><br />  {get_linked_nodes node_id=1058182 listing_amount=23} {foreach from=$get_linked_nodes item=child} <a href=\"/id/{$child.node_id}\">{$child.node_name|strip_tags|stripslashes|truncate:66:\"...\":true}</a>  by <a href=\"/id/{$child.node_creator}\">{$child.login}</a>  ({$child.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"})<br /> {* ({$child.node_children_count} children)<br>*} {/foreach} <!-- end of forums -->  <br /><br />  <center>  <h3 style=\"margin: 0px; padding: 0px;\">Povinne citanie pre kyberanov aj nekyberanov</h3>  <a href=\"/id/21909\">Kyberia Netiquette</a>  </center>  <br />  <!-- articles -->  {get_linked_nodes listing_amount=42} <br /><center><span class=\"important\" align=\"center\">latest articles</span></center>  {foreach from=$get_linked_nodes item=child } <table width=\"100%\" class=\"bordered\">  <tr>  <td>  <img width=\"75\" src=\"{get_image_link id=$child.node_id}\" align=\"left\" hspace=\"5\" vspace=\"5\" border=\"0\" />  <a href=\"/id/{$child.node_id}\">{$child.node_name|stripslashes}</a><br>  {$child.node_content|strip_tags|truncate:320|stripslashes}<br><br>  <i>node created by <a href=\"/id/{$child.node_creator}\">{$child.login}</a></i>  </td>  </tr>  </table>  <br />  {/foreach} <!-- end of articles -->  </td>  <!-- end of central column -->  <!-- right column -->  <td valign=\"top\" align=\"center\" style=\"width: 160px; white-space: normal; border-width: 0 1px 1px 0; border-style: solid; border-color: #6DAE42;\">  {if $user_id eq false} <form enctype=\"multipart/form-data\" action=\"/id/{$node.node_id}\" method=\"post\">  login::&nbsp;<input type=\"text\" name=\"login\" tabindex=\"1\" accesskey=\"l\" style=\"width: 100px;\" /><br />  pass::&nbsp;<input type=\"password\" name=\"password\" tabindex=\"2\" accesskey=\"p\" style=\"width: 100px;\" /><br />  name::&nbsp;<input type=\"radio\" name=\"login_type\" value=\"name\" accesskey=\"n\" checked=\"checked\" />  id::&nbsp;<input type=\"radio\" name=\"login_type\" value=\"id\" accesskey=\"i\" /><br />  <input type=\"submit\" name=\"event\" value=\"login\" tabindex=\"3\" /><br />  <script language=\"JavaScript\" type=\"text/javascript\">  <!-- document.write(\"<input type=\'hidden\' name=\'screen_width\' value=\'\" + screen.width + \"\'><input type=\'hidden\' name=\'screen_height\' value=\'\" + screen.height + \"\'>\"); // -->  </script>  </form>  {/if} <br />  <a href=\"/id/31\" title=\"register\">register</a><br />  <a href=\"/id/17/\"\" title=\"request password\">request password</a><br />  <br />  <form action=\"/id/25/\"\" method=\"post\">  <input type=\"text\" value=\"{$smarty.post.query}\" name=\"query\" />  <input type=\"submit\" name=\"template_event\" value=\"search\" />  </form>  <br /><br />  {if $user_id eq true} {* get_userlist *}{include file=\"1549848.tpl\"} {/if} </td>  </tr>  </table>  {* footer *}{include file=\"1549377.tpl\"} <div id=\"kewobar\" style=\"width: 1px; height: 1px; overflow: hidden;\"><a href=\"http://kewo.blog.matfyz.sk/\" target=\"_blank\">404</a> | <a href=\"http://kewo.blog.matfyz.sk/\" target=\"_blank\">Pizza Hawaii</a> | <a href=\"http://kewo.blog.matfyz.sk/\" target=\"_blank\">Web design 2008</a></div> </center> \r\n\r\n',4434959,1),(4436926,'get threaded XML',1772147,1,'no','public',1,332,'2009-01-15 01:18:08','2010-02-16 23:04:49',0,137,NULL,'2009-01-15 01:18:08',14,'2009-01-15 01:18:18','template://4436926','015496890155963504436926','{math equation=\"x/8\" x=$node.vector_depth assign=\"crd\"} {*// hlbka vektora - pocet nod vo vektore *}\r\n\r\n\r\n{if $template_event eq \'filter_by\'} {get_threaded_children listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type link=\'yes\'  ordearby=$listing_order search=$post_vars.node_content}\r\n{else}\r\n{get_threaded_children link=\'yes\' listing_amount=100 offset=0 ordearby=$listing_order}\r\n{/if}\r\n<CHILDREN k_num=\'{$user_k}\' w_num=\'{$k_wallet}\'>\r\n{section name=child loop=$get_threaded_children}{if $get_threaded_children[child].template_id neq 1549834}\r\n{*position in tree*}\r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child].depth y=$crd assign=\"hierarch\"}\r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_prev].depth y=$crd assign=\"prev_depth\"}\r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_next].depth y=$crd assign=\"next_depth\"}\r\n{*depth in hierarchy*}\r\n{if $smarty.section.child.last}{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}{else}{math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"}{/if}\r\n{*root_id decka*}\r\n{str_split string=$get_threaded_children[child].node_vector name=hroot length=8}\r\n{eval var=$str_split.hroot.$crd assign=\"h_root\"}\r\n{str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8}\r\n{eval var=$str_split.proot.$crd assign=\"p_root\"}\r\n{str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8}\r\n{eval var=$str_split.nroot.$crd assign=\"n_root\"}\r\n{*depth in hierarchy*}{if $template_event eq \'filter_by\'}{math equation=\"(x-y)\" x=$hierarch y=$prev_depth assign=\"p_depth\"}{else}{math equation=\"(x-y)-1\" x=$hierarch y=$prev_depth assign=\"p_depth\"}{/if}{*(x-y)-1*}\r\n{math equation=\"x-1\" x=$hierarch assign=\"ph_depth\"}\r\n{math equation=\"x-y\" x=$next_depth y=$hierarch assign=\"c_depth\"}\r\n{if $smarty.section.child.last}\r\n{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}\r\n{elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq \'linked\'}\r\n{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}\r\n{elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'}\r\n{math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}\r\n{else}\r\n{math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"}\r\n{/if}\r\n{math equation=\"x+1\" x=$crd assign=\"starter\"}\r\n\r\n{*obsah childu*}\r\n{capture name=child_container}\r\n<TITLE><![CDATA[{$get_threaded_children[child].node_name}]]></TITLE>\r\n<CONTENT><![CDATA[{$get_threaded_children[child].node_content}]]></CONTENT>\r\n{/capture} \r\n\r\n{*stromcek prestri sa*}\r\n{if $smarty.section.child.first && $sterter < $hierarch}\r\n{section name=sta loop=$ph_depth}\r\n<CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n{/if}\r\n{if $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch} \r\n{section name=sta loop=$p_depth}\r\n<CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n{elseif $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch} \r\n{section name=sta loop=$p_depth}\r\n<CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\'}\r\n{section name=sta loop=$ph_depth}\r\n<CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\'} \r\n{section name=sta loop=$hp_depth}\r\n<CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n{/if}\r\n  <CHILD id=\'sub{$get_threaded_children[child].node_id}\' creatorid=\'{$get_threaded_children[child].node_creator}\' creatornick=\'{$get_threaded_children[child].login}\' vector=\'{$get_threaded_children[child].node_vector}\' created=\'{$get_threaded_children[child].node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}}\'{if $get_threaded_children[child].node_updated} updated=\'{$get_threaded_children[child].node_updated|date_format:\"%d.%m.%Y - %H:%M:%S\"}\'{/if}{if $get_threaded_children[child].k > 0} k=\'{$get_threaded_children[child].k}\'{/if} h=\'{$hierarch}\'{if $get_threaded_children[child.index_next].node_status eq \'linked\'} linked=\'true\'{/if}>\r\n      {$smarty.capture.child_container} {*obsah*}\r\n{if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id}\r\n{section name=con loop=$c_depth}\r\n  <CHILD PRESENCE=\'virtual\'>\r\n{/section}\r\n\r\n{elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'}\r\n    {elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq \'linked\'}{else}\r\n  </CHILD>\r\n{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}\r\n{section name=fin loop=$h_depth}\r\n  </CHILD>\r\n{/section}{/if}\r\n{/if}{/section}\r\n</CHILDREN>',4436926,1),(4456781,'people',3819763,1,'no','moderated',0,332,'2009-01-22 21:04:27','2010-02-16 23:04:49',3,72,NULL,'2009-01-22 21:04:27',14,'2009-02-11 00:51:17','template://4456781','0000010100063535000635590381976304456781','<h3>People</h3><div>\r\n{if $user_id eq false} \r\nplz log in\r\n{else}\r\n{get_userlist}\r\n<div  class=\\\"module\\\">\r\n  {foreach name=users from=$active_users item=active_user}\r\n  <div>\r\n    <a href=\\\'/id/{$active_user.user_id}/\\\'>\r\n    {$active_user.login|strip_tags|truncate:25:\\\"...\\\":true}</a> [\r\n    <a href=\\\'/id/{$active_user.user_action_id}\\\'>{$active_user.user_action|strip_tags|truncate:25:\\\"...\\\":true}</a> ]\r\n    {$active_user.idle_time_minutes}m {$active_user.idle_time_seconds}s \r\n  </div>                \r\n  {/foreach}\r\n</div>{/if}</div>',63559,1),(4460684,'mex_template',4460679,1,'no','public',0,332,'2009-01-24 15:27:02','2010-02-16 23:04:49',0,841,NULL,'2009-01-24 15:27:03',14,'2009-12-14 22:00:15','template://4460684','000001010079201102585036035567360446067904460684','{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false}\r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br>\r\n{/if}\r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column-->\r\n<td valign=\'top\' align=\'center\' width=\'23%\'>\r\n{* node_settings *}\r\n{include file=\"1549925.tpl\"}\r\n\r\n{* get_poll_box *}\r\n{include file=\"1549834.tpl\"}\r\n<br>\r\n{*get_bookmark_statistics_box : include file=\"1549386.tpl\" *}\r\n<img src=/images/nodes/1/0/101.gif border=1>\r\n</td>\r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td width=666 valign=\'top\'>\r\n{*node_content*}\r\n{include file=\"1549916.tpl\"}\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq\r\nfalse}{$action}{/if}\'method=\'post\' name=\'formular\'>\r\n{if $permissions.w eq true}\r\n  {*addnode ---------- *}\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!-- ADDNODE | MARIN -->\r\n{if $permissions.w eq true}\r\n\r\n<div class=\'add_title\' style=\'margin-bottom:2pt;\'>\r\n  title or keywords::\r\n  <input type=\'text\' name=\'node_name\' id=\'node_name\' value=\'{$post_vars.node_name}\'>\r\n  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NO HTML\r\n</div>\r\n\r\n<textarea name=\'node_content\' id=\'node_content\'>{$post_vars.node_content|escape:\"html\"|stripslashes}\r\n</textarea>\r\n\r\n<div class=\'toolbar\'>\r\n  <input type=\'submit\' value=\'add\' name=\'event\' />\r\n  <input type=\'submit\' value=\'preview\' name=\'template_event\' class=\'preview_button\' />\r\n  <input type=\'text\' name=\'template_id\' size=5 value=\'{if $node.template_id == 2}3{else}4{/if}\'\r\ntitle=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12]\' />\r\n  <select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>\r\n    <option value=\'\' selected>helpful</option>\r\n    <option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>\r\n    <option value=\'<img src=\"\">\'>image</option>\r\n    <option value=\'<b></b>\'>bold</option>\r\n    <option value=\'<i></i>\'>italic</option>\r\n  </select>\r\n  {* movement *}{include file=\"1549913.tpl\"}\r\n  <input type=\'submit\' value=\'filter_by\' name=\'template_event\' />\r\n  <select name=\"search_type\" style=\"\">\r\n    <option value=\"title_content\" selected=\"selected\">title/content</option>\r\n    <option value=\"content\">content</option>\r\n    <option value=\"title\">title</option>\r\n    <option value=\"user\">user</option>\r\n  </select>\r\n  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'>\r\n</div>\r\n  {* owner_toolbar *}{include file=\"1549939.tpl\"}\r\n{/if}\r\n\r\n<div class=\'add_put\'>\r\n  <input type=\'submit\' value=\'delete\' name=\'event\' />\r\n   <span class=\'add_k_cmnt\'>&nbsp; u have {$user_k} </span>\r\n   <input type=\'submit\' value=\'K\' name=\'event\' />\r\n   <input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />\r\n   <input type=\'submit\' value=\'put\' name=\'event\' /> into\r\n   <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />\r\n   <select name=\'nodeshell_id_select\'>\r\n    {foreach from=$bookmarks key=id item=name}<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach}\r\n   </select>\r\n   <input type=\'submit\' value=\'go_to\' name=\'event\' />\r\n</div>\r\n<br />\r\n\r\n\r\n{*add_music*}\r\n{if $permissions.w eq true}\r\n\r\n\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\n\r\nfunction open_win() {\r\n  var add_m = document.getElementById(\'add_m\');\r\n  if(add_m.style.display == \'block\' || add_m.style.display == \'\') {\r\n    add_m.style.display = \'none\';\r\n  } else {\r\n    add_m.style.display = \'block\';\r\n  }\r\n}\r\nfunction naplnData(status) {\r\n  var textarea = document.getElementById(\'node_content\');\r\n  var node_name = document.getElementById(\'node_name\')\r\n  var artist = document.getElementById(\'artist\');\r\n  var album = document.getElementById(\'album\');\r\n  var genre = document.getElementById(\'genre\');\r\n  var img1 = document.getElementById(\'img1\');\r\n  var img2 = document.getElementById(\'img2\');\r\n  var img3 = document.getElementById(\'img3\');\r\n  var img4 = document.getElementById(\'img4\');\r\n  var imdb = document.getElementById(\'imdb\');\r\n  var playlist = document.getElementById(\'playlist\');\r\n  var download = document.getElementById(\'download\');\r\n  var info = document.getElementById(\'info\');\r\n  var lastfm = document.getElementById(\'lastfm\');\r\n  var myspace = document.getElementById(\'myspace\');\r\n  var youtube = document.getElementById(\'youtube\');\r\n  var custom_name = document.getElementById(\'custom_name\');\r\n  var custom_text = document.getElementById(\'custom_text\');\r\n\r\n  var startDiv = \'<div style=\"color:#777;width:60px;text-align:right;float:left\">\';\r\n\r\n\r\n  var newData = \'<div style=\"width:610px;float:left\">\';\r\n  if (status == \"plus\" && textarea.value ) {\r\n    var newData = textarea.value + \'<br /><hr style=\"padding:0px; border: 1px #444 solid\" /><br /> <div style=\"width:610px;float:left\">\';\r\n  }\r\n  if (status != \"plus\") {\r\n    if (artist.value && album.value)\r\n      node_name.value = artist.value + \' - \' + album.value;\r\n    else if (artist.value)\r\n      node_name.value = artist.value;\r\n    else if (album.value)\r\n      node_name.value = album.value;\r\n  } else {\r\n    node_name.value = \'\';\r\n  }\r\n\r\n\r\n/* artist album genre - img1 img2 img3 img4 - playlist download info - lastfm myspace youtube - custom_name custom_text */\r\n\r\n  if (artist.value) newData = newData + startDiv + \'artist |&nbsp;</div><b style=\"font-size:12px;\"> \' + artist.value + \' </b><br />\';\r\n  if (album.value) newData = newData + startDiv + \'album |&nbsp;</div> <b style=\"font-size:12px;\">\' + album.value + \' </b><br />\';\r\n  if (genre.value) newData = newData + startDiv + \'genre |&nbsp;</div> \' + genre.value + \' <br />\';\r\n  if (artist.value || album.value || genre.value ) newData = newData + \'<br />\';\r\n  if (img1.value) newData = newData + \'<img src=\"\' + img1.value + \'\" /><br /><br /> \';\r\n  if (img2.value) newData = newData + \'<img src=\"\' + img2.value + \'\" /><br /><br /> \';\r\n  if (img3.value) newData = newData + \'<img src=\"\' + img3.value + \'\" /><br /><br /> \';\r\n  if (img4.value) newData = newData + \'<img src=\"\' + img4.value + \'\" /><br /><br /> \';\r\n\r\n  if (lastfm.value) newData = newData + startDiv + \'lastfm |&nbsp;</div> \' + lastfm.value + \' <br />\';\r\n  if (myspace.value) newData = newData + startDiv + \'myspace |&nbsp;</div> \' + myspace.value + \' <br />\';\r\n  if (youtube.value) newData = newData + startDiv + \'youtube |&nbsp;</div> \' + youtube.value + \' <br />\';\r\n  if (custom_name.value || custom_text.value)\r\n    newData = newData + startDiv + custom_name.value + \' |&nbsp;</div> \' + custom_text.value + \' <br />\';\r\n  if (playlist.value)\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv + \'playlist |&nbsp;</div><div style=\"float:left; width:500px;\"> \' + playlist.value + \' </div></div>\';\r\n  if (download.value)\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv + \'download |&nbsp;</div><div style=\"float:left; width:500px;\"> \' + download.value + \' </div></div>\';\r\n  if (info.value)\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv + \'info |&nbsp;</div><div style=\"float:left; width:500px;\"> \' + info.value + \' </div></div>\';\r\n\r\n  newData = newData + \'</div>\';\r\n  textarea.value = newData;\r\n\r\n/* artist album genre - img1 img2 img3 img4 - playlist download info - lastfm myspace youtube - custom_name custom_text */\r\n/*    - img1 img2 img3 img4 -    -    - custom_name custom_text */\r\n  if (status == \"plus\") {\r\n    artist.value = \'\';\r\n    album.value = \'\';\r\n    genre.value = \'\';\r\n    img1.value = \'\';\r\n    img2.value = \'\';\r\n    img3.value = \'\';\r\n    img4.value = \'\';\r\n    playlist.value = \'\';\r\n    download.value = \'\';\r\n    info.value = \'\';\r\n    lastfm.value = \'\';\r\n    myspace.value = \'\';\r\n    youtube.value = \'\';\r\n    custom_name.value = \'\';\r\n    custom_text.value = \'\';\r\n  }\r\n\r\n}\r\n\r\n//-->\r\n</script>\r\n\r\n<style type=\"text/css\" media=\"screen\">\r\ndiv.btn {background-color:#222; border:1px #444 solid; padding:2px 12px; margin:3px 0 0 0; color:#fff; font-weight: bold; width: 70px; text-align:center; cursor:hand; }\r\ndiv.btn:hover { background-color:#333; color:#fff; }\r\n#add_m div.btn {background-color:#333; border:1px #444 solid; padding:2px 12px; display:block; margin:3px 0px 3px 10px; float:left; color:#fff; font-weight: bold;}\r\n#add_m div.btn:hover {background-color:#444; border:1px #555 solid; color:#fff; }\r\n#add_m {background-color:#111; border:1px #444 solid; width:650px; overflow:hidden; margin: 0;}\r\n#add_m input {width:250px;}\r\n#add_m input.mini {width:50px;margin-left:5px;}\r\n#add_m input.img {width:140px;}\r\n#add_m span.popis {color:#777 ;width:60px; text-align:right; float:left; margin-right:2px;}\r\n#add_m .left {float:left;  overflow:hidden; width: 320px; margin:10px 0;}\r\n#add_m textarea {width:250px; height:50px; font-family: tahoma;font-size: 10px;}\r\n#add_m .bottom {background-color:#222; overflow: hidden; margin: 10px 0 0 0;}\r\n</style>\r\n\r\n{/literal}\r\n\r\n\r\n<div class=\"btn\" onclick=\"open_win()\">add music</div>\r\n<div id=\"add_m\" style=\"display:none\">\r\n  <div class=\"left\">\r\n    <span class=\"popis\"><b>artist</b>:</span> <input type=\'text\' id=\'artist\' name=\'artist\' /><br />\r\n    <span class=\"popis\"><b>album</b>:</span> <input type=\'text\' id=\'album\' name=\'album\' /><br />\r\n    <span class=\"popis\">genre:</span> <input type=\'text\' id=\'genre\' name=\'genre\' style=\"width:160px; float:left;\" /><br /><br />\r\n    <span class=\"popis\">lastfm:</span> <input type=\'text\' id=\'lastfm\' name=\'lastfm\' /><br />\r\n    <span class=\"popis\">myspace:</span> <input type=\'text\' id=\'myspace\' name=\'myspace\' /><br />\r\n    <span class=\"popis\">youtube:</span> <input type=\'text\' id=\'youtube\' name=\'youtube\' /><br />\r\n    <input type=\'text\' id=\'custom_name\' name=\'custom_name\' class=\"mini\" />:\r\n    <input type=\'text\' id=\'custom_text\' name=\'custom_text\' /><br />\r\n  </div>\r\n  <div class=\"left\">\r\n    <span class=\"popis\">playlist:</span> <textarea name=\'playlist\' id=\'playlist\'></textarea><br />\r\n    <span class=\"popis\">download:</span> <textarea name=\'download\' id=\'download\'></textarea><br />\r\n    <span class=\"popis\">info:</span> <textarea name=\'info\' id=\'info\'></textarea><br />\r\n  </div>\r\n  <span class=\"popis\">images:</span>\r\n  <input type=\'text\' id=\'img1\' name=\'img1\' class=\"img\" />\r\n  <input type=\'text\' id=\'img2\' name=\'img2\' class=\"img\" />\r\n  <input type=\'text\' id=\'img3\' name=\'img3\' class=\"img\" />\r\n  <input type=\'text\' id=\'img4\' name=\'img4\' class=\"img\" />\r\n  <br />\r\n\r\n  <div class=\"bottom\">\r\n    <div class=\"btn\" onclick=\'naplnData()\'>add</div>\r\n    <div class=\"btn\" onclick=\'naplnData(\"plus\")\'>add multiple</div>\r\n  </div>\r\n</div>\r\n\r\n{/if}\r\n\r\n\r\n\r\n{* get_node_userlist *}{include file=\"1549803.tpl\"}\r\n{*addnode ---------- end *}\r\n{else}{* read-only *}{include file=\"2264143.tpl\"}\r\n{/if}\r\n{*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4}\r\n</form>\r\n<!--end of central column-->\r\n</td></tr></table>\r\n{*footer*}{include file=\"1549377.tpl\"}\r\n\r\n\r\n',2585036,1),(4460821,'mex_js',123456,1,'no','private',1,332,'2009-01-24 16:17:28','2010-02-16 23:04:49',0,22,NULL,'2009-01-24 16:17:28',14,'2009-01-24 16:22:18','template://4460821','000001010079201102585036035567360446067904460821','\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\n\r\nfunction naplnData() {\r\n\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\nfunction klik() {\r\n   var nadpisy = document.getElementsByTagName(\'h3\');\r\n   for (i=0; i<nadpisy.length; i++) {\r\n      var nadpis = nadpisy[i];\r\n      nadpis.onclick = function() {\r\n         if(this.nextSibling.style.display == \'block\' || this.nextSibling.style.display == \'\') {\r\n            this.nextSibling.style.display = \'none\';\r\n         } else {\r\n            this.nextSibling.style.display = \'block\';\r\n         }\r\n      }\r\n   }\r\n}\r\nwindow.onload=klik;\r\n\r\n\r\n\r\n\r\n\r\n\r\n//-->\r\n</script>\r\n{/literal}',2585036,1),(4460912,'mex_css',123456,1,'no','private',1,332,'2009-01-24 17:04:10','2010-02-16 23:04:49',0,9,NULL,'2009-01-24 17:04:10',14,'2009-01-24 17:04:29','template://4460912','000001010079201102585036035567360446067904460912','.popis {\r\ncolor:#777;\r\nwidth:200px;\r\ntext-align:right\r\n}',2585036,1),(4462143,'divx_template',4460679,1,'no','public',0,332,'2009-01-25 10:56:54','2010-02-16 23:04:49',0,256,NULL,'2009-01-25 10:56:54',14,'2009-12-14 22:13:22','template://4462143','000001010079201102585036035567360446067904462143','{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false}\r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br>\r\n{/if}\r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column-->\r\n<td valign=\'top\' align=\'center\' width=\'23%\'>\r\n{* node_settings *}\r\n{include file=\"1549925.tpl\"}\r\n\r\n{* get_poll_box *}\r\n{include file=\"1549834.tpl\"}\r\n<br>\r\n{*get_bookmark_statistics_box : include file=\"1549386.tpl\" *}\r\n<img src=/images/nodes/1/0/101.gif border=1>\r\n</td>\r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td width=666 valign=\'top\'>\r\n{*node_content*}\r\n{include file=\"1549916.tpl\"}\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq\r\nfalse}{$action}{/if}\'method=\'post\' name=\'formular\'>\r\n{if $permissions.w eq true}\r\n  {*addnode ---------- *}\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!-- ADDNODE | MARIN -->\r\n{if $permissions.w eq true}\r\n\r\n<div class=\'add_title\' style=\'margin-bottom:2pt;\'>\r\n  title or keywords::\r\n  <input type=\'text\' name=\'node_name\' id=\'node_name\' value=\'{$post_vars.node_name}\'>\r\n  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NO HTML\r\n</div>\r\n\r\n<textarea name=\'node_content\' id=\'node_content\'>{$post_vars.node_content|escape:\"html\"|stripslashes}\r\n</textarea>\r\n\r\n<div class=\'toolbar\'>\r\n  <input type=\'submit\' value=\'add\' name=\'event\' />\r\n  <input type=\'submit\' value=\'preview\' name=\'template_event\' class=\'preview_button\' />\r\n  <input type=\'text\' name=\'template_id\' size=5 value=\'{if $node.template_id == 2}3{else}4{/if}\'\r\ntitle=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12]\' />\r\n  <select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>\r\n    <option value=\'\' selected>helpful</option>\r\n    <option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>\r\n    <option value=\'<img src=\"\">\'>image</option>\r\n    <option value=\'<b></b>\'>bold</option>\r\n    <option value=\'<i></i>\'>italic</option>\r\n  </select>\r\n  {* movement *}{include file=\"1549913.tpl\"}\r\n  <input type=\'submit\' value=\'filter_by\' name=\'template_event\' />\r\n  <select name=\'search_type\' style=\'\'>\r\n    <option value=\'content\'>content</option>\r\n    <option value=\'user\'>user</option>\r\n  </select>\r\n  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'>\r\n</div>\r\n  {* owner_toolbar *}{include file=\"1549939.tpl\"}\r\n{/if}\r\n\r\n<div class=\'add_put\'>\r\n  <input type=\'submit\' value=\'delete\' name=\'event\' />\r\n   <span class=\'add_k_cmnt\'>&nbsp; u have {$user_k} </span>\r\n   <input type=\'submit\' value=\'K\' name=\'event\' />\r\n   <input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />\r\n   <input type=\'submit\' value=\'put\' name=\'event\' /> into\r\n   <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />\r\n   <select name=\'nodeshell_id_select\'>\r\n    {foreach from=$bookmarks key=id item=name}<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach}\r\n   </select>\r\n   <input type=\'submit\' value=\'go_to\' name=\'event\' />\r\n</div>\r\n<br />\r\n\r\n\r\n{*add_movie*}\r\n{if $permissions.w eq true}\r\n\r\n\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\n\r\nfunction open_win() {\r\n  var add_m = document.getElementById(\'add_m\');\r\n  if(add_m.style.display == \'block\' || add_m.style.display == \'\') {\r\n    add_m.style.display = \'none\';\r\n  } else {\r\n    add_m.style.display = \'block\';\r\n  }\r\n}\r\n\r\nfunction naplnData(status) {\r\n  var textarea = document.getElementById(\'node_content\');\r\n  var node_name = document.getElementById(\'node_name\')\r\n  var movie = document.getElementById(\'movie\');\r\n  var genre = document.getElementById(\'genre\');\r\n  var year = document.getElementById(\'year\');\r\n  var director = document.getElementById(\'director\');\r\n  var img1 = document.getElementById(\'img1\');\r\n  var img2 = document.getElementById(\'img2\');\r\n  var img3 = document.getElementById(\'img3\');\r\n  var img4 = document.getElementById(\'img4\');\r\n  var imdb = document.getElementById(\'imdb\');\r\n  var csfd = document.getElementById(\'csfd\');\r\n  var subs = document.getElementById(\'subs\');\r\n  var trailer = document.getElementById(\'trailer\');\r\n  var custom_name = document.getElementById(\'custom_name\');\r\n  var custom_text = document.getElementById(\'custom_text\');\r\n  var format = document.getElementById(\'format\');\r\n  var bitrate_v = document.getElementById(\'bitrate_v\');\r\n  var bitrate_a = document.getElementById(\'bitrate_a\');\r\n  var resolution = document.getElementById(\'resolution\');\r\n  var codec = document.getElementById(\'codec\');\r\n  var duration = document.getElementById(\'duration\');\r\n  var size = document.getElementById(\'size\');\r\n  var youtube = document.getElementById(\'youtube\');\r\n  var download = document.getElementById(\'download\');\r\n  var info = document.getElementById(\'info\');\r\n  \r\n\r\n  var startDiv = \'<div style=\"color:#777;width:60px;text-align:right;float:left\">\';\r\n\r\n  var newData = \'<div style=\"width:610px;float:left\">\';\r\n  if (status == \"plus\" && textarea.value ) {\r\n    var newData = textarea.value + \'<br /><hr style=\"padding:0px; border: 1px #444 solid\" /><br /> <div style=\"width:610px;float:left\">\';\r\n  }\r\n  if (status != \"plus\" && movie.value) {\r\n    node_name.value = movie.value;\r\n  } else {\r\n    node_name.value = \'\';\r\n  }\r\n\r\n  if (movie.value) { newData = newData + startDiv + \'movie |&nbsp;</div><b style=\"font-size:12px;\"> \' + movie.value + \' </b><br />\'; }\r\n  if (genre.value) {newData = newData + startDiv + \'genre |&nbsp;</div> \' + genre.value + \' <br />\'; }\r\n  if (year.value) {newData = newData + startDiv + \'year |&nbsp;</div> \' + year.value + \' <br />\'; }\r\n  if (director.value) {newData = newData + startDiv + \'director |&nbsp;</div> \' + director.value + \' <br />\'; }\r\n  if (movie.value || genre.value || year.value || director.value ) { newData = newData + \'<br />\'; }\r\n  if (img1.value) {newData = newData + \'<img src=\"\' + img1.value + \'\" /><br /><br /> \'; }\r\n  if (img2.value) {newData = newData + \'<img src=\"\' + img2.value + \'\" /><br /><br /> \'; }\r\n  if (img3.value) {newData = newData + \'<img src=\"\' + img3.value + \'\" /><br /><br /> \'; }\r\n  if (img4.value) {newData = newData + \'<img src=\"\' + img4.value + \'\" /><br /><br /> \'; }\r\n  if (imdb.value) {newData = newData + startDiv + \'imdb |&nbsp;</div> \' + imdb.value + \' <br />\'; }\r\n  if (csfd.value) {newData = newData + startDiv + \'csfd |&nbsp;</div> \' + csfd.value + \' <br />\'; }\r\n  if (subs.value) { newData = newData + startDiv + \'subs |&nbsp;</div> \' + subs.value + \' <br />\'; }\r\n  if (trailer.value) { newData = newData + startDiv + \'trailer |&nbsp;</div> \' + trailer.value + \' <br />\'; }\r\n  if (custom_name.value || custom_text.value) {\r\n    newData = newData + startDiv + custom_name.value + \' |&nbsp;</div> \' + custom_text.value + \' <br />\';\r\n  }\r\n  \r\n  if (format.value) {newData = newData + startDiv + \'format |&nbsp;</div> \' + format.value + \' <br />\';  }\r\n  if (size.value) {newData = newData + startDiv + \'size |&nbsp;</div> \' + size.value + \' <br />\';  }\r\n  if (bitrate_v.value) {newData = newData + startDiv + \'bitrate V |&nbsp;</div> \' + bitrate_v.value + \' <br />\';  }\r\n  if (bitrate_a.value) {newData = newData + startDiv + \'bitrate A |&nbsp;</div> \' + bitrate_a.value + \' <br />\';  }\r\n\r\n  if (duration.value) {newData = newData + startDiv + \'duration |&nbsp;</div> \' + duration.value + \' <br />\';  }\r\n  if (resolution.value) {newData = newData + startDiv + \'resolution |&nbsp;</div> \' + resolution.value + \' <br />\';  }\r\n  if (codec.value) {newData = newData + startDiv + \'codec |&nbsp;</div> \' + codec.value + \' <br />\';  }\r\n\r\n  if (download.value) {\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv + \'download |&nbsp;</div><div style=\"float:left; width:90%;\"> \' + download.value + \' </div></div>\';\r\n  }\r\n  if (info.value) {\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv +\' info |&nbsp;</div><div style=\"float:left; width:90%;\"> \' + info.value + \' </div></div>\';\r\n  }\r\n  newData = newData + \'</div>\';\r\n  textarea.value = newData;\r\n\r\n  if (status == \"plus\") {\r\n    movie.value = \'\';\r\n    genre.value = \'\';\r\n    year.value = \'\';\r\n    director.value = \'\';\r\n    img1.value = \'\';\r\n    img2.value = \'\';\r\n    img3.value = \'\';\r\n    img4.value = \'\';\r\n    imdb.value = \'\';\r\n    csfd.value = \'\';\r\n    subs.value = \'\';\r\n    trailer.value = \'\';\r\n    custom_name.value = \'\';\r\n    custom_text.value = \'\';\r\n    format.value = \'\';\r\n    bitrate_v.value = \'\';\r\n    bitrate_a.value = \'\';\r\n    resolution.value = \'\';\r\n    codec.value = \'\';\r\n    duration.value = \'\';\r\n    size.value = \'\';\r\n    download.value = \'\';\r\n    info.value = \'\';\r\n    \r\n  }\r\n\r\n\r\n}\r\n\r\n//-->\r\n</script>\r\n\r\n<style type=\"text/css\" media=\"screen\">\r\ndiv.btn {background-color:#222; border:1px #444 solid; padding:2px 12px; margin:3px 0 0 0; color:#fff; font-weight: bold; width: 70px; text-align:center; cursor:hand; }\r\ndiv.btn:hover { background-color:#333; color:#fff; }\r\n#add_m div.btn {background-color:#333; border:1px #444 solid; padding:2px 12px; display:block; margin:3px 0px 3px 10px; float:left; color:#fff; font-weight: bold;}\r\n#add_m div.btn:hover {background-color:#444; border:1px #555 solid; color:#fff; }\r\n#add_m {background-color:#111; border:1px #444 solid; width:650px; overflow:hidden; margin: 0;}\r\n#add_m input {width:250px;}\r\n#add_m input.mini {width:50px;margin-left:5px;}\r\n#add_m input.img {width:140px;}\r\n#add_m span.popis {color:#777 ;width:60px; text-align:right; float:left; margin-right:2px;}\r\n#add_m .left {float:left;  overflow:hidden; width: 320px; margin:10px 0;}\r\n#add_m textarea {width:250px; height:125px; font-family: tahoma;font-size: 10px;}\r\n#add_m .bottom {background-color:#222; overflow: hidden; margin: 10px 0 0 0;}\r\n</style>\r\n\r\n{/literal}\r\n\r\n<div class=\"btn\" onclick=\"open_win()\">add movie</div>\r\n<div id=\"add_m\" style=\"display:none\">\r\n  <div class=\"left\">\r\n    <span class=\"popis\"><b>movie</b>:</span> <input type=\'text\' id=\'movie\' name=\'movie\' /><br />\r\n    <span class=\"popis\">genre:</span> <input type=\'text\' id=\'genre\' name=\'genre\' style=\"width:160px; float:left;\" />\r\n    <span class=\"popis\" style=\"width:35px\">year:</span> <input type=\'text\' id=\'year\' name=\'year\' style=\"width:53px\" /><br />\r\n    <span class=\"popis\">director:</span> <input type=\'text\' id=\'director\' name=\'director\' /><br /><br />\r\n    <span class=\"popis\">imdb:</span> <input type=\'text\' id=\'imdb\' name=\'imdb\' /><br />\r\n    <span class=\"popis\">csfd:</span> <input type=\'text\' id=\'csfd\' name=\'csfd\' /><br />\r\n    <span class=\"popis\">subs:</span> <input type=\'text\' id=\'subs\' name=\'subs\' /><br />\r\n    <span class=\"popis\">trailer:</span> <input type=\'text\' id=\'trailer\' name=\'trailer\' /><br />\r\n    <input type=\'text\' id=\'custom_name\' name=\'custom_name\' class=\"mini\" />: <input type=\'text\' id=\'custom_text\' name=\'custom_text\' /><br /><br />\r\n\r\n    <span class=\"popis\">format:</span> <input type=\'text\' id=\'format\' name=\'format\' style=\"width:92px; float:left;\" />\r\n    <span class=\"popis\" style=\"width:60px\">size:</span> <input type=\'text\' id=\'size\' name=\'size\' style=\"width:92px\" /><br />\r\n\r\n    <span class=\"popis\">bitrate V:</span> <input type=\'text\' id=\'bitrate_v\' name=\'bitrate_v\' style=\"width:92px; float:left;\" />\r\n    <span class=\"popis\" style=\"width:60px\">bitrate A:</span> <input type=\'text\' id=\'bitrate_a\' name=\'bitrate_a\' style=\"width:92px\" /><br />\r\n\r\n    <span class=\"popis\">duration:</span> <input type=\'text\' id=\'duration\' name=\'duration\' style=\"width:92px; float:left;\" />\r\n    <span class=\"popis\" style=\"width:60px\">resolution:</span> <input type=\'text\' id=\'resolution\' name=\'resolution\' style=\"width:92px\" /><br />\r\n    <span class=\"popis\">codec:</span> <input type=\'text\' id=\'codec\' name=\'codec\' /><br />\r\n<!--  format, duration, size -->\r\n<!--  bitrate_v bitrate_a resolution codec -->\r\n    \r\n  </div>\r\n  <div class=\"left\">\r\n    <span class=\"popis\">download:</span> <textarea name=\'download\' id=\'download\'></textarea><br />\r\n    <span class=\"popis\">info:</span> <textarea name=\'info\' id=\'info\'></textarea><br />\r\n  </div>\r\n  <span class=\"popis\">images:</span>\r\n  <input type=\'text\' id=\'img1\' name=\'img1\' class=\"img\" />\r\n  <input type=\'text\' id=\'img2\' name=\'img2\' class=\"img\" />\r\n  <input type=\'text\' id=\'img3\' name=\'img3\' class=\"img\" />\r\n  <input type=\'text\' id=\'img4\' name=\'img4\' class=\"img\" />\r\n  <br />\r\n\r\n  <div class=\"bottom\">\r\n    <div class=\"btn\" onclick=\'naplnData()\'>add</div>\r\n    <div class=\"btn\" onclick=\'naplnData(\"plus\")\'>add multiple</div>\r\n  </div>\r\n</div>\r\n\r\n{/if}\r\n\r\n\r\n\r\n{* get_node_userlist *}{include file=\"1549803.tpl\"}\r\n{*addnode ---------- end *}\r\n{else}{* read-only *}{include file=\"2264143.tpl\"}\r\n{/if}\r\n{*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4}\r\n</form>\r\n<!--end of central column-->\r\n</td></tr></table>\r\n{*footer*}{include file=\"1549377.tpl\"}',2585036,1),(4471638,'view',4128533,1,'no','private',0,332,'2009-01-29 00:03:11','2010-02-16 23:04:49',0,17,NULL,'2009-01-29 00:03:11',3,'2009-01-29 00:03:28','template://4471638','021275010412853304471638','<h1> Aha TOTH!;DD</h1>\r\n\r\nmi nedychaj na paty jak magor!',4471638,1),(4479369,'bookmarks',2455625,1,NULL,'private',0,332,'2009-02-01 13:21:28','2010-02-16 23:04:49',0,200,NULL,'2009-02-01 13:21:28',4479369,'2009-02-01 15:00:16','template://4479369','0245562504479369','fakt je vonku krasne :)',0,1),(4488928,'configure_template',4496368,1,'no','public',2,332,'2009-02-04 18:31:11','2010-02-16 23:04:49',0,569,NULL,'2009-02-04 18:31:11',4,'2009-02-07 17:35:43','template://4488928','0198967504488928','{if $header_id neq true}\r\n<html>\r\n    <head>      \r\n        <meta http-equiv=\"Default-Style\" content=\"kyberia\">\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n        <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\' href=\'/templates/2019722.tpl\'>\r\n        <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n        <!-- AJAX CONNECTION -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\" src=\"/ajax/XHConn.js\"></script>\r\n        <!-- CHECK NEW MAIL -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/check_new_mail.js\"></script>\r\n    </head>\r\n    <body>\r\n  {if $user_id eq true}{include file=\"1549959.tpl\"}{/if}\r\n  {if $error eq true}<center><span class=\'most_important\'>{$error}</span></center>{/if}\r\n  {if $new_mail eq true}<center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new\r\nmail,last from {$new_mail_name}</a></center>{/if}\r\n\r\n\r\n{/if}\r\n\r\n\r\n\r\n\r\n\r\n{if $user_id eq false}<center><!-- preco je tu ten center, ak includujeme nieco? -->{* loginbox *}{include file=\"1549885.tpl\"}</center><br /><br/>{/if}\r\n\r\n{if $node.node_creator eq $user_id or $node.node_permission eq \'master\'}\r\n\r\n<h2 class=\"sloboconfigure\">Node</h2>\r\n\r\n{if $node.k < 23}\r\n<span style=\"height:300px;width:74px;position:fixed;right:0;top:100px;z-index:-1;background-image: url(\'http://x86.sk/~slobo/conf/back.png\');\">&nbsp;</span>\r\n{else}\r\n<span style=\"height:300px;width:74px;position:fixed;right:0;top:100px;z-index:-1;background-image: url(\'http://x86.sk/~slobo/conf/backred.png\');\">&nbsp;</span>\r\n{/if}\r\n\r\n\r\n\r\n<br />\r\n<form class=\"sloboconfigure\" method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n  <label>Current image:</label>\r\n  <img src=\'{get_image_link id=$node.node_id}\' /><br />\r\n\r\n  \r\n  <label for=\'description_image\'>Conf. image:</label>\r\n  <input type=\'file\' id=\'description_image\' name=\'description_image\' />\r\n  <input type=\'submit\' name=\'event\' value=\'configure_image\' /><br /><br />\r\n\r\n  <label for=\'node_name\'>Node name:</label>\r\n  <input type=\'text\' id=\'node_name\' name=\'node_name\' value=\'{$node.node_name}\' />\r\n  <input type=\'submit\' name=\'event\' value=\'configure_node_name\'/ style=\'\' />(?)<br />\r\n \r\n  <label for=\'new_parent\'>Parent:</label>\r\n  <input type=\'text\' id=\'new_parent\' name=\'new_parent\' value=\'{$node.node_parent}\' />\r\n  <input type=\'submit\' name=\'event\' value=\'set_parent\' />(?)<br />\r\n  \r\n  <label for=\'owner\'>Owner:</label>\r\n  <input type=\'text\' id=\'owner\' name=\'owner\' value=\'{$node.owner}\' />\r\n	<input type=\'submit\' name=\'event\' value=\'set_creator\' disabled=\'disabled\' /><br /><br />\r\n\r\n  <label for=\'template_id\'>Template id:</label>\r\n  <input type=\'text\' id=\'template_id\' name=\'template_id\' value=\'{$node.template_id}\' title=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12 | user: 7]\' />\r\n  <input type=\'submit\' name=\'event\' value=\'configure_template_id\' />(?)<br />\r\n  \r\n</form>\r\n\r\n\r\n{if $user_id eq $node.node_id}\r\n\r\n<h2 class=\"sloboconfigure\">User</h2>\r\n<br />\r\n\r\n<form class=\"sloboconfigure\" method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n\r\n  <label for=\'k_wallet\'>K wallet:</label>\r\n  <input type=\'text\' id=\'k_wallet\' name=\'k_wallet\' value=\'{$k_wallet}\' />\r\n  <input type=\'submit\' name=\'event\' value=\'k_wallet\' /><br /><br />\r\n  \r\n{get_moods user_id=$user_id}  \r\n  <label for=\'moodlist\'>Moodlist:</label>\r\n  <textarea class=\'small\' id=\'moodlist\' name=\'moodlist\'>{$get_moods_string}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'moodlist\' /><br /> \r\n  \r\n  <label for=\'mood\'>Set Mood:</label>\r\n  <select id=\'mood\' name=\'mood\'>\r\n   {foreach from=$get_moods item=mood}\r\n		<option value=\'{$mood.node_id}\' {if $get_moods_mood.node_id eq $mood.node_id}selected{/if}>{$mood.node_name}</option>\r\n		{/foreach}\r\n		<option value=\'\' {if $get_moods_mood.node_id eq \'\'}selected{/if}>clear mood</option>\r\n	</select>\r\n  <input type=\'submit\' name=\'event\' value=\'set_mood\' /><br /><br />\r\n  \r\n  <label for=\'header_id\'>Header Template:</label>\r\n  <input type=\'text\' id=\'header_id\' name=\'header_id\' value=\'{$header_id}\' />\r\n	<input type=\'submit\' name=\'event\' value=\'set_header_template\' /><br /><br />\r\n	\r\n	<label for=\'listing_amount\'>Listing amount:</label>\r\n	<input type=\'text\' id=\'listing_amount\' name=\'listing_amount\' value=\'{$listing_amount}\' />\r\n  <input type=\'submit\' name=\'event\' value=\'set_listing_amount\' /><br />\r\n	\r\n	<label for=\'listing_order\'>Listing order:</label>\r\n	<select id=\'listing_order\' name=\'listing_order\'>\r\n    <option value=\'desc\'  {if $smarty.session.listing_order eq \'desc\'}selected{/if}>najnovsie hore</option>\r\n    <option value=\'asc\' {if $smarty.session.listing_order eq \'asc\'}selected{/if}>najstarsie hore</option>\r\n  </select>\r\n  <input type=\'submit\' name=\'event\' value=\'set_listing_order\' /><br /><br />\r\n  \r\n{get_user_email_icq_www user_id=$node.node_id}\r\n  <label for=\'user_email\'>User email:</label>\r\n  <input type=\'text\' id=\'user_email\' name=\'user_email\' value=\'{$get_user_email}\'/>\r\n  <input type=\'submit\' name=\'event\' value=\'configure_email\' /><br /><br />\r\n\r\n  <label for=\'mail_notify\'>Notify mail by:</label>\r\n  <select id=\'mail_notify\' name=\"mail_notify\">\r\n    <option value=\"0\" {if $mail_notify == 0}selected{/if}>none</option>\r\n    <option value=\"1\" {if $mail_notify == 1}selected{/if}>popup</option>\r\n    <option value=\"2\" {if $mail_notify == 2}selected{/if}>title</option>\r\n	</select>\r\n  <input type=\"submit\" name=\"event\" value=\"configure_mail_notify\" /><br /><br />\r\n</form>\r\n\r\n  <h3 class=\"sloboconfigure\">Change password</h3>\r\n\r\n<form class=\"sloboconfigure\" method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>  \r\n  <label for=\'old_password\'>Old Password:</label>\r\n  <input id=\'old_password\' name=\'old_password\' type=\'password\' /><br />\r\n  \r\n  <label for=\'new_password1\'>New Password:</label>\r\n  <input id=\'new_password1\' name=\'new_password1\' type=\'password\' /><br />\r\n  \r\n  <label for=\'new_password2\'>Confirm New:</label>\r\n  <input id=\'new_password2\' name=\'new_password2\' type=\'password\' />\r\n  <input type=\'submit\' name=\'event\' value=\'set_password\' /><br />\r\n</form>\r\n\r\n{/if}\r\n\r\n\r\n\r\n\r\n{literal}\r\n<!-- HIDE CONTENT SCRIPT -->\r\n<script type=\"text/javascript\" language=\"JavaScript\"><!--\r\nfunction HideContent(d) {\r\ndocument.getElementById(d).style.display = \"none\";\r\n}\r\nfunction ShowContent(d) {\r\ndocument.getElementById(d).style.display = \"block\";\r\n}\r\nfunction ReverseDisplay(d) {\r\nif(document.getElementById(d).style.display == \"none\") { document.getElementById(d).style.display = \"block\"; }\r\nelse { document.getElementById(d).style.display = \"none\"; }\r\n}\r\n//--></script>\r\n<!-- -->\r\n{/literal}\r\n\r\n\r\n\r\n  <h2 class=\"sloboconfigure\"><a href=\"javascript:ReverseDisplay(\'contentaccess\')\" style=\"\">Access etc.</a></h2>\r\n  <div id=\"contentaccess\" style=\"display:block;\"><br />\r\n\r\n\r\n  \r\n <span class=\"sloboconfigure\"> vector: {$node.node_vector}</span><br /><br />\r\n<form class=\"sloboconfigure\" method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n	\r\n\r\n  <label for=\'apply_on_vector\'>Apply on Vector:</label> \r\n  <input type=\'checkbox\' id=\'apply_on_vector\' name=\'apply_on_vector\' /><br />\r\n	\r\n	<label for=\'nl2br\'>Break New Line:</label> \r\n	<input type=\"checkbox\" id=\'nl2br\' name=\"nl2br\" value=\"1\" title=\"new line to break\" {if $node.nl2br == 1} checked=\"checked\" {/if} />\r\n  <input type=\"submit\" name=\"event\" value=\"configure_nl2br\" /><br />\r\n\r\n<!-- \r\n{if $node.node_system_access eq \'crypto\'}\r\ncrypto password:{$crypto_pass}\r\n{/if}\r\n-->\r\n\r\n  <label for=\'data_file\'>Attach File</label> \r\n  <input type=\'file\' id=\'data_file\' name=\'data_file\' />\r\n  <input type=\'submit\' name=\'event\' value=\'upload_data_file\' /><br />\r\n\r\n<!-- Pouziva sa toto system vobec? --><!--\r\n  <label for=\'unzip\'>Unzip</label>\r\n  <input type=\'checkbox\' id=\'unzip\' name=\'unzip\' /><br />\r\n\r\n  <label for=\'\'>Gallery</label>\r\n  <input type=\'checkbox\' id=\'gallery\' name=\'gallery\' /><br />\r\n-->\r\n\r\n{if $node.node_creator eq $user_id}\r\n  <label for=\'external_link\'>External Link:</label>\r\n  <input type=\'text\' id=\'external_link\' name=\'external_link\' value=\'{$node.external_link}\' />\r\n  <input type=\'submit\' name=\'event\' value=\'set_external_link\' /><br />\r\n{/if}\r\n  \r\n  <label for=\'node_external_access\'>Ext. Access:</label>\r\n  <input id=\'node_external_access\' name=\'node_external_access\' type=\'checkbox\' value=\'yes\' {if $node.node_external_access eq \'yes\'} checked {/if} />\r\n  <input type=\'submit\' name=\'event\' value=\'configure_external_access\'/><br />\r\n\r\n  <label for=\'node_system_access\'>Int. Access: </label>\r\n  <select id=\'node_system_access\' name=\'node_system_access\'>\r\n    <option value=\'public\' {if $node.node_system_access eq \'public\'}selected{/if}>public</option>\r\n		<option value=\'moderated\' {if $node.node_system_access eq \'moderated\'}selected{/if}>moderated</option>\r\n		<option value=\'private\' {if $node.node_system_access eq \'private\'}selected{/if}>private</option>\r\n    <!--option value=\'cube\' {if $node.node_system_access eq \'cube\'}selected{/if}>cube</option-->\r\n    <!--option value=\'crypto\' {if $node.node_system_access eq \'crypto\'}selected{/if}>crypto</option-->\r\n	</select>	\r\n	<input type=\'submit\' name=\'event\' value=\'configure_system_access\'/><br />\r\n	\r\n	<label for=\'add_template_id\'>Add Template:</label>\r\n	<input type=\'text\' value=\'{$node.node_id}\' id=\'add_template_id\' name=\'add_template_id\' />\r\n	<input type=\'submit\' name=\'event\' value=\'addTemplate\' /><br />\r\n\r\n</form> \r\n</div>\r\n<br /><br />\r\n{/if}\r\n				\r\n{if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}\r\n\r\n<h2 class=\"sloboconfigure\"><a href=\"javascript:ReverseDisplay(\'commanders\')\" style=\"\">Commanders</a></h2>\r\n  <div id=\"commanders\" style=\"display:block;\"><br />\r\n<form class=\"sloboconfigure\" method=\'post\' action=\'/id/{$node.node_id}\'>\r\n\r\n  <label for=\'masterlist\'>Masters:</label> \r\n  <textarea class=\'small\' id=\'masterlist\' name=\'masterlist\'>{$masters}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'masterlist\'><br />\r\n\r\n  <label for=\'oplist\'>Ops:</label> \r\n  <textarea class=\'small\' id=\'oplist\' name=\'oplist\'>{$ops}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'oplist\'><br />\r\n\r\n  <label for=\'execute\'>Execute:</label> \r\n  <textarea class=\'small\' id=\'execute\' name=\'execute\'>{$execute}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'executelist\'><br />\r\n\r\n{if $node.node_system_access neq \'public\'}\r\n  <label for=\'access\'>Access:</label> \r\n  <textarea class=\'small\' id=\'access\' name=\'access\'>{$access}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'accesslist\'><br />\r\n{/if}\r\n\r\n  <label for=\'bans\'>Ban:</label> \r\n  <textarea class=\'small\' id=\'bans\' name=\'bans\'>{$bans}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'banlist\'><br />\r\n\r\n  <label for=\'silence\'>Silence:</label> \r\n  <textarea class=\'small\' id=\'silence\' name=\'silence\'>{$silence}</textarea>\r\n  <input type=\'submit\' name=\'event\' value=\'silencelist\'><br />\r\n  \r\n</form>\r\n  </div>\r\n\r\n{literal}\r\n<!-- HIDE CONTENTACCEESS & COMMANDERS -->\r\n<script type=\"text/javascript\" language=\"JavaScript\">\r\ndocument.getElementById(\'contentaccess\').style.display = \"none\";\r\ndocument.getElementById(\'commanders\').style.display = \"none\";\r\n</script>\r\n{/literal}\r\n\r\n<br /><br />\r\n<h2 class=\"sloboconfigure\">Content</h2>\r\n<br />\r\n\r\n<form class=\"sloboconfigure\" method=\'post\' enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\'>\r\n	<label for=\'node_content\'>Node Content:</label>\r\n\r\n<textarea class=\'node_content\' id=\'node_content\' name=\'node_content\'>{$node.node_content|escape:\"html\"}</textarea>\r\n\r\n	<label></label>\r\n	<label for=\'no_html\'>No HTML:</label>\r\n	<input type=\'checkbox\' id=\'no_html\' name=\'no_html\' value=\'yes\' />\r\n	\r\n	<label for=\'code\'>Code:</label>\r\n	<input type=\'checkbox\' id=\'code\' name=\'code\' value=\'yes\'><br />\r\n\r\n	\r\n<!--\r\n	<label for=\'wiki\'>Wiki:</label>\r\n	<input type=\'checkbox\' id=\'wiki\' name=\'wiki\' value=\'yes\'><br />\r\n-->\r\n	<label></label>\r\n	<input type=\'submit\' name=\'event\' value=\'configure_content\'><br />\r\n	\r\n</form>\r\n\r\n\r\n{literal}\r\n<script type=\"text/javascript\">\r\nvar editor = CodeMirror.fromTextArea(\"node_content\", {\r\n  stylesheet: \"http://x86.sk/~slobo/codemirror/css/xmlcolors.css\",\r\n  path: \"\",\r\n  parserfile: \"http://x86.sk/~slobo/codemirror/js/parsexml.js\",\r\n  basefiles: [\"http://x86.sk/~slobo/codemirror/js/util.js\", \"http://x86.sk/~slobo/codemirror/js/stringstream.js\", \"http://x86.sk/~slobo/codemirror/js/select.js\", \"http://x86.sk/~slobo/codemirror/js/undo.js\", \"http://x86.sk/~slobo/codemirror/js/editor.js\", \"http://x86.sk/~slobo/codemirror/js/tokenize.js\"],\r\n  height: \"666px\",\r\n  width: \"80%\",\r\n  disableSpellcheck: false,\r\n});\r\n</script>\r\n{/literal}\r\n\r\n{/if}\r\n\r\n\r\n	   \r\n	   <!-- in memorian ergond 23.7.2002 -->\r\n		<center>\r\n			&copy; kyberia.sk v2.3 - solon\'s revenge<br />\r\n			prevadzkovatel stranky ruci za nic<br />\r\n		</center>\r\n   </body>\r\n</html>',0,1),(4489095,'slobo header_template css',4496371,1,'no','public',1,332,'2009-02-04 19:27:30','2010-02-16 23:04:49',0,277,NULL,'2009-02-04 19:27:31',14,'2009-10-30 11:57:45','template://4489095','0000010100792011044890870448907704489095','body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,input,button,form,img,fieldset,p,blockquote,th,td {  \r\n	margin:0; \r\n	padding:0; \r\n} \r\n\r\n\r\n/*How Do You Feel Today?*/\r\n.mood {display:none}\r\n\r\nbody {\r\n	background-color:#010101;\r\n	margin:0;\r\n	padding:0;\r\n	padding-bottom:74px;\r\n}\r\n\r\n\r\n\r\n/* ||||||||||||||||||||||||||||||||||||||||    menu */\r\n/* ||||||||||||||||||||||||||||||||||||||||         */\r\n/* fix menu: menu je potrebne vlozit do <div class=\"t1\"> a podneho nasupovat div z \"t2\" */\r\n\r\n.t1 {\r\n	background-color: #000;\r\n	height: 20px;\r\n	left: 0;\r\n	margin: 0;\r\n	position: fixed;\r\n	right: 0;\r\n	text-align: center;\r\n	top: 0%;\r\n	z-index: 2;\r\n}\r\n\r\n.t2 {\r\n	height: 20px;\r\n}\r\n\r\n\r\n/* ||||||||||||||||||||||||||||||||||||||||    node\'n\'shit */\r\n\r\n#topic {\r\n	display: table;\r\n	padding: 6px;\r\n	width: 660px;\r\n}\r\n\r\ninframe {\r\n	height: 230px;\r\n	width: 90%;\r\n} /* wtf? */\r\n\r\na img {\r\n	border-bottom: 1px solid transparent;\r\n}\r\n\r\ntable[width=\"666\"], #topic {\r\n	background: #111;\r\n}\r\n\r\n.bordered {\r\n	background: #000;\r\n	border: solid 0px #6DAE42;\r\n	border-bottom: solid 1px #333;\r\n}\r\n\r\n.bordered2 {\r\n	border-bottom: solid 1px #6DAE42;\r\n	border-left: solid 1px #6DAE42;\r\n	border-right: solid 1px #6DAE42;\r\n}\r\n\r\n.important {\r\n	font-weight: bold;\r\n	text-align: center;\r\n}\r\n\r\n.important_y {\r\n	color: red;\r\n	display: block;\r\n	font-size: 2em;\r\n	margin: .67em 0;\r\n}\r\n\r\n.important_n {\r\n	color: green;\r\n	display: block;\r\n	font-size: 2em;\r\n	margin: .67em 0;\r\n}\r\n\r\n.most_important {\r\n	color: red;\r\n	font-weight: bold;\r\n}\r\n\r\n\r\n/* ||||||||||||||||||||||||||||||||||||||||    forms */\r\n.preview_button {\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #6DAE42;\r\n	font-size: 10px;\r\n	height: 15px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 70px;\r\n}\r\n\r\n/* |||||||||||||||||||||||||||||||||||||start|||||  add form */\r\n\r\ninput {\r\n	background-color: black;\r\n	border: solid 1px #6DAE42;\r\n	color: white;\r\n	height: 18px;\r\n	vertical-align: middle;\r\n}\r\n\r\ninput.small {\r\n	background-color: transparent;\r\n	border: solid 1px #6DAE42;\r\n	color: white;\r\n	height: 18px;\r\n	vertical-align: middle;\r\n	width: 50px;\r\n}\r\n\r\ninput[type=submit], button {\r\n	background-color: #000;\r\n	border: 1px solid;\r\n	color: #6DAE42;\r\n}\r\n\r\ninput[value=\'add\'], button[value=\'add\'] {\r\n	background-color: black;\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #6DAE42;\r\n	font-size: 10px;\r\n	height: 15px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 70px;\r\n}\r\n\r\ninput[value=\'filter_by\'], button[value=\'filter_by\'] {\r\n	background-color: transparent;\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #6DAE42;\r\n	font-size: 10px;\r\n	height: 15px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 70px;\r\n}\r\n\r\ninput[value=\'set_parent\'], button[value=\'set_parent\'] {\r\n	background-color: #000;\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #6DAE42;\r\n	font-size: 10px;\r\n	height: 18px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 70px;\r\n}\r\n\r\ninput[name=\'new_parent\'] {\r\n	background-color: #000;\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #fff;\r\n	height: 18px;\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n\r\ninput[type=\'text\'][name=\'new_parent\']:focus {\r\n	border: 0;\r\n	border-top: 1px solid #fff;\r\n	color: #6DAE42;\r\n}\r\n\r\ninput[type=submit]:focus, button:focus {\r\n	background-color: #6DAE42;\r\n	color: #fff;\r\n}\r\n\r\n\r\ninput[value=\'delete\'], button[value=\'delete\'] {\r\n	border: 1px solid;\r\n	bottom: 10px;\r\n	font-size: 8pt;\r\n	height: 18px;\r\n	left: 10px;\r\n	position: fixed;\r\n	width: 59px;\r\n}\r\n\r\ninput[value=\'put\'], button[value=\'put\'] {\r\n	border: 1px solid;\r\n	bottom: 10px;\r\n	font-size: 8pt;\r\n	height: 18px;\r\n	left: 70px;\r\n	position: fixed;\r\n	width: 40px;\r\n}\r\n\r\ninput[value=\'>\'],  button[value=\'>\']  { left:150px; border:0; border-left:2px solid;  position:fixed; bottom:35px; }\r\ninput[value=\'>>\'], button[value=\'>>\'] { left:120px; border:0; border-left:2px solid;  position:fixed; bottom:35px; }\r\ninput[value=\'<<\'], button[value=\'<<\'] { left:30px;  border:0; border-right:2px solid; position:fixed; bottom:35px; }\r\ninput[value=\'<\'],  button[value=\'<\']  { left:10px;  border:0; border-right:2px solid; position:fixed; bottom:35px; }\r\n\r\ninput[name=\'nodeshell_id\'] {\r\n	background-color: black;\r\n	border-right:2px solid #6DAE42;\r\n	bottom: 10px;\r\n	left: 111px;\r\n	position: fixed;\r\n	width: 55px;\r\n}\r\n\r\ninput[name=\'get_children_move\'] {\r\n	background: black;\r\n	border: 0;\r\n	bottom: 35px;\r\n	font-size: 10px;\r\n	height: 10px;\r\n	padding: 0;\r\n	position: fixed;\r\n}\r\n\r\ninput[name=\'get_children_move\']:focus {\r\n	color: #fff;\r\n}\r\n/*\r\ninput[value=\'\'] {\r\n	border: 0;\r\n	border-right: 2px solid;\r\n	left: 150px;\r\n}*/\r\n\r\ninput[value=\'K\'] {\r\n	background: black;\r\n	border: 0;\r\n	border-left: 2px solid;\r\n	bottom: 55px;\r\n	font-size: 10px;\r\n	height: 10px;\r\n	left: 10px;\r\n	padding: 0;\r\n	position: fixed;\r\n}\r\n\r\ninput[name=\'listing_amount\'] {\r\n	background: black;\r\n	border: 0px;\r\n	bottom: 35px;\r\n	height: 10px;\r\n	left: 80px;\r\n	padding: 0;\r\n	position: fixed;\r\n	width: 20px;\r\n}\r\n\r\ninput[name=\'listing_amount\']:focus {\r\n	background: black;\r\n	border: 0;\r\n}\r\n\r\n#mail_form input[type=\'submit\'], #mail_form input[type=\'button\'] {\r\n  border:0;\r\n  border-top: 1px solid #6DAE42;\r\n  background:#000;\r\n	color: #6DAE42;\r\n	height: 15px;\r\n}\r\n\r\n#mail_form input[type=\'submit\']:focus, #mail_form input[type=\'button\']:focus {\r\n  background-color: #6DAE42;\r\n	color: #fff;\r\n}\r\n\r\ninput[value=\'delete_mail\'], input[value=\'send\'] {\r\n	background-color: #000;\r\n	border: 0;\r\n	border-top: 1px solid #6DAE42;\r\n	color: #6DAE42;\r\n	height: 15px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 70px;\r\n}\r\n\r\ntextarea {\r\n	background-color: transparent;\r\n	border: 1px solid #6DAE42;\r\n	color: white;\r\n	font: 8pt monospace;\r\n	height: 123px;\r\n	width: 666px;\r\n}\r\n\r\ntextarea.small {\r\n	background-color: transparent;\r\n	border-color: #6DAE42;\r\n	color: white;\r\n	height: 42px;\r\n	overflow: hidden;\r\n	width: 90%;\r\n}\r\n\r\ntextarea.node_content {\r\n	background-color: transparent;\r\n	border: 1px solid #6DAE42;\r\n	color: white;\r\n	height: 666px;\r\n	width: 800px;\r\n}\r\n\r\ntextarea:focus, textarea.node_content:focus, input[type=text]:focus {\r\n	border: 1px solid #fff;\r\n	color: #6DAE42;\r\n}\r\n\r\nselect[name=\'listing_order\'] {\r\n	background-color: black;\r\n	border: 1px solid transparent;\r\n	bottom: 55px;\r\n	font-size: 10px;\r\n	height: 20px;\r\n	left: 74px;\r\n	padding: 0;\r\n	position: fixed;\r\n}\r\n\r\nselect[name=\'listing_order\']:focus {\r\n	border: 1px solid transparent;\r\n}\r\n\r\noption {\r\n	background: black;\r\n	margin: 0px;\r\n}\r\n\r\n#configure select[name=\'listing_order\'], #configure input[name=\'listing_amount\'] {\r\n	bottom: 0;\r\n	left: 0;\r\n	position: relative;\r\n}\r\n\r\nselect {\r\n	background-color: black;\r\n	border: 1px solid transparent;\r\n	color: white;\r\n	height: 15px;\r\n	padding: 0;\r\n	vertical-align: middle;\r\n}\r\n\r\ntable[width=\"666\"] select {\r\n	background-color: #111;\r\n}\r\n\r\n/* -------------------------------------------------  other */\r\n\r\n.toolbar, #own_toolbar, .add_put {\r\n	background: #111;\r\n	width: 666px;\r\n}\r\n\r\n.toolbar {\r\n	margin: 0 0 2px 0;\r\n	padding: 2px 0 1px 0;\r\n}\r\n\r\n#own_toolbar, .add_put {\r\n	margin-top: 2px;\r\n}\r\n\r\ntable[width=\"666\"] input[value=\'preview\'], table[width=\"666\"] input[value=\'filter_by\'], .toolbar input[value=\'preview\'], .toolbar input[value=\'filter_by\'], .toolbar input[value=\'add\'] {\r\n	border: 0;\r\n}\r\n\r\n/* |||||||||||||||||||||||||||||||||||||||end|||||  add form */\r\n\r\n\r\n\r\n\r\n/* ||||||||||||||||||||||||||||||||||||||||  thread */\r\n.th_cnt .icon {\r\n	margin-top: 2px;\r\n} /*uz niesa*/\r\n\r\n\r\n\r\n.header, .sub-header {\r\n	background: #222;\r\n	\r\n	padding: 0pt;\r\n	vertical-align: top;\r\n	width: 100%;\r\n}\r\n\r\n.header input {\r\n	/* len opera */\r\n	border: 1px solid #000;\r\n	/* len opera */\r\n	color: #000;\r\n	background: #444;\r\n	height: 8pt;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 8pt;\r\n}\r\n.avatar {\r\n  width:50px;\r\n  float:left;\r\n  margin-right:0.3em; \r\n}\r\n\r\n\r\nul.node_children ul {\r\n  /*margin-left:50px !important;*/\r\n}\r\n\r\n.node_children li, .ub-thread li, .cwbe li {\r\n  list-style-type:none !important;\r\n}\r\n\r\n\r\n\r\n.th_header {\r\n	background-color: #222;\r\n}\r\n\r\n.sub-body {\r\n   border: 1px solid;\r\n}\r\n\r\n#th_root, .level1 {\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n\r\n#th_root > li {\r\n	background: #111;\r\n	margin-bottom: 10px;\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\ntable[width=\"666\"] {\r\n	border-collapse: collapse;\r\n}\r\n\r\ntable[width=\"666\"] td[colspan=\'3\'] a {\r\n	background: #333;\r\n	color: #333;\r\n	font-size: 3px;\r\n	text-decoration: none;\r\n}\r\n\r\ntable[width=\"666\"] td[colspan=\'3\'] a:hover {\r\n	background: #fff;\r\n}\r\n\r\n.active_user_img {\r\n	display: block;\r\n	float: left;\r\n	height: 53px;\r\n	margin: 0;\r\n	padding: 0;\r\n	width: 53px;\r\n}\r\n\r\n.active_user_img img {\r\n	border: 0;\r\n	height: 50px;\r\n	width: 50px;\r\n}\r\n\r\n.active_user_img img:hover {\r\n	border: 0;\r\n	height: 53px;\r\n	width: 53px;\r\n}\r\n\r\n\r\n\r\n.active_users .active_user_name {\r\n	text-align: center;\r\n}\r\n\r\ntd[width=\"16%\"] {\r\n	border: 0px solid pink;\r\n}\r\n\r\n.message {\r\n	z-index: 0;\r\n}\r\n\r\n.node_userlist {\r\n	margin-bottom: 10px;\r\n	position: relative;\r\n	text-align: center;\r\n	width: 666px;\r\n	z-index: 0;\r\n}\r\n\r\n.node_userlist img {\r\n	border: 0;\r\n	height: 50px;\r\n	margin: 0 3px 3px 0;\r\n	width: 50px;\r\n}\r\n\r\n\r\n/* panel */\r\n#panel {\r\n	background: #000;\r\n	border: 1px solid #6DAE42;\r\n	color: #FFF;\r\n	display: none;\r\n	left: 0px;\r\n	margin: 0;\r\n	padding: 2px;\r\n	position: absolute;\r\n	top: 0px;\r\n	z-index: 23;\r\n}\r\n\r\n#panel .panel_btn {\r\n	background: transparent;\r\n	border: 0;\r\n	color: #FFF;\r\n	margin: 0;\r\n	padding: 1px 0;\r\n}\r\n\r\n#panel .panel_btn:hover {\r\n	color: #F00;\r\n}\r\n\r\n#panel form {\r\n	margin: 0;\r\n	padding: 0;\r\n}\r\n\r\n.add_k_cmnt, img[alt=\"NAJ.sk\"], img[alt=\"Monitoring webu realizuje NAJ.sk\"], img[src~=\"http://www.ianus.sk/aspecial/smilies/\"] {\r\n	display: none;\r\n}\r\n\r\n/* |||||||||||||||||||||||||||||||||||||||||||||||  typo */\r\n\r\nbody {\r\n	color: #6DAE42;\r\n	font: 75% Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n	line-height: \r\n}\r\n\r\ntd {\r\n	font: 75% Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n	line-height: 1.5em;\r\n}\r\n\r\nhtml>body, tr>td {\r\n	font-size: 11px;\r\n}\r\n\r\na, a.mail {\r\n	color: white;\r\n	font: Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n	text-decoration: none;\r\n}\r\n\r\na.mail {\r\n	font-weight: bold;\r\n	text-align: center;\r\n}\r\n\r\na:hover, a.mail:hover {\r\n	color: #ACA899;\r\n}\r\n\r\nfont[size] {\r\n   font-size:1em;\r\n}\r\n\r\ninput {\r\n  font: 10px Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n}\r\n\r\ninput[name=\'listing_amount\'] {\r\n  font: 10px Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n}\r\n\r\ninput.small {\r\n  font: 10px Verdana, \"Arial CE\", \"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n}\r\n\r\nselect {\r\n	font: 10px Verdana, \"Arial CE\",\"Helvetica CE\", Arial, Helvetica, sans-serif;\r\n}\r\n\r\n/*************slobo config template*****************/\r\n\r\n\r\nform.sloboconfigure, h1.sloboconfigure, h2.sloboconfigure, h3.sloboconfigure, span.sloboconfigure {\r\nmargin-left: 66px;\r\n}\r\n\r\n\r\nform.sloboconfigure label\r\n{\r\ndisplay: block;\r\nwidth: 150px;\r\nfloat: left;\r\nmargin-bottom: 10px;\r\n}\r\n\r\nform.sloboconfigure input, form.sloboconfigure select, form.sloboconfigure textarea\r\n{\r\ndisplay: block;\r\nwidth: 150px;\r\nfloat: left;\r\nmargin-bottom: 10px;\r\nborder: 1px solid gray;\r\npadding: 0;\r\nposition: static;\r\nheight: 18px;\r\n}\r\n\r\nform.sloboconfigure img\r\n{\r\ndisplay: block;\r\nfloat: left;\r\nmargin-bottom: 10px;\r\n}\r\n\r\nform.sloboconfigure label {\r\ntext-align: right;\r\nwidth: 120px;\r\npadding-right: 20px;\r\n}\r\n\r\nform.sloboconfigure br {\r\nclear: left;\r\n}\r\n\r\nform.sloboconfigure input[type=\'submit\'] {\r\ncolor: black;\r\nfont-size: 0;\r\noverflow: hidden;\r\nwidth:18px;\r\nposition: static;\r\n}\r\n\r\n\r\nform.sloboconfigure input[value=\'configure_content\'] {\r\ncolor: white;\r\nfont-size: 1em;\r\noverflow: visible;\r\nwidth:80%;\r\n\r\n}\r\n\r\nform.sloboconfigure textarea.small {width:150px; height:18px; position:relative; top:-1px; resize:vertical;}\r\n\r\nform.sloboconfigure textarea.node_content {\r\nwidth: 80%;\r\nheight: 666px;\r\nbackground-color: #000;\r\ncolor: white;\r\n} \r\n\r\nquick_search {\r\n  width: 120px;\r\n  color: #999;\r\n}\r\n\r\n#quick_search.qs_active {\r\n  color: #FFF;\r\n}\r\n\r\n#quick_search_result {\r\n  display: none;\r\n  width: 200px;\r\n  border-width: 1px 1px 0px 1px;\r\n  border-color: #333;\r\n  border-style: solid;\r\n  text-align: left;\r\n  position: fixed;\r\n  z-index: 666;\r\n}\r\n\r\n#quick_search_result a:hover {\r\n  color: #999;\r\n}\r\n\r\n.qs_result, .qs_result_hover {\r\n  display: block;\r\n  color: #999;\r\n  background: #000;\r\n  padding: 1px 2px;\r\n  border-bottom: 1px solid #333;\r\n}\r\n\r\n.qs_result_hover {\r\n  color: #999;\r\n  background: #333;\r\n}\r\n\r\n#quick_search_result span {\r\n  color: #FFF;\r\n}\r\n\r\n#quick_search_result .qs_hilight {\r\n  font-weight: bold;\r\n  background: #666;\r\n}\r\n\r\n/* thread -------------------------------------------------------------- */\r\n/* \r\nul.node_children\r\nli.level1 ... li.levelx, li.lvl\r\na.vector\r\ndiv.node_content\r\ndiv.node_header\r\nimg.node_avatar\r\na.node_login\r\ninput.node_chosen\r\nspan.node_header_created\r\nspan.node_header_k\r\nspan.node_header_new\r\nspan.node_header_changed\r\nspan.node_header_sirotka\r\nspan.node_header_descendent\r\nspan.node_header_hardlink\r\ndiv.node_header_title\r\na\r\ndiv.node_body\r\nul\r\n*/\r\n\r\nul.node_children {\r\nposition: relative;\r\nmargin: 2em 0 0 0;\r\npadding:0;\r\nwidth:666px;\r\n}\r\n\r\nli.lvl {\r\nlist-style-type:none;\r\n\r\npadding:1.6em 0 6px 52px; \r\n}\r\n\r\nli.lvl ul {\r\nmargin:0;\r\npadding:0;\r\n}\r\n\r\nli.level1 {\r\nborder-bottom: 0px dotted #323232;\r\n}\r\n\r\na.vector {\r\nbackground: #333;\r\ncolor: #333;\r\nfont-size: 2px;\r\ntext-decoration: none;\r\nheight: 3px;\r\npadding: 0;\r\nmargin: 0;\r\nborder: 0;\r\nborder-left: 0px dotted #333;\r\nborder-bottom: 1px solid #000;\r\ndisplay: block; position: relative; left: 0px;\r\nwidth: 100%;\r\n}\r\n\r\na.vector:hover {\r\n	background: #fff;\r\n}\r\na.actionToggleThread {\r\n\r\nmargin-top:-1.8em;\r\nfont-size: 1em;\r\ndisplay:inline !important;\r\n}\r\n\r\na.actionToggleThread:active {border-left: 1px solid black;}\r\n\r\n\r\n\r\ndiv.node_content {\r\ndisplay:table;\r\nborder-collapse:collapse;\r\nwidth:100%;\r\nmargin:0.1px 0 0.5em 0;  /*bolo: margin:0.1px 0 1.3em 0;  */\r\n/*padding: 2px; zadefinovane ako margin pri headry a body*/\r\nbackground: #232323;\r\nposition:relative;\r\n\r\n}\r\n\r\ndiv.node_header {\r\nmargin:2px; padding:0.2em;\r\nbackground: #232323;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_header_title {text-align:center;}\r\nspan.node_header_title_conf:before {content: \"| \";}\r\n\r\nspan.node_header_k, span.node_header_new, span.node_header_changed, span.node_header_sirotka, span.node_header_descendent {\r\nfont-weight: bold; \r\ncolor: red;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.node_header_hardlink {\r\nfont-weight: bold;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.hidden_header_title_nodename {\r\ncolor: #323232;\r\npadding-left:0.8em;\r\n}\r\n\r\na.descendants_link {\r\nposition:relative; top:-0.3em; color: #323232;\r\n}\r\n\r\na.descendants_link:hover {\r\ncolor: #FFF;\r\n}\r\n\r\n\r\ndiv.node_body {\r\nbackground:#000;\r\nborder: 3px solid black;\r\nmargin: 1px;\r\n}\r\n\r\nimg.node_avatar {\r\nposition:absolute;\r\nleft:-57px;\r\ntop:-2px;\r\nwidth:50px;\r\n}\r\n\r\n/**/\r\n\r\n.node_chosen {\r\nmargin:0 0.6em 0 0.6em;\r\npadding:0;\r\ncolor: black;\r\nheight: 8pt;\r\nwidth: 8pt;\r\nbackground: #444; /* len opera */\r\nborder: 1px solid #000;/* len opera */\r\n}\r\n\r\n\r\nli.ie-only.lvl {\r\nwidth:100%;\r\n}\r\n.ie-only.node_header {\r\nwidth:100%;\r\n}\r\ndiv.ieonly.node_body, div.ieonly.bordered {\r\nword-wrap: break-word;\r\n}\r\n/* docasne tu */\r\ndiv#topic {\r\n_word-wrap: break-word;\r\n} ',4489087,0),(4492360,'codemirror.js',4492343,1,'no','public',0,332,'2009-02-05 21:04:46','2010-02-16 23:04:49',0,58,NULL,'2009-02-05 21:04:46',3,'2009-02-05 22:37:12','template://4492360','000001010079201104489087044890770449234304492360','/* CodeMirror main module\r\n *\r\n * Implements the CodeMirror constructor and prototype, which take care\r\n * of initializing the editor frame, and providing the outside interface.\r\n */\r\n\r\n// The CodeMirrorConfig object is used to specify a default\r\n// configuration. If you specify such an object before loading this\r\n// file, the values you put into it will override the defaults given\r\n// below. You can also assign to it after loading.\r\nvar CodeMirrorConfig = window.CodeMirrorConfig || {};\r\n\r\nvar CodeMirror = (function(){\r\n  function setDefaults(object, defaults) {\r\n    for (var option in defaults) {\r\n      if (!object.hasOwnProperty(option))\r\n        object[option] = defaults[option];\r\n    }\r\n  }\r\n  function forEach(array, action) {\r\n    for (var i = 0; i < array.length; i++)\r\n      action(array[i]);\r\n  }\r\n\r\n  // These default options can be overridden by passing a set of\r\n  // options to a specific CodeMirror constructor. See manual.html for\r\n  // their meaning.\r\n  setDefaults(CodeMirrorConfig, {\r\n    stylesheet: \"http://x86.sk/~slobo/codemirror/js/xmlcolors.css\",\r\n    path: \"http://x86.sk/~slobo/codemirror/js/\",\r\n    parserfile: \"parsexml.js\",\r\n    basefiles: [\"util.js\", \"stringstream.js\", \"select.js\", \"undo.js\", \"editor.js\", \"tokenize.js\"],\r\n    linesPerPass: 15,\r\n    passDelay: 200,\r\n    continuousScanning: false,\r\n    saveFunction: null,\r\n    onChange: null,\r\n    undoDepth: 20,\r\n    undoDelay: 800,\r\n    disableSpellcheck: true,\r\n    textWrapping: true,\r\n    readOnly: false,\r\n    width: \"100%\",\r\n    height: \"300px\",\r\n    autoMatchParens: false,\r\n    parserConfig: null,\r\n    dumbTabs: false,\r\n    activeTokens: null,\r\n    cursorActivity: null\r\n  });\r\n\r\n  function CodeMirror(place, options) {\r\n    // Use passed options, if any, to override defaults.\r\n    this.options = options = options || {};\r\n    setDefaults(options, CodeMirrorConfig);\r\n\r\n    var frame = this.frame = document.createElement(\"IFRAME\");\r\n    frame.src = \"javascript:false;\";\r\n    frame.style.border = \"0\";\r\n    frame.style.width = options.width;\r\n    frame.style.height = options.height;\r\n    // display: block occasionally suppresses some Firefox bugs, so we\r\n    // always add it, redundant as it sounds.\r\n    frame.style.display = \"block\";\r\n\r\n    if (place.appendChild)\r\n      place.appendChild(frame);\r\n    else\r\n      place(frame);\r\n\r\n    // Link back to this object, so that the editor can fetch options\r\n    // and add a reference to itself.\r\n    frame.CodeMirror = this;\r\n    this.win = frame.contentWindow;\r\n\r\n    if (typeof options.parserfile == \"string\")\r\n      options.parserfile = [options.parserfile];\r\n    if (typeof options.stylesheet == \"string\")\r\n      options.stylesheet = [options.stylesheet];\r\n\r\n    var html = [\"<html><head>\"];\r\n    forEach(options.stylesheet, function(file) {\r\n      html.push(\"<link rel=\"stylesheet\" type=\"text/css\" href=\"\" + file + \"\"/>\");\r\n    });\r\n    forEach(options.basefiles.concat(options.parserfile), function(file) {\r\n      html.push(\"<script type=\"text/javascript\" src=\"\" + options.path + file + \"\"></script>\");\r\n    });\r\n    html.push(\"</head><body style=\"border-width: 0;\" class=\"editbox\" spellcheck=\"\" +\r\n              (options.disableSpellcheck ? \"false\" : \"true\") + \"\"></body></html>\");\r\n\r\n    var doc = this.win.document;\r\n    doc.open();\r\n    doc.write(html.join(\"\"));\r\n    doc.close();\r\n  }\r\n\r\n  CodeMirror.prototype = {\r\n    getCode: function() {return this.editor.getCode();},\r\n    setCode: function(code) {this.editor.importCode(code);},\r\n    selection: function() {return this.editor.selectedText();},\r\n    reindent: function() {this.editor.reindent();},\r\n\r\n    focus: function() {\r\n      this.win.focus();\r\n      if (this.editor.selectionSnapshot) // IE hack\r\n        this.win.select.selectCoords(this.win, this.editor.selectionSnapshot);\r\n    },\r\n    replaceSelection: function(text) {\r\n      this.focus();\r\n      this.editor.replaceSelection(text);\r\n      return true;\r\n    },\r\n    replaceChars: function(text, start, end) {\r\n      this.editor.replaceChars(text, start, end);\r\n    },\r\n    getSearchCursor: function(string, fromCursor) {\r\n      return this.editor.getSearchCursor(string, fromCursor);\r\n    },\r\n\r\n    cursorPosition: function(start) {\r\n      if (this.win.select.ie_selection) this.focus();\r\n      return this.editor.cursorPosition(start);\r\n    },\r\n    firstLine: function() {return this.editor.firstLine();},\r\n    lastLine: function() {return this.editor.lastLine();},\r\n    nextLine: function(line) {return this.editor.nextLine(line);},\r\n    prevLine: function(line) {return this.editor.prevLine(line);},\r\n    lineContent: function(line) {return this.editor.lineContent(line);},\r\n    setLineContent: function(line, content) {this.editor.setLineContent(line, content);},\r\n    insertIntoLine: function(line, position, content) {this.editor.insertIntoLine(line, position, content);},\r\n    selectLines: function(startLine, startOffset, endLine, endOffset) {\r\n      this.win.focus();\r\n      this.editor.selectLines(startLine, startOffset, endLine, endOffset);\r\n    },\r\n    nthLine: function(n) {\r\n      var line = this.firstLine();\r\n      for (; n > 1 && line !== false; n--)\r\n        line = this.nextLine(line);\r\n      return line;\r\n    },\r\n    lineNumber: function(line) {\r\n      var num = 0;\r\n      while (line !== false) {\r\n        num++;\r\n        line = this.prevLine(line);\r\n      }\r\n      return num;\r\n    },\r\n\r\n    // Old number-based line interface\r\n    jumpToLine: function(n) {\r\n      this.selectLines(this.nthLine(n), 0);\r\n      this.win.focus();\r\n    },\r\n    currentLine: function() {\r\n      return this.lineNumber(this.cursorPosition().line);\r\n    }\r\n  };\r\n\r\n  CodeMirror.InvalidLineHandle = {toString: function(){return \"CodeMirror.InvalidLineHandle\";}};\r\n\r\n  CodeMirror.replace = function(element) {\r\n    if (typeof element == \"string\")\r\n      element = document.getElementById(element);\r\n    return function(newElement) {\r\n      element.parentNode.replaceChild(newElement, element);\r\n    };\r\n  };\r\n\r\n  CodeMirror.fromTextArea = function(area, options) {\r\n    if (typeof area == \"string\")\r\n      area = document.getElementById(area);\r\n\r\n    options = options || {};\r\n    if (area.style.width) options.width = area.style.width;\r\n    if (area.style.height) options.height = area.style.height;\r\n    if (options.content == null) options.content = area.value;\r\n\r\n    if (area.form) {\r\n      function updateField() {\r\n        area.value = mirror.getCode();\r\n      }\r\n      if (typeof area.form.addEventListener == \"function\")\r\n        area.form.addEventListener(\"submit\", updateField, false);\r\n      else\r\n        area.form.attachEvent(\"onsubmit\", updateField);\r\n    }\r\n\r\n    function insert(frame) {\r\n      if (area.nextSibling)\r\n        area.parentNode.insertBefore(frame, area.nextSibling);\r\n      else\r\n        area.parentNode.appendChild(frame);\r\n    }\r\n\r\n    area.style.display = \"none\";\r\n    var mirror = new CodeMirror(insert, options);\r\n    return mirror;\r\n  };\r\n\r\n  CodeMirror.isProbablySupported = function() {\r\n    // This is rather awful, but can be useful.\r\n    var match;\r\n    if (window.opera)\r\n      return Number(window.opera.version()) >= 9.52;\r\n    else if (/Apple Computers, Inc/.test(navigator.vendor) && (match = navigator.userAgent.match(/Version/(d+(?:.d+)?)./)))\r\n      return Number(match[1]) >= 3;\r\n    else if (document.selection && window.ActiveXObject && (match = navigator.userAgent.match(/MSIE (d+(?:.d*)?)b/)))\r\n      return Number(match[1]) >= 6;\r\n    else if (match = navigator.userAgent.match(/gecko/(d{8})/i))\r\n      return Number(match[1]) >= 20050901;\r\n    else if (/Chrome//.test(navigator.userAgent))\r\n      return true;\r\n    else\r\n      return null;\r\n  };\r\n\r\n  return CodeMirror;\r\n})();\r\n',4489087,1),(4492361,'editor.js',4492343,1,'no','public',0,332,'2009-02-05 21:04:58','2010-02-16 23:04:49',0,7,NULL,'2009-02-05 21:04:58',3,'2009-02-05 21:09:55','template://4492361','000001010079201104489087044890770449234304492361','/* The Editor object manages the content of the editable frame. It\r\n * catches events, colours nodes, and indents lines. This file also\r\n * holds some functions for transforming arbitrary DOM structures into\r\n * plain sequences of <span> and <br> elements\r\n */\r\n\r\nvar safeWhiteSpace, splitSpaces;\r\nfunction setWhiteSpaceModel(collapsing) {\r\n  safeWhiteSpace = collapsing ?\r\n    // Make sure a string does not contain two consecutive \'collapseable\'\r\n    // whitespace characters.\r\n    function(n) {\r\n      var buffer = [], nb = true;\r\n      for (; n > 0; n--) {\r\n        buffer.push((nb || n == 1) ? nbsp : \" \");\r\n        nb = !nb;\r\n      }\r\n      return buffer.join(\"\");\r\n    } :\r\n    function(n) {\r\n      var buffer = [];\r\n      for (; n > 0; n--) buffer.push(\" \");\r\n      return buffer.join(\"\");\r\n    };\r\n  splitSpaces = collapsing ?\r\n    // Create a set of white-space characters that will not be collapsed\r\n    // by the browser, but will not break text-wrapping either.\r\n    function(string) {\r\n      if (string.charAt(0) == \" \") string = nbsp + string.slice(1);\r\n      return string.replace(/[\\t \\u00a0]{2,}/g, function(s) {return safeWhiteSpace(s.length);});\r\n    } :\r\n    function(string) {return string;};\r\n}\r\n\r\nfunction makePartSpan(value, doc) {\r\n  var text = value;\r\n  if (value.nodeType == 3) text = value.nodeValue;\r\n  else value = doc.createTextNode(text);\r\n\r\n  var span = doc.createElement(\"SPAN\");\r\n  span.isPart = true;\r\n  span.appendChild(value);\r\n  span.currentText = text;\r\n  return span;\r\n}\r\n\r\nvar Editor = (function(){\r\n  // The HTML elements whose content should be suffixed by a newline\r\n  // when converting them to flat text.\r\n  var newlineElements = {\"P\": true, \"DIV\": true, \"LI\": true};\r\n\r\n  function asEditorLines(string) {\r\n    return splitSpaces(string.replace(/\\t/g, \"  \").replace(/\\u00a0/g, \" \")).replace(/\\r\\n?/g, \"\\n\").split(\"\\n\");\r\n  }\r\n\r\n  var internetExplorer = document.selection && window.ActiveXObject && /MSIE/.test(navigator.userAgent);\r\n\r\n  // Helper function for traverseDOM. Flattens an arbitrary DOM node\r\n  // into an array of textnodes and <br> tags.\r\n  function simplifyDOM(root) {\r\n    var doc = root.ownerDocument;\r\n    var result = [];\r\n    var leaving = false;\r\n\r\n    function simplifyNode(node) {\r\n      if (node.nodeType == 3) {\r\n        var text = node.nodeValue = splitSpaces(node.nodeValue.replace(/[\\n\\r]/g, \"\"));\r\n        if (text.length) leaving = false;\r\n        result.push(node);\r\n      }\r\n      else if (node.nodeName == \"BR\" && node.childNodes.length == 0) {\r\n        leaving = true;\r\n        result.push(node);\r\n      }\r\n      else {\r\n        forEach(node.childNodes, simplifyNode);\r\n        if (!leaving && newlineElements.hasOwnProperty(node.nodeName)) {\r\n          leaving = true;\r\n          result.push(doc.createElement(\"BR\"));\r\n        }\r\n      }\r\n    }\r\n\r\n    simplifyNode(root);\r\n    return result;\r\n  }\r\n\r\n  // Creates a MochiKit-style iterator that goes over a series of DOM\r\n  // nodes. The values it yields are strings, the textual content of\r\n  // the nodes. It makes sure that all nodes up to and including the\r\n  // one whose text is being yielded have been \'normalized\' to be just\r\n  // <span> and <br> elements.\r\n  // See the story.html file for some short remarks about the use of\r\n  // continuation-passing style in this iterator.\r\n  function traverseDOM(start){\r\n    function yield(value, c){cc = c; return value;}\r\n    function push(fun, arg, c){return function(){return fun(arg, c);};}\r\n    function stop(){cc = stop; throw StopIteration;};\r\n    var cc = push(scanNode, start, stop);\r\n    var owner = start.ownerDocument;\r\n    var nodeQueue = [];\r\n\r\n    // Create a function that can be used to insert nodes after the\r\n    // one given as argument.\r\n    function pointAt(node){\r\n      var parent = node.parentNode;\r\n      var next = node.nextSibling;\r\n      return function(newnode) {\r\n        parent.insertBefore(newnode, next);\r\n      };\r\n    }\r\n    var point = null;\r\n\r\n    // Insert a normalized node at the current point. If it is a text\r\n    // node, wrap it in a <span>, and give that span a currentText\r\n    // property -- this is used to cache the nodeValue, because\r\n    // directly accessing nodeValue is horribly slow on some browsers.\r\n    // The dirty property is used by the highlighter to determine\r\n    // which parts of the document have to be re-highlighted.\r\n    function insertPart(part){\r\n      var text = \"\\n\";\r\n      if (part.nodeType == 3) {\r\n        select.snapshotChanged();\r\n        part = makePartSpan(part, owner);\r\n        text = part.currentText;\r\n      }\r\n      part.dirty = true;\r\n      nodeQueue.push(part);\r\n      point(part);\r\n      return text;\r\n    }\r\n\r\n    // Extract the text and newlines from a DOM node, insert them into\r\n    // the document, and yield the textual content. Used to replace\r\n    // non-normalized nodes.\r\n    function writeNode(node, c){\r\n      var toYield = [];\r\n      forEach(simplifyDOM(node), function(part) {\r\n        toYield.push(insertPart(part));\r\n      });\r\n      return yield(toYield.join(\"\"), c);\r\n    }\r\n\r\n    // Check whether a node is a normalized <span> element.\r\n    function partNode(node){\r\n      if (node.nodeName == \"SPAN\" && node.childNodes.length == 1 && node.firstChild.nodeType == 3 && node.isPart) {\r\n        node.currentText = node.firstChild.nodeValue;\r\n        return !/[\\n\\t\\r]/.test(node.currentText);\r\n      }\r\n      return false;\r\n    }\r\n\r\n    // Handle a node. Add its successor to the continuation if there\r\n    // is one, find out whether the node is normalized. If it is,\r\n    // yield its content, otherwise, normalize it (writeNode will take\r\n    // care of yielding).\r\n    function scanNode(node, c){\r\n      if (node.nextSibling)\r\n        c = push(scanNode, node.nextSibling, c);\r\n\r\n      if (partNode(node)){\r\n        nodeQueue.push(node);\r\n        return yield(node.currentText, c);\r\n      }\r\n      else if (node.nodeName == \"BR\") {\r\n        nodeQueue.push(node);\r\n        return yield(\"\\n\", c);\r\n      }\r\n      else {\r\n        point = pointAt(node);\r\n        removeElement(node);\r\n        return writeNode(node, c);\r\n      }\r\n    }\r\n\r\n    // MochiKit iterators are objects with a next function that\r\n    // returns the next value or throws StopIteration when there are\r\n    // no more values.\r\n    return {next: function(){return cc();}, nodes: nodeQueue};\r\n  }\r\n\r\n  // Determine the text size of a processed node.\r\n  function nodeSize(node) {\r\n    if (node.nodeName == \"BR\")\r\n      return 1;\r\n    else\r\n      return node.currentText.length;\r\n  }\r\n\r\n  // Search backwards through the top-level nodes until the next BR or\r\n  // the start of the frame.\r\n  function startOfLine(node) {\r\n    while (node && node.nodeName != \"BR\") node = node.previousSibling;\r\n    return node;\r\n  }\r\n  function endOfLine(node, container) {\r\n    if (!node) node = container.firstChild;\r\n    while (node && node.nodeName != \"BR\") node = node.nextSibling;\r\n    return node;\r\n  }\r\n\r\n  function cleanText(text) {\r\n    return text.replace(/\\u00a0/g, \" \");\r\n  }\r\n\r\n  // Client interface for searching the content of the editor. Create\r\n  // these by calling CodeMirror.getSearchCursor. To use, call\r\n  // findNext on the resulting object -- this returns a boolean\r\n  // indicating whether anything was found, and can be called again to\r\n  // skip to the next find. Use the select and replace methods to\r\n  // actually do something with the found locations.\r\n  function SearchCursor(editor, string, fromCursor) {\r\n    this.editor = editor;\r\n    this.history = editor.history;\r\n    this.history.commit();\r\n\r\n    // Are we currently at an occurrence of the search string?\r\n    this.atOccurrence = false;\r\n    // The object stores a set of nodes coming after its current\r\n    // position, so that when the current point is taken out of the\r\n    // DOM tree, we can still try to continue.\r\n    this.fallbackSize = 15;\r\n    var cursor;\r\n    // Start from the cursor when specified and a cursor can be found.\r\n    if (fromCursor && (cursor = select.cursorPos(this.editor.container))) {\r\n      this.line = cursor.node;\r\n      this.offset = cursor.offset;\r\n    }\r\n    else {\r\n      this.line = null;\r\n      this.offset = 0;\r\n    }\r\n    this.valid = !!string;\r\n\r\n    // Create a matcher function based on the kind of string we have.\r\n    var target = string.split(\"\\n\"), self = this;;\r\n    this.matches = (target.length == 1) ?\r\n      // For one-line strings, searching can be done simply by calling\r\n      // indexOf on the current line.\r\n      function() {\r\n        var match = cleanText(self.history.textAfter(self.line).slice(self.offset)).indexOf(string);\r\n        if (match > -1)\r\n          return {from: {node: self.line, offset: self.offset + match},\r\n                  to: {node: self.line, offset: self.offset + match + string.length}};\r\n      } :\r\n      // Multi-line strings require internal iteration over lines, and\r\n      // some clunky checks to make sure the first match ends at the\r\n      // end of the line and the last match starts at the start.\r\n      function() {\r\n        var firstLine = cleanText(self.history.textAfter(self.line).slice(self.offset));\r\n        var match = firstLine.lastIndexOf(target[0]);\r\n        if (match == -1 || match != firstLine.length - target[0].length)\r\n          return false;\r\n        var startOffset = self.offset + match;\r\n\r\n        var line = self.history.nodeAfter(self.line);\r\n        for (var i = 1; i < target.length - 1; i++) {\r\n          if (cleanText(self.history.textAfter(line)) != target[i])\r\n            return false;\r\n          line = self.history.nodeAfter(line);\r\n        }\r\n\r\n        if (cleanText(self.history.textAfter(line)).indexOf(target[target.length - 1]) != 0)\r\n          return false;\r\n\r\n        return {from: {node: self.line, offset: startOffset},\r\n                to: {node: line, offset: target[target.length - 1].length}};\r\n      };\r\n  }\r\n\r\n  SearchCursor.prototype = {\r\n    findNext: function() {\r\n      if (!this.valid) return false;\r\n      this.atOccurrence = false;\r\n      var self = this;\r\n\r\n      // Go back to the start of the document if the current line is\r\n      // no longer in the DOM tree.\r\n      if (this.line && !this.line.parentNode) {\r\n        this.line = null;\r\n        this.offset = 0;\r\n      }\r\n\r\n      // Set the cursor\'s position one character after the given\r\n      // position.\r\n      function saveAfter(pos) {\r\n        if (self.history.textAfter(pos.node).length < pos.offset) {\r\n          self.line = pos.node;\r\n          self.offset = pos.offset + 1;\r\n        }\r\n        else {\r\n          self.line = self.history.nodeAfter(pos.node);\r\n          self.offset = 0;\r\n        }\r\n      }\r\n\r\n      while (true) {\r\n        var match = this.matches();\r\n        // Found the search string.\r\n        if (match) {\r\n          this.atOccurrence = match;\r\n          saveAfter(match.from);\r\n          return true;\r\n        }\r\n        this.line = this.history.nodeAfter(this.line);\r\n        this.offset = 0;\r\n        // End of document.\r\n        if (!this.line) {\r\n          this.valid = false;\r\n          return false;\r\n        }\r\n      }\r\n    },\r\n\r\n    select: function() {\r\n      if (this.atOccurrence) {\r\n        select.setCursorPos(this.editor.container, this.atOccurrence.from, this.atOccurrence.to);\r\n        select.scrollToCursor(this.editor.container);\r\n      }\r\n    },\r\n\r\n    replace: function(string) {\r\n      if (this.atOccurrence) {\r\n        var end = this.editor.replaceRange(this.atOccurrence.from, this.atOccurrence.to, string);\r\n        this.line = end.node;\r\n        this.offset = end.offset;\r\n        this.atOccurrence = false;\r\n      }\r\n    }\r\n  };\r\n\r\n  // The Editor object is the main inside-the-iframe interface.\r\n  function Editor(options) {\r\n    this.options = options;\r\n    this.parent = parent;\r\n    this.doc = document;\r\n    this.container = this.doc.body;\r\n    this.win = window;\r\n    this.history = new History(this.container, options.undoDepth, options.undoDelay,\r\n                               this, options.onChange);\r\n    var self = this;\r\n\r\n    if (!Editor.Parser)\r\n      throw \"No parser loaded.\";\r\n    if (options.parserConfig && Editor.Parser.configure)\r\n      Editor.Parser.configure(options.parserConfig);\r\n\r\n    if (!options.textWrapping)\r\n      this.container.style.whiteSpace = \"pre\";\r\n    setWhiteSpaceModel(options.textWrapping);\r\n\r\n    if (!options.readOnly)\r\n      select.setCursorPos(this.container, {node: null, offset: 0});\r\n\r\n    this.dirty = [];\r\n    if (options.content)\r\n      this.importCode(options.content);\r\n    else // FF acts weird when the editable document is completely empty\r\n      this.container.appendChild(this.doc.createElement(\"BR\"));\r\n\r\n    if (!options.readOnly) {\r\n      if (options.continuousScanning !== false) {\r\n        this.scanner = this.documentScanner(options.linesPerPass);\r\n        this.delayScanning();\r\n      }\r\n\r\n      function setEditable() {\r\n        // In IE, designMode frames can not run any scripts, so we use\r\n        // contentEditable instead.\r\n        if (document.body.contentEditable != undefined && /MSIE/.test(navigator.userAgent))\r\n          document.body.contentEditable = \"true\";\r\n        else\r\n          document.designMode = \"on\";\r\n      }\r\n\r\n      // If setting the frame editable fails, try again when the user\r\n      // focus it (happens when the frame is not visible on\r\n      // initialisation, in Firefox).\r\n      try {\r\n        setEditable();\r\n      }\r\n      catch(e) {\r\n        var focusEvent = addEventHandler(document, \"focus\", function() {\r\n          focusEvent();\r\n          setEditable();\r\n        }, true);\r\n      }\r\n\r\n      addEventHandler(document, \"keydown\", method(this, \"keyDown\"));\r\n      addEventHandler(document, \"keypress\", method(this, \"keyPress\"));\r\n      addEventHandler(document, \"keyup\", method(this, \"keyUp\"));\r\n\r\n      function cursorActivity() {self.cursorActivity(false);}\r\n      addEventHandler(document.body, \"paste\", cursorActivity);\r\n      addEventHandler(document.body, \"cut\", cursorActivity);\r\n      addEventHandler(document.body, \"mouseup\", cursorActivity);\r\n\r\n      if (this.options.autoMatchParens)\r\n        addEventHandler(document.body, \"click\", method(this, \"scheduleParenBlink\"));\r\n    }\r\n  }\r\n\r\n  function isSafeKey(code) {\r\n    return (code >= 16 && code <= 18) || // shift, control, alt\r\n           (code >= 33 && code <= 40); // arrows, home, end\r\n  }\r\n\r\n  Editor.prototype = {\r\n    // Import a piece of code into the editor.\r\n    importCode: function(code) {\r\n      this.history.push(null, null, asEditorLines(code));\r\n      this.history.reset();\r\n    },\r\n\r\n    // Extract the code from the editor.\r\n    getCode: function() {\r\n      if (!this.container.firstChild)\r\n        return \"\";\r\n\r\n      var accum = [];\r\n      select.markSelection(this.win);\r\n      forEach(traverseDOM(this.container.firstChild), method(accum, \"push\"));\r\n      select.selectMarked();\r\n      return cleanText(accum.join(\"\"));\r\n    },\r\n\r\n    checkLine: function(node) {\r\n      if (node === false || !(node == null || node.parentNode == this.container))\r\n        throw parent.CodeMirror.InvalidLineHandle;\r\n    },\r\n\r\n    cursorPosition: function(start) {\r\n      if (start == null) start = true;\r\n      var pos = select.cursorPos(this.container, start);\r\n      if (pos) return {line: pos.node, character: pos.offset};\r\n      else return {line: null, character: 0};\r\n    },\r\n\r\n    firstLine: function() {\r\n      return null;\r\n    },\r\n\r\n    lastLine: function() {\r\n      if (this.container.lastChild) return startOfLine(this.container.lastChild);\r\n      else return null;\r\n    },\r\n\r\n    nextLine: function(line) {\r\n      this.checkLine(line);\r\n      var end = endOfLine(line ? line.nextSibling : this.container.firstChild, this.container);\r\n      return end || false;\r\n    },\r\n\r\n    prevLine: function(line) {\r\n      this.checkLine(line);\r\n      if (line == null) return false;\r\n      return startOfLine(line.previousSibling);\r\n    },\r\n\r\n    selectLines: function(startLine, startOffset, endLine, endOffset) {\r\n      this.checkLine(startLine);\r\n      var start = {node: startLine, offset: startOffset}, end = null;\r\n      if (endOffset !== undefined) {\r\n        this.checkLine(endLine);\r\n        end = {node: endLine, offset: endOffset};\r\n      }\r\n      select.setCursorPos(this.container, start, end);\r\n    },\r\n\r\n    lineContent: function(line) {\r\n      this.checkLine(line);\r\n      var accum = [];\r\n      for (line = line ? line.nextSibling : this.container.firstChild;\r\n           line && line.nodeName != \"BR\"; line = line.nextSibling)\r\n        accum.push(line.innerText || line.textContent || line.nodeValue || \"\");\r\n      return cleanText(accum.join(\"\"));\r\n    },\r\n\r\n    setLineContent: function(line, content) {\r\n      this.history.commit();\r\n      this.replaceRange({node: line, offset: 0},\r\n                        {node: line, offset: this.history.textAfter(line).length},\r\n                        content);\r\n      this.addDirtyNode(line);\r\n      this.scheduleHighlight();\r\n    },\r\n\r\n    insertIntoLine: function(line, position, content) {\r\n      var before = null;\r\n      if (position == \"end\") {\r\n        before = endOfLine(line ? line.nextSibling : this.container.firstChild, this.container);\r\n      }\r\n      else {\r\n        for (var cur = line ? line.nextSibling : this.container.firstChild; cur; cur = cur.nextSibling) {\r\n          if (position == 0) {\r\n            before = cur;\r\n            break;\r\n          }\r\n          var text = (cur.innerText || cur.textContent || cur.nodeValue || \"\");\r\n          if (text.length > position) {\r\n            before = cur.nextSibling;\r\n            content = text.slice(0, position) + content + text.slice(position);\r\n            removeElement(cur);\r\n            break;\r\n          }\r\n          position -= text.length;\r\n        }\r\n      }\r\n\r\n      var lines = asEditorLines(content), doc = this.container.ownerDocument;\r\n      for (var i = 0; i < lines.length; i++) {\r\n        if (i > 0) this.container.insertBefore(doc.createElement(\"BR\"), before);\r\n        this.container.insertBefore(makePartSpan(lines[i], doc), before);\r\n      }\r\n      this.addDirtyNode(line);\r\n      this.scheduleHighlight();\r\n    },\r\n\r\n    // Retrieve the selected text.\r\n    selectedText: function() {\r\n      var h = this.history;\r\n      h.commit();\r\n\r\n      var start = select.cursorPos(this.container, true),\r\n          end = select.cursorPos(this.container, false);\r\n      if (!start || !end) return \"\";\r\n\r\n      if (start.node == end.node)\r\n        return h.textAfter(start.node).slice(start.offset, end.offset);\r\n\r\n      var text = [h.textAfter(start.node).slice(start.offset)];\r\n      for (pos = h.nodeAfter(start.node); pos != end.node; pos = h.nodeAfter(pos))\r\n        text.push(h.textAfter(pos));\r\n      text.push(h.textAfter(end.node).slice(0, end.offset));\r\n      return cleanText(text.join(\"\\n\"));\r\n    },\r\n\r\n    // Replace the selection with another piece of text.\r\n    replaceSelection: function(text) {\r\n      this.history.commit();\r\n      var start = select.cursorPos(this.container, true),\r\n          end = select.cursorPos(this.container, false);\r\n      if (!start || !end) return;\r\n\r\n      end = this.replaceRange(start, end, text);\r\n      select.setCursorPos(this.container, start, end);\r\n    },\r\n\r\n    replaceRange: function(from, to, text) {\r\n      var lines = asEditorLines(text);\r\n      lines[0] = this.history.textAfter(from.node).slice(0, from.offset) + lines[0];\r\n      var lastLine = lines[lines.length - 1];\r\n      lines[lines.length - 1] = lastLine + this.history.textAfter(to.node).slice(to.offset);\r\n      var end = this.history.nodeAfter(to.node);\r\n      this.history.push(from.node, end, lines);\r\n      return {node: this.history.nodeBefore(end),\r\n              offset: lastLine.length};\r\n    },\r\n\r\n    getSearchCursor: function(string, fromCursor) {\r\n      return new SearchCursor(this, string, fromCursor);\r\n    },\r\n\r\n    // Re-indent the whole buffer\r\n    reindent: function() {\r\n      if (this.container.firstChild)\r\n        this.indentRegion(null, this.container.lastChild);\r\n    },\r\n\r\n    // Intercept enter and tab, and assign their new functions.\r\n    keyDown: function(event) {\r\n      // Don\'t scan when the user is typing.\r\n      this.delayScanning();\r\n      // Schedule a paren-highlight event, if configured.\r\n      if (this.options.autoMatchParens)\r\n        this.scheduleParenBlink();\r\n\r\n      if (event.keyCode == 13) { // enter\r\n        if (event.ctrlKey) {\r\n          this.reparseBuffer();\r\n        }\r\n        else {\r\n          select.insertNewlineAtCursor(this.win);\r\n          this.indentAtCursor();\r\n          select.scrollToCursor(this.container);\r\n        }\r\n        event.stop();\r\n      }\r\n      else if (event.keyCode == 9) { // tab\r\n        this.handleTab(!event.ctrlKey && !event.shiftKey);\r\n        event.stop();\r\n      }\r\n      else if (event.ctrlKey || event.metaKey) {\r\n        if (event.keyCode == 90 || event.keyCode == 8) { // Z, backspace\r\n          this.history.undo();\r\n          event.stop();\r\n        }\r\n        else if (event.keyCode == 89) { // Y\r\n          this.history.redo();\r\n          event.stop();\r\n        }\r\n        else if (event.keyCode == 83 && this.options.saveFunction) { // S\r\n          this.options.saveFunction();\r\n          event.stop();\r\n        }\r\n      }\r\n    },\r\n\r\n    // Check for characters that should re-indent the current line,\r\n    // and prevent Opera from handling enter and tab anyway.\r\n    keyPress: function(event) {\r\n      var electric = Editor.Parser.electricChars;\r\n      // Hack for Opera, and Firefox on OS X, in which stopping a\r\n      // keydown event does not prevent the associated keypress event\r\n      // from happening, so we have to cancel enter and tab again\r\n      // here.\r\n      if (event.code == 13 || event.code == 9)\r\n        event.stop();\r\n      else if ((event.character == \"[\" || event.character == \"]\") && event.ctrlKey)\r\n        event.stop(), this.blinkParens();\r\n      else if (electric && electric.indexOf(event.character) != -1)\r\n        this.parent.setTimeout(method(this, \"indentAtCursor\"), 0);\r\n    },\r\n\r\n    // Mark the node at the cursor dirty when a non-safe key is\r\n    // released.\r\n    keyUp: function(event) {\r\n      this.cursorActivity(isSafeKey(event.keyCode));\r\n    },\r\n\r\n    // Indent the line following a given <br>, or null for the first\r\n    // line. If given a <br> element, this must have been highlighted\r\n    // so that it has an indentation method. Returns the whitespace\r\n    // element that has been modified or created (if any).\r\n    indentLineAfter: function(start, direction) {\r\n      // whiteSpace is the whitespace span at the start of the line,\r\n      // or null if there is no such node.\r\n      var whiteSpace = start ? start.nextSibling : this.container.firstChild;\r\n      if (whiteSpace && !hasClass(whiteSpace, \"whitespace\"))\r\n        whiteSpace = null;\r\n\r\n      // Sometimes the start of the line can influence the correct\r\n      // indentation, so we retrieve it.\r\n      var firstText = whiteSpace ? whiteSpace.nextSibling : (start ? start.nextSibling : this.container.firstChild);\r\n      var nextChars = (start && firstText && firstText.currentText) ? firstText.currentText : \"\";\r\n\r\n      // Ask the lexical context for the correct indentation, and\r\n      // compute how much this differs from the current indentation.\r\n      var newIndent = 0, curIndent = whiteSpace ? whiteSpace.currentText.length : 0;\r\n      if (start) newIndent = start.indentation(nextChars, curIndent, direction);\r\n      else if (Editor.Parser.firstIndentation) newIndent = Editor.Parser.firstIndentation(nextChars, curIndent, direction);\r\n      var indentDiff = newIndent - curIndent;\r\n\r\n      // If there is too much, this is just a matter of shrinking a span.\r\n      if (indentDiff < 0) {\r\n        if (newIndent == 0) {\r\n          if (firstText) select.snapshotMove(whiteSpace.firstChild, firstText.firstChild, 0);\r\n          removeElement(whiteSpace);\r\n          whiteSpace = null;\r\n        }\r\n        else {\r\n          select.snapshotMove(whiteSpace.firstChild, whiteSpace.firstChild, indentDiff, true);\r\n          whiteSpace.currentText = safeWhiteSpace(newIndent);\r\n          whiteSpace.firstChild.nodeValue = whiteSpace.currentText;\r\n        }\r\n      }\r\n      // Not enough...\r\n      else if (indentDiff > 0) {\r\n        // If there is whitespace, we grow it.\r\n        if (whiteSpace) {\r\n          whiteSpace.currentText = safeWhiteSpace(newIndent);\r\n          whiteSpace.firstChild.nodeValue = whiteSpace.currentText;\r\n        }\r\n        // Otherwise, we have to add a new whitespace node.\r\n        else {\r\n          whiteSpace = makePartSpan(safeWhiteSpace(newIndent), this.doc);\r\n          whiteSpace.className = \"whitespace\";\r\n          if (start) insertAfter(whiteSpace, start);\r\n          else this.container.insertBefore(whiteSpace, this.container.firstChild);\r\n        }\r\n        if (firstText) select.snapshotMove(firstText.firstChild, whiteSpace.firstChild, curIndent, false, true);\r\n      }\r\n      if (indentDiff != 0) this.addDirtyNode(start);\r\n      return whiteSpace;\r\n    },\r\n\r\n    // Re-highlight the selected part of the document.\r\n    highlightAtCursor: function() {\r\n      var pos = select.selectionTopNode(this.container, true);\r\n      var to = select.selectionTopNode(this.container, false);\r\n      if (pos === false || !to) return;\r\n      // Skip one node ahead to make sure the cursor itself is\r\n      // *inside* a highlighted line.\r\n      if (to.nextSibling) to = to.nextSibling;\r\n\r\n      select.markSelection(this.win);\r\n      var toIsText = to.nodeType == 3;\r\n      if (!toIsText) to.dirty = true;\r\n\r\n      // Highlight lines as long as to is in the document and dirty.\r\n      while (to.parentNode == this.container && (toIsText || to.dirty)) {\r\n        var result = this.highlight(pos, 1, true);\r\n        if (result) pos = result.node;\r\n        if (!result || result.left) break;\r\n      }\r\n      select.selectMarked();\r\n    },\r\n\r\n    // When tab is pressed with text selected, the whole selection is\r\n    // re-indented, when nothing is selected, the line with the cursor\r\n    // is re-indented.\r\n    handleTab: function(direction) {\r\n      if (this.options.dumbTabs) {\r\n        select.insertTabAtCursor(this.win);\r\n      }\r\n      else if (!select.somethingSelected(this.win)) {\r\n        this.indentAtCursor(direction);\r\n      }\r\n      else {\r\n        var start = select.selectionTopNode(this.container, true),\r\n            end = select.selectionTopNode(this.container, false);\r\n        if (start === false || end === false) return;\r\n        this.indentRegion(start, end, direction);\r\n      }\r\n    },\r\n\r\n    // Delay (or initiate) the next paren blink event.\r\n    scheduleParenBlink: function() {\r\n      if (this.parenEvent) this.parent.clearTimeout(this.parenEvent);\r\n      this.parenEvent = this.parent.setTimeout(method(this, \"blinkParens\"), 300);\r\n    },\r\n\r\n    isNearParsedNode: function(node) {\r\n      var distance = 0;\r\n      while (node && (!node.parserFromHere || node.dirty)) {\r\n        distance += (node.textContent || node.innerText || \"-\").length;\r\n        if (distance > 800) return false;\r\n        node = node.previousSibling;\r\n      }\r\n      return true;\r\n    },\r\n\r\n    // Take the token before the cursor. If it contains a character in\r\n    // \'()[]{}\', search for the matching paren/brace/bracket, and\r\n    // highlight them in green for a moment, or red if no proper match\r\n    // was found.\r\n    blinkParens: function() {\r\n      // Clear the event property.\r\n      if (this.parenEvent) this.parent.clearTimeout(this.parenEvent);\r\n      this.parenEvent = null;\r\n\r\n      // Extract a \'paren\' from a piece of text.\r\n      function paren(node) {\r\n        if (node.currentText) {\r\n          var match = node.currentText.match(/^[\\s\\u00a0]*([\\(\\)\\[\\]{}])[\\s\\u00a0]*$/);\r\n          return match && match[1];\r\n        }\r\n      }\r\n      // Determine the direction a paren is facing.\r\n      function forward(ch) {\r\n        return /[\\(\\[\\{]/.test(ch);\r\n      }\r\n\r\n      var ch, self = this, cursor = select.selectionTopNode(this.container, true);\r\n      if (!cursor || !this.isNearParsedNode(cursor)) return;\r\n      this.highlightAtCursor();\r\n      cursor = select.selectionTopNode(this.container, true);\r\n      if (!cursor || !(ch = paren(cursor))) return;\r\n      // We only look for tokens with the same className.\r\n      var className = cursor.className, dir = forward(ch), match = matching[ch];\r\n\r\n      // Since parts of the document might not have been properly\r\n      // highlighted, and it is hard to know in advance which part we\r\n      // have to scan, we just try, and when we find dirty nodes we\r\n      // abort, parse them, and re-try.\r\n      function tryFindMatch() {\r\n        var stack = [], ch, ok = true;;\r\n        for (var runner = cursor; runner; runner = dir ? runner.nextSibling : runner.previousSibling) {\r\n          if (runner.className == className && runner.nodeName == \"SPAN\" && (ch = paren(runner))) {\r\n            if (forward(ch) == dir)\r\n              stack.push(ch);\r\n            else if (!stack.length)\r\n              ok = false;\r\n            else if (stack.pop() != matching[ch])\r\n              ok = false;\r\n            if (!stack.length) break;\r\n          }\r\n          else if (runner.dirty || runner.nodeName != \"SPAN\" && runner.nodeName != \"BR\") {\r\n            return {node: runner, status: \"dirty\"};\r\n          }\r\n        }\r\n        return {node: runner, status: runner && ok};\r\n      }\r\n      // Temporarily give the relevant nodes a colour.\r\n      function blink(node, ok) {\r\n        node.style.fontWeight = \"bold\";\r\n        node.style.color = ok ? \"#8F8\" : \"#F88\";\r\n        self.parent.setTimeout(function() {node.style.fontWeight = \"\"; node.style.color = \"\";}, 500);\r\n      }\r\n\r\n      while (true) {\r\n        var found = tryFindMatch();\r\n        if (found.status == \"dirty\") {\r\n          this.highlight(found.node, 1);\r\n          // Needed because in some corner cases a highlight does not\r\n          // reach a node.\r\n          found.node.dirty = false;\r\n          continue;\r\n        }\r\n        else {\r\n          blink(cursor, found.status);\r\n          if (found.node) blink(found.node, found.status);\r\n          break;\r\n        }\r\n      }\r\n    },\r\n\r\n    // Adjust the amount of whitespace at the start of the line that\r\n    // the cursor is on so that it is indented properly.\r\n    indentAtCursor: function(direction) {\r\n      if (!this.container.firstChild) return;\r\n      // The line has to have up-to-date lexical information, so we\r\n      // highlight it first.\r\n      this.highlightAtCursor();\r\n      var cursor = select.selectionTopNode(this.container, false);\r\n      // If we couldn\'t determine the place of the cursor,\r\n      // there\'s nothing to indent.\r\n      if (cursor === false)\r\n        return;\r\n      var lineStart = startOfLine(cursor);\r\n      var whiteSpace = this.indentLineAfter(lineStart, direction);\r\n      if (cursor == lineStart && whiteSpace)\r\n          cursor = whiteSpace;\r\n      // This means the indentation has probably messed up the cursor.\r\n      if (cursor == whiteSpace)\r\n        select.focusAfterNode(cursor, this.container);\r\n    },\r\n\r\n    // Indent all lines whose start falls inside of the current\r\n    // selection.\r\n    indentRegion: function(current, end, direction) {\r\n      select.markSelection(this.win);\r\n      current = startOfLine(current);\r\n      end = endOfLine(end, this.container);\r\n\r\n      do {\r\n        this.highlight(current);\r\n        var hl = this.highlight(current, 1);\r\n        this.indentLineAfter(current, direction);\r\n        current = hl ? hl.node : null;\r\n      } while (current != end);\r\n      select.selectMarked();\r\n    },\r\n\r\n    // Find the node that the cursor is in, mark it as dirty, and make\r\n    // sure a highlight pass is scheduled.\r\n    cursorActivity: function(safe) {\r\n      if (internetExplorer) {\r\n        this.container.createTextRange().execCommand(\"unlink\");\r\n        this.selectionSnapshot = select.selectionCoords(this.win);\r\n      }\r\n\r\n      var activity = this.options.cursorActivity;\r\n      if (!safe || activity) {\r\n        var cursor = select.selectionTopNode(this.container, false);\r\n        if (cursor === false || !this.container.firstChild) return;\r\n        cursor = cursor || this.container.firstChild;\r\n        if (activity) activity(cursor);\r\n        if (!safe) {\r\n          this.scheduleHighlight();\r\n          this.addDirtyNode(cursor);\r\n        }\r\n      }\r\n    },\r\n\r\n    reparseBuffer: function() {\r\n      forEach(this.container.childNodes, function(node) {node.dirty = true;});\r\n      if (this.container.firstChild)\r\n        this.addDirtyNode(this.container.firstChild);\r\n    },\r\n\r\n    // Add a node to the set of dirty nodes, if it isn\'t already in\r\n    // there.\r\n    addDirtyNode: function(node) {\r\n      node = node || this.container.firstChild;\r\n      if (!node) return;\r\n\r\n      for (var i = 0; i < this.dirty.length; i++)\r\n        if (this.dirty[i] == node) return;\r\n\r\n      if (node.nodeType != 3)\r\n        node.dirty = true;\r\n      this.dirty.push(node);\r\n    },\r\n\r\n    // Cause a highlight pass to happen in options.passDelay\r\n    // milliseconds. Clear the existing timeout, if one exists. This\r\n    // way, the passes do not happen while the user is typing, and\r\n    // should as unobtrusive as possible.\r\n    scheduleHighlight: function() {\r\n      // Timeouts are routed through the parent window, because on\r\n      // some browsers designMode windows do not fire timeouts.\r\n      var self = this;\r\n      this.parent.clearTimeout(this.highlightTimeout);\r\n      this.highlightTimeout = this.parent.setTimeout(function(){self.highlightDirty();}, this.options.passDelay);\r\n    },\r\n\r\n    // Fetch one dirty node, and remove it from the dirty set.\r\n    getDirtyNode: function() {\r\n      while (this.dirty.length > 0) {\r\n        var found = this.dirty.pop();\r\n        // IE8 sometimes throws an unexplainable \'invalid argument\'\r\n        // exception for found.parentNode\r\n        try {\r\n          // If the node has been coloured in the meantime, or is no\r\n          // longer in the document, it should not be returned.\r\n          while (found && found.parentNode != this.container)\r\n            found = found.parentNode\r\n          if (found && (found.dirty || found.nodeType == 3))\r\n            return found;\r\n        } catch (e) {}\r\n      }\r\n      return null;\r\n    },\r\n\r\n    // Pick dirty nodes, and highlight them, until\r\n    // options.linesPerPass lines have been highlighted. The highlight\r\n    // method will continue to next lines as long as it finds dirty\r\n    // nodes. It returns an object indicating the amount of lines\r\n    // left, and information about the place where it stopped. If\r\n    // there are dirty nodes left after this function has spent all\r\n    // its lines, it shedules another highlight to finish the job.\r\n    highlightDirty: function(force) {\r\n      var lines = force ? Infinity : this.options.linesPerPass;\r\n      if (!this.options.readOnly) select.markSelection(this.win);\r\n      var start;\r\n      while (lines > 0 && (start = this.getDirtyNode())){\r\n        var result = this.highlight(start, lines);\r\n        if (result) {\r\n          lines = result.left;\r\n          if (result.node && result.dirty)\r\n            this.addDirtyNode(result.node);\r\n        }\r\n      }\r\n      if (!this.options.readOnly) select.selectMarked();\r\n      if (start)\r\n        this.scheduleHighlight();\r\n      return this.dirty.length == 0;\r\n    },\r\n\r\n    // Creates a function that, when called through a timeout, will\r\n    // continuously re-parse the document.\r\n    documentScanner: function(linesPer) {\r\n      var self = this, pos = null;\r\n      return function() {\r\n        // If the current node is no longer in the document... oh\r\n        // well, we start over.\r\n        if (pos && pos.parentNode != self.container)\r\n          pos = null;\r\n        select.markSelection(self.win);\r\n        var result = self.highlight(pos, linesPer, true);\r\n        select.selectMarked();\r\n        var newPos = result ? (result.node && result.node.nextSibling) : null;\r\n        pos = (pos == newPos) ? null : newPos;\r\n        self.delayScanning();\r\n      };\r\n    },\r\n\r\n    // Starts the continuous scanning process for this document after\r\n    // a given interval.\r\n    delayScanning: function() {\r\n      if (this.scanner) {\r\n        this.parent.clearTimeout(this.documentScan);\r\n        this.documentScan = this.parent.setTimeout(this.scanner, this.options.continuousScanning);\r\n      }\r\n    },\r\n\r\n    // The function that does the actual highlighting/colouring (with\r\n    // help from the parser and the DOM normalizer). Its interface is\r\n    // rather overcomplicated, because it is used in different\r\n    // situations: ensuring that a certain line is highlighted, or\r\n    // highlighting up to X lines starting from a certain point. The\r\n    // \'from\' argument gives the node at which it should start. If\r\n    // this is null, it will start at the beginning of the frame. When\r\n    // a number of lines is given with the \'lines\' argument, it will\r\n    // colour no more than that amount. If at any time it comes across\r\n    // a \'clean\' line (no dirty nodes), it will stop, except when\r\n    // \'cleanLines\' is true.\r\n    highlight: function(from, lines, cleanLines){\r\n      var container = this.container, self = this, active = this.options.activeTokens, origFrom = from;\r\n\r\n      if (!container.firstChild)\r\n        return;\r\n      // lines given as null means \'make sure this BR node has up to date parser information\'\r\n      if (lines == null) {\r\n        if (!from) return;\r\n        else from = from.previousSibling;\r\n      }\r\n      // Backtrack to the first node before from that has a partial\r\n      // parse stored.\r\n      while (from && (!from.parserFromHere || from.dirty))\r\n        from = from.previousSibling;\r\n      // If we are at the end of the document, do nothing.\r\n      if (from && !from.nextSibling)\r\n        return;\r\n\r\n      // Check whether a part (<span> node) and the corresponding token\r\n      // match.\r\n      function correctPart(token, part){\r\n        return !part.reduced && part.currentText == token.value && part.className == token.style;\r\n      }\r\n      // Shorten the text associated with a part by chopping off\r\n      // characters from the front. Note that only the currentText\r\n      // property gets changed. For efficiency reasons, we leave the\r\n      // nodeValue alone -- we set the reduced flag to indicate that\r\n      // this part must be replaced.\r\n      function shortenPart(part, minus){\r\n        part.currentText = part.currentText.substring(minus);\r\n        part.reduced = true;\r\n      }\r\n      // Create a part corresponding to a given token.\r\n      function tokenPart(token){\r\n        var part = makePartSpan(token.value, self.doc);\r\n        part.className = token.style;\r\n        return part;\r\n      }\r\n\r\n      // Get the token stream. If from is null, we start with a new\r\n      // parser from the start of the frame, otherwise a partial parse\r\n      // is resumed.\r\n      var traversal = traverseDOM(from ? from.nextSibling : container.firstChild),\r\n          stream = stringStream(traversal),\r\n          parsed = from ? from.parserFromHere(stream) : Editor.Parser.make(stream);\r\n\r\n      // parts is an interface to make it possible to \'delay\' fetching\r\n      // the next DOM node until we are completely done with the one\r\n      // before it. This is necessary because often the next node is\r\n      // not yet available when we want to proceed past the current\r\n      // one.\r\n      var parts = {\r\n        current: null,\r\n        // Fetch current node.\r\n        get: function(){\r\n          if (!this.current)\r\n            this.current = traversal.nodes.shift();\r\n          return this.current;\r\n        },\r\n        // Advance to the next part (do not fetch it yet).\r\n        next: function(){\r\n          this.current = null;\r\n        },\r\n        // Remove the current part from the DOM tree, and move to the\r\n        // next.\r\n        remove: function(){\r\n          container.removeChild(this.get());\r\n          this.current = null;\r\n        },\r\n        // Advance to the next part that is not empty, discarding empty\r\n        // parts.\r\n        getNonEmpty: function(){\r\n          var part = this.get();\r\n          // Allow empty nodes when they are alone on a line, needed\r\n          // for the FF cursor bug workaround (see select.js,\r\n          // insertNewlineAtCursor).\r\n          while (part && part.nodeName == \"SPAN\" && part.currentText == \"\") {\r\n            var old = part;\r\n            this.remove();\r\n            part = this.get();\r\n            // Adjust selection information, if any. See select.js for details.\r\n            select.snapshotMove(old.firstChild, part.firstChild || part, 0);\r\n          }\r\n          return part;\r\n        }\r\n      };\r\n\r\n      var lineDirty = false, prevLineDirty = true, lineNodes = 0;\r\n\r\n      // This forEach loops over the tokens from the parsed stream, and\r\n      // at the same time uses the parts object to proceed through the\r\n      // corresponding DOM nodes.\r\n      forEach(parsed, function(token){\r\n        var part = parts.getNonEmpty();\r\n\r\n        if (token.value == \"\\n\"){\r\n          // The idea of the two streams actually staying synchronized\r\n          // is such a long shot that we explicitly check.\r\n          if (part.nodeName != \"BR\")\r\n            throw \"Parser out of sync. Expected BR.\";\r\n\r\n          if (part.dirty || !part.indentation) lineDirty = true;\r\n          if (lineDirty) self.history.touch(from);\r\n          from = part;\r\n\r\n          // Every <br> gets a copy of the parser state and a lexical\r\n          // context assigned to it. The first is used to be able to\r\n          // later resume parsing from this point, the second is used\r\n          // for indentation.\r\n          part.parserFromHere = parsed.copy();\r\n          part.indentation = token.indentation;\r\n          part.dirty = false;\r\n\r\n          // No line argument passed means \'go at least until this node\'.\r\n          if (lines == null && part == origFrom) throw StopIteration;\r\n\r\n          // A clean line with more than one node means we are done.\r\n          // Throwing a StopIteration is the way to break out of a\r\n          // MochiKit forEach loop.\r\n          if ((lines !== undefined && --lines <= 0) || (!lineDirty && !prevLineDirty && lineNodes > 1 && !cleanLines))\r\n            throw StopIteration;\r\n          prevLineDirty = lineDirty; lineDirty = false; lineNodes = 0;\r\n          parts.next();\r\n        }\r\n        else {\r\n          if (part.nodeName != \"SPAN\")\r\n            throw \"Parser out of sync. Expected SPAN.\";\r\n          if (part.dirty)\r\n            lineDirty = true;\r\n          lineNodes++;\r\n\r\n          // If the part matches the token, we can leave it alone.\r\n          if (correctPart(token, part)){\r\n            part.dirty = false;\r\n            parts.next();\r\n          }\r\n          // Otherwise, we have to fix it.\r\n          else {\r\n            lineDirty = true;\r\n            // Insert the correct part.\r\n            var newPart = tokenPart(token);\r\n            container.insertBefore(newPart, part);\r\n            if (active) active(newPart, token, self);\r\n            var tokensize = token.value.length;\r\n            var offset = 0;\r\n            // Eat up parts until the text for this token has been\r\n            // removed, adjusting the stored selection info (see\r\n            // select.js) in the process.\r\n            while (tokensize > 0) {\r\n              part = parts.get();\r\n              var partsize = part.currentText.length;\r\n              select.snapshotReplaceNode(part.firstChild, newPart.firstChild, tokensize, offset);\r\n              if (partsize > tokensize){\r\n                shortenPart(part, tokensize);\r\n                tokensize = 0;\r\n              }\r\n              else {\r\n                tokensize -= partsize;\r\n                offset += partsize;\r\n                parts.remove();\r\n              }\r\n            }\r\n          }\r\n        }\r\n      });\r\n      if (lineDirty) this.history.touch(from);\r\n\r\n      // The function returns some status information that is used by\r\n      // hightlightDirty to determine whether and where it has to\r\n      // continue.\r\n      return {left: lines,\r\n              node: parts.get(),\r\n              dirty: lineDirty};\r\n    }\r\n  };\r\n\r\n  return Editor;\r\n})();\r\n\r\naddEventHandler(window, \"load\", function() {\r\n  var CodeMirror = window.frameElement.CodeMirror;\r\n  CodeMirror.editor = new Editor(CodeMirror.options);\r\n  if (CodeMirror.options.initCallback) {\r\n    this.parent.setTimeout(function(){\r\n      CodeMirror.options.initCallback(CodeMirror);\r\n    }, 0);\r\n  }\r\n});\r\n',4489087,1),(4492362,'util.js',4492343,1,'no','public',0,332,'2009-02-05 21:05:11','2010-02-16 23:04:49',0,7,NULL,'2009-02-05 21:05:11',3,'2009-02-05 21:10:41','template://4492362','000001010079201104489087044890770449234304492362','/* A few useful utility functions. */\r\n\r\n// Capture a method on an object.\r\nfunction method(obj, name) {\r\n  return function() {obj[name].apply(obj, arguments);};\r\n}\r\n\r\n// The value used to signal the end of a sequence in iterators.\r\nvar StopIteration = {toString: function() {return \"StopIteration\"}};\r\n\r\n// Checks whether the argument is an iterator or a regular sequence,\r\n// turns it into an iterator.\r\nfunction iter(seq) {\r\n  var i = 0;\r\n  if (seq.next) return seq;\r\n  else return {\r\n    next: function() {\r\n      if (i >= seq.length) throw StopIteration;\r\n      else return seq[i++];\r\n    }\r\n  };\r\n}\r\n\r\n// Apply a function to each element in a sequence.\r\nfunction forEach(iter, f) {\r\n  if (iter.next) {\r\n    try {while (true) f(iter.next());}\r\n    catch (e) {if (e != StopIteration) throw e;}\r\n  }\r\n  else {\r\n    for (var i = 0; i < iter.length; i++)\r\n      f(iter[i]);\r\n  }\r\n}\r\n\r\n// Map a function over a sequence, producing an array of results.\r\nfunction map(iter, f) {\r\n  var accum = [];\r\n  forEach(iter, function(val) {accum.push(f(val));});\r\n  return accum;\r\n}\r\n\r\n// Create a predicate function that tests a string againsts a given\r\n// regular expression.\r\nfunction matcher(regexp){\r\n  return function(value){return regexp.test(value);};\r\n}\r\n\r\n// Test whether a DOM node has a certain CSS class. Much faster than\r\n// the MochiKit equivalent, for some reason.\r\nfunction hasClass(element, className){\r\n  var classes = element.className;\r\n  return classes && new RegExp(\"(^| )\" + className + \"($| )\").test(classes);\r\n}\r\n\r\n// Insert a DOM node after another node.\r\nfunction insertAfter(newNode, oldNode) {\r\n  var parent = oldNode.parentNode;\r\n  parent.insertBefore(newNode, oldNode.nextSibling);\r\n  return newNode;\r\n}\r\n\r\nfunction removeElement(node) {\r\n  if (node.parentNode)\r\n    node.parentNode.removeChild(node);\r\n}\r\n\r\nfunction clearElement(node) {\r\n  while (node.firstChild)\r\n    node.removeChild(node.firstChild);\r\n}\r\n\r\n// Check whether a node is contained in another one.\r\nfunction isAncestor(node, child) {\r\n  while (child = child.parentNode) {\r\n    if (node == child)\r\n      return true;\r\n  }\r\n  return false;\r\n}\r\n\r\n// The non-breaking space character.\r\nvar nbsp = \"\\u00a0\";\r\nvar matching = {\"{\": \"}\", \"[\": \"]\", \"(\": \")\",\r\n                \"}\": \"{\", \"]\": \"[\", \")\": \"(\"};\r\n\r\n// Standardize a few unportable event properties.\r\nfunction normalizeEvent(event) {\r\n  if (!event.stopPropagation) {\r\n    event.stopPropagation = function() {this.cancelBubble = true;};\r\n    event.preventDefault = function() {this.returnValue = false;};\r\n  }\r\n  if (!event.stop) {\r\n    event.stop = function() {\r\n      this.stopPropagation();\r\n      this.preventDefault();\r\n    };\r\n  }\r\n\r\n  if (event.type == \"keypress\") {\r\n    if (event.charCode === 0 || event.charCode == undefined)\r\n      event.code = event.keyCode;\r\n    else\r\n      event.code = event.charCode;\r\n    event.character = String.fromCharCode(event.code);\r\n  }\r\n  return event;\r\n}\r\n\r\n// Portably register event handlers.\r\nfunction addEventHandler(node, type, handler, removeFunc) {\r\n  function wrapHandler(event) {\r\n    handler(normalizeEvent(event || window.event));\r\n  }\r\n  if (typeof node.addEventListener == \"function\") {\r\n    node.addEventListener(type, wrapHandler, false);\r\n    if (removeFunc) return function() {node.removeEventListener(type, wrapHandler, false);};\r\n  }\r\n  else {\r\n    node.attachEvent(\"on\" + type, wrapHandler);\r\n    if (removeFunc) return function() {node.detachEvent(\"on\" + type, wrapHandler);};\r\n  }\r\n}\r\n',4489087,1),(4492364,'undo.js',4492343,1,'no','public',0,332,'2009-02-05 21:05:25','2010-02-16 23:04:49',0,7,NULL,'2009-02-05 21:05:26',3,'2009-02-05 21:11:23','template://4492364','000001010079201104489087044890770449234304492364','/**\r\n * Storage and control for undo information within a CodeMirror\r\n * editor. \'Why on earth is such a complicated mess required for\r\n * that?\', I hear you ask. The goal, in implementing this, was to make\r\n * the complexity of storing and reverting undo information depend\r\n * only on the size of the edited or restored content, not on the size\r\n * of the whole document. This makes it necessary to use a kind of\r\n * \'diff\' system, which, when applied to a DOM tree, causes some\r\n * complexity and hackery.\r\n *\r\n * In short, the editor \'touches\' BR elements as it parses them, and\r\n * the History stores these. When nothing is touched in commitDelay\r\n * milliseconds, the changes are committed: It goes over all touched\r\n * nodes, throws out the ones that did not change since last commit or\r\n * are no longer in the document, and assembles the rest into zero or\r\n * more \'chains\' -- arrays of adjacent lines. Links back to these\r\n * chains are added to the BR nodes, while the chain that previously\r\n * spanned these nodes is added to the undo history. Undoing a change\r\n * means taking such a chain off the undo history, restoring its\r\n * content (text is saved per line) and linking it back into the\r\n * document.\r\n */\r\n\r\n// A history object needs to know about the DOM container holding the\r\n// document, the maximum amount of undo levels it should store, the\r\n// delay (of no input) after which it commits a set of changes, and,\r\n// unfortunately, the \'parent\' window -- a window that is not in\r\n// designMode, and on which setTimeout works in every browser.\r\nfunction History(container, maxDepth, commitDelay, editor, onChange) {\r\n  this.container = container;\r\n  this.maxDepth = maxDepth; this.commitDelay = commitDelay;\r\n  this.editor = editor; this.parent = editor.parent;\r\n  this.onChange = onChange;\r\n  // This line object represents the initial, empty editor.\r\n  var initial = {text: \"\", from: null, to: null};\r\n  // As the borders between lines are represented by BR elements, the\r\n  // start of the first line and the end of the last one are\r\n  // represented by null. Since you can not store any properties\r\n  // (links to line objects) in null, these properties are used in\r\n  // those cases.\r\n  this.first = initial; this.last = initial;\r\n  // Similarly, a \'historyTouched\' property is added to the BR in\r\n  // front of lines that have already been touched, and \'firstTouched\'\r\n  // is used for the first line.\r\n  this.firstTouched = false;\r\n  // History is the set of committed changes, touched is the set of\r\n  // nodes touched since the last commit.\r\n  this.history = []; this.redoHistory = []; this.touched = [];\r\n}\r\n\r\nHistory.prototype = {\r\n  // Schedule a commit (if no other touches come in for commitDelay\r\n  // milliseconds).\r\n  scheduleCommit: function() {\r\n    this.parent.clearTimeout(this.commitTimeout);\r\n    this.commitTimeout = this.parent.setTimeout(method(this, \"tryCommit\"), this.commitDelay);\r\n  },\r\n\r\n  // Mark a node as touched. Null is a valid argument.\r\n  touch: function(node) {\r\n    this.setTouched(node);\r\n    this.scheduleCommit();\r\n  },\r\n\r\n  // Undo the last change.\r\n  undo: function() {\r\n    // Make sure pending changes have been committed.\r\n    this.commit();\r\n\r\n    if (this.history.length) {\r\n      // Take the top diff from the history, apply it, and store its\r\n      // shadow in the redo history.\r\n      this.redoHistory.push(this.updateTo(this.history.pop(), \"applyChain\"));\r\n      if (this.onChange) this.onChange();\r\n    }\r\n  },\r\n\r\n  // Redo the last undone change.\r\n  redo: function() {\r\n    this.commit();\r\n    if (this.redoHistory.length) {\r\n      // The inverse of undo, basically.\r\n      this.addUndoLevel(this.updateTo(this.redoHistory.pop(), \"applyChain\"));\r\n      if (this.onChange) this.onChange();\r\n    }\r\n  },\r\n\r\n  // Push a changeset into the document.\r\n  push: function(from, to, lines) {\r\n    var chain = [];\r\n    for (var i = 0; i < lines.length; i++) {\r\n      var end = (i == lines.length - 1) ? to : this.container.ownerDocument.createElement(\"BR\");\r\n      chain.push({from: from, to: end, text: lines[i]});\r\n      from = end;\r\n    }\r\n    this.pushChains([chain], from == null && to == null);\r\n  },\r\n\r\n  pushChains: function(chains, doNotHighlight) {\r\n    this.commit(doNotHighlight);\r\n    this.addUndoLevel(this.updateTo(chains, \"applyChain\"));\r\n    this.redoHistory = [];\r\n  },\r\n\r\n  // Clear the undo history, make the current document the start\r\n  // position.\r\n  reset: function() {\r\n    this.history = []; this.redoHistory = [];\r\n  },\r\n\r\n  textAfter: function(br) {\r\n    return this.after(br).text;\r\n  },\r\n\r\n  nodeAfter: function(br) {\r\n    return this.after(br).to;\r\n  },\r\n\r\n  nodeBefore: function(br) {\r\n    return this.before(br).from;\r\n  },\r\n\r\n  // Commit unless there are pending dirty nodes.\r\n  tryCommit: function() {\r\n    if (this.editor.highlightDirty()) this.commit();\r\n    else this.scheduleCommit();\r\n  },\r\n\r\n  // Check whether the touched nodes hold any changes, if so, commit\r\n  // them.\r\n  commit: function(doNotHighlight) {\r\n    this.parent.clearTimeout(this.commitTimeout);\r\n    // Make sure there are no pending dirty nodes.\r\n    if (!doNotHighlight) this.editor.highlightDirty(true);\r\n    // Build set of chains.\r\n    var chains = this.touchedChains(), self = this;\r\n\r\n    if (chains.length) {\r\n      this.addUndoLevel(this.updateTo(chains, \"linkChain\"));\r\n      this.redoHistory = [];\r\n      if (this.onChange) this.onChange();\r\n    }\r\n  },\r\n\r\n  // [ end of public interface ]\r\n\r\n  // Update the document with a given set of chains, return its\r\n  // shadow. updateFunc should be \"applyChain\" or \"linkChain\". In the\r\n  // second case, the chains are taken to correspond the the current\r\n  // document, and only the state of the line data is updated. In the\r\n  // first case, the content of the chains is also pushed iinto the\r\n  // document.\r\n  updateTo: function(chains, updateFunc) {\r\n    var shadows = [], dirty = [];\r\n    for (var i = 0; i < chains.length; i++) {\r\n      shadows.push(this.shadowChain(chains[i]));\r\n      dirty.push(this[updateFunc](chains[i]));\r\n    }\r\n    if (updateFunc == \"applyChain\")\r\n      this.notifyDirty(dirty);\r\n    return shadows;\r\n  },\r\n\r\n  // Notify the editor that some nodes have changed.\r\n  notifyDirty: function(nodes) {\r\n    forEach(nodes, method(this.editor, \"addDirtyNode\"))\r\n    this.editor.scheduleHighlight();\r\n  },\r\n\r\n  // Link a chain into the DOM nodes (or the first/last links for null\r\n  // nodes).\r\n  linkChain: function(chain) {\r\n    for (var i = 0; i < chain.length; i++) {\r\n      var line = chain[i];\r\n      if (line.from) line.from.historyAfter = line;\r\n      else this.first = line;\r\n      if (line.to) line.to.historyBefore = line;\r\n      else this.last = line;\r\n    }\r\n  },\r\n\r\n  // Get the line object after/before a given node.\r\n  after: function(node) {\r\n    return node ? node.historyAfter : this.first;\r\n  },\r\n  before: function(node) {\r\n    return node ? node.historyBefore : this.last;\r\n  },\r\n\r\n  // Mark a node as touched if it has not already been marked.\r\n  setTouched: function(node) {\r\n    if (node) {\r\n      if (!node.historyTouched) {\r\n        this.touched.push(node);\r\n        node.historyTouched = true;\r\n      }\r\n    }\r\n    else {\r\n      this.firstTouched = true;\r\n    }\r\n  },\r\n\r\n  // Store a new set of undo info, throw away info if there is more of\r\n  // it than allowed.\r\n  addUndoLevel: function(diffs) {\r\n    this.history.push(diffs);\r\n    if (this.history.length > this.maxDepth)\r\n      this.history.shift();\r\n  },\r\n\r\n  // Build chains from a set of touched nodes.\r\n  touchedChains: function() {\r\n    var self = this;\r\n    // Compare two strings, treating nbsps as spaces.\r\n    function compareText(a, b) {\r\n      return a.replace(/\\u00a0/g, \" \") == b.replace(/\\u00a0/g, \" \");\r\n    }\r\n\r\n    // The temp system is a crummy hack to speed up determining\r\n    // whether a (currently touched) node has a line object associated\r\n    // with it. nullTemp is used to store the object for the first\r\n    // line, other nodes get it stored in their historyTemp property.\r\n    var nullTemp = null;\r\n    function temp(node) {return node ? node.historyTemp : nullTemp;}\r\n    function setTemp(node, line) {\r\n      if (node) node.historyTemp = line;\r\n      else nullTemp = line;\r\n    }\r\n\r\n    function buildLine(node) {\r\n      var text = [];\r\n      for (var cur = node ? node.nextSibling : self.container.firstChild;\r\n           cur && cur.nodeName != \"BR\"; cur = cur.nextSibling)\r\n        if (cur.currentText) text.push(cur.currentText);\r\n      return {from: node, to: cur, text: text.join(\"\")};\r\n    }\r\n\r\n    // Filter out unchanged lines and nodes that are no longer in the\r\n    // document. Build up line objects for remaining nodes.\r\n    var lines = [];\r\n    if (self.firstTouched) self.touched.push(null);\r\n    forEach(self.touched, function(node) {\r\n      if (node && node.parentNode != self.container) return;\r\n\r\n      if (node) node.historyTouched = false;\r\n      else self.firstTouched = false;\r\n\r\n      var line = buildLine(node), shadow = self.after(node);\r\n      if (!shadow || !compareText(shadow.text, line.text) || shadow.to != line.to) {\r\n        lines.push(line);\r\n        setTemp(node, line);\r\n      }\r\n    });\r\n\r\n    // Get the BR element after/before the given node.\r\n    function nextBR(node, dir) {\r\n      var link = dir + \"Sibling\", search = node[link];\r\n      while (search && search.nodeName != \"BR\")\r\n        search = search[link];\r\n      return search;\r\n    }\r\n\r\n    // Assemble line objects into chains by scanning the DOM tree\r\n    // around them.\r\n    var chains = []; self.touched = [];\r\n    forEach(lines, function(line) {\r\n      // Note that this makes the loop skip line objects that have\r\n      // been pulled into chains by lines before them.\r\n      if (!temp(line.from)) return;\r\n\r\n      var chain = [], curNode = line.from, safe = true;\r\n      // Put any line objects (referred to by temp info) before this\r\n      // one on the front of the array.\r\n      while (true) {\r\n        var curLine = temp(curNode);\r\n        if (!curLine) {\r\n          if (safe) break;\r\n          else curLine = buildLine(curNode);\r\n        }\r\n        chain.unshift(curLine);\r\n        setTemp(curNode, null);\r\n        if (!curNode) break;\r\n        safe = self.after(curNode);\r\n        curNode = nextBR(curNode, \"previous\");\r\n      }\r\n      curNode = line.to; safe = self.before(line.from);\r\n      // Add lines after this one at end of array.\r\n      while (true) {\r\n        if (!curNode) break;\r\n        var curLine = temp(curNode);\r\n        if (!curLine) {\r\n          if (safe) break;\r\n          else curLine = buildLine(curNode);\r\n        }\r\n        chain.push(curLine);\r\n        setTemp(curNode, null);\r\n        safe = self.before(curNode);\r\n        curNode = nextBR(curNode, \"next\");\r\n      }\r\n      chains.push(chain);\r\n    });\r\n\r\n    return chains;\r\n  },\r\n\r\n  // Find the \'shadow\' of a given chain by following the links in the\r\n  // DOM nodes at its start and end.\r\n  shadowChain: function(chain) {\r\n    var shadows = [], next = this.after(chain[0].from), end = chain[chain.length - 1].to;\r\n    while (true) {\r\n      shadows.push(next);\r\n      var nextNode = next.to;\r\n      if (!nextNode || nextNode == end)\r\n        break;\r\n      else\r\n        next = nextNode.historyAfter || this.before(end);\r\n      // (The this.before(end) is a hack -- FF sometimes removes\r\n      // properties from BR nodes, in which case the best we can hope\r\n      // for is to not break.)\r\n    }\r\n    return shadows;\r\n  },\r\n\r\n  // Update the DOM tree to contain the lines specified in a given\r\n  // chain, link this chain into the DOM nodes.\r\n  applyChain: function(chain) {\r\n    // Some attempt is made to prevent the cursor from jumping\r\n    // randomly when an undo or redo happens. It still behaves a bit\r\n    // strange sometimes.\r\n    var cursor = select.cursorPos(this.container, false), self = this;\r\n\r\n    // Remove all nodes in the DOM tree between from and to (null for\r\n    // start/end of container).\r\n    function removeRange(from, to) {\r\n      var pos = from ? from.nextSibling : self.container.firstChild;\r\n      while (pos != to) {\r\n        var temp = pos.nextSibling;\r\n        removeElement(pos);\r\n        pos = temp;\r\n      }\r\n    }\r\n\r\n    var start = chain[0].from, end = chain[chain.length - 1].to;\r\n    // Clear the space where this change has to be made.\r\n    removeRange(start, end);\r\n\r\n    // Build a function that will insert nodes before the end node of\r\n    // this chain.\r\n    var insert = end ?\r\n      function(node) {self.container.insertBefore(node, end);}\r\n    : function(node) {self.container.appendChild(node);};\r\n\r\n    // Insert the content specified by the chain into the DOM tree.\r\n    for (var i = 0; i < chain.length; i++) {\r\n      var line = chain[i];\r\n      // The start and end of the space are already correct, but BR\r\n      // tags inside it have to be put back.\r\n      if (i > 0)\r\n        insert(line.from);\r\n      // Add the text.\r\n      var node = makePartSpan(splitSpaces(line.text), this.container.ownerDocument);\r\n      insert(node);\r\n      // See if the cursor was on this line. Put it back, adjusting\r\n      // for changed line length, if it was.\r\n      if (cursor && cursor.node == line.from) {\r\n        var cursordiff = 0;\r\n        var prev = this.after(line.from);\r\n        if (prev && i == chain.length - 1) {\r\n          // Only adjust if the cursor is after the unchanged part of\r\n          // the line.\r\n          for (var match = 0; match < cursor.offset &&\r\n               line.text.charAt(match) == prev.text.charAt(match); match++);\r\n          if (cursor.offset > match)\r\n            cursordiff = line.text.length - prev.text.length;\r\n        }\r\n        select.setCursorPos(this.container, {node: line.from, offset: Math.max(0, cursor.offset + cursordiff)});\r\n      }\r\n      // Cursor was in removed line, this is last new line.\r\n      else if (cursor && (i == chain.length - 1) && cursor.node && cursor.node.parentNode != this.container) {\r\n        select.setCursorPos(this.container, {node: line.from, offset: line.text.length});\r\n      }\r\n    }\r\n\r\n    // Anchor the chain in the DOM tree.\r\n    this.linkChain(chain);\r\n    return start;\r\n  }\r\n};\r\n',4489087,1),(4492367,'stringstream.js',4492343,1,'no','public',0,332,'2009-02-05 21:05:37','2010-02-16 23:04:49',0,7,NULL,'2009-02-05 21:05:37',3,'2009-02-05 21:12:14','template://4492367','000001010079201104489087044890770449234304492367','/* String streams are the things fed to parsers (which can feed them\r\n * to a tokenizer if they want). They provide peek and next methods\r\n * for looking at the current character (next \'consumes\' this\r\n * character, peek does not), and a get method for retrieving all the\r\n * text that was consumed since the last time get was called.\r\n *\r\n * An easy mistake to make is to let a StopIteration exception finish\r\n * the token stream while there are still characters pending in the\r\n * string stream (hitting the end of the buffer while parsing a\r\n * token). To make it easier to detect such errors, the strings throw\r\n * an exception when this happens.\r\n */\r\n\r\n// Make a string stream out of an iterator that returns strings. This\r\n// is applied to the result of traverseDOM (see codemirror.js), and\r\n// the resulting stream is fed to the parser.\r\nwindow.stringStream = function(source){\r\n  source = iter(source);\r\n  // String that\'s currently being iterated over.\r\n  var current = \"\";\r\n  // Position in that string.\r\n  var pos = 0;\r\n  // Accumulator for strings that have been iterated over but not\r\n  // get()-ed yet.\r\n  var accum = \"\";\r\n  // Make sure there are more characters ready, or throw\r\n  // StopIteration.\r\n  function ensureChars() {\r\n    while (pos == current.length) {\r\n      accum += current;\r\n      current = \"\"; // In case source.next() throws\r\n      pos = 0;\r\n      try {current = source.next();}\r\n      catch (e) {\r\n        if (e != StopIteration) throw e;\r\n        else return false;\r\n      }\r\n    }\r\n    return true;\r\n  }\r\n\r\n  return {\r\n    // Return the next character in the stream.\r\n    peek: function() {\r\n      if (!ensureChars()) return null;\r\n      return current.charAt(pos);\r\n    },\r\n    // Get the next character, throw StopIteration if at end, check\r\n    // for unused content.\r\n    next: function() {\r\n      if (!ensureChars()) {\r\n        if (accum.length > 0)\r\n          throw \"End of stringstream reached without emptying buffer (\'\" + accum + \"\').\";\r\n        else\r\n          throw StopIteration;\r\n      }\r\n      return current.charAt(pos++);\r\n    },\r\n    // Return the characters iterated over since the last call to\r\n    // .get().\r\n    get: function() {\r\n      var temp = accum;\r\n      accum = \"\";\r\n      if (pos > 0){\r\n        temp += current.slice(0, pos);\r\n        current = current.slice(pos);\r\n        pos = 0;\r\n      }\r\n      return temp;\r\n    },\r\n    // Push a string back into the stream.\r\n    push: function(str) {\r\n      current = current.slice(0, pos) + str + current.slice(pos);\r\n    },\r\n    lookAhead: function(str, consume, skipSpaces, caseInsensitive) {\r\n      function cased(str) {return caseInsensitive ? str.toLowerCase() : str;}\r\n      str = cased(str);\r\n      var found = false;\r\n\r\n      var _accum = accum, _pos = pos;\r\n      if (skipSpaces) this.nextWhile(matcher(/[\\s\\u00a0]/));\r\n\r\n      while (true) {\r\n        var end = pos + str.length, left = current.length - pos;\r\n        if (end <= current.length) {\r\n          found = str == cased(current.slice(pos, end));\r\n          pos = end;\r\n          break;\r\n        }\r\n        else if (str.slice(0, left) == cased(current.slice(pos))) {\r\n          accum += current; current = \"\";\r\n          try {current = source.next();}\r\n          catch (e) {break;}\r\n          pos = 0;\r\n          str = str.slice(left);\r\n        }\r\n        else {\r\n          break;\r\n        }\r\n      }\r\n\r\n      if (!(found && consume)) {\r\n        current = accum.slice(_accum.length) + current;\r\n        pos = _pos;\r\n        accum = _accum;\r\n      }\r\n\r\n      return found;\r\n    },\r\n\r\n    // Utils built on top of the above\r\n    more: function() {\r\n      return this.peek() !== null;\r\n    },\r\n    applies: function(test) {\r\n      var next = this.peek();\r\n      return (next !== null && test(next));\r\n    },\r\n    nextWhile: function(test) {\r\n      while (this.applies(test))\r\n        this.next();\r\n    },\r\n    equals: function(ch) {\r\n      return ch === this.peek();\r\n    },\r\n    endOfLine: function() {\r\n      var next = this.peek();\r\n      return next == null || next == \"\\n\";\r\n    }\r\n  };\r\n};\r\n',4489087,1),(4492368,'select.js',4492343,1,'no','public',0,332,'2009-02-05 21:05:45','2010-02-16 23:04:49',0,8,NULL,'2009-02-05 21:05:45',3,'2009-02-05 21:12:53','template://4492368','000001010079201104489087044890770449234304492368','/* Functionality for finding, storing, and restoring selections\r\n *\r\n * This does not provide a generic API, just the minimal functionality\r\n * required by the CodeMirror system.\r\n */\r\n\r\n// Namespace object.\r\nvar select = {};\r\n\r\n(function() {\r\n  select.ie_selection = document.selection && document.selection.createRangeCollection;\r\n\r\n  // Find the \'top-level\' (defined as \'a direct child of the node\r\n  // passed as the top argument\') node that the given node is\r\n  // contained in. Return null if the given node is not inside the top\r\n  // node.\r\n  function topLevelNodeAt(node, top) {\r\n    while (node && node.parentNode != top)\r\n      node = node.parentNode;\r\n    return node;\r\n  }\r\n\r\n  // Find the top-level node that contains the node before this one.\r\n  function topLevelNodeBefore(node, top) {\r\n    while (!node.previousSibling && node.parentNode != top)\r\n      node = node.parentNode;\r\n    return topLevelNodeAt(node.previousSibling, top);\r\n  }\r\n\r\n  // Used to prevent restoring a selection when we do not need to.\r\n  var currentSelection = null;\r\n\r\n  var fourSpaces = \"\\u00a0\\u00a0\\u00a0\\u00a0\";\r\n\r\n  select.snapshotChanged = function() {\r\n    if (currentSelection) currentSelection.changed = true;\r\n  };\r\n\r\n  // This is called by the code in editor.js whenever it is replacing\r\n  // a text node. The function sees whether the given oldNode is part\r\n  // of the current selection, and updates this selection if it is.\r\n  // Because nodes are often only partially replaced, the length of\r\n  // the part that gets replaced has to be taken into account -- the\r\n  // selection might stay in the oldNode if the newNode is smaller\r\n  // than the selection\'s offset. The offset argument is needed in\r\n  // case the selection does move to the new object, and the given\r\n  // length is not the whole length of the new node (part of it might\r\n  // have been used to replace another node).\r\n  select.snapshotReplaceNode = function(from, to, length, offset) {\r\n    if (!currentSelection) return;\r\n    currentSelection.changed = true;\r\n\r\n    function replace(point) {\r\n      if (from == point.node) {\r\n        if (length && point.offset > length) {\r\n          point.offset -= length;\r\n        }\r\n        else {\r\n          point.node = to;\r\n          point.offset += (offset || 0);\r\n        }\r\n      }\r\n    }\r\n    replace(currentSelection.start);\r\n    replace(currentSelection.end);\r\n  };\r\n\r\n  select.snapshotMove = function(from, to, distance, relative, ifAtStart) {\r\n    if (!currentSelection) return;\r\n    currentSelection.changed = true;\r\n\r\n    function move(point) {\r\n      if (from == point.node && (!ifAtStart || point.offset == 0)) {\r\n        point.node = to;\r\n        if (relative) point.offset = Math.max(0, point.offset + distance);\r\n        else point.offset = distance;\r\n      }\r\n    }\r\n    move(currentSelection.start);\r\n    move(currentSelection.end);\r\n  };\r\n\r\n  // Most functions are defined in two ways, one for the IE selection\r\n  // model, one for the W3C one.\r\n  if (select.ie_selection) {\r\n    function selectionNode(win, start) {\r\n      var range = win.document.selection.createRange();\r\n      range.collapse(start);\r\n\r\n      function nodeAfter(node) {\r\n        var found = null;\r\n        while (!found && node) {\r\n          found = node.nextSibling;\r\n          node = node.parentNode;\r\n        }\r\n        return nodeAtStartOf(found);\r\n      }\r\n\r\n      function nodeAtStartOf(node) {\r\n        while (node && node.firstChild) node = node.firstChild;\r\n        return {node: node, offset: 0};\r\n      }\r\n\r\n      var containing = range.parentElement();\r\n      if (!isAncestor(win.document.body, containing)) return null;\r\n      if (!containing.firstChild) return nodeAtStartOf(containing);\r\n\r\n      var working = range.duplicate();\r\n      working.moveToElementText(containing);\r\n      working.collapse(true);\r\n      for (var cur = containing.firstChild; cur; cur = cur.nextSibling) {\r\n        if (cur.nodeType == 3) {\r\n          var size = cur.nodeValue.length;\r\n          working.move(\"character\", size);\r\n        }\r\n        else {\r\n          working.moveToElementText(cur);\r\n          working.collapse(false);\r\n        }\r\n\r\n        var dir = range.compareEndPoints(\"StartToStart\", working);\r\n        if (dir == 0) return nodeAfter(cur);\r\n        if (dir == 1) continue;\r\n        if (cur.nodeType != 3) return nodeAtStartOf(cur);\r\n\r\n        working.setEndPoint(\"StartToEnd\", range);\r\n        return {node: cur, offset: size - working.text.length};\r\n      }\r\n      return nodeAfter(containing);\r\n    }\r\n\r\n    select.markSelection = function(win) {\r\n      currentSelection = null;\r\n      var sel = win.document.selection;\r\n      if (!sel) return;\r\n      var start = selectionNode(win, true),\r\n          end = sel.createRange().text == \"\" ? start : selectionNode(win, false);\r\n      if (!start || !end) return;\r\n      currentSelection = {start: start, end: end, window: win, changed: false};\r\n    };\r\n\r\n    select.selectMarked = function() {\r\n      if (!currentSelection || !currentSelection.changed) return;\r\n\r\n      function makeRange(point) {\r\n        var range = currentSelection.window.document.body.createTextRange();\r\n        var node = point.node;\r\n        if (!node) {\r\n          range.moveToElementText(win.document.body);\r\n          range.collapse(false);\r\n        }\r\n        else if (node.nodeType == 3) {\r\n          range.moveToElementText(node.parentNode);\r\n          var offset = point.offset;\r\n          while (node.previousSibling) {\r\n            node = node.previousSibling;\r\n            offset += (node.innerText || \"\").length;\r\n          }\r\n          range.move(\"character\", offset);\r\n        }\r\n        else {\r\n          range.moveToElementText(node);\r\n          range.collapse(true);\r\n        }\r\n        return range;\r\n      }\r\n\r\n      var start = makeRange(currentSelection.start), end = makeRange(currentSelection.end);\r\n      start.setEndPoint(\"StartToEnd\", end);\r\n      start.select();\r\n    };\r\n\r\n    // Get the top-level node that one end of the cursor is inside or\r\n    // after. Note that this returns false for \'no cursor\', and null\r\n    // for \'start of document\'.\r\n    select.selectionTopNode = function(container, start) {\r\n      var selection = container.ownerDocument.selection;\r\n      if (!selection) return false;\r\n\r\n      var range = selection.createRange();\r\n      range.collapse(start);\r\n      var around = range.parentElement();\r\n      if (around && isAncestor(container, around)) {\r\n        // Only use this node if the selection is not at its start.\r\n        var range2 = range.duplicate();\r\n        range2.moveToElementText(around);\r\n        if (range.compareEndPoints(\"StartToStart\", range2) == -1)\r\n          return topLevelNodeAt(around, container);\r\n      }\r\n      // Fall-back hack\r\n      try {range.pasteHTML(\"<span id=\'xxx-temp-xxx\'></span>\");}\r\n      catch (e) {return false;}\r\n\r\n      var temp = container.ownerDocument.getElementById(\"xxx-temp-xxx\");\r\n      if (temp) {\r\n        var result = topLevelNodeBefore(temp, container);\r\n        removeElement(temp);\r\n        return result;\r\n      }\r\n      return false;\r\n    };\r\n\r\n    // Place the cursor after this.start. This is only useful when\r\n    // manually moving the cursor instead of restoring it to its old\r\n    // position.\r\n    select.focusAfterNode = function(node, container) {\r\n      var range = container.ownerDocument.body.createTextRange();\r\n      range.moveToElementText(node || container);\r\n      range.collapse(!node);\r\n      range.select();\r\n    };\r\n\r\n    select.somethingSelected = function(win) {\r\n      var sel = win.document.selection;\r\n      return sel && (sel.createRange().text != \"\");\r\n    };\r\n\r\n    function insertAtCursor(window, html) {\r\n      var selection = window.document.selection;\r\n      if (selection) {\r\n        var range = selection.createRange();\r\n        range.pasteHTML(html);\r\n        range.collapse(false);\r\n        range.select();\r\n      }\r\n    }\r\n\r\n    // Used to normalize the effect of the enter key, since browsers\r\n    // do widely different things when pressing enter in designMode.\r\n    select.insertNewlineAtCursor = function(window) {\r\n      insertAtCursor(window, \"<br/>\");\r\n    };\r\n\r\n    select.insertTabAtCursor = function(window) {\r\n      insertAtCursor(window, fourSpaces);\r\n    };\r\n\r\n    // Get the BR node at the start of the line on which the cursor\r\n    // currently is, and the offset into the line. Returns null as\r\n    // node if cursor is on first line.\r\n    select.cursorPos = function(container, start) {\r\n      var selection = container.ownerDocument.selection;\r\n      if (!selection) return null;\r\n\r\n      var topNode = select.selectionTopNode(container, start);\r\n      while (topNode && topNode.nodeName != \"BR\")\r\n        topNode = topNode.previousSibling;\r\n\r\n      var range = selection.createRange(), range2 = range.duplicate();\r\n      range.collapse(start);\r\n      if (topNode) {\r\n        range2.moveToElementText(topNode);\r\n        range2.collapse(false);\r\n      }\r\n      else {\r\n        // When nothing is selected, we can get all kinds of funky errors here.\r\n        try { range2.moveToElementText(container); }\r\n        catch (e) { return null; }\r\n        range2.collapse(true);\r\n      }\r\n      range.setEndPoint(\"StartToStart\", range2);\r\n\r\n      return {node: topNode, offset: range.text.length};\r\n    };\r\n\r\n    select.setCursorPos = function(container, from, to) {\r\n      function rangeAt(pos) {\r\n        var range = container.ownerDocument.body.createTextRange();\r\n        if (!pos.node) {\r\n          range.moveToElementText(container);\r\n          range.collapse(true);\r\n        }\r\n        else {\r\n          range.moveToElementText(pos.node);\r\n          range.collapse(false);\r\n        }\r\n        range.move(\"character\", pos.offset);\r\n        return range;\r\n      }\r\n\r\n      var range = rangeAt(from);\r\n      if (to && to != from)\r\n        range.setEndPoint(\"EndToEnd\", rangeAt(to));\r\n      range.select();\r\n    }\r\n\r\n    // Make sure the cursor is visible.\r\n    select.scrollToCursor = function(container) {\r\n      var selection = container.ownerDocument.selection;\r\n      if (!selection) return null;\r\n      selection.createRange().scrollIntoView();\r\n    };\r\n\r\n    // Some hacks for storing and re-storing the selection when the editor loses and regains focus.\r\n    select.selectionCoords = function (win) {\r\n      var selection = win.document.selection;\r\n      if (!selection) return null;\r\n      var start = selection.createRange(), end = start.duplicate();\r\n      start.collapse(true);\r\n      end.collapse(false);\r\n\r\n      var body = win.document.body;\r\n      return {start: {x: start.boundingLeft + body.scrollLeft - 1,\r\n                      y: start.boundingTop + body.scrollTop},\r\n              end: {x: end.boundingLeft + body.scrollLeft - 1,\r\n                    y: end.boundingTop + body.scrollTop}};\r\n    };\r\n\r\n    // Restore a stored selection.\r\n    select.selectCoords = function(win, coords) {\r\n      if (!coords) return;\r\n\r\n      var range1 = win.document.body.createTextRange(), range2 = range1.duplicate();\r\n      // This can fail for various hard-to-handle reasons.\r\n      try {\r\n        range1.moveToPoint(coords.start.x, coords.start.y);\r\n        range2.moveToPoint(coords.end.x, coords.end.y);\r\n        range1.setEndPoint(\"EndToStart\", range2);\r\n        range1.select();\r\n      } catch(e) {alert(e.message);}\r\n    };\r\n  }\r\n  // W3C model\r\n  else {\r\n    // This is used to fix an issue with getting the scroll position\r\n    // in Opera.\r\n    var opera_scroll = window.scrollX == null;\r\n\r\n    // Store start and end nodes, and offsets within these, and refer\r\n    // back to the selection object from those nodes, so that this\r\n    // object can be updated when the nodes are replaced before the\r\n    // selection is restored.\r\n    select.markSelection = function (win) {\r\n      var selection = win.getSelection();\r\n      if (!selection || selection.rangeCount == 0)\r\n        return (currentSelection = null);\r\n      var range = selection.getRangeAt(0);\r\n\r\n      currentSelection = {\r\n        start: {node: range.startContainer, offset: range.startOffset},\r\n        end: {node: range.endContainer, offset: range.endOffset},\r\n        window: win,\r\n        scrollX: opera_scroll && win.document.body.scrollLeft,\r\n        scrollY: opera_scroll && win.document.body.scrollTop,\r\n        changed: false\r\n      };\r\n\r\n      // We want the nodes right at the cursor, not one of their\r\n      // ancestors with a suitable offset. This goes down the DOM tree\r\n      // until a \'leaf\' is reached (or is it *up* the DOM tree?).\r\n      function normalize(point){\r\n        while (point.node.nodeType != 3 && point.node.nodeName != \"BR\") {\r\n          var newNode = point.node.childNodes[point.offset] || point.node.nextSibling;\r\n          point.offset = 0;\r\n          while (!newNode && point.node.parentNode) {\r\n            point.node = point.node.parentNode;\r\n            newNode = point.node.nextSibling;\r\n          }\r\n          point.node = newNode;\r\n          if (!newNode)\r\n            break;\r\n        }\r\n      }\r\n\r\n      normalize(currentSelection.start);\r\n      normalize(currentSelection.end);\r\n    };\r\n\r\n    select.selectMarked = function () {\r\n      if (!currentSelection || !currentSelection.changed) return;\r\n      var win = currentSelection.window, range = win.document.createRange();\r\n\r\n      function setPoint(point, which) {\r\n        if (point.node) {\r\n          // Some magic to generalize the setting of the start and end\r\n          // of a range.\r\n          if (point.offset == 0)\r\n            range[\"set\" + which + \"Before\"](point.node);\r\n          else\r\n            range[\"set\" + which](point.node, point.offset);\r\n        }\r\n        else {\r\n          range.setStartAfter(win.document.body.lastChild || win.document.body);\r\n        }\r\n      }\r\n\r\n      // Have to restore the scroll position of the frame in Opera.\r\n      if (opera_scroll) {\r\n        win.document.body.scrollLeft = currentSelection.scrollX;\r\n        win.document.body.scrollTop = currentSelection.scrollY;\r\n      }\r\n      setPoint(currentSelection.end, \"End\");\r\n      setPoint(currentSelection.start, \"Start\");\r\n      selectRange(range, win);\r\n    };\r\n\r\n    // Helper for selecting a range object.\r\n    function selectRange(range, window) {\r\n      var selection = window.getSelection();\r\n      selection.removeAllRanges();\r\n      selection.addRange(range);\r\n    };\r\n    function selectionRange(window) {\r\n      var selection = window.getSelection();\r\n      if (!selection || selection.rangeCount == 0)\r\n        return false;\r\n      else\r\n        return selection.getRangeAt(0);\r\n    }\r\n\r\n    // Finding the top-level node at the cursor in the W3C is, as you\r\n    // can see, quite an involved process.\r\n    select.selectionTopNode = function(container, start) {\r\n      var range = selectionRange(container.ownerDocument.defaultView);\r\n      if (!range) return false;\r\n\r\n      var node = start ? range.startContainer : range.endContainer;\r\n      var offset = start ? range.startOffset : range.endOffset;\r\n      // Work around (yet another) bug in Opera\'s selection model.\r\n      if (window.opera && !start && range.endContainer == container && range.endOffset == range.startOffset + 1 &&\r\n          container.childNodes[range.startOffset] && container.childNodes[range.startOffset].nodeName == \"BR\")\r\n        offset--;\r\n\r\n      // For text nodes, we look at the node itself if the cursor is\r\n      // inside, or at the node before it if the cursor is at the\r\n      // start.\r\n      if (node.nodeType == 3){\r\n        if (offset > 0)\r\n          return topLevelNodeAt(node, container);\r\n        else\r\n          return topLevelNodeBefore(node, container);\r\n      }\r\n      // Occasionally, browsers will return the HTML node as\r\n      // selection. If the offset is 0, we take the start of the frame\r\n      // (\'after null\'), otherwise, we take the last node.\r\n      else if (node.nodeName == \"HTML\") {\r\n        return (offset == 1 ? null : container.lastChild);\r\n      }\r\n      // If the given node is our \'container\', we just look up the\r\n      // correct node by using the offset.\r\n      else if (node == container) {\r\n        return (offset == 0) ? null : node.childNodes[offset - 1];\r\n      }\r\n      // In any other case, we have a regular node. If the cursor is\r\n      // at the end of the node, we use the node itself, if it is at\r\n      // the start, we use the node before it, and in any other\r\n      // case, we look up the child before the cursor and use that.\r\n      else {\r\n        if (offset == node.childNodes.length)\r\n          return topLevelNodeAt(node, container);\r\n        else if (offset == 0)\r\n          return topLevelNodeBefore(node, container);\r\n        else\r\n          return topLevelNodeAt(node.childNodes[offset - 1], container);\r\n      }\r\n    };\r\n\r\n    select.focusAfterNode = function(node, container) {\r\n      var win = container.ownerDocument.defaultView,\r\n          range = win.document.createRange();\r\n      range.setStartBefore(container.firstChild || container);\r\n      // In Opera, setting the end of a range at the end of a line\r\n      // (before a BR) will cause the cursor to appear on the next\r\n      // line, so we set the end inside of the start node when\r\n      // possible.\r\n      if (node && !node.firstChild)\r\n        range.setEndAfter(node);\r\n      else if (node)\r\n        range.setEnd(node, node.childNodes.length);\r\n      else\r\n        range.setEndBefore(container.firstChild || container);\r\n      range.collapse(false);\r\n      selectRange(range, win);\r\n    };\r\n\r\n    select.somethingSelected = function(win) {\r\n      var range = selectionRange(win);\r\n      return range && !range.collapsed;\r\n    };\r\n\r\n    function insertNodeAtCursor(window, node) {\r\n      var range = selectionRange(window);\r\n      if (!range) return;\r\n\r\n      range.deleteContents();\r\n      range.insertNode(node);\r\n      range.setEndAfter(node);\r\n      range.collapse(false);\r\n      selectRange(range, window);\r\n      return node;\r\n    }\r\n\r\n    select.insertNewlineAtCursor = function(window) {\r\n      insertNodeAtCursor(window, window.document.createElement(\"BR\"));\r\n    };\r\n\r\n    select.insertTabAtCursor = function(window) {\r\n      insertNodeAtCursor(window, window.document.createTextNode(fourSpaces));\r\n    };\r\n\r\n    select.cursorPos = function(container, start) {\r\n      var range = selectionRange(window);\r\n      if (!range) return;\r\n\r\n      var topNode = select.selectionTopNode(container, start);\r\n      while (topNode && topNode.nodeName != \"BR\")\r\n        topNode = topNode.previousSibling;\r\n\r\n      range = range.cloneRange();\r\n      range.collapse(start);\r\n      if (topNode)\r\n        range.setStartAfter(topNode);\r\n      else\r\n        range.setStartBefore(container);\r\n      return {node: topNode, offset: range.toString().length};\r\n    };\r\n\r\n    select.setCursorPos = function(container, from, to) {\r\n      var win = container.ownerDocument.defaultView,\r\n          range = win.document.createRange();\r\n\r\n      function setPoint(node, offset, side) {\r\n        if (!node)\r\n          node = container.firstChild;\r\n        else\r\n          node = node.nextSibling;\r\n\r\n        if (!node)\r\n          return;\r\n\r\n        if (offset == 0) {\r\n          range[\"set\" + side + \"Before\"](node);\r\n          return true;\r\n        }\r\n\r\n        var backlog = []\r\n        function decompose(node) {\r\n          if (node.nodeType == 3)\r\n            backlog.push(node);\r\n          else\r\n            forEach(node.childNodes, decompose);\r\n        }\r\n        while (true) {\r\n          while (node && !backlog.length) {\r\n            decompose(node);\r\n            node = node.nextSibling;\r\n          }\r\n          var cur = backlog.shift();\r\n          if (!cur) return false;\r\n\r\n          var length = cur.nodeValue.length;\r\n          if (length >= offset) {\r\n            range[\"set\" + side](cur, offset);\r\n            return true;\r\n          }\r\n          offset -= length;\r\n        }\r\n      }\r\n\r\n      to = to || from;\r\n      if (setPoint(to.node, to.offset, \"End\") && setPoint(from.node, from.offset, \"Start\"))\r\n        selectRange(range, win);\r\n    };\r\n\r\n    select.scrollToCursor = function(container) {\r\n      var body = container.ownerDocument.body, win = container.ownerDocument.defaultView;\r\n      var element = select.selectionTopNode(container, true) || container.firstChild;\r\n      \r\n      // In Opera, BR elements *always* have a scrollTop property of zero. Go Opera.\r\n      while (element && !element.offsetTop)\r\n        element = element.previousSibling;\r\n\r\n      var y = 0, pos = element;\r\n      while (pos && pos.offsetParent) {\r\n        y += pos.offsetTop;\r\n        pos = pos.offsetParent;\r\n      }\r\n\r\n      var screen_y = y - body.scrollTop;\r\n      if (screen_y < 0 || screen_y > win.innerHeight - 10)\r\n        win.scrollTo(0, y);\r\n    };\r\n  }\r\n})();\r\n',4489087,1),(4492369,'tokenize.js',4492343,1,'no','public',0,332,'2009-02-05 21:05:53','2010-02-16 23:04:49',0,8,NULL,'2009-02-05 21:05:53',4,'2009-02-05 21:13:29','template://4492369','000001010079201104489087044890770449234304492369','// A framework for simple tokenizers. Takes care of newlines and\r\n// white-space, and of getting the text from the source stream into\r\n// the token object. A state is a function of two arguments -- a\r\n// string stream and a setState function. The second can be used to\r\n// change the tokenizer\'s state, and can be ignored for stateless\r\n// tokenizers. This function should advance the stream over a token\r\n// and return a string or object containing information about the next\r\n// token, or null to pass and have the (new) state be called to finish\r\n// the token. When a string is given, it is wrapped in a {style, type}\r\n// object. In the resulting object, the characters consumed are stored\r\n// under the content property. Any whitespace following them is also\r\n// automatically consumed, and added to the value property. (Thus,\r\n// content is the actual meaningful part of the token, while value\r\n// contains all the text it spans.)\r\n\r\nfunction tokenizer(source, state) {\r\n  // Newlines are always a separate token.\r\n  function isWhiteSpace(ch) {\r\n    // The messy regexp is because IE\'s regexp matcher is of the\r\n    // opinion that non-breaking spaces are no whitespace.\r\n    return ch != \"\\n\" && /^[\\s\\u00a0]*$/.test(ch);\r\n  }\r\n\r\n  var tokenizer = {\r\n    state: state,\r\n\r\n    take: function(type) {\r\n      if (typeof(type) == \"string\")\r\n        type = {style: type, type: type};\r\n\r\n      type.content = (type.content || \"\") + source.get();\r\n      if (!/\\n$/.test(type.content))\r\n        source.nextWhile(isWhiteSpace);\r\n      type.value = type.content + source.get();\r\n      return type;\r\n    },\r\n\r\n    next: function () {\r\n      if (!source.more()) throw StopIteration;\r\n\r\n      var type;\r\n      if (source.equals(\"\\n\")) {\r\n        source.next();\r\n        return this.take(\"whitespace\");\r\n      }\r\n      \r\n      if (source.applies(isWhiteSpace))\r\n        type = \"whitespace\";\r\n      else\r\n        while (!type)\r\n          type = this.state(source, function(s) {tokenizer.state = s;});\r\n\r\n      return this.take(type);\r\n    }\r\n  };\r\n  return tokenizer;\r\n}\r\n',4489087,1),(4492371,'parsexml.js',4492343,1,'no','public',0,332,'2009-02-05 21:06:58','2010-02-16 23:04:49',0,7,NULL,'2009-02-05 21:06:58',3,'2009-02-05 21:14:06','template://4492371','000001010079201104489087044890770449234304492371','/* This file defines an XML parser, with a few kludges to make it\r\n * useable for HTML. autoSelfClosers defines a set of tag names that\r\n * are expected to not have a closing tag, and doNotIndent specifies\r\n * the tags inside of which no indentation should happen (see Config\r\n * object). These can be disabled by passing the editor an object like\r\n * {useHTMLKludges: false} as parserConfig option.\r\n */\r\n\r\nvar XMLParser = Editor.Parser = (function() {\r\n  var Kludges = {\r\n    autoSelfClosers: {\"br\": true, \"img\": true, \"hr\": true, \"link\": true, \"input\": true,\r\n                      \"meta\": true, \"col\": true, \"frame\": true, \"base\": true, \"area\": true},\r\n    doNotIndent: {\"pre\": true}\r\n  };\r\n  var NoKludges = {autoSelfClosers: {}, doNotIndent: {}};\r\n  var UseKludges = Kludges;\r\n\r\n  // Simple stateful tokenizer for XML documents. Returns a\r\n  // MochiKit-style iterator, with a state property that contains a\r\n  // function encapsulating the current state. See tokenize.js.\r\n  var tokenizeXML = (function() {\r\n    function inText(source, setState) {\r\n      var ch = source.next();\r\n      if (ch == \"<\") {\r\n        if (source.equals(\"!\")) {\r\n          source.next();\r\n          if (source.equals(\"[\")) {\r\n            if (source.lookAhead(\"[CDATA[\", true)) {\r\n              setState(inBlock(\"xml-cdata\", \"]]>\"));\r\n              return null;\r\n            }\r\n            else {\r\n              return \"xml-text\";\r\n            }\r\n          }\r\n          else if (source.lookAhead(\"--\", true)) {\r\n            setState(inBlock(\"xml-comment\", \"-->\"));\r\n            return null;\r\n          }\r\n          else {\r\n            return \"xml-text\";\r\n          }\r\n        }\r\n        else if (source.equals(\"?\")) {\r\n          source.next();\r\n          source.nextWhile(matcher(/[\\w\\._\\-]/));\r\n          setState(inBlock(\"xml-processing\", \"?>\"));\r\n          return \"xml-processing\";\r\n        }\r\n        else {\r\n          if (source.equals(\"/\")) source.next();\r\n          setState(inTag);\r\n          return \"xml-punctuation\";\r\n        }\r\n      }\r\n      else if (ch == \"&\") {\r\n        while (!source.endOfLine()) {\r\n          if (source.next() == \";\")\r\n            break;\r\n        }\r\n        return \"xml-entity\";\r\n      }\r\n      else {\r\n        source.nextWhile(matcher(/[^&<\\n]/));\r\n        return \"xml-text\";\r\n      }\r\n    }\r\n\r\n    function inTag(source, setState) {\r\n      var ch = source.next();\r\n      if (ch == \">\") {\r\n        setState(inText);\r\n        return \"xml-punctuation\";\r\n      }\r\n      else if (/[?\\/]/.test(ch) && source.equals(\">\")) {\r\n        source.next();\r\n        setState(inText);\r\n        return \"xml-punctuation\";\r\n      }\r\n      else if (ch == \"=\") {\r\n        return \"xml-punctuation\";\r\n      }\r\n      else if (/[\\\'\\\"]/.test(ch)) {\r\n        setState(inAttribute(ch));\r\n        return null;\r\n      }\r\n      else {\r\n        source.nextWhile(matcher(/[^\\s\\u00a0=<>\\\"\\\'\\/?]/));\r\n        return \"xml-name\";\r\n      }\r\n    }\r\n\r\n    function inAttribute(quote) {\r\n      return function(source, setState) {\r\n        while (!source.endOfLine()) {\r\n          if (source.next() == quote) {\r\n            setState(inTag);\r\n            break;\r\n          }\r\n        }\r\n        return \"xml-attribute\";\r\n      };\r\n    }\r\n\r\n    function inBlock(style, terminator) {\r\n      return function(source, setState) {\r\n        while (!source.endOfLine()) {\r\n          if (source.lookAhead(terminator, true)) {\r\n            setState(inText);\r\n            break;\r\n          }\r\n          source.next();\r\n        }\r\n        return style;\r\n      };\r\n    }\r\n\r\n    return function(source, startState) {\r\n      return tokenizer(source, startState || inText);\r\n    };\r\n  })();\r\n\r\n  // The parser. The structure of this function largely follows that of\r\n  // parseJavaScript in parsejavascript.js (there is actually a bit more\r\n  // shared code than I\'d like), but it is quite a bit simpler.\r\n  function parseXML(source) {\r\n    var tokens = tokenizeXML(source);\r\n    var cc = [base];\r\n    var tokenNr = 0, indented = 0;\r\n    var currentTag = null, context = null;\r\n    var consume, marked;\r\n    \r\n    function push(fs) {\r\n      for (var i = fs.length - 1; i >= 0; i--)\r\n        cc.push(fs[i]);\r\n    }\r\n    function cont() {\r\n      push(arguments);\r\n      consume = true;\r\n    }\r\n    function pass() {\r\n      push(arguments);\r\n      consume = false;\r\n    }\r\n\r\n    function mark(style) {\r\n      marked = style;\r\n    }\r\n    function expect(text) {\r\n      return function(style, content) {\r\n        if (content == text) cont();\r\n        else mark(\"xml-error\") || cont(arguments.callee);\r\n      };\r\n    }\r\n\r\n    function pushContext(tagname, startOfLine) {\r\n      var noIndent = UseKludges.doNotIndent.hasOwnProperty(tagname) || (context && context.noIndent);\r\n      context = {prev: context, name: tagname, indent: indented, startOfLine: startOfLine, noIndent: noIndent};\r\n    }\r\n    function popContext() {\r\n      context = context.prev;\r\n    }\r\n    function computeIndentation(baseContext) {\r\n      return function(nextChars) {\r\n        var context = baseContext;\r\n        if (context && context.noIndent)\r\n          return 0;\r\n        if (context && /^<\\//.test(nextChars))\r\n          context = context.prev;\r\n        while (context && !context.startOfLine)\r\n          context = context.prev;\r\n        if (context)\r\n          return context.indent + 2;\r\n        else\r\n          return 0;\r\n      };\r\n    }\r\n\r\n    function base() {\r\n      return pass(element, base);\r\n    }\r\n    var harmlessTokens = {\"xml-text\": true, \"xml-entity\": true, \"xml-comment\": true,\r\n                          \"xml-cdata\": true, \"xml-processing\": true};\r\n    function element(style, content) {\r\n      if (content == \"<\") cont(tagname, attributes, endtag(tokenNr == 1));\r\n      else if (content == \"</\") cont(closetagname, expect(\">\"));\r\n      else if (content == \"<?\") cont(tagname, attributes, expect(\"?>\"));\r\n      else if (harmlessTokens.hasOwnProperty(style)) cont();\r\n      else mark(\"xml-error\") || cont();\r\n    }\r\n    function tagname(style, content) {\r\n      if (style == \"xml-name\") {\r\n        currentTag = content.toLowerCase();\r\n        mark(\"xml-tagname\");\r\n        cont();\r\n      }\r\n      else {\r\n        currentTag = null;\r\n        pass();\r\n      }\r\n    }\r\n    function closetagname(style, content) {\r\n      if (style == \"xml-name\" && context && content.toLowerCase() == context.name) {\r\n        popContext();\r\n        mark(\"xml-tagname\");\r\n      }\r\n      else {\r\n        mark(\"xml-error\");\r\n      }\r\n      cont();\r\n    }\r\n    function endtag(startOfLine) {\r\n      return function(style, content) {\r\n        if (content == \"/>\" || (content == \">\" && UseKludges.autoSelfClosers.hasOwnProperty(currentTag))) cont();\r\n        else if (content == \">\") pushContext(currentTag, startOfLine) || cont();\r\n        else mark(\"xml-error\") || cont(arguments.callee);\r\n      };\r\n    }\r\n    function attributes(style) {\r\n      if (style == \"xml-name\") mark(\"xml-attname\") || cont(attribute, attributes);\r\n      else pass();\r\n    }\r\n    function attribute(style, content) {\r\n      if (content == \"=\") cont(value);\r\n      else if (content == \">\" || content == \"/>\") pass(endtag);\r\n      else pass();\r\n    }\r\n    function value(style) {\r\n      if (style == \"xml-attribute\") cont(value);\r\n      else pass();\r\n    }\r\n\r\n    return {\r\n      indentation: function() {return indented;},\r\n\r\n      next: function(){\r\n        var token = tokens.next();\r\n        if (token.style == \"whitespace\" && tokenNr == 0)\r\n          indented = token.value.length;\r\n        else\r\n          tokenNr++;\r\n        if (token.content == \"\\n\") {\r\n          indented = tokenNr = 0;\r\n          token.indentation = computeIndentation(context);\r\n        }\r\n\r\n        if (token.style == \"whitespace\" || token.type == \"xml-comment\")\r\n          return token;\r\n\r\n        while(true){\r\n          consume = marked = false;\r\n          cc.pop()(token.style, token.content);\r\n          if (consume){\r\n            if (marked)\r\n              token.style = marked;\r\n            return token;\r\n          }\r\n        }\r\n      },\r\n\r\n      copy: function(){\r\n        var _cc = cc.concat([]), _tokenState = tokens.state, _context = context;\r\n        var parser = this;\r\n        \r\n        return function(input){\r\n          cc = _cc.concat([]);\r\n          tokenNr = indented = 0;\r\n          context = _context;\r\n          tokens = tokenizeXML(input, _tokenState);\r\n          return parser;\r\n        };\r\n      }\r\n    };\r\n  }\r\n\r\n  return {\r\n    make: parseXML,\r\n    electricChars: \"/\",\r\n    configure: function(config) {\r\n      if (config.useHTMLKludges)\r\n        UseKludges = Kludges;\r\n      else\r\n        UseKludges = NoKludges;\r\n    }\r\n  };\r\n})();\r\n',4489087,1),(4492372,'xmlcolors.css',4492343,1,'no','public',0,332,'2009-02-05 21:07:11','2010-02-16 23:04:49',0,8,NULL,'2009-02-05 21:07:11',3,'2009-02-05 21:14:57','template://4492372','000001010079201104489087044890770449234304492372','.editbox {\r\n  margin: .4em;\r\n  padding: 0;\r\n  font-family: monospace;\r\n  font-size: 10pt;\r\n  color: black;\r\n}\r\n\r\n.editbox p {\r\n  margin: 0;\r\n}\r\n\r\nspan.xml-tagname {\r\n  color: #A0B;\r\n}\r\n\r\nspan.xml-attribute {\r\n  color: #281;\r\n}\r\n\r\nspan.xml-punctuation {\r\n  color: black;\r\n}\r\n\r\nspan.xml-attname {\r\n  color: #00F;\r\n}\r\n\r\nspan.xml-comment {\r\n  color: #A70;\r\n}\r\n\r\nspan.xml-cdata {\r\n  color: #48A;\r\n}\r\n\r\nspan.xml-processing {\r\n  color: #999;\r\n}\r\n\r\nspan.xml-entity {\r\n  color: #A22;\r\n}\r\n\r\nspan.xml-error {\r\n  color: #F00;\r\n}\r\n\r\nspan.xml-text {\r\n  color: black;\r\n}\r\n',4489087,1),(4496312,'default header_template',4496373,1,'no','public',1,332,'2009-02-07 15:34:30','2010-02-16 23:04:49',0,46,NULL,'2009-02-07 15:34:30',4,'2009-02-07 16:11:46','template://4496312','0000010100792011044890870448907704496312',' <html>\r\n    <head>\r\n        <meta http-equiv=\"Default-Style\" content=\"kyberia\" />\r\n        <meta http-equiv=\"Cache-Control\" content=\"Public\" />\r\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n\r\n        <link rel=\'stylesheet\' title=\"kyberia\" type=\'text/css\'\r\nhref=\'/templates/4496321.tpl\' />\r\n\r\n        <!-- AJAX CONNECTION -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/ajax/XHConn.js\"></script>\r\n\r\n        <!-- USER MENU PANEL JS -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/panel.js\"></script>\r\n\r\n        <!-- CHECK NEW MAIL -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/check_new_mail.js\"></script>\r\n        \r\n        <!-- LOGGED OUT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/logged_out.js\"></script>\r\n\r\n        <!-- MAIL SCRIPT -->\r\n        <script language=\"JavaScript\" type=\"text/javascript\"\r\nsrc=\"/js/mail.js\"></script>\r\n\r\n        <!-- CODEMIRROR --><script language=\"JavaScript\" type=\"text/javascript\" src=\"http://x86.sk/~slobo/codemirror/js/codemirror.js\"></script>\r\n\r\n        <title>{* title.tpl *}{include file=\"791948.tpl\"}</title>\r\n    </head>\r\n\r\n    <body>\r\n        {if $user_id eq true}\r\n            <div class=\"t1\">\r\n              <form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq false}{$action}{/if}\'\r\n              method=\'post\'>\r\n              <center>\r\n              [ \r\n              <a href=\'/id/1/\'>main</a> --\r\n              <a href=\'/id/101/\'>kyberia</a> -- \r\n              <a href=\'/id/102/\'>hysteria</a> -- \r\n              <a href=\'/id/683817/\'>kniznica</a> -- \r\n              <a href=\'/id/19\'>bookmarkz</a> \r\n              ]\r\n              [\r\n              <a href=\'/id/24\'>posta</a> --\r\n              <a href=\'/chat/chat.htm\' target=\'_blank\'>chat</a> --\r\n              <a href=\'/id/23\'>last</a> --\r\n              <a href=\'/id/27\'>ludia</a> --\r\n              <a href=\'/id/21\'>blogz</a> \r\n              ]\r\n              [\r\n              <a href=\'/id/15\'>k NEW</a> / <a href=\'/id/788016\'>CONSCIOUSNESS</a> --\r\n              <a href=\'/id/876611\'>senate</a> --\r\n              <!--  <a href=\'/id/20\'>clanky</a> ---- -->\r\n              <a href=\'/id/1058182\'>forumz</a> \r\n              ]\r\n              [\r\n              <a href=\'/id/25\'>search</a> --\r\n              <a href=\'/id/{$user_id}\'>userinfo</a> (<a href=\'/id/{$user_id}/4488928\'>setup</a>) --\r\n\r\n              <a href=\'/id/1017832\'>help</a>\r\n              ]\r\n              <input type=\'submit\' value=\'logout\' name=\'event\' tabindex=\'23\'>\r\n              </center>\r\n              </form>\r\n              </div><div class=\"t2\"></div>\r\n        {/if}\r\n        {if $error eq true}\r\n            <center><span class=\'most_important\'>{$error}</span></center>\r\n        {/if}        {if $new_mail eq true}\r\n            <center><a href=\'/id/24/\' class=\'mail\'>u have {$new_mail} new mail,last from\r\n{$new_mail_name}</a></center>\r\n        {/if}',4489087,0),(4496321,'default css',4496373,1,'no','public',1,332,'2009-02-07 15:39:42','2010-02-16 23:04:49',0,369,NULL,'2009-02-07 15:39:42',3,'2009-03-09 02:28:45','template://4496321','0000010100792011044890870448907704496321','/* tie komentare este niesu akoze naozaj [= vlastne aj toto css je taka provizooria; bo by som chcel zmenit system selektorov [aj v kode] */\r\n\r\n/* pasteka */\r\nbody {\r\n  color: #6DAE42;\r\n  margin:0;\r\n  padding:0;\r\n  background-color: #000;\r\n  font-size: 8pt;\r\n  font-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n}\r\n\r\ninframe {\r\n	width: 90%;\r\n	height: 230px;\r\n}\r\n\r\ntd {\r\nfont-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\nfont-size: 8pt;\r\npadding: 0.1em 0.1em 0.1em 0.1em;\r\n}\r\n\r\n\r\n\r\n\r\n/* header [momentalne vypnute fixnutie] */\r\n.t1 {\r\n	position: relative;\r\n	margin: 0;\r\n	text-align: center;\r\n	background-color: #000;\r\n	width: 100%;\r\n	height: 20px;\r\nline-height:1em;\r\n}\r\n\r\n.t1 a {\r\nfont-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\n.t2 {\r\n	/* height: 20px;*/\r\n}\r\n\r\n/* obsah nody */\r\n\r\n#topic {\r\n	width: 662px;\r\n	padding: 2px;\r\n	display: table;\r\n}\r\n\r\n\r\na {\r\n	color: white;\r\n	text-decoration: none;\r\nfont-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\na:hover {\r\n	color: red;\r\n}\r\n\r\na.mail {\r\n	color: red;\r\n	font-weight: bold;\r\n	text-align: center;\r\n	text-decoration: none;\r\nfont-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\na.mail:hover {\r\n	color: white;\r\n	font-weight: bold;\r\n	text-align: center;\r\nfont-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\n\r\n.bordered {\r\n	border: 2px solid  #6DAE42;\r\n}\r\n\r\n.bordered2 {\r\n	border-left: solid 1pt #6DAE42;\r\n	border-right: solid 1pt #6DAE42;\r\n	border-bottom: solid 1pt #6DAE42;\r\n}\r\n\r\n\r\n\r\n.header {\r\n	background-color: #333;\r\n	border-bottom: solid 1px #6DAE42;\r\n	height: 100%;\r\n	width: 100%;\r\n	vertical-align: top;\r\n	align: left;\r\n	padding: 0pt;\r\n}\r\n\r\n.header input {\r\n  margin:0;\r\n  padding:0;\r\n  width: 8pt;\r\n  height: 8pt;\r\n  background: #444;   /* len opera */\r\n  border: 1px solid #000;   /* len opera */\r\n  color: #000;\r\n  opacity: 0.8;\r\n}\r\n\r\n.important {\r\n	font-weight: bold;\r\n	text-align: center;\r\n}\r\n\r\n.most_important {\r\n  font-weight: bold; \r\n  color: red;\r\n  size:70%;\r\n}\r\n\r\n.important_y { color: red; display: block; font-size: 2em; margin: .67em 0 }\r\n.important_n { color: green; display: block; font-size: 2em; margin: .67em 0 }\r\n\r\n/* userlisty a podobny sajrajt ----------------------------------------- */\r\n\r\n.active_user_img {\r\n	float: left;\r\n	width: 50px;\r\n	margin: 0 3px 3px 0;\r\n        _margin-bottom:0;\r\n}\r\n\r\n.active_user_img img { margin:0; padding:0; width: 50px; height:50px; border:0; }\r\n\r\n.active_users .active_user_name {\r\n	text-align: center;\r\n}\r\n\r\n.node_userlist {\r\n	width: 666px;\r\n	text-align: center;\r\n	margin-bottom: 10px;\r\n	position: relative;\r\n}\r\n\r\n.node_userlist img {\r\n	width: 50px;\r\n	height: 50px;\r\n	border: 0;\r\n	margin: 0 3px 3px 0;\r\n}\r\n\r\n/* thread -------------------------------------------------------------- */\r\n\r\n#th_root {\r\nmargin:0;\r\npadding:0;\r\n}\r\n\r\n#th_root li {\r\n  list-style-type:none;\r\n  border-left: 1px dotted #444;\r\n  padding-left:2pt;\r\n  margin-top: 5pt;\r\n}\r\n\r\n#th_root &gt; li {\r\nborder-bottom: 1px dotted #333;\r\n}\r\n\r\n.th_cnt {\r\n  margin:0;\r\n  padding:0;\r\n  border-bottom: 1px dotted #444;\r\n}\r\n\r\n\r\na.childVector{\r\n  color:#eee;\r\n}\r\n\r\n.th_cnt .bordered {\r\n  margin:0;\r\n  padding: 2px;\r\n  border: 2px solid #6dae42; \r\n  background: #000;\r\n}\r\n\r\n\r\n\r\n.th_header {\r\n  margin:0;\r\n  padding:0.2em;\r\n  background: #333;\r\n}\r\n\r\n.th_header input {\r\n  margin:0;\r\n  padding:0;\r\n  width: 8pt;\r\n  height: 8pt;\r\n  background: #444;   /* len opera */\r\n  border: 1px solid #000;/* len opera */\r\n  color: #000;\r\n  opacity: 0.8;\r\n}\r\n\r\n.th_header input:hover {\r\n  background: #000;\r\n  color: #6dae42;\r\n  border: 1px solid;\r\n  opacity: 1;\r\n}\r\n\r\n.th_header div {\r\n  margin:0;\r\n}\r\n\r\n.th_content {\r\n  margin:0;\r\n  padding:0;\r\n}\r\n\r\n.th_content img {\r\n  max-width: 560px; /* loliik[=  */\r\n}\r\n\r\n/* form ---------------------------------------------------------------- */\r\ninput, button {\r\n	color: white;\r\n	background-color: #000;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\n\r\n\r\n\r\ninput.small {\r\n	color: white;\r\n	background-color: #000;\r\n	width: 50px;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\nline-height:1em;\r\n}\r\n\r\nselect {\r\n	color: white;\r\n	background-color: #000;\r\n	vertical-align: middle;\r\n	border: solid 1px #6DAE42;\r\n	height: 18px;\r\n	font-family: Tahoma, \'Lucida Grande CE\', lucida, sans-serif;\r\n        font-size: 8pt;\r\n}\r\n\r\ntextarea {\r\n	width: 666px;\r\n	height: 123px;\r\n	background-color: #000;\r\n	border: 1px solid #6DAE42;\r\n	color: white;\r\n}\r\n\r\ntextarea.node_content {\r\n	width: 800px;\r\n	height: 666px;\r\n	background-color: #000;\r\n	color: white;\r\n}\r\n\r\ntextarea.small {\r\n	width: 90%;\r\n	height: 42px;\r\n	background-color: #000;\r\n	overflow: hidden;\r\n	font-color: white;\r\n	color: white;\r\n}\r\n\r\n.childVector {\r\n	font-size: 0.8em;\r\n}\r\n\r\n.controls { margin-top:3px;  } \r\n.controls input { margin-right: 2px; }\r\n\r\n.toolbar { margin: 2px 0;}\r\n.toolbar input { margin-right: 2px; }\r\n\r\n.add_put { margin-top: 3px; }\r\n\r\n\r\n/* mejl ---------------------------------------------------------------- */\r\n\r\n#mail_form { margin-bottom:10px }\r\n#mail_form .controls { margin-top:2px; }\r\n.message .header { padding:0.2em }\r\n\r\n\r\n/* friend hilight [zatim len v blogs] ---------------------------------- */\r\n.hilight {\r\n	background-color: #222;\r\n}\r\n.hilight .header {\r\n	background-color: #555;\r\n}\r\n\r\n\r\n/* user panel ---------------------------------------------------------- */\r\n#panel {\r\n	position: absolute;\r\n	top: 0px;\r\n	left: 0px;\r\n	display: none;\r\n	z-index: 23;\r\n	color: #FFF;\r\n	background: #000;\r\n	border: 1px solid #6DAE42;\r\n	padding: 2px;\r\n	margin: 0;\r\n}\r\n#panel .panel_btn {\r\n	border: 0;\r\n	color: #FFF;\r\n	background: transparent;\r\n	margin: 0;\r\n	padding: 1px 0 1px 0;\r\n}\r\n#panel .panel_btn:hover {\r\n	color: #F00;\r\n}\r\n#panel form {\r\n	padding: 0;\r\n	margin: 0;\r\n}\r\n\r\n\r\n\r\n/*************slobo config template*****************/\r\n\r\n\r\nform.sloboconfigure, h1.sloboconfigure, h2.sloboconfigure, h3.sloboconfigure, span.sloboconfigure {\r\nmargin-left: 66px;\r\n}\r\n\r\n\r\nform.sloboconfigure label\r\n{\r\n	display: block;\r\n	width: 150px;\r\n	float: left;\r\n	margin-bottom: 5px;\r\n}\r\n\r\nform.sloboconfigure input, form.sloboconfigure select, form.sloboconfigure textarea\r\n{\r\n	display: block;\r\n	width: 150px;\r\n	float: left;\r\n	margin-bottom: 5px;\r\n      /*  border: 1px solid gray; */\r\n        padding: 0;\r\n        position: static;\r\n        height: 18px;\r\n}\r\n\r\nform.sloboconfigure img\r\n{\r\n	display: block;\r\n	float: left;\r\n	margin-bottom: 5px;\r\n}\r\n\r\nform.sloboconfigure label {\r\n	text-align: right;\r\n	width: 120px;\r\n	padding-right: 20px;\r\n}\r\n\r\nform.sloboconfigure br {\r\n	clear: left;\r\n}\r\n\r\nform.sloboconfigure input[type=\'submit\'] {\r\n  color: black;\r\n  font-size: 0;\r\n  overflow: hidden;\r\n  width:18px;\r\n  position: static;\r\n}\r\n\r\n\r\nform.sloboconfigure input[value=\'configure_content\'] {\r\n  font-size: 1em;\r\n  overflow: visible;\r\n  width:80%;\r\n  color:white;\r\n}\r\n\r\nform.sloboconfigure textarea.small {width:150px; height:18px; position:relative; top:-1px; resize:vertical;}\r\n\r\nform.sloboconfigure textarea.node_content {\r\n	width: 80%;\r\n	height: 666px;\r\n}\r\n\r\n\r\niframe {border: 1px solid #6DAE42 !important;}\r\n\r\n\r\n\r\n\r\n\r\n/* thread -------------------------------------------------------------- */\r\n/* \r\nul.node_children\r\nli.level1 ... li.levelx, li.lvl\r\na.vector\r\ndiv.node_content\r\ndiv.node_header\r\nimg.node_avatar\r\na.node_login\r\ninput.node_chosen\r\nspan.node_header_created\r\nspan.node_header_k\r\nspan.node_header_new\r\nspan.node_header_changed\r\nspan.node_header_sirotka\r\nspan.node_header_descendent\r\nspan.node_header_hardlink\r\ndiv.node_header_title\r\na\r\ndiv.node_body\r\nul\r\n*/\r\n\r\ndiv.node_header_title {text-align:center;}\r\nspan.node_header_title_conf:before {content: \"| \";}\r\n\r\nspan.node_header_k, span.node_header_new, span.node_header_changed, span.node_header_sirotka, span.node_header_descendent {\r\nfont-weight: bold; \r\ncolor: red;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.node_header_hardlink {\r\nfont-weight: bold;\r\ntext-transform: uppercase;\r\n}\r\n\r\nul.node_children {\r\nposition: relative;\r\nmargin:0;\r\npadding:0;\r\nwidth:666px;\r\n}\r\n\r\nli.lvl {\r\nlist-style-type:none;\r\nborder-left: 1px dotted #323232;\r\npadding:0 0 2px 52px; \r\n}\r\n\r\nli.lvl ul {\r\nmargin:0;\r\npadding:0;\r\n}\r\n\r\nli.level1 {\r\nborder-bottom: 1px dotted #323232;\r\n}\r\n\r\na.vector {\r\nposition: absolute;\r\nleft:0;\r\nmargin-top:-1.9em;\r\nfont-size: 0.8em; \r\n}\r\n\r\na.descendants_link {\r\nposition:relative; top:-2em;\r\n}\r\n\r\ndiv.node_content {\r\ndisplay:table;\r\nborder-collapse:collapse;\r\nwidth:100%;\r\nmargin:0.1em 0 2.5em 0; \r\n/*padding: 2px; zadefinovane ako margin pri headry a body*/\r\nborder: 2px solid #6dae42; \r\nbackground: #000;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_header {\r\nmargin:2px; padding:0.2em;\r\nbackground: #333;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_body {\r\nbackground:#000;\r\nmargin:2px;\r\n}\r\n\r\nimg.node_avatar {\r\nposition:absolute;\r\nleft:-57px;\r\ntop:-4px;\r\n}\r\n\r\n/**/\r\n\r\n.node_chosen {\r\nmargin:0 0.6em 0 0.6em;\r\npadding:0;\r\ncolor: black;\r\nheight: 8pt;\r\nwidth: 8pt;\r\nbackground: #444; /* len opera */\r\nborder: 1px solid #000;/* len opera */\r\n}\r\n\r\n\r\nli.ie-only.lvl {\r\nwidth:100%;\r\n}\r\n.ie-only.node_header {\r\nwidth:100%;\r\n}',4489087,1),(4497859,'slobo bookmark_template',4489077,1,'no','private',0,332,'2009-02-08 13:12:36','2010-02-16 23:04:49',0,64,NULL,'2009-02-08 13:12:36',4497859,'2009-02-08 13:59:49','template://4497859','0000010100792011044890870448907704497859','{*header*}{include file=\"1549864.tpl\"}{if $user_id eq false}<center>\r\n{* loginbox *}\r\n{include file=\"1549885.tpl\"}\r\n<br /><br />\r\n{* banner editovat na /id/1662468 *}\r\n{include file=\"1662468.tpl\"}\r\n</center>\r\n{else}\r\n{include file=\"4201234.tpl\"}\r\n<script language=\"javascript\" src=\"/templates/1627946.tpl\"></script>\r\n\r\n<form method=\"post\">\r\n{get_customized_node assign=cust_node}\r\n<a href=\"/id/19/1022346\">customize bookmarks</a>\r\n\r\n {foreach from=$cust_node item=columns name=columns}\r\n  \r\n  {* center: *}\r\n  {if $cust_node.column == 2}\r\n     <td width=\"60%\" valign=\"top\" class=\"books_center\">\r\n       <!-- BANNER PLACE START -->\r\n       <center>\r\n         {* banner editovat na /id/1662468 *}{include file=\"1662468.tpl\"}\r\n       </center>\r\n       <!-- BANNER PLACE END -->\r\n       {foreach from=$columns item=module}\r\n        {include file=$module.module_file}\r\n       {/foreach}\r\n     </td>\r\n  {/if}\r\n  \r\n  {* right: *}\r\n  {if $cust_node.column == 1}\r\n     <td width=\"20%\" valign=\"top\" class=\"books_center\">\r\n       {foreach from=$columns item=module}\r\n        {include file=$module.module_file}\r\n       {/foreach}\r\n     </td>\r\n  {/if}    \r\n  \r\n  {* left *}\r\n  {if $cust_node.column == 3}\r\n     <td width=\"20%\" valign=\"top\" class=\"books_center\">\r\n       {foreach from=$columns item=module}\r\n        {include file=$module.module_file}\r\n       {/foreach}\r\n     </td>\r\n  {/if}\r\n  \r\n \r\n {foreachelse}\r\n  <td width=\"20%\" valign=\"top\">\r\n  \r\n     {* get_userlist *}{include file=\"1549848.tpl\"}\r\n  \r\n  </td> \r\n   <td valign=\"top\">\r\n    \r\n     <!-- BANNER PLACE START -->\r\n     <center>\r\n       {* banner editovat na /id/1662468 *}{include file=\"1662468.tpl\"}\r\n     </center>\r\n     <!-- BANNER PLACE END -->\r\n     \r\n     {* bookmarks default *}{include file=\"3820035.tpl\"}\r\n    \r\n   </td>\r\n   {/foreach}\r\n  </tr>\r\n  </table>\r\n  </form>\r\n  {/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',4489087,0),(4497996,'slobo bookmark_template2',4489077,1,'no','private',0,332,'2009-02-08 14:11:03','2010-02-16 23:04:49',0,11,NULL,'2009-02-08 14:11:03',4497996,'2009-02-08 14:11:35','template://4497996','0000010100792011044890870448907704497996','{*header*}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false}\r\n<center>\r\n    {* loginbox *}{include file=\"1549885.tpl\"}\r\n    <br /><br />\r\n    {* banner editovat na /id/1662468 *}{include file=\"1662468.tpl\"}\r\n</center>\r\n\r\n{else}\r\n{include file=\"4201234.tpl\"}\r\n<script language=\"javascript\" src=\"/templates/1627946.tpl\"></script>\r\n\r\n<form method=\"post\">\r\n{get_customized_node assign=cust_node}\r\n<a href=\"/id/19/1022346\">customize bookmarks</a>\r\n<table width=\"100%\">\r\n    <tr>\r\n    {foreach from=$cust_node item=columns name=columns}\r\n        {if $columns[0].column % 2 == 0}\r\n            <td width=\"{math equation=\"100 - 20 * x\" x=$smarty.foreach.columns.total}%\"\r\nvalign=\"top\" class=\"books_center\">\r\n            <!-- BANNER PLACE START -->\r\n            <center>\r\n                {* banner editovat na /id/1662468 *}{include file=\"1662468.tpl\"}\r\n            </center>\r\n            <!-- BANNER PLACE END -->\r\n        {else}\r\n            <td width=\"15%\" valign=\"top\" class=\"books_left\">\r\n        {/if}\r\n        {foreach from=$columns item=module}\r\n            {include file=$module.module_file}\r\n        {/foreach}\r\n        </td>\r\n    {foreachelse}\r\n        <td width=\"20%\" valign=\"top\">\r\n            {include file=\"1549848.tpl\"}\r\n        </td>\r\n        <td valign=\"top\">\r\n            <!-- BANNER PLACE START -->\r\n            <center>\r\n                {* banner editovat na /id/1662468 *}{include file=\"1662468.tpl\"}\r\n            </center>\r\n            <!-- BANNER PLACE END -->\r\n            {include file=\"3820035.tpl\"}\r\n        </td>\r\n    {/foreach}\r\n    </tr>\r\n</table>\r\n</form>\r\n{/if}\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',4489087,1),(4559292,'tst structure',1440515,1,'no','private',1,332,'2009-03-05 22:17:47','2010-02-16 23:04:49',0,281,NULL,'2009-03-06 01:23:24',14,'2009-03-06 13:47:22','template://4559292','01549689011914270144051504559292','<ul class=\'node_children\'>\r\n{if $template_event eq \'filter_by\'} \r\n{get_threaded_children_structured listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type link=\'yes\' ordearby=$listing_order search=$post_vars.node_content} \r\n{else} {get_threaded_children_structured link=\'yes\' thread_depth=2 listing_amount=$listing_amount offset=$offset ordearby=$listing_order} {/if} \r\n\r\n{section name=child loop=$get_threaded_children_structured}\r\n{if $get_threaded_children_structured[child].template_id neq 1549834} \r\n\r\n{*depth in hierarchy*}\r\n{if $template_event eq \'filter_by\'}\r\n  {math equation=\"(x-y)\" x=$get_threaded_children_structured[child].child_depth y=$get_threaded_children_structured[child].child_depth_prev assign=\"p_depth\"}\r\n{else}\r\n  {math equation=\"(x-y)-1\" x=$get_threaded_children_structured[child].child_depth y=$get_threaded_children_structured[child].child_depth_prev assign=\"p_depth\"}\r\n{/if}\r\n{assign var=$child_creator value=$get_threaded_children_structured[child].node_creator}\r\n\r\n{*obsah childu*}\r\n{capture name=child_container}\r\n{*IGNORE USER CONDITION*}{if $ignore[$child_creator] neq true}\r\n<!-- obsah child prispevku||nody  -->\r\n  <div class=\'sub-content\'>\r\n    <div class=\'sub-header\'>\r\n      {* put.Ty hack *}\r\n      {if $get_threaded_children_structured[child].synapse_creator neq \'\'}\r\n      <img src=\'{get_image_link id=$get_threaded_children_structured[child].synapse_creator}\' alt=\'SYNAPSE CREATOR\' class=\'avatar\'/>\r\n      {else}\r\n      <img src=\'{get_image_link id=$get_threaded_children_structured[child].node_creator}\' alt=\'{$get_threaded_children_structured[child].login}\' onclick=\"km();sm(\'{$get_threaded_children_structured[child].login|escape:\"html\"}\',\'{$get_threaded_children_structured[child].node_creator}\',\'{$node.node_id}\')\" class=\'avatar\'/>\r\n      {/if}\r\n      {*end of put.Ty hack *}\r\n    \r\n      <a href=\'/id/{$get_threaded_children_structured[child].node_creator}\' class=\'childLogin\'>{$get_threaded_children_structured[child].login}</a>\r\n      <input type=\'checkbox\' value=\'{$get_threaded_children_structured[child].node_id}\' name=\'node_chosen[]\' />\r\n      {$get_threaded_children_structured[child].node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}\r\n      {if $get_threaded_children_structured[child].k > 0} [<span class=\'most_important\'>{$get_threaded_children_structured[child].k}K</span>] {/if}\r\n      {if $get_threaded_children_structured[child].node_created > $node.last_visit and !$get_threaded_children_structured[child].orphan}<span class=\'most_important\'>NEW</span> \r\n      {elseif $get_threaded_children_structured[child].node_created > $node.last_visit} <span class=\'most_important\'>SIRôTKA</span>{/if}\r\n      {if $get_threaded_children_structured[child].node_status eq \'linked\'} <span class=\'important\'>HARDLINK</span>{/if}\r\n      {if $get_threaded_children_structured[child].node_updated > $node.last_visit}<span class=\'most_important\'>!!CONTENT CHANGED!!</span>{/if}\r\n      {if $bookmarks.last_visit eq true and $get_threaded_children_structured[child].lastdescendant_created > $bookmarks.last_visit}<span class=\'most_important\'>!!NEW DESCENDANT!!</span>{/if}\r\n      <div class=\'sub-title\'>\r\n        {if $get_threaded_children_structured[child].node_name eq \'\'}<a href=\'/id/{$get_threaded_children_structured[child].node_id}\'>enter node {$get_threaded_children_structured[child].node_id}</a>\r\n        {else}<a href=\'/id/{$get_threaded_children_structured[child].node_id}\'>{$get_threaded_children_structured[child].node_name|stripslashes|strip_tags}</a>{/if}\r\n        {if $get_threaded_children_structured[child].node_creator eq $user_id || $get_threaded_children_structured[child].node_permission eq \'master\'}| <a href=\'/id/{$get_threaded_children_structured[child].node_id}/1961033\'>conf</a>{/if}\r\n      </div>\r\n    </div>\r\n    <div class=\'sub-body\'>\r\n    {if $permissions.r}\r\n      {if $get_threaded_children_structured[child].nl2br == 1}\r\n        {$get_threaded_children_structured[child].node_content|stripslashes|nl2br|replaceLocalURLs}\r\n      {else}\r\n        {$get_threaded_children_structured[child].node_content|stripslashes|replaceLocalURLs}\r\n      {/if}\r\n    {else}you don\'t have permissions for viewing this data node{/if}        \r\n    </div>\r\n  </div>\r\n{/if}{*IGNORE USER CONDITION end*}\r\n{/capture} \r\n\r\n\r\n{*stromcek prestri sa*}\r\n{if $smarty.section.child.first && $node.child_starter < $get_threaded_children_structured[child].child_depth}\r\n{section name=sta loop=$get_threaded_children_structured[child].ph_depth}\r\n<li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n{/if}\r\n{if $get_threaded_children_structured[child].node_parent neq $node.node_id && $get_threaded_children_structured[child].node_status neq \'linked\' && $get_threaded_children_structured[child].node_parent neq $get_threaded_children_structured[child.index_prev].node_id && $get_threaded_children_structured[child].child_depth_prev < $get_threaded_children_structured[child].child_depth} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $get_threaded_children_structured[child].node_parent neq $node.node_id && $get_threaded_children_structured[child.index_prev].node_status neq \'linked\' && $get_threaded_children_structured[child].node_parent neq $get_threaded_children_structured[child.index_prev].node_id && $get_threaded_children_structured[child].child_depth_prev < $get_threaded_children_structured[child].child_depth} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev && $get_threaded_children_structured[child].node_parent neq $node.node_id && $get_threaded_children_structured[child].node_status neq \'linked\'}\r\n{section name=sta loop=$get_threaded_children_structured[child].ph_depth}\r\n<li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev && $get_threaded_children_structured[child].node_parent neq $node.node_id && $get_threaded_children_structured[child.index_prev].node_status neq \'linked\'} \r\n{section name=sta loop=$get_threaded_children_structured[child].ph_depth}\r\n<li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n{/if}\r\n  <li id=\'sub{$get_threaded_children_structured[child].node_id}\' class=\'level{$get_threaded_children_structured[child].child_depth}\'>\r\n    <a href=\'/id/{$get_threaded_children_structured[child].node_parent}\' class=\'vector\'>{$get_threaded_children_structured[child].node_vector}</a>\r\n    {$smarty.capture.child_container} {*obsah*}\r\n    \r\n{if $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth && $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_prev && $get_threaded_children_structured[child].node_parent neq $node.node_id}\r\n{section name=con loop=$get_threaded_children_structured[child].c_depth}\r\n  <li class=\'level{$get_threaded_children_structured[child].child_depth}\' title=\'virtual\'><ul>\r\n{/section}\r\n\r\n{elseif $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth && $get_threaded_children_structured[child].thread_root eq $get_threaded_children_structured[child].thread_root_next && $get_threaded_children_structured[child.index_next].node_status neq \'linked\'}<ul>\r\n    {elseif $get_threaded_children_structured[child].child_depth_next > $get_threaded_children_structured[child].child_depth && $get_threaded_children_structured[child.index_next].node_status eq \'linked\'} <ul>{else}{if $get_threaded_children_structured[child].node_children_count}<a href=\'/id/{$get_threaded_children_structured[child].node_id}\'>{$get_threaded_children_structured[child].node_children_count} more descendats</a>{/if}\r\n\r\n   </li>\r\n{/if}{if $get_threaded_children_structured[child].child_depth_next < $get_threaded_children_structured[child].child_depth || $get_threaded_children_structured[child].thread_root neq $get_threaded_children_structured[child].thread_root_next || $smarty.section.child.last}\r\n{section name=fin loop=$get_threaded_children_structured[child].hierarchy_depth}{if $get_threaded_children_structured[child].node_children_count}<a href=\'/id/{$get_threaded_children_structured[child].node_id}\'>{$get_threaded_children_structured[child].node_children_count} more descendats</a>{/if}\r\n   </ul></li>\r\n{/section}{/if}\r\n{/if}{/section}\r\n</ul>\r\n',1440515,1),(4559651,'tst old',4559292,1,'no','private',0,332,'2009-03-06 01:23:24','2010-02-16 23:04:49',0,18,NULL,'2009-03-06 01:23:24',14,'2009-03-06 01:29:05','template://4559651','0154968901191427014405150455929204559651','{math equation=\"x/8\" x=$node.vector_depth assign=\"crd\"} \r\n{*// hlbka vektora - kolkata je to noda vo vektore// crd = node_depth *} \r\n<ul class=\'node_children\'>\r\n{if $template_event eq \'filter_by\'} \r\n{get_threaded_children listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type link=\'yes\' ordearby=$listing_order search=$post_vars.node_content} \r\n{else} {get_threaded_children link=\'yes\' listing_amount=100 offset=0 ordearby=$listing_order} {/if} \r\n\r\n{section name=child loop=$get_threaded_children}\r\n{if $get_threaded_children[child].template_id neq 1549834} \r\n{*position in tree*} \r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child].depth y=$crd assign=\"hierarch\"} \r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_prev].depth y=$crd assign=\"prev_depth\"} \r\n{math equation=\"(x/8)-y\" x=$get_threaded_children[child.index_next].depth y=$crd assign=\"next_depth\"} \r\n\r\n{*depth in hierarchy*} \r\n{if $smarty.section.child.last}\r\n  {math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}\r\n{else}\r\n  {math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"}\r\n{/if} \r\n\r\n{*root_id decka*} \r\n{str_split string=$get_threaded_children[child].node_vector name=hroot length=8} \r\n{eval var=$str_split.hroot.$crd assign=\"h_root\"} \r\n{str_split string=$get_threaded_children[child.index_prev].node_vector name=proot length=8} \r\n{eval var=$str_split.proot.$crd assign=\"p_root\"} \r\n{str_split string=$get_threaded_children[child.index_next].node_vector name=nroot length=8} \r\n{eval var=$str_split.nroot.$crd assign=\"n_root\"} \r\n\r\n{*depth in hierarchy*}\r\n{if $template_event eq \'filter_by\'}\r\n  {math equation=\"(x-y)\" x=$hierarch y=$prev_depth assign=\"p_depth\"}\r\n{else}\r\n  {math equation=\"(x-y)-1\" x=$hierarch y=$prev_depth assign=\"p_depth\"}\r\n{/if}\r\n{*(x-y)-1*} \r\n{math equation=\"x-1\" x=$hierarch assign=\"ph_depth\"} \r\n{math equation=\"x-y\" x=$next_depth y=$hierarch assign=\"c_depth\"} \r\n{if $smarty.section.child.last} \r\n  {math equation=\"x-1\" x=$hierarch assign=\"h_depth\"} \r\n{elseif $h_root neq $n_root && $get_threaded_children[child].node_status neq \'linked\'} \r\n  {math equation=\"x-1\" x=$hierarch assign=\"h_depth\"}\r\n{elseif $h_root neq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'} \r\n  {math equation=\"x-1\" x=$hierarch assign=\"h_depth\"} \r\n{else} \r\n  {math equation=\"x-y\" x=$hierarch y=$next_depth assign=\"h_depth\"} \r\n{/if} \r\n{math equation=\"x+1\" x=$crd assign=\"starter\"} \r\n{assign var=$child_creator value=$get_threaded_children[child].node_creator}\r\n\r\n{*obsah childu*}\r\n{capture name=child_container}\r\n{*IGNORE USER CONDITION*}{if $ignore[$child_creator] neq true}\r\n<!-- obsah child prispevku||nody  -->\r\n  <div class=\'sub-content\'>\r\n    <div class=\'sub-header\'>\r\n      {* put.Ty hack *}\r\n      {if $get_threaded_children[child].synapse_creator neq \'\'}\r\n      <img src=\'{get_image_link id=$get_threaded_children[child].synapse_creator}\' alt=\'SYNAPSE CREATOR\' class=\'avatar\'/>\r\n      {else}\r\n      <img src=\'{get_image_link id=$get_threaded_children[child].node_creator}\' alt=\'{$get_threaded_children[child].login}\' onclick=\"km();sm(\'{$get_threaded_children[child].login|escape:\"html\"}\',\'{$get_threaded_children[child].node_creator}\',\'{$node.node_id}\')\" class=\'avatar\'/>\r\n      {/if}\r\n      {*end of put.Ty hack *}\r\n    \r\n      <a href=\'/id/{$get_threaded_children[child].node_creator}\' class=\'childLogin\'>{$get_threaded_children[child].login}</a>\r\n      <input type=\'checkbox\' value=\'{$get_threaded_children[child].node_id}\' name=\'node_chosen[]\' />\r\n      {$get_threaded_children[child].node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}\r\n      {if $get_threaded_children[child].k > 0} [<span class=\'most_important\'>{$get_threaded_children[child].k}K</span>] {/if}\r\n      {if $get_threaded_children[child].node_created > $node.last_visit and !$get_threaded_children[child].orphan}<span class=\'most_important\'>NEW</span> \r\n      {elseif $get_threaded_children[child].node_created > $node.last_visit} <span class=\'most_important\'>SIRôTKA</span>{/if}\r\n      {if $get_threaded_children[child].node_status eq \'linked\'} <span class=\'important\'>HARDLINK</span>{/if}\r\n      {if $get_threaded_children[child].node_updated > $node.last_visit}<span class=\'most_important\'>!!CONTENT CHANGED!!</span>{/if}\r\n      {if $bookmarks.last_visit eq true and $get_threaded_children[child].lastdescendant_created > $bookmarks.last_visit}<span class=\'most_important\'>!!NEW DESCENDANT!!</span>{/if}\r\n      <div class=\'sub-title\'>\r\n        {if $get_threaded_children[child].node_name eq \'\'}<a href=\'/id/{$child.node_id}\'>enter node {$get_threaded_children[child].node_id}</a>\r\n        {else}<a href=\'/id/{$child.node_id}\'>{$get_threaded_children[child].node_name|stripslashes|strip_tags}</a>{/if}\r\n        {if $get_threaded_children[child].node_creator eq $user_id || $get_threaded_children[child].node_permission eq \'master\'}| <a href=\'/id/{$child.node_id}/1961033\'>conf</a>{/if}\r\n      </div>\r\n    </div>\r\n    <div class=\'sub-body\'>\r\n    {if $permissions.r}\r\n      {if $get_threaded_children[child].nl2br == 1}\r\n        {$get_threaded_children[child].node_content|stripslashes|nl2br|replaceLocalURLs}\r\n      {else}\r\n        {$get_threaded_children[child].node_content|stripslashes|replaceLocalURLs}\r\n      {/if}\r\n    {else}you don\'t have permissions for viewing this data node{/if}        \r\n    </div>\r\n  </div>\r\n{/if}{*IGNORE USER CONDITION end*}\r\n{/capture} \r\n\r\n\r\n{*stromcek prestri sa*}\r\n{if $smarty.section.child.first && $sterter < $hierarch}\r\n{section name=sta loop=$ph_depth}\r\n<li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n{/if}\r\n{if $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\' && $get_threaded_children[child].node_parent neq $get_threaded_children[child.index_prev].node_id && $prev_depth < $hierarch} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child].node_status neq \'linked\'}\r\n{section name=sta loop=$ph_depth}\r\n<li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id && $get_threaded_children[child.index_prev].node_status neq \'linked\'} \r\n{section name=sta loop=$hp_depth}\r\n<li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n{/if}\r\n  <li id=\'sub{$get_threaded_children[child].node_id}\' class=\'level{$hierarch}\'>\r\n    <a href=\'/id/{$get_threaded_children[child].node_parent}\' class=\'vector\'>{$get_threaded_children[child].node_vector}</a>\r\n    {$smarty.capture.child_container} {*obsah*}\r\n    \r\n{if $next_depth > $hierarch && $h_root neq $p_root && $get_threaded_children[child].node_parent neq $node.node_id}\r\n{section name=con loop=$c_depth}\r\n  <li class=\'level{$hierarch}\' title=\'virtual\'><ul>\r\n{/section}\r\n\r\n{elseif $next_depth > $hierarch && $h_root eq $n_root && $get_threaded_children[child.index_next].node_status neq \'linked\'}<ul>\r\n    {elseif $next_depth > $hierarch && $get_threaded_children[child.index_next].node_status eq \'linked\'} <ul>{else}\r\n   </li>\r\n{/if}{if $next_depth < $hierarch || $h_root neq $n_root || $smarty.section.child.last}\r\n{section name=fin loop=$h_depth}\r\n  </ul></li>\r\n{/section}{/if}\r\n{/if}{/section}\r\n</ul>',1440515,1),(4560773,'get_threaded_children_structured',1548898,1,'no','private',0,332,'2009-03-06 13:53:17','2010-02-16 23:04:49',1,329,NULL,'2009-03-06 13:53:17',14,'2009-11-26 20:09:10','template://4560773','00000101010598780154889804560773','<ul class=\'node_children\' {if $template_event eq \'filter_by\'}id=\'filtered_children\'{/if}>\r\n{if $template_event eq \'preview\'}\r\n<div class=\'node_content\'>\r\n  <div class=\'node_header\'>\r\n    <img\r\n    src=\'{get_image_link id=$user_id}\'\r\n    alt=\'\'\r\n    class=\'node_avatar\'\r\n    /> \r\n    <div class=\'node_header_title\'>  \r\n      PREVIEW of {$post_vars.node_name}\r\n    </div>\r\n    \r\n  </div>\r\n    \r\n  <div class=\'node_body\'>\r\n      {$post_vars.node_content|preview}      \r\n   </div>   \r\n</div>\r\n{* end of preview *}\r\n{elseif $template_event eq \'filter_by\'} \r\n{get_threaded_children_structured listing_amount=23232322323 offset=$offset search_type=$post_vars.search_type link=\'yes\' ordearby=$listing_order search=$post_vars.node_content} \r\n{elseif $post_vars.thread_depth neq false} {if $node.node_user_subchild_count eq true}\r\n{get_threaded_children_structured link=\'yes\' listing_amount=200 time=$node.last_visit thread_depth=$post_vars.thread_depth offset=0 ordearby=$listing_order} {else} {get_threaded_children_structured link=\'yes\' listing_amount=$listing_amount thread_depth=$post_vars.thread_depth offset=$offset ordearby=$listing_order} {/if} {else} {if $node.node_user_subchild_count eq true} {get_threaded_children_structured link=\'yes\' listing_amount=200 time=$node.last_visit offset=0 ordearby=$listing_order} {else} {get_threaded_children_structured link=\'yes\' listing_amount=$listing_amount offset=$offset ordearby=$listing_order} {/if} {/if} \r\n\r\n{assign var=\'children\' value=$get_threaded_children_structured}\r\n{section name=child loop=$get_threaded_children_structured}\r\n{if $get_threaded_children_structured[child].template_id neq 1549834 and $child.external_link neq \"session://fook\"} \r\n\r\n{*depth in hierarchy*}\r\n{if $template_event eq \'filter_by\'}\r\n  {math equation=\"(x-y)\" x=$children[child].child_depth y=$children[child].child_depth_prev assign=\"p_depth\"}\r\n{else}\r\n  {math equation=\"(x-y)\" x=$children[child].child_depth y=$children[child].child_depth_prev assign=\"p_depth\"} {*(x-y)-1*}\r\n{/if}\r\n{assign var=child_creator value=$children[child].node_creator}\r\n\r\n{*obsah childu*}\r\n{capture name=child_container}\r\n{*child container*}{include file=\"4560781.tpl\"}\r\n{/capture} \r\n\r\n\r\n{*stromcek prestri sa*}\r\n{if $smarty.section.child.first && $node.child_starter < $children[child].child_depth}\r\n{section name=sta loop=$children[child].ph_depth}\r\n<li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $children[child].node_parent neq $node.node_id && $children[child].node_status neq \'linked\' && $children[child].node_parent neq $children[child.index_prev].node_id && $children[child].child_depth_prev < $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'virtual lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $children[child].node_parent neq $node.node_id && $children[child.index_prev].node_status neq \'linked\' && $children[child].node_parent neq $children[child.index_prev].node_id && $children[child].child_depth_prev < $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev} \r\n{section name=sta loop=$p_depth}\r\n<li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child].node_status neq \'linked\'}\r\n{section name=sta loop=$children[child].ph_depth}\r\n<li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n{elseif $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child.index_prev].node_status neq \'linked\'} \r\n{section name=sta loop=$children[child].ph_depth}\r\n<li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n{/if}\r\n  <li {if $children[child].node_status neq \'linked\'}id=\'sub{$children[child].node_id}\'{/if} class=\'level{$children[child].child_depth} lvl{if $children[child].node_status eq \'linked\'} lvl_link{/if}\'>{*IGNORE USER CONDITION*}{if $ignore[$child_creator] neq true}\r\n    <a href=\'#\' class=\'actionToggleThread\' style=\'display:none\' title=\'close this thread\'>-</a>\r\n    <a href=\'/id/{$children[child].node_parent}\' class=\'vector\'>{$children[child].node_vector}</a>\r\n    {$smarty.capture.child_container} {*obsah*}{/if}{*IGNORE USER CONDITION end*}\r\n    \r\n{if $children[child].child_depth_next > $children[child].child_depth && $children[child].thread_root neq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id}\r\n{section name=con loop=$children[child].c_depth}\r\n  <li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n\r\n{elseif $children[child].child_depth_next > $children[child].child_depth && $children[child].thread_root eq $children[child].thread_root_prev && $children[child].node_parent neq $node.node_id && $children[child.index_next].node_parent neq $children[child].node_id}\r\n{section name=con loop=$children[child].c_depth}\r\n  <li class=\'level{$children[child].child_depth} lvl\' title=\'virtual\'><ul>\r\n{/section}\r\n\r\n{elseif $children[child].child_depth_next > $children[child].child_depth && $children[child].thread_root eq $children[child].thread_root_next && $children[child.index_next].node_status neq \'linked\'}<ul>\r\n    {elseif $children[child].child_depth_next > $children[child].child_depth && $children[child.index_next].node_status eq \'linked\'} <ul>{else}{if $children[child].node_children_count}<a href=\'/id/{$children[child].node_id}\' class=\'descendants_link\'> more children: ({$children[child].node_children_count})</a>{/if}\r\n\r\n   </li>\r\n{/if}{if $children[child].child_depth_next < $children[child].child_depth || $children[child].thread_root neq $children[child].thread_root_next || $smarty.section.child.last}\r\n{section name=fin loop=$children[child].hierarchy_depth}\r\n   </ul></li>\r\n{/section}{/if}\r\n{/if}{/section}\r\n</ul>\r\n<table align=\'center\' class=\'movement\'><tr> <td><input type=\'hidden\' name=\'get_children_offset\' value=\'{$offset}\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'<\' class=\'fw\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'<<\' class=\'ffw\'></td> <td><input name=\'get_children_move\' type=\'submit\' value=\'>>\' class=\'bw\'></td> <td><input type=\'submit\' name=\'get_children_move\' value=\'>\' lass=\'bbw\'></td> </tr></table> ',1548898,1),(4560781,'child_container',1548898,1,'no','private',1,332,'2009-03-06 13:54:39','2010-02-16 23:04:49',0,272,NULL,'2009-03-06 15:48:34',14,'2009-11-03 16:36:25','template://4560781','00000101010598780154889804560781','<!-- obsah child prispevku||nody  -->\r\n<div class=\'node_content\'>\r\n  <div class=\'node_header\'>\r\n    {*AVATAR put.Ty hack na *}\r\n    {if $get_threaded_children_structured[child].synapse_creator neq \'\'}\r\n    <img\r\n    src=\'{get_image_link id=$get_threaded_children_structured[child].synapse_creator}\'\r\n    alt=\'Synapse creator\'\r\n    class=\'node_avatar\'\r\n    />\r\n    {else}\r\n    <img\r\n    src=\'{get_image_link id=$get_threaded_children_structured[child].node_creator}\'\r\n    alt=\'{$get_threaded_children_structured[child].login}\'\r\n    class=\'node_avatar\'\r\n    onclick=\"km();sm(\'{$get_threaded_children_structured[child].login|escape:\"html\"}\',\'{$get_threaded_children_structured[child].node_creator}\',\'{$node.node_id}\')\"\r\n    />\r\n    {/if}\r\n    {*AVATAR end of put.Ty hack *}\r\n      \r\n    <a href=\'/id/{$get_threaded_children_structured[child].node_creator}\' class=\'node_login\'>\r\n    {$get_threaded_children_structured[child].login}\r\n    </a>\r\n  \r\n    <input type=\'checkbox\' value=\'{$get_threaded_children_structured[child].node_id}\' name=\'node_chosen[]\' class=\'node_chosen\' />\r\n      \r\n    <span class=\'node_header_created\'>\r\n    {$get_threaded_children_structured[child].node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}\r\n    </span>\r\n    \r\n    {if $get_threaded_children_structured[child].node_updated} \r\n    <span class=\'node_header_modified\'>\r\n      (modif: {$get_threaded_children_structured[child].node_updated|date_format:\"%d.%m.%Y - %H:%M:%S\"})\r\n    </span>\r\n    {/if}\r\n    \r\n    <span class=\'node_header_level\'>\r\n       level: {$get_threaded_children_structured[child].child_depth}\r\n    </span>\r\n    <a href=\'/id/{$get_threaded_children_structured[child].node_parent}\' class=\'childVector\' title=\'Link na parenta, {$get_threaded_children_structured[child].node_parent}\' alt=\'Link na parenta, {$get_threaded_children_structured[child].node_parent}\'>UP</a> \r\n     \r\n    {if $get_threaded_children_structured[child].k > 0}\r\n    [<span class=\'node_header_k\'>{$get_threaded_children_structured[child].k}K</span>]\r\n    {/if}\r\n    \r\n    {if $get_threaded_children_structured[child].node_created > $node.last_visit and !$get_threaded_children_structured[child].orphan}\r\n    <span class=\'node_header_new\'>New</span>\r\n    \r\n    {elseif $get_threaded_children_structured[child].node_created > $node.last_visit}\r\n    <span class=\'node_header_sirotka\'>Sirôtka</span>\r\n    {/if}\r\n    \r\n    {if $get_threaded_children_structured[child].node_status eq \'linked\'}\r\n    <span class=\'node_header_hardlink\'>Hardlink</span>\r\n    {/if}\r\n    \r\n    {if $get_threaded_children_structured[child].node_updated > $node.last_visit}\r\n    <span class=\'node_header_changed\'>Content changed</span>\r\n    {/if}\r\n    \r\n    {if $bookmarks.last_visit eq true and $get_threaded_children_structured[child].lastdescendant_created > $bookmarks.last_visit}\r\n    <span class=\'node_header_descendent\'>New descendant</span>\r\n    {/if}\r\n    \r\n    <div class=\'node_header_title\'>  \r\n      {if $get_threaded_children_structured[child].node_name eq \'\'}\r\n      <a href=\'/id/{$get_threaded_children_structured[child].node_id}\' class=\'node_header_title_nodename\'>\r\n      Enter node: {$get_threaded_children_structured[child].node_id}\r\n      </a>\r\n      {else}\r\n      <a href=\'/id/{$get_threaded_children_structured[child].node_id}\' class=\'node_header_title_nodename\'>\r\n      {$get_threaded_children_structured[child].node_name|stripslashes|strip_tags}\r\n      </a>\r\n      {/if}\r\n      \r\n      {if $get_threaded_children_structured[child].node_creator eq $user_id || $get_threaded_children_structured[child].node_permission eq \'master\'}\r\n      <span class=\'node_header_title_conf\'><a href=\'/id/{$get_threaded_children_structured[child].node_id}/1961033\'>conf</a></span>{/if}\r\n    </div>\r\n    \r\n  </div>\r\n    \r\n  <div class=\'node_body\'>\r\n    {if $permissions.r}\r\n      {if $get_threaded_children_structured[child].nl2br == 1}\r\n        {$get_threaded_children_structured[child].node_content|stripslashes|nl2br|replaceLocalURLs}\r\n      {else}\r\n        {$get_threaded_children_structured[child].node_content|stripslashes|replaceLocalURLs}\r\n      {/if}\r\n    {else}you don\'t have permissions for viewing this data node{/if}        \r\n   </div>   \r\n</div>',1548898,1),(4563393,'node',1432202,1,'yes','private',0,332,'2009-03-07 18:24:14','2010-02-16 23:04:49',0,9,NULL,'2009-03-07 18:24:14',14,'2009-03-07 18:25:05','template://4563393','01549689015596350143220204563393','{get_movement_params children_count=$node.node_children_count}\r\n{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false} \r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> \r\n{/if} \r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column--> \r\n<td valign=\'top\' align=\'center\' width=\'23%\'> \r\n{* node_settings *} {include file=\"1549925.tpl\"} \r\n{* get_poll_box *} {include file=\"1549834.tpl\"} <br> \r\n{*get_bookmark_statistics_box*} {include file=\"1549386.tpl\"} \r\n</td> \r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td width=66% valign=\'top\'>\r\n{*node_content*} {include file=\"1549916.tpl\"}\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\r\n{if $action neq false}{$action}{/if}\' method=\'post\' name=\'formular\'>\r\n\r\n{if $permissions.w eq true}{include file=\"1548927.tpl\"}{else}{* read-only *}{include file=\"2264143.tpl\"}{/if}\r\n{include file=\"4560773.tpl\"}\r\n</form>\r\n<!--end of central column-->\r\n\r\n</td></tr></table>\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',1432202,1),(4565081,'submission (4)',4565078,1,'no','private',0,332,'2009-03-08 17:13:25','2010-02-16 23:04:49',0,115,NULL,'2009-03-08 17:13:25',4,'2009-03-16 14:15:51','template://4565081','000001010079201104489087044890770456507804565081','{literal}\r\n<style>\r\n/* thread -------------------------------------------------------------- */\r\n/* \r\nul.node_children\r\nli.level1 ... li.levelx, li.lvl\r\na.vector\r\ndiv.node_content\r\ndiv.node_header\r\nimg.node_avatar\r\na.node_login\r\ninput.node_chosen\r\nspan.node_header_created\r\nspan.node_header_k\r\nspan.node_header_new\r\nspan.node_header_changed\r\nspan.node_header_sirotka\r\nspan.node_header_descendent\r\nspan.node_header_hardlink\r\ndiv.node_header_title\r\na\r\ndiv.node_body\r\nul\r\n*/\r\n\r\ndiv.node_header_title {text-align:center;}\r\nspan.node_header_title_conf:before {content: \"| \";}\r\n\r\nspan.node_header_k, span.node_header_new, span.node_header_changed, span.node_header_sirotka, span.node_header_descendent {\r\nfont-weight: bold; \r\ncolor: red;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.node_header_hardlink {\r\nfont-weight: bold;\r\ntext-transform: uppercase;\r\n}\r\n\r\nul.node_children {\r\nposition: relative;\r\nmargin:0;\r\npadding:0;\r\nwidth:666px;\r\n}\r\n\r\nli.lvl {\r\nlist-style-type:none;\r\nborder-left: 1px dotted #323232;\r\npadding:0 0 2px 52px; \r\n}\r\n\r\nli.lvl ul {\r\nmargin:0;\r\npadding:0;\r\n}\r\n\r\nli.level1 {\r\nborder-bottom: 1px dotted #323232;\r\n}\r\n\r\na.vector {\r\nposition: absolute;\r\nleft:0;\r\nmargin-top:-1.9em;\r\nfont-size: 0.8em; \r\n}\r\n\r\na.descendants_link {\r\nposition:relative; top:-2em;\r\n}\r\n\r\ndiv.node_content {\r\ndisplay:table;\r\nborder-collapse:collapse;\r\nwidth:100%;\r\nmargin:0.1em 0 2.5em 0; \r\n/*padding: 2px; zadefinovane ako margin pri headry a body*/\r\nborder: 2px solid #6dae42; \r\nbackground: #000;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_header {\r\nmargin:2px; padding:0.2em;\r\nbackground: #333;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_body {\r\nbackground:#000;\r\nmargin:2px;\r\n}\r\n\r\nimg.node_avatar {\r\nposition:absolute;\r\nleft:-57px;\r\ntop:-4px;\r\n}\r\n\r\n/**/\r\n\r\n.node_chosen {\r\nmargin:0 0.6em 0 0.6em;\r\npadding:0;\r\ncolor: black;\r\nheight: 8pt;\r\nwidth: 8pt;\r\nbackground: #444; /* len opera */\r\nborder: 1px solid #000;/* len opera */\r\n}\r\n\r\n\r\nli.ie-only.lvl {\r\nwidth:100%;\r\n}\r\n.ie-only.node_header {\r\nwidth:100%;\r\n}\r\n</style>\r\n{/literal}\r\n\r\n{if $user_id eq false} \r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br> \r\n{/if} \r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column--> \r\n<td valign=\'top\' align=\'center\' width=\'23%\'> \r\n{* node_settings *} {include file=\"4581137.tpl\"} \r\n{* get_poll_box *} {include file=\"1549834.tpl\"} <br> \r\n{*get_bookmark_statistics_box*} {include file=\"1549386.tpl\"} \r\n</td> \r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td width=66% valign=\'top\'>\r\n{*node_content*} {include file=\"1549916.tpl\"}\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/\r\n{if $action neq false}{$action}{/if}\' method=\'post\' name=\'formular\'>\r\n\r\n{if $permissions.w eq true}{include file=\"1548927.tpl\"}{else}{* read-only *}{include\r\nfile=\"2264143.tpl\"}{/if}\r\n{include file=\"4560773.tpl\"}\r\n</form>\r\n<!--end of central column-->\r\n\r\n</td></tr></table>\r\n\r\n{*footer*}{include file=\"1549377.tpl\"}',4489087,0),(4565103,'test',4460679,1,'no','private',0,332,'2009-03-08 17:24:09','2010-02-16 23:04:49',0,47,NULL,'2009-03-08 17:24:10',14,'2009-03-08 21:59:18','template://4565103','000001010079201102585036035567360446067904565103','{* header *}{include file=\"1549864.tpl\"}\r\n\r\n{if $user_id eq false}\r\n<center>{* loginbox *}{include file=\"1549885.tpl\"}</center><br><br>\r\n{/if}\r\n\r\n<table width=\'100%\'><tr>\r\n\r\n<!--left column-->\r\n<td valign=\'top\' align=\'center\' width=\'23%\'>\r\n{* node_settings *}\r\n{include file=\"1549925.tpl\"}\r\n\r\n{* get_poll_box *}\r\n{include file=\"1549834.tpl\"}\r\n<br>\r\n{*get_bookmark_statistics_box : include file=\"1549386.tpl\" *}\r\n<img src=/images/nodes/1/0/101.gif border=1>\r\n</td>\r\n<!--end of left column-->\r\n\r\n<!--main central column-->\r\n<td width=666 valign=\'top\'>\r\n{*node_content*}\r\n{include file=\"1549916.tpl\"}\r\n{*showing form for adding child node*}\r\n<form enctype=\"multipart/form-data\" action=\'/id/{$node.node_id}/{if $action neq\r\nfalse}{$action}{/if}\'method=\'post\' name=\'formular\'>\r\n{if $permissions.w eq true}\r\n  {*addnode ---------- *}\r\n\r\n\r\n\r\n\r\n\r\n\r\n<!-- ADDNODE | MARIN -->\r\n{if $permissions.w eq true}\r\n\r\n<div class=\'add_title\' style=\'margin-bottom:2pt;\'>\r\n  title or keywords::\r\n  <input type=\'text\' name=\'node_name\' id=\'node_name\' value=\'{$post_vars.node_name}\'>\r\n  <input type=\'checkbox\' name=\'no_html\' value=\'yes\'>&nbsp;NO HTML\r\n</div>\r\n\r\n<textarea name=\'node_content\' id=\'node_content\'>{$post_vars.node_content|escape:\"html\"|stripslashes}\r\n</textarea>\r\n\r\n<div class=\'toolbar\'>\r\n  <input type=\'submit\' value=\'add\' name=\'event\' />\r\n  <input type=\'submit\' value=\'preview\' name=\'template_event\' class=\'preview_button\' />\r\n  <input type=\'text\' name=\'template_id\' size=5 value=\'{if $node.template_id == 2}3{else}4{/if}\'\r\ntitle=\'[submission: 4 | forum: 3 | nodeshell: 2 | article: 5 | data: 12]\' />\r\n  <select name=\'sel_help\' onchange=\'document.getElementById(\"node_content\").innerHTML += sel_help.value;\' style=\'margin-right:4px\'>\r\n    <option value=\'\' selected>helpful</option>\r\n    <option value=\'<a href=\"\" target=\"_blank\"></a>\'>link</option>\r\n    <option value=\'<img src=\"\">\'>image</option>\r\n    <option value=\'<b></b>\'>bold</option>\r\n    <option value=\'<i></i>\'>italic</option>\r\n  </select>\r\n  {* movement *}{include file=\"1549913.tpl\"}\r\n  <input type=\'submit\' value=\'filter_by\' name=\'template_event\' />\r\n  <select name=\'search_type\' style=\'\'>\r\n    <option value=\'content\'>content</option>\r\n    <option value=\'user\'>user</option>\r\n  </select>\r\n  <input type=\'hidden\' name=\'node_parent\' value=\'{$node.node_id}\'>\r\n</div>\r\n  {* owner_toolbar *}{include file=\"1549939.tpl\"}\r\n{/if}\r\n\r\n<div class=\'add_put\'>\r\n  <input type=\'submit\' value=\'delete\' name=\'event\' />\r\n   <span class=\'add_k_cmnt\'>&nbsp; u have {$user_k} </span>\r\n   <input type=\'submit\' value=\'K\' name=\'event\' />\r\n   <input type=\'submit\' value=\'delete_hardlink\' name=\'event\' style=\'margin-right:1.5em\' />\r\n   <input type=\'submit\' value=\'put\' name=\'event\' /> into\r\n   <input type=\'text\' name=\'nodeshell_id\' value=\'\' style=\"width: 80px\" />\r\n   <select name=\'nodeshell_id_select\'>\r\n    {foreach from=$bookmarks key=id item=name}<option value=\'{$id}\'>{$name|strip_tags|truncate:32:\"\":true}</option>{/foreach}\r\n   </select>\r\n   <input type=\'submit\' value=\'go_to\' name=\'event\' />\r\n</div>\r\n<br />\r\n\r\n\r\n{*add_movie*}\r\n{if $permissions.w eq true}\r\n\r\n\r\n{literal}\r\n<script type=\"text/javascript\">\r\n<!--\r\n\r\nfunction open_win() {\r\n  var add_m = document.getElementById(\'add_m\');\r\n  if(add_m.style.display == \'block\' || add_m.style.display == \'\') {\r\n    add_m.style.display = \'none\';\r\n  } else {\r\n    add_m.style.display = \'block\';\r\n  }\r\n}\r\n\r\nfunction naplnData(status) {\r\n  var textarea = document.getElementById(\'node_content\');\r\n  var node_name = document.getElementById(\'node_name\')\r\n  var movie = document.getElementById(\'movie\');\r\n  var genre = document.getElementById(\'genre\');\r\n  var year = document.getElementById(\'year\');\r\n  var director = document.getElementById(\'director\');\r\n  var img1 = document.getElementById(\'img1\');\r\n  var img2 = document.getElementById(\'img2\');\r\n  var img3 = document.getElementById(\'img3\');\r\n  var img4 = document.getElementById(\'img4\');\r\n  var imdb = document.getElementById(\'imdb\');\r\n  var csfd = document.getElementById(\'csfd\');\r\n  var subs = document.getElementById(\'subs\');\r\n  var trailer = document.getElementById(\'trailer\');\r\n  var custom_name = document.getElementById(\'custom_name\');\r\n  var custom_text = document.getElementById(\'custom_text\');\r\n  var youtube = document.getElementById(\'youtube\');\r\n  var download = document.getElementById(\'download\');\r\n  var info = document.getElementById(\'info\');\r\n\r\n  var startDiv = \'<div style=\"color:#777;min-width:10%;text-align:right;float:left\">\';\r\n\r\n  var newData = \'\';\r\n  if (status == \"plus\" && textarea.value ) {\r\n    var newData = textarea.value + \'<br /><hr style=\"padding:0px; border: 1px #444 solid\" /><br />\';\r\n  }\r\n  if (status != \"plus\" && movie.value) {\r\n    node_name.value = movie.value;\r\n  } else {\r\n    node_name.value = \'\';\r\n  }\r\n\r\n  if (movie.value) { newData = newData + startDiv + \'movie |&nbsp;</div><b style=\"font-size:12px;\"> \' + movie.value + \' </b><br />\'; }\r\n  if (genre.value) {newData = newData + startDiv + \'genre |&nbsp;</div> \' + genre.value + \' <br />\'; }\r\n  if (year.value) {newData = newData + startDiv + \'year |&nbsp;</div> \' + year.value + \' <br />\'; }\r\n  if (director.value) {newData = newData + startDiv + \'director |&nbsp;</div> \' + director.value + \' <br />\'; }\r\n  if (movie.value || genre.value || year.value || director.value ) { newData = newData + \'<br />\'; }\r\n  if (img1.value) {newData = newData + \'<img src=\"\' + img1.value + \'\" /><br /><br /> \'; }\r\n  if (img2.value) {newData = newData + \'<img src=\"\' + img2.value + \'\" /><br /><br /> \'; }\r\n  if (img3.value) {newData = newData + \'<img src=\"\' + img3.value + \'\" /><br /><br /> \'; }\r\n  if (img4.value) {newData = newData + \'<img src=\"\' + img4.value + \'\" /><br /><br /> \'; }\r\n  if (imdb.value) {newData = newData + startDiv + \'imdb |&nbsp;</div> \' + imdb.value + \' <br />\'; }\r\n  if (csfd.value) {newData = newData + startDiv + \'csfd |&nbsp;</div> \' + csfd.value + \' <br />\'; }\r\n  if (subs.value) { newData = newData + startDiv + \'subs |&nbsp;</div> \' + subs.value + \' <br />\'; }\r\n  if (trailer.value) { newData = newData + startDiv + \'trailer |&nbsp;</div> \' + trailer.value + \' <br />\'; }\r\n  if (custom_name.value || custom_text.value) {\r\n    newData = newData + startDiv + custom_name.value + \' |&nbsp;</div> \' + custom_text.value + \' <br />\';\r\n  }\r\n  if (download.value) {\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv + \'download |&nbsp;</div><div style=\"float:left; width:90%;\"> \' + download.value + \' </div></div>\';\r\n  }\r\n  if (info.value) {\r\n    newData = newData + \'<div style=\"overflow:hidden\">\' + startDiv +\' info |&nbsp;</div><div style=\"float:left; width:90%;\"> \' + info.value + \' </div></div>\';\r\n  }\r\n\r\n  textarea.value = newData;\r\n\r\n  if (status == \"plus\") {\r\n    movie.value = \'\';\r\n    genre.value = \'\';\r\n    year.value = \'\';\r\n    director.value = \'\';\r\n    img1.value = \'\';\r\n    img2.value = \'\';\r\n    img3.value = \'\';\r\n    img4.value = \'\';\r\n    imdb.value = \'\';\r\n    csfd.value = \'\';\r\n    subs.value = \'\';\r\n    trailer.value = \'\';\r\n    custom_name.value = \'\';\r\n    custom_text.value = \'\';\r\n    download.value = \'\';\r\n    info.value = \'\';\r\n  }\r\n\r\n}\r\n\r\n//-->\r\n</script>\r\n\r\n<style type=\"text/css\" media=\"screen\">\r\ndiv.btn {background-color:#222; border:1px #444 solid; padding:2px 12px; margin:3px 0 0 0; color:#fff; font-weight: bold; width: 70px; text-align:center; cursor:hand; }\r\ndiv.btn:hover { background-color:#333; color:#fff; }\r\n#add_m div.btn {background-color:#333; border:1px #444 solid; padding:2px 12px; display:block; margin:3px 0px 3px 10px; float:left; color:#fff; font-weight: bold;}\r\n#add_m div.btn:hover {background-color:#444; border:1px #555 solid; color:#fff; }\r\n#add_m {background-color:#111; border:1px #444 solid; width:650px; overflow:hidden; margin: 0;}\r\n#add_m input {width:250px;}\r\n#add_m input.mini {width:50px;margin-left:5px;}\r\n#add_m input.img {width:140px;}\r\n#add_m span.popis {color:#777 ;width:60px; text-align:right; float:left; margin-right:2px;}\r\n#add_m .left {float:left;  overflow:hidden; width: 320px; margin:10px 0;}\r\n#add_m textarea {width:250px; height:80px; font-family: tahoma;font-size: 10px;}\r\n#add_m .bottom {background-color:#222; overflow: hidden; margin: 10px 0 0 0;}\r\n</style>\r\n\r\n{/literal}\r\n\r\n<div class=\"btn\" onclick=\"open_win()\">add movie</div>\r\n<div id=\"add_m\" style=\"display:none\">\r\n  <div class=\"left\">\r\n    <span class=\"popis\"><b>movie</b>:</span> <input type=\'text\' id=\'movie\' name=\'movie\' /><br />\r\n    <span class=\"popis\">genre:</span> <input type=\'text\' id=\'genre\' name=\'genre\' style=\"width:160px; float:left;\" />\r\n    <span class=\"popis\" style=\"width:35px\">year:</span> <input type=\'text\' id=\'year\' name=\'year\' style=\"width:53px\" /><br />\r\n    <span class=\"popis\">director:</span> <input type=\'text\' id=\'director\' name=\'director\' /><br /><br />\r\n    <span class=\"popis\">imdb:</span> <input type=\'text\' id=\'imdb\' name=\'imdb\' /><br />\r\n    <span class=\"popis\">csfd:</span> <input type=\'text\' id=\'csfd\' name=\'csfd\' /><br />\r\n    <span class=\"popis\">subs:</span> <input type=\'text\' id=\'subs\' name=\'subs\' /><br />\r\n    <span class=\"popis\">trailer:</span> <input type=\'text\' id=\'trailer\' name=\'trailer\' /><br />\r\n    <input type=\'text\' id=\'custom_name\' name=\'custom_name\' class=\"mini\" />:\r\n    <input type=\'text\' id=\'custom_text\' name=\'custom_text\' /><br />\r\n  </div>\r\n  <div class=\"left\">\r\n    <span class=\"popis\">download:</span> <textarea name=\'download\' id=\'download\'></textarea><br />\r\n    <span class=\"popis\">info:</span> <textarea name=\'info\' id=\'info\'></textarea><br />\r\n  </div>\r\n  <span class=\"popis\">images:</span>\r\n  <input type=\'text\' id=\'img1\' name=\'img1\' class=\"img\" />\r\n  <input type=\'text\' id=\'img2\' name=\'img2\' class=\"img\" />\r\n  <input type=\'text\' id=\'img3\' name=\'img3\' class=\"img\" />\r\n  <input type=\'text\' id=\'img4\' name=\'img4\' class=\"img\" />\r\n  <br />\r\n\r\n  <div class=\"bottom\">\r\n    <div class=\"btn\" onclick=\'naplnData()\'>add</div>\r\n    <div class=\"btn\" onclick=\'naplnData(\"plus\")\'>add multiple</div>\r\n  </div>\r\n</div>\r\n\r\n{/if}\r\n\r\n\r\n\r\n{* get_node_userlist *}{include file=\"1549803.tpl\"}\r\n{*addnode ---------- end *}\r\n{else}{* read-only *}{include file=\"2264143.tpl\"}\r\n{/if}\r\n{*get_threaded_children*}{include file=\"1549839.tpl\" children_type=4}\r\n</form>\r\n<!--end of central column-->\r\n</td></tr></table>\r\n{*footer*}{include file=\"1549377.tpl\"}',2585036,1),(4565279,'threaded_children_structured [classic].css',4565233,1,'no','public',3,332,'2009-03-08 18:36:13','2010-02-16 23:04:49',0,184,NULL,'2009-03-08 22:04:04',14,'2009-10-27 19:15:09','template://4565279','0154968901559635045652300456523304565279','/* thread -------------------------------------------------------------- */\r\n/* \r\nul.node_children\r\nli.level1 ... li.levelx, li.lvl\r\na.vector\r\ndiv.node_content\r\ndiv.node_header\r\nimg.node_avatar\r\na.node_login\r\ninput.node_chosen\r\nspan.node_header_created\r\nspan.node_header_k\r\nspan.node_header_new\r\nspan.node_header_changed\r\nspan.node_header_sirotka\r\nspan.node_header_descendent\r\nspan.node_header_hardlink\r\ndiv.node_header_title\r\na\r\ndiv.node_body\r\nul\r\n*/\r\n\r\nul.node_children {\r\nposition: relative;\r\nmargin: 2em 0 0 0;\r\npadding:0;\r\nwidth:666px;\r\n}\r\n\r\nli.lvl {\r\nlist-style-type:none;\r\nborder-left: 1px dotted #323232;\r\npadding:1.6em 0 2px 52px; \r\n}\r\n\r\nli.lvl ul {\r\nmargin:0;\r\npadding:0;\r\n}\r\n\r\nli.level1 {\r\nborder-bottom: 1px dotted #323232;\r\n}\r\n\r\na.vector {\r\nposition: absolute;\r\nleft:0;\r\nmargin-top:-1.8em;\r\nfont-size: 0.8em; \r\n}\r\n\r\na.actionToggleThread {\r\nposition: absolute;\r\nleft:-1.2em;\r\nmargin-top:-1.8em;\r\nfont-size: 0.8em;\r\ndisplay:inline !important;\r\n}\r\n\r\na.descendants_link {\r\nposition:relative; top:-1em;\r\n}\r\n\r\ndiv.node_content {\r\ndisplay:table;\r\nborder-collapse:collapse;\r\nwidth:100%;\r\nmargin:0.1em 0 1.3em 0; \r\n/*padding: 2px; zadefinovane ako margin pri headry a body*/\r\nborder: 2px solid #6dae42; \r\nbackground: #000;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_header {\r\nmargin:2px; padding:0.2em;\r\nbackground: #333;\r\nposition:relative;\r\n}\r\n\r\ndiv.node_header_title {text-align:center;}\r\nspan.node_header_title_conf:before {content: \"| \";}\r\n\r\nspan.node_header_k, span.node_header_new, span.node_header_changed, span.node_header_sirotka, span.node_header_descendent {\r\nfont-weight: bold; \r\ncolor: red;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.node_header_hardlink {\r\nfont-weight: bold;\r\ntext-transform: uppercase;\r\n}\r\n\r\nspan.hidden_header_title_nodename {\r\ncolor: #323232;\r\npadding-left:0.8em;\r\n}\r\n\r\ndiv.node_body {\r\nbackground:#000;\r\nmargin:2px;\r\n}\r\n\r\nimg.node_avatar {\r\nposition:absolute;\r\nleft:-57px;\r\ntop:-4px;\r\nwidth:50px;\r\n}\r\n\r\n/**/\r\n\r\n.node_chosen {\r\nmargin:0 0.6em 0 0.6em;\r\npadding:0;\r\ncolor: black;\r\nheight: 8pt;\r\nwidth: 8pt;\r\nbackground: #444; /* len opera */\r\nborder: 1px solid #000;/* len opera */\r\n}\r\n\r\n\r\nli.ie-only.lvl {\r\nwidth:100%;\r\n}\r\n.ie-only.node_header {\r\nwidth:100%;\r\n}\r\ndiv.ieonly.node_body, div.ieonly.bordered {\r\nword-wrap: break-word;\r\n}\r\n/* docasne tu */\r\ndiv#topic {\r\n_word-wrap: break-word;\r\n} ',4565230,1),(4581137,'leftnav',4565236,1,'no','private',1,332,'2009-03-15 17:06:18','2010-02-16 23:04:49',1,337,NULL,'2009-03-16 13:17:35',14,'2009-10-22 02:56:13','template://4581137','0154968901559635045652300456523604581137','{literal}\r\n<script type=\"text/javascript\">\r\nfunction pridajK(id){\r\nvar myConn = new XHConn();\r\nif (!myConn){\r\nalert(\'ajax v pici\');\r\n}\r\nvar fnWhenDone = function (oXML) { \r\n                          var response = oXML.responseText;\r\n                          if(response.indexOf(\"datanode uz si k udelil. uz to nehul\") > 0 ){\r\n                                  /* \r\n                                  var err = \'datanode uz si k udelil. uz to nehul\';\r\n                                  document.getElementById(\'error_msg\').innerHTML = err;\r\n                                  document.getElementById(\'error_msg\').className = \'error_on\';\r\n                                  // div id=\"error_msg\" v headry\r\n                                  */\r\n                                  alert(\'nehul\');\r\n                          }else if(response.indexOf(\"ERROR\") > 0 ){\r\n                          \r\n                          }else{\r\n                                  var Knum = {/literal}{$node.k}{literal} + 1;\r\n                                  document.getElementById(\'KKount\').innerHTML = Knum + \" K\";\r\n                          }\r\n                  }\r\nmyConn.connect(\"/id/\"+id+\"/\", \"POST\", \"event=K\", fnWhenDone);\r\n}\r\n</script>\r\n{/literal}\r\n\r\n\r\n<div id=\'sidebar\'>\r\n  <ul id=\'sidebar_info\'>\r\n    <li>\r\n      <img src=\'{get_image_link id=$node.node_id}\' id=\'sidebar_image\' alt=\'node image\'/>\r\n    </li>\r\n    \r\n    <li id=\'sidebar_node\'>\r\n        node:\r\n      <a href=\'/id/{$node.node_id}\'>\r\n        {$node.node_name|strip_tags|wordwrap:40:\"<br/>\":true}\r\n      </a>\r\n    </li>\r\n\r\n    <li id=\'sidebar_template\'>\r\n        template:\r\n      <a href=\'/id/{$node.template_id}\'>\r\n        {$node.template_id}\r\n      </a>\r\n    </li>\r\n  \r\n    <li id=\'sidebar_parent\'>\r\n        parent:\r\n      <a href=\'/id/{$node.node_parent}\'>\r\n        {$node.node_parent_name|strip_tags|wordwrap:40:\"<br/>\":true}\r\n      </a>\r\n    </li>\r\n    \r\n    <li id=\'sidebar_owner\'>\r\n        owner:\r\n      <a href=\'/id/{$node.node_creator}\'>\r\n        {$node.owner|strip_tags|wordwrap:40:\"<br/>\":true}\r\n      </a>\r\n    </li>\r\n  </ul>\r\n\r\n  {* cwbe *}\r\n\r\n<!-- welcome to da hyperspace -->\r\n<div id=\'sidebar_coord\'>\r\n    <h2 id=\'sidebar_coord_cwbe\'>cwbe coordinatez:</h2>\r\n    {$node.node_created|date_format:\"%d.%m.%Y - %H:%M:%S\"}\r\n    <ol id=\'sidebar_ancestors\'>\r\n    {foreach from=$node.ancestors item=ancestor}\r\n        <li class=\'sidebar_ancestornode\'>\r\n<a href=\'/id/{$ancestor.link}\'>{$ancestor.name|stripslashes|escape:\'html\'}</a></li>\r\n    {/foreach}\r\n    <span style=\'sidebar_absolut\'>ABSOLUT <a href=\'/id/{$node.node_id}/15\'>K</a>YBERIA</span>\r\n</div>\r\n\r\n\r\n\r\n<!-- hyperspace ain\'t left for now -->\r\n{* cwbe *}\r\n\r\n  <ul id=\'sidebar_pemissions\'>\r\n    <li>\r\n    <h2 id=\'sidebar_permtitle\'>\r\n      permissions\r\n    </h2></li>\r\n    \r\n    <li id=\'sidebar_permyou\'>\r\n      you:\r\n    \r\n    <span id=\'sidebar_permyourw\'>\r\n        {if $permissions.r}r,{/if}\r\n        {if $permissions.w}w,{/if}\r\n        {$node.node_permission}\r\n    </span>\r\n    </li>\r\n    \r\n    <li id=\'sidebar_permsystem\'>\r\n      system:\r\n    <span id=\'sidebar_permsystemaccess\'>\r\n      {$node.node_system_access}\r\n    </span>\r\n    </li>\r\n   \r\n    <li id=\'sidebar_permnet\'>\r\n      net:\r\n    <span id=\'sidebar_permnetaccess\'>\r\n      {$node.node_external_access}\r\n    </span>\r\n    </li>\r\n  </ul>\r\n\r\n  <ul id=\'sidebar_templates\'>\r\n    <li id=\'sidebar_neurons\'><a href=\'/id/{$node.node_id}/1961036\'>neurons</a></li>\r\n    <li><ul id=\'sidebar_statstemplates\'>\r\n      <li id=\'sidebar_stats\'><a href=\'/id/{$node.node_id}/1961037\'>stats</a></li>\r\n      <li id=\'sidebar_byvisit\'><a href=\'/id/{$node.node_id}/748131\'>by_visit</a></li>\r\n      <li id=\'sidebar_byK\'><a href=\'/id/{$node.node_id}/1908499\'>by_K</a></li>\r\n    </ul></li>\r\n    <!-- <li id=\'sidebar_offtopic\'><a href=\'/id/{$node.node_id}/offtopic\'>offtopic</a></li> -->\r\n    <li id=\'sidebar_source\'><a href=\'/id/{$node.node_id}/14\'>source</a></li>\r\n    <!-- <li id=\'sidebar_tiamat\'><a href=\'/id/{$node.node_id}/30\'>tiamat</a></li> -->\r\n    <!-- <li id=\'sidebar_links\'><a href=\'/id/{$node.node_id}/links\'>links</a></li> -->\r\n    <!-- <li id=\'sidebar_print\'><a href=\'/id/{$node.node_id}/print\'>print</a></li> -->\r\n      {if $node.node_children_count neq 0}\r\n    <li id=\'sidebar_byk\'><a href=\'/id/{$node.node_id}/15\'>k</a></li>\r\n    <li id=\'sidebar_last\'><a href=\'/id/{$node.node_id}/23\'>last</a></li>\r\n      {/if}\r\n    <li id=\'sidebar_commanders\'><a href=\'/id/{$node.node_id}/2224463\'>commanders</a></li>\r\n    <li id=\'sidebar_polls\'><a href=\'/id/{$node.node_id}/1549314\'>polls</a></li>\r\n  </ul>\r\n\r\n  <ul class=\'sidebar_nodeinfo2\'>\r\n    <li id=\'sidebar_viewed\'>node viewed {$node.node_views} times</li>\r\n    <li id=\'sidebar_desccount\'>total descendants::{$node.node_descendant_count}</li>\r\n    <li id=\'sidebar_children\'>total children::{$node.node_children_count}</li>\r\n  </ul>\r\n\r\n	{if $node.node_user_subchild_count neq false or $node.k neq false or $offset neq false}\r\n  <ul class=\'sidebar_NEWandKandoffset\'> \r\n    {if $node.node_user_subchild_count neq false}\r\n      <li id=\'sidebar_newsubcount\'>{$node.node_user_subchild_count} NEW</li>\r\n    {/if}\r\n    {if $node.k neq false}\r\n      <li id=\'sidbar_kcount\'>{$node.k} K</li>\r\n    {/if}\r\n    {if $offset neq false}\r\n      <li id=\'sidebar_offsetcount\'>using offset:: {$offset} </li>\r\n    {/if}\r\n  </ul>\r\n  {/if}\r\n\r\n    <span id=\'sidebar_giveajaxK\' onclick=\'pridajK({$node.node_id});\' style=\'cursor: pointer;color:white;\'>K</span>\r\n\r\n  <form action=\'/id/{$node.node_id}/\' method=\'post\'>\r\n  <noscript>\r\n     <input id=\'sidebar_givenormk\' type=\'submit\' name=\'event\' value=\'K\' class=\'eventK\' />\r\n  </noscript>\r\n     {* user relation buttons *}{include file=\'1022348.tpl\'}\r\n  </form>\r\n\r\n  {if $node.node_creator eq $user_id or $node.node_permission eq \'master\' or $node.node_permission eq \'op\'}\r\n    <span id=\'sidebar_configure\'><a href=\'/id/{$node.node_id}/1961033\'>configure</a></span>\r\n  {/if}\r\n  <span id=\'sidebar_show23flat\'>show\r\n  <a id=\'sidebar_show2\' href=\'/id/{$node.node_id}/2\'>2</a>\r\n  <a id=\'sidebar_show3\' href=\'/id/{$node.node_id}/3\'>3</a>\r\n  <a id=\'sidebar_showflat\' href=\'/id/{$node.node_id}/3755160\'>flat</a>\r\n  </span>\r\n\r\n\r\n  {if $node.external_link eq \'db://user\' or $node.external_link eq \'session://user\' or $node.template_id eq 7}\r\n  <ul id=\'sidebar_user\'>\r\n    <li id=\'sidebar_userbookmarks\'><a href=\'/id/{$node.node_id}/1970182\'>bookmarks</a></li>\r\n    <li id=\'sidebar_usermovement\'><a href=\'/id/{$node.node_id}/1911535\'>movement</a></li>\r\n    <li id=\'sidebar_usernodeshells\'><a href=\'/id/{$node.node_id}/1757900\'>nodeshells</a></li>\r\n    <li id=\'sidebar_userforums\'><a href=\'/id/{$node.node_id}/1761254\'>forums</a></li>\r\n    <li id=\'sidebar_usersubmissions\'><a href=\'/id/{$node.node_id}/1573668\'>submissions</a>{if $node.node_id eq $user_id}\r\n                                     <a id=\'sidebar_usersubmissionsre\' href=\"/id/1522695\">re</a>{/if}</li>\r\n    <li id=\'sidebar_userarticles\'><a href=\'/id/{$node.node_id}/1773535\'>articles</a></li>\r\n    <li id=\'sidebar_userblogs\'><a href=\'/id/{$node.node_id}/1757556\'>blogs</a></li>\r\n    <li id=\'sidebar_userdatas\'><a href=\'/id/{$node.node_id}/1757626\'>datas</a></li>\r\n    <li id=\'sidebar_userK\'><a href=\'/id/{$node.node_id}/1752584\'>K</a></li>\r\n    <li id=\'sidebar_userfriends\'><a href=\'/id/{$node.node_id}/1769388\'>friends</a></li>\r\n  </ul> \r\n{/if}\r\n</div>',4565230,1),