var Browser = function() { this.uA = navigator.userAgent.toLowerCase(); this.aN = navigator.appName.toLowerCase(); this.iE = this.aN.indexOf("microsoft") != -1 ? 1 : 0; this.mac = this.uA.indexOf("mac") != -1 ? 1 : 0; this.win = this.uA.indexOf("windows") != -1 ? 1 : 0; this.safari = this.uA.indexOf("webkit") != -1 ? 1 : 0; this.opera = this.uA.indexOf("opera") != -1 ? 1 : 0; this.operaMini = this.uA.indexOf("mini") != -1 ? 1 : 0; this.winMozilla = (this.mozilla = this.aN.indexOf("netscape") != -1 && !this.safari ? 1 : 0) && this.win ? 1 : 0; this.winIE6Down = (this.winIE = this.iE && this.win && !this.opera ? 1 : 0) && /msie|MSIE 6/.test(navigator.userAgent) == 1 ? 1 : 0; this.macIE = this.iE && this.mac ? 1 : 0 }, browser = new Browser; jQuery.cookie = function(f, a, d) { if (typeof a != "undefined") { d = d || {}; if (a === null) { a = ""; d.expires = -1 } var c = ""; if (d.expires && (typeof d.expires == "number" || d.expires.toUTCString)) { if (typeof d.expires == "number") { c = new Date; c.setTime(c.getTime() + d.expires * 24 * 60 * 60 * 1E3) } else c = d.expires; c = "; expires=" + c.toUTCString() } var h = d.path ? "; path=" + d.path : "", j = d.domain ? "; domain=" + d.domain : ""; d = d.secure ? "; secure" : ""; document.cookie = [f, "=", encodeURIComponent(a), c, h, j, d].join("") } else { a = null; if (document.cookie && document.cookie != "") { d = document.cookie.split(";"); for (c = 0; c < d.length; c++) { h = jQuery.trim(d[c]); if (h.substring(0, f.length + 1) == f + "=") { a = decodeURIComponent(h.substring(f.length + 1)); break } } } return a } }; jQuery.fn.corners = function(f) { function a(e, b) { var i = "" + b.sizex + "px " + b.sizey + "px"; e = jQuery(e); b.tl && e.css("WebkitBorderTopLeftRadius", i); b.tr && e.css("WebkitBorderTopRightRadius", i); b.bl && e.css("WebkitBorderBottomLeftRadius", i); b.br && e.css("WebkitBorderBottomRightRadius", i) } function d(e, b) { var i = "" + b.sizex + "px"; e = jQuery(e); b.tl && e.css("-moz-border-radius-topleft", i); b.tr && e.css("-moz-border-radius-topright", i); b.bl && e.css("-moz-border-radius-bottomleft", i); b.br && e.css("-moz-border-radius-bottomright", i) } function c(e, b, i, l) { var k = o("table"), p = o("tbody"); k.appendChild(p); var s = o("tr"), x = o("td", "top"); s.appendChild(x); var w = o("tr"), u = v(e, b, o("td")); w.appendChild(u); u = o("tr"); var D = o("td", "bottom"); u.appendChild(D); if (b.tl || b.tr) { p.appendChild(s); E(x, b, i, l, true) } p.appendChild(w); if (b.bl || b.br) { p.appendChild(u); E(D, b, i, l, false) } e.appendChild(k); if (jQuery.browser.msie) k.onclick = h; e.style.overflow = "hidden" } function h() { this.parentNode.onclick || this.parentNode.click() } function j(e) { var b = document.createElement("a"); b.id = e.id; b.className = e.className; if (e.onclick) { b.href = "javascript:"; b.onclick = e.onclick } else { jQuery(e).parent("form").each(function() { b.href = this.action }); b.onclick = m } var i = document.createTextNode(e.value); b.appendChild(i); e.parentNode.replaceChild(b, e); return b } function m() { jQuery(this).parent("form").each(function() { this.submit() }); return false } function y(e, b, i, l) { var k = v(e, b, document.createElement("div")); e.appendChild(k); if (b.tl || b.tr) E(e, b, i, l, true); if (b.bl || b.br) E(e, b, i, l, false) } function v(e, b, i) { for (var l = jQuery(e), k; k = e.firstChild; ) i.appendChild(k); if (e.style.height) { k = parseInt(l.css("height")); i.style.height = k + "px"; k += parseInt(l.css("padding-top")) + parseInt(l.css("padding-bottom")); e.style.height = k + "px" } if (e.style.width) { k = parseInt(l.css("width")); i.style.width = k + "px"; k += parseInt(l.css("padding-left")) + parseInt(l.css("padding-right")); e.style.width = k + "px" } i.style.paddingLeft = l.css("padding-left"); i.style.paddingRight = l.css("padding-right"); i.style.paddingTop = b.tl || b.tr ? n(e, b, l.css("padding-top"), true) : l.css("padding-top"); i.style.paddingBottom = b.bl || b.br ? n(e, b, l.css("padding-bottom"), false) : l.css("padding-bottom"); e.style.padding = 0; return i } function n(e, b, i, l) { if (i.indexOf("px") < 0) { try { console.error("%s padding not in pixels", l ? "top" : "bottom", e) } catch (k) { } i = b.sizey + "px" } i = parseInt(i); if (i - b.sizey < 0) { try { console.error("%s padding is %ipx for %ipx corner:", l ? "top" : "bottom", i, b.sizey, e) } catch (p) { } i = b.sizey } return i - b.sizey + "px" } function o(e, b) { e = document.createElement(e); e.style.border = "none"; e.style.borderCollapse = "collapse"; e.style.borderSpacing = 0; e.style.padding = 0; e.style.margin = 0; if (b) e.style.verticalAlign = b; return e } function t(e) { try { var b = jQuery.css(e, "background-color"); if (b.match(/^(transparent|rgba\(0,\s*0,\s*0,\s*0\))$/i) && e.parentNode) return t(e.parentNode); if (b == null) return "#ffffff"; if (b.indexOf("rgb") > -1) b = z(b); if (b.length == 4) b = q(b); return b } catch (i) { return "#ffffff" } } function q(e) { return "#" + e.substring(1, 2) + e.substring(1, 2) + e.substring(2, 3) + e.substring(2, 3) + e.substring(3, 4) + e.substring(3, 4) } function z(e) { var b = "", i = /([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/.exec(e); for (e = 1; e < 4; e++) b += ("0" + parseInt(i[e]).toString(16)).slice(-2); return "#" + b } function B(e, b) { e = e || ""; var i = { sizex: 5, sizey: 5, tl: false, tr: false, bl: false, br: false, webkit: true, mozilla: true, transparent: false }; if (b) { i.sizex = b.sizex; i.sizey = b.sizey; i.webkit = b.webkit; i.transparent = b.transparent; i.mozilla = b.mozilla } var l = false, k = false; jQuery.each(e.split(" "), function(p, s) { s = s.toLowerCase(); p = parseInt(s); if (p > 0 && s == p + "px") { i.sizey = p; if (!l) i.sizex = p; l = true } else switch (s) { case "no-native": i.webkit = i.mozilla = false; break; case "webkit": i.webkit = true; break; case "no-webkit": i.webkit = false; break; case "mozilla": i.mozilla = true; break; case "no-mozilla": i.mozilla = false; break; case "anti-alias": i.transparent = false; break; case "transparent": i.transparent = true; break; case "top": k = i.tl = i.tr = true; break; case "right": k = i.tr = i.br = true; break; case "bottom": k = i.bl = i.br = true; break; case "left": k = i.tl = i.bl = true; break; case "top-left": k = i.tl = true; break; case "top-right": k = i.tr = true; break; case "bottom-left": k = i.bl = true; break; case "bottom-right": k = i.br = true; break } }); if (!k) if (b) { i.tl = b.tl; i.tr = b.tr; i.bl = b.bl; i.br = b.br } else i.tl = i.tr = i.bl = i.br = true; return i } function N(e, b, i) { e = Array(parseInt("0x" + e.substring(1, 3)), parseInt("0x" + e.substring(3, 5)), parseInt("0x" + e.substring(5, 7))); b = Array(parseInt("0x" + b.substring(1, 3)), parseInt("0x" + b.substring(3, 5)), parseInt("0x" + b.substring(5, 7))); r = "0" + Math.round(e[0] + (b[0] - e[0]) * i).toString(16); g = "0" + Math.round(e[1] + (b[1] - e[1]) * i).toString(16); b = "0" + Math.round(e[2] + (b[2] - e[2]) * i).toString(16); return "#" + r.substring(r.length - 2) + g.substring(g.length - 2) + b.substring(b.length - 2) } function E(e, b, i, l, k) { b.transparent ? O(e, b, i, k) : P(e, b, i, l, k) } function P(e, b, i, l, k) { var p, s, x = document.createElement("div"); x.style.fontSize = "1px"; x.style.backgroundColor = i; var w = 0; for (p = 1; p <= b.sizey; p++) { var u, D; arc = Math.sqrt(1 - Math.pow(1 - p / b.sizey, 2)) * b.sizex; var C = b.sizex - Math.ceil(arc), F = Math.floor(w), G = b.sizex - C - F, A = document.createElement("div"), H = x; A.style.margin = "0px " + C + "px"; A.style.height = "1px"; A.style.overflow = "hidden"; for (s = 1; s <= G; s++) { if (s == 1) if (s == G) u = (arc + w) * 0.5 - F; else { u = Math.sqrt(1 - Math.pow(1 - (C + 1) / b.sizex, 2)) * b.sizey; u = (u - (b.sizey - p)) * (arc - F - G + 1) * 0.5 } else if (s == G) { u = Math.sqrt(1 - Math.pow((b.sizex - C - s + 1) / b.sizex, 2)) * b.sizey; u = 1 - (1 - (u - (b.sizey - p))) * (1 - (w - F)) * 0.5 } else { D = Math.sqrt(1 - Math.pow((b.sizex - C - s) / b.sizex, 2)) * b.sizey; u = Math.sqrt(1 - Math.pow((b.sizex - C - s + 1) / b.sizex, 2)) * b.sizey; u = (u + D) * 0.5 - (b.sizey - p) } L(b, A, H, k, N(i, l, u)); H = A; A = H.cloneNode(false); A.style.margin = "0px 1px" } L(b, A, H, k, l); w = arc } k ? e.insertBefore(x, e.firstChild) : e.appendChild(x) } function L(e, b, i, l, k) { if (l && !e.tl) b.style.marginLeft = 0; if (l && !e.tr) b.style.marginRight = 0; if (!l && !e.bl) b.style.marginLeft = 0; if (!l && !e.br) b.style.marginRight = 0; b.style.backgroundColor = k; l ? i.appendChild(b) : i.insertBefore(b, i.firstChild) } function O(e, b, i, l) { var k = document.createElement("div"); k.style.fontSize = "1px"; var p = document.createElement("div"); p.style.overflow = "hidden"; p.style.height = "1px"; p.style.borderColor = i; p.style.borderStyle = "none solid"; i = b.sizex - 1; var s = b.sizey - 1; s || (s = 1); for (var x = 0; x < b.sizey; x++) { var w = i - Math.floor(Math.sqrt(1 - Math.pow(1 - x / s, 2)) * i); if (x == 2 && b.sizex == 6 && b.sizey == 6) w = 2; var u = p.cloneNode(false); u.style.borderWidth = "0 " + w + "px"; u.style.borderWidth = l ? "0 " + (b.tr ? w : 0) + "px 0 " + (b.tl ? w : 0) + "px" : "0 " + (b.br ? w : 0) + "px 0 " + (b.bl ? w : 0) + "px"; l ? k.appendChild(u) : k.insertBefore(u, k.firstChild) } l ? e.insertBefore(k, e.firstChild) : e.appendChild(k) } var M = B(f), J = false; try { J = document.body.style.WebkitBorderRadius !== undefined; var I = navigator.userAgent.indexOf("Chrome"); if (I >= 0) J = false } catch (Q) { } var K = false; try { K = document.body.style.MozBorderRadius !== undefined; I = navigator.userAgent.indexOf("Firefox"); if (I >= 0 && parseInt(navigator.userAgent.substring(I + 8)) < 3) K = false } catch (R) { } return this.each(function(e, b) { $e = jQuery(b); if (!$e.hasClass("rounded_by_jQuery_corners")) { $e.addClass("rounded_by_jQuery_corners"); e = (e = /{(.*)}/.exec(b.className)) ? B(e[1], M) : M; var i = b.nodeName.toLowerCase(); if (i == "input") b = j(b); if (J && e.webkit) a(b, e); else if (K && e.mozilla && e.sizex == e.sizey) d(b, e); else { var l = t(b.parentNode), k = t(b); switch (i) { case "a": case "input": c(b, e, l, k); break; default: y(b, e, l, k); break } } } }) }; (function(f) { var a = 1; f.fn.dropShadow = function(d) { var c = f.extend({ left: 4, top: 4, blur: 2, opacity: 0.5, color: "black", swap: false }, d), h = f([]); this.not(".dropShadow").each(function() { var j = f(this), m = [], y = c.blur <= 0 ? 0 : c.blur, v = y == 0 ? c.opacity : c.opacity / (y * 8), n = c.swap ? a : a + 1, o = c.swap ? a + 1 : a, t; t = this.id ? this.id + "_dropShadow" : "ds" + (1 + Math.floor(9999 * Math.random())); f.data(this, "shadowId", t); f.data(this, "shadowOptions", d); j.attr("shadowId", t).css("zIndex", n); j.css("position") != "absolute" && j.css({ position: "relative", zoom: 1 }); bgColor = j.css("backgroundColor"); m[0] = bgColor == "transparent" || j.css("backgroundImage") == "none" || this.nodeName == "SELECT" || this.nodeName == "INPUT" || this.nodeName == "TEXTAREA" ? f("<div></div>").css("background", c.color) : j.clone().removeAttr("id").removeAttr("name").removeAttr("shadowId").css("color", c.color); m[0].addClass("dropShadow").css({ height: j.outerHeight(), left: y, opacity: v, position: "absolute", top: y, width: j.outerWidth(), zIndex: o }); v = 8 * y + 1; for (n = 1; n < v; n++) m[n] = m[0].clone(); n = 1; for (var q = y; q > 0; ) { m[n].css({ left: q * 2, top: 0 }); m[n + 1].css({ left: q * 4, top: q * 2 }); m[n + 2].css({ left: q * 2, top: q * 4 }); m[n + 3].css({ left: 0, top: q * 2 }); m[n + 4].css({ left: q * 3, top: q }); m[n + 5].css({ left: q * 3, top: q * 3 }); m[n + 6].css({ left: q, top: q * 3 }); m[n + 7].css({ left: q, top: q }); n += 8; q-- } var z = f("<div></div>").attr("id", t).addClass("dropShadow").css({ left: j.position().left + c.left - y, marginTop: j.css("marginTop"), marginRight: j.css("marginRight"), marginBottom: j.css("marginBottom"), marginLeft: j.css("marginLeft"), position: "absolute", top: j.position().top + c.top - y, zIndex: o }); for (n = 0; n < v; n++) z.append(m[n]); j.after(z); h = h.add(z); f(window).resize(function() { try { z.css({ left: j.position().left + c.left - y, top: j.position().top + c.top - y }) } catch (B) { } }); a += 2 }); return this.pushStack(h) }; f.fn.redrawShadow = function() { this.removeShadow(); return this.each(function() { var d = f.data(this, "shadowOptions"); f(this).dropShadow(d) }) }; f.fn.removeShadow = function() { return this.each(function() { var d = f(this).shadowId(); f("div#" + d).remove() }) }; f.fn.shadowId = function() { return f.data(this[0], "shadowId") }; f(function() { var d = "<style type='text/css' media='print'>"; d += ".dropShadow{visibility:hidden;}</style>"; f("head").append(d) }) })(jQuery); jQuery.easing.jswing = jQuery.easing.swing; jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function(f, a, d, c, h) { return jQuery.easing[jQuery.easing.def](f, a, d, c, h) }, easeInQuad: function(f, a, d, c, h) { return c * (a /= h) * a + d }, easeOutQuad: function(f, a, d, c, h) { return -c * (a /= h) * (a - 2) + d }, easeInOutQuad: function(f, a, d, c, h) { if ((a /= h / 2) < 1) return c / 2 * a * a + d; return -c / 2 * (--a * (a - 2) - 1) + d }, easeInCubic: function(f, a, d, c, h) { return c * (a /= h) * a * a + d }, easeOutCubic: function(f, a, d, c, h) { return c * ((a = a / h - 1) * a * a + 1) + d }, easeInOutCubic: function(f, a, d, c, h) { if ((a /= h / 2) < 1) return c / 2 * a * a * a + d; return c / 2 * ((a -= 2) * a * a + 2) + d }, easeInQuart: function(f, a, d, c, h) { return c * (a /= h) * a * a * a + d }, easeOutQuart: function(f, a, d, c, h) { return -c * ((a = a / h - 1) * a * a * a - 1) + d }, easeInOutQuart: function(f, a, d, c, h) { if ((a /= h / 2) < 1) return c / 2 * a * a * a * a + d; return -c / 2 * ((a -= 2) * a * a * a - 2) + d }, easeInQuint: function(f, a, d, c, h) { return c * (a /= h) * a * a * a * a + d }, easeOutQuint: function(f, a, d, c, h) { return c * ((a = a / h - 1) * a * a * a * a + 1) + d }, easeInOutQuint: function(f, a, d, c, h) { if ((a /= h / 2) < 1) return c / 2 * a * a * a * a * a + d; return c / 2 * ((a -= 2) * a * a * a * a + 2) + d }, easeInSine: function(f, a, d, c, h) { return -c * Math.cos(a / h * (Math.PI / 2)) + c + d }, easeOutSine: function(f, a, d, c, h) { return c * Math.sin(a / h * (Math.PI / 2)) + d }, easeInOutSine: function(f, a, d, c, h) { return -c / 2 * (Math.cos(Math.PI * a / h) - 1) + d }, easeInExpo: function(f, a, d, c, h) { return a == 0 ? d : c * Math.pow(2, 10 * (a / h - 1)) + d }, easeOutExpo: function(f, a, d, c, h) { return a == h ? d + c : c * (-Math.pow(2, -10 * a / h) + 1) + d }, easeInOutExpo: function(f, a, d, c, h) { if (a == 0) return d; if (a == h) return d + c; if ((a /= h / 2) < 1) return c / 2 * Math.pow(2, 10 * (a - 1)) + d; return c / 2 * (-Math.pow(2, -10 * --a) + 2) + d }, easeInCirc: function(f, a, d, c, h) { return -c * (Math.sqrt(1 - (a /= h) * a) - 1) + d }, easeOutCirc: function(f, a, d, c, h) { return c * Math.sqrt(1 - (a = a / h - 1) * a) + d }, easeInOutCirc: function(f, a, d, c, h) { if ((a /= h / 2) < 1) return -c / 2 * (Math.sqrt(1 - a * a) - 1) + d; return c / 2 * (Math.sqrt(1 - (a -= 2) * a) + 1) + d }, easeInElastic: function(f, a, d, c, h) { f = 1.70158; var j = 0, m = c; if (a == 0) return d; if ((a /= h) == 1) return d + c; j || (j = h * 0.3); if (m < Math.abs(c)) { m = c; f = j / 4 } else f = j / (2 * Math.PI) * Math.asin(c / m); return -(m * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * h - f) * 2 * Math.PI / j)) + d }, easeOutElastic: function(f, a, d, c, h) { f = 1.70158; var j = 0, m = c; if (a == 0) return d; if ((a /= h) == 1) return d + c; j || (j = h * 0.3); if (m < Math.abs(c)) { m = c; f = j / 4 } else f = j / (2 * Math.PI) * Math.asin(c / m); return m * Math.pow(2, -10 * a) * Math.sin((a * h - f) * 2 * Math.PI / j) + c + d }, easeInOutElastic: function(f, a, d, c, h) { f = 1.70158; var j = 0, m = c; if (a == 0) return d; if ((a /= h / 2) == 2) return d + c; j || (j = h * 0.3 * 1.5); if (m < Math.abs(c)) { m = c; f = j / 4 } else f = j / (2 * Math.PI) * Math.asin(c / m); if (a < 1) return -0.5 * m * Math.pow(2, 10 * (a -= 1)) * Math.sin((a * h - f) * 2 * Math.PI / j) + d; return m * Math.pow(2, -10 * (a -= 1)) * Math.sin((a * h - f) * 2 * Math.PI / j) * 0.5 + c + d }, easeInBack: function(f, a, d, c, h, j) { if (j == undefined) j = 1.70158; return c * (a /= h) * a * ((j + 1) * a - j) + d }, easeOutBack: function(f, a, d, c, h, j) { if (j == undefined) j = 1.70158; return c * ((a = a / h - 1) * a * ((j + 1) * a + j) + 1) + d }, easeInOutBack: function(f, a, d, c, h, j) { if (j == undefined) j = 1.70158; if ((a /= h / 2) < 1) return c / 2 * a * a * (((j *= 1.525) + 1) * a - j) + d; return c / 2 * ((a -= 2) * a * (((j *= 1.525) + 1) * a + j) + 2) + d }, easeInBounce: function(f, a, d, c, h) { return c - jQuery.easing.easeOutBounce(f, h - a, 0, c, h) + d }, easeOutBounce: function(f, a, d, c, h) { return (a /= h) < 1 / 2.75 ? c * 7.5625 * a * a + d : a < 2 / 2.75 ? c * (7.5625 * (a -= 1.5 / 2.75) * a + 0.75) + d : a < 2.5 / 2.75 ? c * (7.5625 * (a -= 2.25 / 2.75) * a + 0.9375) + d : c * (7.5625 * (a -= 2.625 / 2.75) * a + 0.984375) + d }, easeInOutBounce: function(f, a, d, c, h) { if (a < h / 2) return jQuery.easing.easeInBounce(f, a * 2, 0, c, h) * 0.5 + d; return jQuery.easing.easeOutBounce(f, a * 2 - h, 0, c, h) * 0.5 + c * 0.5 + d } }); var tb_pathToImage = "/images/backend/thickbox/loadingAnimation.gif"; jQuery(document).ready(function() { tb_init("a.thickbox, area.thickbox, input.thickbox"); imgLoader = new Image; imgLoader.src = tb_pathToImage }); function tb_init(f) { jQuery(f).click(function() { tb_show(this.title || this.name || null, this.href || this.alt, this.rel || false); this.blur(); return false }) } function tb_show(f, a, d) { try { if (typeof document.body.style.maxHeight === "undefined") { jQuery("body", "html").css({ height: "100%", width: "100%" }); jQuery("html").css("overflow", "hidden"); document.getElementById("TB_HideSelect") === null && jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>") } else document.getElementById("TB_overlay") === null && jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"); jQuery("#TB_overlay").addClass("TB_overlayBG"); if (f === null) f = ""; jQuery("body").append("<div id='TB_load'><img src='" + imgLoader.src + "' /></div>"); jQuery("#TB_load").show(); var c = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/, h = (a.indexOf("?") !== -1 ? a.substr(0, a.indexOf("?")) : a).toLowerCase().match(c); if (h == ".jpg" || h == ".jpeg" || h == ".png" || h == ".gif" || h == ".bmp") { TB_imageCount = TB_NextHTML = TB_NextURL = TB_NextCaption = TB_PrevHTML = TB_PrevURL = TB_PrevCaption = ""; TB_FoundURL = false; if (d) { TB_TempArray = jQuery("a[@rel=" + d + "]").get(); for (TB_Counter = 0; TB_Counter < TB_TempArray.length && TB_NextHTML === ""; TB_Counter++) { TB_TempArray[TB_Counter].href.toLowerCase().match(c); if (TB_TempArray[TB_Counter].href != a) if (TB_FoundURL) { TB_NextCaption = TB_TempArray[TB_Counter].title; TB_NextURL = TB_TempArray[TB_Counter].href; TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a class='color' href='#'>Next &gt;</a></span>" } else { TB_PrevCaption = TB_TempArray[TB_Counter].title; TB_PrevURL = TB_TempArray[TB_Counter].href; TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a class='color' href='#'>&lt; Prev</a></span>" } else { TB_FoundURL = true; TB_imageCount = "Image " + (TB_Counter + 1) + " of " + TB_TempArray.length } } } imgPreloader = new Image; imgPreloader.onload = function() { imgPreloader.onload = null; var v = tb_getPageSize(), n = v[0] - 100; v = v[1] - 100; var o = imgPreloader.width, t = imgPreloader.height; if (o > n) { t *= n / o; o = n; if (t > v) { o *= v / t; t = v } } else if (t > v) { o *= v / t; t = v; if (o > n) { t *= n / o; o = n } } TB_WIDTH = o + 30; TB_HEIGHT = t + 60; browser.safari ? jQuery("#TB_window").append("<div class='TB_ImageOff closebtn'></div><a href='javascript:void()' class='TB_ImageOff' title='Sluit venster'><img id='TB_Image' src='" + a + "' width='" + o + "' height='" + t + "' alt='" + f + "'/></a><div class='georgia atta left' id='TB_caption'><span><em>&ldquo; " + f + " &bdquo;</em></span></div><div class='right darkgreytxt' id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div>") : jQuery("#TB_window").append("<div class='TB_ImageOff closebtn'></div><div class='tl'></div><div style='width:" + (o + 6) + "px !important;' class='tm'></div><div class='tr'></div><div style='height:" + (t + 26) + "px !important;' class='ml'></div><a href='javascript:void()' class='TB_ImageOff' title='Sluit venster'><img id='TB_Image' src='" + a + "' width='" + o + "' height='" + t + "' alt='" + f + "'/></a><div class='georgia atta left' id='TB_caption'><span><em>&ldquo; " + f + " &bdquo;</em></span></div><div class='right darkgreytxt' id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div><div style='height:" + (t + 26) + "px !important;' class='mr'></div><div class='bl'></div><div style='width:" + (o + 6) + "px !important;' class='bm'></div><div class='br'></div>"); jQuery("#TB_closeWindowButton").click(tb_remove); if (TB_PrevHTML !== "") { function q() { jQuery(document).unbind("click", q) && jQuery(document).unbind("click", q); jQuery("#TB_window").remove(); jQuery("body").append("<div id='TB_window'></div>"); tb_show(TB_PrevCaption, TB_PrevURL, d); return false } jQuery("#TB_prev").click(q) } if (TB_NextHTML !== "") { function z() { jQuery("#TB_window").remove(); jQuery("body").append("<div id='TB_window'></div>"); tb_show(TB_NextCaption, TB_NextURL, d); return false } jQuery("#TB_next").click(z) } document.onkeydown = function(B) { keycode = B == null ? event.keyCode : B.which; if (keycode == 27) tb_remove(); else if (keycode == 190 || keycode == 39) { if (TB_NextHTML != "") { document.onkeydown = ""; z() } } else if (keycode == 188 || keycode == 37) if (TB_PrevHTML != "") { document.onkeydown = ""; q() } }; tb_position(); jQuery("#TB_load").remove(); jQuery(".TB_ImageOff").click(tb_remove); jQuery("#TB_window").css({ display: "block" }) }; imgPreloader.src = a } else { var j = a.replace(/^[^\?]+\??/, ""), m = tb_parseQuery(j); TB_WIDTH = m.width * 1 + 30 || 630; TB_HEIGHT = m.height * 1 + 40 || 440; ajaxContentW = TB_WIDTH - 30; ajaxContentH = TB_HEIGHT - 45; if (a.indexOf("TB_iframe") != -1) { urlNoQuery = a.split("TB_"); jQuery("#TB_iframeContent").remove(); if (m.modal != "true") browser.safari ? jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>" + f + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Sluit venster'>Sluit venster</a></div></div><iframe frameborder='0' hspace='0' src='" + urlNoQuery[0] + "' id='TB_iframeContent' name='TB_iframeContent" + Math.round(Math.random() * 1E3) + "' onload='tb_showIframe()' style='width:" + (ajaxContentW + 29) + "px;height:" + (ajaxContentH + 17) + "px;' > </iframe>") : jQuery("#TB_window").append("<div class='tl'></div><div style='width:" + (ajaxContentW + 6) + "px !important;' class='tm'></div><div class='tr'></div><div style='height:" + (ajaxContentH + 20) + "px !important;' class='ml'></div><div style='height:" + (ajaxContentH + 20) + "px !important;' class='mr'></div><div class='bl'></div><div style='width:" + (ajaxContentW + 6) + "px !important;' class='bm'></div><div class='br'></div><div id='TB_title'><div id='TB_ajaxWindowTitle'>" + f + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Sluit venster'>Sluit venster</a></div></div><iframe frameborder='0' hspace='0' src='" + urlNoQuery[0] + "' id='TB_iframeContent' name='TB_iframeContent" + Math.round(Math.random() * 1E3) + "' onload='tb_showIframe()' style='width:" + (ajaxContentW + 29) + "px;height:" + (ajaxContentH + 17) + "px;' > </iframe>"); else { jQuery("#TB_overlay").unbind(); jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='" + urlNoQuery[0] + "' id='TB_iframeContent' name='TB_iframeContent" + Math.round(Math.random() * 1E3) + "' onload='tb_showIframe()' style='width:" + (ajaxContentW + 29) + "px;height:" + (ajaxContentH + 17) + "px;'>  </iframe>") } } else if (jQuery("#TB_window").css("display") != "block") if (m.modal != "true") browser.safari ? jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>" + f + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>Sluit venster</a></div></div><div id='TB_ajaxContent' style='width:" + ajaxContentW + "px;height:" + ajaxContentH + "px'></div>") : jQuery("#TB_window").append("<div class='tl'></div><div style='width:" + (ajaxContentW + 6) + "px !important;' class='tm'></div><div class='tr'></div><div style='height:" + (ajaxContentH + 20) + "px !important;' class='ml'></div><div style='height:" + (ajaxContentH + 20) + "px !important;' class='mr'></div><div class='bl'></div><div style='width:" + (ajaxContentW + 6) + "px !important;' class='bm'></div><div class='br'></div><div id='TB_title'><div id='TB_ajaxWindowTitle'>" + f + "</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>Sluit venster</a></div></div><div id='TB_ajaxContent' style='width:" + ajaxContentW + "px;height:" + ajaxContentH + "px'></div>"); else { jQuery("#TB_overlay").unbind(); jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:" + ajaxContentW + "px;height:" + ajaxContentH + "px;'></div>") } else { jQuery("#TB_ajaxContent")[0].style.width = ajaxContentW + "px"; jQuery("#TB_ajaxContent")[0].style.height = ajaxContentH + "px"; jQuery("#TB_ajaxContent")[0].scrollTop = 0; jQuery("#TB_ajaxWindowTitle").html(f) } jQuery("#TB_closeWindowButton").click(tb_remove); if (a.indexOf("TB_inline") != -1) { jQuery("#TB_ajaxContent").append(jQuery("#" + m.inlineId).children()); jQuery("#TB_window").unload(function() { jQuery("#" + m.inlineId).append(jQuery("#TB_ajaxContent").children()) }); tb_position(); jQuery("#TB_load").remove(); jQuery("#TB_window").css({ display: "block" }) } else if (a.indexOf("TB_iframe") != -1) { tb_position(); if (jQuery.browser.safari) { jQuery("#TB_load").remove(); jQuery("#TB_window").css({ display: "block" }) } } else jQuery("#TB_ajaxContent").load(a += "&random=" + (new Date).getTime(), function() { tb_position(); jQuery("#TB_load").remove(); tb_init("#TB_ajaxContent a.thickbox"); jQuery("#TB_window").css({ display: "block" }) }) } if (!m.modal) document.onkeyup = function(v) { keycode = v == null ? event.keyCode : v.which; keycode == 27 && tb_remove() } } catch (y) { } } function tb_showIframe() { jQuery("#TB_load").remove(); jQuery("#TB_window").css({ display: "block" }) } function tb_remove() { jQuery(".TB_imageOff").unbind("click"); jQuery("#TB_closeWindowButton").unbind("click"); jQuery("#TB_window").fadeOut("fast", function() { jQuery("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove() }); jQuery("#TB_load").remove(); if (typeof document.body.style.maxHeight == "undefined") { jQuery("body", "html").css({ height: "auto", width: "auto" }); jQuery("html").css("overflow", "") } try { document.onkeydown = keyDown } catch (f) { } return false } function tb_position() { jQuery("#TB_window").css({ marginLeft: "-" + parseInt(TB_WIDTH / 2, 10) + "px", width: TB_WIDTH + "px" }); jQuery.browser.msie && jQuery.browser.version < 7 || jQuery("#TB_window").css({ marginTop: "-" + parseInt(TB_HEIGHT / 2, 10) + "px" }) } function tb_parseQuery(f) { var a = {}; if (!f) return a; f = f.split(/[;&]/); for (var d = 0; d < f.length; d++) { var c = f[d].split("="); if (!(!c || c.length != 2)) { var h = unescape(c[0]); c = unescape(c[1]); c = c.replace(/\+/g, " "); a[h] = c } } return a } function tb_getPageSize() { var f = document.documentElement; return arrayPageSize = [window.innerWidth || self.innerWidth || f && f.clientWidth || document.body.clientWidth, window.innerHeight || self.innerHeight || f && f.clientHeight || document.body.clientHeight] } function tb_detectMacXFF() { var f = navigator.userAgent.toLowerCase(); if (f.indexOf("mac") != -1 && f.indexOf("firefox") != -1) return true } function OpenLoadingFacetBase(f) { var a = document; if (window.frameElement) if (window.frameElement.refWindow) a = window.frameElement.refWindow.windowSystem.refBlockLayerElement.ownerDocument; f || (f = "Een moment geduld"); var d = [], c = a.createElement("div"); c.className = "loading"; var h = a.createElement("img"); h.src = "/images/backend/loading.gif"; h.alt = "Loading"; h.className = "loading"; c.appendChild(h); h = a.createElement("p"); h.appendChild(a.createTextNode(f)); c.appendChild(h); d.push(c); var j; if (window.frameElement) if (window.frameElement.refWindow) { j = window.frameElement.refWindow.windowSystem.OpenLoadingWindow(d, "aPopin", 480, 210); window.frameElement.refWindow.LoadingWin = j } j || (j = Aspacts.Idios3.I_CAP.Scripting.InlineWin.System.OpenLoadingWindow(d, "aPopin", 480, 210)); j.refElement2.style.position = "relative" };
