//~~GENERATED~~
//-------------------------------------------------------------
// Source:    /usr/local/cpanel/base/cjt/cpanel-all.js
// Generated: /usr/local/cpanel/base/cjt/cpanel-all-pt_br.js
// Module:    legacy_cjt/cpanel-all-pt_br
// Locale:    pt_br
// This file is generated by the cpanel localization system
// using the bin/_build_translated_js_hash_files.pl script.
//-------------------------------------------------------------
// !!! Do not hand edit this file !!!
//-------------------------------------------------------------
(function() {
    // The raw lexicon.
    var newLex = {"Advanced Options":"Opções avançadas","Alpha Characters":"Caracteres alfa","An unknown error occurred.":"Erro desconhecido.","Both":"Ambos","Cancel":"Cancelar","Click to close.":"Clique para fechar.","Close":"Fechar","Generate Password":"Gerar senha","I have copied this password in a safe place.":"Copiei a senha em um local seguro.","Length":"Tamanho","Loading …":"Carregando…","Lowercase":"Minúsculas","Non Alpha Characters":"Caracteres não alfa","Numbers":"Números","OK":"OK","Password Generator":"Gerador de senha","Password Strength":"Nível de segurança da senha","Password cannot be empty.":"A senha não pode estar vazia.","Password strength must be at least [numf,_1].":"O nível de segurança da senha deve ser pelo menos [numf,_1].","Passwords Match":"Senhas coincidentes","Passwords do not match.":"As senhas não coincidem.","Passwords must be at least [quant,_1,character,characters] long.":"As senhas devem ter pelo menos [quant,_1,caractere,caracteres].","Strong":"Forte","Success!":"Êxito!","Symbols":"Símbolos","The API response could not be parsed.":"A resposta da API não pôde ser analisada.","Uppercase":"Maiúsculas","Use Password":"Usar senha","Validation Errors":"Erros de validação","Very Strong":"Muito forte","Very Weak":"Muito fraco","Weak":"Fraco","less »":"menos »","more »":"mais »","unlimited":"ilimitado"};

    if (!this.LEXICON) {
        this.LEXICON = {};
    }

    for(var item in newLex) {
        if(newLex.hasOwnProperty(item)) {
            var value = newLex[item];
            if (typeof(value) === "string" && value !== "") {
                // Only add it if there is a value.
                this.LEXICON[item] = value;
            }
        }
    }
})();
//-------------------------------------------------------------
// CLDR Data for pt_br
//-------------------------------------------------------------
(function(context) {
    var locale = "pt_br",
        functions = {'get_plural_form':function(n){var category;var category_values=Array.prototype.slice.call(arguments,1);var has_extra_for_zero=0;var abs_n=Math.abs(n);var category_process_order=["zero","one","two","few","many","other"];var category_rules_lookup={"one":function(n){if(((n==1))){return'one';}return;}};for(i=0;i<category_process_order.length;i++){if(category_rules_lookup[category_process_order[i]]){category=category_rules_lookup[category_process_order[i]](abs_n);if(category)break;}}
var categories=["one","other"];if(category_values.length===0){category_values=categories;}
else{var cat_len=categories.length;var val_len=category_values.length;var cat_len_plus_one=cat_len+1;if(val_len===cat_len_plus_one){has_extra_for_zero++;}
else if(cat_len!==val_len){if(window.console)console.warn('The number of given values ('+val_len+') does not match the number of categories ('+cat_len+').');}}
if(category===undefined){var cat_idx=has_extra_for_zero&&abs_n!==0?-2:-1;var sliced=category_values.slice(cat_idx);return[sliced[0],has_extra_for_zero&&abs_n===0?1:0];}
else{var return_value;GET_POSITION:while(1){var cat_pos_in_list;var index=-1;CATEGORY:for(i=0;i<categories.length;i++){index++;if(categories[i]===category){cat_pos_in_list=index;break CATEGORY;}}
if(cat_pos_in_list===undefined&&category!=='other'){if(window.console)console.warn('The category ('+category+') is not used by this locale.');category='other';continue GET_POSITION;}
else if(cat_pos_in_list===undefined){var cat_idx=has_extra_for_zero&&abs_n!==0?-2:-1;var sliced=category_values.slice(cat_idx);return_value=[sliced[0],has_extra_for_zero&&abs_n===0?1:0]
break GET_POSITION;}
else{if(has_extra_for_zero&&category==='other'){var cat_idx=has_extra_for_zero&&abs_n===0?-1:cat_pos_in_list;var sliced=category_values.slice(cat_idx);return_value=[sliced[0],has_extra_for_zero&&abs_n===0?1:0];break GET_POSITION;}
else{return_value=[category_values[cat_pos_in_list],0];break GET_POSITION;}}
break GET_POSITION;}
return return_value;}}},
        datetime_info = {"territory":"Brazil","quarter_stand_alone_narrow":["1","2","3","4"],"time_formats":{"short":"HH:mm","medium":"HH:mm:ss","long":"HH'h'mm'min'ss's' z","full":"HH'h'mm'min'ss's' zzzz"},"era_narrow":["a.C.","d.C."],"datetime_format_full":"EEEE, d 'de' MMMM 'de' y HH'h'mm'min'ss's' zzzz","glibc_date_1_format":"%a %b %e %H:%M:%S %Z %Y","datetime_format_long":"d 'de' MMMM 'de' y HH'h'mm'min'ss's' z","date_format_short":"dd/MM/yy","native_variant":null,"name":"Portuguese Brazil","language_id":"pt","era_wide":["Antes de Cristo","Ano do Senhor"],"variant_id":null,"date_format_medium":"dd/MM/yyyy","time_format_default":"HH:mm:ss","era_abbreviated":["a.C.","d.C."],"datetime_format":"{1} {0}","month_format_wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"quarter_format_abbreviated":["T1","T2","T3","T4"],"datetime_format_short":"dd/MM/yy HH:mm","glibc_datetime_format":"%a %d %b %Y %T %Z","quarter_stand_alone_abbreviated":["T1","T2","T3","T4"],"script_id":null,"prefers_24_hour_time":1,"cldr_version":"1.7.1","day_format_wide":["segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado","domingo"],"language":"Portuguese","month_format_narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"time_format_full":"HH'h'mm'min'ss's' zzzz","date_format_default":"dd/MM/yyyy","am_pm_abbreviated":["AM","PM"],"native_territory":"Brasil","glibc_time_12_format":"%I:%M:%S %p","month_stand_alone_wide":["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],"time_format_long":"HH'h'mm'min'ss's' z","day_stand_alone_wide":["segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado","domingo"],"variant":null,"id":"pt_BR","available_formats":null,"quarter_stand_alone_wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"time_format_medium":"HH:mm:ss","time_format_short":"HH:mm","date_format_full":"EEEE, d 'de' MMMM 'de' y","territory_id":"BR","first_day_of_week":"1","glibc_date_format":"%d-%m-%Y","quarter_format_wide":["1º trimestre","2º trimestre","3º trimestre","4º trimestre"],"day_stand_alone_abbreviated":["seg","ter","qua","qui","sex","sáb","dom"],"month_stand_alone_narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"format_for":{"yQQQ":"y QQQ","yMMMEd":"EEE, d 'de' MMM 'de' y","d":"d","y":"y","hms":"h:mm:ss a","MMMMd":"d 'de' MMMM","yMMMM":"MMMM 'de' y","ms":"mm'min'ss's'","M":"L","yM":"MM/yyyy","MEd":"EEE, dd/MM","MMM":"LLL","Md":"d/M","yQ":"yyyy Q","yMEd":"EEE, dd/MM/yyyy","Hm":"H'h'mm","EEEd":"EEE, d","Hms":"H:mm:ss","hm":"h:mm a","MMMEd":"EEE, d 'de' MMM","MMMMEd":"EEE, d 'de' MMMM","MMMd":"d 'de' MMM","yMMM":"MMM 'de' y"},"quarter_format_narrow":["1","2","3","4"],"date_formats":{"short":"dd/MM/yy","medium":"dd/MM/yyyy","long":"d 'de' MMMM 'de' y","full":"EEEE, d 'de' MMMM 'de' y"},"date_format_long":"d 'de' MMMM 'de' y","month_stand_alone_abbreviated":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"native_language":"português","datetime_format_default":"dd/MM/yyyy HH:mm:ss","native_name":"português Brasil","day_format_narrow":["S","T","Q","Q","S","S","D"],"script":null,"default_time_format_length":"medium","glibc_time_format":"%T","native_script":null,"month_format_abbreviated":["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],"default_date_format_length":"medium","day_stand_alone_narrow":["S","T","Q","Q","S","S","D"],"day_format_abbreviated":["seg","ter","qua","qui","sex","sáb","dom"],"datetime_format_medium":"dd/MM/yyyy HH:mm:ss"},
        misc_info = {"delimiters":{"quotation_start":"“","quotation_end":"”","alternate_quotation_start":"‘","alternate_quotation_end":"’"},"orientation":{"lines":"top-to-bottom","characters":"left-to-right"},"posix":{"nostr":"não:n","yesstr":"sim:s"},"plural_forms":{"category_list":["one","other"],"category_rules_function":null,"category_rules":{"one":"n is 1"},"category_rules_compiled":{"one":function (n) {if ( (( n == 1))) { return 'one'; } return;}}},"cldr_formats":{"territory":"Região: {0}","_decimal_format_decimal":",","language":"Idioma: {0}","percent":"#,##0%","locale":"{0} ({1})","_decimal_format_group":".","_percent_format_percent":"%","decimal":"#,##0.###","ellipsis":{"medial":"{0}…{1}","final":"{0}…","initial":"…{0}"},"list_or":{"middle":"{0}, {1}","end":"{0} ou {1}","start":"{0}, {1}","2":"{0} ou {1}"},"list":{"middle":"{0}, {1}","2":"{0} e {1}","start":"{0}, {1}","end":"{0} e {1}"}},"fallback":[],"characters":{"more_information":"?"}};

    // Legacy cjt 1.0 support
    if ( context.YAHOO ) {
        context.YAHOO.util.Event.onDOMReady(function() {
            var Locale = CPANEL.Locale.generateClassFromCldr(locale, functions, datetime_info, misc_info);
            context.LOCALE = new Locale();
        });
    }

    // Modern cjt 2.0 support
    context.CJT2_loader = {
        current_locale: locale,
        CLDR: {}
    };

    var CLDR = {
        locale: locale,
        functions: functions,
        datetime_info: datetime_info,
        misc_info: misc_info
    };

    context.CJT2_loader.CLDR[locale] = CLDR;
    context.CLDR = CLDR;

})(window);
//~~END-GENERATED~~
if(!("indexOf"in Array.prototype)){Array.prototype.indexOf=function(elt){var len=this.length>>>0;var from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return-1}}if(!("lastIndexOf"in Array.prototype)){Array.prototype.lastIndexOf=function(elt){var len=this.length;var from=Number(arguments[1]);if(isNaN(from)){from=len-1}else{from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len}else if(from>=len){from=len-1}}for(;from>-1;from--){if(from in this&&this[from]===elt){return from}}return-1}}if(!("filter"in Array.prototype)){Array.prototype.filter=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var res=[];var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){var val=this[i];if(fun.call(thisp,val,i,this)){res.push(val)}}}return res}}if(!("forEach"in Array.prototype)){Array.prototype.forEach=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){fun.call(thisp,this[i],i,this)}}}}if(!("every"in Array.prototype)){Array.prototype.every=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this&&!fun.call(thisp,this[i],i,this)){return false}}return true}}if(!("map"in Array.prototype)){Array.prototype.map=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var res=new Array(len);var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){res[i]=fun.call(thisp,this[i],i,this)}}return res}}if(!("some"in Array.prototype)){Array.prototype.some=function(fun){var i=0,len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(;i<len;i++){if(i in this&&fun.call(thisp,this[i],i,this)){return true}}return false}}if(!("reduce"in Array.prototype)){Array.prototype.reduce=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}if(len==0&&arguments.length==1){throw new TypeError}var i=0;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){var rv=this[i++];break}if(++i>=len){throw new TypeError}}while(true)}for(;i<len;i++){if(i in this){rv=fun.call(null,rv,this[i],i,this)}}return rv}}if(!("reduceRight"in Array.prototype)){Array.prototype.reduceRight=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}if(len==0&&arguments.length==1){throw new TypeError}var i=len-1;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){var rv=this[i--];break}if(--i<0){throw new TypeError}}while(true)}for(;i>=0;i--){if(i in this){rv=fun.call(null,rv,this[i],i,this)}}return rv}}if(!("trim"in String.prototype)){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(!Function.prototype.bind){Function.prototype.bind=function(oThis){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var fSlice=Array.prototype.slice,aArgs=fSlice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this instanceof fNOP?this:oThis||window,aArgs.concat(fSlice.call(arguments)))};fNOP.prototype=this.prototype;fBound.prototype=new fNOP;return fBound}}if(!Object.keys){Object.keys=function(o){if(o!==Object(o)){throw new TypeError("Object.keys called on non-object.")}var ret=[],p,HOP=Object.prototype.hasOwnProperty;for(p in o){if(HOP.call(o,p)){ret.push(p)}}return ret}}if(!Date.now){Date.now=function now(){return+new Date}}if(!window.atob){(function(){var object=typeof window!="undefined"?window:exports,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",INVALID_CHARACTER_ERR=function(){try{document.createElement("$")}catch(error){return error}}();object.atob||(object.atob=function(input){input=input.replace(/=+$/,"");if(input.length%4==1){throw INVALID_CHARACTER_ERR}for(var bc=0,bs,buffer,idx=0,output="";buffer=input.charAt(idx++);~buffer&&(bs=bc%4?bs*64+buffer:buffer,bc++%4)?output+=String.fromCharCode(255&bs>>(-2*bc&6)):0){buffer=chars.indexOf(buffer)}return output})})()}(function(){String.prototype.lpad=function(len,padder){if(padder===0){padder="0"}else if(!padder){padder=" "}var deficit=len-this.length;var pad="";var padder_length=padder.length;while(deficit>0){pad+=padder;deficit-=padder_length}return pad+this};String.prototype.reverse=function(){return this.split("").reverse().join("")};var html_chars={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};var html_chars_regex=/[&<>"'\/`]/g;var html_function=function(match){return html_chars[match]};String.prototype.html_encode=function(){return this.replace(html_chars_regex,html_function)};var escapees_regexp=/([\\^$*+?.()|{}\[\]])/g;String.prototype.regexp_encode=function(){return this.replace(escapees_regexp,"\\$1")}})();(function(){Array.prototype.sort_by=function(){var this_length=this.length;if(this_length===0){return this}var xformers=[];var xformers_length=arguments.length;for(var s=0;s<xformers_length;s++){var cur_xformer=arguments[s];var xformer_func;var reverse=false;if(cur_xformer instanceof Function){xformer_func=cur_xformer;reverse=cur_xformer.reverse||false}else{reverse=(typeof cur_xformer==="string"||cur_xformer instanceof String)&&cur_xformer.charAt(0)==="!";if(reverse){cur_xformer=cur_xformer.substring(1)}var referenced=this[0][cur_xformer];var isFunc=referenced instanceof Function;xformer_func=isFunc?function(i){return i[cur_xformer]()}:function(i){return i[cur_xformer]}}xformer_func.reverse_val=reverse?-1:1;xformers.push(xformer_func)}var xformed_values=[];for(var i=0;i<this_length;i++){cur_value=this[i];var cur_xformed_values=[];for(var x=0;x<xformers_length;x++){cur_xformed_values.push(xformers[x](cur_value))}cur_xformed_values.push(i);cur_xformed_values.item=cur_value;xformed_values.push(cur_xformed_values)}var index,_xformers_length,first_xformed,second_xformed;var sorter=function(first,second){index=0;_xformers_length=xformers_length;while(index<_xformers_length){first_xformed=first[index];second_xformed=second[index];if(first_xformed>second_xformed){return 1*xformers[index].reverse_val}else if(first_xformed<second_xformed){return-1*xformers[index].reverse_val}index++}return 0};xformed_values.sort(sorter);for(var xv=0;xv<this_length;xv++){this[xv]=xformed_values[xv].item}return this};Array.prototype.unique=function(){var r=[];bigloop:for(var i=0,n=this.length;i<n;i++){for(var x=0,y=r.length;x<y;x++){if(r[x]===this[i]){continue bigloop}}r[y]=this[i]}return r};Array.prototype.min=function(){var min=this[this.length-1];for(var i=this.length-2;i>=0;i--){if(this[i]<min){min=this[i]}}return min};Array.prototype.max=function(){var max=this[this.length-1];for(var i=this.length-2;i>=0;i--){if(this[i]>max){max=this[i]}}return max}})();(function(){var _y;if(YAHOO&&YAHOO.util&&YAHOO.util.Selector&&(!("Y"in window)||window.Y===YAHOO)){_y=function(){var query=YAHOO.util.Selector.query;var DOM=YAHOO.util.Dom;var one=function(sel){var root=this===_y?null:this;return query(sel,root,true)};var all=function(sel){var root=this===_y?null:this;return query(sel,root)};var _y=function(domnode){if(typeof domnode==="string"){domnode=domnode.replace(/^#/,"")}domnode=DOM.get(domnode);return{one:one.bind(domnode),all:all.bind(domnode)}};_y.one=one;_y.all=all;return _y}()}var url_path=location.pathname;var path_match=url_path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];var port_path_app={2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",frontend:"cpanel",webmail:"webmail"};var security_token=path_match[1]||"";var cpanel={Y:_y,base_path:function(){return location.protocol+"//"+location.hostname+":"+location.port+(security_token||"")+"/"},security_token:security_token,is_touchscreen:"orientation"in window,application:port_path_app[location.port]||port_path_app[path_match[2]]||"whostmgr",is_cpanel:function(){return/cpanel/i.test(window.CPANEL.application)},is_whm:function(){return/wh/i.test(window.CPANEL.application)},has_text_content:"textContent"in document,namespace:function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=(""+a[i]).split(".");o=window["CPANEL"];for(j=d[0]==="CPANEL"?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]]}}return o}};YAHOO.register("cpanel",cpanel,{version:"1.0.0",build:"1"});window["CPANEL"]=cpanel})();if(window.YAHOO&&YAHOO.util){window.DOM=YAHOO.util.Dom;window.EVENT=YAHOO.util.Event}if(window.YAHOO&&YAHOO.util){if(YAHOO.util.CustomEvent){CPANEL.align_panels_event=new YAHOO.util.CustomEvent("align panels event");CPANEL.align_panels=CPANEL.align_panels_event.fire.bind(CPANEL.align_panels_event)}if(YAHOO.util.Event){YAHOO.util.Event.throwErrors=true}if(YAHOO.util.Connect){YAHOO.util.Connect.failureEvent.subscribe(function(eventType,args){if("no_ajax_authentication_notices"in CPANEL){return}for(var i=0,l=args.length;i<l;i++){if(args[i]&&args[i].status){switch(args[i].status){case 401:case 403:case 407:case 505:if(window.confirm('Your login session has expired.\nClick "OK" to log in again.\nClick "Cancel" to stay on the page.')){window.top.location.reload()}break}}}})}}(function(window){"use strict";if(!window.CPANEL){window.CPANEL={}}var CPANEL=window.CPANEL;var DEFAULT_ELLIPSIS={initial:"…{0}",medial:"{0}…{1}","final":"{0}…"};var html_apos="'".html_encode();var html_quot='"'.html_encode();var html_amp="&".html_encode();var html_lt="<".html_encode();var html_gt=">".html_encode();var get_cldr_day=function(the_date){var num=the_date.getUTCDay()-1;return num<0?6:num};var Locale=function(){};CPANEL.Locale=Locale;Locale._locales={};Locale.add_locale=function(tag,construc){Locale._locales[tag]=construc;construc.prototype._locale_tag=tag};Locale.remove_locale=function(tag){return delete Locale._locales[tag]};Locale.get_handle=function(){var cur_arg;var arg_count=arguments.length;for(var a=0;a<arg_count;a++){cur_arg=arguments[a];if(cur_arg in Locale._locales){return new Locale._locales[cur_arg]}}var loc=Object.keys(Locale._locales).min();return loc?new Locale._locales[loc]:new Locale};CPANEL.Locale.ymd=null;CPANEL.Locale.ymd_string_to_date=function(str){var str_split=str.split(/\D+/);var ymd=this.ymd||"mdy";var day=str_split[ymd.indexOf("d")];var month=str_split[ymd.indexOf("m")];var year=str_split[ymd.indexOf("y")];if(year&&year.length<4){var deficit=4-year.length;year=String((new Date).getFullYear()).substr(0,deficit)+year}var date=new Date(year,month-1,day);return isNaN(date.getTime())?undefined:date};CPANEL.Locale.date_template=null;Date.prototype.to_ymd_string=function(){var date=this;var template=CPANEL.Locale.date_template||"{month}/{day}/{year}";return template.replace(/\{(?:month|day|year)\}/g,function(subst){switch(subst){case"{day}":return date.getDate();case"{month}":return date.getMonth()+1;case"{year}":return date.getFullYear()}})};var bracket_re=/([^~\[\]]+|~.|\[|\]|~)/g;var faux_comma="";var faux_comma_re=new RegExp(faux_comma,"g");var tilde_chars={"[":1,"]":1,"~":1};var underscore_digit_re=/^_(\d+)$/;var func_substitutions={"#":"numf","*":"quant"};var data_abbreviations=["KB","MB","GB","TB","PB","EB","ZB","YB"];var _maketext=function(str){if(!str){return}str=this.LEXICON&&this.LEXICON[str]||str;if(str.indexOf("[")===-1){return String(str)}var assembled=[];var pieces=str.match(bracket_re);var pieces_length=pieces.length;var in_group=false;var bracket_args="";var p,cur_p,a;PIECE:for(p=0;p<pieces_length;p++){cur_p=pieces[p];if(cur_p==="["){if(in_group){throw"Invalid maketext string: "+str}in_group=true}else if(cur_p==="]"){if(!in_group||!bracket_args){throw"Invalid maketext string: "+str}in_group=false;var real_args=bracket_args.split(",");var len=real_args.length;var func;if(len===1){var arg=real_args[0].match(underscore_digit_re);if(!arg){throw"Invalid maketext string: "+str}var looked_up=arguments[arg[1]];if(typeof looked_up==="undefined"){throw'Invalid argument "'+arg[1]+'" passed to maketext string: '+str}else{bracket_args="";assembled.push(looked_up);continue PIECE}}else{func=real_args.shift();len-=1;func=func_substitutions[func]||func;if(typeof this[func]!=="function"){throw'Invalid function "'+func+'" in maketext string: '+str}}if(bracket_args.indexOf(faux_comma)!==-1){for(a=0;a<len;a++){real_args[a]=real_args[a].replace(faux_comma_re,",")}}var cur_arg,alen;for(a=0;a<len;a++){cur_arg=real_args[a];if(cur_arg.charAt(0)==="_"){if(cur_arg==="_*"){real_args.splice(a,1);for(a=1,alen=arguments.length;a<alen;a++){real_args.push(arguments[a])}}else{var arg_num=cur_arg.match(underscore_digit_re);if(arg_num){if(arg_num[1]in arguments){real_args[a]=arguments[arg_num[1]]}else{throw'Invalid variable "'+arg_num[1]+'" in maketext string: '+str}}else{throw"Invalid maketext string: "+str}}}}bracket_args="";assembled.push(this[func].apply(this,real_args))}else if(cur_p.charAt(0)==="~"){var real_char=cur_p.charAt(1)||"~";if(in_group){if(real_char===","){bracket_args+=faux_comma}else{bracket_args+=real_char}}else if(real_char in tilde_chars){assembled.push(real_char)}else{assembled.push(cur_p)}}else if(in_group){bracket_args+=cur_p}else{assembled.push(cur_p)}}if(in_group){throw"Invalid maketext string: "+str}return assembled.join("")};var prototype_stuff={LEXICON:typeof window==="undefined"?global.LEXICON||(global.LEXICON={}):window.LEXICON||(window.LEXICON={}),maketext:_maketext,makethis:_maketext,makevar:_maketext,translatable:function(str){return str},_locale_tag:null,get_language_tag:function(){return this._locale_tag},join:function(sep,list){sep=String(sep);if(typeof list==="object"){return list.join(sep)}else{var str=String(arguments[1]);for(var a=2;a<arguments.length;a++){str+=sep+arguments[a]}return str}},"boolean":function(condition,when_true,when_false,when_null){if(condition){return""+when_true}if(arguments.length>3&&(condition===null||condition===undefined)){return""+when_null}return""+when_false},comment:function(){return""},output:function(sub_func,str){var that=this;var sub_args=Array.prototype.concat.apply([],arguments).slice(1);if(sub_args&&typeof sub_args[0]==="string"){sub_args[0]=sub_args[0].replace(/chr\((\d+|\S)\)/g,function(str,p1){return that.output_chr(p1)});sub_args[0]=sub_args[0].replace(/amp\(\)/g,function(str){return that.output_amp()})}if(typeof this["output_"+sub_func]==="function"){return this["output_"+sub_func].apply(this,sub_args)}else{if(window.console){window.console.warn('Locale output function "'+sub_func+'" is not implemented.')}return str}},output_apos:function(){return html_apos},output_quot:function(){return html_quot},output_asis:String,asis:String,output_underline:function(str){return"<u>"+str+"</u>"},output_strong:function(str){return"<strong>"+str+"</strong>"},output_em:function(str){return"<em>"+str+"</em>"},output_abbr:function(abbr,full){return'<abbr title="__FULL__">'.replace(/__FULL__/,full)+abbr+"</abbr>"},output_acronym:function(abbr,full){return this.output_abbr(abbr,full).replace(/^(<[a-z]+)/i,'$1 class="initialism"')},output_class:function(str){var cls=Array.prototype.slice.call(arguments,1);return'<span class="'+cls.join(" ")+'">'+str+"</span>"},output_chr:function(num){return isNaN(+num)?String(num):String.fromCharCode(num).html_encode()},output_amp:function(){return html_amp},output_lt:function(){return html_lt},output_gt:function(){return html_gt},output_url:function(dest){var args_length=arguments.length,config=arguments[args_length-1],text,key,value,start_i,a,len;if(typeof config==="object"){text=args_length===3?arguments[1]:config.html||dest;if("_type"in config&&config._type==="offsite"){config["class"]="offsite";config.target="_blank";delete config._type}}else{config={};if(args_length%2){start_i=1}else{text=arguments[1];start_i=2}a=start_i;len=arguments.length;while(a<len){key=arguments[a];value=arguments[++a];if(key==="_type"&&value==="offsite"){config.target="_blank";config["class"]="offsite"}else{config[key]=value}a++}if(!text){text=config.html||dest}}var html='<a href="'+dest+'"';if(typeof config==="object"){for(key in config){html+=" "+key+'="'+config[key]+'"'}}html+=">"+text+"</a>";return html},list_separator:", ",oxford_separator:",",list_default_and:"&",list:function(word){if(!word){word=this.list_default_and}var list_sep=this.list_separator;var oxford_sep=this.oxford_separator;var the_list;if(typeof arguments[1]==="object"&&arguments[1]instanceof Array){the_list=arguments[1]}else{the_list=Array.prototype.concat.apply([],arguments).slice(1)}var len=the_list.length;if(!len){return""}if(len===1){return String(the_list[0])}else if(len===2){return the_list[0]+" "+word+" "+the_list[1]}else{return the_list.slice(0,-1).join(list_sep)+[oxford_sep,word,the_list.slice(-1)].join(" ")}},format_bytes:function(bytes,decimal_places){if(decimal_places===undefined){decimal_places=2}bytes=Number(bytes);var exponent=bytes&&Math.min(Math.floor(Math.log(bytes)/Math.log(1024)),data_abbreviations.length);if(!exponent){return this.maketext("[quant,_1,%s byte,%s bytes]",bytes)}else{return this.numf(bytes/Math.pow(1024,exponent),decimal_places)+" "+data_abbreviations[exponent-1]}},numerate:function(num){if(this.get_plural_form){var numerated=this.get_plural_form.apply(this,arguments)[0];if(numerated===undefined){numerated=arguments[arguments.length-1]}return numerated}else{var abs=Math.abs(num);if(abs===1){return""+arguments[1]}else if(abs===0){return""+arguments[arguments.length-1]}else{return""+arguments[2]}}},quant:function(num){var numerated,is_special_zero,decimal_places=3;if(num instanceof Array){decimal_places=num[1];num=num[0]}if(this.get_plural_form){var gpf=this.get_plural_form.apply(this,arguments);numerated=gpf[0];if(numerated===undefined){numerated=arguments[arguments.length-1]}is_special_zero=gpf[1]}else{numerated=this.numerate.apply(this,arguments);is_special_zero=parseInt(num,10)===0&&arguments.length>3&&numerated===String(arguments[3])}var formatted=this.numf(num,decimal_places);if(numerated.indexOf("%s")!==-1){return numerated.replace(/%s/g,formatted)}if(is_special_zero){return numerated}return this.is_rtl()?numerated+" "+formatted:formatted+" "+numerated},_max_decimal_places:6,numf:function(num,decimal_places){if(decimal_places===undefined){decimal_places=this._max_decimal_places}if(/e/.test(num)){return String(num)}var cldr,decimal_format,decimal_group,decimal_decimal;try{cldr=this.get_cldr("misc_info").cldr_formats;decimal_format=cldr.decimal;decimal_group=cldr._decimal_format_group;decimal_decimal=cldr._decimal_format_decimal}catch(e){}if(!decimal_format||!decimal_group||!decimal_decimal){decimal_format="#,##0.###";decimal_group=",";decimal_decimal="."}var is_negative=num<0;num=Math.abs(num);var whole=Math.floor(num);var normalized,fraction;if(/(?!')\.(?!')/.test(num)){fraction=String(num).replace(/^[^.]+/,"0");fraction=Number(fraction).toFixed(decimal_places);if(/^1/.test(fraction)){whole++;num=whole;fraction=undefined}else{fraction=fraction.replace(/^.*\./,"").replace(/0+$/,"")}normalized=Number(whole+"."+fraction)}else{normalized=num}var pattern_with_outside_symbols;if(/(?!');(?!')/.test(decimal_format)){pattern_with_outside_symbols=decimal_format.split(/(?!');(?!')/)[is_negative?1:0]}else{pattern_with_outside_symbols=(is_negative?"-":"")+decimal_format}var inner_pattern=pattern_with_outside_symbols.match(/[0#].*[0#]/)[0];var pattern_split=inner_pattern.split(/(?!')\.(?!')/);var int_pattern_split=pattern_split[0].reverse().split(/(?!'),(?!')/);var group_joiner;if(int_pattern_split.length===1){group_joiner=""}else{int_pattern_split.pop();group_joiner=decimal_group}var whole_reverse=String(whole).split("").reverse();var whole_assembled=[];var pattern;var replacer=function(chr){switch(chr){case"#":return whole_reverse.shift()||"";case"0":return whole_reverse.shift()||"0"}};while(whole_reverse.length){if(int_pattern_split.length){pattern=int_pattern_split.shift()}var assemble_chunk=pattern.replace(/(?!')[0#]|[0#](?!')/g,replacer).replace(/'([.,0#;¤%E])'$/,"").replace(/'([.,0#;¤%E])'/,"$1");whole_assembled.push(assemble_chunk)}var formatted_num=whole_assembled.join(group_joiner).reverse()+(fraction?decimal_decimal+fraction:"");return pattern_with_outside_symbols.replace(/[0#].*[0#]/,formatted_num)},list_and:function(){return this._list_join_cldr("list",arguments)},list_or:function(){return this._list_join_cldr("list_or",arguments)},_list_join_cldr:function(templates_name,args){var the_list;if(typeof args[0]==="object"&&args[0]instanceof Array){the_list=args[0].slice(0)}else if(typeof args[0]==="object"){if(args[0]instanceof Array){the_list=args.slice(0)}else{the_list=[args[0]]}}else if(typeof args==="object"&&args[0]!==undefined){if(args[0]instanceof Array){the_list=args[0].slice(0)}else{the_list=[];for(var k in args){the_list[k]=args[k]}}}if(the_list===undefined){the_list=[""]}var cldr_list;var len=the_list.length;var pattern;var text;try{cldr_list=this.get_cldr("misc_info").cldr_formats[templates_name]}catch(e){var conjunction=templates_name==="list_or"?"or":"and";cldr_list={2:"{0} "+conjunction+" {1}",start:"{0}, {1}",middle:"{0}, {1}",end:"{0}, "+conjunction+" {1}"}}var replacer=function(str,p1){switch(p1){case"0":return text;case"1":return the_list[i++]}};switch(len){case 0:return;case 1:return String(the_list[0]);default:if(len===2){text=cldr_list["2"]}else{text=cldr_list.start}text=text.replace(/\{([01])\}/g,function(all,bit){return the_list[bit]});if(len===2){return text}var i=2;while(i<len){pattern=cldr_list[i===len-1?"end":"middle"];text=pattern.replace(/\{([01])\}/g,replacer)}return text}},list_and_quoted:function(){return this._list_quoted("list_and",arguments)},list_or_quoted:function(){return this._list_quoted("list_or",arguments)},_quote:function(str){var delimiters;try{delimiters=this.get_cldr("misc_info").delimiters}catch(e){delimiters={quotation_start:"“",quotation_end:"”"}}return delimiters["quotation_start"]+str+delimiters["quotation_end"]},_list_quoted:function(join_fn,args){var the_list;if(typeof args[0]==="object"){if(args[0]instanceof Array){the_list=args[0].slice()}else{throw"Unrecognized list_and_quoted() argument: "+args[0].toString()}}else{the_list=Array.prototype.slice.apply(args)}if(the_list===undefined||the_list.length===0){the_list=[""]}var locale=this;return this[join_fn](the_list.map(function(){return locale._quote.apply(locale,arguments)}))},local_datetime:function(my_date,format_string){if(!this._cldr){return this.datetime.apply(this,arguments)}if(my_date instanceof Date){my_date=new Date(my_date)}else if(/^-?\d+$/.test(my_date)){my_date=new Date(my_date*1e3)}else{my_date=new Date}var tz_offset=my_date.getTimezoneOffset();my_date.setMinutes(my_date.getMinutes()-tz_offset);var non_utc=this.datetime(my_date,format_string);if(non_utc.indexOf("UTC")>-1){var hours=tz_offset>0?"-":"+";hours+=Math.floor(Math.abs(tz_offset)/60).toString().lpad(2,"0");var minutes=(tz_offset%60).toString().lpad(2,"0");non_utc=non_utc.replace("UTC","GMT"+hours+minutes)}return non_utc},datetime:function datetime(my_date,format_string){if(!my_date&&my_date!==0){my_date=new Date}else if(!(my_date instanceof Date)){my_date=new Date(my_date*1e3)}var loc_strs=this.get_cldr("datetime");if(!loc_strs){return my_date.toString()}if(format_string){if(/^(?:date|time|datetime|special)_format_/.test(format_string)){format_string=loc_strs[format_string]}}else{format_string=loc_strs.date_format_long}var substituter=function(){if(arguments[1]){return arguments[1].substr(1,arguments[1].length-2)}var key=arguments[2];var xformed=function(){switch(key){case"yy":return Math.abs(my_date.getUTCFullYear()).toString().slice(-2);case"y":case"yyy":case"yyyy":return Math.abs(my_date.getUTCFullYear());case"MMMMM":return loc_strs.month_format_narrow[my_date.getUTCMonth()];case"LLLLL":return loc_strs.month_stand_alone_narrow[my_date.getUTCMonth()];case"MMMM":return loc_strs.month_format_wide[my_date.getUTCMonth()];case"LLLL":return loc_strs.month_stand_alone_wide[my_date.getUTCMonth()];case"MMM":return loc_strs.month_format_abbreviated[my_date.getUTCMonth()];case"LLL":return loc_strs.month_stand_alone_abbreviated[my_date.getUTCMonth()];case"MM":case"LL":return(my_date.getUTCMonth()+1).toString().lpad(2,"0");case"M":case"L":return my_date.getUTCMonth()+1;case"EEEE":return loc_strs.day_format_wide[get_cldr_day(my_date)];case"EEE":case"EE":case"E":return loc_strs.day_format_abbreviated[get_cldr_day(my_date)];case"EEEEE":return loc_strs.day_format_narrow[get_cldr_day(my_date)];case"cccc":return loc_strs.day_stand_alone_wide[get_cldr_day(my_date)];case"ccc":case"cc":case"c":return loc_strs.day_stand_alone_abbreviated[get_cldr_day(my_date)];case"ccccc":return loc_strs.day_stand_alone_narrow[get_cldr_day(my_date)];case"dd":return my_date.getUTCDate().toString().lpad(2,"0");case"d":return my_date.getUTCDate();case"h":case"hh":var twelve_hours=my_date.getUTCHours();if(twelve_hours>12){twelve_hours-=12}if(twelve_hours===0){twelve_hours=12}return key==="hh"?twelve_hours.toString().lpad(2,"0"):twelve_hours;case"H":return my_date.getUTCHours();case"HH":return my_date.getUTCHours().toString().lpad(2,"0");case"m":return my_date.getUTCMinutes();case"mm":return my_date.getUTCMinutes().toString().lpad(2,"0");case"s":return my_date.getUTCSeconds();case"ss":return my_date.getUTCSeconds().toString().lpad(2,"0");case"a":var hours=my_date.getUTCHours();if(hours<12){return loc_strs.am_pm_abbreviated[0]}else if(hours>12){return loc_strs.am_pm_abbreviated[1]}return loc_strs.am_pm_abbreviated[1];case"z":case"zzzz":case"v":case"vvvv":return"UTC";case"G":case"GG":case"GGG":return loc_strs.era_abbreviated[my_date.getUTCFullYear()<0?0:1];case"GGGGG":return loc_strs.era_narrow[my_date.getUTCFullYear()<0?0:1];case"GGGG":return loc_strs.era_wide[my_date.getUTCFullYear()<0?0:1]}if(window.console){console.warn("Unknown CLDR date/time pattern: "+key+" ("+format_string+")")}return key}();return xformed};return format_string.replace(/('[^']+')|(([a-zA-Z])\3*)/g,substituter)},is_rtl:function(){try{return this.get_cldr("misc_info").orientation.characters==="right-to-left"}catch(e){return false}},elide:function(str,start_length,end_length){start_length=start_length||0;end_length=end_length||0;if(str.length<=start_length+end_length){return str}var template,substring0,substring1;if(start_length){if(end_length){template="medial";substring0=str.substr(0,start_length);substring1=str.substr(str.length-end_length)}else{template="final";substring0=str.substr(0,start_length)}}else if(end_length){template="initial";substring0=str.substr(str.length-end_length)}else{return""}try{template=this._cldr.misc_info.cldr_formats.ellipsis[template]}catch(e){template=DEFAULT_ELLIPSIS[template]}if(substring1){return template.replace("{0}",substring0).replace("{1}",substring1)}return template.replace("{0}",substring0)},get_first_day_of_week:function(){var fd=Number(this.get_cldr("datetime").first_day_of_week)+1;return fd===8?0:fd},set_cldr:function(cldr){var cldr_obj=this._cldr;if(!cldr_obj){cldr_obj=this._cldr={}}for(var key in cldr){cldr_obj[key]=cldr[key]}},get_cldr:function(key){if(!this._cldr){return}if(typeof key==="object"&&key instanceof Array){return key.map(this.get_cldr,this)}else{return key?this._cldr[key]:this._cldr}},reset_cldr:function(){this._cldr=undefined},_cldr:null};CPANEL.Locale.generateClassFromCldr=function(tag,functionsMixin,dateTimeInfo,miscInfo){if(CPANEL.Locale._locales[tag]){return Locale._locales[tag]}var GeneratedLocale=function(){GeneratedLocale.superclass.constructor.apply(this,arguments);this.set_cldr({datetime:dateTimeInfo});this.set_cldr({misc_info:miscInfo})};YAHOO.lang.extend(GeneratedLocale,CPANEL.Locale,functionsMixin);Locale.add_locale(tag,GeneratedLocale);window.LOCALE=CPANEL.Locale.get_handle();return CPANEL.Locale._locales[tag]};for(var key in prototype_stuff){Locale.prototype[key]=prototype_stuff[key]}window.LOCALE=Locale.get_handle()})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including icons.js!")}else{CPANEL.icons={error:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/error.png" width="16" height="16" alt="error" />',error_src:"/cPanel_magic_revision_0/cjt/images/icons/error.png",error24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/error24.png" width="24" height="24" alt="error" />',error24_src:"/cPanel_magic_revision_0/cjt/images/icons/error24.png",success:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/success.png" alt="success" width="16" height="16" />',success_src:"/cPanel_magic_revision_0/cjt/images/icons/success.png",success24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/success24.png" alt="success" width="24" height="24" />',success24_src:"/cPanel_magic_revision_0/cjt/images/icons/success24.png",unknown:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/unknown.png" alt="unknown" width="16" height="16" />',unknown_src:"/cPanel_magic_revision_0/cjt/images/icons/unknown.png",unknown24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/unknown24.png" alt="unknown" width="24" height="24" />',unknown24_src:"/cPanel_magic_revision_0/cjt/images/icons/unknown24.png",warning:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/warning.png" alt="warning" width="16" height="16"/>',warning_src:"/cPanel_magic_revision_0/cjt/images/icons/warning.png",warning24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/warning24.png" alt="warning" width="24" height="24"/>',warning24_src:"/cPanel_magic_revision_0/cjt/images/icons/warning24.png",ajax:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/loading.gif" alt="loading" />',ajax_src:"/cPanel_magic_revision_0/cjt/images/loading.gif",transparent:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/1px_transparent.gif" alt="" width="1" height="1"/>',transparent_src:"/cPanel_magic_revision_0/cjt/images/1px_transparent.gif",rejected:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/rejected.png" alt="rejected" width="16" height="16"/>',rejected_src:"/cPanel_magic_revision_0/cjt/images/rejected.png",rejected24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/rejected24.png" alt="rejected" width="24" height="24"/>',rejected24_src:"/cPanel_magic_revision_0/cjt/images/rejected24.png",info:'<img align="absmiddle" src="/cPanel_magic_revision_0/yui/container/assets/info16_1.gif" alt="" width="16" height="16"/>',info_src:"/cPanel_magic_revision_0/yui/container/assets/info16_1.gif",filtered:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/filter.png" alt="" width="16" height="16"/>',filtered_src:"/cPanel_magic_revision_0/cjt/images/filtered.png",filtered24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/filter24.png" alt="" width="24" height="24"/>',filtered24_src:"/cPanel_magic_revision_0/cjt/images/filtered24.png",archive:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/archive.png" alt="" width="16" height="16"/>',archive_src:"/cPanel_magic_revision_0/cjt/images/archive.png",archive24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/archive24.png" alt="" width="24" height="24"/>',archive24_src:"/cPanel_magic_revision_0/cjt/images/archive24.png"}}var CPANEL=window.CPANEL,YAHOO=window.YAHOO;if(typeof CPANEL==="undefined"||!CPANEL){alert("You must include the CPANEL global object before including animate.js!")}else if(typeof YAHOO.util.Anim==="undefined"||!YAHOO.util.Anim){alert("You must include the YUI Animation library before including animate.js!")}else{(function(){var _SLIDING=[];var _FADING=[];var i,cur_el;function _check(el,to_check){for(i=0;cur_el=to_check[i++];){if(cur_el===el){return false}}to_check.push(el);return true}function _done_check(el,to_check){for(i=0;cur_el=to_check[i++];){if(cur_el===el){return to_check.splice(--i,1)
}}return}var WHM_NAVIGATION_TOP_CONTAINER_SELECTOR="#navigation #breadcrumbsContainer";CPANEL.animate={sequential_slide:false,debug:false,slide_down:function(elem,opts){var callback=typeof opts==="function"&&opts;var expand_width=opts&&opts.expand_width;var el=DOM.get(elem);var check=_check(el,_SLIDING);if(!check){return}var s=el.style;var old_position=s.position;var old_visibility=s.visibility;var old_overflow=s.overflow;var old_bottom=s.bottom;var old_display=DOM.getStyle(el,"display");if(expand_width){var old_right_margin=s.marginRight;s.marginRight="-10000px"}var change_overflow=old_overflow!=="hidden";var change_position=old_position!=="absolute";var change_visibility=old_visibility!=="hidden";var test_node=document.createElement(el.nodeName);test_node.style.position="absolute";test_node.style.visibility="hidden";document.body.appendChild(test_node);var default_display=DOM.getStyle(test_node,"display");document.body.removeChild(test_node);delete test_node;if(change_visibility){s.visibility="hidden"}if(change_position){s.position="absolute"}s.bottom=0;if(change_overflow){s.overflow="hidden"}s.display=default_display;var old_box_attrs=CPANEL.animate._get_box_attributes(el);var computed_box_attrs=CPANEL.animate._get_computed_box_attributes(el);var finish_up=function(){for(var attr in computed_box_attrs){el.style[attr]=old_box_attrs[attr]||""}if(change_overflow){s.overflow=old_overflow}if(old_display!=="none"){s.display=old_display}_done_check(el,_SLIDING)};if(change_position){s.position=old_position}s.bottom=old_bottom;if(change_visibility){s.visibility=old_visibility}if(expand_width){s.marginRight=old_right_margin}for(var attr in computed_box_attrs){s[attr]=0}if(CPANEL.animate.debug){console.debug("slide down",el,computed_box_attrs)}if(CPANEL.animate.sequential_slide){var total_slide_distance=0;for(var attr in computed_box_attrs){total_slide_distance+=computed_box_attrs[attr]}var animations=[];var all_animations=CPANEL.animate._animation_order;var all_animations_count=CPANEL.animate._animation_order.length;var last_animation;for(var a=0;a<all_animations_count;a++){var attr=all_animations[a];if(attr in computed_box_attrs){var slide_distance=computed_box_attrs[attr];var slide_time=CPANEL.animate.slideTime*slide_distance/total_slide_distance;var anims={};anims[attr]={from:0,to:computed_box_attrs[attr]};var cur_anim=new YAHOO.util.Anim(el,anims,slide_time);if(last_animation){(function(frozen_anim_obj){var next_trigger=function(){frozen_anim_obj.animate()};last_animation.onComplete.subscribe(next_trigger)})(cur_anim)}animations.push(cur_anim);last_animation=cur_anim}}last_animation.onComplete.subscribe(finish_up);if(callback){last_animation.onComplete.subscribe(callback)}animations[0].animate();return animations}else{var animations={};for(var attr in computed_box_attrs){animations[attr]={from:0,to:computed_box_attrs[attr]}}var anim=new YAHOO.util.Anim(elem,animations,CPANEL.animate.slideTime);anim.onComplete.subscribe(finish_up);if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim}},slide_up:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_SLIDING);if(!el||!check){return}var s=el.style;old_overflow=s.overflow;var change_overflow=old_overflow!=="hidden";if(change_overflow){s.overflow="hidden"}var old_box_settings=CPANEL.animate._get_box_attributes(el);var computed_box_settings=CPANEL.animate._get_computed_box_attributes(el);var finish_up=function(){for(var attr in computed_box_settings){s[attr]=old_box_settings[attr]||""}s.display="none";if(change_overflow){s.overflow=old_overflow}_done_check(el,_SLIDING)};if(CPANEL.animate.sequential_slide){var total_slide_distance=0;for(var attr in computed_box_settings){total_slide_distance+=computed_box_settings[attr]}var animations=[];var all_animations=CPANEL.animate._animation_order;var all_animations_count=CPANEL.animate._animation_order.length;var last_animation;for(var a=all_animations_count-1;a>-1;a--){var attr=all_animations[a];if(attr in computed_box_settings){var slide_distance=computed_box_settings[attr];var slide_time=CPANEL.animate.slideTime*slide_distance/total_slide_distance;var anims={};anims[attr]={to:0};var cur_anim=new YAHOO.util.Anim(el,anims,slide_time);if(last_animation){(function(frozen_anim_obj){var next_trigger=function(){frozen_anim_obj.animate()};last_animation.onComplete.subscribe(next_trigger)})(cur_anim)}animations.push(cur_anim);last_animation=cur_anim}}last_animation.onComplete.subscribe(finish_up);if(callback){last_animation.onComplete.subscribe(callback)}animations[0].animate();return animations}else{var animations={};for(var attr in computed_box_settings){animations[attr]={to:0}}var anim=new YAHOO.util.Anim(el,animations,CPANEL.animate.slideTime);anim.onComplete.subscribe(finish_up);if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim}},slide_up_and_empty:function(elem,callback){return CPANEL.animate.slide_up(elem,function(){var that=this;if(callback){callback.call(that)}this.getEl().innerHTML=""})},slide_up_and_remove:function(elem,callback){return CPANEL.animate.slide_up(elem,function(){var that=this;if(callback){callback.call(that)}var el=this.getEl();el.parentNode.removeChild(el)})},slide_toggle:function(elem,callback){var el=DOM.get(elem);var func_name=el.offsetHeight?"slide_up":"slide_down";return CPANEL.animate[func_name](el,callback)},_box_attributes:{height:"height",paddingTop:"padding-top",paddingBottom:"padding-bottom",borderTopWidth:"border-top-width",borderBottomWidth:"border-bottom-width",marginTop:"margin-top",marginBottom:"margin-bottom"},_animation_order:["marginTop","borderTopWidth","paddingTop","height","paddingBottom","borderBottomWidth","marginBottom"],_get_box_attributes:function(el){var attrs=CPANEL.util.keys(CPANEL.animate._box_attributes);var attrs_count=attrs.length;var el_box_attrs={};for(var a=0;a<attrs_count;a++){var cur_attr=attrs[a];var attr_val=el.style[attrs[a]];if(attr_val!=""){el_box_attrs[cur_attr]=attr_val}}return el_box_attrs},_get_computed_box_attributes:function(el){var computed_box_attrs={};var attr_map=CPANEL.animate._box_attributes;for(var attr in attr_map){var computed=parseFloat(DOM.getStyle(el,attr_map[attr]));if(computed>0){computed_box_attrs[attr]=computed}}if(!("height"in computed_box_attrs)){var simple_height=el.offsetHeight;if(simple_height){for(var attr in computed_box_attrs){if(attr!=="marginTop"&&attr!=="marginBottom"){simple_height-=computed_box_attrs[attr]}}if(simple_height){computed_box_attrs.height=simple_height}}}return computed_box_attrs},fade_in:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_FADING);if(!check){return}var old_filter="",element_style_opacity="";if("opacity"in el.style){element_style_opacity=el.style.opacity}else{var old_filter=el.style.filter}var target_opacity=parseFloat(DOM.getStyle(el,"opacity"));var anim=new YAHOO.util.Anim(el,{opacity:{to:target_opacity||1}},CPANEL.animate.fadeTime);anim.onComplete.subscribe(function(){if("opacity"in el.style){el.style.opacity=element_style_opacity}else if(old_filter){el.style.filter=old_filter}_done_check(el,_FADING)});if(callback){anim.onComplete.subscribe(callback)}DOM.setStyle(el,"opacity",0);el.style.visibility="";if(el.style.display==="none"){el.style.display=""}anim.animate();return anim},fade_out:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_FADING);if(!check){return}var old_opacity=el.style.opacity;var anim=new YAHOO.util.Anim(el,{opacity:{to:0}},CPANEL.animate.fadeTime);anim.onComplete.subscribe(function(){el.style.display="none";el.style.opacity=old_opacity;_done_check(el,_FADING)});if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim},fade_toggle:function(elem,callback){var el=DOM.get(elem);var func_name=el.offsetHeight?"fade_out":"fade_in";return CPANEL.animate[func_name](el,callback)},slideTime:.2,fadeTime:.32,getAutoHeight:function(elid){el=YAHOO.util.Dom.get(elid);var original_opacity=YAHOO.util.Dom.getStyle(el,"opacity");var original_zindex=YAHOO.util.Dom.getStyle(el,"z-index");var original_display=YAHOO.util.Dom.getStyle(el,"display");var original_height=YAHOO.util.Dom.getStyle(el,"height");YAHOO.util.Dom.setStyle(el,"opacity",1);YAHOO.util.Dom.setStyle(el,"z-index",5e3);YAHOO.util.Dom.setStyle(el,"display","block");YAHOO.util.Dom.setStyle(el,"height","auto");var currentRegion=YAHOO.util.Dom.getRegion(el);var padding_top=parseInt(YAHOO.util.Dom.getStyle(el,"padding-top"));var padding_bottom=parseInt(YAHOO.util.Dom.getStyle(el,"padding-bottom"));var currentHeight=currentRegion.bottom-currentRegion.top-padding_top-padding_bottom;var original_opacity=YAHOO.util.Dom.setStyle(el,"opacity",original_opacity);var original_zindex=YAHOO.util.Dom.setStyle(el,"z-index",original_zindex);var original_display=YAHOO.util.Dom.setStyle(el,"display",original_display);var original_height=YAHOO.util.Dom.setStyle(el,"height",original_height);return currentHeight}};if(!("ContainerEffect"in CPANEL.animate)){CPANEL.animate.ContainerEffect={}}var _get_style=YAHOO.util.Dom.getStyle;var _set_style=YAHOO.util.Dom.setStyle;var Config=YAHOO.util.Config;var _mask;var _get_mask_opacity=function(){if(!("_mask_opacity"in this)){_mask=this.mask;this._mask_opacity=_get_style(_mask,"opacity");_set_style(_mask,"opacity",0)}};var FADE_MODAL=function(ovl,dur){var fade=YAHOO.widget.ContainerEffect.FADE.apply(this,arguments);if(!Config.alreadySubscribed(ovl.beforeShowMaskEvent,_get_mask_opacity,ovl)){ovl.beforeShowMaskEvent.subscribe(_get_mask_opacity)}fade.animIn.onStart.subscribe(function(){if(ovl.mask){var anim=new YAHOO.util.Anim(ovl.mask,{opacity:{from:0,to:ovl._mask_opacity}},dur);delete this._mask_opacity;anim.animate()}});fade.animOut.onStart.subscribe(function(){if(ovl.mask){var anim=new YAHOO.util.Anim(ovl.mask,{opacity:{to:0}},dur);anim.animate()}});fade.animOut.onComplete.subscribe(function(){if(ovl.mask){DOM.setStyle(ovl.mask,"opacity",0)}});return fade};CPANEL.animate.ContainerEffect.FADE_MODAL=FADE_MODAL;var _configEffect=YAHOO.widget.Overlay.prototype.configEffect;YAHOO.widget.Overlay.prototype.configEffect=function(){if(this.beforeShowMaskEvent){this.beforeShowMaskEvent.unsubscribe(_get_mask_opacity)}return _configEffect.apply(this,arguments)};var _xform_attrs=["transform","MozTransform","WebkitTransform","OTransform","msTransform"];var _transform_attribute=null;var _test_style=(document.body||document.createElement("span")).style;for(var a=0,cur_a;cur_a=_xform_attrs[a++];){if(cur_a in _test_style){_transform_attribute=cur_a;break}}if(!_transform_attribute){var ie_removeProperty="removeProperty"in _test_style?"removeProperty":"removeAttribute";var half_pi=.5*Math.PI;var pi=Math.PI;var pi_and_half=1.5*Math.PI;var two_pi=2*Math.PI;var abs=Math.abs;var sin=Math.sin;var cos=Math.cos}var _rotate_regexp=/rotate\(([^\)]*)\)/;var _unit_conversions={deg:{grad:10/9,rad:Math.PI/180,deg:1},grad:{deg:9/10,rad:Math.PI/200,grad:1},rad:{deg:180/Math.PI,grad:200/Math.PI,rad:1}};var Rotation=function(){if(arguments[0]){Rotation.superclass.constructor.apply(this,arguments);if(!_transform_attribute){var el=YAHOO.util.Dom.get(arguments[0]);var _old_visibility;var _clone_el;var _old_position;var _top_style;var _left_style;this.onStart.subscribe(function(){_top_style=el.style.top;_left_style=el.style.left;if(!el.currentStyle.hasLayout){if(DOM.getStyle(el,"display")==="inline"){el.style.display="inline-block"}else{el.style.zoom="1"}}_clone_el=el.cloneNode(true);_clone_el.id="";_clone_el.style.visibility="hidden";_clone_el.style.position="absolute";el.parentNode.insertBefore(_clone_el,el);if(_clone_el.style.filter){_clone_el.style.filter=""}var region=YAHOO.util.Dom.getRegion(_clone_el);var width=parseFloat(YAHOO.util.Dom.getStyle(_clone_el,"width"))||region.width;var height=parseFloat(YAHOO.util.Dom.getStyle(_clone_el,"height"))||region.height;this._center_x=width/2;this._center_y=height/2;this._width=width;this._height=height;DOM.setXY(_clone_el,DOM.getXY(el));this._left_px=_clone_el.offsetLeft;this._top_px=_clone_el.offsetTop;_clone_el.style.visibility="visible";_clone_el.style.filter=el.style.filter;var z_index=YAHOO.util.Dom.getStyle(el,"z-index");if(z_index==="auto"){z_index=0}_clone_el.style.zIndex=z_index+1;_old_visibility=el.style.visibility;el.style.visibility="hidden";this.setEl(_clone_el);this.setRuntimeAttribute();var attrs=this.runtimeAttributes._rotation;var unit=attrs.unit;var degrees=unit==="deg"?attrs.start:attrs.start*_unit_conversions[unit].deg;var from_vertical=this._from_vertical=!(degrees%180);if(!from_vertical){var xy_offset=this.setAttribute(null,degrees,"deg",true);this._left_px+=Math.round(xy_offset[0]);this._top_px+=Math.round(xy_offset[1])}});this.onComplete.subscribe(function(){var attrs=this.runtimeAttributes._rotation;var unit=attrs.unit;var degrees=unit==="deg"?attrs.end:attrs.end*_unit_conversions[unit].deg;var to_zero=!(degrees%360);var to_vertical=!(degrees%180);el.style.visibility=_old_visibility;if(to_zero){el.style[ie_removeProperty]("filter")}else{el.style.filter=_clone_el.style.filter}if(this._from_vertical&&to_vertical){if(_top_style){el.style.top=_top_style}else{el.style[ie_removeProperty]("top")}if(_left_style){el.style.left=_left_style}else{el.style[ie_removeProperty]("left")}}else{DOM.setXY(el,DOM.getXY(_clone_el))}_clone_el.parentNode.removeChild(_clone_el)})}else if(_transform_attribute==="WebkitTransform"){this.onStart.subscribe(function(){var el=this.getEl();var original_display=YAHOO.util.Dom.getStyle(el,"display");if(original_display==="inline"){el.style.display="inline-block"}})}}};Rotation.NAME="Rotation";YAHOO.extend(Rotation,YAHOO.util.Anim,{setAttribute:_transform_attribute?function(attr,val,unit){this.getEl().style[_transform_attribute]="rotate("+val+unit+")"}:function(attr,val,unit,no_set){var el,el_style,cos_val,sin_val,ie_center_x,ie_center_y,width,height;el=this.getEl();el_style=el.style;if(unit!=="rad"){val=val*_unit_conversions[unit].rad}val%=two_pi;if(val<0){val+=two_pi}cos_val=cos(val);sin_val=sin(val);width=this._width;height=this._height;if(val>=0&&val<half_pi||val>=pi&&val<pi_and_half){ie_center_x=.5*(abs(width*cos_val)+abs(height*sin_val));ie_center_y=.5*(abs(width*sin_val)+abs(height*cos_val))}else{ie_center_x=.5*(abs(height*sin_val)+abs(width*cos_val));ie_center_y=.5*(abs(height*cos_val)+abs(width*sin_val))}if(no_set){return[ie_center_x-this._center_x,ie_center_y-this._center_y]}else{el_style.top=this._top_px-ie_center_y+this._center_y+"px";el_style.left=this._left_px-ie_center_x+this._center_x+"px";el_style.filter="progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand'"+",M11="+cos_val+",M12="+-1*sin_val+",M21="+sin_val+",M22="+cos_val+")"}},getAttribute:function(){if(!_transform_attribute){return 0}var match=this.getEl().style[_transform_attribute].match(_rotate_regexp);return match?match[1]:0},defaultUnit:"deg",setRuntimeAttribute:function(){var attr="_rotation";var current_rotation;var unit="unit"in this.attributes?this.attributes[attr].unit:this.defaultUnit;if("from"in this.attributes){current_rotation=this.attributes.from}else{current_rotation=this.getAttribute();if(current_rotation){var number_units=current_rotation.match(/^(\d+)(\D+)$/);if(number_units[2]===unit){current_rotation=parseFloat(number_units[1])}else{current_rotation=number_units[1]*_unit_conversions[unit][number_units[2]]}}}this.runtimeAttributes[attr]={start:current_rotation,end:this.attributes.to,unit:unit};return true}});CPANEL.animate.Rotation=Rotation;var WindowScroll=function(){var SCROLL_ANIMATION_DURATION=.5;var destination=arguments[0]||0;var targetRegion;if(typeof destination==="string"){destination=DOM.get(destination);targetRegion=DOM.getRegion(destination)}if(typeof destination==="object"){if(!(destination instanceof YAHOO.util.Region)){destination=DOM.getRegion(destination)}}else{destination=new YAHOO.util.Point(0,destination)}targetRegion=destination;var scroll_window_to_y;var top_scroll_y=destination.top;if(CPANEL.is_whm()&&CPANEL.Y.one(WHM_NAVIGATION_TOP_CONTAINER_SELECTOR)){top_scroll_y-=DOM.get("breadcrumbsContainer").offsetHeight}var scroll_y=DOM.getDocumentScrollTop();if(scroll_y>top_scroll_y){scroll_window_to_y=top_scroll_y}else{var vp_region=CPANEL.dom.get_viewport_region();var bottom_scroll_y=Math.max(destination.bottom-vp_region.height,0);if(scroll_y<bottom_scroll_y){scroll_window_to_y=Math.min(top_scroll_y,bottom_scroll_y)}else{scroll_window_to_y=vp_region.top}}var scrollDesc={scroll:{to:[DOM.getDocumentScrollLeft(),scroll_window_to_y]}};var scrollTime=CPANEL.dom.get_viewport_region().contains(targetRegion)?0:SCROLL_ANIMATION_DURATION;var easing=YAHOO.util.Easing.easeBothStrong;new YAHOO.util.Scroll(document.body,scrollDesc,scrollTime,easing).animate();var args=[document.documentElement,scrollDesc,scrollTime,easing];WindowScroll.superclass.constructor.apply(this,args)};WindowScroll.NAME="WindowScroll";YAHOO.extend(WindowScroll,YAHOO.util.Scroll);CPANEL.animate.WindowScroll=WindowScroll})()}(function(window){"use strict";var YAHOO=window.YAHOO;var CPANEL=window.CPANEL;var LOCALE=window.LOCALE;var DEFAULT_API_VERSION_CPANEL=2;var DEFAULT_API_VERSION_WHM=1;var _transaction_args={};var _async_request=function(){var conn=YAHOO.util.Connect.asyncRequest.apply(YAHOO.util.Connect,arguments);if(conn&&"tId"in conn){_transaction_args[conn.tId]=arguments}return conn};var _make_whm_api_fieldspec_from_number=function(num){var left="".lpad(parseInt(num/26,10),"z");return left+"abcdefghijklmnopqrstuvwxyz".charAt(num%26)};var _find_is_whm=function(args_obj){return args_obj&&args_obj.application==="whm"||CPANEL.is_whm()};var find_api_version=function(args_obj){var version;if(args_obj&&"version"in args_obj){version=args_obj.version}else if(args_obj&&args_obj.api_data&&"version"in args_obj.api_data){version=args_obj.api_data.version}else if(_find_is_whm(args_obj)){version=DEFAULT_API_VERSION_WHM}else{version=DEFAULT_API_VERSION_CPANEL}version=parseInt(version,10);if(isNaN(version)){throw"Invalid API version: "+args_obj.version}return version};var api=function(args_obj){var callback;var req_obj;if(typeof args_obj.callback==="function"){callback={success:args_obj.callback}}else if(args_obj.callback){callback=YAHOO.lang.augmentObject({},args_obj.callback)}else{callback={}}var pp_opts=args_obj.progress_panel;var pp;if(pp_opts){if(!CPANEL.ajax.build_callback){throw"Need CPANEL.ajax!"}pp=new CPANEL.ajax.Progress_Panel(pp_opts);var source_el=pp_opts.source_el;if(source_el){pp.show_from_source(source_el)}else{pp.cfg.setProperty("effect",CPANEL.ajax.FADE_MODAL);pp.show()}var before_pp_success=callback.success;var pp_callback=CPANEL.ajax.build_callback(function(){if(pp_opts.before_success&&pp_opts.before_success.apply(pp,arguments)===false){return}if(source_el){pp.hide_to_point(source_el)}else{pp.hide()}var notice_opts=pp_opts.success_notice_options||{};YAHOO.lang.augmentObject(notice_opts,{level:"success",content:pp_opts.success_status||LOCALE.maketext("Success!")});req_obj.notice=new CPANEL.ajax.Dynamic_Notice(notice_opts);if(before_pp_success){return before_pp_success.apply(this,arguments)}},{current:pp},{keep_current_on_success:true,on_error:pp_opts.on_error,failure:callback.failure});YAHOO.lang.augmentObject(callback,pp_callback,true)}var is_whm=_find_is_whm(args_obj);var api_version=find_api_version(args_obj);var given_success=callback.success;callback.success=function(o){var parser=(is_whm?_whm_parsers:_cpanel_parsers)[api_version];if(!parser){throw"No parser for API version "+api_version}YAHOO.lang.augmentObject(o,parser(o.responseText));if(!o.cpanel_status){if(callback.failure){callback.failure.call(this,o)}}else{if(given_success){given_success.call(this,o)}}};req_obj=_async_request("POST",construct_url_path(args_obj),callback,construct_api_query(args_obj));if(pp){req_obj.progress_panel=pp}return req_obj};var construct_url_path=function(args_obj){var is_whm=_find_is_whm(args_obj);var api_version=find_api_version(args_obj);var url=CPANEL.security_token;if(is_whm){if(!args_obj.batch&&!args_obj.func){return}url+="/json-api/"+(args_obj.batch?"batch":encodeURIComponent(args_obj.func))}else{if(!args_obj.module||!args_obj.func){return}if(api_version===3){url+="/execute/"+encodeURIComponent(args_obj.module)+"/"+encodeURIComponent(args_obj.func)}else{url+="/json-api/cpanel"}}return url};var get_transaction_args=function(t_id){var args=_transaction_args[t_id];return args&&YAHOO.lang.augmentObject({},args)};var construct_api_query=function(args_obj){return CPANEL.util.make_query_string(translate_api_query(args_obj))};var translate_api_query=function(args_obj){var this_is_whm=CPANEL.is_whm();var api_version=find_api_version(args_obj);var api_call={};var s,cur_sort,f,cur_filter,prefix;if(args_obj.application==="whm"||this_is_whm){api_call["api.version"]=api_version;if("batch"in args_obj){var commands=args_obj.batch.map(function(cmd){var safe_cmd=Object.create(cmd);safe_cmd.version=api_version;var query=translate_api_query(safe_cmd);delete query["api.version"];query=CPANEL.util.make_query_string(query);return encodeURIComponent(safe_cmd.func)+(query&&"?"+query)});api_call.command=commands;if(args_obj.batch_data){YAHOO.lang.augmentObject(api_call,args_obj.batch_data)}}else{if(args_obj.data){YAHOO.lang.augmentObject(api_call,args_obj.data)}if(args_obj.api_data){var sorts=args_obj.api_data.sort;var filters=args_obj.api_data.filter;var paginate=args_obj.api_data.paginate;var columns=args_obj.api_data.columns;var analytics=args_obj.api_data.analytics;if(sorts&&sorts.length){api_call["api.sort.enable"]=1;for(s=sorts.length-1;s>=0;s--){cur_sort=sorts[s];prefix="api.sort."+_make_whm_api_fieldspec_from_number(s);if(cur_sort instanceof Array){api_call[prefix+".method"]=cur_sort[1];cur_sort=cur_sort[0]}if(cur_sort.charAt(0)==="!"){api_call[prefix+".reverse"]=1;cur_sort=cur_sort.substr(1)}api_call[prefix+".field"]=cur_sort}}if(filters&&filters.length){api_call["api.filter.enable"]=1;api_call["api.filter.verbose"]=1;for(f=filters.length-1;f>=0;f--){cur_filter=filters[f];prefix="api.filter."+_make_whm_api_fieldspec_from_number(f);api_call[prefix+".field"]=cur_filter[0];api_call[prefix+".type"]=cur_filter[1];api_call[prefix+".arg0"]=cur_filter[2]}}if(paginate){api_call["api.chunk.enable"]=1;api_call["api.chunk.verbose"]=1;if("start"in paginate){api_call["api.chunk.start"]=paginate.start+1}if("size"in paginate){api_call["api.chunk.size"]=paginate.size}}if(columns){api_call["api.columns.enable"]=1;for(var c=0;c<columns.length;c++){api_call["api.columns."+_make_whm_api_fieldspec_from_number(c)]=columns[c]}}if(analytics){api_call["api.analytics"]=JSON.stringify(analytics)}}}}else if(api_version===2||api_version===3){var api_prefix;if(api_version===2){api_prefix="api2_";api_call.cpanel_jsonapi_apiversion=api_version;api_call.cpanel_jsonapi_module=args_obj.module;api_call.cpanel_jsonapi_func=args_obj.func}else{api_prefix="api."}if(args_obj.data){YAHOO.lang.augmentObject(api_call,args_obj.data)}if(args_obj.api_data){if(args_obj.api_data.sort){var sort_count=args_obj.api_data.sort.length;if(sort_count&&api_version===2){api_call.api2_sort=1}for(s=0;s<sort_count;s++){cur_sort=args_obj.api_data.sort[s];if(cur_sort instanceof Array){api_call[api_prefix+"sort_method_"+s]=cur_sort[1];cur_sort=cur_sort[0]}if(cur_sort.charAt(0)==="!"){api_call[api_prefix+"sort_reverse_"+s]=1;cur_sort=cur_sort.substr(1)}api_call[api_prefix+"sort_column_"+s]=cur_sort}}if(args_obj.api_data.filter){var filter_count=args_obj.api_data.filter.length;if(filter_count&&api_version===2){api_call.api2_filter=1}for(f=0;f<filter_count;f++){cur_filter=args_obj.api_data.filter[f];api_call[api_prefix+"filter_column_"+f]=cur_filter[0];api_call[api_prefix+"filter_type_"+f]=cur_filter[1];api_call[api_prefix+"filter_term_"+f]=cur_filter[2]}}if(args_obj.api_data.paginate){if(api_version===2){api_call.api2_paginate=1}if("start"in args_obj.api_data.paginate){api_call[api_prefix+"paginate_start"]=args_obj.api_data.paginate.start+1}if("size"in args_obj.api_data.paginate){api_call[api_prefix+"paginate_size"]=args_obj.api_data.paginate.size}}if(args_obj.api_data.columns){var columns_count=args_obj.api_data.columns.length;if(columns_count&&api_version===2){api_call.api2_columns=1}for(var col=0;col<columns_count;col++){api_call[api_prefix+"columns_"+col]=args_obj.api_data.columns[col]}}if(args_obj.api_data.analytics){api_call[api_prefix+"analytics"]=JSON.stringify(args_obj.api_data.analytics)}}}else if(api_version===1){api_call.cpanel_jsonapi_apiversion=1;api_call.cpanel_jsonapi_module=args_obj.module;api_call.cpanel_jsonapi_func=args_obj.func;if(args_obj.data){for(var d=0;d<args_obj.data.length;d++){api_call["arg-"+d]=args_obj.data[d]}}}return api_call};var _unknown_error_msg=function(){return LOCALE.maketext("An unknown error occurred.")};var _get_whm1_data=function(resp){var metadata=resp.metadata;var data_for_caller=resp.data;if(!metadata||!metadata.payload_is_literal||metadata.payload_is_literal==="0"){data_for_caller=reduce_whm1_list_data(data_for_caller)}if(metadata&&metadata.command==="batch"){return data_for_caller.map(parse_whm1_response)}return data_for_caller};var reduce_whm1_list_data=function(data){if(data&&typeof data==="object"&&!(data instanceof Array)){var keys=Object.keys(data);if(keys.length===1){var maybe_data=data[keys[0]];if(maybe_data&&maybe_data instanceof Array){data=maybe_data}}}return data};var _get_cpanel1_data=function(resp){try{return resp.data.result}catch(e){return}};var _get_cpanel2_data=function(resp){return resp.cpanelresult.data};var _get_uapi_data=function(resp){return resp.data};var find_cpanel1_status=function(resp){try{return!!Number(resp.event.result)}catch(e){return false}};var find_cpanel2_status=function(resp){try{return!resp.cpanelresult.error}catch(e){return false}};var find_whm1_status=function(resp){try{return resp.metadata.result==1}catch(e){}return false};var find_uapi_status=function(resp){try{return resp.status==1}catch(e){}return false};var _message_label_conversion=[{server:"warnings",client:"warn"},{server:"messages",client:"info"}];var _normalize_whm1_messages=function(resp){var messages=[];var output=resp.metadata.output;if(output){_message_label_conversion.forEach(function(xform){var current_msgs=output[xform.server];if(current_msgs){if(typeof current_msgs==="string"){current_msgs=current_msgs.split(/\n/)}if(typeof current_msgs==="object"&&current_msgs instanceof Array){current_msgs.forEach(function(m){messages.push({level:xform.client,content:String(m)})})}else{throw xform.server+" is a "+typeof current_msgs}}})}return messages};var find_whm1_messages=function(resp){if(!resp||!resp.metadata){return[{level:"error",content:_unknown_error_msg()}]}var msgs=_normalize_whm1_messages(resp);if(String(resp.metadata.result)!=="1"){msgs.unshift({level:"error",content:resp.metadata.reason||_unknown_error_msg()})}return msgs};var find_cpanel1_messages=function(resp){if(!resp){return[{level:"error",content:_unknown_error_msg()}]}if("error"in resp){var err=resp.error;return[{level:"error",content:err||_unknown_error_msg()}]}return[]};var find_cpanel2_messages=function(resp){if(!resp||!resp.cpanelresult){return[{level:"error",content:_unknown_error_msg()}]}if("error"in resp.cpanelresult){var err=resp.cpanelresult.error;return[{level:"error",content:err||_unknown_error_msg()}]}return[]};var find_uapi_messages=function(resp){var messages=[];if(!resp||typeof resp!=="object"){messages.push({level:"error",content:_unknown_error_msg()})}else{if(resp.errors){resp.errors.forEach(function(m){messages.push({level:"error",content:String(m)})})}if(resp.messages){resp.messages.forEach(function(m){messages.push({level:"info",content:String(m)})})}}return messages};var _parse_response=function(status_finder,message_finder,data_getter,resp){var data=null,resp_status=false,err=null,messages=null;if(typeof resp==="string"){try{resp=YAHOO.lang.JSON.parse(resp)}catch(e){try{window.console.warn(resp,e)}catch(ee){}err=LOCALE.maketext("The API response could not be parsed.");resp=null}}if(!err){try{data=data_getter(resp);if(data===undefined){data=null}}catch(e){}messages=message_finder(resp);resp_status=status_finder(resp);var errors=messages.filter(function(m){return m.level==="error"});if(errors&&errors.length){err=errors[0].content}}return{cpanel_status:resp_status,cpanel_raw:resp,cpanel_data:data,cpanel_error:err,cpanel_messages:messages}};var parse_uapi_response=function(resp){return _parse_response(find_uapi_status,find_uapi_messages,_get_uapi_data,resp)};var parse_cpanel1_response=function(resp){return _parse_response(find_cpanel1_status,find_cpanel1_messages,_get_cpanel1_data,resp)};var parse_cpanel2_response=function(resp){return _parse_response(find_cpanel2_status,find_cpanel2_messages,_get_cpanel2_data,resp)};var parse_whm1_response=function(resp){return _parse_response(find_whm1_status,find_whm1_messages,_get_whm1_data,resp)};var _cpanel_parsers={1:parse_cpanel1_response,2:parse_cpanel2_response,3:parse_uapi_response};var _whm_parsers={1:parse_whm1_response};YAHOO.lang.augmentObject(api,{find_cpanel2_status:find_cpanel2_status,find_cpanel2_messages:find_cpanel2_messages,find_whm1_status:find_whm1_status,find_whm1_messages:find_whm1_messages,find_uapi_status:find_uapi_status,find_uapi_messages:find_uapi_messages,reduce_whm1_list_data:reduce_whm1_list_data,parse_whm1_response:parse_whm1_response,parse_cpanel1_response:parse_cpanel1_response,parse_cpanel2_response:parse_cpanel2_response,parse_uapi_response:parse_uapi_response,construct_query:construct_api_query,construct_url_path:construct_url_path,get_transaction_args:get_transaction_args,find_api_version:find_api_version});CPANEL.api=api})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including color.js!")}else{(function(){var _hue_2_rgb=function(v1,v2,vH){if(vH<0){vH+=1}if(vH>1){vH-=1}if(6*vH<1){return v1+(v2-v1)*6*vH}if(2*vH<1){return v2}if(3*vH<2){return v1+(v2-v1)*(2/3-vH)*6}return v1};CPANEL.color={hsl2rgb:function(h,s,l){var r,g,b,var_1,var_2;if(s==0){r=l*255;g=l*255;b=l*255}else{if(l<.5){var_2=l*(1+s)}else{var_2=l+s-s*l}var_1=2*l-var_2;r=255*_hue_2_rgb(var_1,var_2,h+1/3);g=255*_hue_2_rgb(var_1,var_2,h);b=255*_hue_2_rgb(var_1,var_2,h-1/3)}return[r,g,b]}}})()}(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=window.DOM;var EVENT=window.EVENT;var document=window.document;var CPANEL=window.CPANEL;CPANEL.namespace("dom");var _ARROW_KEY_CODES={37:1,38:1,39:1,40:1};var _do_blur_then_focus=function(){this.blur();this.focus()};var dummy_div;YAHOO.lang.augmentObject(CPANEL.dom,{has_oninput:parseInt(YAHOO.env.ua.ie,10)!==9&&"oninput"in document.createElement("input"),get_content_region:function(el){el=DOM.get(el);var padding_top=parseFloat(DOM.getStyle(el,"paddingTop"))||0;var padding_bottom=parseFloat(DOM.getStyle(el,"paddingBottom"))||0;var padding_left=parseFloat(DOM.getStyle(el,"paddingLeft"))||0;var padding_right=parseFloat(DOM.getStyle(el,"paddingRight"))||0;var border_left=parseFloat(DOM.getStyle(el,"borderLeftWidth"))||0;var border_top=parseFloat(DOM.getStyle(el,"borderTopWidth"))||0;var xy=DOM.getXY(el);var top=xy[1]+border_top+padding_top;var left=xy[0]+border_left+padding_left;var bottom=top+el.clientHeight-padding_top-padding_bottom;var right=left+el.clientWidth-padding_left-padding_right;var region=new YAHOO.util.Region(top,right,bottom,left);region.outer_xy=xy;region.padding={top:padding_top,right:padding_right,bottom:padding_bottom,left:padding_left};region.border={top:border_top,left:border_left};return region},get_content_height:function(el){el=DOM.get(el);var dom=parseFloat(DOM.getStyle(el,"height"));if(!isNaN(dom)){return dom}var padding_top=parseFloat(DOM.getStyle(el,"paddingTop"))||0;var padding_bottom=parseFloat(DOM.getStyle(el,"paddingBottom"))||0;var client_height=el.clientHeight;if(client_height){return client_height-padding_top-padding_bottom}var border_top=parseFloat(DOM.getStyle(el,"borderTopWidth"))||0;var border_bottom=parseFloat(DOM.getStyle(el,"borderBottomWidth"))||0;
return el.offsetHeight-padding_top-padding_bottom-border_top-border_bottom},get_content_width:function(el){el=DOM.get(el);var dom=parseFloat(DOM.getStyle(el,"width"));if(!isNaN(dom)){return dom}var padding_left=parseFloat(DOM.getStyle(el,"paddingLeft"))||0;var padding_right=parseFloat(DOM.getStyle(el,"paddingRight"))||0;var client_width=el.clientWidth;if(client_width){return client_width-padding_left-padding_right}var border_left=parseFloat(DOM.getStyle(el,"borderLeftWidth"))||0;var border_right=parseFloat(DOM.getStyle(el,"borderRightWidth"))||0;return el.offsetWidth-padding_left-padding_right-border_left-border_right},get_viewport_region:function(){var vp_width=DOM.getViewportWidth();var vp_height=DOM.getViewportHeight();var scroll_x=DOM.getDocumentScrollLeft();var scroll_y=DOM.getDocumentScrollTop();return new YAHOO.util.Region(scroll_y,scroll_x+vp_width,scroll_y+vp_height,scroll_x)},toggle_class:function(el,the_class){el=DOM.get(el);var pattern=new RegExp("\\b"+the_class.regexp_encode()+"\\b");if(el.className.search(pattern)===-1){DOM.addClass(el,the_class);return the_class}else{DOM.removeClass(el,the_class)}},create_from_markup:function(markup){if(!dummy_div){dummy_div=document.createElement("div")}dummy_div.innerHTML=markup;return CPANEL.Y(dummy_div).all("> *")},normalize_select_arrows:function(el){EVENT.on(el,"keydown",function(e){if(e.keyCode in _ARROW_KEY_CODES){window.setTimeout(_do_blur_then_focus.bind(this),1)}})},set_form_el_value:function(form,el,val){if(arguments.length===2){val=el;el=form;form=null}if(typeof el==="string"){var element=null;if(form){form=DOM.get(form);if(form){element=form[el]}}if(!element){element=DOM.get(el)}el=element}var opts=el.options;if(opts){for(var o=opts.length-1;o>=0;o--){if(opts[o].value===val){el.selectedIndex=o;return true}}}else if("length"in el){for(var e=el.length-1;e>=0;e--){if(el[e].value===val){el[e].checked=true;return true}}}else if("value"in el){el.value=val;return true}return false},show:function(el,display_type){display_type=display_type||"";DOM.setStyle(el,"display",display_type)},hide:function(el){DOM.setStyle(el,"display","none")},isVisible:function(el){return DOM.getStyle(el,"display")!=="none"},isHidden:function(el){return DOM.getStyle(el,"display")==="none"},isRtl:function(el){if(!el){if(document){return document.documentElement.dir==="rtl"}}else{el=DOM.get(el);if(el){return el.dir==="rtl"}}return false}});CPANEL.dom.get_inner_region=CPANEL.dom.get_content_region})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including dragdrop.js!")}else{(function(){var DDM=YAHOO.util.DragDropMgr;var ddtarget_prototype=YAHOO.util.DDTarget.prototype;var get=DOM.get;var get_next_sibling=DOM.getNextSibling;var get_xy=DOM.getXY;var set_xy=DOM.setXY;var get_style=DOM.getStyle;var get_content_height=CPANEL.dom.get_content_height;var ease_out=YAHOO.util.Easing.easeOut;var DDItem=function(id,sGroup,config){DDItem.superclass.constructor.apply(this,arguments);if(!config){return}if("drag_region"in config){var region=config.drag_region;var el=this.getEl();var xy=get_xy(el);if(region.width){var width=el.offsetWidth;var el_left=xy[0];var left=el_left-region.left;var right=region.right-el_left-width;this.setXConstraint(left,right)}if(region.height){var height=el.offsetHeight;var el_top=xy[1];var top=el_top-region.top;var bottom=region.bottom-el_top-height;this.setYConstraint(top,bottom)}}if("placeholder"in config){var new_placeholder=get(config.placeholder);if(!new_placeholder&&typeof config.placeholder==="string"){new_placeholder=document.createElement("div");new_placeholder.id=config.placeholder}var _placeholder_style=new_placeholder.style;this._placeholder=new_placeholder;this._placeholder_style=_placeholder_style;_placeholder_style.position="absolute";_placeholder_style.visibility="hidden";document.body.appendChild(new_placeholder);this.constructor.prototype._placeholder_hidden=true}if("animation"in config){this._animation=config.animation}if(this._animation){if("animation_proxy_class"in config){this._animation_proxy_class=config.animation_proxy_class}}};YAHOO.extend(DDItem,YAHOO.util.DDProxy,{_going_up:null,_last_y:null,_animation:true,_animation_proxy_class:"_cp_animation_proxy",_sync_placeholder:function(){var placeholder=this._placeholder;var srcEl=this.getEl();if(!this._placeholder_hidden&&this._animation){var motion=new YAHOO.util.Motion(placeholder,{points:{to:get_xy(srcEl)}},.2);motion.animate()}else{set_xy(placeholder,get_xy(srcEl));this._placeholder_initialized=true}if(this._placeholder_hidden){var _style=this._placeholder_style;copy_size(srcEl,placeholder,_style);_style.visibility="";this._placeholder_hidden=false}},createFrame:function(){var proxy=this.getDragEl();if(!proxy){proxy=document.createElement("div");proxy.id=this.dragElId;proxy.style.position="absolute";proxy.style.zIndex="999";document.body.insertBefore(proxy,document.body.firstChild)}},startDrag:function(x,y){var dragEl=this.getDragEl();var clickEl=this.getEl();dragEl.innerHTML=clickEl.innerHTML;clickEl.style.visibility="hidden";if("_placeholder"in this){this._sync_placeholder()}},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();var proxy_style=proxy.style;proxy_style.visibility="";var a=new YAHOO.util.Motion(proxy,{points:{to:get_xy(srcEl)}},.2,ease_out);var that=this;a.onComplete.subscribe(function(){proxy_style.visibility="hidden";srcEl.style.visibility="";if("_placeholder"in that){that._placeholder_style.visibility="hidden";that._placeholder_hidden=true}});a.animate()},onDrag:function(e){var y=EVENT.getPageY(e);var last_y=this._last_y;if(y<last_y){this._going_up=true}else if(y>last_y){this._going_up=false}else{this._going_up=null}this._last_y=y},onDragEnter:function(e,id){if(this.parent_id===null){var srcEl=this.getEl();var destEl=get(id);this.parent_id=id;if(this.last_parent!==id){destEl.appendChild(srcEl)}if("placeholder"in this){this._sync_placeholder()}}},onDragOut:function(e,id){if(this.getEl().parentNode===get(id)){this.last_parent=id;this.parent_id=null}},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=get(id);var going_up=this._going_up;if(going_up===null){return}var is_container=ddtarget_prototype.isPrototypeOf(DDM.getDDById(id));if(is_container){return}var parent_el=destEl.parentNode;var next_after_dest=get_next_sibling(destEl);var dest_then_src=next_after_dest===srcEl;if(!going_up&&dest_then_src){return}if(this._animation){var src_then_dest=get_next_sibling(srcEl)===destEl;if(going_up&&src_then_dest){return}if(src_then_dest||dest_then_src){dp_parent=document.body;var dest_proxy=document.createElement("div");dest_proxy.className=this._animation_proxy_class;var dp_style=dest_proxy.style;dp_style.position="absolute";dp_style.display="none";dest_proxy.innerHTML=destEl.innerHTML;copy_size(destEl,dest_proxy,dp_style);dp_parent.appendChild(dest_proxy);var dest_proxy_motion_destination=get_xy(srcEl);var height_difference=get_content_height(dest_proxy)-get_content_height(srcEl);if(going_up){dest_proxy_motion_destination[1]-=height_difference}var attrs={points:{from:get_xy(destEl),to:dest_proxy_motion_destination}};var anim=new YAHOO.util.Motion(dest_proxy,attrs,.25);var de_style=destEl.style;anim.onComplete.subscribe(function(){de_style.visibility="";dp_parent.removeChild(dest_proxy)});dp_style.display="";de_style.visibility="hidden";anim.animate()}}if(going_up){parent_el.insertBefore(srcEl,destEl)}else{parent_el.insertBefore(srcEl,next_after_dest)}if("_placeholder"in this){this._sync_placeholder()}DDM.refreshCache()}});var copy_size=function(src,dest,dest_style){var br=parseFloat(get_style(dest,"border-right-width"))||0;var bl=parseFloat(get_style(dest,"border-left-width"))||0;var newWidth=Math.max(0,src.offsetWidth-br-bl);var bt=parseFloat(get_style(dest,"border-top-width"))||0;var bb=parseFloat(get_style(dest,"border-bottom-width"))||0;var newHeight=Math.max(0,src.offsetHeight-bt-bb);dest_style.width=newWidth+"px";dest_style.height=newHeight+"px"};CPANEL.dragdrop={containers:function(containers,group,config){if(!(containers instanceof Array)){containers=[containers]}var container_objects=[];var drag_item_objects=[];var item_constructor=config&&config.item_constructor||DDItem;var containers_length=containers.length;for(var c=0;c<containers_length;c++){var cur_container=get(containers[c]);container_objects.push(new YAHOO.util.DDTarget(cur_container,group,config));var cur_contents=cur_container.children;var cur_contents_length=cur_contents.length;for(var i=0;i<cur_contents_length;i++){drag_item_objects.push(new item_constructor(cur_contents[i],group,config))}}return{containers:container_objects,items:drag_item_objects}},DDItem:DDItem}})()}(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=YAHOO.util.Dom;var EVENT=window.EVENT;var L=YAHOO.lang;if(YAHOO.lang.substitute("{a} {b}",{a:"1",b:"{"})!=="1 {"){YAHOO.lang.substitute=function(s,o,f){var i,j,k,key,v,meta,saved=[],token,DUMP="dump",SPACE=" ",LBRACE="{",RBRACE="}",dump,objstr;for(;;){i=i?s.lastIndexOf(LBRACE,i-1):s.lastIndexOf(LBRACE);if(i<0){break}j=s.indexOf(RBRACE,i);if(i+1>j){break}token=s.substring(i+1,j);key=token;meta=null;k=key.indexOf(SPACE);if(k>-1){meta=key.substring(k+1);key=key.substring(0,k)}v=f?f(key,v,meta):o[key];if(L.isObject(v)){if(L.isArray(v)){v=L.dump(v,parseInt(meta,10))}else{meta=meta||"";dump=meta.indexOf(DUMP);if(dump>-1){meta=meta.substring(4)}objstr=v.toString();if(objstr===OBJECT_TOSTRING||dump>-1){v=L.dump(v,parseInt(meta,10))}else{v=objstr}}}else if(!L.isString(v)&&!L.isNumber(v)){continue}s=s.substring(0,i)+v+s.substring(j+1)}return s}}if(YAHOO.widget.Panel){var panel_proto=YAHOO.widget.Panel.prototype;if(!panel_proto.focusFirst._2529256_fixed){["Panel","Dialog"].forEach(function(module){var _focus_first=YAHOO.widget[module].prototype.focusFirst;YAHOO.widget[module].prototype.focusFirst=function(){var focused_el=_focus_first.apply(this,arguments)&&document.activeElement;if(focused_el&&(""+focused_el.type).toLowerCase()==="radio"&&!focused_el.checked){var els=this.focusableElements;var i=els&&els.indexOf(focused_el);if(i!==-1){i++;var cur_el=els[i];while(cur_el){if(!cur_el.disabled&&((""+cur_el.type).toLowerCase()!=="radio"||cur_el.checked)){break}i++;cur_el=els[i]}if(cur_el&&cur_el.focus){cur_el.focus();focused_el=cur_el}}}return!!focused_el};YAHOO.widget[module].prototype.focusFirst._2529256_fixed=true})}var _set_first_last_focusable=panel_proto.setFirstLastFocusable;var catcher_html="<input style='position:absolute;top:1px;outline:0;margin:0;border:0;padding:0;height:1px;width:1px;z-index:-1' />";var _catcher_div=document.createElement("div");_catcher_div.innerHTML=catcher_html;var catcher_prototype=_catcher_div.firstChild;DOM.setStyle(catcher_prototype,"opacity",0);panel_proto.setFirstLastFocusable=function(){_set_first_last_focusable.apply(this,arguments);if(this.firstElement&&!this._first_focusable_catcher){var first_catcher=catcher_prototype.cloneNode(false);YAHOO.util.Event.on(first_catcher,"focus",function(){first_catcher.blur();this.focusLast()},this,true);this.innerElement.insertBefore(first_catcher,this.innerElement.firstChild);this._first_focusable_catcher=first_catcher;var last_catcher=catcher_prototype.cloneNode(false);YAHOO.util.Event.on(last_catcher,"focus",function(){last_catcher.blur();this.focusFirst()},this,true);this.innerElement.appendChild(last_catcher);this._last_focusable_catcher=last_catcher}};var _get_focusable_elements=panel_proto.getFocusableElements;panel_proto.getFocusableElements=function(){var els=_get_focusable_elements.apply(this,arguments);var len=els.length;for(var i=0;i<len;i++){if(DOM.getStyle(els[i],"display")==="none"){els.splice(i,1);i--}}if(els.length){if(this._first_focusable_catcher){els.shift()}if(this._last_focusable_catcher){els.pop()}}return els};if(document.documentElement.dir==="rtl"){var rtl_createHidden=panel_proto._createHiddenFocusElement;panel_proto._createHiddenFocusElement=function(){if(typeof this.innerElement.focus!=="function"){rtl_createHidden.apply(this,arguments);this._modalFocus.style.right=this._modalFocus.style.left;this._modalFocus.style.left=""}}}}if(document.documentElement.dir==="rtl"){EVENT.onDOMReady(function(){if("AutoComplete"in YAHOO.widget){var _do_before_expand=YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer;YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(){var xpos=DOM.getX(this._elTextbox);var containerwidth=this._elContainer.offsetWidth;if(containerwidth){xpos-=containerwidth-DOM.get(this._elTextbox).offsetWidth;DOM.setX(this._elContainer,xpos)}return _do_before_expand.apply(this,arguments)}}})}if(YAHOO.widget&&YAHOO.widget.Overlay){var ovl_destroy=YAHOO.widget.Overlay.prototype.destroy;YAHOO.widget.Overlay.prototype.destroy=function destroy(){var effects=this._cachedEffects;if(effects&&effects.length){for(var e=0;e<effects.length;e++){effects[e]._stopAnims(true)}}return ovl_destroy.apply(this,arguments)}}})(window);(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory)}else if(typeof exports==="object"){module.exports=factory()}else{if(root.CPANEL){root.CPANEL.inet6=factory()}else{root.inet6=factory()}}})(this,function(){"use strict";var inet={};var ipv4Regex=/^\d{1,3}(?:\.\d{1,3}){3}$/;var ipv6PartRegex=/^[0-9a-f]{1,4}$/i;inet.Address=function(address){if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}var parts=address.split(".");if(parts.length>4){throw"Invalid IPv4 address: Too many components"}if(parts.length<4){throw"Invalid IPv4 address: Too few components"}for(var i=0,len=parts.length;i<len;i++){var part=parts[i];if(part>255||part<0){throw"Invalid IPv4 address: Invalid component"}this.push(part)}};inet.Address.prototype=[];inet.Address.prototype.toString=function(){return this.join(".")};var inet6={};inet6.Address=function(address){var self=this;function pad(count){for(var i=0;i<count;i++){self.push(0)}}if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}var parts=address.split(":");var expected=8;var minimum=3;var count=parts.length;var length=parts.length;var padded=false;var i,part,value,first,last;var hasv4Address=false;if(length<minimum){throw"Invalid IPv6 address: Too few components"}if(length>3&&parts[0]===""&&parts[1]===""&&parts[length-1]===""&&parts[length-2]===""){throw"Invalid IPv6 address: Too many colons"}if(parts[0]===""&&parts[1]!==""){throw"Invalid IPv6 address: Missing beginning component"}if(parts[length-1]===""&&parts[length-2]!==""){throw"Invalid IPv6 address: Missing end component"}if(parts[0]===""&&parts[1]===""){parts.shift();length=parts.length;count=parts.length}if(parts[parts.length-1]===""&&parts[parts.length-2]===""){parts.pop();length=parts.length;count=parts.length}if(length===1&&parts[0]===""){pad(8);return}var emptyMiddle=0;for(i=0;i<length;i++){part=parts[i].trim();if(ipv4Regex.test(part)){count++}}for(i=0;i<length;i++){part=parts[i].trim();value=null;first=i===0?true:false;last=i===length-1?true:false;if(ipv4Regex.test(part)){if(i!==length-1){throw"Invalid IPv6 address: Embedded IPv4 address not at end"}for(var n=4;n<expected-count;n++){this.shift()}var inet4address=new inet.Address(part);this.push(inet4address[0]<<8|inet4address[1]);value=inet4address[2]<<8|inet4address[3];hasv4Address=true}else if(ipv6PartRegex.test(part)){value=parseInt(part,16)}else if(part===""){emptyMiddle++;if(!padded){pad(expected-count);padded=true}value=0}else{throw"Invalid IPv6 address: Invalid component "+part}this.push(value)}if(emptyMiddle>1){throw"Invalid IPv6 address: Too many colons"}if(this.length<expected){throw"Invalid IPv6 address: Too few components"}if(this.length>expected){throw"Invalid IPv6 address: Too many components"}if(hasv4Address){for(i=0;i<5;i++){if(this[i]!==0){throw"Invalid IPv4 compatible address"}}if(this[5]!==65535){throw"Invalid IPv6 compatible address"}}};inet6.Address.prototype=[];inet6.Address.prototype.toString_v4Compat=function(){var parts=[];parts.push((this[6]&65280)>>8);parts.push(this[6]&255);parts.push((this[7]&65280)>>8);parts.push(this[7]&255);return"::ffff:"+parts.join(".")};inet6.Address.prototype.isv4Compat=function(){for(var i=0;i<5;i++){if(this[i]!==0){return 0}}return this[5]===65535?true:false};inet6.Address.prototype.toString=function(){var ranges=[];var count=this.length;var last=null;var longest=null;var range=null;if(this.isv4Compat()){return this.toString_v4Compat()}for(var i=0;i<count;i++){var value=this[i];if(value!==0||value===0&&last!==0){ranges.push({value:value,first:i,last:i,longest:false})}range=ranges[ranges.length-1];range.last=i;if(longest===null){longest=range}var currentSize=range.last-range.first;var longestSize=longest.last-longest.first;if(value===0&&currentSize>longestSize){longest=range}last=value}var ret=[];var len=ranges.length;for(i=0;i<len;i++){range=ranges[i];if(range.value===0&&range===longest){if(i===0){ret.push("")}ret.push("");if(i===len-1){ret.push("")}}else{for(var n=range.first;n<=range.last;n++){ret.push(range.value.toString(16))}}}return ret.join(":")};inet6.isValid=function(address){try{this.parse(address);return true}catch(e){return false}};inet6.parse=function(address){if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}return new this.Address(address)};inet6.formatForDisplay=function(address){var ret;try{var inet6=new this.Address(address);ret=inet6.toString()}catch(e){ret=address}return ret};return inet6});(function(){if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including keyboard.js!")}else{var _is_old_ie=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9;CPANEL.keyboard={NUMERIC:/[0-9]/,LOWER_CASE_ALPHA:/[a-z]/,UPPER_CASE_ALPHA:/[A-Z]/,ALPHA:/[a-zA-Z]/,ALPHA_NUMERIC:/[a-zA-Z0-9]/,_onKeyPressAcceptValues:function(e,charReg){if(!charReg){return true}if(!_is_old_ie&&!e.charCode){return true}var charCode=EVENT.getCharCode(e);var keyChar=String.fromCharCode(charCode);return charReg.test(keyChar)},isReturnKey:function(e){return EVENT.getCharCode(e)==13},allowNumericKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.NUMERIC);if(!ok){EVENT.preventDefault(e)}return ok},allowLowerCaseAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.LOWER_CASE_ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowUpperCaseAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.UPPER_CASE_ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowAlphaNumericKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.ALPHA_NUMERIC);if(!ok){EVENT.preventDefault(e)}return ok},allowPatternKey:function(e,charReg){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,charReg);if(!ok){EVENT.preventDefault(e)}return ok}}}})();if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including json.js!")}else if(typeof YAHOO.lang.JSON=="undefined"||!YAHOO.lang.JSON){alert("You must include the YUI JSON library before including json.js!")}else{var NativeJson=Object.prototype.toString.call(this.JSON)==="[object JSON]"&&this.JSON;CPANEL.json={fastJsonParse:function(s,reviver){return NativeJson?NativeJson.parse(s,reviver):YAHOO.lang.JSON.parse(s,reviver)}}}CPANEL.nvdata={page_key:location.pathname.replace(new RegExp("^"+CPANEL.security_token),"").replace(/\//g,"_"),register:function(key,getter,args,override){if(!getter){delete CPANEL.nvdata._getters[key]}else if(!args){CPANEL.nvdata._getters[key]=getter}else if(!override){CPANEL.nvdata._getters[key]=getter.bind(window,args)}else{CPANEL.nvdata._getters[key]=getter.bind(args)}},_getters:{},get_page_nvdata:function(){var page_nvdata={};for(var key in CPANEL.nvdata._getters){page_nvdata[key]=CPANEL.nvdata._getters[key]()}return page_nvdata},save:function(key,value){if(!CPANEL.api){throw"Load api.js."}if(!key){key=key||CPANEL.nvdata.page_key;value=YAHOO.lang.JSON.stringify(CPANEL.nvdata.get_page_nvdata())}else if(typeof key==="object"){value=YAHOO.lang.JSON.stringify(key);key=CPANEL.nvdata.page_key}else if(!value){value=YAHOO.lang.JSON.stringify(CPANEL.nvdata.get_page_nvdata())}if(/^wh/i.test(CPANEL.application)){return CPANEL.api({func:"nvset",data:{key1:key,value1:value}})}else{var data={names:key};data[key]=value;return CPANEL.api({module:"NVData",func:"set",data:data})}},set:function(key,value){var api2_call={cpanel_jsonapi_version:2,cpanel_jsonapi_module:"NVData",cpanel_jsonapi_func:"set",names:key};api2_call[key]=value;var callback={success:function(o){},failure:function(o){}};YAHOO.util.Connect.asyncRequest("GET",CPANEL.urls.json_api(api2_call),callback,"")}};if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including panels.js!")}else{CPANEL.panels={help_panels:{},create_help:function(panel_el,help_el){panel_el=YAHOO.util.Dom.get(panel_el);help_el=YAHOO.util.Dom.get(help_el);if(this.help_panels[panel_el.id]){this.help_panels[panel_el.id].destroy()}var panel_id=panel_el.id+"_yuipanel";var panel_options={width:"300px",visible:false,draggable:false,close:false,context:[panel_el.id,"tl","br",["beforeShow","windowResize",CPANEL.align_panels_event]],effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.25}};this.help_panels[panel_el.id]=new YAHOO.widget.Panel(panel_id,panel_options);this.help_panels[panel_el.id].setBody(help_el.innerHTML);var close_div_id=panel_el.id+"_yuipanel_close_div";var close_link_id=panel_el.id+"_yuipanel_close_link";var footer='<div style="text-align: right">';footer+='<a id="'+close_link_id+'" href="javascript:void(0);">'+LOCALE.maketext("Close")+"</a>";footer+="</div>";this.help_panels[panel_el.id].setFooter(footer);this.help_panels[panel_el.id].render(document.body);this.help_panels[panel_el.id].showEvent.subscribe(function(){YAHOO.util.Dom.get(close_link_id).focus()});YAHOO.util.Dom.addClass(panel_id,"help_panel");YAHOO.util.Event.on(close_link_id,"click",function(){CPANEL.panels.toggle_help(panel_el.id)});YAHOO.util.Event.on(panel_el.id,"click",function(){CPANEL.panels.toggle_help(panel_el.id)})},toggle_help:function(el){if(this.help_panels[el].cfg.getProperty("visible")===true){this.help_panels[el].hide()}else{this.hide_all_help();this.help_panels[el].show()}},show_help:function(el){this.help_panels[el].show()},hide_help:function(el){this.help_panels[el].hide()},hide_all_help:function(){for(var i in this.help_panels){this.help_panels[i].hide()}}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including password.js!")}else{if(!window.LOCALE){window.LOCALE=new CPANEL.Locale}CPANEL.password={setup:function(password1_el,password2_el,strength_bar_el,password_strength,create_strong_el,why_strong_link_el,why_strong_text_el,min_length){if(YAHOO.util.Dom.inDocument(password1_el)==false){alert("CPANEL.password.setup error: password1_el argument does not exist in the DOM!")}if(YAHOO.util.Dom.inDocument(password2_el)==false){alert("CPANEL.password.setup error: password2_el argument does not exist in the DOM!")}if(YAHOO.util.Dom.inDocument(strength_bar_el)==false){alert("CPANEL.password.setup error: strength_bar_el argument does not exist in the DOM!")}if(CPANEL.validate.positive_integer(password_strength)==false&&password_strength!=-1){alert("CPANEL.password.setup error: password strength is not a positive integer!")}if(typeof min_length=="undefined"||CPANEL.validate.integer(min_length)==false){min_length=5}var password_bar=new CPANEL.password.strength_bar(strength_bar_el);var verify_password_strength=function(){if(password_bar.current_strength>=password_strength){return true}return false};password_bar.attach(password1_el,function(){strength_validator.verify()});var strength_validator=new CPANEL.validate.validator(LOCALE.maketext("Password Strength"));if(password_strength!=-1){strength_validator.add(password1_el,"min_length(%input%, 1)",LOCALE.maketext("Password cannot be empty."))}if(min_length>0){strength_validator.add(password1_el,"min_length(%input%,"+min_length+")",LOCALE.maketext("Passwords must be at least [quant,_1,character,characters] long.",min_length))}if(password_strength>0){strength_validator.add(password1_el,verify_password_strength,LOCALE.maketext("Password strength must be at least [numf,_1].",password_strength))}strength_validator.attach();var matching_validator=new CPANEL.validate.validator(LOCALE.maketext("Passwords Match"));matching_validator.add(password2_el,"equals('"+password1_el+"', '"+password2_el+"')",LOCALE.maketext("Passwords do not match."));matching_validator.attach();if(YAHOO.util.Dom.inDocument(create_strong_el)==true){var fill_in_strong_password=function(strong_pass){YAHOO.util.Dom.get(password1_el).value=strong_pass;YAHOO.util.Dom.get(password2_el).value=strong_pass;matching_validator.verify();password_bar.check_strength(password1_el,function(){strength_validator.verify()})};YAHOO.util.Event.on(create_strong_el,"click",function(){CPANEL.password.generate_password(fill_in_strong_password)})}if(YAHOO.util.Dom.inDocument(why_strong_link_el)==true&&YAHOO.util.Dom.inDocument(why_strong_text_el)==true){CPANEL.panels.create_help(why_strong_link_el,why_strong_text_el)}return[strength_validator,matching_validator]},strength_bar:function(el){this.ajax_request;if(YAHOO.util.Dom.inDocument(el)==false){alert("Failed to initialize password strength bar."+"\n"+"Could not find "+el+" in the DOM.")}this.strength_bar_el=YAHOO.util.Dom.get(el);this.current_strength=0;CPANEL.password.show_strength_bar(this.strength_bar_el,0);this.attach=function(input_el,callback_function){if(YAHOO.util.Dom.inDocument(input_el)==false){alert("Failed to attach strength bar object.\n Could not find "+input_el+"in the DOM.")}else{if(typeof callback_function==="undefined"){callback_function=function(){}}var callback_args={input_el:input_el,func:callback_function};if(CPANEL.dom.has_oninput){EVENT.on(input_el,"input",oninput_listener,callback_args)}else{EVENT.on(input_el,"keyup",oninput_listener,callback_args);EVENT.on(input_el,"change",oninput_listener,callback_args);EVENT.on(input_el,"paste",function(){var that=this,args=arguments;setTimeout(function(){oninput_listener.apply(that,args)},5)},callback_args)}}};this.destroy=function(){this.strength_bar_el.innerHTML="";this.current_strength=0};this.check_strength=function(input_el,callback_function){_check_strength(null,{input_el:input_el,func:callback_function})};var that=this;var pw_strength_timeout;var oninput_listener=function(e,o){clearTimeout(pw_strength_timeout);if(YAHOO.util.Connect.isCallInProgress(that.ajax_request)){YAHOO.util.Connect.abort(that.ajax_request)}var password=DOM.get(o.input_el).value;if(password in cached_strengths){that.current_strength=cached_strengths[password];_update_strength_bar(cached_strengths[password]);o.func()}else{pw_strength_timeout=setTimeout(function(){_check_strength(e,o)},CPANEL.password.keyup_delay_ms)}};var cached_strengths={"":0};var _check_strength=function(e,o){_update_strength_bar(null);var password=YAHOO.util.Dom.get(o.input_el).value;var callback={success:function(o2){try{var response=YAHOO.lang.JSON.parse(o2.responseText)}catch(e){alert("JSON Parse Error: Please refresh the page and try again.");return}var strength=parseInt(response.strength);if(strength<0){strength=0}else if(strength>100){strength=100}cached_strengths[password]=strength;that.current_strength=strength;_update_strength_bar(strength);o.func()},failure:function(o2){var error='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px"><tr>';error+='<td style="padding: 0px; margin: 0px; text-align: center" valign="middle">AJAX Error: Try Again</td>';error+="</tr></table>";YAHOO.util.Dom.get(that.strength_bar_el).innerHTML=error}};if(YAHOO.util.Connect.isCallInProgress(that.ajax_request)){YAHOO.util.Connect.abort(that.ajax_request)}var url=CPANEL.urls.password_strength();that.ajax_request=YAHOO.util.Connect.asyncRequest("POST",url,callback,"password="+encodeURIComponent(password))};var _update_strength_bar=function(strength){CPANEL.password.show_strength_bar(that.strength_bar_el,strength)}},show_strength_bar:function(el,strength){el=YAHOO.util.Dom.get(el);var phrase,color;if(strength===null){phrase=LOCALE.maketext("Loading …")}else if(strength>=80){phrase=LOCALE.maketext("Very Strong");color="#8FFF00"}else if(strength>=60){phrase=LOCALE.maketext("Strong");color="#C5FF00"}else if(strength>=40){phrase=LOCALE.maketext("OK");color="#F1FF4D"}else if(strength>=20){phrase=LOCALE.maketext("Weak");color="#FF9837"}else if(strength>=0){phrase=LOCALE.maketext("Very Weak");color="#FF0000"}var html;html='<div style="position: relative; width: 100%; height: 100%">';html+='<div style="position: absolute; left: 0px; width: 100%; height: 100%; text-align: center; z-index: 1; padding: 0px; margin: 0px'+(strength===null?"; font-style:italic; color:graytext":"")+'">';html+='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px"><tr style="padding: 0px; margin: 0px"><td valign="middle" style="padding: 0px; margin: 0px">'+phrase+(strength!==null?" ("+strength+"/100)":"")+"</td></tr></table>";html+="</div>";if(strength!==null){html+='<div style="position: absolute; left: 0px; width: '+strength+"%; height: 100%; background-color: "+color+';"></div>'}html+="</div>";el.innerHTML=html},keyup_delay_ms:500,create_password:function(options){var length;if(CPANEL.validate.positive_integer(options.length)===false){length=12}else{length=options.length}var uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var lowercase="abcdefghijklmnopqrstuvwxyz";var numbers="0123456789";var symbols="!@#$%^&*()-_=+{}[];,.?~";var chars="";if(options.uppercase==true){chars+=uppercase}if(options.lowercase==true){chars+=lowercase}if(options.numbers==true){chars+=numbers}if(options.symbols==true){chars+=symbols}var password="";for(var i=0;i<length;i++){var rnum=Math.floor(Math.random()*chars.length);password+=chars.substring(rnum,rnum+1)}return password},generate_password:function(use_password_function,length){var default_options={length:12,uppercase:true,lowercase:true,numbers:true,symbols:true};var password=this.create_password(default_options);if(YAHOO.util.Dom.inDocument("generate_password_panel")==true){var remove_me=YAHOO.util.Dom.get("generate_password_panel");YAHOO.util.Event.purgeElement(remove_me,true);remove_me.parentNode.removeChild(remove_me)}var panel_options={width:"380px",fixedcenter:true,close:true,draggable:false,zindex:1e3,visible:true,modal:true,postmethod:"manual",hideaftersubmit:false,strings:{close:LOCALE.maketext("Close")},buttons:[{text:LOCALE.maketext("Use Password"),handler:function(){this.submit()}},{text:LOCALE.maketext("Cancel"),handler:function(){this.cancel()}}],effect:{effect:CPANEL.animate.ContainerEffect.FADE_MODAL,duration:.25}};var panel=new YAHOO.widget.Dialog("generate_password_panel",panel_options);panel.renderEvent.subscribe(function(){var buttons=this.getButtons();YAHOO.util.Dom.addClass(buttons[0],"input-button disabled");YAHOO.util.Dom.addClass(buttons[1],"input-button")});var header='<div class="header"><div class="lt"></div>';header+="<span>"+LOCALE.maketext("Password Generator")+"</span>";header+='<div class="rt"></div></div>';panel.setHeader(header);var body='<div id="generate_password_body_div">';body+='<table id="generate_password_table">';body+="<tr>";body+='<td><input id="generate_password_input_field" type="text" value="'+password+'" size="27"  /></td>';body+="</tr>";body+="<tr>";body+='<td><input type="button" class="input-button btn btn-primary" value="'+LOCALE.maketext("Generate Password")+'" id="generate_password_reload" /></td>';body+="</tr>";body+="<tr>";body+='<td><span class="action_link" id="generate_password_toggle_advanced_options">'+LOCALE.maketext("Advanced Options")+" &raquo;</span>";
body+='<div id="generate_password_advanced_options" style="display: none"><table style="width: 100%">';body+="<tr>";body+='<td colspan="2">'+LOCALE.maketext("Length")+': <input type="text" id="generate_password_length" size="2" maxlength="2" value="12" /> (10-18)</td>';body+="</tr>";body+="<tr>";body+='<td width="50%">'+LOCALE.maketext("Alpha Characters")+":</td>";body+='<td width="50%">'+LOCALE.maketext("Non Alpha Characters")+":</td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_mixed_alpha" checked="checked" /> <label for="generate_password_mixed_alpha">'+LOCALE.maketext("Both")+" (aBcD)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_mixed_nonalpha" checked="checked" /> <label for="generate_password_mixed_nonalpha">'+LOCALE.maketext("Both")+" (1@3$)</label></td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_lowercase" /> <label for="generate_password_lowercase">'+LOCALE.maketext("Lowercase")+" (abc)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_numbers" /> <label for="generate_password_numbers">'+LOCALE.maketext("Numbers")+" (123)</label></td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_uppercase" /> <label for="generate_password_uppercase">'+LOCALE.maketext("Uppercase")+" (ABC)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_symbols" /> <label for="generate_password_symbols">'+LOCALE.maketext("Symbols")+" (@#$)</label></td>";body+="</tr>";body+="</table></div>";body+="</td></tr></table>";body+='<p><input type="checkbox" id="generate_password_confirm" /> <label for="generate_password_confirm">'+LOCALE.maketext("I have copied this password in a safe place.")+"</label></p>";body+="</div>";panel.setBody(body);panel.render(document.body);if(CPANEL.password.fade_from){CPANEL.password.fade_from.fade_to(panel)}YAHOO.util.Dom.get("generate_password_confirm").checked=false;panel.validate=function(){return DOM.get("generate_password_confirm").checked};panel.submitEvent.subscribe(function(){use_password_function(YAHOO.util.Dom.get("generate_password_input_field").value);this.cancel()});panel.cancelEvent.subscribe(function(){if(CPANEL.password.fade_from){panel.fade_to(CPANEL.password.fade_from)}});panel.hideEvent.subscribe(panel.destroy,panel,true);YAHOO.util.Event.on("generate_password_confirm","click",function(){this.checked?YAHOO.util.Dom.removeClass(panel.getButtons()[0],"disabled"):YAHOO.util.Dom.addClass(panel.getButtons()[0],"disabled")});YAHOO.util.Event.on("generate_password_input_field","click",function(){YAHOO.util.Dom.get("generate_password_input_field").select()});YAHOO.util.Event.on("generate_password_toggle_advanced_options","click",function(){CPANEL.animate.slide_toggle("generate_password_advanced_options")});var get_password_options=function(){var options={};var length_el=YAHOO.util.Dom.get("generate_password_length");var length=length_el.value;if(CPANEL.validate.positive_integer(length)==false){length=12}else if(length<10){length=10}else if(length>18){length=18}length_el.value=length;options.length=length;if(YAHOO.util.Dom.get("generate_password_mixed_alpha").checked==true){options.uppercase=true;options.lowercase=true}else{options.uppercase=YAHOO.util.Dom.get("generate_password_uppercase").checked;options.lowercase=YAHOO.util.Dom.get("generate_password_lowercase").checked}if(YAHOO.util.Dom.get("generate_password_mixed_nonalpha").checked==true){options.numbers=true;options.symbols=true}else{options.numbers=YAHOO.util.Dom.get("generate_password_numbers").checked;options.symbols=YAHOO.util.Dom.get("generate_password_symbols").checked}return options};var generate_new_password=function(){YAHOO.util.Dom.get("generate_password_input_field").value=CPANEL.password.create_password(get_password_options())};if(this.beforeExtendPanel){this.beforeExtendPanel();YAHOO.util.Dom.get("generate_password_input_field").value=CPANEL.password.create_password(get_password_options())}YAHOO.util.Event.on("generate_password_reload","click",generate_new_password);var password_options=["generate_password_mixed_alpha","generate_password_uppercase","generate_password_lowercase","generate_password_mixed_nonalpha","generate_password_numbers","generate_password_symbols"];YAHOO.util.Event.on(password_options,"change",generate_new_password)}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including urls.js!")}else{CPANEL.urls={password_strength:function(){return CPANEL.security_token+"/backend/passwordstrength.cgi"},json_api:function(object){var query_string="";for(var item in object){if(object.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(object[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/json-api/cpanel?"+query_string},uapi:function(module,func,args){var query_string="";for(var item in args){if(args.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(args[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/execute/"+module+"/"+func+"?"+query_string},whm_api:function(script,params,api_mode){if(!api_mode){api_mode="json-api"}else if(api_mode=="xml"){api_mode="xml-api"}var query_string="";for(var item in params){if(params.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(params[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/"+api_mode+"/"+script+"?"+query_string}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including util.js!")}else{if(!("util"in CPANEL)){CPANEL.util={}}(function(){var _wrap_template='<wbr><span class="wbr"></span>';var _wrap_callback=function(match){return match.html_encode()+_wrap_template};var IGNORE_KEY_CODES={9:true,13:true,16:true,17:true,18:true};var STOP_TYPING_TIMEOUT=500;YAHOO.lang.augmentObject(CPANEL.util,{byte_length:typeof Blob!=="undefined"?function byte_length(str){return new Blob([str]).size}:function byte_length(str){return unescape(encodeURIComponent(str)).length},catch_enter:function(els,func){if(typeof func=="string"){var submit_button=func;var press_button=function(){YAHOO.util.Dom.get(submit_button).click()};func=press_button}var _catch_enter=function(e,o){var key=YAHOO.util.Event.getCharCode(e);if(key==13){o.func.call(this,e)}};YAHOO.util.Event.on(els,"keydown",_catch_enter,{func:func})},countdown_timeouts:[],countdown:function(el,after_func,args){var seconds_el=YAHOO.util.Dom.get(el);if(!seconds_el){return}var second_decrease=function(){if(seconds_el){var seconds=parseInt(seconds_el.innerHTML);if(seconds==0){after_func(args)}else{seconds_el.innerHTML=seconds-1;CPANEL.util.countdown_timeouts[seconds_el.id]=setTimeout(second_decrease,1e3)}}};clearTimeout(this.countdown_timeouts[seconds_el.id]);this.countdown_timeouts[seconds_el.id]=setTimeout(second_decrease,1e3);return this.countdown_timeouts[seconds_el.id]},zebra:function(els,rowA,rowB,group_size){if(!rowA){rowA="rowA"}if(!rowB){rowB="rowB"}if(!group_size){group_size=1}if(YAHOO.lang.isArray(els)==false){var el=els;els=[el]}var row=rowA;var group_count=0;for(var i=0;i<els.length;i++){var table=YAHOO.util.Dom.get(els[i]);var rows=YAHOO.util.Dom.getElementsByClassName("zebra","",table);for(var j=0;j<rows.length;j++){YAHOO.util.Dom.removeClass(rows[j],rowA);YAHOO.util.Dom.removeClass(rows[j],rowB);YAHOO.util.Dom.addClass(rows[j],row);group_count++;if(group_count==group_size){group_count=0;row=row==rowA?rowB:rowA}}}},convert_breaklines:function(str){return str.replace(/\n/,"<br />")},HTML_WRAP:_wrap_template,wrap_string_after_pattern_and_html_encode:function(string,pattern){return string.replace(pattern,_wrap_callback)},get_radio_value:function(name,root){if(!root){alert("Please provide a root element for the get_radio_value function to make it faster.")}var inputs=YAHOO.util.Dom.getElementsBy(function(el){return YAHOO.util.Dom.getAttribute(el,"name")==name},"input",root);for(var i=0;i<inputs.length;i++){if(inputs[i].checked){return inputs[i].value}}return false},toggle_more_less:function(toggle_el,text_el,state){toggle_el=YAHOO.util.Dom.get(toggle_el);text_el=YAHOO.util.Dom.get(text_el);if(!toggle_el||!text_el){alert("You passed non-existent elements to the CPANEL.util.toggle_more_less function.");return}if(!state){if(YAHOO.util.Dom.getStyle(text_el,"display")=="none"){state="more"}}if(state=="more"){CPANEL.animate.slide_down(text_el,function(){toggle_el.innerHTML=LOCALE.maketext("less »");CPANEL.align_panels_event.fire()})}else{CPANEL.animate.slide_up(text_el,function(){toggle_el.innerHTML=LOCALE.maketext("more »");CPANEL.align_panels_event.fire()})}},keys:function(object){var obj_keys=[];for(var key in object){obj_keys.push(key)}return obj_keys},values:function(object){var obj_values=[];for(var key in object){obj_values.push(object[key])}return obj_values},operating_system:function(){if(navigator.userAgent.search(/Win/)!=-1){return"Windows"}if(navigator.userAgent.search(/Mac/)!=-1){return"Mac"}if(navigator.userAgent.search(/Linux/)!=-1){return"Linux"}return"Unknown"},toggle_unlimited:function(clicked_el,el_to_disable){clicked_el=YAHOO.util.Dom.get(clicked_el);el_to_disable=YAHOO.util.Dom.get(el_to_disable);if(clicked_el.tagName.toLowerCase()!="input"||el_to_disable.tagName.toLowerCase()!="input"){alert("Error in CPANEL.util.toggle_unlimited() function:\nInput arguments are not of type <input />");return}if(clicked_el.type.toLowerCase()=="text"){YAHOO.util.Dom.removeClass(clicked_el,"disabled_text_input");el_to_disable.checked=false}else{clicked_el.checked=true;YAHOO.util.Dom.addClass(el_to_disable,"disabled_text_input")}},value_or_unlimited:function(text_input_el,radio_el,validation){text_input_el=YAHOO.util.Dom.get(text_input_el);radio_el=YAHOO.util.Dom.get(radio_el);YAHOO.util.Event.on(text_input_el,"focus",function(){radio_el.checked=false;YAHOO.util.Dom.removeClass(text_input_el,"cjt_disabled_input");validation.verify()});YAHOO.util.Event.on(radio_el,"click",function(){radio_el.checked=true;YAHOO.util.Dom.addClass(text_input_el,"cjt_disabled_input");validation.verify()})},clone:function(obj){var temp=YAHOO.lang.JSON.stringify(obj);return YAHOO.lang.JSON.parse(temp)},prevent_submit:function(elem){elem=YAHOO.util.Dom.get(elem);var stop_propagation=function(e){var key_code=YAHOO.util.Event.getCharCode(e);if(key_code==13){YAHOO.util.Event.preventDefault(e)}};YAHOO.util.Event.addListener(elem,"keypress",stop_propagation);YAHOO.util.Event.addListener(elem,"keydown",stop_propagation)},get_text_content:function(){var lookup_property=CPANEL.has_text_content?"textContent":"innerText";this.get_text_content=function(el){if(typeof el==="string"){el=document.getElementById(el)}return el[lookup_property]};return this.get_text_content.apply(this,arguments)},set_text_content:function(){var lookup_property=CPANEL.has_text_content?"textContent":"innerText";this.set_text_content=function(el,value){if(typeof el==="string"){el=document.getElementById(el)}return el[lookup_property]=value};return this.set_text_content.apply(this,arguments)},on_stop_typing:function(el,callback,obj,context_override){el=DOM.get(el);var my_callback=function(){if(context_override&&obj){return function(e){callback.call(obj,e)}}else if(obj){return function(e){callback.call(el,e,obj)}}else{return function(e){callback.call(el,e)}}}();var search_timeout=null;EVENT.on(el,"keyup",function(e){if(!(e.keyCode in IGNORE_KEY_CODES)){clearTimeout(search_timeout);search_timeout=setTimeout(my_callback,STOP_TYPING_TIMEOUT)}});EVENT.on(el,"keydown",function(e){if(!(e.keyCode in IGNORE_KEY_CODES)){clearTimeout(search_timeout)}})},make_query_string:function(data){var query_string_parts=[];for(var key in data){var value=data[key];if(value!==null&&value!==undefined){var encoded_key=encodeURIComponent(key);if(YAHOO.lang.isArray(value)){for(var cv=0;cv<value.length;cv++){query_string_parts.push(encoded_key+"="+encodeURIComponent(value[cv]))}}else{query_string_parts.push(encoded_key+"="+encodeURIComponent(value))}}}return query_string_parts.join("&")},parse_query_string:function(qstr){if(qstr===undefined){qstr=location.search.replace(/^\?/,"")}var parsed={};if(qstr){var pairs=qstr.match(/([^=&]*=[^=&]*)/g);var plen=pairs.length;if(pairs&&pairs.length){for(var p=0;p<plen;p++){var key_val=pairs[p].split(/=/).map(decodeURIComponent);var key=key_val[0].replace(/\+/g," ");if(key in parsed){if(typeof parsed[key]!=="string"){parsed[key].push(key_val[1].replace(/\+/g," "))}else{parsed[key]=[parsed[key_val[0]],key_val[1].replace(/\+/g," ")]}}else{parsed[key]=key_val[1].replace(/\+/g," ")}}}}return parsed},get_numbers_from_string:function(str){str=""+str;var numbers=str.replace(/\D/g,"");numbers=parseInt(numbers);return numbers}})})()}if(typeof CPANEL==="undefined"||!CPANEL){alert("You must include the CPANEL global object before including ui/widgits/pager.js!")}else{(function(){CPANEL.namespace("CPANEL.ui.widgets");if(typeof CPANEL.ui.widgets.pager==="undefined"){var PagerActions={CHANGE_PAGE_SIZE:1,GO_TO_PAGE:2,SHOW_ALL:4,CLEAR_FILTER:8,CLEAR_SORT:16,CHANGE_FILTER:32,CHANGE_SORT:64};var PagerManager=function(){this.cache={}};PagerManager.prototype={initialize:function(scope,url,params,method,callbacks){var container={url:url||"",params:params||{},method:method||"GET",callbacks:{}};if(callbacks){if(callbacks.beforeAction){container.callback.beforeAction=callbacks.beforeAction}if(callbacks.afterAction){container.callback.afterAction=callbacks.afterAction}}this.cache[scope]=container},setCallback:function(scope,callbacks){var container=this.cache[scope];if(container&&callbacks){if(callbacks.beforeAction){container.callback.beforeAction=callbacks.beforeAction}if(callbacks.afterAction){container.callback.afterAction=callbacks.afterAction}}},setParameters:function(scope,params){if(params){var container=this.cache[scope];for(var p in params){container.params[p]=params[p]}}},getParameters:function(scope,params){var output={};if(params){var container=this.cache[scope];for(var i=0,l=params.length;i<l;i++){var key=params[i];output[key]=container.params[key]}}return output},setParameter:function(scope,name,value){var container=this.cache[scope];container.params[name]=value},getParameter:function(scope,name){var container=this.cache[scope];return container.params[name]},fireGoToPage:function(scope,start,page,skip){var container=this.cache[scope];container.params["api2_paginate_start"]=start;container.params["page"]=page;container.params["skip"]=skip;return this.fireAction(scope,container,PagerActions.GO_TO_PAGE)},fireChangePageSize:function(scope,itemsperpage,submit){var container=this.cache[scope];container.params["itemsperpage"]=itemsperpage;if(submit){return this.fireAction(scope,container,PagerActions.CHANGE_PAGE_SIZE)}return true},fireShowAll:function(scope,clearFilterSort){var container=this.cache[scope];container.params["viewall"]=clearFilterSort?"1":"0";return this.fireAction(scope,container,clearFilterSort?PagerActions.SHOW_ALL|PagerActions.CLEAR_FILTER|PagerActions.CLEAR_SORT:PagerActions.SHOW_ALL)},fireChangeFilter:function(scope,searchregex,params){var container=this.cache[scope];container.params["searchregex"]=searchregex;for(var p in params){container.params[p]=params[p]}return this.fireAction(scope,container,PagerActions.CHANGE_FILTER)},fireChangeSort:function(scope,column,direction,params){var container=this.cache[scope];container.params["api2_sort_column"]=column;container.params["api2_sort_reverse"]=direction;for(var p in params){container.params[p]=params[p]}return this.fireAction(scope,container,PagerActions.CHANGE_SORT)},fireAction:function(scope,container,action){var cancel=false;if(container.callbacks["beforeAction"]){cancel=container.callbacks["beforeAction"](scope,container,action)}if(cancel){return false}var href=container.href||window.location.href.split("?")[0];if(container.method=="GET"){window.location=this._makeQuery(href,this._getQuery(container))}else if(container.method==="POST"){var form=this._buildForm(url,container.params);if(form){form.submit()}}if(container.callbacks["afterAction"]){container.callbacks["afterAction"](scope,container,action)}return true},getQuery:function(scope){var container=this.cache[scope];return this._getQuery(container)},_getQuery:function(container){return this._serialize(container.params)},_makeQuery:function(url,query){return url+(query?"?"+query:"")},_buildForm:function(url,params){var form=document.createElement("form");form.href=url;form.method="POST";form.id=scope+"-page-form";for(var param in params){if(typeof param==="string"){var input=document.createElement("input");input.type="hidden";input.id=scope+"-page-param-"+param;input.name=param;input.value=params[param];form.appendChild(input)}}var oldForm=document.getElementById(form.id);if(oldForm){this._removeElement(oldForm)}document.appendChild(form);return form},_serialize:function(obj){var str=[];for(var p in obj)str.push(encodeURIComponent(p)+"="+encodeURIComponent(obj[p]));return str.join("&")},_removeElement:function(el){var parent=el.parentNode;if(parent){parent.removeChild(el)}}};CPANEL.ui.widgets.PagerActions=PagerActions;CPANEL.ui.widgets.pager=new PagerManager}})()}(function(){function _log(text){if(window.console&&window.console.log){window.console.log(arguments)}}function _trace(){if(window.console&&window.console.trace){window.console.trace(arguments)}}function _validate_local_part(text,spec,charCheckOnly){spec=spec||"rfc";text=text||"";charCheckOnly=!!charCheckOnly;if(text===""){return charCheckOnly}if(spec!=="cpanel"&&spec!=="rfc"){throw"CPANEL.validate.local_part_email: invalid spec argument!"}var pattern;if(spec==="rfc"){pattern=new RegExp("[^.a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]")}else{pattern=new RegExp("[^.a-zA-Z0-9_-]")}if(pattern.test(text)===true){return false}if(charCheckOnly){return true}if(spec==="rfc"){if(text.charAt(0)==="."||text.charAt(text.length-1)==="."){return false}if(/\.\./.test(text)===true){return false}}return true}if(typeof CPANEL==="undefined"||!CPANEL){_log("You must include the CPANEL global object before including validate.js!")}else{CPANEL.validate={hide_validation_summary:false,get_page_overlay_context_arguments:function(){var overlay_anchor;var form_el_anchor;if(LOCALE.is_rtl()){overlay_anchor="tr";form_el_anchor="tl"}else{overlay_anchor="tl";form_el_anchor="tr"}return[overlay_anchor,form_el_anchor,["beforeShow","windowResize",CPANEL.align_panels_event]]},a:"",form_checkers:{},validator:function(title){if(YAHOO.util.CustomEvent){this.validateSuccess=new YAHOO.util.CustomEvent("validateSuccess",this);this.validateFailure=new YAHOO.util.CustomEvent("validateFailure",this)}if(typeof title!=="string"){_trace();_log('You need to pass the title of the validator object into the constructor.\nie: var my_validator = new CPANEL.validate.validator("Email Account");');return}this.title=title;this.validators=[];this.add_thrower=function(el,func){var msg;var catcher=function(){try{func.apply(this,arguments);return true}catch(err){msg=err;return false}};return this.add(el,catcher,function(){return msg})};this.add=function(el,func,msg,conditional_func,opts){return this._do_add.apply(this,arguments)};this.add_for_submit=function(el,func,msg,conditional_func,opts){opts=opts||{};opts.submit_only=true;return this._do_add(el,func,msg,conditional_func,opts)};this._do_add=function(orig_el,func,msg,conditional_func,opts){var el=YAHOO.util.Dom.get(orig_el);if(!el){_trace();_log("Error in CPANEL.validate.add: could not find element '"+orig_el+"' in the DOM");return}var error_element_id=el.id+"_error";var error_el=YAHOO.util.Dom.get(error_element_id);if(!error_el){_trace();_log("Error in CPANEL.validate.add: could not find element '"+error_element_id+"' in the DOM");return}if(!opts||opts&&!opts.no_width_height){YAHOO.util.Dom.setStyle(error_el,"width","16px");YAHOO.util.Dom.setStyle(error_el,"height","16px")}if(error_el.tagName.toLowerCase()==="img"){error_el.src=CPANEL.icons.transparent_src;YAHOO.util.Dom.setStyle(error_el,"vertical-align","middle")}if(typeof msg!=="string"&&typeof msg!=="function"){_log("Error in CPANEL.validate.add: msg must be either a string or a function");return}if(!conditional_func){conditional_func=function(){return true}}else if(typeof conditional_func==="string"){var conditional_el=YAHOO.util.Dom.get(conditional_func);if(!conditional_el){_log("Error in CPANEL.validate.add: could not find element '"+conditional_func+"' in the DOM.");return}var attribute_type=conditional_el.getAttribute("type");if(attribute_type==="radio"||attribute_type==="checkbox"){conditional_func=function(){return conditional_el.checked}}else{_log("Error in CPANEL.validate.add: conditional function argument '"+conditional_el.id+'\'must be a DOM element of type "radio" or "checkbox"');return}}if(typeof func==="string"){func="CPANEL.validate."+func;if(func.match(new RegExp(/[\(\)]/))===null){func=func+"(%input%)"}func=func.replace(/(\$input\$)|(%input%)/i,'YAHOO.util.Dom.get("'+el.id+'").value');try{eval("func = function() { return "+func+"; };")}catch(e){_log("Error in CPANEL.validate.add: Error eval()ing your function argument");return}}this.validators.push({el:el,func:func,msg:msg,conditional_func:conditional_func,submit_only:opts&&opts.submit_only,unique_id:opts&&opts.unique_id})};this.attach=function(){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){var element=elements[i];var attribute_type=element.type||element.tagName;if(/password|text|textarea/i.test(attribute_type)){if(CPANEL.dom.has_oninput){EVENT.on(element,"input",verify_element,{el:element})}else{EVENT.on(element,"keyup",verify_element,{el:element});EVENT.on(element,"change",verify_element,{el:element});EVENT.on(element,"paste",delayed_verify_element,{el:element})}}else if(/file|select/i.test(attribute_type)){EVENT.on(element,"change",verify_element,{el:element})}create_error_panel(element)}};this.detach=function(){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){if(CPANEL.dom.has_oninput){EVENT.purgeElement(elements[i],false,"input")}else{EVENT.purgeElement(elements[i],false,"keyup");EVENT.purgeElement(elements[i],false,"change");EVENT.purgeElement(elements[i],false,"paste")}}this.clear_messages()};this.is_valid=function(){for(var i=0;i<this.validators.length;i++){if(this.validators[i].el.disabled){continue}if(this.validators[i].conditional_func(this.validators[i].el,this.validators[i])){if(!this.validators[i].func(this.validators[i].el,this.validators[i])){return false}}}return true};this.error_messages=function(){var error_messages=[];for(var i=0;i<this.validators.length;i++){if(this.validators[i].conditional_func(this.validators[i].el,this.validators[i])){if(!this.validators[i].func(this.validators[i].el,this.validators[i])){error_messages.push(_process_error_message(this.validators[i].msg,this.validators[i].el))}}}if(error_messages.length===0){return false}return{title:this.title,errors:error_messages}};this.clear_messages=function(){for(var i=0;i<this.validators.length;i++){var error_element=YAHOO.util.Dom.get(this.validators[i].el.id+"_error");if(!error_element){continue}if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.transparent_src}else{error_element.innerHTML=""}}hide_all_panels()};this.verify=function(evt){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){verify_element(null,{el:elements[i],event:evt})}};this.verify_for_submit=function(){return this.verify({type:"submit"})};var that=this;var panels={};var create_error_panel=function(element){var overlay_config={visible:false,zindex:1e3,context:[element.id+"_error"].concat(CPANEL.validate.get_page_overlay_context_arguments())};DOM.addClass(element.id+"_error","cjt_validation_error");panels[element.id]=new YAHOO.widget.Overlay(element.id+"_error_panel",overlay_config);panels[element.id].setBody("");var contentContainer=document.getElementById("contentContainer");if(contentContainer){panels[element.id].render(contentContainer)}else{panels[element.id].render(document.body)}YAHOO.util.Dom.addClass(element.id+"_error_panel","validation_error_panel")};var clear_one_message=function(element){var error_element=DOM.get(element.id+"_error");var no_panel=DOM.hasClass(error_element,"no_panel");if(error_element.tagName.toLowerCase()==="img"){error_element.src="data:image/png,";if(no_panel){error_element.title=""}}else{error_element.innerHTML=""}if(panels[element.id]){panels[element.id].hide()}};var delayed_verify_element=function(e,o){setTimeout(verify_element.bind(this,e,o),5)};var verify_element=function(e,o){if(o.el.disabled){return}var submit_only_function_failed_outside_submit;var this_is_a_submit;if(o.event){var evt=o.event;this_is_a_submit=evt.type==="submit";if(!this_is_a_submit&&evt.type==="click"){var clickee=EVENT.getTarget(evt);var tag_name=clickee.tagName.toLowerCase();this_is_a_submit=clickee.type==="submit"&&(tag_name==="button"||tag_name==="input")}}var error_messages=[];var ids=[];for(var i=0;i<that.validators.length;i++){var validation_unit=that.validators[i];if(validation_unit.el.id!==o.el.id){continue}if(validation_unit.conditional_func(o.el,that.validators[i])){if(!validation_unit.func(o.el,that.validators[i])){if(!this_is_a_submit&&validation_unit.submit_only){submit_only_function_failed_outside_submit=true}else{error_messages.push(that.validators[i].msg);ids.push(that.validators[i].unique_id)}}}}if(error_messages.length===0){if(submit_only_function_failed_outside_submit){clear_one_message(o.el);that.validateFailure.fire({is_submit_only_failure:true})}else{show_success(o.el);that.validateSuccess.fire()}}else{show_errors(o.el,error_messages,ids);that.validateFailure.fire({is_submit_only_failure:false})}};var show_success=function(element){var error_element=YAHOO.util.Dom.get(element.id+"_error");if(YAHOO.util.Dom.getStyle(error_element,"display")!=="none"){panels[element.id].hide();if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.success_src}else{error_element.innerHTML=CPANEL.icons.success}error_element.title="";YAHOO.util.Event.purgeElement(error_element,false)}};var show_errors=function(element,messages,ids){messages=messages.map(function(cur_msg){return _process_error_message(cur_msg,element)});var error_element=YAHOO.util.Dom.get(element.id+"_error");if(YAHOO.util.Dom.getStyle(error_element,"display")==="none"){return}var no_panel=YAHOO.util.Dom.hasClass(error_element,"no_panel");var img_title;if(no_panel){var dummy_span=document.createElement("span");img_title=[];for(var m=0;m<messages.length;m++){dummy_span.innerHTML=messages[m];img_title.push(dummy_span.textContent||dummy_span.innerText)}img_title=img_title.join("\n")}if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.error_src;if(no_panel){error_element.title=img_title}}else{error_element.innerHTML=CPANEL.icons.error;if(no_panel){error_element.getElementsByTagName("img")[0].title=img_title}}if(no_panel){return}var panel_body='<div class="validation_errors_div">';panel_body+='<ul class="validation_errors_ul">';for(var i=0;i<messages.length;i++){var id=ids[i]?' id="'+ids[i]+'"':"";panel_body+='<li class="validation_errors_li"'+id+">"+_process_error_message(messages[i],element)+"</li>"}panel_body+="</ul></div>";var show_inline=YAHOO.util.Dom.hasClass(error_element,"show_inline");if(show_inline){error_element.innerHTML=panel_body}else{panels[element.id].setBody(panel_body);panels[element.id].show()}};var hide_all_panels=this.hide_all_panels=function(){for(var i in panels){panels[i].hide()}};var _get_unique_elements=function(){return that.validators.map(function(v){return v.el}).unique()};var _process_error_message=function(msg,element){if(typeof msg==="string"){return msg}return msg(element)}},show_modal_error:function(messages){var temp=[];if(YAHOO.lang.isArray(messages)===false){temp.push(messages);messages=temp}if(YAHOO.util.Dom.inDocument("validation_errors_modal_box")===true){var remove_me=YAHOO.util.Dom.get("validation_errors_modal_box");remove_me.parentNode.removeChild(remove_me)}var panel_options={width:"350px",fixedcenter:true,close:true,draggable:false,zindex:1e3,modal:true,visible:false};var panel=new YAHOO.widget.Panel("validation_errors_modal_box",panel_options);var header='<div class="lt"></div>';header+="<span>"+LOCALE.maketext("Validation Errors")+"</span>";header+='<div class="rt"></div>';panel.setHeader(header);var body="";for(var i=0;i<messages.length;i++){body+='<span class="validation_errors_modal_box_title">'+messages[i].title+"</span>";body+='<ul class="validation_errors_modal_box_ul">';var these_errors;if(messages[i].errors instanceof Array){these_errors=messages[i].errors}else{these_errors=[messages[i].errors]}for(var j=0;j<these_errors.length;j++){body+='<li class="validation_errors_modal_box_li">'+these_errors[j]+"</li>"}body+="</ul>"}panel.setBody(body);var footer='<div class="lb"></div>'+'<div class="validation_errors_modal_box_actions">'+'<input id="validation_errors_modal_panel_close_button" type="button" class="input-button btn-primary" value="'+LOCALE.maketext("Close")+'" />'+"</actions>"+'<div class="rb"></div>';panel.setFooter(footer);var after_show=function(){YAHOO.util.Event.on("validation_errors_modal_panel_close_button","click",function(){panel.hide()});YAHOO.util.Dom.get("validation_errors_modal_panel_close_button").focus()};panel.showEvent.subscribe(after_show);panel.render(document.body);panel.show()},attach_to_form:function(el,validators,opts){var success_callback;if(opts){if(typeof opts==="function"){success_callback=opts}else{success_callback=opts.success_callback}}else{opts={}}var typeof_validator=function(obj){if(!obj||typeof obj.add!=="function"||typeof obj.attach!=="function"||typeof obj.title!=="string"){return false}return true};var temp=[];if(typeof_validator(validators)){temp.push(validators)}else{for(var i in validators){if(!typeof_validator(validators[i])){continue}temp.push(validators[i])}}validators=temp;CPANEL.validate.form_checkers[el]=function(event,checkonly){var messages=[],topYCoord,topElId;var good_data=true;for(var i=0;i<validators.length;i++){validators[i].verify(event);if(!validators[i].is_valid()){good_data=false;messages.push(validators[i].error_messages());var curElId=validators[i].validators[0].el.id+"_error";var yPos=DOM.getY(curElId);if(!topYCoord||yPos<topYCoord){topYCoord=yPos;topElId=curElId}}}if(good_data===false){if(event){EVENT.preventDefault(event)}if(!CPANEL.validate.hide_validation_summary){if(!opts.no_panel){CPANEL.validate.show_modal_error(messages)}}if(!opts.no_animation&&CPANEL.animate){var region=DOM.getRegion(topElId);var panelRegion=DOM.getRegion(topElId+"_panel");if(panelRegion){region=region.union(panelRegion)}var windowScroll=new CPANEL.animate.WindowScroll(region);windowScroll.animate()}return false}if(!checkonly&&success_callback){success_callback(event)}return true};YAHOO.util.Event.on(el,"click",CPANEL.validate.form_checkers[el])},create:function(id,name,definition){var el=YAHOO.util.Dom.get(id);if(!el){_log("Error in CPANEL.validate.create: id '"+el.id+"' does not exist in the DOM.");return}if(!CPANEL.validation_definitions[definition]){_log("Error in CPANEL.validate.create: Validation definition '"+definition+"' does not exist.");return}var atoms=CPANEL.validate.util.get_atoms_from_definition(definition);var func=CPANEL.validate.util.create_function_from_atoms(atoms,el);var msg=CPANEL.validate.util.create_msg_from_atoms(atoms);var validator=new CPANEL.validate.validator(name);validator.add(id,func,msg);validator.attach();return validator},no_unsafe_periods:function(text){if(text.charAt(0)==="."||text.charAt(text.length-1)==="."){return false}if(/\.\./.test(text)===true){return false}return true
},local_part_email:function(str,spec,charCheckOnly){return _validate_local_part(str,spec,charCheckOnly)},email_username:function(str,spec,charCheckOnly){return _validate_local_part(str,"cpanel",charCheckOnly)},ftp_username:function(str){return _validate_local_part(str,"cpanel")},webdisk_username:function(str){return _validate_local_part(str,"cpanel")},host:function(str){var chunks=str.split(".");if(chunks.length<2){return false}for(var i=0;i<chunks.length-1;i++){if(!CPANEL.validate.domain(chunks[i])){return false}}if(!CPANEL.validate.tld("."+chunks[chunks.length-1])){return false}return true},email:function(str){var groups=str.split("@");if(groups.length!==2){return false}if(!_validate_local_part(groups[0],"rfc")){return false}return CPANEL.validate.fqdn(groups[1])},cpanel_email:function(str){var groups=str.split("@");if(groups.length!==2){return false}if(!_validate_local_part(groups[0],"cpanel")){return false}return CPANEL.validate.fqdn(groups[1])},external_check_image_extension:function(str,fname){if(str===""){return true}if(!/[^.]\.[^.]+$/.test(str)){return false}var given_extension=str.split(".").pop();var allowed_extensions=["gif","jpg","jpeg","png"];return allowed_extensions.indexOf(given_extension.toLowerCase())!==-1},url:function(str){if(str.substring(0,7)!=="http://"&&str.substring(0,8)!=="https://"){return false}var front_slashes=str.search(/:\/\//);if(front_slashes===-1){return false}str=str.substring(front_slashes+3);var back_slash=str.search(/\//);if(back_slash===-1){back_slash=str.length}var domain_and_tld=str.substring(0,back_slash);return CPANEL.validate.fqdn(domain_and_tld)},fqdn:function(str){var groups=str.split(".");if(groups.length<2){return false}for(var i=0;i<groups.length;i++){if(i===0){if(!CPANEL.validate.domain(groups[i])){return false}}if(i===groups.length-1){if(!CPANEL.validate.tld("."+groups[i])){return false}}if(!CPANEL.validate.tld("."+groups[i])&&!CPANEL.validate.domain(groups[i])){return false}}return true},tld:function(str){var pattern=new RegExp("[^a-zA-Z0-9-.]");if(pattern.test(str)===true){return false}if(str.charAt(0)!=="."||/[.-]$/.test(str)){return false}if(/\.[.-]/.test(str)||/-\./.test(str)||/---/.test(str)){return false}return true},domain:function(str){var pattern=new RegExp("[^_a-zA-Z0-9-]");if(pattern.test(str)===true){return false}if(/_/.test(str.substr(1))){return false}if(str.charAt(0)==="-"||str.charAt(str.length-1)==="-"){return false}if(str.length===0||str.length>63){return false}return true},subdomain:function(str){var pattern=new RegExp("[^_a-zA-Z0-9-.]");if(pattern.test(str)===true){return false}if(/_/.test(str.substr(1))){return false}if(!CPANEL.validate.alphanumeric(str.charAt(str.length-1))){return false}if(str.length===0||str.length>63){return false}pattern=new RegExp(/\.\./);if(pattern.test(str)===true){return false}return true},country_code:function(str){var codes=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];return codes.indexOf(str)>-1},alpha:function(str){if(str===""){return false}var pattern=new RegExp("[^a-zA-Z]");if(pattern.test(str)===true){return false}return true},alphanumeric:function(str){if(str===""){return false}var pattern=new RegExp("[^a-zA-Z0-9]");if(pattern.test(str)===true){return false}return true},sql_alphanumeric:function(str){if(str===""){return false}if(/_$/.test(str)){return false}var pattern=new RegExp("[^a-zA-Z0-9_-]");if(pattern.test(str)===true){return false}return true},min_length:function(str,length){if(str.length>=length){return true}return false},max_length:function(str,length){if(str.length<=length){return true}return false},length_check:function(str,minLength,maxLength){var len=str.length;if(len>=minLength&&len<=maxLength){return true}return false},equals:function(el1,el2){el1=YAHOO.util.Dom.get(el1);el2=YAHOO.util.Dom.get(el2);if(el1.value==el2.value){return true}return false},not_equals:function(el1,el2){el1=YAHOO.util.Dom.get(el1);el2=YAHOO.util.Dom.get(el2);if(el1.value==el2.value){return false}return true},anything:function(){return true},if_not_empty:function(value,func){if(typeof value!=="string"){value=YAHOO.util.Dom.get(value).value}if(value!==""){return func(value)}return true},positive_integer:function(value){value=value+"";if(value===""){return false}var pattern=new RegExp("[^0-9]");if(pattern.test(value)===true){return false}return true},negative_integer:function(value){value=value+"";if(value.charAt(0)!=="-"){return false}value=value.substr(1);var pattern=new RegExp("[^0-9]");if(pattern.test(value)===true){return false}return true},integer:function(value){if(CPANEL.validate.negative_integer(value)||CPANEL.validate.positive_integer(value)){return true}return false},max_value:function(value,max){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);max=parseInt(max,10);if(value>max){return false}return true},min_value:function(value,min){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);min=parseInt(min,10);if(value<min){return false}return true},less_than:function(value,less_than){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);less_than=parseInt(less_than,10);if(value<less_than){return true}return false},greater_than:function(value,greater_than){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);greater_than=parseInt(greater_than,10);if(value>greater_than){return true}return false},no_chars:function(str,chars){if(typeof chars==="string"){var chars2=chars.split("");chars=chars2}for(var i=0;i<chars.length;i++){if(str.indexOf(chars[i])!==-1){return false}}return true},not_string:function(str,notstr){if(str==notstr){return false}return true},dir_path:function(str){var chars='\\?%*:|"<>';return CPANEL.validate.no_chars(str,chars)},reserved_directory:function(str){if(str.indexOf("/")===0){str=str.substr(1)}while(str.indexOf("./")===0){str=str.substr(2)}var DisallowedDirectories=["",".cpanel",".cphorde",".htpasswds",".spamassassin",".ssh",".trash","cgi-bin","etc","logs","mail","perl5","ssl","tmp","var"];if(DisallowedDirectories.indexOf(str)>-1){return false}return true},quota:function(str){if(!CPANEL.validate.positive_integer(str)&&str!==LOCALE.maketext("unlimited")){return false}return true},mime:function(str){if(!CPANEL.validate.no_chars(str," ")){return false}var names=str.split("/");if(names.length!==2){return false}var pattern=/^[a-zA-Z0-9!#\$&\.\+\-\^\_]+$/;for(var i=0;i<names.length;i++){if(!names[i]||names[i].length>127||!pattern.test(names[i])){return false}}return true},mime_extension:function(str){var pattern=new RegExp(/\w/g);if(pattern.test(str)===false){return false}return CPANEL.validate.no_chars(str,"/&?\\")},apache_handler:function(str){if(!CPANEL.validate.no_chars(str," ")){return false}var hyphen1=str.indexOf("-");var hyphen2=str.lastIndexOf("-");if(hyphen1===-1){return false}if(hyphen1===0||hyphen2===str.length-1){return false}return true},ip:function(str){var chunks=str.split(".");if(chunks.length!==4){return false}for(var i=0;i<chunks.length;i++){if(!CPANEL.validate.positive_integer(chunks[i])){return false}if(chunks[i]>255){return false}}return true},ipv6:function(str){if(!str){return false}return CPANEL.inet6.isValid(str)},no_local_ips:function(str){return!(str==="127.0.0.1"||str==="0.0.0.0")},filename:function(str){if(str.indexOf("/")!==-1){return false}if(!CPANEL.validate.dir_path(str)){return false}return true},end_of_string:function(str,allowed){if(!YAHOO.lang.isArray(allowed)){allowed=[allowed]}for(var i=0;i<allowed.length;i++){if(str.substr(str.length-allowed[i].length).toLowerCase()===allowed[i].toLowerCase()){return true}}return false},alphanumeric_bookends:function(str){if(str===""){return true}if(!CPANEL.validate.alphanumeric(str.charAt(0))){return false}if(!CPANEL.validate.alphanumeric(str.charAt(str.length-1))){return false}return true},zone_name:function(str){if(str===""){return false}if(str.charAt(str.length-1)==="."){str=str.substr(0,str.length-1)}var chunks=str.split(".");if(chunks.length<1){return false}for(var i=0;i<chunks.length;i++){if(!CPANEL.validate.domain(chunks[i])&&chunks[i]!=="*"){return false}}return true},not_present:function(str,value){return!CPANEL.validate.present(str,value)},present:function(str,value){var lower_str=str.toLowerCase();var lower_value=value.toLowerCase();if(lower_str.indexOf(lower_value)>=0){return true}return false},not_in_domain:function(str,domain){return!CPANEL.validate.in_domain(str,domain)},in_domain:function(str,domain){var lower_str=str.toLowerCase();var lower_domain=domain.toLowerCase();var domain_pat=lower_domain.replace(/\./g,"\\.");if(lower_str===lower_domain){return true}var subdomain_pat=new RegExp("\\."+domain_pat+"$");if(subdomain_pat.test(lower_str)){return true}return false}};CPANEL.validate.validator.prototype={}}})();CPANEL.validation_definitions={IPV4_ADDRESS:[{min_length:"1",msg:"IP Address cannot be empty."},{valid_chars:".0-9",msg:"IP Address must contain only digits and periods."},{valid_regexp:"/^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/",msg:"IP Address not formatted correctly.  ie: 4.2.2.2, 192.168.1.100"}],IPV4_ADDRESS_NO_LOCAL_IPS:["IPV4_ADDRESS",{invalid_regexp:"/(127\\.0\\.0\\.1)|(0\\.0\\.0\\.0)/",msg:"IP Address cannot be local.  ie: 127.0.0.1, 0.0.0.0"}],LOCAL_EMAIL:[{min_length:"1",msg:"Email cannot be empty."},{max_length:"128",msg:"Email cannot be longer than 128 characters."},{invalid_chars:" ",msg:"Email cannot contain spaces."},{invalid_regexp:"/\\.\\./",msg:"Email cannot contain two consecutive periods."},{invalid_regexp:"/^\\./",msg:"Email cannot start with a period."},{invalid_regexp:"/\\.$/",msg:"Email cannot end with a period. %invalid%"}],LOCAL_EMAIL_CPANEL:["LOCAL_EMAIL",{valid_chars:".a-zA-Z0-9!#$=?^_{}~-",msg:"Email contains illegal characters: %invalid_chars%"}],LOCAL_EMAIL_RFC:["LOCAL_EMAIL",{valid_chars:".a-zA-Z0-9!#$%&'*+/=?^_`{|}~-",msg:"Email contains illegal characters: %invalid_chars%"}],FULL_EMAIL:[{min_length:"1",msg:"Email cannot be empty."},{invalid_chars:" ",msg:"Email cannot contain spaces."},{"":"",msg:""}],FULL_EMAIL_CPANEL:[],FULL_EMAIL_RFC:[],DOMAIN:[],SUBDOMAIN:[{min_length:"1",msg:"Subdomain cannot be empty."},{max_length:"63",msg:"Subdomain cannot be longer than 63 characters."},{invalid_chars:" ",msg:"Subdomain cannot contain spaces."},{invalid_regexp:"\\.\\.",msg:"Subdomain cannot contain two consecutive periods."},{valid_chars:"a-zA-Z0-9_-.",msg:"Subdomain contains invalid characters: %invalid_chars%"}],FQDN:[],TLD:[],FTP_USERNAME:[],MYSQL_DB_NAME:[],MYSQL_USERNAME:[],POSTGRES_DB_NAME:[],POSTGRES_USERNAME:[]};(function(){var close_x=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9?"X":'<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><line stroke="currentColor" stroke-width="1.5" stroke-linecap="round" x1="35%" y1="35%" x2="65%" y2="65%" /><line stroke="currentColor" stroke-width="1.5" stroke-linecap="round" x1="35%" y1="65%" x2="65%" y2="35%" /><rect width="100%" height="100%" style="fill:transparent;opacity:1.0" /></svg>';var closeButton=YAHOO.lang.substitute("<a class='cjt-dynamic-pagenotice-close-button' href='javascript:void(0)' title=\"{title}\">{close_x}</a>",{title:LOCALE.maketext("Click to close."),close_x:close_x});if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including widgets.js!")}else{CPANEL.widgets={Text_Input_Placeholder:function(context_el,text,before_show){context_el=DOM.get(context_el);var id=context_el.id;if(id){id+="_cjt-text-input-placeholder"}else{id=DOM.generateId()}var region=CPANEL.dom.get_inner_region(context_el);var xy_offset=[region.padding.left+region.border.left,region.padding.top+region.border.top];var opts={context:[context_el,"tl","tl",["beforeShow","windowResize"],xy_offset],width:region.width+"px",height:region.height+"px",zIndex:parseInt(DOM.getStyle(context_el,"z-index"),10)+1,visible:false};arguments.callee.superclass.constructor.call(this,id,opts);var render_parent=context_el.parentNode;if(render_parent.nodeName.toLowerCase()==="label"){render_parent=render_parent.parentNode}this.render(render_parent);var overlay=this;this.element.onclick=function(){overlay.hide();context_el.focus()};DOM.addClass(this.element,"cjt-text-input-placeholder");var helper_text=text||"";this.setBody(helper_text);YAHOO.util.Event.addListener(context_el,"focus",function(){overlay.hide()});YAHOO.util.Event.addListener(context_el,"blur",function(){if(!this.value.trim()){overlay.show()}});if(before_show){before_show.apply(this)}if(!context_el.value.trim()){this.show()}},progress_bar:function(el,percentage,text,options){if(options=='{"inverse_colors":"true"}'){options={inverse_colors:true}}if(!options){options={}}if(!options.text_style){options.text_style=""}if(!options.inverse_colors){options.inverse_colors=false}if(!options.one_color){options.one_color=false}if(!options.return_html){options.return_html=false}percentage=parseInt(percentage,10);if(percentage<0){percentage=0}if(percentage>100){percentage=100}if(options.return_html===false){el=YAHOO.util.Dom.get(el)}var color;if(percentage>=0){color="#FF0000"}if(percentage>=20){color="#FF9837"}if(percentage>=40){color="#F1FF4D"}if(percentage>=60){color="#C5FF00"}if(percentage>=80){color="#8FFF00"}if(options.inverse_colors){if(percentage>=0){color="#8FFF00"}if(percentage>=20){color="#C5FF00"}if(percentage>=40){color="#F1FF4D"}if(percentage>=60){color="#FF9837"}if(percentage>=80){color="#FF0000"}}if(options.one_color){color=options.one_color}var height="100%";if(YAHOO.env.ua.ie==6&&options.return_html===false){var div_region=YAHOO.util.Region.getRegion(el);height=div_region.height+"px"}var html;html='<div class="cpanel_widget_progress_bar" title="'+percentage+'%" style="position: relative; width: 100%; height: '+height+'; padding: 0px; margin: 0px; border: 0px">';if(text){html+='<div style="position: absolute; left: 0px; width: 100%; height: '+height+"; padding: 0px; margin: 0px; border: 0px; z-index: 1; background-image: url('/cPanel_magic_revision_0/cjt/images/1px_transparent.gif')\">";html+='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px; border: 0px">';html+='<tr><td valign="middle" style="padding: 0px; margin: 0px; border: 0px;">';html+='<div style="width: 100%; '+options.text_style+'">'+text+"</div>";html+="</td></tr></table>";html+="</div>"}if(percentage>0){html+='<div style="position: absolute; left: 0px; top: 0px; width: '+percentage+"%; height: "+height+"; background-color: "+color+'; padding: 0px; margin: 0px; border: 0px"></div>'}html+="</div>";if(options.return_html===false){html+='<div class="cpanel_widget_progress_bar_percent" style="display: none">'+percentage+"</div>"}if(options.return_html===true){return html}el.innerHTML=html},build_progress_bar:function(percentage,text,options){},status_box:null,status_box_timeout:null,status:function(message,class_name){clearTimeout(this.status_box_timeout);var options={zIndex:1e3,visible:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.25}};this.status_box=new YAHOO.widget.Overlay("cpanel_status_widget",options);this.status_box.setBody('<span class="cpanel_status_widget_message">'+message+"</span>");var footer='<br /><div style="width: 100%; text-align: right; font-size: 10px">';footer+=LOCALE.maketext("Click to close.")+' [<span id="cpanel_status_widget_countdown">10</span>]';footer+="</div>";this.status_box.setFooter(footer);this.status_box.render(document.body);YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_success");YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_error");YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_warning");if(class_name){YAHOO.util.Dom.addClass("cpanel_status_widget","cpanel_status_"+class_name)}else{YAHOO.util.Dom.addClass("cpanel_status_widget","cpanel_status_success")}var hide_me=function(){CPANEL.widgets.status_box.hide();clearTimeout(CPANEL.widgets.status_box_timeout)};YAHOO.util.Event.on("cpanel_status_widget","click",hide_me);var second_decrease=function(){var seconds_el=YAHOO.util.Dom.get("cpanel_status_widget_countdown");if(seconds_el){var seconds=parseInt(seconds_el.innerHTML,10);if(seconds===0){hide_me()}else{seconds_el.innerHTML=seconds-1;CPANEL.widgets.status_box_timeout=setTimeout(second_decrease,1e3)}}};this.status_box_timeout=setTimeout(second_decrease,1e3)},status_bar:function(el,style,title,message,options){var duration=10;if(style=="error"){duration=0}var callback_func=function(){};var hide_countdown=false;var countdown=true;if(duration===0){countdown=false}var raw_html=false;if(options){if(options.duration){duration=options.duration}if(options.callbackFunc){if(typeof options.callbackFunc=="function"){callback_func=options.callbackFunc}}if(options.hideCountdown){hide_countdown=true}if(options.rawHTML){raw_html=options.rawHTML}if(options.noCountdown){countdown=false}}el=YAHOO.util.Dom.get(el);if(!el){alert("Error in CPANEL.widgets.status_bar: '"+el+"' does not exist in the DOM.");return}var hide_bar=function(){CPANEL.animate.slide_up(el,function(){el.innerHTML="";callback_func();CPANEL.align_panels_event.fire()})};YAHOO.util.Dom.removeClass(el,"cjt_status_bar_success");YAHOO.util.Dom.removeClass(el,"cjt_status_bar_error");YAHOO.util.Dom.removeClass(el,"cjt_status_bar_warning");YAHOO.util.Dom.addClass(el,"cjt_status_bar_"+style);var status="";if(raw_html===false){status=CPANEL.icons.success;if(style=="error"){status=CPANEL.icons.error}if(style=="warning"){status=CPANEL.icons.warning}status+=" <strong>"+title+"</strong>";if(message){if(message!==""){status+='<div style="height: 5px"></div>';status+=CPANEL.util.convert_breaklines(message)}}}else{status=raw_html}var countdown_div="";if(countdown===true){countdown_div='<div class="cjt_status_bar_countdown"';if(hide_countdown===true){countdown_div+=' style="display: none"'}var countdown_inner=LOCALE.maketext("Click to close.")+" {durationspan}";countdown_inner=countdown_inner.replace("{durationspan}",'[<span id="'+el.id+'_countdown">'+duration+"</span>]");countdown_div+=">"+countdown_inner+"</div>"}else{countdown_div='<div class="cjt_status_bar_countdown">'+LOCALE.maketext("Click to close.")+"</div>"}el.innerHTML=status+countdown_div;CPANEL.animate.slide_down(el,function(){if(YAHOO.env.ua.ie>5){YAHOO.util.Dom.setStyle(el,"zoom","1")}if(countdown===true){CPANEL.util.countdown(el.id+"_countdown",hide_bar)}CPANEL.align_panels_event.fire()});YAHOO.util.Event.on(el,"click",hide_bar)},collapsible_header:function(header_el,div_el,before_show,after_show,before_hide,after_hide){header_el=YAHOO.util.Dom.get(header_el);div_el=YAHOO.util.Dom.get(div_el);if(!header_el){alert("Error in CPANEL.widgets.collapsable_header: header_el '"+header_el+"' does not exist in the DOM.");return}if(!div_el){alert("Error in CPANEL.widgets.collapsable_header: div_el '"+div_el+"' does not exist in the DOM.");return}if(!before_show||typeof before_show!="function"){before_show=function(){}}if(!after_show||typeof after_show!="function"){after_show=function(){}}if(!before_hide||typeof before_hide!="function"){before_hide=function(){}}if(!after_hide||typeof after_hide!="function"){after_hide=function(){}}var toggle_function=function(){if(YAHOO.util.Dom.getStyle(div_el,"display")=="none"){before_show();YAHOO.util.Dom.replaceClass(header_el,"cjt_header_collapsed","cjt_header_expanded");CPANEL.animate.slide_down(div_el,function(){after_show();CPANEL.align_panels_event.fire()})}else{before_hide();CPANEL.animate.slide_up(div_el,function(){after_hide();YAHOO.util.Dom.replaceClass(header_el,"cjt_header_expanded","cjt_header_collapsed");CPANEL.align_panels_event.fire()})}};YAHOO.util.Event.on(header_el,"click",toggle_function)},Dialog:function(){}};CPANEL.widgets.Dialog.dialog_header_template="<div class='lt'></div><span>{header}</span><div class='rt'></div>";CPANEL.widgets.Dialog.dialog_header_rule=/<.*class='lt'.*\/>|<.*class='rt'.*\/>/gi;CPANEL.widgets.Dialog.applyDialogHeader=function applyDialogHeader(header){var CwD=CPANEL.widgets.Dialog;if(!header.match(CwD.dialog_header_rule)){header=YAHOO.lang.substitute(CwD.dialog_header_template,{header:header})}return header};YAHOO.lang.extend(CPANEL.widgets.Text_Input_Placeholder,YAHOO.widget.Overlay);var _is_ie6_or_7=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=7;if(_is_ie6_or_7){var ie_shell_prototype;CPANEL.widgets.Text_Input_Placeholder.prototype.setBody=function(content){if(content.nodeName){if(!ie_shell_prototype){ie_shell_prototype=document.createElement("div");ie_shell_prototype.className="cjt-ie-shell"}var ie_shell=ie_shell_prototype.cloneNode(false);ie_shell.appendChild(content)}else{content='<div class="cjt-ie-shell">'+content+"</div>"}return this.constructor.superclass.setBody.call(this,content)}}var Notice=function(id,opts){if(id){if(typeof id==="object"){opts=id;id=DOM.generateId()}}else{id=DOM.generateId()}Notice.superclass.constructor.call(this,id,opts)};Notice.LEVELS={success:"success",info:"info",error:"error",warn:"warn"};Notice.CLASS="cjt-notice";Notice.CLASSES={success:"cjt-notice-success",info:"cjt-notice-info",warn:"cjt-notice-warn",error:"cjt-notice-error"};YAHOO.lang.extend(Notice,YAHOO.widget.Module,{render:function(render_obj,mod_el){var container;if(render_obj){container=DOM.get(render_obj)}if(container){this.cfg.queueProperty("container",container)}else{var container_property=this.cfg.getProperty("container");container=DOM.get(container_property);if(!container){container=document.body;this.cfg.queueProperty("container",container)}}DOM.addClass(container,"cjt-notice-container");if(EVENT.DOMReady){var visible=this.cfg.getProperty("visible");if(visible){this.element.style.display="none";this.renderEvent.subscribe(function do_vis(){this.renderEvent.unsubscribe(do_vis);this.animated_show()})}}return Notice.superclass.render.call(this,container,mod_el)},init:function(el,opts){Notice.superclass.init.call(this,el);this.beforeInitEvent.fire(Notice);DOM.addClass(this.element,Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Notice)},animated_show:function(){this.beforeShowEvent.fire();var replacee=this.cfg.getProperty("replaces");if(replacee){if(typeof replacee==="string"){replacee=DOM.get(replacee)}else if(replacee instanceof Notice){replacee=replacee.element}}if(replacee){replacee.parentNode.removeChild(replacee)}var ret=CPANEL.animate.slide_down(this.element);this.showEvent.fire();this.cfg.setProperty("visible",true,true);return ret},initDefaultConfig:function(){Notice.superclass.initDefaultConfig.call(this);this.cfg.addProperty("replaces",{value:null});this.cfg.addProperty("level",{value:"info",handler:this.config_level});this.cfg.addProperty("content",{value:"",handler:this.config_content});this.cfg.addProperty("container",{value:null})},config_content:function(type,args,obj){var content=args[0];if(!this.body){this.setBody('<div class="cjt-notice-content">'+content+"</div>")}else{CPANEL.Y(this.body).one(".cjt-notice-content").innerHTML=content}this._content_el=this.body.firstChild},fade_out:function(){if(!this._fading_out&&this.cfg){var fade=CPANEL.animate.fade_out(this.element);if(fade){this._fading_out=fade;this.after_hideEvent.subscribe(this.destroy,this,true);fade.onComplete.subscribe(this.hide,this,true)}}},config_level:function(type,args,obj){var level=args[0];var level_class=level&&Notice.CLASSES[level];if(level_class){if(this._level_class){DOM.replaceClass(this.element,this._level_class,level_class)}else{DOM.addClass(this.element,level_class)}this._level_class=level_class}}});var Page_Notice=function(){Page_Notice.superclass.constructor.apply(this,arguments)};Page_Notice.CLASS="cjt-pagenotice";Page_Notice.DEFAULT_CONTAINER_ID="cjt_pagenotice_container";YAHOO.lang.extend(Page_Notice,Notice,{init:function(el,opts){Page_Notice.superclass.init.call(this,el);this.beforeInitEvent.fire(Page_Notice);DOM.addClass(this.element,Page_Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Page_Notice)},initDefaultConfig:function(){Page_Notice.superclass.initDefaultConfig.call(this);if(!this.cfg.getProperty("container")){this.cfg.queueProperty("container",Page_Notice.DEFAULT_CONTAINER_ID)}},render:function(container){container=DOM.get(container||this.cfg.getProperty("container"));if(container){DOM.addClass(container,"cjt-pagenotice-container")}var args_copy=Array.prototype.slice.call(arguments,0);args_copy[0]=container;var ret=Page_Notice.superclass.render.apply(this,args_copy);return ret}});var Dynamic_Page_Notice=function(){Dynamic_Page_Notice.superclass.constructor.apply(this,arguments)};Dynamic_Page_Notice.CLASS="cjt-dynamic-pagenotice";Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME=30;YAHOO.lang.extend(Dynamic_Page_Notice,Page_Notice,{init:function(el,opts){Dynamic_Page_Notice.superclass.init.call(this,el);this.changeBodyEvent.subscribe(this._add_close_button);this.changeBodyEvent.subscribe(this._add_close_link);this.beforeInitEvent.fire(Dynamic_Page_Notice);DOM.addClass(this.element,Dynamic_Page_Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Dynamic_Page_Notice);this.cfg.subscribeToConfigEvent("content",this._reset_close_link,this,true)},_add_close_link:function(){var close_text=LOCALE.maketext("Click to close.");var close_html='<a href="javascript:void(0)">'+close_text+"</a>";var close_link;var nodes=CPANEL.dom.create_from_markup(close_html);close_link=nodes[0];DOM.addClass(close_link,"cjt-dynamic-pagenotice-close-link");EVENT.on(close_link,"click",this.fade_out,this,true);this.body.appendChild(close_link);if(this.cfg.getProperty("level")==="success"){close_link.innerHTML+=' [<span id="'+this.element.id+'_countdown">'+Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME+"</span>]";this._countdown_timeout=CPANEL.util.countdown(this.element.id+"_countdown",this.fade_out.bind(this))}},_reset_close_link:function(){if(this.cfg.getProperty("level")==="success"){var span_el=DOM.get(this.element.id+"_countdown");span_el.innerHTML=Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME}},_add_close_button:function(){if(!this._cjt_close_button||!DOM.inDocument(this._cjt_close_button)){this.body.innerHTML+=closeButton;this._cjt_close_button=CPANEL.Y(this.body).one(".cjt-dynamic-pagenotice-close-button");EVENT.on(this._cjt_close_button,"click",this.fade_out,this,true)}},_cjt_close_button:null});CPANEL.widgets.Notice=Notice;CPANEL.widgets.Page_Notice=Page_Notice;CPANEL.widgets.Dynamic_Page_Notice=Dynamic_Page_Notice;var _prototype_wrapper;var _arrow_key_codes={37:1,38:1,39:1,40:1};var Wrapped_Select=function(sel){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9){return}if(typeof sel==="string"){sel=DOM.get(sel)}if(sel.multiple){throw"Can't use Wrapped_Select on multi-select!"}if(!_prototype_wrapper){var dummy=document.createElement("div");dummy.innerHTML="<div class='cjt-wrapped-select'><div class='cjt-wrapped-select-skin'></div><div class='cjt-wrapped-select-icon'></div></div>";_prototype_wrapper=dummy.removeChild(dummy.firstChild)}var wrapper=this._wrapper=_prototype_wrapper.cloneNode(true);if(sel.id){wrapper.id=sel.id+"-cjt-wrapped-select"}this._select=sel;this._options=sel.options;this._label=wrapper.firstChild;this.synchronize_label();sel.parentNode.insertBefore(wrapper,sel);wrapper.insertBefore(sel,this._label);EVENT.on(sel,"keydown",function(e){if(_arrow_key_codes[e.keyCode]){setTimeout(function(){sel.blur();sel.focus()},1)}});EVENT.on(sel,"change",this.synchronize_label,this,true)};Wrapped_Select.prototype.synchronize_label=function(){if(this._select){var label="";var idx=this._select.selectedIndex;if(idx>-1){var opt=this._options[idx];label=CPANEL.util.get_text_content(opt)||opt.value}CPANEL.util.set_text_content(this._label,label)}else{this.synchronize_label=Object}};CPANEL.widgets.Wrapped_Select=Wrapped_Select;var Touch_Tooltip=function(el,cfg){if(!cfg){cfg=el;el=null}if(!el){el=DOM.generateId()}return YAHOO.widget.Tooltip.call(this,el,cfg)};var CustomEvent=YAHOO.util.CustomEvent;var Event=EVENT;YAHOO.lang.extend(Touch_Tooltip,YAHOO.widget.Tooltip,{initEvents:function(){Touch_Tooltip.superclass.initEvents.call(this);var SIGNATURE=CustomEvent.LIST;this.contextMouseDownEvent=this.createEvent("contextMouseDown");this.contextMouseDownEvent.signature=SIGNATURE},onContextMouseDown:function(e,obj){var context=this;if(obj.fireEvent("contextMouseDown",context,e)!==false&&!obj.cfg.getProperty("disabled")){var showdelay=obj.cfg.getProperty("showdelay");var hidedelay=obj.cfg.getProperty("hidedelay");obj.cfg.setProperty("showdelay",0);obj.cfg.setProperty("hidedelay",0);if(obj.cfg.getProperty("visible")){obj.doHide()}else{obj.doShow()}obj.cfg.setProperty("showdelay",showdelay);obj.cfg.setProperty("hidedelay",hidedelay)}},configContext:function(type,args,obj){YAHOO.widget.Overlay.prototype.configContext.apply(this,arguments);var context=args[0],aElements,nElements,oElement,i;if(context){if(!(context instanceof Array)){if(typeof context=="string"){this.cfg.setProperty("context",[document.getElementById(context)],true)}else{this.cfg.setProperty("context",[context],true)}context=this.cfg.getProperty("context")}this._removeEventListeners();this._context=context;aElements=this._context;if(aElements){nElements=aElements.length;if(nElements>0){i=nElements-1;do{oElement=aElements[i];Event.on(oElement,"mouseover",this.onContextMouseOver,this);Event.on(oElement,"mousemove",this.onContextMouseMove,this);Event.on(oElement,"mouseout",this.onContextMouseOut,this);Event.on(oElement,"mousedown",this.onContextMouseDown,this)}while(i--)}}}},_removeEventListeners:function(){Touch_Tooltip.superclass._removeEventListeners.call(this);var aElements=this._context,nElements,oElement,i;if(aElements){nElements=aElements.length;if(nElements>0){i=nElements-1;do{oElement=aElements[i];Event.removeListener(oElement,"mouseover",this.onContextMouseOver);Event.removeListener(oElement,"mousemove",this.onContextMouseMove);Event.removeListener(oElement,"mouseout",this.onContextMouseOut);Event.removeListener(oElement,"mousedown",this.onContextMouseDown)}while(i--)}}}});CPANEL.widgets.Touch_Tooltip=Touch_Tooltip}})();(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=YAHOO.util.Dom;var EVENT=YAHOO.util.Event;var document=window.document;if("YAHOO"in window&&YAHOO.widget&&YAHOO.widget.Panel){var _old_init=YAHOO.widget.Panel.prototype.init;YAHOO.widget.Panel.prototype.init=function(el,userConfig){_old_init.apply(this,arguments);this.cfg.addProperty("noscroll",{value:!!userConfig&&!!userConfig.noscroll})};var _old_initEvents=YAHOO.widget.Panel.prototype.initEvents;YAHOO.widget.Panel.prototype.initEvents=function(){_old_initEvents.apply(this,arguments);this.renderEvent.subscribe(function(){if(this.cfg.getProperty("noscroll")){var wrapper_div=document.createElement("div");
wrapper_div.style.position="fixed";var parent_node=this.element.parentNode;parent_node.insertBefore(wrapper_div,this.element);wrapper_div.appendChild(this.element);this.wrapper=wrapper_div}})}}if(!YAHOO.widget.Overlay._offset_uses_margin){var Overlay=YAHOO.widget.Overlay;var _align=Overlay.prototype.align;var _margins_to_check={};_margins_to_check[Overlay.TOP_LEFT]=["margin-top","margin-left"];_margins_to_check[Overlay.TOP_RIGHT]=["margin-top","margin-right"];_margins_to_check[Overlay.BOTTOM_LEFT]=["margin-bottom","margin-left"];_margins_to_check[Overlay.BOTTOM_RIGHT]=["margin-bottom","margin-right"];Overlay.prototype.align=function(el_align,context_align,xy_offset){if(!el_align){if(this.cfg){var this_context=this.cfg.getProperty("context");if(this_context){el_align=this_context[1];if(!context_align){context_align=this_context[2]}if(!xy_offset){xy_offset=this_context[4]}}}}if(!el_align){return _align.apply(this,arguments)}var el=this.element;var margins=_margins_to_check[el_align];var el_y_offset=parseInt(DOM.getStyle(el,margins[0]),10)||0;var el_x_offset=parseInt(DOM.getStyle(el,margins[1]),10)||0;if(el_x_offset){var x_offset_is_negative=el_align===Overlay.BOTTOM_RIGHT||el_align===Overlay.TOP_RIGHT;if(x_offset_is_negative){el_x_offset*=-1}}if(el_y_offset){var y_offset_is_negative=el_align===Overlay.BOTTOM_LEFT||el_align===Overlay.BOTTOM_RIGHT;if(y_offset_is_negative){el_y_offset*=-1}}if(el_x_offset||el_y_offset){var new_xy_offset;if(xy_offset){new_xy_offset=[xy_offset[0]+el_x_offset,xy_offset[1]+el_y_offset]}else{new_xy_offset=[el_x_offset,el_y_offset]}return _align.call(this,el_align,context_align,new_xy_offset)}else{return _align.apply(this,arguments)}};Overlay._offset_uses_margin=true}if(!YAHOO.widget.Dialog._handles_enter){var _registerForm=YAHOO.widget.Dialog.prototype.registerForm;YAHOO.widget.Dialog.prototype.registerForm=function(){_registerForm.apply(this,arguments);if(!this._cjt_dummy_input){var dummy_input=document.createElement("input");dummy_input.style.display="none";this.form.appendChild(dummy_input);this._cjt_dummy_input=dummy_input}};var _key_listener=YAHOO.util.KeyListener;var new_key_listener=function(attach_to,key_data,handler,event){var new_key_data={};for(var key in key_data){new_key_data[key]=key_data[key]}this.key_data=new_key_data;_key_listener.call(this,attach_to,new_key_data,handler,event)};YAHOO.lang.extend(new_key_listener,_key_listener);YAHOO.lang.augmentObject(new_key_listener,_key_listener);YAHOO.util.KeyListener=new_key_listener;var _init=YAHOO.widget.Dialog.prototype.init;var _non_submit={textarea:true,select:true};YAHOO.widget.Dialog.prototype.init=function(el,cfg){var ret=_init.apply(this,arguments);var key_listeners=this.cfg.getProperty("keylisteners");var need_to_add_enter_key_listener=!key_listeners;if(key_listeners){if(!(key_listeners instanceof Array)){key_listeners=[key_listeners]}need_to_add_enter_key_listener=!key_listeners.some(function(kl){if(!kl.key_data){return false}if(kl.key_data.keys===13){return true}if(kl.key_data.indexOf&&kl.key_data.indexOf(13)!==-1){return true}return false})}else{key_listeners=[];need_to_add_enter_key_listener=true}if(need_to_add_enter_key_listener){var the_dialog=this;key_listeners.push(new YAHOO.util.KeyListener(document.body,{keys:13},function(type,args){if(the_dialog.cfg.getProperty("postmethod")!=="form"){var original=EVENT.getTarget(args[1]);if(original&&!_non_submit[original.nodeName.toLowerCase()]&&original.form===the_dialog.form){the_dialog.submit()}}}));this.cfg.setProperty("keylisteners",key_listeners)}return ret};YAHOO.widget.Dialog._handles_enter=true}var _configButtons=YAHOO.widget.Dialog.prototype.configButtons;YAHOO.widget.Dialog.prototype.configButtons=function(){var ret=_configButtons.apply(this,arguments);var button_defs=this.cfg.getProperty("buttons");if(!button_defs||!button_defs.length){return ret}var buttons=this.getButtons();if(!buttons.length){return ret}var yui_button=YAHOO.widget.Button&&buttons[0]instanceof YAHOO.widget.Button;for(var b=buttons.length-1;b>=0;b--){var cur_button=buttons[b];var classes=button_defs[b].classes;if(classes){if(classes instanceof Array){classes=classes.join(" ")}if(yui_button){cur_button.addClass(classes)}else{DOM.addClass(cur_button,classes)}}}return ret};var modpro=YAHOO.widget.Module.prototype;var init_ev=modpro.initEvents;modpro.initEvents=function(){init_ev.apply(this,arguments);this.after_hideEvent=this.createEvent("after_hide");this.after_hideEvent.signature=YAHOO.util.CustomEvent.LIST};var hide=modpro.hide;modpro.hide=function(){var delayed=this.cfg.getProperty("effect");if(delayed){this.hideEvent.subscribe(function afterward(){this.hideEvent.unsubscribe(afterward);this.after_hideEvent.fire()})}hide.apply(this,arguments);if(!delayed){this.after_hideEvent.fire()}}})(window);(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):new Function("return "+a)();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" "," ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1e8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k
}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case"only":case"first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case"last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case"nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m==="="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j={},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===1?k=k.firstChild:k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/gi,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])
},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-1e4?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);