//jQuery blockUI plugin jquery.blockUI.js
(function ($) { if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) { alert('blockUI requires jQuery v1.2.3 or later!  You are using v' + $.fn.jquery); return } $.fn._fadeIn = $.fn.fadeIn; var noOp = function () { }; var mode = document.documentMode || 0; var setExpr = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8); var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && !mode; $.blockUI = function (opts) { install(window, opts) }; $.unblockUI = function (opts) { remove(window, opts) }; $.growlUI = function (title, message, timeout, onClose) { var $m = $('<div class="growlUI"></div>'); if (title) $m.append('<h1>' + title + '</h1>'); if (message) $m.append('<h2>' + message + '</h2>'); if (timeout == undefined) timeout = 3000; $.blockUI({ message: $m, fadeIn: 700, fadeOut: 1000, centerY: false, timeout: timeout, showOverlay: false, onUnblock: onClose, css: $.blockUI.defaults.growlCSS }) }; $.fn.block = function (opts) { return this.unblock({ fadeOut: 0 }).each(function () { if ($.css(this, 'position') == 'static') this.style.position = 'relative'; if ($.browser.msie) this.style.zoom = 1; install(this, opts) }) }; $.fn.unblock = function (opts) { return this.each(function () { remove(this, opts) }) }; $.blockUI.version = 2.33; $.blockUI.defaults = { message: '<img src="/images/busy.gif" /> <h3>Please wait...</h3>', title: null, draggable: true, theme: false, css: { padding: 0, margin: 0, width: '20%', top: '40%', left: '40%', textAlign: 'center', color: '#000', border: '4px solid #bd063e', backgroundColor: '#fff', cursor: 'wait', padding: '20px 0' }, themedCSS: { width: '30%', top: '40%', left: '35%' }, overlayCSS: { backgroundColor: '#000', opacity: 0.6, cursor: 'wait' }, growlCSS: { width: '350px', top: '10px', left: '', right: '10px', border: 'none', padding: '5px', opacity: 0.6, cursor: 'default', color: '#fff', backgroundColor: '#000', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', 'border-radius': '10px' }, iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank', forceIframe: false, baseZ: 1000, centerX: true, centerY: true, allowBodyStretch: true, bindEvents: true, constrainTabKey: true, fadeIn: 200, fadeOut: 400, timeout: 0, showOverlay: true, focusInput: true, applyPlatformOpacityRules: true, onBlock: null, onUnblock: null, quirksmodeOffsetHack: 4 }; var pageBlock = null; var pageBlockEls = []; function install(el, opts) { var full = (el == window); var msg = opts && opts.message !== undefined ? opts.message : undefined; opts = $.extend({}, $.blockUI.defaults, opts || {}); opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {}); var css = $.extend({}, $.blockUI.defaults.css, opts.css || {}); var themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {}); msg = msg === undefined ? opts.message : msg; if (full && pageBlock) remove(window, { fadeOut: 0 }); if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) { var node = msg.jquery ? msg[0] : msg; var data = {}; $(el).data('blockUI.history', data); data.el = node; data.parent = node.parentNode; data.display = node.style.display; data.position = node.style.position; if (data.parent) data.parent.removeChild(node) } var z = opts.baseZ; var lyr1 = ($.browser.msie || opts.forceIframe) ? $('<iframe class="blockUI" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="' + opts.iframeSrc + '"></iframe>') : $('<div class="blockUI" style="display:none"></div>'); var lyr2 = $('<div class="blockUI blockOverlay" style="z-index:' + (z++) + ';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'); var lyr3, s; if (opts.theme && full) { s = '<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:' + z + ';display:none;position:fixed">' + '<div class="ui-widget-header ui-dialog-titlebar blockTitle">' + (opts.title || '&nbsp;') + '</div>' + '<div class="ui-widget-content ui-dialog-content"></div>' + '</div>' } else if (opts.theme) { s = '<div class="blockUI blockMsg blockElement ui-dialog ui-widget ui-corner-all" style="z-index:' + z + ';display:none;position:absolute">' + '<div class="ui-widget-header ui-dialog-titlebar blockTitle">' + (opts.title || '&nbsp;') + '</div>' + '<div class="ui-widget-content ui-dialog-content"></div>' + '</div>' } else if (full) { s = '<div class="blockUI blockMsg blockPage" style="z-index:' + z + ';display:none;position:fixed"></div>' } else { s = '<div class="blockUI blockMsg blockElement" style="z-index:' + z + ';display:none;position:absolute"></div>' } lyr3 = $(s); if (msg) { if (opts.theme) { lyr3.css(themedCSS); lyr3.addClass('ui-widget-content') } else lyr3.css(css) } if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && /Linux/.test(navigator.platform))) lyr2.css(opts.overlayCSS); lyr2.css('position', full ? 'fixed' : 'absolute'); if ($.browser.msie || opts.forceIframe) lyr1.css('opacity', 0.0); var layers = [lyr1, lyr2, lyr3], $par = full ? $('body') : $(el); $.each(layers, function () { this.appendTo($par) }); if (opts.theme && opts.draggable && $.fn.draggable) { lyr3.draggable({ handle: '.ui-dialog-titlebar', cancel: 'li' }) } var expr = setExpr && (!$.boxModel || $('object,embed', full ? null : el).length > 0); if (ie6 || expr) { if (full && opts.allowBodyStretch && $.boxModel) $('html,body').css('height', '100%'); if ((ie6 || !$.boxModel) && !full) { var t = sz(el, 'borderTopWidth'), l = sz(el, 'borderLeftWidth'); var fixT = t ? '(0 - ' + t + ')' : 0; var fixL = l ? '(0 - ' + l + ')' : 0 } $.each([lyr1, lyr2, lyr3], function (i, o) { var s = o[0].style; s.position = 'absolute'; if (i < 2) { full ? s.setExpression('height', 'Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:' + opts.quirksmodeOffsetHack + ') + "px"') : s.setExpression('height', 'this.parentNode.offsetHeight + "px"'); full ? s.setExpression('width', 'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"') : s.setExpression('width', 'this.parentNode.offsetWidth + "px"'); if (fixL) s.setExpression('left', fixL); if (fixT) s.setExpression('top', fixT) } else if (opts.centerY) { if (full) s.setExpression('top', '(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'); s.marginTop = 0 } else if (!opts.centerY && full) { var top = (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0; var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + ' + top + ') + "px"'; s.setExpression('top', expression) } }) } if (msg) { if (opts.theme) lyr3.find('.ui-widget-content').append(msg); else lyr3.append(msg); if (msg.jquery || msg.nodeType) $(msg).show() } if (($.browser.msie || opts.forceIframe) && opts.showOverlay) lyr1.show(); if (opts.fadeIn) { var cb = opts.onBlock ? opts.onBlock : noOp; var cb1 = (opts.showOverlay && !msg) ? cb : noOp; var cb2 = msg ? cb : noOp; if (opts.showOverlay) lyr2._fadeIn(opts.fadeIn, cb1); if (msg) lyr3._fadeIn(opts.fadeIn, cb2) } else { if (opts.showOverlay) lyr2.show(); if (msg) lyr3.show(); if (opts.onBlock) opts.onBlock() } bind(1, el, opts); if (full) { pageBlock = lyr3[0]; pageBlockEls = $(':input:enabled:visible', pageBlock); if (opts.focusInput) setTimeout(focus, 20) } else center(lyr3[0], opts.centerX, opts.centerY); if (opts.timeout) { var to = setTimeout(function () { full ? $.unblockUI(opts) : $(el).unblock(opts) }, opts.timeout); $(el).data('blockUI.timeout', to) } }; function remove(el, opts) { var full = (el == window); var $el = $(el); var data = $el.data('blockUI.history'); var to = $el.data('blockUI.timeout'); if (to) { clearTimeout(to); $el.removeData('blockUI.timeout') } opts = $.extend({}, $.blockUI.defaults, opts || {}); bind(0, el, opts); var els; if (full) els = $('body').children().filter('.blockUI').add('body > .blockUI'); else els = $('.blockUI', el); if (full) pageBlock = pageBlockEls = null; if (opts.fadeOut) { els.fadeOut(opts.fadeOut); setTimeout(function () { reset(els, data, opts, el) }, opts.fadeOut) } else reset(els, data, opts, el) }; function reset(els, data, opts, el) { els.each(function (i, o) { if (this.parentNode) this.parentNode.removeChild(this) }); if (data && data.el) { data.el.style.display = data.display; data.el.style.position = data.position; if (data.parent) data.parent.appendChild(data.el); $(el).removeData('blockUI.history') } if (typeof opts.onUnblock == 'function') opts.onUnblock(el, opts) }; function bind(b, el, opts) { var full = el == window, $el = $(el); if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked'))) return; if (!full) $el.data('blockUI.isBlocked', b); if (!opts.bindEvents || (b && !opts.showOverlay)) return; var events = 'mousedown mouseup keydown keypress'; b ? $(document).bind(events, opts, handler) : $(document).unbind(events, handler) }; function handler(e) { if (e.keyCode && e.keyCode == 9) { if (pageBlock && e.data.constrainTabKey) { var els = pageBlockEls; var fwd = !e.shiftKey && e.target == els[els.length - 1]; var back = e.shiftKey && e.target == els[0]; if (fwd || back) { setTimeout(function () { focus(back) }, 10); return false } } } if ($(e.target).parents('div.blockMsg').length > 0) return true; return $(e.target).parents().children().filter('div.blockUI').length == 0 }; function focus(back) { if (!pageBlockEls) return; var e = pageBlockEls[back === true ? pageBlockEls.length - 1 : 0]; if (e) e.focus() }; function center(el, x, y) { var p = el.parentNode, s = el.style; var l = ((p.offsetWidth - el.offsetWidth) / 2) - sz(p, 'borderLeftWidth'); var t = ((p.offsetHeight - el.offsetHeight) / 2) - sz(p, 'borderTopWidth'); if (x) s.left = l > 0 ? (l + 'px') : '0'; if (y) s.top = t > 0 ? (t + 'px') : '0' }; function sz(el, p) { return parseInt($.css(el, p)) || 0 } })(jQuery);

//jquery.MallbTime.js
jQuery.fn.extend({ MallbTimes: function (i, tag) { if (!(this.size())) { return } var a = [], h = Math.floor, f = null, b = function (m) { return h(m % 3600000 % 60000 / 100) }, c = function (m) { return h(m % 3600000 % 60000 / 1000) }, l = function (m) { return h(m % 3600000 / 60000) }, d = function (m) { return h(m / 3600000) }; switch (i) { case 100: f = k; break; case 1000: f = j; break; case 60000: f = g; break } this.each(function (m) { var n = this.getElementsByTagName("em"), p = [], o = n[2].innerHTML * 1000; o = o ? o : 0; p[0] = n; p[1] = m; p[2] = ((n[0].innerHTML * 1 * 60 + n[1].innerHTML * 1) * 60) * 1000 + o; var str = this.id; var start = str.indexOf('_') + 1; if (start < 0) { start = 0 } var ll = str.length; p["id"] = str.substring(start, ll); a.push(p) }); (function () { for (var m = 0; m < a.length; m++) { f(a[m][0], a[m][1], a[m][2], a[m]) } setTimeout(arguments.callee, i) })(); function j(q, p, o, r) { r[2] = o -= i; if (o < 0) { a.splice(p, 1); if (typeof (tag) == "function") { tag(r.id) } return } var n; if (c(o) == 59) { q[1].innerHTML = n = l(o); if (n == 59) { q[0].innerHTML = d(o) } } q[2].innerHTML = c(o) } function k(q, p, o, r) { r[2] = o -= i; if (o < 0) { a.splice(p, 1); if (typeof (tag) == "function") { tag(r.id) } return } var n; if (b(o) == 599) { q[1].innerHTML = n = l(o); if (n == 59) { q[0].innerHTML = d(o) } } q[2].innerHTML = (b(o) / 10).toFixed(1) } function g(o, n, m, p) { p[2] = m -= i; if (m < 0) { a.splice(n, 1); o[2].parentNode.innerHTML = "<em>0.0</em> s"; if (typeof (tag) == "function") { tag(r.id) } return } if (l(m) == 59) { o[0].innerHTML = d(m) } o[1].innerHTML = l(m) } } });

//jQuery Form Plugin  version: 2.75 (20-MAY-2011) jquery.form.js
(function ($) { $.fn.ajaxSubmit = function (options) { if (!this.length) { log('ajaxSubmit: skipping submit process - no element selected'); return this } if (typeof options == 'function') { options = { success: options} } var action = this.attr('action'); var url = (typeof action === 'string') ? $.trim(action) : ''; url = url || window.location.href || ''; if (url) { url = (url.match(/^([^#]+)/) || [])[1] } options = $.extend(true, { url: url, success: $.ajaxSettings.success, type: this[0].getAttribute('method') || 'GET', iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank' }, options); var veto = {}; this.trigger('form-pre-serialize', [this, options, veto]); if (veto.veto) { log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); return this } if (options.beforeSerialize && options.beforeSerialize(this, options) === false) { log('ajaxSubmit: submit aborted via beforeSerialize callback'); return this } var n, v, a = this.formToArray(options.semantic); if (options.data) { options.extraData = options.data; for (n in options.data) { if (options.data[n] instanceof Array) { for (var k in options.data[n]) { a.push({ name: n, value: options.data[n][k] }) } } else { v = options.data[n]; v = $.isFunction(v) ? v() : v; a.push({ name: n, value: v }) } } } if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) { log('ajaxSubmit: submit aborted via beforeSubmit callback'); return this } this.trigger('form-submit-validate', [a, this, options, veto]); if (veto.veto) { log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); return this } var q = $.param(a); if (options.type.toUpperCase() == 'GET') { options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q; options.data = null } else { options.data = q } var $form = this, callbacks = []; if (options.resetForm) { callbacks.push(function () { $form.resetForm() }) } if (options.clearForm) { callbacks.push(function () { $form.clearForm() }) } if (!options.dataType && options.target) { var oldSuccess = options.success || function () { }; callbacks.push(function (data) { var fn = options.replaceTarget ? 'replaceWith' : 'html'; $(options.target)[fn](data).each(oldSuccess, arguments) }) } else if (options.success) { callbacks.push(options.success) } options.success = function (data, status, xhr) { var context = options.context || options; for (var i = 0, max = callbacks.length; i < max; i++) { callbacks[i].apply(context, [data, status, xhr || $form, $form]) } }; var fileInputs = $('input:file', this).length > 0; var mp = 'multipart/form-data'; var multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp); if (options.iframe !== false && (fileInputs || options.iframe || multipart)) { if (options.closeKeepAlive) { $.get(options.closeKeepAlive, fileUpload) } else { fileUpload() } } else { $.ajax(options) } this.trigger('form-submit-notify', [this, options]); return this; function fileUpload() { var form = $form[0]; if ($(':input[name=submit],:input[id=submit]', form).length) { alert('Error: Form elements must not have name or id of "submit".'); return } var s = $.extend(true, {}, $.ajaxSettings, options); s.context = s.context || s; var id = 'jqFormIO' + (new Date().getTime()), fn = '_' + id; var $io = $('<iframe id="' + id + '" name="' + id + '" src="' + s.iframeSrc + '" />'); var io = $io[0]; $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' }); var xhr = { aborted: 0, responseText: null, responseXML: null, status: 0, statusText: 'n/a', getAllResponseHeaders: function () { }, getResponseHeader: function () { }, setRequestHeader: function () { }, abort: function (status) { var e = (status === 'timeout' ? 'timeout' : 'aborted'); log('aborting upload... ' + e); this.aborted = 1; $io.attr('src', s.iframeSrc); xhr.error = e; s.error && s.error.call(s.context, xhr, e, e); g && $.event.trigger("ajaxError", [xhr, s, e]); s.complete && s.complete.call(s.context, xhr, e) } }; var g = s.global; if (g && !$.active++) { $.event.trigger("ajaxStart") } if (g) { $.event.trigger("ajaxSend", [xhr, s]) } if (s.beforeSend && s.beforeSend.call(s.context, xhr, s) === false) { if (s.global) { $.active-- } return } if (xhr.aborted) { return } var timedOut = 0, timeoutHandle; var sub = form.clk; if (sub) { var n = sub.name; if (n && !sub.disabled) { s.extraData = s.extraData || {}; s.extraData[n] = sub.value; if (sub.type == "image") { s.extraData[n + '.x'] = form.clk_x; s.extraData[n + '.y'] = form.clk_y } } } function doSubmit() { var t = $form.attr('target'), a = $form.attr('action'); form.setAttribute('target', id); if (form.getAttribute('method') != 'POST') { form.setAttribute('method', 'POST') } if (form.getAttribute('action') != s.url) { form.setAttribute('action', s.url) } if (!s.skipEncodingOverride) { $form.attr({ encoding: 'multipart/form-data', enctype: 'multipart/form-data' }) } if (s.timeout) { timeoutHandle = setTimeout(function () { timedOut = true; cb(true) }, s.timeout) } var extraInputs = []; try { if (s.extraData) { for (var n in s.extraData) { extraInputs.push($('<input type="hidden" name="' + n + '" value="' + s.extraData[n] + '" />').appendTo(form)[0]) } } $io.appendTo('body'); io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false); form.submit() } finally { form.setAttribute('action', a); if (t) { form.setAttribute('target', t) } else { $form.removeAttr('target') } $(extraInputs).remove() } } if (s.forceSync) { doSubmit() } else { setTimeout(doSubmit, 10) } var data, doc, domCheckCount = 50, callbackProcessed; function cb(e) { if (xhr.aborted || callbackProcessed) { return } if (e === true && xhr) { xhr.abort('timeout'); return } var doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document; if (!doc || doc.location.href == s.iframeSrc) { if (!timedOut) return } io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false); var ok = true; try { if (timedOut) { throw 'timeout'; } var isXml = s.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc); log('isXml=' + isXml); if (!isXml && window.opera && (doc.body == null || doc.body.innerHTML == '')) { if (--domCheckCount) { log('requeing onLoad callback, DOM not available'); setTimeout(cb, 250); return } } xhr.responseText = doc.body ? doc.body.innerHTML : doc.documentElement ? doc.documentElement.innerHTML : null; xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc; if (isXml) s.dataType = 'xml'; xhr.getResponseHeader = function (header) { var headers = { 'content-type': s.dataType }; return headers[header] }; var scr = /(json|script|text)/.test(s.dataType); if (scr || s.textarea) { var ta = doc.getElementsByTagName('textarea')[0]; if (ta) { xhr.responseText = ta.value } else if (scr) { var pre = doc.getElementsByTagName('pre')[0]; var b = doc.getElementsByTagName('body')[0]; if (pre) { xhr.responseText = pre.textContent ? pre.textContent : pre.innerHTML } else if (b) { xhr.responseText = b.innerHTML } } } else if (s.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) { xhr.responseXML = toXml(xhr.responseText) } data = httpData(xhr, s.dataType, s) } catch (e) { log('error caught:', e); ok = false; xhr.error = e; s.error && s.error.call(s.context, xhr, 'error', e); g && $.event.trigger("ajaxError", [xhr, s, e]) } if (xhr.aborted) { log('upload aborted'); ok = false } if (ok) { s.success && s.success.call(s.context, data, 'success', xhr); g && $.event.trigger("ajaxSuccess", [xhr, s]) } g && $.event.trigger("ajaxComplete", [xhr, s]); if (g && ! --$.active) { $.event.trigger("ajaxStop") } s.complete && s.complete.call(s.context, xhr, ok ? 'success' : 'error'); callbackProcessed = true; if (s.timeout) clearTimeout(timeoutHandle); setTimeout(function () { $io.removeData('form-plugin-onload'); $io.remove(); xhr.responseXML = null }, 100) } var toXml = $.parseXML || function (s, doc) { if (window.ActiveXObject) { doc = new ActiveXObject('Microsoft.XMLDOM'); doc.async = 'false'; doc.loadXML(s) } else { doc = (new DOMParser()).parseFromString(s, 'text/xml') } return (doc && doc.documentElement && doc.documentElement.nodeName != 'parsererror') ? doc : null }; var parseJSON = $.parseJSON || function (s) { return window['eval']('(' + s + ')') }; var httpData = function (xhr, type, s) { var ct = xhr.getResponseHeader('content-type') || '', xml = type === 'xml' || !type && ct.indexOf('xml') >= 0, data = xml ? xhr.responseXML : xhr.responseText; if (xml && data.documentElement.nodeName === 'parsererror') { $.error && $.error('parsererror') } if (s && s.dataFilter) { data = s.dataFilter(data, type) } if (typeof data === 'string') { if (type === 'json' || !type && ct.indexOf('json') >= 0) { data = parseJSON(data) } else if (type === "script" || !type && ct.indexOf("javascript") >= 0) { $.globalEval(data) } } return data } } }; $.fn.ajaxForm = function (options) { if (this.length === 0) { var o = { s: this.selector, c: this.context }; if (!$.isReady && o.s) { log('DOM not ready, queuing ajaxForm'); $(function () { $(o.s, o.c).ajaxForm(options) }); return this } log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)')); return this } return this.ajaxFormUnbind().bind('submit.form-plugin', function (e) { if (!e.isDefaultPrevented()) { e.preventDefault(); $(this).ajaxSubmit(options) } }).bind('click.form-plugin', function (e) { var target = e.target; var $el = $(target); if (!($el.is(":submit,input:image"))) { var t = $el.closest(':submit'); if (t.length == 0) { return } target = t[0] } var form = this; form.clk = target; if (target.type == 'image') { if (e.offsetX != undefined) { form.clk_x = e.offsetX; form.clk_y = e.offsetY } else if (typeof $.fn.offset == 'function') { var offset = $el.offset(); form.clk_x = e.pageX - offset.left; form.clk_y = e.pageY - offset.top } else { form.clk_x = e.pageX - target.offsetLeft; form.clk_y = e.pageY - target.offsetTop } } setTimeout(function () { form.clk = form.clk_x = form.clk_y = null }, 100) }) }; $.fn.ajaxFormUnbind = function () { return this.unbind('submit.form-plugin click.form-plugin') }; $.fn.formToArray = function (semantic) { var a = []; if (this.length === 0) { return a } var form = this[0]; var els = semantic ? form.getElementsByTagName('*') : form.elements; if (!els) { return a } var i, j, n, v, el, max, jmax; for (i = 0, max = els.length; i < max; i++) { el = els[i]; n = el.name; if (!n) { continue } if (semantic && form.clk && el.type == "image") { if (!el.disabled && form.clk == el) { a.push({ name: n, value: $(el).val() }); a.push({ name: n + '.x', value: form.clk_x }, { name: n + '.y', value: form.clk_y }) } continue } v = $.fieldValue(el, true); if (v && v.constructor == Array) { for (j = 0, jmax = v.length; j < jmax; j++) { a.push({ name: n, value: v[j] }) } } else if (v !== null && typeof v != 'undefined') { a.push({ name: n, value: v }) } } if (!semantic && form.clk) { var $input = $(form.clk), input = $input[0]; n = input.name; if (n && !input.disabled && input.type == 'image') { a.push({ name: n, value: $input.val() }); a.push({ name: n + '.x', value: form.clk_x }, { name: n + '.y', value: form.clk_y }) } } return a }; $.fn.formSerialize = function (semantic) { return $.param(this.formToArray(semantic)) }; $.fn.fieldSerialize = function (successful) { var a = []; this.each(function () { var n = this.name; if (!n) { return } var v = $.fieldValue(this, successful); if (v && v.constructor == Array) { for (var i = 0, max = v.length; i < max; i++) { a.push({ name: n, value: v[i] }) } } else if (v !== null && typeof v != 'undefined') { a.push({ name: this.name, value: v }) } }); return $.param(a) }; $.fn.fieldValue = function (successful) { for (var val = [], i = 0, max = this.length; i < max; i++) { var el = this[i]; var v = $.fieldValue(el, successful); if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length)) { continue } v.constructor == Array ? $.merge(val, v) : val.push(v) } return val }; $.fieldValue = function (el, successful) { var n = el.name, t = el.type, tag = el.tagName.toLowerCase(); if (successful === undefined) { successful = true } if (successful && (!n || el.disabled || t == 'reset' || t == 'button' || (t == 'checkbox' || t == 'radio') && !el.checked || (t == 'submit' || t == 'image') && el.form && el.form.clk != el || tag == 'select' && el.selectedIndex == -1)) { return null } if (tag == 'select') { var index = el.selectedIndex; if (index < 0) { return null } var a = [], ops = el.options; var one = (t == 'select-one'); var max = (one ? index + 1 : ops.length); for (var i = (one ? index : 0); i < max; i++) { var op = ops[i]; if (op.selected) { var v = op.value; if (!v) { v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value } if (one) { return v } a.push(v) } } return a } return $(el).val() }; $.fn.clearForm = function () { return this.each(function () { $('input,select,textarea', this).clearFields() }) }; $.fn.clearFields = $.fn.clearInputs = function () { return this.each(function () { var t = this.type, tag = this.tagName.toLowerCase(); if (t == 'text' || t == 'password' || tag == 'textarea') { this.value = '' } else if (t == 'checkbox' || t == 'radio') { this.checked = false } else if (tag == 'select') { this.selectedIndex = -1 } }) }; $.fn.resetForm = function () { return this.each(function () { if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType)) { this.reset() } }) }; $.fn.enable = function (b) { if (b === undefined) { b = true } return this.each(function () { this.disabled = !b }) }; $.fn.selected = function (select) { if (select === undefined) { select = true } return this.each(function () { var t = this.type; if (t == 'checkbox' || t == 'radio') { this.checked = select } else if (this.tagName.toLowerCase() == 'option') { var $sel = $(this).parent('select'); if (select && $sel[0] && $sel[0].type == 'select-one') { $sel.find('option').selected(false) } this.selected = select } }) }; function log() { if ($.fn.ajaxSubmit.debug) { var msg = '[jquery.form] ' + Array.prototype.join.call(arguments, ''); if (window.console && window.console.log) { window.console.log(msg) } else if (window.opera && window.opera.postError) { window.opera.postError(msg) } } } })(jQuery);

//Cookie plugin jquery.cookie.js
jQuery.cookie = function (name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options.expires = -1 } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)) } else { date = options.expires } expires = '; expires=' + date.toUTCString() } var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('') } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break } } } return cookieValue } };

//jMessageBox jmessagebox-1.0.0.js
(function ($) { $.extend({ jMessageBox: { settings: { width: 350, title: '', bottomText: '', yesButtonText: '', noButtonText: '', cancelButtonText: '' }, _init: function () { var container = $('#jmessagebox_container'); if (container.length == 0) { $('body').append('<iframe style="display:none;position:absolute;z-index:2997;top:0px;left:0px;width:100%;height:100%;background-color:#ffffff;filter:alpha(opacity=0);opacity:0"jmlayer="1" jmconverlayer="1"></iframe>'); $('body').append('<div style="display:none;position:absolute;z-index:2998;top:0px;left:0px;width:100%;height:100%;background-color:#000000;filter:alpha(opacity=75);opacity:0.75" jmlayer="1" jmconverlayer="1"></div>'); $('body').append('<div id="jmessagebox_container" name="jmessagebox_container" style="display:none;position:absolute;z-index:2999;" jmlayer="1"><div id="jmessagebox_title"></div><div id="jmessagebox_message"></div><div id="jmessagebox_buttons"><button id="jmessagebox_yesbutton"></button><button id="jmessagebox_nobutton"></button><button id="jmessagebox_cancelbutton"></button></div><div id="jmessagebox_bottom"></div></div>'); $(window).scroll($.jMessageBox._fixposition); $('#jmessagebox_title').html($.jMessageBox.settings.title); $('#jmessagebox_yesbutton').html($.jMessageBox.settings.yesButtonText); $('#jmessagebox_nobutton').html($.jMessageBox.settings.noButtonText); $('#jmessagebox_cancelbutton').html($.jMessageBox.settings.cancelButtonText); $('#jmessagebox_bottom').html($.jMessageBox.settings.bottomText) } }, _getposition: function () { var p = {}; var scrollWidth, scrollHeight; if (window.innerHeight && window.scrollMaxY) { scrollWidth = window.innerWidth + window.scrollMaxX; scrollHeight = window.innerHeight + window.scrollMaxY } else if (document.body.scrollHeight > document.body.offsetHeight) { scrollWidth = document.body.scrollWidth; scrollHeight = document.body.scrollHeight } else { scrollWidth = document.body.offsetWidth; scrollHeight = document.body.offsetHeight } if (self.innerHeight) { if (document.documentElement.clientWidth) { p.windowWidth = document.documentElement.clientWidth } else { p.windowWidth = self.innerWidth } p.windowHeight = self.innerHeight } else if (document.documentElement && document.documentElement.clientHeight) { p.windowWidth = document.documentElement.clientWidth; p.windowHeight = document.documentElement.clientHeight } else if (document.body) { p.windowWidth = document.body.clientWidth; p.windowHeight = document.body.clientHeight } if (scrollWidth < p.windowWidth) { p.width = scrollWidth } else { p.width = p.windowWidth } if (scrollHeight < p.windowHeight) { p.height = scrollHeight } else { p.height = p.windowHeight } p.windowWidth = Math.max(p.windowWidth, scrollWidth); p.windowHeight = Math.max(p.windowHeight, scrollHeight); if (typeof (window.pageXOffset) == "number") { p.left = window.pageXOffset } else if (document.documentElement && document.documentElement.scrollLeft) { p.left = document.documentElement.scrollLeft } else if (document.body) { p.left = document.body.scrollLeft } else if (window.scrollX) { p.left = window.scrollX } if (typeof (window.pageYOffset) == "number") { p.top = window.pageYOffset } else if (document.documentElement && document.documentElement.scrollTop) { p.top = document.documentElement.scrollTop } else if (document.body) { p.top = document.body.scrollTop } else if (window.scrollY) { p.top = window.scrollY } return p }, _fixposition: function () { var container = $('#jmessagebox_container'); if (container.length > 0 && container.css('display') != 'none' && container.attr('fixit') == '1') { var p = $.jMessageBox._getposition(); var left = p.left + ((p.width - container.width()) / 2); var top = p.top + ((p.height - container.height()) / 2); container.css({ left: left, top: top }) } }, _setbutton: function (id, arg) { var button = $(id); if (arg) { button.show(); if (arg.text) button.html(arg.text); if (arg.click) button.get(0).onclick = arg.click; return true } else { button.hide(); return false } }, hide: function () { $('[jmlayer]').hide() }, show: function (arg1, arg2) { if (arg1 == undefined) return; var args = arg1; if (typeof (arg1) != 'object') { args = {}; if (arg2 == undefined) { args.message = arg1 } else { args.title = arg1; args.message = arg2 } args.yesButton = { text: $.jMessageBox.settings.yesButtonText, click: function () { $.jMessageBox.hide() } } } $.jMessageBox._init(); if (args.title == undefined && $.jMessageBox.settings.title) args.title = $.jMessageBox.settings.title; if (args.title) { $('#jmessagebox_title').html(args.title).show() } else { $('#jmessagebox_title').hide() } if (args.message) { $('#jmessagebox_message').html(args.message).show() } else { $('#jmessagebox_message').hide() } var flag = 0; if ($.jMessageBox._setbutton('#jmessagebox_yesbutton', args.yesButton)) flag++; if ($.jMessageBox._setbutton('#jmessagebox_nobutton', args.noButton)) flag++; if ($.jMessageBox._setbutton('#jmessagebox_cancelbutton', args.cancelButton)) flag++; if (flag > 0) { $('#jmessagebox_buttons').show() } else { $('#jmessagebox_buttons').hide() } if (args.bottom == undefined && $.jMessageBox.settings.bottomText) args.bottom = { text: $.jMessageBox.settings.bottomText }; $.jMessageBox._setbutton('#jmessagebox_bottom', args.bottom); var container = $('#jmessagebox_container'); if (args.width == undefined) args.width = $.jMessageBox.settings.width; container.width(args.width ? args.width : 'auto'); container.height(args.height ? args.height : 'auto'); if (args.left > 0 || args.top > 0) { if (args.left > 0) container.css('left') = args.left + 'px'; if (args.top > 0) container.css('top') = args.top + 'px'; container.css('filter', 'alpha(opacity=100)').css('opacity', 1).attr('fixit', '0'); container.show() } else { container.css('filter', 'alpha(opacity=0)').css('opacity', 0).attr('fixit', '1'); container.show(); window.setTimeout(function () { $.jMessageBox._fixposition(); container.css('filter', 'alpha(opacity=100)').css('opacity', 1) }, 10) } var p = $.jMessageBox._getposition(); $('[jmconverlayer]').width(p.windowWidth).height(p.windowHeight).show() } } }) })(jQuery);
//jquery.highlightFade.js
jQuery.fn.highlightFade = function (settings) { var o = (settings && settings.constructor == String) ? { start: settings} : settings || {}; var d = jQuery.highlightFade.defaults; var i = o['interval'] || d['interval']; var a = o['attr'] || d['attr']; var ts = { 'linear': function (s, e, t, c) { return parseInt(s + (c / t) * (e - s)); }, 'sinusoidal': function (s, e, t, c) { return parseInt(s + Math.sin(((c / t) * 90) * (Math.PI / 180)) * (e - s)); }, 'exponential': function (s, e, t, c) { return parseInt(s + (Math.pow(c / t, 2)) * (e - s)); } }; var t = (o['iterator'] && o['iterator'].constructor == Function) ? o['iterator'] : ts[o['iterator']] || ts[d['iterator']] || ts['linear']; if (d['iterator'] && d['iterator'].constructor == Function) t = d['iterator']; return this.each(function () { if (!this.highlighting) this.highlighting = {}; var e = (this.highlighting[a]) ? this.highlighting[a].end : jQuery.highlightFade.getBaseValue(this, a) || [255, 255, 255]; var c = jQuery.highlightFade.getRGB(o['start'] || o['colour'] || o['color'] || d['start'] || [255, 255, 128]); var s = jQuery.speed(o['speed'] || d['speed']); var r = o['final'] || (this.highlighting[a] && this.highlighting[a].orig) ? this.highlighting[a].orig : jQuery.curCSS(this, a); if (o['end'] || d['end']) r = jQuery.highlightFade.asRGBString(e = jQuery.highlightFade.getRGB(o['end'] || d['end'])); if (typeof o['final'] != 'undefined') r = o['final']; if (this.highlighting[a] && this.highlighting[a].timer) window.clearInterval(this.highlighting[a].timer); this.highlighting[a] = { steps: ((s.duration) / i), interval: i, currentStep: 0, start: c, end: e, orig: r, attr: a }; jQuery.highlightFade(this, a, o['complete'], t); }); }; jQuery.highlightFade = function (e, a, o, t) { e.highlighting[a].timer = window.setInterval(function () { var newR = t(e.highlighting[a].start[0], e.highlighting[a].end[0], e.highlighting[a].steps, e.highlighting[a].currentStep); var newG = t(e.highlighting[a].start[1], e.highlighting[a].end[1], e.highlighting[a].steps, e.highlighting[a].currentStep); var newB = t(e.highlighting[a].start[2], e.highlighting[a].end[2], e.highlighting[a].steps, e.highlighting[a].currentStep); jQuery(e).css(a, jQuery.highlightFade.asRGBString([newR, newG, newB])); if (e.highlighting[a].currentStep++ >= e.highlighting[a].steps) { jQuery(e).css(a, e.highlighting[a].orig || ''); window.clearInterval(e.highlighting[a].timer); e.highlighting[a] = null; if (o && o.constructor == Function) o.call(e); } }, e.highlighting[a].interval); }; jQuery.highlightFade.defaults = { start: [255, 255, 128], interval: 50, speed: 400, attr: 'backgroundColor' }; jQuery.highlightFade.getRGB = function (c, d) { var result; if (c && c.constructor == Array && c.length == 3) return c; if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c)) return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])]; else if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c)) return [parseFloat(result[1]) * 2.55, parseFloat(result[2]) * 2.55, parseFloat(result[3]) * 2.55]; else if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c)) return [parseInt("0x" + result[1]), parseInt("0x" + result[2]), parseInt("0x" + result[3])]; else if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c)) return [parseInt("0x" + result[1] + result[1]), parseInt("0x" + result[2] + result[2]), parseInt("0x" + result[3] + result[3])]; else return jQuery.highlightFade.checkColorName(c) || d || null; }; jQuery.highlightFade.asRGBString = function (a) { return "rgb(" + a.join(",") + ")"; }; jQuery.highlightFade.getBaseValue = function (e, a, b) { var s, t; b = b || false; t = a = a || jQuery.highlightFade.defaults['attr']; do { s = jQuery(e).css(t || 'backgroundColor'); if ((s != '' && s != 'transparent') || (e.tagName.toLowerCase() == "body") || (!b && e.highlighting && e.highlighting[a] && e.highlighting[a].end)) break; t = false; } while (e = e.parentNode); if (!b && e.highlighting && e.highlighting[a] && e.highlighting[a].end) s = e.highlighting[a].end; if (s == undefined || s == '' || s == 'transparent') s = [255, 255, 255]; return jQuery.highlightFade.getRGB(s); }; jQuery.highlightFade.checkColorName = function (c) { if (!c) return null; switch (c.replace(/^\s*|\s*$/g, '').toLowerCase()) { case 'aqua': return [0, 255, 255]; case 'black': return [0, 0, 0]; case 'blue': return [0, 0, 255]; case 'fuchsia': return [255, 0, 255]; case 'gray': return [128, 128, 128]; case 'green': return [0, 128, 0]; case 'lime': return [0, 255, 0]; case 'maroon': return [128, 0, 0]; case 'navy': return [0, 0, 128]; case 'olive': return [128, 128, 0]; case 'purple': return [128, 0, 128]; case 'red': return [255, 0, 0]; case 'silver': return [192, 192, 192]; case 'teal': return [0, 128, 128]; case 'white': return [255, 255, 255]; case 'yellow': return [255, 255, 0]; } };

//jquery.bgColor.js
jQuery.fn.bgColor = function (test, value) { var self = jQuery(this), bgColor; if (!test || test.constructor != Function) test = function (e) { return false; }; if (!value || value.constructor != Function) value = function (e) { return jQuery(e).css('backgroundColor'); }; while (true) { bgColor = self.css('backgroundColor'); if (bgColor != '' && bgColor != 'transparent') break; if (test(self[0])) { bgColor = value(self[0]); break; } if (self.parent()[0] == document) break; else self = self.parent(); }; if (bgColor == '' || bgColor == 'transparent') bgColor = "rgb(255,255,255)"; return bgColor; };

//jquery.pngFix.js
eval(function (p, a, c, k, e, r) { e = function (c) { return (c < 62 ? '' : e(parseInt(c / 62))) + ((c = c % 62) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e } ]; e = function () { return '([237-9n-zA-Z]|1\\w)' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(s(m){3.fn.pngFix=s(c){c=3.extend({P:\'blank.gif\'},c);8 e=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 5.5")!=-1);8 f=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 6.0")!=-1);p(3.browser.msie&&(e||f)){3(2).B("img[n$=.C]").D(s(){3(2).7(\'q\',3(2).q());3(2).7(\'r\',3(2).r());8 a=\'\';8 b=\'\';8 g=(3(2).7(\'E\'))?\'E="\'+3(2).7(\'E\')+\'" \':\'\';8 h=(3(2).7(\'F\'))?\'F="\'+3(2).7(\'F\')+\'" \':\'\';8 i=(3(2).7(\'G\'))?\'G="\'+3(2).7(\'G\')+\'" \':\'\';8 j=(3(2).7(\'H\'))?\'H="\'+3(2).7(\'H\')+\'" \':\'\';8 k=(3(2).7(\'V\'))?\'float:\'+3(2).7(\'V\')+\';\':\'\';8 d=(3(2).parent().7(\'href\'))?\'cursor:hand;\':\'\';p(2.9.v){a+=\'v:\'+2.9.v+\';\';2.9.v=\'\'}p(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}p(2.9.x){a+=\'x:\'+2.9.x+\';\';2.9.x=\'\'}8 l=(2.9.cssText);b+=\'<y \'+g+h+i+j;b+=\'9="W:X;white-space:pre-line;Y:Z-10;I:transparent;\'+k+d;b+=\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;\';b+=\'J:K:L.t.M(n=\\\'\'+3(2).7(\'n\')+\'\\\', N=\\\'O\\\');\';b+=l+\'"></y>\';p(a!=\'\'){b=\'<y 9="W:X;Y:Z-10;\'+a+d+\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;">\'+b+\'</y>\'}3(2).hide();3(2).after(b)});3(2).B("*").D(s(){8 a=3(2).11(\'I-12\');p(a.A(".C")!=-1){8 b=a.13(\'url("\')[1].13(\'")\')[0];3(2).11(\'I-12\',\'none\');3(2).14(0).15.J="K:L.t.M(n=\'"+b+"\',N=\'O\')"}});3(2).B("input[n$=.C]").D(s(){8 a=3(2).7(\'n\');3(2).14(0).15.J=\'K:L.t.M(n=\\\'\'+a+\'\\\', N=\\\'O\\\');\';3(2).7(\'n\',c.P)})}return 3}})(3);', [], 68, '||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle'.split('|'), 0, {}));

//jquery.scrollTo.js
(function (d) { var k = d.scrollTo = function (a, i, e) { d(window).scrollTo(a, i, e) }; k.defaults = { axis: 'xy', duration: parseFloat(d.fn.jquery) >= 1.3 ? 0 : 1 }; k.window = function (a) { return d(window)._scrollable() }; d.fn._scrollable = function () { return this.map(function () { var a = this, i = !a.nodeName || d.inArray(a.nodeName.toLowerCase(), ['iframe', '#document', 'html', 'body']) != -1; if (!i) return a; var e = (a.contentWindow || a).document || a.ownerDocument || a; return d.browser.safari || e.compatMode == 'BackCompat' ? e.body : e.documentElement }) }; d.fn.scrollTo = function (n, j, b) { if (typeof j == 'object') { b = j; j = 0 } if (typeof b == 'function') b = { onAfter: b }; if (n == 'max') n = 9e9; b = d.extend({}, k.defaults, b); j = j || b.speed || b.duration; b.queue = b.queue && b.axis.length > 1; if (b.queue) j /= 2; b.offset = p(b.offset); b.over = p(b.over); return this._scrollable().each(function () { var q = this, r = d(q), f = n, s, g = {}, u = r.is('html,body'); switch (typeof f) { case 'number': case 'string': if (/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)) { f = p(f); break } f = d(f, this); case 'object': if (f.is || f.style) s = (f = d(f)).offset() } d.each(b.axis.split(''), function (a, i) { var e = i == 'x' ? 'Left' : 'Top', h = e.toLowerCase(), c = 'scroll' + e, l = q[c], m = k.max(q, i); if (s) { g[c] = s[h] + (u ? 0 : l - r.offset()[h]); if (b.margin) { g[c] -= parseInt(f.css('margin' + e)) || 0; g[c] -= parseInt(f.css('border' + e + 'Width')) || 0 } g[c] += b.offset[h] || 0; if (b.over[h]) g[c] += f[i == 'x' ? 'width' : 'height']() * b.over[h] } else { var o = f[h]; g[c] = o.slice && o.slice(-1) == '%' ? parseFloat(o) / 100 * m : o } if (/^\d+$/.test(g[c])) g[c] = g[c] <= 0 ? 0 : Math.min(g[c], m); if (!a && b.queue) { if (l != g[c]) t(b.onAfterFirst); delete g[c] } }); t(b.onAfter); function t(a) { r.animate(g, j, b.easing, a && function () { a.call(this, n, b) }) } }).end() }; k.max = function (a, i) { var e = i == 'x' ? 'Width' : 'Height', h = 'scroll' + e; if (!d(a).is('html,body')) return a[h] - d(a)[e.toLowerCase()](); var c = 'client' + e, l = a.ownerDocument.documentElement, m = a.ownerDocument.body; return Math.max(l[h], m[h]) - Math.min(l[c], m[c]) }; function p(a) { return typeof a == 'object' ? a : { top: a, left: a} } })(jQuery);

//jquery.easing.js
jQuery.easing['jswing'] = jQuery.easing['swing']; jQuery.extend(jQuery.easing, { def: 'easeOutQuad', swing: function (x, t, b, c, d) { return jQuery.easing[jQuery.easing.def](x, t, b, c, d) }, easeInQuad: function (x, t, b, c, d) { return c * (t /= d) * t + b }, easeOutQuad: function (x, t, b, c, d) { return -c * (t /= d) * (t - 2) + b }, easeInOutQuad: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t + b; return -c / 2 * ((--t) * (t - 2) - 1) + b }, easeInCubic: function (x, t, b, c, d) { return c * (t /= d) * t * t + b }, easeOutCubic: function (x, t, b, c, d) { return c * ((t = t / d - 1) * t * t + 1) + b }, easeInOutCubic: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t + b; return c / 2 * ((t -= 2) * t * t + 2) + b }, easeInQuart: function (x, t, b, c, d) { return c * (t /= d) * t * t * t + b }, easeOutQuart: function (x, t, b, c, d) { return -c * ((t = t / d - 1) * t * t * t - 1) + b }, easeInOutQuart: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b; return -c / 2 * ((t -= 2) * t * t * t - 2) + b }, easeInQuint: function (x, t, b, c, d) { return c * (t /= d) * t * t * t * t + b }, easeOutQuint: function (x, t, b, c, d) { return c * ((t = t / d - 1) * t * t * t * t + 1) + b }, easeInOutQuint: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b; return c / 2 * ((t -= 2) * t * t * t * t + 2) + b }, easeInSine: function (x, t, b, c, d) { return -c * Math.cos(t / d * (Math.PI / 2)) + c + b }, easeOutSine: function (x, t, b, c, d) { return c * Math.sin(t / d * (Math.PI / 2)) + b }, easeInOutSine: function (x, t, b, c, d) { return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b }, easeInExpo: function (x, t, b, c, d) { return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b }, easeOutExpo: function (x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b }, easeInOutExpo: function (x, t, b, c, d) { if (t == 0) return b; if (t == d) return b + c; if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b }, easeInCirc: function (x, t, b, c, d) { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b }, easeOutCirc: function (x, t, b, c, d) { return c * Math.sqrt(1 - (t = t / d - 1) * t) + b }, easeInOutCirc: function (x, t, b, c, d) { if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b }, easeInElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b }, easeOutElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b }, easeInOutElastic: function (x, t, b, c, d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5); if (a < Math.abs(c)) { a = c; var s = p / 4 } else var s = p / (2 * Math.PI) * Math.asin(c / a); if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b }, easeInBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * (t /= d) * t * ((s + 1) * t - s) + b }, easeOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b }, easeInOutBack: function (x, t, b, c, d, s) { if (s == undefined) s = 1.70158; if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b }, easeInBounce: function (x, t, b, c, d) { return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b }, easeOutBounce: function (x, t, b, c, d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b } else { return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b } }, easeInOutBounce: function (x, t, b, c, d) { if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b; return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b } });

//swfobject.js
if (typeof deconcept == "undefined") { var deconcept = new Object() } if (typeof deconcept.util == "undefined") { deconcept.util = new Object() } if (typeof deconcept.SWFObjectUtil == "undefined") { deconcept.SWFObjectUtil = new Object() } deconcept.SWFObject = function (_1, id, w, h, _5, c, _7, _8, _9, _a, _b) { if (!document.getElementById) { return } this.DETECT_KEY = _b ? _b : "detectflash"; this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY); this.params = new Object(); this.variables = new Object(); this.attributes = new Array(); if (_1) { this.setAttribute("swf", _1) } if (id) { this.setAttribute("id", id) } if (w) { this.setAttribute("width", w) } if (h) { this.setAttribute("height", h) } if (_5) { this.setAttribute("version", new deconcept.PlayerVersion(_5.toString().split("."))) } this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(); if (c) { this.addParam("bgcolor", c) } var q = _8 ? _8 : "high"; this.addParam("quality", q); this.setAttribute("useExpressInstall", _7); this.setAttribute("doExpressInstall", false); var _d = (_9) ? _9 : window.location; this.setAttribute("xiRedirectUrl", _d); this.setAttribute("redirectUrl", ""); if (_a) { this.setAttribute("redirectUrl", _a) } }; deconcept.SWFObject.prototype = { setAttribute: function (_e, _f) { this.attributes[_e] = _f }, getAttribute: function (_10) { return this.attributes[_10] }, addParam: function (_11, _12) { this.params[_11] = _12 }, getParams: function () { return this.params }, addVariable: function (_13, _14) { this.variables[_13] = _14 }, getVariable: function (_15) { return this.variables[_15] }, getVariables: function () { return this.variables }, getVariablePairs: function () { var _16 = new Array(); var key; var _18 = this.getVariables(); for (key in _18) { _16.push(key + "=" + _18[key]) } return _16 }, getSWFHTML: function () { var _19 = ""; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn") } _19 = "<embed wmode=\"transparent\" type=\"application/x-shockwave-flash\" src=\"" + this.getAttribute("swf") + "\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\""; _19 += " id=\"" + this.getAttribute("id") + "\" name=\"" + this.getAttribute("id") + "\" "; var _1a = this.getParams(); for (var key in _1a) { _19 += key + "=\"" + _1a[key] + "\" " } var _1c = this.getVariablePairs().join("&"); if (_1c.length > 0) { _19 += "flashvars=\"" + _1c + "\"" } _19 += "/>" } else { if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX") } _19 = "<object id=\"" + this.getAttribute("id") + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\">"; _19 += "<param name=\"movie\" value=\"" + this.getAttribute("swf") + "\" />"; var _1d = this.getParams(); for (var key in _1d) { _19 += "<param name=\"" + key + "\" value=\"" + _1d[key] + "\" />" } var _1f = this.getVariablePairs().join("&"); if (_1f.length > 0) { _19 += "<param name=\"flashvars\" value=\"" + _1f + "\" />" } _19 += "</object>" } return _19 }, write: function (_20) { if (this.getAttribute("useExpressInstall")) { var _21 = new deconcept.PlayerVersion([6, 0, 65]); if (this.installedVer.versionIsValid(_21) && !this.installedVer.versionIsValid(this.getAttribute("version"))) { this.setAttribute("doExpressInstall", true); this.addVariable("MMredirectURL", escape(this.getAttribute("xiRedirectUrl"))); document.title = document.title.slice(0, 47) + " - Flash Player Installation"; this.addVariable("MMdoctitle", document.title) } } if (this.skipDetect || this.getAttribute("doExpressInstall") || this.installedVer.versionIsValid(this.getAttribute("version"))) { var n = (typeof _20 == "string") ? document.getElementById(_20) : _20; n.innerHTML = this.getSWFHTML(); return true } else { if (this.getAttribute("redirectUrl") != "") { document.location.replace(this.getAttribute("redirectUrl")) } } return false } }; deconcept.SWFObjectUtil.getPlayerVersion = function () { var _23 = new deconcept.PlayerVersion([0, 0, 0]); if (navigator.plugins && navigator.mimeTypes.length) { var x = navigator.plugins["Shockwave Flash"]; if (x && x.description) { _23 = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")) } } else { try { var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7") } catch (e) { try { var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); _23 = new deconcept.PlayerVersion([6, 0, 21]); axo.AllowScriptAccess = "always" } catch (e) { if (_23.major == 6) { return _23 } } try { axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash") } catch (e) { } } if (axo != null) { _23 = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")) } } return _23 }; deconcept.PlayerVersion = function (_27) { this.major = _27[0] != null ? parseInt(_27[0]) : 0; this.minor = _27[1] != null ? parseInt(_27[1]) : 0; this.rev = _27[2] != null ? parseInt(_27[2]) : 0 }; deconcept.PlayerVersion.prototype.versionIsValid = function (fv) { if (this.major < fv.major) { return false } if (this.major > fv.major) { return true } if (this.minor < fv.minor) { return false } if (this.minor > fv.minor) { return true } if (this.rev < fv.rev) { return false } return true }; deconcept.util = { getRequestParameter: function (_29) { var q = document.location.search || document.location.hash; if (q) { var _2b = q.substring(1).split("&"); for (var i = 0; i < _2b.length; i++) { if (_2b[i].substring(0, _2b[i].indexOf("=")) == _29) { return _2b[i].substring((_2b[i].indexOf("=") + 1)) } } } return "" } }; deconcept.SWFObjectUtil.cleanupSWFs = function () { var _2d = document.getElementsByTagName("OBJECT"); for (var i = 0; i < _2d.length; i++) { _2d[i].style.display = "none"; for (var x in _2d[i]) { if (typeof _2d[i][x] == "function") { _2d[i][x] = null } } } }; if (typeof window.onunload == "function") { var oldunload = window.onunload; window.onunload = function () { deconcept.SWFObjectUtil.cleanupSWFs(); oldunload() } } else { window.onunload = deconcept.SWFObjectUtil.cleanupSWFs } if (Array.prototype.push == null) { Array.prototype.push = function (_30) { this[this.length] = _30; return this.length } } var getQueryParamValue = deconcept.util.getRequestParameter; var FlashObject = deconcept.SWFObject; var SWFObject = deconcept.SWFObject;



