// ***********************************************************************************************************
// POPUP LAYER ENGINE VER. 1.5.2
// THIS SCRIPT CAN BE USED FREELY FOR NON-COMMERCIAL PURPOSES AS LONG AS THIS COPYRIGHT MESSAGE IS INTACT
// MORTEN NEESGAARD - WWW.OPFINDEREN.DK (C) 2007 - ALL RIGHTS RESERVED
// YOU MAY NOT MODIFY THIS SCRIPT OR SELL IT TO THIRD PARTY WITHOUT A WRITTEN AGREEMENT FROM OPFINDEREN.DK
// OPFINDEREN.DK DISCLAIMS ALL RESPONSIBILITY FOR ANY LOSS OR DAMAGE THAT MAY RESULT FROM USE OF THIS SCRIPT
// PLEASE TELL ME IF YOU DECIDE TO USE THIS POPUP ENGINE. THANK YOU. CONTACT: INFO[AT]OPFINDEREN[DOT]DK
// ***********************************************************************************************************

// This script has been obfuscated with Syntropy's  JCE - Javascript Chaos Engine which can be downloaded at http://www.syntropy.se.
// JCE is free to use if this comment is not removed.

// Ver. 1.0.1: Bug fix. If a Popup is auto closing simultaneously with moving or resizing it an error occurred.
// Ver. 1.0.2: Bug fix. A non-movable Popup cannot be focused when clicking on the title bar.
// Ver. 1.0.3: Bug fix. Title bar text was selected when moving a Popup in Mozilla based browsers.
// Ver. 1.0.4: Bug fix. Move title was displayed even if the Popup was non-movable.
// Ver. 1.1.0: Bug fix. The title bar of the Popup could hide itself outside the view port in Mozilla/Opera.
// Ver. 1.1.1: Bug fix. The Popup didn't stop moving or resizing when mouse button was released outside the view port in IE.
// Ver. 1.1.2: Change. HTML code as title text will now be encoded automatically.
// Ver. 1.2.0: New feature. An html element can now be appended to the Popup and used as content.
// Ver. 1.2.1: Bug fix. Combo boxes that was hided automatically didn't show up again after closing the last popup.
// Ver. 1.2.2: Bug fix. The content element was removed when reopening a popup.
// Ver. 1.3.0: New feature. Blink and shake effects are added.
// Ver. 1.3.1. Bug fix. The title bar had a wrong color when the popup was partial transparent.
// Ver. 1.4.0: New feature. The popup can now be slided in from all corners of the world. Also a combination of these.
// Ver. 1.4.1: Bug fix. Elements behind the popup showed through the title bar when it was partial transparent.
// Ver. 1.5.0: New feature. The popup can now be positioned in all corners of the world or from using co-ordinates by choice.
// Ver. 1.5.1: Bug fix. The popup couldn't cancel a resize operation in Opera when it had a scrollbar.
// Ver. 1.5.2: Bug fix. A wrong value of the view port height was returned in Safari on Macintosh.

// Browser test:
// -------------------------	Windows		Macintosh
// Opera 9.x					OK			N/A
// Internet Explorer 6.x/7.x	OK			N/A
// Mozilla Firefox 2.x			OK			OK
// Netscape 8.x					OK			N/A
// Safari 2.x					N/A			OK
// Camino 1.x					N/A			OK (resize/scroll doesn't work together)

// Below you may configure the default properties that will apply to each of the popup windows.
// All default properties can be overrided by each individual popup instance to fit your needs.

///// Start default properties configuration
var vBorderWidth = 1;				// The border width in pixels of the popup.
var vInnerWidth = 655;				// The width in pixels of the popup content area.
var vInnerHeight = 272;				// The height in pixels of the popup content area.
var vFinalPosition = "NW";			// The position of the popup. Ie. "W" or "N" or "SE". Leave blank if the popup should be centered.
var vTopOffset = 20;					// The vertical offset in pixels from the original position of the popup.
var vLeftOffset = 20;				// The horizontal offset in pixels from the original position of the popup.
var vSlideDirection = "";			// The corner of the world that the popup should slide in from. Ie. "NW" or "S" or "E".
var vShakeDuration = 0;				// The number of seconds the popup should shake when it is loaded.
var vKeepPosition = true;			// Indicates whether the popup should maintain position when scrolling in browser.
var vAllowScroll = false;			// Indicates whether scrolling is possible in the popup if not all content can be displayed.
var vAllowMove = true;				// Indicates whether it is possible to move the popup.
var vAllowResize = false;			// Indicates whether it is possible to resize the popup.
var vShowIcons = true;				// Indicates whether the close, minimize and maximize icon is visible.
var vDisappearAfter = 900;			// The time in seconds to the popup will disappear. Set to zero if it never should disappear.
var vBorderColor = "#000257";		// The color of the popup border.
var vBackColor = "#E3E3E3";			// The background color of the popup.
var vTitleColor = "black";			// The font color of the popup title.
var vTitleFontFamily = "Verdana";		// The font family name of the popup title.
var vTitleFontSize = "12px";		// The font size of the popup title.
var vBarBackColor = "#000257";		// The background color of the popup title bar
var vMoveTitle = "Flyt";			// The hover text of the title bar.
var vMinTitle = "Minimér";			// The hover text of the minimize icon.
var vMaxTitle = "Maksimér";			// The hover text of the maximize icon.
var vCloseTitle = "Luk";			// The hover text of the close icon.
var vResizeTitle = "Resize";		// The hover text of the resize area.
var vTitleText = "Information";	// The inner text of the title bar.
var vContentHTML = "Content";		// The inner html of the content frame. This value is only used when PopupContentElementID is blank.
var vContentElementID = "";			// The id of an element that should be displayed in the content frame. Ie. an image or a div.
///// End default properties configuration

// ***********************************************************************************************************

var x391f24bba9c = (navigator.appName == "Microsoft Internet Explorer");
var x39dd3f53b28 = (navigator.appName == "Netscape");
var xac1ec4f0e12 = (navigator.appName == "Opera");
var x6da319cd7d6 = (navigator.userAgent.indexOf('Mac') != -1);
var x1991f32fc63 = 1000;
var xa35c4b15557 = null;
var xbe3563e67c6 = 0;
function xde17e0b3534(x18e8a561f85)
{
if (x18e8a561f85 != xa35c4b15557)
{
if (xa35c4b15557 != null) {
x9e7649183d6(xa35c4b15557, 60);
}
x18e8a561f85.style.zIndex = x1991f32fc63++;
xaa40827188f = document.getElementById("Title" + x18e8a561f85.id);
x9e7649183d6(x18e8a561f85, 100);
xa35c4b15557 = x18e8a561f85;
}
}
function x9e7649183d6(x0afba2a314a, x2b579433443)
{
xaa40827188f = document.getElementById("Title" + x0afba2a314a.id);
xaed36f92eae = document.getElementById("Tool" + x0afba2a314a.id);
x72c56d41f96(xaa40827188f, x2b579433443);
x72c56d41f96(xaed36f92eae, x2b579433443);
}
function x72c56d41f96(x14608a938c1, x2b579433443)
{
if (x14608a938c1 != null)
{
x14608a938c1.style.filter = "alpha(opacity=" + x2b579433443 + ")";
x14608a938c1.style.MozOpacity = x2b579433443 / 100;
x14608a938c1.style.opacity = x2b579433443 / 100;
}
}
function xe3bae38a8c5(x9f678c44ef9)
{
x9f678c44ef9 = x9f678c44ef9.replace(/</g, "&lt;");
x9f678c44ef9 = x9f678c44ef9.replace(/>/g, "&gt;");
return x9f678c44ef9;
}
function xfe62f4839b8()
{
if (navigator.userAgent.indexOf("MSIE 6") != -1)
{
x4129df2d618 = document.getElementsByTagName("select");
for (x94a269648c3 = 0; x94a269648c3 < x4129df2d618.length; x94a269648c3++) {
x4129df2d618[x94a269648c3].style.visibility = (xbe3563e67c6 > 0) ? "hidden" : "visible";
}
}
}
function xb91dfe3a165(x99a44494253, x23f1c56db28)
{
if (x39dd3f53b28) {
x23f1c56db28.preventDefault();
}
else if (xac1ec4f0e12) {
x23f1c56db28.returnValue = x99a44494253;
}
else if (x391f24bba9c) {
document.onselectstart = function() { return x99a44494253 };
}
}
function x3278593775d()
{
var x2411ee1b248 = window.pageXOffset ||
document.body.scrollLeft ||
document.documentElement.scrollLeft;
return x2411ee1b248 ? x2411ee1b248 : 0;
}
function xc145982fa46()
{
var xd83eea1bbd4 = window.pageYOffset ||
document.body.scrollTop ||
document.documentElement.scrollTop;
return xd83eea1bbd4 ? xd83eea1bbd4 : 0;
}
function x29d9896bacc()
{
if (document.documentElement && document.documentElement.clientWidth) {
return document.documentElement.clientWidth;
}
return null;
}
function xeb4c15b8f77()
{
if (xac1ec4f0e12 || x39dd3f53b28 && x6da319cd7d6) {
return self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight) {
return document.documentElement.clientHeight;
}
return null;
}
function Popup()
{
this.vBorderWidth = vBorderWidth;
this.vInnerWidth = vInnerWidth;
this.vInnerHeight = vInnerHeight;
this.vTopOffset = vTopOffset;
this.vLeftOffset = vLeftOffset;
this.vFinalPosition = vFinalPosition;
this.vSlideDirection = vSlideDirection;
this.vShakeDuration = vShakeDuration;
this.vKeepPosition = vKeepPosition;
this.vAllowScroll = vAllowScroll;
this.vAllowMove = vAllowMove;
this.vAllowResize = vAllowResize;
this.vShowIcons = vShowIcons;
this.vDisappearAfter = vDisappearAfter;
this.vBorderColor = vBorderColor;
this.vBackColor = vBackColor;
this.vTitleColor = vTitleColor;
this.vTitleFontFamily = vTitleFontFamily;
this.vTitleFontSize = vTitleFontSize;
this.vBarBackColor = vBarBackColor;
this.vMoveTitle = vMoveTitle;
this.vMinTitle = vMinTitle;
this.vMaxTitle = vMaxTitle;
this.vCloseTitle = vCloseTitle;
this.vResizeTitle = vResizeTitle;
this.vTitleText = vTitleText;
this.vContentHTML = vContentHTML;
this.vContentElementID = vContentElementID;
this.xac18dd88e42 = null;
this.x3a389c2b141 = null;
this.xaac01b2db51 = null;
this.xde5ca0d8238 = null;
this.x2218d3e5bd7 = null;
this.x4b4749158fb = null;
var xd1e59e54877 = this;
this.x359e2768d37 = function(xfd4d353d828, xab7f6f1f822)
{

return (this.xac18dd88e42 == null || x391f24bba9c && window.event.button != 1 ||
x39dd3f53b28 && (xab7f6f1f822 >= xc145982fa46() + xeb4c15b8f77() - 3 || xab7f6f1f822 <= xc145982fa46() + 3));
}
this.xa827891292d = function(x23f1c56db28)
{
if (this.vAllowMove)
{
this.xac18dd88e42.style.borderStyle = "dotted";
document.body.style.cursor = "move";
this.xaac01b2db51 = (x39dd3f53b28) ? x23f1c56db28.pageX : window.event.clientX;
this.xde5ca0d8238 = (x39dd3f53b28) ? x23f1c56db28.pageY : window.event.clientY;
document.onmousemove = function(x23f1c56db28) { xd1e59e54877.xa23b6207a28(x23f1c56db28); };
document.onmouseup = function(x23f1c56db28) { xd1e59e54877.x1318fbb3faa(x23f1c56db28); };
xb91dfe3a165(false, x23f1c56db28);
}
}
this.xa23b6207a28 = function(x23f1c56db28)
{
xfd4d353d828 = (x39dd3f53b28) ? x23f1c56db28.pageX : window.event.clientX;
xab7f6f1f822 = (x39dd3f53b28) ? x23f1c56db28.pageY : window.event.clientY;
if (this.x359e2768d37(xfd4d353d828, xab7f6f1f822)) {
this.x1318fbb3faa(x23f1c56db28);
return false;
}
this.xac18dd88e42.style.left = parseInt(this.xac18dd88e42.style.left) + xfd4d353d828 - this.xaac01b2db51 + "px";
this.xac18dd88e42.style.top = parseInt(this.xac18dd88e42.style.top) + xab7f6f1f822 - this.xde5ca0d8238 + "px";
this.xaac01b2db51 = xfd4d353d828;
this.xde5ca0d8238 = xab7f6f1f822;
}
this.x1318fbb3faa = function(x23f1c56db28)
{
xb91dfe3a165(true, x23f1c56db28);
document.body.style.cursor = "default";
document.onmousemove = null;
document.onmouseup = null;
if (this.xac18dd88e42 != null)
{
this.xac18dd88e42.style.borderStyle = "solid";

setTimeout(function() { xd1e59e54877.x19dbe1edb47(); }, 500);
}
}
this.x19dbe1edb47 = function()
{
if (this.xac18dd88e42 != null)
{
x53b3fa37c12 = xc145982fa46();
xa5da98755aa = xc145982fa46() + xeb4c15b8f77() - 18 - this.vBorderWidth;
if (parseInt(this.xac18dd88e42.style.top) < x53b3fa37c12) {
this.xac18dd88e42.style.top = x53b3fa37c12 + "px";
}
if (parseInt(this.xac18dd88e42.style.top) > xa5da98755aa) {
this.xac18dd88e42.style.top = xa5da98755aa + "px";
}
}
}
this.x17264bc2368 = function(x23f1c56db28)
{
if (this.vAllowResize)
{
this.xac18dd88e42.style.borderStyle = "dotted";
document.body.style.cursor = "nw-resize";
this.xaac01b2db51 = (x39dd3f53b28) ? x23f1c56db28.pageX : window.event.clientX;
this.xde5ca0d8238 = (x39dd3f53b28) ? x23f1c56db28.pageY : window.event.clientY;
document.onmousemove = function(x23f1c56db28) { xd1e59e54877.xc8c421aa683(x23f1c56db28); };
document.onmouseup = function(x23f1c56db28) { xd1e59e54877.xcb2edab31eb(x23f1c56db28); };
this.x9ab95199e8f(false);
xb91dfe3a165(false, x23f1c56db28);
}
}
this.xc8c421aa683 = function(x23f1c56db28)
{
xfd4d353d828 = (x39dd3f53b28) ? x23f1c56db28.pageX : window.event.clientX;
xab7f6f1f822 = (x39dd3f53b28) ? x23f1c56db28.pageY : window.event.clientY;
if (this.x359e2768d37(xfd4d353d828, xab7f6f1f822)) {
this.xcb2edab31eb(x23f1c56db28);
return false;
}
xaa40827188f = document.getElementById("Title" + this.xac18dd88e42.id);
x4597683f601 = document.getElementById("Content" + this.xac18dd88e42.id);
xb618ecc0a03 = parseInt(x4597683f601.style.width) + xfd4d353d828 - this.xaac01b2db51;
x4f44ef1c5e9 = parseInt(x4597683f601.style.height) + xab7f6f1f822 - this.xde5ca0d8238;
if (xb618ecc0a03 >= 100)
{
this.xac18dd88e42.style.width = parseInt(this.xac18dd88e42.style.width) + xfd4d353d828 - this.xaac01b2db51 + "px";
x4597683f601.style.width = xb618ecc0a03 + "px";
xaa40827188f.style.width = parseInt(xaa40827188f.style.width) + xfd4d353d828 - this.xaac01b2db51 + "px";
this.xaac01b2db51 = xfd4d353d828;
}
if (x4f44ef1c5e9 >= 20)
{
this.xac18dd88e42.style.height = parseInt(this.xac18dd88e42.style.height) + xab7f6f1f822 - this.xde5ca0d8238 + "px";
x4597683f601.style.height = x4f44ef1c5e9 + "px";
this.xde5ca0d8238 = xab7f6f1f822;
}
}
this.xcb2edab31eb = function(x23f1c56db28)
{
this.x9ab95199e8f(true);
xb91dfe3a165(true, x23f1c56db28);
document.body.style.cursor = "default";
document.onmousemove = null;
document.onmouseup = null;
if (this.xac18dd88e42 != null) {
this.xac18dd88e42.style.borderStyle = "solid";
}
}
this.xc3b36621656 = function()
{
x4597683f601 = document.getElementById("Content" + this.xac18dd88e42.id);
x8cc34fd9d4d = document.getElementById("Resize" + this.xac18dd88e42.id);
if (x4597683f601.style.display != "none")
{
this.xac18dd88e42.style.height = parseInt(this.xac18dd88e42.style.height) - parseInt(x4597683f601.style.height) + "px";
x4597683f601.style.display = "none";
x8cc34fd9d4d.style.display = "none";
}
}
this.x45d3ba7f19f = function()
{
x4597683f601 = document.getElementById("Content" + this.xac18dd88e42.id);
x8cc34fd9d4d = document.getElementById("Resize" + this.xac18dd88e42.id);
if (x4597683f601.style.display == "none")
{
this.xac18dd88e42.style.height = parseInt(this.xac18dd88e42.style.height) + parseInt(x4597683f601.style.height) + "px";
x4597683f601.style.display = "block";
x8cc34fd9d4d.style.display = "block";
}
}
this.xb0f64d638ba = function()
{
xde17e0b3534(this.xac18dd88e42);
}
this.xe85aad5c171 = function()
{
if (this.xac18dd88e42 != null)
{
xfd4d353d828 = x3278593775d();
xab7f6f1f822 = xc145982fa46();
if (this.x2218d3e5bd7 != null && this.x4b4749158fb != null)
{

this.xac18dd88e42.style.left = parseInt(this.xac18dd88e42.style.left) + xfd4d353d828 - this.x2218d3e5bd7 + "px";
this.xac18dd88e42.style.top = parseInt(this.xac18dd88e42.style.top) + xab7f6f1f822 - this.x4b4749158fb + "px";
}
this.x2218d3e5bd7 = xfd4d353d828;
this.x4b4749158fb = xab7f6f1f822;
}
}
this.x3bba21d292d = function(x817bbb403d3)
{
if (this.xac18dd88e42 != null)
{
var x2b579433443 = ((x817bbb403d3 % 2 == 0) ? 30 : 100);
x9e7649183d6(this.xac18dd88e42, x2b579433443);
if (x817bbb403d3 < 7) {
setTimeout(function() { xd1e59e54877.x3bba21d292d(x817bbb403d3 + 1); }, 40);
}
}
}
this.xe08d7c23369 = function(xfbe14865fd1, xa9ab19a47b0)
{
if (this.xac18dd88e42 != null)
{
this.xac18dd88e42.style.top = parseInt(this.xac18dd88e42.style.top) + ((xfbe14865fd1 % 2 == 0) ? 2 : -2)  + "px";
this.xac18dd88e42.style.left = parseInt(this.xac18dd88e42.style.left) + ((xfbe14865fd1 % 2 == 0) ? 2 : -2) + "px";
if ((new Date).getTime() - xa9ab19a47b0 <= this.vShakeDuration * 1000 || xfbe14865fd1 % 2 == 0) {
setTimeout(function() { xd1e59e54877.xe08d7c23369(xfbe14865fd1 + 1, xa9ab19a47b0); }, 40);
}
}
}
this.xa4483bb93e9 = function(xed3419f6acc, x87a1b0279e2, xc6a2ea53a6f, xdbb2c59a592, x3a5afe6af53)
{
if (xdbb2c59a592) {
this.xac18dd88e42.style.top = xed3419f6acc + "px";
}
else {
this.xac18dd88e42.style.left = xed3419f6acc + "px";
}
if (xed3419f6acc > x87a1b0279e2 && !x3a5afe6af53 || xed3419f6acc < x87a1b0279e2 && x3a5afe6af53)
{
var xe544978f9d7;
if (!x3a5afe6af53 && (xe544978f9d7 = xed3419f6acc - xc6a2ea53a6f) < x87a1b0279e2 || x3a5afe6af53 && (xe544978f9d7 = xed3419f6acc + xc6a2ea53a6f) > x87a1b0279e2) {
xe544978f9d7 = x87a1b0279e2;
}

setTimeout(function() { xd1e59e54877.xa4483bb93e9(xe544978f9d7, x87a1b0279e2, xc6a2ea53a6f * 2, xdbb2c59a592, x3a5afe6af53); }, 30);
}
}
this.x23025df8487 = function()
{

var x8ffe79c167d = this.vInnerWidth + this.vBorderWidth * 2;
var xe13db03d8ba = this.vInnerHeight + 18 + this.vBorderWidth * 2;
var x1917221df65 = this.vSlideDirection.indexOf("N") != -1;
var x9b41cb97ef7 = this.vSlideDirection.indexOf("W") != -1;
var xb8511871a02 = this.vSlideDirection.indexOf("S") != -1;
var xd9d9ec26c7c = this.vSlideDirection.indexOf("E") != -1;
var xd2b95625b48 = this.vFinalPosition.indexOf("N") != -1;
var x9c8d97d3866 = this.vFinalPosition.indexOf("W") != -1;
var x845b9fa39cb = this.vFinalPosition.indexOf("S") != -1;
var xf26313bf16c = this.vFinalPosition.indexOf("E") != -1;
var x5e896f56bcd = x3278593775d() + this.vLeftOffset;
if (x9c8d97d3866 || xf26313bf16c) {
x5e896f56bcd += (x9c8d97d3866) ? 0 : x29d9896bacc() - x8ffe79c167d;
}
else { x5e896f56bcd += Math.round((x29d9896bacc() - x8ffe79c167d) / 2); }
var x5bd33af95bc = xc145982fa46() + this.vTopOffset;
if (xd2b95625b48 || x845b9fa39cb) {
x5bd33af95bc += (xd2b95625b48) ? 0 : xeb4c15b8f77() - xe13db03d8ba;
}
else { x5bd33af95bc += Math.round((xeb4c15b8f77() - xe13db03d8ba) / 2); }
if (x9b41cb97ef7 || xd9d9ec26c7c)
{
var xb19c35784fa = (x9b41cb97ef7) ? x3278593775d() - x8ffe79c167d : x3278593775d() + x29d9896bacc();
this.xa4483bb93e9(xb19c35784fa, x5e896f56bcd, 1, false, x9b41cb97ef7);
}
else { this.xac18dd88e42.style.left = x5e896f56bcd + "px"; }
if (x1917221df65 || xb8511871a02)
{
var x7cd58ef2385 = (x1917221df65) ? xc145982fa46() - xe13db03d8ba : xc145982fa46() + xeb4c15b8f77();
this.xa4483bb93e9(x7cd58ef2385, x5bd33af95bc, 1, true, x1917221df65);
}
else { this.xac18dd88e42.style.top = x5bd33af95bc + "px"; }
}
this.x73bc382b3f5 = function(xbd7eeb1aad4, xfd4d353d828, xab7f6f1f822, x9f6e3e4331f, x7283ba1bc38, xe032899cfe8)
{
xd497b57a746 = document.createElement("div");
xd497b57a746.style.position = "absolute";
xd497b57a746.style.overflow = "hidden";
xd497b57a746.style.width = x9f6e3e4331f + "px";
xd497b57a746.style.height = x7283ba1bc38 + "px";
xd497b57a746.style.left = xfd4d353d828 + "px";
xd497b57a746.style.top = xab7f6f1f822 + "px";
xd497b57a746.style.backgroundColor = xe032899cfe8;
xbd7eeb1aad4.appendChild(xd497b57a746);
}
this.x763548c31be = function(xbd7eeb1aad4, xfd4d353d828, xab7f6f1f822, xe10dd2f49c3, xe032899cfe8)
{
xa3b964e5158 = Math.round(Math.sqrt(Math.pow(xe10dd2f49c3 * 2, 2) / 2));
for (x82eaa68a32e = xe10dd2f49c3; x82eaa68a32e >= xa3b964e5158 / 2; x82eaa68a32e--)
{
var x6d8b41ccc88 = x82eaa68a32e * 12;
var x48d168fcb11 = (Math.PI * 2) / x6d8b41ccc88;
for(x94a269648c3 = 0; x94a269648c3 < x6d8b41ccc88; x94a269648c3++) {
x3c8f68eef85 = Math.round((Math.sin(x48d168fcb11 * x94a269648c3) * x82eaa68a32e) + xe10dd2f49c3 + xfd4d353d828);
x245544a4180 = Math.round((Math.cos(x48d168fcb11 * x94a269648c3) * x82eaa68a32e) + xe10dd2f49c3 + xab7f6f1f822);
this.x73bc382b3f5(xbd7eeb1aad4, x3c8f68eef85, x245544a4180, 1, 1, xe032899cfe8);
}
}
x3c8f68eef85 = Math.round(xe10dd2f49c3 - xa3b964e5158 / 2 + xfd4d353d828);
x245544a4180 = Math.round(xe10dd2f49c3 - xa3b964e5158 / 2 + xab7f6f1f822);
this.x73bc382b3f5(xbd7eeb1aad4, x3c8f68eef85, x245544a4180, xa3b964e5158, xa3b964e5158, xe032899cfe8);
}
this.x9ab95199e8f = function(xfb9818c1f2f)
{
if (this.vAllowScroll)
{
x4597683f601 = document.getElementById("Content" + this.xac18dd88e42.id);
x4597683f601.style.overflow = (xfb9818c1f2f) ? "auto" : "hidden";
}
}
this.x987234db0bb = function()
{

this.xac18dd88e42 = document.createElement("div");
this.xac18dd88e42.id = "Pop" + (new Date()).getTime();
this.xac18dd88e42.style.width = this.vInnerWidth + "px";
this.xac18dd88e42.style.height = this.vInnerHeight + 18 + "px";
this.xac18dd88e42.style.borderStyle = "solid";
this.xac18dd88e42.style.borderWidth = this.vBorderWidth + "px";
this.xac18dd88e42.style.borderColor = this.vBorderColor;
this.xac18dd88e42.style.backgroundColor = "#FFFFFF";
this.xac18dd88e42.style.position = "absolute";
this.xac18dd88e42.style.overflow = "hidden";
document.body.appendChild(this.xac18dd88e42);

xaa40827188f = document.createElement("div");
xaa40827188f.id = "Title" + this.xac18dd88e42.id;
xaa40827188f.style.width = this.vInnerWidth + "px";
xaa40827188f.style.height = "18px";
xaa40827188f.style.backgroundColor = this.vBarBackColor;
xaa40827188f.style.fontSize = this.vTitleFontSize;
xaa40827188f.style.fontFamily = this.vTitleFontFamily;
xaa40827188f.style.color = this.vTitleColor;
xaa40827188f.style.overflow = "hidden";
xaa40827188f.title = (this.vAllowMove) ? this.vMoveTitle : "";
xaa40827188f.style.cursor = (this.vAllowMove) ? "move" : "default";
xaa40827188f.onmousedown = function(x23f1c56db28) { xd1e59e54877.xb0f64d638ba(); xd1e59e54877.xa827891292d(x23f1c56db28); };
xaa40827188f.innerHTML = "&nbsp;" + xe3bae38a8c5(this.vTitleText);
this.xac18dd88e42.appendChild(xaa40827188f);

x4597683f601 = document.createElement("div");
x4597683f601.id = "Content" + this.xac18dd88e42.id;
x4597683f601.style.width = this.vInnerWidth + "px";
x4597683f601.style.height = this.vInnerHeight + "px";
x4597683f601.style.backgroundColor = this.vBackColor;
x4597683f601.style.overflow = (this.vAllowScroll) ? "auto" : "hidden";
if ((x73c82f4d263 = document.getElementById("" + this.vContentElementID)) != null)
{
x73c82f4d263.style.display = "";
x4597683f601.appendChild(x73c82f4d263);
}
else { x4597683f601.innerHTML = this.vContentHTML; }
x4597683f601.onmousedown = function() { xd1e59e54877.xb0f64d638ba(); };
this.xac18dd88e42.appendChild(x4597683f601);
if (this.vShowIcons)
{

xaed36f92eae = document.createElement("div");
xaed36f92eae.id = "Tool" + this.xac18dd88e42.id;
xaed36f92eae.style.width = "56px";
xaed36f92eae.style.height = "18px";
xaed36f92eae.style.cursor = "default";
xaed36f92eae.style.position = "absolute";
xaed36f92eae.style.top = "0px";
xaed36f92eae.style.right = "0px";
xaa40827188f.appendChild(xaed36f92eae);

x378e2baf98d = document.createElement("div");
x378e2baf98d.style.width = "14px";
x378e2baf98d.style.height = "14px";
x378e2baf98d.style.cursor = "default";
x378e2baf98d.style.position = "absolute";
x378e2baf98d.style.top = "2px";
x378e2baf98d.style.right = "37px";
x378e2baf98d.title = this.vMinTitle;
x378e2baf98d.style.backgroundColor = this.vTitleColor;
this.x73bc382b3f5(x378e2baf98d, 1, 1, 14-2, 14-2, this.vBarBackColor);
this.x73bc382b3f5(x378e2baf98d, 3, 9, 14-8, 14-12, this.vTitleColor);
x378e2baf98d.onclick = function() { xd1e59e54877.xc3b36621656(); };
xaed36f92eae.appendChild(x378e2baf98d);


x648fd47953b = document.createElement("div");
x648fd47953b.style.width = "14px";
x648fd47953b.style.height = "14px";
x648fd47953b.style.cursor = "default";
x648fd47953b.style.position = "absolute";
x648fd47953b.style.top = "2px";
x648fd47953b.style.right = "20px";
x648fd47953b.title = this.vMaxTitle;
x648fd47953b.style.backgroundColor = this.vTitleColor;
this.x73bc382b3f5(x648fd47953b, 1, 1, 14-2, 14-2, this.vBarBackColor);
this.x73bc382b3f5(x648fd47953b, 3, 3, 14-6, 14-6, this.vTitleColor);
this.x73bc382b3f5(x648fd47953b, 4, 5, 14-8, 14-9, this.vBarBackColor);
x648fd47953b.onclick = function() { xd1e59e54877.x45d3ba7f19f(); };
xaed36f92eae.appendChild(x648fd47953b);

xa1c4bab3815 = document.createElement("div");
xa1c4bab3815.style.width = "14px";
xa1c4bab3815.style.height = "14px";
xa1c4bab3815.style.cursor = "default";
xa1c4bab3815.style.position = "absolute";
xa1c4bab3815.style.top = "2px";
xa1c4bab3815.style.right = "3px";
xa1c4bab3815.title = this.vCloseTitle;
xa1c4bab3815.style.backgroundColor = this.vTitleColor;
this.x73bc382b3f5(xa1c4bab3815, 1, 1, 14-2, 14-2, this.vBarBackColor);
for (x = 3; x <= 13 - 3; x++) {
this.x73bc382b3f5(xa1c4bab3815, x, x, 1, 1, this.vTitleColor);
this.x73bc382b3f5(xa1c4bab3815, x, 13 - x, 1, 1, this.vTitleColor);
}
xa1c4bab3815.onclick = function() { xd1e59e54877.ClosePopup(); };
xaed36f92eae.appendChild(xa1c4bab3815);
}
if (this.vAllowResize)
{

x8cc34fd9d4d = document.createElement("div");
x8cc34fd9d4d.id = "Resize" + this.xac18dd88e42.id;
x8cc34fd9d4d.style.width = "12px";
x8cc34fd9d4d.style.height = "12px";
x8cc34fd9d4d.style.position = "absolute";
x8cc34fd9d4d.style.right = "0px";
x8cc34fd9d4d.style.bottom = "0px";
x8cc34fd9d4d.style.cursor = "nw-resize";
x8cc34fd9d4d.title = this.vResizeTitle;
for (y = 0; y <= 11; y++) {
for (x = 11 - y; x <= 11; x++) {
this.x73bc382b3f5(x8cc34fd9d4d, x, y, 1, 1, ((x + y) % 2 == 0  ? this.vBarBackColor : this.vTitleColor));
}
}

x8cc34fd9d4d.onmousedown = function(x23f1c56db28) { xd1e59e54877.xb0f64d638ba(); xd1e59e54877.x17264bc2368(x23f1c56db28); };
this.xac18dd88e42.appendChild(x8cc34fd9d4d);
}
}
this.ClosePopup = function()
{
if (this.xac18dd88e42 != null)
{
clearInterval(this.x3a389c2b141);

if ((x73c82f4d263 = document.getElementById("" + this.vContentElementID)) != null)
{
x73c82f4d263.style.display = "none";
document.body.appendChild(x73c82f4d263);
}
document.body.removeChild(this.xac18dd88e42);
if (this.xac18dd88e42 == xa35c4b15557) { xa35c4b15557 = null; }
this.xac18dd88e42 = null;
xbe3563e67c6--;
xfe62f4839b8();
}
}
this.x747bf1451f9 = function()
{

document.body.style.overflow = "auto";

this.x987234db0bb();

this.x23025df8487();

if (this.vKeepPosition) {
this.x3a389c2b141 = setInterval(function() { xd1e59e54877.xe85aad5c171(); }, 80);
}

if (!isNaN(this.vDisappearAfter) && this.vDisappearAfter > 0) {
setTimeout(function() { xd1e59e54877.ClosePopup(); }, this.vDisappearAfter * 1000);
}

if (!isNaN(this.vShakeDuration) && this.vShakeDuration > 0) {
this.xe08d7c23369(0, (new Date).getTime());
}

this.xb0f64d638ba();
xbe3563e67c6++;
xfe62f4839b8();
}
this.ShowSlider = function()
{
if (this.xac18dd88e42 == null)
{

setTimeout(function() { xd1e59e54877.x747bf1451f9(); }, 100);
}
else
{
this.xb0f64d638ba();
this.x3bba21d292d(0);
}
}
}
 