﻿is_ie = 0; (function(l, s) { /*@cc_onis_ie = { version: parseFloat(navigator.appVersion.match(/MSIE ([^;]+)/)[1]), quirksmode: (document.compatMode == "BackCompat") }; /*@if(@_jscript_version<5.5)l('ie5.js');/*@endwindow.setTimeout = function(f, t) { if (arguments.length == 2) { return s(f, t) } else { var p = Array.prototype.slice.call(arguments, 2); return s(function() { f.apply(null, p) }, t) } }; @*/; ("".replace(/^/, String)) && l('replace.js') })(function(n) { document.write('<script src="https://secure.eplica.is/codecentre/js/remedial/' + n + '" type="text/javascript" charset="iso-8859-1"></script>') }, setTimeout);
cookieU = { set: function(a, b, c, d, e, f) { d = (d && !isNaN(d)) ? d : (365 * 24 * 60 * 60); var g = new Date(), _35 = (new Date(0)).getTime(); g.setTime(g.getTime() + (d * 1000) - _35); document.cookie = a + '=' + escape(b) + '; expires=' + g.toGMTString() + (c ? '; path=' + c : '') + (e ? '; domain=' + e : '') + (f ? '; secure' : '') }, getValue: function(a) { var c = document.cookie || ''; var b = (";" + c).match(new RegExp("(; ?)" + a + "=([^;]+)")); return !!b && unescape(b[2]) } }; var setCookie = cookieU.set; var getCookieValue = cookieU.getValue; stripHref = function(a) { var l = document.location, t = stripHref, R = RegExp, r = t.re || (t.re = new R('^' + R.escape(l.protocol + '//' + l.host))); return a.replace(r, '') }; Event = { _9: {}, add: function(a, b, c, d) { var f = DOM.guid(a), _13 = DOM.guid(c) + (d ? '_' + DOM.guid(d) : ''), _22 = c; if (d && arguments.length == 4) { c = function(e) { return _22.call(d, e) }; c.gu = _13 } else if (arguments.length > 4) { var g = Array.prototype.slice.call(arguments, 4); c = function(e) { return _22.apply(d || a, [e].concat(g)) }; c.gu = _13 } var h = Event._9[f] || (Event._9[f] = {}); var i = h[b]; if (!i) { i = h[b] = {}; var j = 'on' + b; if (a[j]) { i[0] = a[j] } a[j] = Event._33(b) } i[_13] = c }, remove: function(a, b, c, d) { var e, _15; if ((e = Event._9[a.gu]) && (_15 = e[b])) { delete _15[c.gu + (d ? '_' + d.gu : '')]; if (Object.isEmpty(_15)) { delete e[b]; a["on" + b] = null } } }, fire: function(a, b, c) { b = "on" + b; if (typeof a[b] == "function") { return (arguments.length > 2) ? a[b](c) : a[b]() } }, kill: function(e) { e.stopPropagation(); e.preventDefault(); return false }, _21: {}, _33: function(a) { return this._21[a] || (this._21[a] = function(e) { e = (arguments.length) ? e : Event._28(window.event); var r = true, h = Event._9[this.gu][a]; for (var i in h) { this.hE = h[i]; if (this.hE(e) === false) { r = false } } this.hE = null; return r }) }, _28: function(e) { if (!window.opera && e) { e.target = e.srcElement; e.preventDefault = this._23; e.stopPropagation = this._24 } return e }, _23: function() { this.returnValue = false }, _24: function() { this.cancelBubble = true } }; addEvent = Event.add; removeEvent = Event.remove; DOM = { innerText: function(n) { return n.innerText || n.innerHTML.replace(/<[^>]+>/g, "").decodeEntities() }, insertBefore: function(n, r) { r.parentNode.insertBefore(n, r) }, insertAfter: function(n, r) { r.parentNode.insertBefore(n, r.nextSibling) }, prependChild: function(n, p) { p.insertBefore(n, p.firstChild) }, appendChild: function(n, p) { p.appendChild(n) }, replaceNode: function(n, o) { DOM.insertBefore(n, o); DOM.removeNode(o) }, removeNode: function(n) { n.parentNode.removeChild(n) }, injectNode: function(n) { var t = document.getElementsByTagName('*'); DOM.insertAfter(n, t[t.length - 1]) }, firstChildTag: function(p) { for (var i = 0, n; (n = p.childNodes[i]); i++) { if (n.nodeType == 1 && DOM.innerText(n)) { return n } } return null }, processOffline: function(e, f, c) { if (!e || !f) { return } var s = document.createElement(e.tagName); DOM.replaceNode(s, e); var r = c ? f.call(c, e) : f(e); DOM.replaceNode(e, s); return r }, firstElmOf: function(e, r) { var n = e[(r ? "last" : "first") + "Child"]; var m = (r ? "previous" : "next") + "Sibling"; while (n) { if (n.nodeType == 1) { return n } n = n[m] } }, lastElmOf: function(e) { return DOM.firstElmOf(e, true) }, getChildElms: function(e, t) { var a = [], e = e.firstChild; while (e) { if (e.nodeType == 1 && (!t || e.tagName.toLowerCase() == t)) { a.push(e) } e = e.nextSibling } return a }, elmAfter: function(n) { var m = arguments[1] || "nextSibling"; while ((n = n[m])) { if (n.nodeType == 1) { return n } } }, elmBefore: function(n) { return DOM.elmAfter(n, "previousSibling") }, makeElement: function(h, a) { var c = DOM._25[a ? 0 : 1]; c.innerHTML = h; var n = c.childNodes[0]; DOM.removeNode(n); return n }, _25: [document.createElement("head"), document.createElement("body")], getLang: function(a) { a = a || DOM.get("html")[0]; var e = a; var b; while (!(b = DOM._26(e))) { if (e.tagName == "HTML") { break } e = e.parentNode } if (b) { if (e != a) { a.lang = b } return (arguments[1]) ? b : b.substr(0, 2) } return false }, getFullLang: function(a) { return DOM.getLang(a, true) }, _26: function(a) { var b = a.lang; if (!b) { try { b = a.getAttribute("xml:lang") } catch (err) { } if (a.getAttributeNS) { b = a.getAttributeNS("xml", "lang") } } return (b) ? b.toLowerCase() : null }, isAncestor: function(h, n, a) { a = document.body; DOM.isAncestor = (a.contains && navigator.userAgent.indexOf('safari') < 0) ? function(h, n) { return h.contains(n) } : (a.compareDocumentPosition) ? function(h, n) { return !!(h.compareDocumentPosition(n) & 16) } : function(h, n) { while ((n = n.parentNode)) { if (n == h) { return true } } return false }; return DOM.isAncestor(h, n) }, _10: {}, _27: {}, hasClass: function(a, c) { var b = a.className, rc = DOM._10; return !!b && (b.indexOf(c) > -1) && (rc[c] || (rc[c] = new RegExp('(^| )' + c + '( |$)'))).test(b) }, addClass: function(a, c, b) { return (a.className != (a.className += ((c && a.className) ? ' ' : '') + (c || ''))) || b }, removeClass: function(a, c) { var b = a.className, rc = DOM._27; return !!b && (b != (a.className = b.replace((rc[c] || (rc[c] = new RegExp('(^| )(' + c + '( |$))+', 'g'))), '$1'))) }, replaceClass: function(a, b, c, d) { return (DOM.removeClass(a, b) || d) && DOM.addClass(a, c, 1) }, toggleClass: function(a, b, c, d) { b = b || ''; c = c || ''; if (c && (typeof (c) != 'string')) { d = c; c = '' } return DOM.replaceClass(a, b, c) || DOM.replaceClass(a, c, b) || (!d && DOM.addClass(a, b || c)) }, insertLink: function(u, m, r) { var l = document.createElement('link'); l.type = 'text/css'; l.href = u; l.rel = (r ? r + ' ' : '') + 'stylesheet'; l.media = m || 'all'; DOM.get('head')[0].appendChild(l) }, aquireId: function(a) { if (!a || !a.id) { var b = DOM._29 + DOM._14++; if (!a) { return b } else if (!a.id) { a.id = b } } return a.id }, guid: function(o) { if (!o.gu || o.gu >= DOM._14 || DOM._11[o.gu] != o) { o.gu = DOM._14++; DOM._11[o.gu] = o } return o.gu }, getByGuid: function(g) { return DOM._11[g] }, _11: {}, _29: "eplica_tempid_" + (new Date()).getTime() + "_", _14: 1, get: function(b, c) { if (!document.getElementsByTagName) { return [] } if (/^\w+$/.test(b)) { return (c || document).getElementsByTagName(b) } var d = b.trim().replace(/\s\s+/g, ' ').split(' '), _0 = [c || document], _5 = [], R = RegExp, _17 = 0, _3 = false, i, j, h, len, leng, _18, _36, _4, _6; for (i = 0, _18 = d.length; i < _18; i++) { var e = d[i]; if (e == '>') { _3 = true; continue } _17++; if (e.indexOf('#') > -1) { var f = e.split('#'), _2 = f[0], _7 = document.getElementById(f[1]); if (!_7) { return [] } if (i == 0 && !c) { if (_2 && _2 != '*' && _7.nodeName.toLowerCase() != _2) { return [] } _0 = [_7]; continue } var g = (_3 && Array.indexOf(_0, _7.parentNode) > -1); if (!g) { var k = _7; while (k = k.parentNode) { if (Array.indexOf(_0, k) > -1) { g = true; break } } } if (g) { _0 = [_7]; continue } } if (e.indexOf('.') > -1) { f = e.split('.'); _2 = f[0] || '*'; var l = f[1], _1 = []; h = 0; while (_6 = _0[h++]) { _5 = DOM._12(_6, _2, _3); j = 0; while (_4 = _5[j++]) { DOM.hasClass(_4, l) && (_1[_1.length] = _4) } } _0 = _1; _3 = false; continue } if (e.match(/^(\w*|\*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) { _2 = R.$1 || '*'; _1 = []; var m = DOM._32[R.$2] || R.$2, _31 = R.$4; _30 = DOM._20[R.$3] || DOM._20.d; h = 0; while (_6 = _0[h++]) { _5 = DOM._12(_6, _2, _3); j = 0; while (_4 = _5[j++]) { var a = _4.getAttribute(m); _30((a !== null ? a : ''), _31) && (_1[_1.length] = _4) } } _0 = _1; _3 = false; continue } _2 = e; _1 = []; h = 0; while (_6 = _0[h++]) { _5 = DOM._12(_6, _2, _3); j = 0; while (_4 = _5[j++]) { _1[_1.length] = _4 } } _0 = _1; _3 = false } return (_17 > 1) ? DOM._34(_0) : _0 }, _16: {}, _32: is_ie ? { 'class': 'className', 'for': 'htmlFor'} : {}, _20: { '=': function(a, v) { return a == v }, '~': function(a, v) { var b = DOM._10[v] || (DOM._10[v] = new RegExp('(^| )' + v + '( |$)')); return b.test(a) }, '|': function(a, v) { var b = DOM._16[v] || (DOM._16[v] || new RegExp('^' + v + '(-|$)')); return b.test(a) }, '^': function(a, v) { return a.indexOf(v) === 0 }, '$': function(a, v) { return a.lastIndexOf(v) == (a.length - v.length) }, '*': function(a, v) { return a.indexOf(v) > -1 }, d: function(a) { return a } }, _12: function(a, b, c) { if (c) { return DOM.getChildElms(a, (b == '*') ? false : b) } return (document.all && b == '*') ? a.all : a.getElementsByTagName(b) }, _34: function(a) { var b = [], n, i, l; for (i = 0, l = a.length; i < l; i++) { if (!(n = a[i]).dom_get_counted) { n.dom_get_counted = true; b[b.length] = n } } i = 0; while (n = b[i++]) { n.dom_get_counted = undefined } return b }, getOptionValue: function(o) { return o.value || (o.outerHTML && !/^[^>]+ value/.test(o.outerHTML) && o.text) || "" }, scrollPos: (is_ie) ? function(o) { var d = document.documentElement; if (!d || !d.scrollTop) { d = document.body } var x = d.scrollLeft, y = d.scrollTop; return o ? { x: x, y: y} : [x, y] } : function(o) { var x = window.pageXOffset, y = window.pageYOffset; return o ? { x: x, y: y} : [x, y] }, viewportSize: function(o) { var d = (document.documentElement.clientWidth) ? document.documentElement : document.body, w = d.clientWidth, h = d.clientHeight; return o ? { w: w, h: h} : [w, h] }, docSize: function(o) { var d = document.body.parentNode, w = d.scrollWidth, h = d.scrollHeight; return o ? { w: w, h: h} : [w, h] } }; $$ = DOM.get; document.getElementsBySelector = DOM.get; basicMeta = DOM; cssU = DOM; scrollPos = function() { return DOM.scrollPos(1) }; $ = function(a) { if (!a) { return a } if (arguments.length > 1) { a = Array.from(arguments) } if (typeof (a) == 'string') { return document.getElementById(a) } if (a.join) { var b = []; for (var i = 0, l = a.length; i < l; i++) { var c = a[i]; if (typeof (c) == 'string') { c = document.getElementById(c) } b.push(c) } return b } return a }; RegExp.escape = function(s) { return s.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g, '\\$1') }; Object.merge = function(a, b, l) { for (var k in b) if (!l || typeof (a[k]) == "undefined" || a[k] === null) a[k] = b[k]; return a }; Object.merge(Object, { isEmpty: function(o) { for (var i in o) { return false } return true }, beget: function(o, v) { var F = function() { }; F.prototype = o; var i = new F(); return v ? Object.merge(i, v) : i } }, 1); Object.merge(Array, { from: function(o) { return Array.prototype.slice.call(o, 0) }, indexOf: function(a, o, p) { for (var i = (p || 0), l = a.length; i < l; i++) { if (a[i] === o) { return i } } return -1 }, forEach: function(o, f, t) { for (var i = 0, l = o.length; i < l; i++) { if (typeof (o[i]) != "undefined") { t ? f.call(t, o[i], i, o) : f(o[i], i, o) } } }, map: function(o, f, t) { var a = []; for (var i = 0, l = o.length; i < l; i++) { a[i] = t ? f.call(t, o[i], i, o) : f(o[i], i, o) } return a }, filter: function(o, f, t) { var a = []; for (var i = 0, l = o.length; i < l; i++) { if (t ? f.call(t, o[i], i, o) : f(o[i], i, o)) { a.push(o[i]) } } return a } }, 1); Object.merge(Function.prototype, { forEach: function(o, f, t) { for (var i in o) { if (typeof this.prototype[i] == "undefined" || this.prototype[i] !== o[i]) { t ? f.call(t, o[i], i, o) : f(o[i], i, o) } } } }, 1); Object.merge(String.prototype, { trim: function() { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, '') }, decodeEntities: function() { return this.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&amp;/g, "&") }, encodeEntities: function() { return this.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;") }, injectVars: function(a) { var b = '' + this, _19 = this.injectVarsRegExpCache, _8 = [], l = a.length, i; if (this.indexOf('%{') > -1) { if (isNaN(l)) { for (i in a) { _8.push(i) } } else { while (l--) { _8.push(l) } } i = _8.length; while (i--) { var c = _8[i], re = _19[c] || (_19[c] = new RegExp(RegExp.escape('%{' + c + '}'), 'g')); b = b.replace(re, a[c]) } } return b }, injectVarsRegExpCache: {} }, 1);
