var number_format_dec='.';var number_format_th='';var number_format_point='2';var store_language='en';var xcart_web_dir="";var images_dir="/skin/common_files/images";var alt_images_dir="/skin/light_responsive/images";var lbl_no_items_have_been_selected='No items have been selected';var current_area='C';var currency_format="$x";var lbl_product_minquantity_error="Sorry, the minimum order quantity for this product is {{min}}.";var lbl_product_maxquantity_error="Sorry, the maximum order quantity for this product is {{max}}.";var txt_out_of_stock="Out of stock";var lbl_product_quantity_type_error="You can specify a number from {{min}} to {{max}}.";var is_limit=!1;var lbl_required_field_is_empty="The required field \'~~field~~\' is empty!";var lbl_field_required="Field is required";var lbl_field_format_is_invalid="The format of the \'~~field~~\' field is invalid.";var txt_required_fields_not_completed="The following required fields have not been completed: {{fields}} Do you wish to submit the form with these fields empty?";var lbl_blockui_default_message="Please wait...";var lbl_error='Error';var lbl_warning='Warning';var lbl_information='Information';var lbl_ok='OK';var lbl_yes='Yes';var lbl_no='No';var txt_minicart_total_note='Order subtotal does not cover discounts and extra costs like shipping charges, etc. The final cost of the order will be calculated at the checkout page.';var txt_ajax_error_note='An error occurred while processing a request. Please refresh the page.<\/a> If the problem still persists after refreshing the page please contact us<\/a> on the matter.';var txt_email_invalid="Email address is invalid! Please correct";var email_validation_regexp=new RegExp("^[a-z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z](?:[a-z0-9-]*[a-z0-9])$","gi");var is_admin_editor=!1;var is_responsive_skin="Y";var topMessageDelay=[];topMessageDelay.i=10*1000;topMessageDelay.w=60*1000;topMessageDelay.e=0*1000;
/* vim: set ts=2 sw=2 sts=2 et: */
/**
* Common JavaScript variables and functions
*
* @category X-Cart
* @package X-Cart
* @subpackage ____sub_package____
* @author Ruslan R. Fazlyev
* @copyright Copyright (c) 2001-present Qualiteam software Ltd
* @license https://www.x-cart.com/license-agreement-classic.html X-Cart license agreement
* @version 2a321c65d1ad1429f47434729de546ac23ecdfac, v64 (xcart_4_7_11), 2019-04-25 08:59:19, common.js, aim
* @link https://www.x-cart.com/
* @see ____file_see____
*/
var localIsDOM=document.getElementById?true:!1;var localIsJava=navigator.javaEnabled();var localIsStrict=document.compatMode=='CSS1Compat';var localPlatform=navigator.platform;var localVersion="0";var localBrowser="";var localBFamily="";var isHttps=!1;if(window.opera&&localIsDOM){localBFamily=localBrowser="Opera";if(navigator.userAgent.search(/^.*Opera.([\d.]+).*$/)!=-1)localVersion=navigator.userAgent.replace(/^.*Opera.([\d.]+).*$/,"$1");else if(window.print)localVersion="6";else localVersion="5"}else{if(document.all&&document.all.item)
localBFamily=localBrowser='MSIE'}
if(navigator.appName=="Netscape"){localBFamily="NC";if(!localIsDOM){localBrowser='Netscape';localVersion=navigator.userAgent.replace(/^.*Mozilla.([\d.]+).*$/,"$1");if(localVersion!='')localVersion="4"}else if(navigator.userAgent.indexOf("Chrome")>=0)localBrowser='Chrome';else if(navigator.userAgent.indexOf("Safari")>=0)localBrowser='Safari';else if(navigator.userAgent.indexOf("Netscape")>=0)localBrowser='Netscape';else if(navigator.userAgent.indexOf("Firefox")>=0)localBrowser='Firefox';else localBrowser='Mozilla'}
if(navigator.userAgent.indexOf("MSMSGS")>=0)
localBrowser="WMessenger";else if(navigator.userAgent.indexOf("e2dk")>=0)
localBrowser="Edonkey";else if(navigator.userAgent.indexOf("Gnutella")+navigator.userAgent.indexOf("Gnucleus")>=0)
localBrowser="Gnutella";else if(navigator.userAgent.indexOf("KazaaClient")>=0)
localBrowser="Kazaa";if(localVersion=='0'&&localBrowser!=''){var rg=new RegExp("^.*"+localBrowser+".([\\d.]+).*$");localVersion=navigator.userAgent.replace(rg,"$1")}
var localIsCookie=((localBrowser=='Netscape'&&localVersion=='4')?(document.cookie!=''):navigator.cookieEnabled);var isHttps=document.location.protocol=="https:";function change_antibot_image(id){var image=document.getElementById(id);if(image){var src=xcart_web_dir+"/antibot_image.php?tmp="+Math.random()+"§ion="+id+"®enerate=Y";setTimeout(function(){image.src=src},200)}
$('#antibot_input_str',$(image).parents('form')[0]).val('')}
function getRealWidth(jsel){var sw=$(jsel).prop('scrollWidth');var pl=parseInt($(jsel).css('padding-left'));if(!isNaN(pl))sw-=pl;var pr=parseInt($(jsel).css('padding-right'));if(!isNaN(pr))
sw-=pr;return sw}
function showNote(id,next_to,is_js_opc){if(typeof showNote.isReadyToShow=='undefined'){showNote.isReadyToShow=!0}
if(undefined===is_js_opc){is_js_opc=!1}
if(showNote.isReadyToShow&&$('#'+id).css('display')=='none'){showNote.isReadyToShow=!1;var div=$('#'+id).get();$('#'+id).remove();$('body').append(div);if(is_js_opc){$('#'+id).css('z-index','1100')}
$('#'+id).show();var sw=getRealWidth('#'+id);$('#'+id).css('left',$(next_to).offset().left+$(next_to).width()+'px');$('#'+id).css('top',$(next_to).offset().top+'px');if(sw>$('#'+id).width()){$('#'+id).css('width',sw+'px')}
showNote.isReadyToShow=!0}}
function getElementsByClassName(clsName){var elem,cls;var arr=[];var elems=document.getElementsByTagName("*");for(var i=0;(elem=elems[i]);i++){if(elem.className==clsName){arr[arr.length]=elem}}
return arr}
function getProperDimensions(old_x,old_y,new_x,new_y,crop){if(old_x<=0||old_y<=0||(new_x<=0&&new_y<=0)||(crop&&old_x<=new_x&&old_y<=new_y))
return[old_x,old_y];var k=1;if(new_x<=0){k=(crop&&old_y<=new_y)?1:new_y/old_y}else if(new_y<=0){k=(crop&&old_x<=new_x)?1:new_x/old_x}else{var _kx=new_x/old_x;var _ky=new_y/old_y;k=crop?Math.min(_kx,_ky,1):Math.min(_kx,_ky)}
return[round(k*old_x),round(k*old_y)]}
function visibleBox(id,skipOpenClose){elm1=document.getElementById("open"+id);elm2=document.getElementById("close"+id);elm3=document.getElementById("box"+id);if(!elm3)return!1;if(skipOpenClose){elm3.style.display=(elm3.style.display=="")?"none":""}else if(elm1){if(elm1.style.display==""){elm1.style.display="none";if(elm2)elm2.style.display="";elm3.style.display="none";var class_objs=getElementsByClassName('DialogBox');for(var i=0;i1&&thousand_delim!==!1)?thousand_delim:number_format_th;decimal_delim=(arguments.length>2&&decimal_delim!==!1)?decimal_delim:number_format_dec;precision=(arguments.length>3&&precision!==!1)?precision:number_format_point;currency=(arguments.length>4&¤cy!==!1)?currency_format:"x";if(precision>0){precision=Math.pow(10,precision);price=Math.round(price*precision)/precision;var top=Math.floor(price);var bottom=Math.round((price-top)*precision)+precision}else{var top=Math.round(price);var bottom=0}
top=top+"";bottom=bottom+"";var cnt=0;for(var x=top.length;x>=0;x--){if(cnt%3==0&&cnt>0&&x>0)top=top.substr(0,x)+thousand_delim+top.substr(x,top.length);cnt++}
return currency.replace("x",(bottom>0)?(top+decimal_delim+bottom.substr(1,bottom.length)):top)}
function substitute(lbl){var rg;for(var x=1;x0){start=document.cookie.indexOf(name+"=");if(start!=-1){start=start+name.length+1;end=document.cookie.indexOf(";",start);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(start,end))}}
return!1}
function deleteCookie(name){document.cookie=name+"=0; expires=Fri, 31 Dec 1999 23:59:59 GMT;"}
function cloneObject(orig){var r={};for(var i in orig){if(hasOwnProperty(orig,i))r[i]=orig[i]}
return r}
function _getById(id){if(typeof(id)!='string'||!id)return!1;var obj=document.getElementById(id);if(obj&&obj.id!=id){obj=!1;for(var i=0;i1?ttl:this.ttl)}
debug_panel.add=function(str,ttl){this._getBox().innerHTML+=str+" \n";this.show();this.startTTL(arguments.length>1?ttl:this.ttl)}
debug_panel.row=function(i){var row=$('div:eq('+i+')',this._getBox()).get(0);if(!row){for(var x=this._rowsLength;x1?ttl:this.parentNode.ttl)}
debug_panel._addRow=function(str,ttl){this.innerHTML+=str;this.box.show();this.box.startTTL(arguments.length>1?ttl:this.parentNode.ttl)}
debug_panel.clean=function(){this._rowsLength=0;this._getBox().innerHTML=''}
debug_panel.hide=function(){this.style.display='none'}
debug_panel.show=function(){this.style.display=''}
debug_panel.opacity=function(level){level=parseFloat(level);if(isNaN(level)||level<0||level>1)return!1;level=Math.round(level*100)/100;this.style.opacity=level;return!0}
debug_panel.startTTL=function(ttl){if(this._ttlTO)clearTimeout(this._ttlTO);if(ttl<=0)return!1;var o=this;this._ttlTO=setTimeout(function(){o.hide()},ttl*1000);return!0}
debug_panel.extend=function(){if(this._extend_create)return!0;var scripts=document.getElementsByTagName('SCRIPT');var m;var path=!1;for(var i=0;i0&&debug_panel.defaultOpacity<=1){debug_panel.opacity(debug_panel.defaultOpacity)}}
if(typeof(window.debug_panel_ext_methods)!='undefined'&&debug_panel_ext_methods){for(var i=0;i0)||($(label).parent('div').hasClass('data-name')&&$(label).parent('div').next('div.data-required').length>0));var fType=!1;if(f.className){var m=$(f).attr('class').replace(/input-required/,'').match(/input-([a-z]+)/);if(m){fType=m[1]}}
if(!fType&&!r){return result}
result.field=f;result.required=r;result.fType=fType;return result}
function checkFormFields(){var errFields=[];if(!this.tagName||this.tagName.toUpperCase()!=='FORM'){if(arguments.length>0&&arguments[0]&&arguments[0].tagName&&arguments[0].tagName.toUpperCase()==='FORM'){arguments[0].silentCheck=arguments[1]&&(silentCheck=(arguments[1]==='silentCheck'))?silentCheck:!1;arguments[0].fieldToCheck=$(arguments[1]).is('input, select')&&(fieldLabel=$('label[for="'+arguments[1].id+'"]',$(arguments[1]).parents())).length>0?fieldLabel:!1;return checkFormFields.call(arguments[0])}
return!0}
var error_found=err=empty=first_obtained_err=!1;var frm=this;var fieldsList=this.fieldToCheck===!1?$('label[for]',frm):$(this.fieldToCheck);fieldsList.each(function(){err=empty=!1;var filteredField=filterFormField(frm,this);if(!$.isEmptyObject(filteredField)){var f=filteredField.field;var r=filteredField.required;var fType=filteredField.fType}else{return}
var errMsg=lbl_required_field_is_empty;if(r&&($.trim($(f).val())===''||(typeof f.type==='string'&&f.type==='checkbox'&&!f.checked))){err=!0;empty=!0}else if(fType){var val=$(f).val().replace(/^\s+/g,'').replace(/\s+$/g,'');errMsg=lbl_field_format_is_invalid;switch(fType){case 'email':if(val.search(email_validation_regexp)==-1){err=!0;errMsg=txt_email_invalid}
break;case 'int':err=val.search(/^[-+]?\d+$/)==-1;break;case 'uint':err=val.search(/^\+?\d+$/)==-1;break;case 'intz':err=val.search(/^[-+]?\d+$/)==-1||val=='0';break;case 'uintz':err=val.search(/^\+?\d+$/)==-1||val=='0';break;case 'double':err=val.search(/^[-+]?(?:\d+|\.\d+|\d+\.|\d+\.\d+)$/)==-1;break;case 'udouble':err=val.search(/^\+?(?:\d+|\.\d+|\d+\.|\d+\.\d+)$/)==-1;break;case 'doublez':err=val.search(/^[-+]?(?:\d+|\.\d+|\d+\.|\d+\.\d+)$/)==-1||val.search(/^[-+]?[0\.]+$/)!=-1;break;case 'udoublez':err=val.search(/^\+?(?:\d+|\.\d+|\d+\.|\d+\.\d+)$/)==-1||val.search(/^\+?[0\.]+$/)!=-1;break;case 'ip':err=val.search(/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/)==-1;break}}
if(err){error_found=!0;if(frm.silentCheck===!1){if(!first_obtained_err){markErrorField(f,empty?lbl_field_required:(errMsg===txt_email_invalid?txt_email_invalid:''))}else{markErrorField(f,errMsg===txt_email_invalid?txt_email_invalid:'')}}
if(is_admin_editor||(!first_obtained_err&&frm.fieldToCheck===!1&&frm.silentCheck===!1)){$(f).trigger('focus')}
if(is_admin_editor){if(errFields.length<20)
errFields[errFields.length]=$(this).html()}else{if(!first_obtained_err&&frm.fieldToCheck===!1&&frm.silentCheck===!1){xAlert(substitute(errMsg,'field',$(this).html()),lbl_warning,'W');first_obtained_err=!0}
return}}});if(error_found&&!is_admin_editor){return!1}else if(errFields.length>0){return confirm(substitute(txt_required_fields_not_completed,'fields',"\n\t"+errFields.join(",\n\t")+"\n\n"))}
return!0}
function markErrorField(f,errLabel){if(!f||f=='undefined'||f.className=='force-data-not-required'){return!0}
var container=$(f).parents('tr, .field-container, div.address-field, .iv-box')[0];if(container&&container!='undefined'&&!$(container).hasClass('fill-error')){$(container).addClass('fill-error');if(errLabel&&errLabel!=''){$(document.createElement('div')).attr('class','error-label').appendTo($(f).parent()).html(errLabel)}
$(f).on('keydown',kdf=function(event){if(event.keyCode=='13'){event.preventDefault()}
if($.trim($(this).val()+String.fromCharCode(event.keyCode))!=''){$(container).removeClass('fill-error').find('div.error-label').remove();$(this).off('keydown',kdf)}})}}
function markEmptyFields(form){if(!form){return}
$(form).find('.data-required').each(function(){var parentObj=$(this).parents('tr, .field-container, div.address-field')[0];if(!parentObj||parentObj=='undefined'){return}
$(parentObj).find('input, textarea, select').each(function(){if(this.value==''){markErrorField(this)}})})}
function applyCheckOnSubmit(form){if(!form){return!0}
var defaultAction=!1;if(undefined!==form.onsubmit&&form.onsubmit&&form.onsubmit.constructor!=String){var defaultAction=form.onsubmit;form.onsubmit=null}
$(form).on('submit',function(){if(checkFormFields(form)){if(defaultAction!=!1){return defaultAction.call(form)}
return!0}
return!1})}
function xAlert(msg,header,type,options){var buttons={};buttons[lbl_ok]=function(){$(this).dialog('close').dialog('destroy').remove()}
var typeClass='';if(type){type=type.toLowerCase();typeClass=' type-'+type;if(!header){switch(type){case 'i':header=lbl_information;break;case 'w':header=lbl_warning;break;case 'e':header=lbl_error;break}}}
var dialogOpts={classes:{'ui-dialog':'ui-corner-all '+typeClass},modal:$('.ui-widget-overlay').length<=0,title:undefined===header?'':header,buttons:buttons};if(undefined!==options){for(var i in options){dialogOpts[i]=options[i]}}
$(document.createElement('div')).attr('class','xalertbox').html(msg).dialog(dialogOpts)}
function xConfirm(msg,callback,header){var buttons={};buttons[lbl_no]=function(){$(this).dialog('destroy').remove()}
buttons[lbl_yes]=function(){if(undefined!==callback&&callback!=''){eval(callback)}
$(this).dialog('destroy').remove()}
$(document.createElement('div')).attr('class','xalertbox').html(msg).dialog({modal:$('.ui-widget-overlay').length<=0,title:undefined===header?'':header,buttons:buttons})}
function isLocalStorageSupported(){try{return'localStorage' in window&&window.localStorage!==null}catch(e){return!1}}
function getInternetExplorerVersion(){var rv=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1)}
return rv}
function isXCResponsiveSkin(){if(typeof is_responsive_skin==='undefined'){return!1}
return(is_responsive_skin==='Y')}
function isXCOpenOnMobileDevice(){return($(window).width()<768)}
function isXCResponsiveSkinOpenOnMobileDevice(){return(isXCResponsiveSkin()&&isXCOpenOnMobileDevice())}
function showXCblockUI(message){var waitMessage=message||msg_being_placed;var windowWidth=$(window).width();$.blockUI({message:''+waitMessage+' ',css:{'box-sizing':'border-box','max-width':'100%',width:'450px',left:(windowWidth>450?windowWidth/2-225:0)}})}
function isXCAjaxCheckout(){return(typeof ajax.widgets.checkout!=='undefined')}
/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML=" ";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/