Skip to content

Instantly share code, notes, and snippets.

@RedyAu
Last active Apr 15, 2021
Embed
What would you like to do?
HTML5 Media Player (instead of flash) - HFS HttpFileTransfer | RAWR Designs | Live Theme
// jQuery TopUp v1.7.2, Copyright 2010, Paul Engel - Modified by RAWR-Designs
// Modified by RedyAu and Kess for HTML5 media playback (2021)
// File directory: template/global/topup/jquery.topup.js
// The packed version below is what the user actually gets, put it beside this file.
if (typeof(TopUp) == "undefined") {
TopUp = (function() {
var initialized = false, selector = null, on_ready = [], displaying = false, options = null, group = null, index = null, data = null;
var fast_mode = false;
var default_preset = {
layout: "quicklook",
effect: "transform",
resizable: 1,
shaded: 0
}, presets = {};
var extendjQuery = function() {
jQuery.extend({
keys: function(hash) {
var keys = [];
for (var key in hash) {
if (hash.hasOwnProperty(key)) {
keys.push(key);
}
}
return keys;
},
ie: jQuery.browser.msie,
ie6: jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 6,
ie7: jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 7,
ie8: jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 8,
ff2: jQuery.browser.mozilla && parseFloat(jQuery.browser.version) < 1.9
});
jQuery.fn.extend({
id: function() {
if (!this.is("[id]")) {
var id = "";
var counter = 0;
do {id = "element_" + counter++;} while (jQuery("#" + id).length);
jQuery(this).attr("id", id);
}
return jQuery(this).attr("id");
},
markerId: function() {
return "_" + this.id() + "_marker";
},
bubbleDetect: function(selector, separator) {
var detected = null;
var element = this;
jQuery.each(selector.split(separator || ","), function(i, e) {
var selector = jQuery.trim(e);
if (jQuery(selector).index(element) != -1) {
detected = {element: jQuery(element), selector: selector};
}
});
return detected || (element.parent()[0] ? jQuery(element.parent()[0]).bubbleDetect(selector, separator) : null);
},
center: function() {
var css = { top: parseInt((jQuery(window).height() - this.outerHeight()) / 2, 10) + jQuery(window).scrollTop(),
left: parseInt((jQuery(window).width() - this.outerWidth()) / 2, 10) + jQuery(window).scrollLeft(),
position: "absolute"};
this.css(css);
return this;
},
lockDimensions: function() {
this.css({width: this.outerWidth(), height: this.outerHeight()});
return this;
},
unlockDimensions: function() {
this.css({width: "auto", height: "auto"});
return this;
},
centerWrap: function(compare) {
var current = {width: this.outerWidth(), height: this.outerHeight()}, delta = {width: 0, height: 0}, diff = 0;
compare.find(".te_frame").css("display", "block");
diff = compare.outerWidth() - current.width;
if (delta.width < diff) {
delta.width = diff;
}
diff = compare.outerHeight() - current.height;
if (delta.height < diff) {
delta.height = diff;
}
var offset = this.offset();
var css = {
top: offset.top - (delta.height === 0 ? 0 : parseInt(delta.height / 2, 10)),
left: offset.left - (delta.width === 0 ? 0 : parseInt(delta.width / 2, 10)),
width: this.width() + delta.width,
height: this.height() + delta.height
};
if (options.x) {
css.left = options.x - parseInt((css.width - compare.outerWidth()) / 2, 10);
}
if (options.y) {
css.top = options.y - parseInt((css.height - compare.outerHeight()) / 2, 10);
}
jQuery("#tu_center_wrapper").css(css);
jQuery("#tu_centered_content").append(this);
this.css({
top: "auto",
left: "auto",
width: "auto",
height: "auto",
display: "inline-block",
position: "relative"
});
if (jQuery.ff2) {
this.css({display: "table"});
}
if (jQuery.ie) {
this.css({display: "inline"});
}
jQuery("#tu_center_wrapper").show();
return this;
},
removeCenterWrap: function(newTopUpWidth) {
var position = jQuery("#tu_center_wrapper").offset();
var delta = {
width: jQuery("#tu_center_wrapper").outerWidth() - newTopUpWidth,
height: jQuery("#tu_center_wrapper").outerHeight() - this.outerHeight()
};
this.css({
top: position.top + parseInt(delta.height / 2, 10),
left: position.left + parseInt(delta.width / 2, 10),
position: "absolute"
}).appendTo("body");
jQuery("#tu_center_wrapper").hide();
return this;
},
draggableZ: function(opts) {
var element = this;
this.mousedown(function(event) {
if (opts && opts.only && !jQuery(event.target).is(opts.only)) {
return;
}
event.preventDefault();
var offset = element.offset();
var diff = {top: event.pageY - offset.top, left: event.pageX - offset.left};
jQuery("body").addClass("te_dragging");
jQuery("*").bind("mousemove.draggable", function(event) {
element.css({top: event.pageY - diff.top, left: event.pageX - diff.left});
});
});
jQuery("#top_up").mouseup(function(event) {
jQuery("body").removeClass("te_dragging");
jQuery("*").unbind("mousemove.draggable");
});
}
});
};
var injectCode = function() {
var images_url = TopUp.host + TopUp.images_path;
var css = '<style type="text/css" media="screen">.te_overflow{overflow:hidden !important}.te_dragging{cursor:move !important}#tu_overlay,.te_top_up{top:0;left:0}#tu_overlay{width:100%;height:100%;position:fixed;z-index:999}#temp_up{top:-9999px;z-index:-1}.te_transparent{opacity:0}.te_shaded{opacity:.65;background:black}.te_scrollable{overflow:auto}.te_top_up{position:absolute;z-index:1000}.te_top_up a{border:0}.te_top_up a:hover{border:0}.te_top_up .ui-resizable-se{position:absolute !important;background-color:transparent !important;border:0 !important}.te_wrapper{position:relative}.te_title{width:100%;color:white;font-family:"Lucida Grande", "Arial";font-size:11px;position:absolute;text-align:center;z-index:1001}.te_frame,#tu_center_wrapper{border-collapse:collapse}.te_frame tr,.te_frame td{margin:0;padding:0}.te_frame .te_left,.te_frame .te_middle,.te_frame .te_right{padding:0}.te_controls{position:absolute;z-index:1001}.te_close_link,.te_previous_link,.te_next_link{cursor:pointer}.te_close_link{position:absolute;z-index:1002}.te_previous_link,.te_next_link{display:block;float:left}#tu_center_wrapper{position:absolute;z-index:1000}#tu_loader{width:100%;height:100%;position:absolute;background:url(' + images_url + 'loader.gif) no-repeat 50% 50%;display:block;z-index:1003} #top_up .te_dashboard .ui-resizable-se{width:10px !important;height:10px !important;bottom:12px !important;right:10px !important;background-image:url(' + images_url + 'dashboard/sprite.png) !important;background-position:0 0 !important}.te_dashboard .te_title{top:-9px;font-weight:bold;text-shadow:1px 1px 1px black}.te_dashboard .te_corner,.te_dashboard .te_rib{background-image:url(' + images_url + 'dashboard/sprite.png)}.te_dashboard .te_top,.te_dashboard .te_bottom{height:20px}.te_dashboard .te_left_filler{width:20px}.te_dashboard .te_right_filler{width:19px}.te_dashboard .te_middle .te_middle{background:url(' + images_url + 'dashboard/middle.png)}.te_dashboard .te_top .te_left{background-position:-17px -29px}.te_dashboard .te_top .te_middle{background-position:0 -71px}.te_dashboard .te_top .te_right{background-position:-33px -29px}.te_dashboard .te_middle .te_left{background-position:-17px -232px}.te_dashboard .te_middle .te_right{background-position:-33px -232px}.te_dashboard .te_bottom .te_left{background-position:-17px -47px}.te_dashboard .te_bottom .te_middle{background-position:-17px -89px}.te_dashboard .te_bottom .te_right{background-position:-33px -47px}.te_dashboard .te_content{margin:-11px -12px -11px -13px}.te_dashboard .te_controls{left:50%;width:63px;height:29px;margin-left:-33px;padding-left:5px;bottom:35px;background-image:url(' + images_url + 'dashboard/sprite.png);background-position:0 -178px}.te_dashboard .te_previous_link,.te_dashboard .te_next_link{width:31px;height:29px;background-image:url(' + images_url + 'dashboard/sprite.png)}.te_dashboard .te_previous_link{background-position:66px -113px}.te_dashboard .te_next_link{background-position:30px -113px}.te_dashboard .te_previous_link:hover{background-position:66px -142px}.te_dashboard .te_next_link:hover{background-position:30px -142px}.te_dashboard .te_close_link{width:28px;height:26px;top:-1px;right:-6px;background-image:url(' + images_url + 'dashboard/sprite.png);background-position:-20px 0} #top_up .te_quicklook .ui-resizable-se{width:10px !important;height:10px !important;bottom:12px !important;right:9px !important;background-image:url(' + images_url + 'quicklook/sprite.png) !important;background-position:-75px -181px !important}.te_quicklook .te_title{top:6px}.te_quicklook .te_corner,.te_quicklook .te_rib{background-image:url(' + images_url + 'quicklook/sprite.png)}.te_quicklook .te_top{height:24px}.te_quicklook .te_bottom{height:56px}.te_quicklook .te_left_filler,.te_quicklook .te_right_filler{width:12px}.te_quicklook .te_middle .te_middle{background:url(' + images_url + 'quicklook/middle.png)}.te_quicklook .te_top .te_left{background-position:0 0}.te_quicklook .te_top .te_middle{background-position:0 -30px}.te_quicklook .te_top .te_right{background-position:12px 0}.te_quicklook .te_middle .te_left{background-position:0 -181px}.te_quicklook .te_middle .te_right{background-position:12px -181px}.te_quicklook .te_bottom .te_left{background-position:0 -122px}.te_quicklook .te_bottom .te_middle{background-position:0 -61px}.te_quicklook .te_bottom .te_right{background-position:12px -122px}.te_quicklook .te_content{margin:0 -7px}.te_quicklook .te_controls{left:50%;width:66px;margin-left:-33px;bottom:18px}.te_quicklook .te_previous_link,.te_quicklook .te_next_link{width:31px;height:29px;margin:0 1px;background-image:url(' + images_url + 'quicklook/sprite.png)}.te_quicklook .te_previous_link{background-position:89px -195px}.te_quicklook .te_next_link{background-position:52px -195px}.te_quicklook .te_previous_link:hover{background-position:89px -226px}.te_quicklook .te_next_link:hover{background-position:52px -226px}.te_quicklook .te_close_link{width:13px;height:13px;top:7px;left:9px;background-image:url(' + images_url + 'quicklook/sprite.png);background-position:-24px -181px} #top_up .te_flatlook .ui-resizable-se{width:10px !important;height:10px !important;bottom:22px !important;right:14px !important;background-image:url(' + images_url + 'flatlook/sprite.png) !important;background-position:-75px -181px !important}.te_flatlook .te_title{top:5px;text-shadow:1px 1px 2px #2A2A2A}.te_flatlook .te_corner,.te_flatlook .te_rib{background-image:url(' + images_url + 'flatlook/sprite.png)}.te_flatlook .te_top{height:26px}.te_flatlook .te_bottom{height:29px}.te_flatlook .te_left_filler,.te_flatlook .te_right_filler{width:21px}.te_flatlook .te_middle .te_middle{background:url(' + images_url + 'flatlook/middle.png) repeat-x top}.te_flatlook .te_top .te_left{background-position:0 0}.te_flatlook .te_top .te_middle{background-position:0 -29px}.te_flatlook .te_top .te_right{background-position:-89px 0}.te_flatlook .te_middle .te_left{background-position:0 -181px}.te_flatlook .te_middle .te_right{background-position:-89px -181px}.te_flatlook .te_bottom .te_left{background-position:0 -90px}.te_flatlook .te_bottom .te_middle{background-position:0 -58px}.te_flatlook .te_bottom .te_right{background-position:-89px -90px}.te_flatlook .te_content{margin:-2px -11px -3px -11px}.te_flatlook .te_controls{left:50%;width:66px;margin-left:-33px;bottom:18px}.te_flatlook .te_previous_link,.te_flatlook .te_next_link{width:31px;height:29px;margin:0 1px;background-image:url(' + images_url + 'flatlook/sprite.png)}.te_flatlook .te_previous_link{background-position:89px -195px}.te_flatlook .te_next_link{background-position:52px -195px}.te_flatlook .te_previous_link:hover{background-position:89px -226px}.te_flatlook .te_next_link:hover{background-position:52px -226px}.te_flatlook .te_close_link{width:13px;height:13px;top:6px;left:15px;background-image:url(' + images_url + 'flatlook/sprite.png);background-position:-24px -181px}</style>';
var ie7fix = '<style type="text/css" media="screen">.te_dashboard .te_content{margin-bottom:-14px}</style>';
var ie6fix = '<style type="text/css" media="screen">.te_dashboard .te_content{margin-bottom:-13px}.te_dashboard .te_controls{width:65px;padding-left:3px}.te_dashboard .te_top .te_left,.te_dashboard .te_top .te_middle,.te_dashboard .te_top .te_right{background-image:none}.te_dashboard .te_middle .te_left,.te_dashboard .te_middle .te_right{background-image:none}.te_dashboard .te_bottom .te_left,.te_dashboard .te_bottom .te_middle,.te_dashboard .te_bottom .te_right{background-image:none}.te_dashboard .te_controls,.te_dashboard .te_previous_link,.te_dashboard .te_next_link,.te_dashboard .te_close_link{background-image:none}.te_dashboard .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/top_left.png" , sizingMethod="crop" )}.te_dashboard .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/top_middle.png" , sizingMethod="scale")}.te_dashboard .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/top_right.png" , sizingMethod="crop" )}.te_dashboard .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/middle_left.png" , sizingMethod="scale")}.te_dashboard .te_middle .te_middle{filter:alpha(opacity = 75);background:black}.te_dashboard .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/middle_right.png" , sizingMethod="scale")}.te_dashboard .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/bottom_left.png" , sizingMethod="crop" )}.te_dashboard .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/bottom_middle.png", sizingMethod="scale")}.te_dashboard .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/bottom_right.png" , sizingMethod="crop" )}.te_dashboard .te_controls{background:#505455}.te_dashboard .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/previous.png" , sizingMethod="crop" )}.te_dashboard .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/next.png" , sizingMethod="crop" )}.te_dashboard .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'dashboard/close_link.png" , sizingMethod="crop" )} .te_quicklook .te_bottom{height:55px}.te_quicklook .te_controls{width:67px}.te_quicklook .te_top .te_left,.te_quicklook .te_top .te_middle,.te_quicklook .te_top .te_right{background-image:none}.te_quicklook .te_middle .te_left,.te_quicklook .te_middle .te_right{background-image:none}.te_quicklook .te_bottom .te_left,.te_quicklook .te_bottom .te_middle,.te_quicklook .te_bottom .te_right{background-image:none}.te_quicklook .te_previous_link,.te_quicklook .te_next_link,.te_quicklook .te_close_link{background-image:none}.te_quicklook .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/top_left.png" , sizingMethod="crop" )}.te_quicklook .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/top_middle.png" , sizingMethod="scale")}.te_quicklook .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/top_right.png" , sizingMethod="crop" )}.te_quicklook .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/middle_left.png" , sizingMethod="scale")}.te_quicklook .te_middle .te_middle{filter:alpha(opacity = 70);background:black}.te_quicklook .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/middle_right.png" , sizingMethod="scale")}.te_quicklook .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/bottom_left.png" , sizingMethod="crop" )}.te_quicklook .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/bottom_middle.png", sizingMethod="scale")}.te_quicklook .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/bottom_right.png" , sizingMethod="crop" )}.te_quicklook .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/previous.png" , sizingMethod="crop" )}.te_quicklook .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/next.png" , sizingMethod="crop" )}.te_quicklook .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'quicklook/close_link.png" , sizingMethod="crop" )} .te_flatlook .te_bottom{height:55px}.te_flatlook .te_controls{width:67px}.te_flatlook .te_top .te_left,.te_flatlook .te_top .te_middle,.te_flatlook .te_top .te_right{background-image:none}.te_flatlook .te_middle .te_left,.te_flatlook .te_middle .te_right{background-image:none}.te_flatlook .te_bottom .te_left,.te_flatlook .te_bottom .te_middle,.te_flatlook .te_bottom .te_right{background-image:none}.te_flatlook .te_previous_link,.te_flatlook .te_next_link,.te_flatlook .te_close_link{background-image:none}.te_flatlook .te_top .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/top_left.png" , sizingMethod="crop" )}.te_flatlook .te_top .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/top_middle.png" , sizingMethod="scale")}.te_flatlook .te_top .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/top_right.png" , sizingMethod="crop" )}.te_flatlook .te_middle .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/middle_left.png" , sizingMethod="scale")}.te_flatlook .te_middle .te_middle{filter:alpha(opacity = 70);background:black}.te_flatlook .te_middle .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/middle_right.png" , sizingMethod="scale")}.te_flatlook .te_bottom .te_left{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/bottom_left.png" , sizingMethod="crop" )}.te_flatlook .te_bottom .te_middle{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/bottom_middle.png", sizingMethod="scale")}.te_flatlook .te_bottom .te_right{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/bottom_right.png" , sizingMethod="crop" )}.te_flatlook .te_previous_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/previous.png" , sizingMethod="crop" )}.te_flatlook .te_next_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/next.png" , sizingMethod="crop" )}.te_flatlook .te_close_link{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + images_url + 'flatlook/close_link.png" , sizingMethod="crop" )}</style>';
var iefix = '<style type="text/css" media="screen">#tu_overlay{top:expression((ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px");left:expression((ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px");position:absolute}.te_transparent{filter:alpha(opacity = 0)}.te_shaded{filter:alpha(opacity = 65)}.te_content{position:relative;zoom:1}</style>';
var html = '<div id="tu_overlay" onclick="TopUp.overlayClose()" style="display: none"></div><div id="top_up" class="te_top_up" style="display: none"><div class="te_wrapper"><div class="te_title"></div><table class="te_frame"><tr class="te_top"><td class="te_left te_corner"><div class="te_left_filler"></div></td><td class="te_middle te_rib"></td><td class="te_right te_corner"><div class="te_right_filler"></div></td></tr><tr class="te_middle"><td class="te_left te_rib"></td><td class="te_middle"><div class="te_content"><!-- Content --></div></td><td class="te_right te_rib"></td></tr><tr class="te_bottom"><td class="te_left te_corner"></td><td class="te_middle te_rib"></td><td class="te_right te_corner"></td></tr></table><div class="te_controls" style="display: none"><a class="te_previous_link" onclick="TopUp.previous()"></a><a class="te_next_link" onclick="TopUp.next()"></a></div><a class="te_close_link" onclick="TopUp.close()" style="display: none"></a></div></div><div id="temp_up" class="te_top_up te_transparent"><div class="te_wrapper"><div class="te_title"></div><table class="te_frame"><tr class="te_top"><td class="te_left te_corner"><div class="te_left_filler"></div></td><td class="te_middle te_rib"></td><td class="te_right te_corner"><div class="te_right_filler"></div></td></tr><tr class="te_middle"><td class="te_left te_rib"></td><td class="te_middle"><div class="te_content"><!-- Content --></div></td><td class="te_right te_rib"></td></tr><tr class="te_bottom"><td class="te_left te_corner"></td><td class="te_middle te_rib"></td><td class="te_right te_corner"></td></tr></table><div class="te_controls" style="display: none"><a class="te_previous_link" onclick="TopUp.previous()"></a><a class="te_next_link" onclick="TopUp.next()"></a></div><a class="te_close_link" onclick="TopUp.close()" style="display: none"></a></div></div><table id="tu_center_wrapper" style="display: none"><tr valign="middle"><td id="tu_centered_content" align="center"><!-- Top ups --></td></tr></table><div id="tu_loader" style="display: none"></div>';
if (!jQuery("head").length) {
jQuery(document.body).before("<head></head>");
}
jQuery(css).prependTo("head");
if (jQuery.ie7 || jQuery.ie8) {
jQuery(ie7fix).insertAfter("head > style:first");
}
if (jQuery.ie6) {
jQuery(ie6fix).insertAfter("head > style:first");
}
if (jQuery.ie) {
jQuery(iefix).insertAfter("head > style:first");
}
jQuery(html).appendTo("body");
};
var bind = function() {
var coptions = [];
if (!fast_mode) {
coptions.push("[class^=tu_][class*=x]");
jQuery.each(["db", "ql", "fl", "image", "html", "dom", "iframe", "ajax", "script"], function(i, coption) {
coptions.push("[class^=tu_][class*=_" + coption + "]");
});
}
selector = jQuery.merge([".top_up", "[toptions]", coptions.join(",")], jQuery.keys(presets)).join();
jQuery(selector).live("click", topUpClick);
jQuery(document).bind("keyup", documentKeyPress);
};
var fadeDuration = function(duration) {
return jQuery.ie8 || jQuery.ie7 || jQuery.ie6 ? 0 : duration;
};
var topUpClick = function(event) {
TopUp.displayTopUp(jQuery(event.target));
return false;
};
var documentKeyPress = function(event) {
if (jQuery("#top_up").is(":hidden") || jQuery(event.target).is(":input")) {
return;
}
switch(event.keyCode) {
case 38:
TopUp.close(); break;
case 40:
TopUp.close(); break;
case 37:
TopUp.previous(); break;
case 39:
TopUp.next(); break;
}
};
var deriveTopUpOptions = function(topUp, opts) {
var toptions = jQuery.extend({}, {topUp: "#" + topUp.element.id(), preset: topUp.selector});
jQuery.each(topUp.element.attr("class").split(/\s/), function(i, c) {
if (c.match(/^tu_/)) {
jQuery.each(c.replace(/^tu_/, "").split("_"), function(j, coption) {
switch(coption) {
case "db": case "ql": case "fl":
toptions["layout"] = {"db": "dashboard", "ql": "quicklook", "fl": "flatlook"}[coption]; break;
case "image": case "html": case "dom": case "iframe": case "ajax": case "script":
toptions["type"] = coption; break;
default:
if (coption.match(/\dx\d/)) {
toptions["width"] = coption.split("x")[0];
toptions["height"] = coption.split("x")[1];
}
}
});
}
});
if (topUp.element.is("[toptions]")) {
jQuery.each(topUp.element.attr("toptions").split(","), function(i, option) {
var key_value = option.split("=");
toptions[jQuery.trim(key_value[0])] = jQuery.trim(key_value[1]);
});
}
if (toptions.noGroup && parseInt(toptions.noGroup, 10) == 1) {
toptions.group = null;
}
if (opts) {
toptions = jQuery.extend(toptions, opts);
}
return toptions;
};
var deriveOptions = function(reference, opts, store) {
var result = jQuery.extend({}, default_preset);
if (opts) {
if (presets[opts.preset]) {
result = jQuery.extend(result, presets[opts.preset]);
}
result = jQuery.extend(result, opts);
}
if (result.ondisplay && !jQuery.isFunction(result.ondisplay)) {
var fdisplay = result.ondisplay;
result.ondisplay = function() {eval(fdisplay);};
}
if (result.onclose && !jQuery.isFunction(result.onclose)) {
var fclose = result.onclose;
result.onclose = function() {eval(fclose);};
}
if (store) {
result.reference = result.reference ? jQuery(result.reference) : reference;
if (!result.type) {
result.type = deriveType(reference);
}
if (movieContentDisplayed(result)) {
result.resizable = 0;
}
options = jQuery.extend({}, result);
}
return result;
};
var deriveType = function(reference) {
if (reference.toLowerCase().match(/\.(gif|jpg|jpeg|png)(\?[0123456789]+)?$/)) {
return "image";
}
if (reference.toLowerCase().match(/\.(swf)(\?[0123456789]+)?$/)) {
return "flash";
}
if (reference.toLowerCase().match(/\.(flv|mp3|mp4)(\?[0123456789]+)?$/)) {
return "flashvideo";
}
if (reference.toLowerCase().match(/\.(aif|aiff|aac|au|bmp|gsm|mov|mid|midi|mpg|mpeg|m4a|m4v|psd|qt|qtif|qif|qti|snd|tif|tiff|wav|3g2|3gp|wbmp)(\?[0123456789]+)?$/)) {
return "quicktime";
}
if (reference.toLowerCase().match(/\.(ra|ram|rm|rpm|rv|smi|smil)(\?[0123456789]+)?$/)) {
return "realplayer";
}
if (reference.toLowerCase().match(/\.(asf|wma|wmv)(\?[0123456789]+)?$/)) {
return "windowsmedia";
}
if (reference.toLowerCase().match(/\.(avi|divx|mkv)(\?[0123456789]+)?$/)) {
return "divxmedia";
}
return "ajax";
};
var movieContentDisplayed = function(opts) {
return jQuery.inArray((opts || options).type, ["flash", "flashvideo", "quicktime", "realplayer", "windowsmedia", "divxmedia"]) != -1;
};
var deriveGroup = function() {
if (options.group) {
if (!(group && group.name == options.group)) {
group = {name: options.group, items: jQuery([])};
jQuery.each(jQuery(selector), function(i, e) {
if (!jQuery(e).is("[tu_group]")) {
jQuery(e).attr("tu_group", deriveOptions(null, deriveTopUpOptions(jQuery(e).bubbleDetect(selector))).group);
}
if (jQuery(e).attr("tu_group") == group.name) {
group.items = group.items.add(e);
}
});
}
var ids = jQuery.map(group.items, function(e, i) {
return "#" + jQuery(e).id();
});
index = options.topUp ? jQuery.inArray(options.topUp, ids) : -1;
} else {
group = null;
}
};
var navigateInGroup = function(step) {
if (group === null) {
return;
}
index = index + step;
if (index < 0) {
index = group.items.length - 1;
}
if (index > group.items.length - 1) {
index = 0;
}
TopUp.displayTopUp(group.items[index]);
};
var prepare = function() {
if (jQuery("#top_up .te_frame").resizable) {
jQuery("#top_up .te_frame").resizable("destroy");
}
jQuery("#top_up .te_title").fadeOut(fadeDuration(200));
if (!(group && group.items.length > 1)) {
jQuery("#top_up .te_controls").fadeOut(fadeDuration(200));
}
jQuery(".te_wrapper").attr("class", "te_wrapper te_" + options.layout);
jQuery(".te_frame,.te_content").unlockDimensions();
if (parseInt(options.shaded, 10) == 1) {
jQuery("#tu_overlay").addClass("te_shaded");
} else {
jQuery("#tu_overlay").removeClass("te_shaded");
}
if ((parseInt(options.modal, 10) == 1) || (parseInt(options.shaded, 10) == 1) || (parseInt(options.overlayClose, 10) == 1)) {
if (jQuery.ie8) {
var fixOverlay = function() {
jQuery('#tu_overlay').css('top', document.body.parentElement.scrollTop+'px');
};
fixOverlay.apply();
window.onresize = fixOverlay;
jQuery(window).bind('scroll', fixOverlay);
}
jQuery("#tu_overlay").show();
} else {
jQuery("#tu_overlay").hide();
}
var altText = "";
if (options.topUp && (options.topUp != "") && ((parseInt(options.readAltText, 10) == 1) || (options.title && options.title.match("{alt}")))) {
var topUp = jQuery(options.topUp);
if (topUp.length) {
var image = topUp.find("img");
if (image.length) {
altText = image.attr("alt") || "";
}
if (altText != "" && !(options.title && options.title.match("{alt}"))) {
options.title = "{alt}";
}
}
}
options.title = (options.title || "").replace("{alt}", altText).replace("{current}", group === null ? "" : (index + 1)).replace("{total}", group === null ? "" : group.items.length);
};
var loadContent = function() {
switch(options.type) {
case "image":
options.content = new Image();
jQuery(options.content).load(function() {
options.content = jQuery(this);
onContentReady();
})
.attr("src", options.reference);
break;
case "flash": case "flashvideo": case "quicktime": case "realplayer": case "windowsmedia": case "divxmedia":
let video = document.createElement("video");
let source = document.createElement("source");
video.appendChild(source);
source.src = options.reference;
video.width = options.width;
video.height = options.height;
video.controls = true;
video.autoplay = true;
options.content = $(video);
onContentReady();
break;
case "iframe":
options.content = jQuery('<iframe src="' + options.reference + '" frameborder="0" border="0"></iframe>'); break;
case "html": case "dom":
var reference = jQuery(options.reference);
if (reference.context) {
var marker = jQuery("<div></div>").attr({
id : reference.markerId(),
"class": (reference.is(":hidden") ? "hidden" : ""),
style : "display: none"
});
options.content = jQuery("<div></div>").append(reference.before(marker).addClass("marked"));
reference.show();
} else {
options.content = jQuery("<div></div>").append(reference);
}
break;
case "ajax": case "script":
options.content = null;
jQuery.ajax({url: options.reference,
type: (parseInt(options.post, 10) == 1) ? "POST" : "GET",
cache: false,
async: false,
data: options.parameters,
dataType: (options.type == "ajax") ? "html" : "script",
success: onContentReady});
}
if (jQuery.inArray(options.type, ["html", "dom", "iframe"]) != -1) {
onContentReady();
}
};
var onContentReady = function(html) {
hideLoader();
if (html) {
options.content = jQuery(html);
}
switch(options.type) {
case "image": case "html": case "dom": case "iframe":
options.resize = options.content;
jQuery(".te_content").removeClass("te_scrollable");
break;
default:
options.resize = jQuery("#temp_up .te_content");
jQuery(".te_content").addClass("te_scrollable");
}
if (jQuery("#top_up").is(":hidden")) {
show();
} else {
replace();
}
};
var showLoader = function() {
var origin = jQuery("#top_up");
if (jQuery("#top_up").is(":hidden")) {
origin = jQuery(options.topUp);
if (!origin.length) {
origin = jQuery(document);
} else if (origin.children().length > 0) {
origin = jQuery(origin.children()[0]);
}
}
try {
var dimensions = {top: origin.offset().top,
left: origin.offset().left,
width: origin.outerWidth(),
height: origin.outerHeight()};
} catch(e) {
var dimensions = {top: jQuery(window).scrollTop(),
left: jQuery(window).scrollLeft(),
width: parseInt(jQuery(window).width() / 2, 10),
height: parseInt(jQuery(window).height() / 2, 10)};
}
jQuery("#tu_loader").html("&nbsp;").css(dimensions).show();
};
var hideLoader = function() {
jQuery("#tu_loader").hide();
};
var show = function() {
setContent();
setDimensions();
moveContent("top_up");
jQuery("#top_up").center();
if (options.x) {
jQuery("#top_up").css({left: parseInt(options.x, 10)});
}
if (options.y) {
jQuery("#top_up").css({top : parseInt(options.y, 10)});
}
switch(options.effect) {
case "appear": case "fade":
jQuery("#top_up").fadeIn(fadeDuration(300), afterDisplay); break;
case "switch": case "clip":
jQuery("#top_up").show("clip", {direction: "vertical"}, 500, afterDisplay); break;
case "transform":
var origin = jQuery(options.topUp);
if (origin.children().length > 0) {
origin = jQuery(origin.children()[0]);
}
var tuContent = jQuery("#top_up").find(".te_content");
var dimensions = options.topUp ?
jQuery.extend({width: origin.outerWidth(), height: origin.outerHeight()}, origin.offset()) :
{top: parseInt(jQuery(window).height() / 2, 10) - parseInt(tuContent.height() / 2, 10) + jQuery(window).scrollTop(),
left: parseInt(jQuery(window).width() / 2, 10) - parseInt(tuContent.width() / 2, 10) + jQuery(window).scrollLeft(),
width: 10,
height: 10};
transform("from", dimensions, afterDisplay);
break;
default:
jQuery("#top_up").show();
afterDisplay();
}
};
var replace = function(callback) {
var isScrollable = jQuery("#top_up .te_content").hasClass("te_scrollable");
if (isScrollable) {
jQuery("#top_up .te_content").removeClass("te_scrollable");
}
var focusedElement = jQuery("#top_up .te_content :focus");
var wrapper = jQuery("#top_up .te_content").lockDimensions().wrapInner("<div></div>").children();
wrapper.fadeOut(fadeDuration(250), function() {
if (parseInt(options.storeCurrent, 10) == 1) {
wrapper.addClass("te_stored_content").hide().find(".te_stored_content").before(wrapper);
} else {
wrapper.children().appendTo("#temp_up .te_content").end().end().remove();
}
if (callback) {
var arg = jQuery("#temp_up .te_content");
if (jQuery.inArray(options.type, ["html", "dom"]) != -1) {
arg = arg.children().eq(0);
}
callback.apply(arg);
} else {
clearContent();
setContent();
}
if (isScrollable) {
jQuery("#top_up .te_content").addClass("te_scrollable");
}
setDimensions();
jQuery("#top_up").centerWrap(jQuery("#temp_up"));
var animation = {width: jQuery("#temp_up .te_content").outerWidth(),
height: jQuery("#temp_up .te_content").outerHeight()};
var newTopUpWidth = jQuery("#temp_up").outerWidth();
jQuery("#top_up .te_content").animate(animation, 400, function() {
moveContent("top_up");
jQuery("#top_up").removeCenterWrap(newTopUpWidth);
focusedElement.focus();
afterDisplay();
});
});
};
var setContent = function() {
options.content.appendTo("#temp_up .te_content");
};
var moveContent = function(to) {
var from = to == "top_up" ? "temp_up" : "top_up";
jQuery("#" + from + " .te_content").children().appendTo("#" + to + " .te_content");
if (to == "top_up") {
jQuery("#top_up .te_content").css({width: jQuery("#temp_up .te_content").css("width"),
height: jQuery("#temp_up .te_content").css("height")});
}
};
var clearContent = function() {
jQuery(".te_content .marked").each(function() {
var marker = jQuery("#" + jQuery(this).markerId());
if (marker.hasClass("hidden")) {
jQuery(this).hide();
}
marker.after(jQuery(this).removeClass("marked")).remove();
});
jQuery(".te_content").children(":not(.te_stored_content)").remove();
};
var transform = function(direction, dimensions, callback) {
var topUp = jQuery("#top_up");
var tuContent = topUp.find(".te_content");
if (direction == "from") {
topUp.addClass("te_transparent")
.show();
}
var topUpOffset = topUp.offset();
var tuContentOffset = tuContent.offset();
var tuContentDiff = {width: topUp.width() - tuContent.width(),
height: topUp.height() - tuContent.height()};
dimensions.top -= tuContentOffset.top - topUpOffset.top;
dimensions.left -= tuContentOffset.left - topUpOffset.left;
var origin = {top: topUp.css("top"), left: topUp.css("left"), width: topUp.outerWidth(), height: topUp.outerHeight()};
var opts = {to: direction == "from" ? origin : dimensions, duration: 500};
if (direction == "from") {
opts.to.width -= tuContentDiff.width;
opts.to.height -= tuContentDiff.height;
}
var animation = function() {
var cb = function() {
callback.apply();
options.content.removeClass("te_overflow");
};
var onReady = direction == "to" ?
function() {
topUp.fadeOut(fadeDuration(100), cb);
} : cb;
topUp .animate({top: opts.to.top, left: opts.to.left}, opts.duration);
options.content.animate({width: opts.to.width,
height: opts.to.height}, opts.duration, onReady);
};
options.content.addClass("te_overflow");
if (direction == "from") {
topUp .css({top: dimensions.top, left: dimensions.left});
options.content.css({width: dimensions.width, height: dimensions.height});
jQuery(".te_top_up,.te_content").unlockDimensions();
topUp.hide()
.removeClass("te_transparent")
.fadeIn(fadeDuration(150), animation);
} else {
animation.apply();
}
};
var afterDisplay = function() {
var duration = fadeDuration(500);
if (jQuery("#top_up .te_frame").resizable && parseInt(options.resizable, 10) == 1) {
var opts = {stop: function(){ jQuery("#top_up .te_frame").css({width: "auto", height: "auto"}); },
handles: "se",
minWidth: 200, minHeight: 75,
alsoResize: "#" + options.resize.id(),
aspectRatio: options.type == "image"};
jQuery("#top_up .te_frame").resizable(opts);
}
if (jQuery.ie6 || jQuery.ie7) {
jQuery("#top_up .te_title").css("width", jQuery("#top_up").width());
}
jQuery("#top_up .te_title").html(options.title || "")
.fadeIn(duration);
if (group && group.items.length > 1 && jQuery("#top_up .te_controls").is(":hidden")) {
if (jQuery.ie6) {
jQuery("#top_up .te_controls").show();
} else {
jQuery("#top_up .te_controls").fadeIn(duration);
}
}
if (jQuery("#top_up .te_close_link").is(":hidden")) {
if (jQuery.ie6) {
jQuery("#top_up .te_close_link").show();
} else {
jQuery("#top_up .te_close_link").fadeIn(duration);
}
}
checkPosition();
jQuery(".te_top_up,.te_content").unlockDimensions();
if (movieContentDisplayed()) {
options.content.find("object").show();
}
if (options.ondisplay) {
options.ondisplay.apply(this, [jQuery("#top_up .te_content"), data]);
}
displaying = false;
};
var setDimensions = function(dimensions) {
var func = dimensions ? null : checkHeight;
if (!dimensions) {
options.resize.unlockDimensions();
if (jQuery.inArray(options.type, ["image", "html", "dom", "iframe"]) != -1) {
jQuery("#temp_up .te_content").unlockDimensions();
}
dimensions = {};
if (options.width) {
dimensions.width = parseInt(options.width, 10);
}
if (options.height) {
dimensions.height = parseInt(options.height, 10);
}
if (jQuery.ie6) {
jQuery("#top_up .te_title").css("width", jQuery("#temp_up").outerWidth());
}
}
if (jQuery.ie8) {
jQuery("#top_up .te_close_link").hide();
}
options.resize.css(dimensions);
if (jQuery.ie8) {
jQuery("#top_up .te_close").show();
}
if (func) {
func.apply();
}
};
var checkHeight = function() {
if (jQuery("#temp_up").outerHeight() <= jQuery(window).height() - 4) {
return;
}
var extraHeight = jQuery("#temp_up").outerHeight() - jQuery("#temp_up .te_content").height(),
dimensions = {height: jQuery(window).height() - 4 - extraHeight};
if (options.type == "image") {
dimensions.width = parseInt(options.content.width() * (dimensions.height / options.content.height()), 10);
}
setDimensions(dimensions);
};
var checkPosition = function() {
var offset = jQuery("#top_up").offset();
var dimensions = {width: jQuery("#top_up").outerWidth(), height: jQuery("#top_up").outerHeight()};
var position = {};
if (offset.top - jQuery(window).scrollTop() < 2) {
position.top = jQuery(window).scrollTop() + 2;
} else if (offset.top + dimensions.height - jQuery(window).scrollTop() > jQuery(window).height() - 2) {
position.top = jQuery(window).scrollTop() + jQuery(window).height() - dimensions.height - 2;
}
if (offset.left - jQuery(window).scrollLeft() < 2) {
position.left = jQuery(window).scrollLeft() + 2;
} else if (offset.left + dimensions.width - jQuery(window).scrollLeft() > jQuery(window).width() - 2) {
position.left = jQuery(window).scrollLeft() + jQuery(window).width() - dimensions.width - 24;
}
if (jQuery.keys(position).length > 0) {
if (jQuery.ie6 || jQuery.ie7) {
jQuery("#top_up").css(position);
window.setTimeout(function() {
jQuery("#top_up .te_content").show();
}, 1);
} else {
jQuery("#top_up").animate(position, 300);
}
}
};
var hide = function(callback) {
jQuery(".te_content .te_stored_content").removeClass("te_stored_content");
var duration = fadeDuration(250);
var onReady = function() {
animateHide(callback);
};
jQuery("#top_up .te_title") .fadeOut(duration);
jQuery("#top_up .te_controls").fadeOut(duration);
if (movieContentDisplayed()) {
options.content.find("object").hide();
}
if (jQuery.ie) {
jQuery("#top_up .te_close_link").hide();
onReady.apply();
} else {
jQuery("#top_up .te_close_link").fadeOut(duration, onReady);
}
};
var animateHide = function(callback) {
var afterHide = function() {
if (callback) {
callback.apply(this, [jQuery("#top_up .te_content"), data]);
}
if (options.onclose) {
options.onclose.apply(this, [jQuery("#top_up .te_content"), data]);
}
clearContent();
moveContent("temp_up");
};
switch(options.effect) {
case "appear": case "fade":
jQuery("#top_up").fadeOut(fadeDuration(300), afterHide); break;
case "switch": case "clip":
jQuery("#top_up").hide("clip", {direction: "vertical"}, 400, afterHide); break;
case "transform":
if (jQuery.ie6) {
jQuery("#top_up").hide();
afterHide.apply();
break;
}
var origin = jQuery(options.topUp);
if (origin.children().length > 0) {
origin = jQuery(origin.children()[0]);
}
var tuContent = jQuery("#top_up").find(".te_content");
var dimensions = options.topUp ?
jQuery.extend({width: origin.outerWidth(), height: origin.outerHeight()}, origin.offset()) :
{top: parseInt(jQuery(window).height() / 2, 10) + jQuery(window).scrollTop(),
left: parseInt(jQuery(window).width() / 2, 10) + jQuery(window).scrollLeft(),
width: 10,
height: 10};
transform("to", dimensions, afterHide);
break;
default:
jQuery("#top_up").hide();
afterHide();
}
jQuery("#tu_overlay").hide();
};
return {
version: "1.7.2",
jquery: null,
host: "/",
fast_mode: true,
images_path: "template/global/topup/images/",
players_path: "template/global/",
data: data,
init: function() {
if (initialized) {
return false;
}
try {
jQuery(document).ready(function() {
TopUp.jquery = jQuery().jquery;
default_preset.resizable = jQuery.ui && jQuery.ui.resizable ? 1 : 0;
extendjQuery();
injectCode();
bind();
jQuery("#top_up").draggableZ({only: ".te_title,.te_top *,.te_bottom *"});
jQuery.each(on_ready, function(i, func) {
func.apply();
});
});
jQuery(window).unload(function() {
jQuery("*").unbind();
if (jQuery("#top_up .te_frame").resizable) {
jQuery("#top_up .te_frame").resizable("destroy");
}
});
initialized = true;
} catch(e) {}
},
defaultPreset: function(set) {
default_preset = jQuery.extend(default_preset, set);
},
addPresets: function(sets) {
presets = jQuery.extend(presets, sets);
},
ready: function(func) {
on_ready.push(func);
},
enableFastMode: function() {
var args = arguments;
if (!jQuery.isReady) {
TopUp.ready(function() {
TopUp.enableFastMode.apply(null, args);
});
return false;
}
if (arguments.length) {
var arg = arguments[0];
var func = jQuery.isFunction(arg) ? arg : function() { return arg; };
fast_mode = func.apply();
} else {
fast_mode = true;
}
fast_mode = fast_mode == true || parseInt(fast_mode, 10) == 1;
TopUp.rebind();
},
rebind: function() {
if (selector) {
jQuery(selector).die("click", topUpClick);
}
bind();
},
displayTopUp: function(element, opts) {
if (!jQuery.isReady) {
TopUp.ready(function() {
TopUp.displayTopUp(element, opts);
});
return false;
}
var topUp = jQuery(element).bubbleDetect(selector);
var toptions = deriveTopUpOptions(topUp, jQuery.extend(opts || {}, {trigger: "#" + jQuery(element).id()}));
TopUp.display(topUp.element.attr("href"), toptions);
},
display: function(reference, opts) {
if (!jQuery.isReady) {
TopUp.ready(function() {
TopUp.display(reference, opts);
});
return false;
}
if (displaying) {
return false;
}
try {
displaying = true;
data = {};
deriveOptions(reference, opts, true);
showLoader();
var continueDisplaying = function() {
try {
deriveGroup();
prepare();
loadContent();
} catch(e) {
displaying = false;
hideLoader();
alert("Sorry, but the following error occured:\n\n" + e);
}
};
if (jQuery.ie6) {
window.setTimeout(continueDisplaying, 1);
} else {
continueDisplaying();
}
} catch(e) {
displaying = false;
hideLoader();
alert("Sorry, but the following error occured:\n\n" + e);
}
},
update: function(func) {
if (jQuery("#top_up").is(":hidden")) {
return;
}
replace(func || function() {});
},
restore: function(storeCurrent, callback) {
options.storeCurrent = storeCurrent ? 1 : 0;
options.ondisplay = callback;
TopUp.update(function() {
clearContent();
var stored_content = this.children(":not(.te_stored_content):first-child").prev();
if (!stored_content.length) {
stored_content = this.children(".te_stored_content:last-child");
}
stored_content.children().insertBefore(stored_content).end().end().remove();
});
},
previous: function() {
navigateInGroup(-1);
},
next: function() {
navigateInGroup(1);
},
overlayClose: function() {
if (parseInt(options.overlayClose, 10) == 1) {
TopUp.close();
}
},
close: function(callback) {
if (jQuery("#top_up").is(":visible")) {
hide(callback);
}
}
};
}());
(function () {
TopUp.init();
l = new Image();
l.src = '/template/global/topup/images/loader.gif';
}());
}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(6s(1v)=="6t"){1v=(V(){T n=1X,2j=1M,4c=[],35=1X,U=1M,1w=1M,1B=1M,2w=1M;T o=1X;T p={4d:"1H",4e:"4f",1U:1,4g:0},36={};T q=V(){3.20({4h:V(a){T b=[];6u(T c 6v a){5(a.6w(c)){b.3D(c)}}1h b},3E:3.2r.3F,2k:3.2r.3F&&1i(3.2r.3l,10)==6,3m:3.2r.3F&&1i(3.2r.3l,10)==7,3a:3.2r.3F&&1i(3.2r.3l,10)==8,5b:3.2r.6x&&6y(3.2r.3l)<1.9});3.6z.20({1R:V(){5(!1c.21("[1R]")){T a="";T b=0;6A{a="6B"+b++}6C(3("#"+a).1S);3(1c).2b("1R",a)}1h 3(1c).2b("1R")},4i:V(){1h"4j"+1c.1R()+"6D"},3G:V(b,c){T d=1M;T f=1c;3.2x(b.2O(c||","),V(i,e){T a=3.4k(e);5(3(a).1B(f)!=-1){d={3b:3(f),2j:a}}});1h d||(f.5c()[0]?3(f.5c()[0]).3G(b,c):1M)},3H:V(){T a={1a:1i((3(1j).Y()-1c.1V())/2,10)+3(1j).27(),18:1i((3(1j).W()-1c.1Y())/2,10)+3(1j).2c(),11:"2l"};1c.1u(a);1h 1c},5d:V(){1c.1u({W:1c.1Y(),Y:1c.1V()});1h 1c},3c:V(){1c.1u({W:"2s",Y:"2s"});1h 1c},5e:V(a){T b={W:1c.1Y(),Y:1c.1V()},2d={W:0,Y:0},2P=0;a.2y(".1N").1u("1I","3I");2P=a.1Y()-b.W;5(2d.W<2P){2d.W=2P}2P=a.1V()-b.Y;5(2d.Y<2P){2d.Y=2P}T c=1c.2m();T d={1a:c.1a-(2d.Y===0?0:1i(2d.Y/2,10)),18:c.18-(2d.W===0?0:1i(2d.W/2,10)),W:1c.W()+2d.W,Y:1c.Y()+2d.Y};5(U.x){d.18=U.x-1i((d.W-a.1Y())/2,10)}5(U.y){d.1a=U.y-1i((d.Y-a.1V())/2,10)}3("#2t").1u(d);3("#5f").4l(1c);1c.1u({1a:"2s",18:"2s",W:"2s",Y:"2s",1I:"5g-3I",11:"4m"});5(3.5b){1c.1u({1I:"2Q"})}5(3.3E){1c.1u({1I:"5g"})}3("#2t").28();1h 1c},5h:V(a){T b=3("#2t").2m();T c={W:3("#2t").1Y()-a,Y:3("#2t").1V()-1c.1V()};1c.1u({1a:b.1a+1i(c.Y/2,10),18:b.18+1i(c.W/2,10),11:"2l"}).3n("2z");3("#2t").22();1h 1c},5i:V(e){T f=1c;1c.6E(V(b){5(e&&e.4n&&!3(b.4o).21(e.4n)){1h}b.6F();T c=f.2m();T d={1a:b.5j-c.1a,18:b.5k-c.18};3("2z").2A("4p");3("*").4q("5l.5m",V(a){f.1u({1a:a.5j-d.1a,18:a.5k-d.18})})});3("#Z").6G(V(a){3("2z").2B("4p");3("*").5n("5l.5m")})}})};T r=V(){T a=1v.5o+1v.5p;T b=\'<1A 1O="2R/1u" 3J="3K">.4r{5q:2n !1x}.4p{5r:6H !1x}#2o,.2u{1a:0;18:0}#2o{W:3d%;Y:3d%;11:6I;z-1B:6J}#1C{1a:-6K;z-1B:-1}.3o{2S:0}.3L{2S:.65;X:3p}.3e{5q:2s}.2u{11:2l;z-1B:5s}.2u a{3q:0}.2u a:2T{3q:0}.2u .3f-1U-3r{11:2l !1x;X-5t:6L !1x;3q:0 !1x}.3s{11:4m}.29{W:3d%;5t:6M;4s-6N:"6O 6P", "6Q";4s-6R:3t;11:2l;2R-5u:3H;z-1B:5v}.1N,#2t{3q-5w:5w}.1N 1W,.1N 1d{2e:0;3M:0}.1N .1l,.1N .12,.1N .1m{3M:0}.1T{11:2l;z-1B:5v}.1D,.1E,.1F{5r:6S}.1D{11:2l;z-1B:6T}.1E,.1F{1I:3I;6U:18}#2t{11:2l;z-1B:5s}#3N{W:3d%;Y:3d%;11:2l;X:1J(\'+a+\'5x.4t) 6V-5y 50% 50%;1I:3I;z-1B:6W} #Z .13 .3f-1U-3r{W:2U !1x;Y:2U !1x;2C:2V !1x;3O:2U !1x;X-1n:1J(\'+a+\'1K/23.17) !1x;X-11:0 0 !1x}.13 .29{1a:-4u;4s-6X:6Y;2R-5z:2D 2D 2D 3p}.13 .2f,.13 .2g{X-1n:1J(\'+a+\'1K/23.17)}.13 .1o,.13 .1k{Y:4v}.13 .3u{W:4v}.13 .3v{W:6Z}.13 .12 .12{X:1J(\'+a+\'1K/3P.17)}.13 .1o .1l{X-11:-3Q -2E}.13 .1o .12{X-11:0 -71}.13 .1o .1m{X-11:-3g -2E}.13 .12 .1l{X-11:-3Q -5A}.13 .12 .1m{X-11:-3g -5A}.13 .1k .1l{X-11:-3Q -5B}.13 .1k .12{X-11:-3Q -2F}.13 .1k .1m{X-11:-3g -5B}.13 .19{2e:-3t -2V -3t -3h}.13 .1T{18:50%;W:72;Y:2E;2e-18:-3g;3M-18:5C;2C:73;X-1n:1J(\'+a+\'1K/23.17);X-11:0 -74}.13 .1E,.13 .1F{W:4w;Y:2E;X-1n:1J(\'+a+\'1K/23.17)}.13 .1E{X-11:3R -5D}.13 .1F{X-11:4x -5D}.13 .1E:2T{X-11:3R -5E}.13 .1F:2T{X-11:4x -5E}.13 .1D{W:76;Y:5F;1a:-2D;3O:-4y;X-1n:1J(\'+a+\'1K/23.17);X-11:-4v 0} #Z .15 .3f-1U-3r{W:2U !1x;Y:2U !1x;2C:2V !1x;3O:4u !1x;X-1n:1J(\'+a+\'1H/23.17) !1x;X-11:-5G -2G !1x}.15 .29{1a:4y}.15 .2f,.15 .2g{X-1n:1J(\'+a+\'1H/23.17)}.15 .1o{Y:4z}.15 .1k{Y:77}.15 .3u,.15 .3v{W:2V}.15 .12 .12{X:1J(\'+a+\'1H/3P.17)}.15 .1o .1l{X-11:0 0}.15 .1o .12{X-11:0 -4x}.15 .1o .1m{X-11:2V 0}.15 .12 .1l{X-11:0 -2G}.15 .12 .1m{X-11:2V -2G}.15 .1k .1l{X-11:0 -5H}.15 .1k .12{X-11:0 -78}.15 .1k .1m{X-11:2V -5H}.15 .19{2e:0 -5I}.15 .1T{18:50%;W:3R;2e-18:-3g;2C:5J}.15 .1E,.15 .1F{W:4w;Y:2E;2e:0 2D;X-1n:1J(\'+a+\'1H/23.17)}.15 .1E{X-11:2F -3S}.15 .1F{X-11:3T -3S}.15 .1E:2T{X-11:2F -3U}.15 .1F:2T{X-11:3T -3U}.15 .1D{W:3h;Y:3h;1a:5I;18:4u;X-1n:1J(\'+a+\'1H/23.17);X-11:-4z -2G} #Z .16 .3f-1U-3r{W:2U !1x;Y:2U !1x;2C:79 !1x;3O:5K !1x;X-1n:1J(\'+a+\'1P/23.17) !1x;X-11:-5G -2G !1x}.16 .29{1a:5C;2R-5z:2D 2D 5L #7a}.16 .2f,.16 .2g{X-1n:1J(\'+a+\'1P/23.17)}.16 .1o{Y:5F}.16 .1k{Y:2E}.16 .3u,.16 .3v{W:7b}.16 .12 .12{X:1J(\'+a+\'1P/3P.17) 5y-x 1a}.16 .1o .1l{X-11:0 0}.16 .1o .12{X-11:0 -2E}.16 .1o .1m{X-11:-2F 0}.16 .12 .1l{X-11:0 -2G}.16 .12 .1m{X-11:-2F -2G}.16 .1k .1l{X-11:0 -5M}.16 .1k .12{X-11:0 -7c}.16 .1k .1m{X-11:-2F -5M}.16 .19{2e:-5L -3t -5N -3t}.16 .1T{18:50%;W:3R;2e-18:-3g;2C:5J}.16 .1E,.16 .1F{W:4w;Y:2E;2e:0 2D;X-1n:1J(\'+a+\'1P/23.17)}.16 .1E{X-11:2F -3S}.16 .1F{X-11:3T -3S}.16 .1E:2T{X-11:2F -3U}.16 .1F:2T{X-11:3T -3U}.16 .1D{W:3h;Y:3h;1a:4y;18:7d;X-1n:1J(\'+a+\'1P/23.17);X-11:-4z -2G}</1A>\';T c=\'<1A 1O="2R/1u" 3J="3K">.13 .19{2e-2C:-5K}</1A>\';T d=\'<1A 1O="2R/1u" 3J="3K">.13 .19{2e-2C:-3h}.13 .1T{W:7e;3M-18:5N}.13 .1o .1l,.13 .1o .12,.13 .1o .1m{X-1n:1y}.13 .12 .1l,.13 .12 .1m{X-1n:1y}.13 .1k .1l,.13 .1k .12,.13 .1k .1m{X-1n:1y}.13 .1T,.13 .1E,.13 .1F,.13 .1D{X-1n:1y}.13 .1o .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4A.17" , 1t="1z" )}.13 .1o .12{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4B.17" , 1t="2a")}.13 .1o .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4C.17" , 1t="1z" )}.13 .12 .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4D.17" , 1t="2a")}.13 .12 .12{1f:3w(2S = 75);X:3p}.13 .12 .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4E.17" , 1t="2a")}.13 .1k .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4F.17" , 1t="1z" )}.13 .1k .12{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4G.17", 1t="2a")}.13 .1k .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4H.17" , 1t="1z" )}.13 .1T{X:#7f}.13 .1E{1f:1p:1q.1r.1s(1g="\'+a+\'1K/2W.17" , 1t="1z" )}.13 .1F{1f:1p:1q.1r.1s(1g="\'+a+\'1K/2X.17" , 1t="1z" )}.13 .1D{1f:1p:1q.1r.1s(1g="\'+a+\'1K/4I.17" , 1t="1z" )} .15 .1k{Y:5O}.15 .1T{W:5P}.15 .1o .1l,.15 .1o .12,.15 .1o .1m{X-1n:1y}.15 .12 .1l,.15 .12 .1m{X-1n:1y}.15 .1k .1l,.15 .1k .12,.15 .1k .1m{X-1n:1y}.15 .1E,.15 .1F,.15 .1D{X-1n:1y}.15 .1o .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4A.17" , 1t="1z" )}.15 .1o .12{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4B.17" , 1t="2a")}.15 .1o .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4C.17" , 1t="1z" )}.15 .12 .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4D.17" , 1t="2a")}.15 .12 .12{1f:3w(2S = 70);X:3p}.15 .12 .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4E.17" , 1t="2a")}.15 .1k .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4F.17" , 1t="1z" )}.15 .1k .12{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4G.17", 1t="2a")}.15 .1k .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4H.17" , 1t="1z" )}.15 .1E{1f:1p:1q.1r.1s(1g="\'+a+\'1H/2W.17" , 1t="1z" )}.15 .1F{1f:1p:1q.1r.1s(1g="\'+a+\'1H/2X.17" , 1t="1z" )}.15 .1D{1f:1p:1q.1r.1s(1g="\'+a+\'1H/4I.17" , 1t="1z" )} .16 .1k{Y:5O}.16 .1T{W:5P}.16 .1o .1l,.16 .1o .12,.16 .1o .1m{X-1n:1y}.16 .12 .1l,.16 .12 .1m{X-1n:1y}.16 .1k .1l,.16 .1k .12,.16 .1k .1m{X-1n:1y}.16 .1E,.16 .1F,.16 .1D{X-1n:1y}.16 .1o .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4A.17" , 1t="1z" )}.16 .1o .12{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4B.17" , 1t="2a")}.16 .1o .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4C.17" , 1t="1z" )}.16 .12 .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4D.17" , 1t="2a")}.16 .12 .12{1f:3w(2S = 70);X:3p}.16 .12 .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4E.17" , 1t="2a")}.16 .1k .1l{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4F.17" , 1t="1z" )}.16 .1k .12{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4G.17", 1t="2a")}.16 .1k .1m{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4H.17" , 1t="1z" )}.16 .1E{1f:1p:1q.1r.1s(1g="\'+a+\'1P/2W.17" , 1t="1z" )}.16 .1F{1f:1p:1q.1r.1s(1g="\'+a+\'1P/2X.17" , 1t="1z" )}.16 .1D{1f:1p:1q.1r.1s(1g="\'+a+\'1P/4I.17" , 1t="1z" )}</1A>\';T e=\'<1A 1O="2R/1u" 3J="3K">#2o{1a:5Q((7g = 25.3V.27 ? 25.3V.27 : 25.2z.27) + "4J");18:5Q((7h = 25.3V.2c ? 25.3V.2c : 25.2z.2c) + "4J");11:2l}.3o{1f:3w(2S = 0)}.3L{1f:3w(2S = 65)}.19{11:4m;7i:1}</1A>\';T f=\'<1b 1R="2o" 2Y="1v.3W()" 1A="1I: 1y"></1b><1b 1R="Z" 14="2u" 1A="1I: 1y"><1b 14="3s"><1b 14="29"></1b><2Q 14="1N"><1W 14="1o"><1d 14="1l 2f"><1b 14="3u"></1b></1d><1d 14="12 2g"></1d><1d 14="1m 2f"><1b 14="3v"></1b></1d></1W><1W 14="12"><1d 14="1l 2g"></1d><1d 14="12"><1b 14="19"><!-- 5R --></1b></1d><1d 14="1m 2g"></1d></1W><1W 14="1k"><1d 14="1l 2f"></1d><1d 14="12 2g"></1d><1d 14="1m 2f"></1d></1W></2Q><1b 14="1T" 1A="1I: 1y"><a 14="1E" 2Y="1v.2W()"></a><a 14="1F" 2Y="1v.2X()"></a></1b><a 14="1D" 2Y="1v.3i()" 1A="1I: 1y"></a></1b></1b><1b 1R="1C" 14="2u 3o"><1b 14="3s"><1b 14="29"></1b><2Q 14="1N"><1W 14="1o"><1d 14="1l 2f"><1b 14="3u"></1b></1d><1d 14="12 2g"></1d><1d 14="1m 2f"><1b 14="3v"></1b></1d></1W><1W 14="12"><1d 14="1l 2g"></1d><1d 14="12"><1b 14="19"><!-- 5R --></1b></1d><1d 14="1m 2g"></1d></1W><1W 14="1k"><1d 14="1l 2f"></1d><1d 14="12 2g"></1d><1d 14="1m 2f"></1d></1W></2Q><1b 14="1T" 1A="1I: 1y"><a 14="1E" 2Y="1v.2W()"></a><a 14="1F" 2Y="1v.2X()"></a></1b><a 14="1D" 2Y="1v.3i()" 1A="1I: 1y"></a></1b></1b><2Q 1R="2t" 1A="1I: 1y"><1W 7j="3P"><1d 1R="5f" 5u="3H"><!-- 7k 7l --></1d></1W></2Q><1b 1R="3N" 1A="1I: 1y"></1b>\';5(!3("2Z").1S){3(25.2z).4K("<2Z></2Z>")}3(b).7m("2Z");5(3.3m||3.3a){3(c).4L("2Z > 1A:3X")}5(3.2k){3(d).4L("2Z > 1A:3X")}5(3.3E){3(e).4L("2Z > 1A:3X")}3(f).3n("2z")};T s=V(){T b=[];5(!o){b.3D("[14^=3Y][14*=x]");3.2x(["4M","4N","4O","1n","2p","30","2H","3j","3Z"],V(i,a){b.3D("[14^=3Y][14*=4j"+a+"]")})}2j=3.7n([".Z","[4P]",b.5S(",")],3.4h(36)).5S();3(2j).7o("5T",u);3(25).4q("7p",v)};T t=V(a){1h 3.3a||3.3m||3.2k?0:a};T u=V(a){1v.41(3(a.4o));1h 1X};T v=V(a){5(3("#Z").21(":2n")||3(a.4o).21(":7q")){1h}2I(a.7r){1e 38:1v.3i();1L;1e 40:1v.3i();1L;1e 37:1v.2W();1L;1e 39:1v.2X();1L}};T w=V(d,e){T f=3.20({},{2h:"#"+d.3b.1R(),4Q:d.2j});3.2x(d.3b.2b("14").2O(/\\s/),V(i,c){5(c.2i(/^3Y/)){3.2x(c.42(/^3Y/,"").2O("4j"),V(j,a){2I(a){1e"4M":1e"4N":1e"4O":f["4d"]={"4M":"1K","4N":"1H","4O":"1P"}[a];1L;1e"1n":1e"2p":1e"30":1e"2H":1e"3j":1e"3Z":f["1O"]=a;1L;43:5(a.2i(/\\7s\\d/)){f["W"]=a.2O("x")[0];f["Y"]=a.2O("x")[1]}}})}});5(d.3b.21("[4P]")){3.2x(d.3b.2b("4P").2O(","),V(i,a){T b=a.2O("=");f[3.4k(b[0])]=3.4k(b[1])})}5(f.5U&&1i(f.5U,10)==1){f.1w=1M}5(e){f=3.20(f,e)}1h f};T x=V(a,b,c){T d=3.20({},p);5(b){5(36[b.4Q]){d=3.20(d,36[b.4Q])}d=3.20(d,b)}5(d.31&&!3.4R(d.31)){T e=d.31;d.31=V(){5V(e)}}5(d.3k&&!3.4R(d.3k)){T f=d.3k;d.3k=V(){5V(f)}}5(c){d.2J=d.2J?3(d.2J):a;5(!d.1O){d.1O=y(a)}5(z(d)){d.1U=0}U=3.20({},d)}1h d};T y=V(a){5(a.32().2i(/\\.(4t|7t|7u|17)(\\?[33]+)?$/)){1h"1n"}5(a.32().2i(/\\.(7v)(\\?[33]+)?$/)){1h"4S"}5(a.32().2i(/\\.(7w|7x|7y)(\\?[33]+)?$/)){1h"4T"}5(a.32().2i(/\\.(7z|7A|7B|7C|7D|7E|7F|7G|7H|7I|7J|7K|7L|7M|7N|7O|7P|7Q|7R|7S|7T|7U|7V|7W|7X)(\\?[33]+)?$/)){1h"4U"}5(a.32().2i(/\\.(7Y|7Z|80|81|82|83|84)(\\?[33]+)?$/)){1h"4V"}5(a.32().2i(/\\.(85|86|87)(\\?[33]+)?$/)){1h"4W"}5(a.32().2i(/\\.(88|89|8a)(\\?[33]+)?$/)){1h"4X"}1h"3j"};T z=V(a){1h 3.3x((a||U).1O,["4S","4T","4U","4V","4W","4X"])!=-1};T A=V(){5(U.1w){5(!(1w&&1w.4Y==U.1w)){1w={4Y:U.1w,2q:3([])};3.2x(3(2j),V(i,e){5(!3(e).21("[4Z]")){3(e).2b("4Z",x(1M,w(3(e).3G(2j))).1w)}5(3(e).2b("4Z")==1w.4Y){1w.2q=1w.2q.8b(e)}})}T a=3.8c(1w.2q,V(e,i){1h"#"+3(e).1R()});1B=U.2h?3.3x(U.2h,a):-1}1Q{1w=1M}};T B=V(a){5(1w===1M){1h}1B=1B+a;5(1B<0){1B=1w.2q.1S-1}5(1B>1w.2q.1S-1){1B=0}1v.41(1w.2q[1B])};T C=V(){5(3("#Z .1N").1U){3("#Z .1N").1U("5W")}3("#Z .29").2K(t(51));5(!(1w&&1w.2q.1S>1)){3("#Z .1T").2K(t(51))}3(".3s").2b("14","3s 8d"+U.4d);3(".1N,.19").3c();5(1i(U.4g,10)==1){3("#2o").2A("3L")}1Q{3("#2o").2B("3L")}5((1i(U.8e,10)==1)||(1i(U.4g,10)==1)||(1i(U.3W,10)==1)){5(3.3a){T a=V(){3(\'#2o\').1u(\'1a\',25.2z.8f.27+\'4J\')};a.26();1j.8g=a;3(1j).4q(\'8h\',a)}3("#2o").28()}1Q{3("#2o").22()}T b="";5(U.2h&&(U.2h!="")&&((1i(U.8i,10)==1)||(U.2L&&U.2L.2i("{3y}")))){T c=3(U.2h);5(c.1S){T d=c.2y("8j");5(d.1S){b=d.2b("3y")||""}5(b!=""&&!(U.2L&&U.2L.2i("{3y}"))){U.2L="{3y}"}}}U.2L=(U.2L||"").42("{3y}",b).42("{8k}",1w===1M?"":(1B+1)).42("{8l}",1w===1M?"":1w.2q.1S)};T D=V(){2I(U.1O){1e"1n":U.1G=5X 5Y();3(U.1G).8m(V(){U.1G=3(1c);E()}).2b("1g",U.2J);1L;1e"4S":1e"4T":1e"4U":1e"4V":1e"4W":1e"4X":5Z 2M=25.60("2M");5Z 44=25.60("44");2M.8n(44);44.1g=U.2J;2M.W=U.W;2M.Y=U.Y;2M.8o=2N;2M.8p=2N;U.1G=$(2M);E();1L;1e"2H":U.1G=3(\'<2H 1g="\'+U.2J+\'" 8q="0" 3q="0"></2H>\');1L;1e"2p":1e"30":T a=3(U.2J);5(a.8r){T b=3("<1b></1b>").2b({1R:a.4i(),"14":(a.21(":2n")?"2n":""),1A:"1I: 1y"});U.1G=3("<1b></1b>").4l(a.4K(b).2A("52"));a.28()}1Q{U.1G=3("<1b></1b>").4l(a)}1L;1e"3j":1e"3Z":U.1G=1M;3.3j({1J:U.2J,1O:(1i(U.8s,10)==1)?"8t":"8u",8v:1X,8w:1X,2w:U.8x,8y:(U.1O=="3j")?"2p":"3Z",8z:E})}5(3.3x(U.1O,["2p","30","2H"])!=-1){E()}};T E=V(a){G();5(a){U.1G=3(a)}2I(U.1O){1e"1n":1e"2p":1e"30":1e"2H":U.3z=U.1G;3(".19").2B("3e");1L;43:U.3z=3("#1C .19");3(".19").2A("3e")}5(3("#Z").21(":2n")){H()}1Q{I()}};T F=V(){T a=3("#Z");5(3("#Z").21(":2n")){a=3(U.2h);5(!a.1S){a=3(25)}1Q 5(a.1Z().1S>0){a=3(a.1Z()[0])}}45{T b={1a:a.2m().1a,18:a.2m().18,W:a.1Y(),Y:a.1V()}}46(e){T b={1a:3(1j).27(),18:3(1j).2c(),W:1i(3(1j).W()/2,10),Y:1i(3(1j).Y()/2,10)}}3("#3N").2p("&8A;").1u(b).28()};T G=V(){3("#3N").22()};T H=V(){J();O();K("Z");3("#Z").3H();5(U.x){3("#Z").1u({18:1i(U.x,10)})}5(U.y){3("#Z").1u({1a:1i(U.y,10)})}2I(U.4e){1e"61":1e"62":3("#Z").3A(t(53),N);1L;1e"2I":1e"47":3("#Z").28("47",{63:"64"},54,N);1L;1e"4f":T a=3(U.2h);5(a.1Z().1S>0){a=3(a.1Z()[0])}T b=3("#Z").2y(".19");T c=U.2h?3.20({W:a.1Y(),Y:a.1V()},a.2m()):{1a:1i(3(1j).Y()/2,10)-1i(b.Y()/2,10)+3(1j).27(),18:1i(3(1j).W()/2,10)-1i(b.W()/2,10)+3(1j).2c(),W:10,Y:10};M("3B",c,N);1L;43:3("#Z").28();N()}};T I=V(d){T e=3("#Z .19").66("3e");5(e){3("#Z .19").2B("3e")}T f=3("#Z .19 :67");T g=3("#Z .19").5d().8B("<1b></1b>").1Z();g.2K(t(68),V(){5(1i(U.69,10)==1){g.2A("34").22().2y(".34").4K(g)}1Q{g.1Z().3n("#1C .19").48().48().49()}5(d){T a=3("#1C .19");5(3.3x(U.1O,["2p","30"])!=-1){a=a.1Z().8C(0)}d.26(a)}1Q{L();J()}5(e){3("#Z .19").2A("3e")}O();3("#Z").5e(3("#1C"));T b={W:3("#1C .19").1Y(),Y:3("#1C .19").1V()};T c=3("#1C").1Y();3("#Z .19").4a(b,6a,V(){K("Z");3("#Z").5h(c);f.67();N()})})};T J=V(){U.1G.3n("#1C .19")};T K=V(a){T b=a=="Z"?"1C":"Z";3("#"+b+" .19").1Z().3n("#"+a+" .19");5(a=="Z"){3("#Z .19").1u({W:3("#1C .19").1u("W"),Y:3("#1C .19").1u("Y")})}};T L=V(){3(".19 .52").2x(V(){T a=3("#"+3(1c).4i());5(a.66("2n")){3(1c).22()}a.8D(3(1c).2B("52")).49()});3(".19").1Z(":6b(.34)").49()};T M=V(c,d,e){T f=3("#Z");T g=f.2y(".19");5(c=="3B"){f.2A("3o").28()}T h=f.2m();T i=g.2m();T j={W:f.W()-g.W(),Y:f.Y()-g.Y()};d.1a-=i.1a-h.1a;d.18-=i.18-h.18;T k={1a:f.1u("1a"),18:f.1u("18"),W:f.1Y(),Y:f.1V()};T l={2v:c=="3B"?k:d,55:54};5(c=="3B"){l.2v.W-=j.W;l.2v.Y-=j.Y}T m=V(){T a=V(){e.26();U.1G.2B("4r")};T b=c=="2v"?V(){f.2K(t(3d),a)}:a;f.4a({1a:l.2v.1a,18:l.2v.18},l.55);U.1G.4a({W:l.2v.W,Y:l.2v.Y},l.55,b)};U.1G.2A("4r");5(c=="3B"){f.1u({1a:d.1a,18:d.18});U.1G.1u({W:d.W,Y:d.Y});3(".2u,.19").3c();f.22().2B("3o").3A(t(8E),m)}1Q{m.26()}};T N=V(){T a=t(54);5(3("#Z .1N").1U&&1i(U.1U,10)==1){T b={8F:V(){3("#Z .1N").1u({W:"2s",Y:"2s"})},8G:"3r",8H:51,8I:75,8J:"#"+U.3z.1R(),8K:U.1O=="1n"};3("#Z .1N").1U(b)}5(3.2k||3.3m){3("#Z .29").1u("W",3("#Z").W())}3("#Z .29").2p(U.2L||"").3A(a);5(1w&&1w.2q.1S>1&&3("#Z .1T").21(":2n")){5(3.2k){3("#Z .1T").28()}1Q{3("#Z .1T").3A(a)}}5(3("#Z .1D").21(":2n")){5(3.2k){3("#Z .1D").28()}1Q{3("#Z .1D").3A(a)}}Q();3(".2u,.19").3c();5(z()){U.1G.2y("6c").28()}5(U.31){U.31.26(1c,[3("#Z .19"),2w])}35=1X};T O=V(a){T b=a?1M:P;5(!a){U.3z.3c();5(3.3x(U.1O,["1n","2p","30","2H"])!=-1){3("#1C .19").3c()}a={};5(U.W){a.W=1i(U.W,10)}5(U.Y){a.Y=1i(U.Y,10)}5(3.2k){3("#Z .29").1u("W",3("#1C").1Y())}}5(3.3a){3("#Z .1D").22()}U.3z.1u(a);5(3.3a){3("#Z .8L").28()}5(b){b.26()}};T P=V(){5(3("#1C").1V()<=3(1j).Y()-4){1h}T a=3("#1C").1V()-3("#1C .19").Y(),4b={Y:3(1j).Y()-4-a};5(U.1O=="1n"){4b.W=1i(U.1G.W()*(4b.Y/U.1G.Y()),10)}O(4b)};T Q=V(){T a=3("#Z").2m();T b={W:3("#Z").1Y(),Y:3("#Z").1V()};T c={};5(a.1a-3(1j).27()<2){c.1a=3(1j).27()+2}1Q 5(a.1a+b.Y-3(1j).27()>3(1j).Y()-2){c.1a=3(1j).27()+3(1j).Y()-b.Y-2}5(a.18-3(1j).2c()<2){c.18=3(1j).2c()+2}1Q 5(a.18+b.W-3(1j).2c()>3(1j).W()-2){c.18=3(1j).2c()+3(1j).W()-b.W-24}5(3.4h(c).1S>0){5(3.2k||3.3m){3("#Z").1u(c);1j.6d(V(){3("#Z .19").28()},1)}1Q{3("#Z").4a(c,53)}}};T R=V(a){3(".19 .34").2B("34");T b=t(68);T c=V(){S(a)};3("#Z .29").2K(b);3("#Z .1T").2K(b);5(z()){U.1G.2y("6c").22()}5(3.3E){3("#Z .1D").22();c.26()}1Q{3("#Z .1D").2K(b,c)}};T S=V(a){T b=V(){5(a){a.26(1c,[3("#Z .19"),2w])}5(U.3k){U.3k.26(1c,[3("#Z .19"),2w])}L();K("1C")};2I(U.4e){1e"61":1e"62":3("#Z").2K(t(53),b);1L;1e"2I":1e"47":3("#Z").22("47",{63:"64"},6a,b);1L;1e"4f":5(3.2k){3("#Z").22();b.26();1L}T c=3(U.2h);5(c.1Z().1S>0){c=3(c.1Z()[0])}T d=3("#Z").2y(".19");T e=U.2h?3.20({W:c.1Y(),Y:c.1V()},c.2m()):{1a:1i(3(1j).Y()/2,10)+3(1j).27(),18:1i(3(1j).W()/2,10)+3(1j).2c(),W:10,Y:10};M("2v",e,b);1L;43:3("#Z").22();b()}3("#2o").22()};1h{3l:"1.7.2",56:1M,5o:"/",8M:2N,5p:"57/58/6e/6f/",8N:"57/58/",2w:2w,6g:V(){5(n){1h 1X}45{3(25).3C(V(){1v.56=3().56;p.1U=3.3f&&3.3f.1U?1:0;q();r();s();3("#Z").5i({4n:".29,.1o *,.1k *"});3.2x(4c,V(i,a){a.26()})});3(1j).8O(V(){3("*").5n();5(3("#Z .1N").1U){3("#Z .1N").1U("5W")}});n=2N}46(e){}},8P:V(a){p=3.20(p,a)},8Q:V(a){36=3.20(36,a)},3C:V(a){4c.3D(a)},6h:V(){T a=59;5(!3.5a){1v.3C(V(){1v.6h.26(1M,a)});1h 1X}5(59.1S){T b=59[0];T c=3.4R(b)?b:V(){1h b};o=c.26()}1Q{o=2N}o=o==2N||1i(o,10)==1;1v.6i()},6i:V(){5(2j){3(2j).8R("5T",u)}s()},41:V(a,b){5(!3.5a){1v.3C(V(){1v.41(a,b)});1h 1X}T c=3(a).3G(2j);T d=w(c,3.20(b||{},{8S:"#"+3(a).1R()}));1v.1I(c.3b.2b("8T"),d)},1I:V(a,b){5(!3.5a){1v.3C(V(){1v.1I(a,b)});1h 1X}5(35){1h 1X}45{35=2N;2w={};x(a,b,2N);F();T c=V(){45{A();C();D()}46(e){35=1X;G();6j("6k, 6l 6m 6n 6o 6p:\\n\\n"+e)}};5(3.2k){1j.6d(c,1)}1Q{c()}}46(e){35=1X;G();6j("6k, 6l 6m 6n 6o 6p:\\n\\n"+e)}},6q:V(a){5(3("#Z").21(":2n")){1h}I(a||V(){})},8U:V(b,c){U.69=b?1:0;U.31=c;1v.6q(V(){L();T a=1c.1Z(":6b(.34):3X-6r").8V();5(!a.1S){a=1c.1Z(".34:8W-6r")}a.1Z().8X(a).48().48().49()})},2W:V(){B(-1)},2X:V(){B(1)},3W:V(){5(1i(U.3W,10)==1){1v.3i()}},3i:V(a){5(3("#Z").21(":8Y")){R(a)}}}}());(V(){1v.6g();l=5X 5Y();l.1g=\'/57/58/6e/6f/5x.4t\'}())}',62,557,'|||jQuery||if||||||||||||||||||||||||||||||||||||||||||||||||||var|options|function|width|background|height|top_up||position|te_middle|te_dashboard|class|te_quicklook|te_flatlook|png|left|te_content|top|div|this|td|case|filter|src|return|parseInt|window|te_bottom|te_left|te_right|image|te_top|progid|DXImageTransform|Microsoft|AlphaImageLoader|sizingMethod|css|TopUp|group|important|none|crop|style|index|temp_up|te_close_link|te_previous_link|te_next_link|content|quicklook|display|url|dashboard|break|null|te_frame|type|flatlook|else|id|length|te_controls|resizable|outerHeight|tr|false|outerWidth|children|extend|is|hide|sprite||document|apply|scrollTop|show|te_title|scale|attr|scrollLeft|delta|margin|te_corner|te_rib|topUp|match|selector|ie6|absolute|offset|hidden|tu_overlay|html|items|browser|auto|tu_center_wrapper|te_top_up|to|data|each|find|body|addClass|removeClass|bottom|1px|29px|89px|181px|iframe|switch|reference|fadeOut|title|video|true|split|diff|table|text|opacity|hover|10px|12px|previous|next|onclick|head|dom|ondisplay|toLowerCase|0123456789|te_stored_content|displaying|presets||||ie8|element|unlockDimensions|100|te_scrollable|ui|33px|13px|close|ajax|onclose|version|ie7|appendTo|te_transparent|black|border|se|te_wrapper|11px|te_left_filler|te_right_filler|alpha|inArray|alt|resize|fadeIn|from|ready|push|ie|msie|bubbleDetect|center|block|media|screen|te_shaded|padding|tu_loader|right|middle|17px|66px|195px|52px|226px|documentElement|overlayClose|first|tu_|script||displayTopUp|replace|default|source|try|catch|clip|end|remove|animate|dimensions|on_ready|layout|effect|transform|shaded|keys|markerId|_|trim|append|relative|only|target|te_dragging|bind|te_overflow|font|gif|9px|20px|31px|30px|6px|24px|top_left|top_middle|top_right|middle_left|middle_right|bottom_left|bottom_middle|bottom_right|close_link|px|before|insertAfter|db|ql|fl|toptions|preset|isFunction|flash|flashvideo|quicktime|realplayer|windowsmedia|divxmedia|name|tu_group||200|marked|300|500|duration|jquery|template|global|arguments|isReady|ff2|parent|lockDimensions|centerWrap|tu_centered_content|inline|removeCenterWrap|draggableZ|pageY|pageX|mousemove|draggable|unbind|host|images_path|overflow|cursor|1000|color|align|1001|collapse|loader|repeat|shadow|232px|47px|5px|113px|142px|26px|75px|122px|7px|18px|14px|2px|90px|3px|55px|67px|expression|Content|join|click|noGroup|eval|destroy|new|Image|let|createElement|appear|fade|direction|vertical||hasClass|focus|250|storeCurrent|400|not|object|setTimeout|topup|images|init|enableFastMode|rebind|alert|Sorry|but|the|following|error|occured|update|child|typeof|undefined|for|in|hasOwnProperty|mozilla|parseFloat|fn|do|element_|while|_marker|mousedown|preventDefault|mouseup|move|fixed|999|9999px|transparent|white|family|Lucida|Grande|Arial|size|pointer|1002|float|no|1003|weight|bold|19px||71px|63px|35px|178px||28px|56px|61px|22px|2A2A2A|21px|58px|15px|65px|505455|ignoreMe|ignoreMe2|zoom|valign|Top|ups|prependTo|merge|live|keyup|input|keyCode|dx|jpg|jpeg|swf|flv|mp3|mp4|aif|aiff|aac|au|bmp|gsm|mov|mid|midi|mpg|mpeg|m4a|m4v|psd|qt|qtif|qif|qti|snd|tif|tiff|wav|3g2|3gp|wbmp|ra|ram|rm|rpm|rv|smi|smil|asf|wma|wmv|avi|divx|mkv|add|map|te_|modal|parentElement|onresize|scroll|readAltText|img|current|total|load|appendChild|controls|autoplay|frameborder|context|post|POST|GET|cache|async|parameters|dataType|success|nbsp|wrapInner|eq|after|150|stop|handles|minWidth|minHeight|alsoResize|aspectRatio|te_close|fast_mode|players_path|unload|defaultPreset|addPresets|die|trigger|href|restore|prev|last|insertBefore|visible'.split('|'),0,{}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment