var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,d=/[^-+\dA-Z]/g,c=function(f,e){f=String(f);e=e||2;while(f.length<e){f="0"+f}return f};return function(i,v,q){var g=dateFormat;if(arguments.length==1&&Object.prototype.toString.call(i)=="[object String]"&&!/\d/.test(i)){v=i;i=undefined}i=i?new Date(i):new Date;if(isNaN(i)){throw SyntaxError("invalid date")}v=String(g.masks[v]||v||g.masks["default"]);if(v.slice(0,4)=="UTC:"){v=v.slice(4);q=true}var t=q?"getUTC":"get",l=i[t+"Date"](),e=i[t+"Day"](),j=i[t+"Month"](),p=i[t+"FullYear"](),r=i[t+"Hours"](),k=i[t+"Minutes"](),u=i[t+"Seconds"](),n=i[t+"Milliseconds"](),f=q?0:i.getTimezoneOffset(),h={d:l,dd:c(l),ddd:g.i18n.dayNames[e],dddd:g.i18n.dayNames[e+7],m:j+1,mm:c(j+1),mmm:g.i18n.monthNames[j],mmmm:g.i18n.monthNames[j+12],yy:String(p).slice(2),yyyy:p,h:r%12||12,hh:c(r%12||12),H:r,HH:c(r),M:k,MM:c(k),s:u,ss:c(u),l:c(n,3),L:c(n>99?Math.round(n/10):n),t:r<12?"a":"p",tt:r<12?"am":"pm",T:r<12?"A":"P",TT:r<12?"AM":"PM",Z:q?"UTC":(String(i).match(b)||[""]).pop().replace(d,""),o:(f>0?"-":"+")+c(Math.floor(Math.abs(f)/60)*100+Math.abs(f)%60,4),S:["th","st","nd","rd"][l%10>3?0:(l%100-l%10!=10)*l%10]};return v.replace(a,function(m){return m in h?h[m]:m.slice(1,m.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(a,b){return dateFormat(this,a,b)};function vdie(){var c=function(h){var g=typeof h,e;if(g=="object"&&!h){return"null"}if(g=="object"){if(!h.constructor){return"object"}var d=h.constructor.toString();if(e=d.match(/(\w+)\(/)){d=e[1].toLowerCase()}var f=["boolean","number","string","array"];for(key in f){if(d==f[key]){g=f[key];break}}}return g};var b="";for(var a=0;a<arguments.length;a++){b+=(a+1)+") ["+c(arguments[a])+"] "+print_r(arguments[a],true)+"\n"}alert(b)};;
function array_filter(a,c){var d={},b;for(b in a){if(c(a[b])){d[b]=a[b]}}return d}function array_intersect(){var c=arguments[0],f={};var e="",a={},d=0,b="";arr1keys:for(e in c){arrs:for(d=1;d<arguments.length;d++){a=arguments[d];for(b in a){if(a[b]===c[e]){if(d===arguments.length-1){f[e]=c[e]}continue arrs}}continue arr1keys}}return f}function array_key_exists(b,a){if(!a||(a.constructor!==Array&&a.constructor!==Object)){return false}return b in a}function array_map(l){var b=arguments.length,g=arguments;var d=g[1].length,e=0,c=1,a=0;var f=[],h=[];while(e<d){while(c<b){f[a++]=g[c++][e]}a=0;c=1;if(l){if(typeof l==="string"){l=this.window[l]}h[e++]=l.apply(null,f)}else{h[e++]=f}f=[]}return h}function array_merge(){var c=Array.prototype.slice.call(arguments),f={},a,b=0,e=0,g=true;for(e=0;e<c.length;e++){if(!(c[e] instanceof Array)){g=false;break}}if(g){g=[];for(e=0;e<c.length;e++){g=g.concat(c[e])}return g}var d=0;for(e=0,d=0;e<c.length;e++){if(c[e] instanceof Array){for(b=0;b<c[e].length;b++){f[d++]=c[e][b]}}else{for(a in c[e]){if(c[e].hasOwnProperty(a)){if(parseInt(a,10)+""===a){f[d++]=c[e][a]}else{f[a]=c[e][a]}}}}}return f}function array_pop(d){var c="",a="";if(d.hasOwnProperty("length")){if(!d.length){return null}return d.pop()}else{for(c in d){if(d.hasOwnProperty(c)){a=c}}if(a){var b=d[a];delete (d[a]);return b}else{return null}}}function array_shift(e){var d=false,a=undefined,g="",c=/^\d$/,f=-1,b=function(h,k,j){if(h[k]!==undefined){var i=k;k+=1;if(k===j){k+=1}k=b(h,k,j);h[k]=h[i];delete h[i]}return k};if(e.length===0){return null}if(e.length>0){return e.shift()}}function current(a){this.php_js=this.php_js||{};this.php_js.pointers=this.php_js.pointers||[];var f=function(k){for(var h=0,j=this.length;h<j;h++){if(this[h]===k){return h}}return -1};var c=this.php_js.pointers;if(!c.indexOf){c.indexOf=f}if(c.indexOf(a)===-1){c.push(a,0)}var e=c.indexOf(a);var g=c[e+1];if(a instanceof Array){return a[g]||false}var d=0;for(var b in a){if(d===g){return a[b]}d++}return false}function end(a){this.php_js=this.php_js||{};this.php_js.pointers=this.php_js.pointers||[];var f=function(k){for(var h=0,j=this.length;h<j;h++){if(this[h]===k){return h}}return -1};var c=this.php_js.pointers;if(!c.indexOf){c.indexOf=f}if(c.indexOf(a)===-1){c.push(a,0)}var e=c.indexOf(a);if(!(a instanceof Array)){var d=0;for(var b in a){d++;var g=a[b]}if(d===0){return false}c[e+1]=d-1;return g}if(a.length===0){return false}c[e+1]=a.length-1;return a[c[e+1]]}function in_array(e,d,c){var b="",a=!!c;if(a){for(b in d){if(d[b]===e){return true}}}else{for(b in d){if(d[b]==e){return true}}}return false}function key(a){this.php_js=this.php_js||{};this.php_js.pointers=this.php_js.pointers||[];var e=function(j){for(var g=0,h=this.length;g<h;g++){if(this[g]===j){return g}}return -1};var c=this.php_js.pointers;if(!c.indexOf){c.indexOf=e}if(c.indexOf(a)===-1){c.push(a,0)}var f=c[c.indexOf(a)+1];if(!(a instanceof Array)){var d=0;for(var b in a){if(d===f){return b}d++}return false}if(a.length===0){return false}return f}function date(j,h){var g=this,i,e,b=/\\?([a-z])/gi,a,c=function(l,f){if((l=l+"").length<f){return new Array((++f)-l.length).join("0")+l}return l},d=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],k={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"};a=function(f,l){return e[f]?e[f]():l};e={d:function(){return c(e.j(),2)},D:function(){return e.l().slice(0,3)},j:function(){return i.getDate()},l:function(){return d[e.w()]+"day"},N:function(){return e.w()||7},S:function(){return k[e.j()]||"th"},w:function(){return i.getDay()},z:function(){var l=new Date(e.Y(),e.n()-1,e.j()),f=new Date(e.Y(),0,1);return Math.round((l-f)/86400000)+1},W:function(){var l=new Date(e.Y(),e.n()-1,e.j()-e.N()+3),f=new Date(l.getFullYear(),0,4);return 1+Math.round((l-f)/86400000/7)},F:function(){return d[6+e.n()]},m:function(){return c(e.n(),2)},M:function(){return e.F().slice(0,3)},n:function(){return i.getMonth()+1},t:function(){return(new Date(e.Y(),e.n(),0)).getDate()},L:function(){return new Date(e.Y(),1,29).getMonth()===1|0},o:function(){var m=e.n(),f=e.W(),l=e.Y();return l+(m===12&&f<9?-1:m===1&&f>9)},Y:function(){return i.getFullYear()},y:function(){return(e.Y()+"").slice(-2)},a:function(){return i.getHours()>11?"pm":"am"},A:function(){return e.a().toUpperCase()},B:function(){var l=i.getUTCHours()*3600,f=i.getUTCMinutes()*60,m=i.getUTCSeconds();return c(Math.floor((l+f+m+3600)/86.4)%1000,3)},g:function(){return e.G()%12||12},G:function(){return i.getHours()},h:function(){return c(e.g(),2)},H:function(){return c(e.G(),2)},i:function(){return c(i.getMinutes(),2)},s:function(){return c(i.getSeconds(),2)},u:function(){return c(i.getMilliseconds()*1000,6)},e:function(){throw"Not supported (see source code of date() for timezone on how to add support)"},I:function(){var l=new Date(e.Y(),0),n=Date.UTC(e.Y(),0),f=new Date(e.Y(),6),m=Date.UTC(e.Y(),6);return 0+((l-n)!==(f-m))},O:function(){var f=i.getTimezoneOffset();return(f>0?"-":"+")+c(Math.abs(f/60*100),4)},P:function(){var f=e.O();return(f.substr(0,3)+":"+f.substr(3,2))},T:function(){return"UTC"},Z:function(){return -i.getTimezoneOffset()*60},c:function(){return"Y-m-d\\Th:i:sP".replace(b,a)},r:function(){return"D, d M Y H:i:s O".replace(b,a)},U:function(){return i.getTime()/1000|0}};this.date=function(l,f){g=this;i=((typeof f==="undefined")?new Date():(f instanceof Date)?new Date(f):new Date(f*1000));return l.replace(b,a)};return this.date(j,h)}function basename(d,c){var a=d.replace(/^.*[\/\\]/g,"");if(typeof(c)=="string"&&a.substr(a.length-c.length)==c){a=a.substr(0,a.length-c.length)}return a}function dirname(a){return a.replace(/\\/g,"/").replace(/\/[^\/]*\/?$/,"")}function json_decode(str_json){var json=this.window.JSON;if(typeof json==="object"&&typeof json.parse==="function"){try{return json.parse(str_json)}catch(err){if(!(err instanceof SyntaxError)){throw new Error("Unexpected error type in json_decode()")}this.php_js=this.php_js||{};this.php_js.last_error_json=4;return null}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var j;var text=str_json;cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if((/^[\],:{}\s]*$/).test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return j}this.php_js=this.php_js||{};this.php_js.last_error_json=4;return null}function json_encode(g){var e,b=this.window.JSON;try{if(typeof b==="object"&&typeof b.stringify==="function"){e=b.stringify(g);if(e===undefined){throw new SyntaxError("json_encode")}return e}var d=g;var a=function(h){var j=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};j.lastIndex=0;return j.test(h)?'"'+h.replace(j,function(k){var l=i[k];return typeof l==="string"?l:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+h+'"'};var f=function(s,o){var q="";var j="    ";var m=0;var l="";var t="";var h=0;var p=q;var n=[];var r=o[s];if(r&&typeof r==="object"&&typeof r.toJSON==="function"){r=r.toJSON(s)}switch(typeof r){case"string":return a(r);case"number":return isFinite(r)?String(r):"null";case"boolean":case"null":return String(r);case"object":if(!r){return"null"}if((this.PHPJS_Resource&&r instanceof this.PHPJS_Resource)||(window.PHPJS_Resource&&r instanceof window.PHPJS_Resource)){throw new SyntaxError("json_encode")}q+=j;n=[];if(Object.prototype.toString.apply(r)==="[object Array]"){h=r.length;for(m=0;m<h;m+=1){n[m]=f(m,r)||"null"}t=n.length===0?"[]":q?"[\n"+q+n.join(",\n"+q)+"\n"+p+"]":"["+n.join(",")+"]";q=p;return t}for(l in r){if(Object.hasOwnProperty.call(r,l)){t=f(l,r);if(t){n.push(a(l)+(q?": ":":")+t)}}}t=n.length===0?"{}":q?"{\n"+q+n.join(",\n"+q)+"\n"+p+"}":"{"+n.join(",")+"}";q=p;return t;case"undefined":case"function":default:throw new SyntaxError("json_encode")}};return f("",{"":d})}catch(c){if(!(c instanceof SyntaxError)){throw new Error("Unexpected error type in json_encode()")}this.php_js=this.php_js||{};this.php_js.last_error_json=4;return null}}function echo(){var arg="",argc=arguments.length,argv=arguments,i=0,holder,win=this.window,d=win.document,ns_xhtml="http://www.w3.org/1999/xhtml",ns_xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";var stringToDOM=function(str,parent,ns,container){var extraNSs="";if(ns===ns_xul){extraNSs=' xmlns:html="'+ns_xhtml+'"'}var stringContainer="<"+container+' xmlns="'+ns+'"'+extraNSs+">"+str+"</"+container+">";var dils=win.DOMImplementationLS,dp=win.DOMParser,ax=win.ActiveXObject;if(dils&&dils.createLSInput&&dils.createLSParser){var lsInput=dils.createLSInput();lsInput.stringData=stringContainer;var lsParser=dils.createLSParser(1,null);return lsParser.parse(lsInput).firstChild}else{if(dp){try{var fc=new dp().parseFromString(stringContainer,"text/xml");if(fc&&fc.documentElement&&fc.documentElement.localName!=="parsererror"&&fc.documentElement.namespaceURI!=="http://www.mozilla.org/newlayout/xml/parsererror.xml"){return fc.documentElement.firstChild}}catch(e){}}else{if(ax){var axo=new ax("MSXML2.DOMDocument");axo.loadXML(str);return axo.documentElement}}}if(d.createElementNS&&(d.documentElement.namespaceURI||d.documentElement.nodeName.toLowerCase()!=="html"||(d.contentType&&d.contentType!=="text/html"))){holder=d.createElementNS(ns,container)}else{holder=d.createElement(container)}holder.innerHTML=str;while(holder.firstChild){parent.appendChild(holder.firstChild)}return false};var ieFix=function(node){if(node.nodeType===1){var newNode=d.createElement(node.nodeName);var i,len;if(node.attributes&&node.attributes.length>0){for(i=0,len=node.attributes.length;i<len;i++){newNode.setAttribute(node.attributes[i].nodeName,node.getAttribute(node.attributes[i].nodeName))}}if(node.childNodes&&node.childNodes.length>0){for(i=0,len=node.childNodes.length;i<len;i++){newNode.appendChild(ieFix(node.childNodes[i]))}}return newNode}else{return d.createTextNode(node.nodeValue)}};var replacer=function(s,m1,m2){if(m1!=="\\"){return m1+eval(m2)}else{return s}};this.php_js=this.php_js||{};var phpjs=this.php_js,ini=phpjs.ini,obs=phpjs.obs;for(i=0;i<argc;i++){arg=argv[i];if(ini&&ini["phpjs.echo_embedded_vars"]){arg=arg.replace(/(.?)\{?\$(\w*?\}|\w*)/g,replacer)}if(!phpjs.flushing&&obs&&obs.length){obs[obs.length-1].buffer+=arg;continue}if(d.appendChild){if(d.body){if(win.navigator.appName==="Microsoft Internet Explorer"){d.body.appendChild(stringToDOM(ieFix(arg)))}else{var unappendedLeft=stringToDOM(arg,d.body,ns_xhtml,"div").cloneNode(true);if(unappendedLeft){d.body.appendChild(unappendedLeft)}}}else{d.documentElement.appendChild(stringToDOM(arg,d.documentElement,ns_xul,"description"))}}else{if(d.write){d.write(arg)}}}}function number_format(f,c,h,e){f=(f+"").replace(/[^0-9+\-Ee.]/g,"");var b=!isFinite(+f)?0:+f,a=!isFinite(+c)?0:Math.abs(c),j=(typeof e==="undefined")?",":e,d=(typeof h==="undefined")?".":h,i="",g=function(o,m){var l=Math.pow(10,m);return""+Math.round(o*l)/l};i=(a?g(b,a):""+Math.round(b)).split(".");if(i[0].length>3){i[0]=i[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,j)}if((i[1]||"").length<a){i[1]=i[1]||"";i[1]+=new Array(a-i[1].length+1).join("0")}return i.join(d)}function sprintf(){var g=/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g;var h=arguments,f=0,k=h[f++];var b=function(n,a,i,m){if(!i){i=" "}var l=(n.length>=a)?"":Array(1+a-n.length>>>0).join(i);return m?n+l:l+n};var c=function(m,l,p,a,i,o){var n=a-m.length;if(n>0){if(p||!i){m=b(m,a,o,p)}else{m=m.slice(0,l.length)+b("",n,"0",true)+m.slice(l.length)}}return m};var j=function(p,o,n,q,i,a,m){var l=p>>>0;n=n&&l&&{"2":"0b","8":"0","16":"0x"}[o]||"";p=n+b(l.toString(o),a||0,"0",false);return c(p,n,q,i,m)};var e=function(m,o,i,a,l,n){if(a!=null){m=m.slice(0,a)}return c(m,"",o,i,l,n)};var d=function(z,m,n,r,B,w,l){var a;var v;var i;var A;var t;if(z=="%%"){return"%"}var s=false,o="",q=false,y=false,x=" ";var p=n.length;for(var u=0;n&&u<p;u++){switch(n.charAt(u)){case" ":o=" ";break;case"+":o="+";break;case"-":s=true;break;case"'":x=n.charAt(u+1);break;case"0":q=true;break;case"#":y=true;break}}if(!r){r=0}else{if(r=="*"){r=+h[f++]}else{if(r.charAt(0)=="*"){r=+h[r.slice(1,-1)]}else{r=+r}}}if(r<0){r=-r;s=true}if(!isFinite(r)){throw new Error("sprintf: (minimum-)width must be finite")}if(!w){w="fFeE".indexOf(l)>-1?6:(l=="d")?0:undefined}else{if(w=="*"){w=+h[f++]}else{if(w.charAt(0)=="*"){w=+h[w.slice(1,-1)]}else{w=+w}}}t=m?h[m.slice(0,-1)]:h[f++];switch(l){case"s":return e(String(t),s,r,w,q,x);case"c":return e(String.fromCharCode(+t),s,r,w,q);case"b":return j(t,2,y,s,r,w,q);case"o":return j(t,8,y,s,r,w,q);case"x":return j(t,16,y,s,r,w,q);case"X":return j(t,16,y,s,r,w,q).toUpperCase();case"u":return j(t,10,y,s,r,w,q);case"i":case"d":a=(+t)|0;v=a<0?"-":o;t=v+b(String(Math.abs(a)),w,"0",false);return c(t,v,s,r,q);case"e":case"E":case"f":case"F":case"g":case"G":a=+t;v=a<0?"-":o;i=["toExponential","toFixed","toPrecision"]["efg".indexOf(l.toLowerCase())];A=["toString","toUpperCase"]["eEfFgG".indexOf(l)%2];t=v+Math.abs(a)[i](w);return c(t,v,s,r,q)[A]();default:return z}};return k.replace(g,d)}function trim(e,d){var b,a=0,c=0;e+="";if(!d){b=" \n\r\t\f\x0b\xa0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u2028\u2029\u3000"}else{d+="";b=d.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g,"$1")}a=e.length;for(c=0;c<a;c++){if(b.indexOf(e.charAt(c))===-1){e=e.substring(c);break}}a=e.length;for(c=a-1;c>=0;c--){if(b.indexOf(e.charAt(c))===-1){e=e.substring(0,c+1);break}}return b.indexOf(e.charAt(0))===-1?e:""}function ucfirst(b){b+="";var a=b.charAt(0).toUpperCase();return a+b.substr(1)}function rawurldecode(a){return decodeURIComponent(a+"")}function rawurlencode(a){a=(a+"").toString();return encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function urldecode(a){return decodeURIComponent((a+"").replace(/\+/g,"%20"))}function urlencode(a){a=(a+"").toString();return encodeURIComponent(a).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function empty(b){var a;if(b===""||b===0||b==="0"||b===null||b===false||typeof b==="undefined"){return true}if(typeof b=="object"){for(a in b){return false}return true}return false}function intval(b,d){var a;var c=typeof(b);if(c==="boolean"){return(b)?1:0}else{if(c==="string"){a=parseInt(b,d||10);return(isNaN(a)||!isFinite(a))?0:a}else{if(c==="number"&&isFinite(b)){return Math.floor(b)}else{return 0}}}}function is_array(c){var d=function(f){var e=(/\W*function\s+([\w\$]+)\s*\(/).exec(f);if(!e){return"(Anonymous)"}return e[1]},a=function(e){return Object.prototype.toString.call(e)==="[object Array]"};if(!c||typeof c!=="object"){return false}this.php_js=this.php_js||{};this.php_js.ini=this.php_js.ini||{};var b=this.php_js.ini["phpjs.objectsAsArrays"];return a(c)||(!b||((parseInt(b.local_value,10)!==0&&(!b.local_value.toLowerCase||b.local_value.toLowerCase()!=="off"))))&&(Object.prototype.toString.call(c)==="[object Object]"&&d(c.constructor)==="Object")}function is_numeric(a){return(typeof(a)==="number"||typeof(a)==="string")&&a!==""&&!isNaN(a)}function is_string(a){return(typeof(a)=="string")}function print_r(i,l){var g="",a=" ",f=4,j=this.window.document;var b=function(e){var d=(/\W*function\s+([\w\$]+)\s*\(/).exec(e);if(!d){return"(Anonymous)"}return d[1]};var k=function(d,m){var n="";for(var e=0;e<d;e++){n+=m}return n};var c=function(q,p,o,m){if(p>0){p++}var d=k(o*p,m);var n=k(o*(p+1),m);var r="";if(typeof q==="object"&&q!==null&&q.constructor&&b(q.constructor)!=="PHPJS_Resource"){r+="Array\n"+d+"(\n";for(var e in q){if(q[e] instanceof Array){r+=n+"["+e+"] => "+c(q[e],p+1,o,m)}else{r+=n+"["+e+"] => "+q[e]+"\n"}}r+=d+")\n"}else{if(q===null||q===undefined){r=""}else{r=q.toString()}}return r};g=c(i,0,f,a);if(l!==true){if(j.body){this.echo(g)}else{try{j=XULDocument;this.echo('<pre xmlns="http://www.w3.org/1999/xhtml" style="white-space:pre;">'+g+"</pre>")}catch(h){this.echo(g)}}return true}else{return g}};;
array_key=key;function PHPJS_Resource(a,c,b){this.type=a;this.id=c;this.opener=b}PHPJS_Resource.prototype.toString=function(){return"Resource id #"+this.id};PHPJS_Resource.prototype.get_resource_type=function(){return this.type};PHPJS_Resource.prototype.var_dump=function(){return"resource("+this.id+") of type ("+this.type+")"};;
var qs={scriptBaseUrl:null,create:function(){return function(){this.initialize.apply(this,arguments)}},getScriptBaseUrl:function(){if(null===qs.scriptBaseUrl){qs.scriptBaseUrl=BASE_URL+"/js"+SITE_REVISION_SUFFIX}return qs.scriptBaseUrl},includeBodyScript:function(a){$.ajaxSetup({async:false});$.getScript(qs.getScriptBaseUrl()+"/"+a);$.ajaxSetup({async:true})},getParentTag:function(c,a){var b=c;while(b=b.parentNode){if(b.nodeName==a){return b}}return null},getPreviousTag:function(c,a){var b=c;while(b=b.previousSibling){if(b.nodeName==a){return b}}return null},getNextTag:function(c,a){var b=c;while(b=b.nextSibling){if(b.nodeName==a){return b}}return null},openPopupByLocation:function(b,g,c,a){if(typeof c!="number"){if(c=="MAX"){c=screen.width}else{c=screen.width/2}}if(typeof a!="number"){if(a=="MAX"){a=screen.height}else{a=screen.height-screen.height/3}}var f=screen.height/2-a/2;var e=screen.width/2-c/2;var h="toolbar=0,location=0,menubar=0,resizable=1,status=0,scrollbars=yes,screenX="+e+",screenY="+f+",top="+f+",left="+e+",width="+c+",height="+a;var d=window.open(b,g,h);d.opener=self;d.focus()},openPopup:function(c,d,b){qs.openPopupByLocation(c.href,c.getAttribute("target"),d,b);return false},getPosition:function(f){var b=0;var d=0;var a=f.offsetWidth;var e=f.offsetHeight;while(f){b+=f.offsetLeft;d+=f.offsetTop;if((f.tagName!="TABLE")&&(f.tagName!="BODY")){b+=(f.clientLeft)?f.clientLeft:0;d+=(f.clientTop)?f.clientTop:0}f=f.offsetParent}var c=new Object();c.x=b;c.y=d;c.left=b;c.top=d;c.w=a;c.h=e;c.width=a;c.height=e;return c},popupImage:function(b){var a=150;var d=100;var f=screen.height/2-d;var e=screen.width/2-a/2;var g="Toolbar=0,location=0,Menubar=0,resizable=0,Scrollbars=no";var c=window.open("","ppimg",g);c.resizeTo(300,450);c.document.writeln("<html>");c.document.writeln("<head>");c.document.writeln("<style>");c.document.writeln("html, body {margin:0px; padding:0px;}");c.document.writeln("</style>");c.document.writeln('<script type="text/javascript">');c.document.writeln("function myResize(w,h){");c.document.writeln("window.resizeTo(w,h);");c.document.writeln("}");c.document.writeln("var img = new Image(); ");c.document.writeln("window.onload = function(){");c.document.writeln("img.onload=function(){");c.document.writeln("document.getElementById('id_image').src=this.src; ");c.document.writeln("window.resizeBy(this.width-document.body.clientWidth, this.height-document.body.clientHeight);");c.document.writeln("var top = screen.height/2-this.height/2; ");c.document.writeln("var left = screen.width/2-this.width/2; ");c.document.writeln("window.moveTo(left, top)");c.document.writeln("}");c.document.writeln("img.src='"+b+"'; ");c.document.writeln("}");c.document.writeln("<\/script>");c.document.writeln("</head>");c.document.writeln("<body>");c.document.writeln('<img id="id_image" src="images/loading-arrow-16x16.gif" onclick = "window.close();" alt="Click to close window.">');c.document.writeln("</body>");c.document.writeln("</html>");c.document.close();return false},getPageSize:function(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{b=self.innerWidth}d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=c}else{pageWidth=b}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize},backgroundImage:function(b,c){var a=document.getElementById(b);if(!a){return false}a.style.backgroundRepeat="no-repeat";$(a).focus(function(){this.style.backgroundImage=""}).blur(function(){if(this.value==""){this.style.backgroundImage="url('"+c+"')"}else{this.style.backgroundImage=""}}).blur()},imageFs:function(e,d,b,h){var a="";var g=e.lastIndexOf(".");var c="";var f="";if(g==-1){c=e}else{c=e.substr(0,g);f=e.substr(g+1)}d=intval(d);b=intval(b);if(d||b){a=c+"_"+d+"x"+b;if(h=="outer"){a+="o"}}else{a=c}if(f.length){a+="."+f}a=a.replace(/\/userfiles\/files\//,"/userfiles/images/");return a},getPlural:function(b,a){var a=Math.abs(a);if(is_array(b)){if(a>1||a==0){if(typeof b[1]!="undefined"){return b[1]}return null}return b[0]}else{if(is_string(b)){if(a>1||a==0){return b+"s"}return b}}return null}};var Qs_Message=qs.create();Qs_Message.prototype={initialize:function(a){this.messages=a},get:function(a,b){if(typeof b=="undefined"){b=CURRENT_LANGUAGE}if(typeof this.messages[b]=="undefined"){return""}if(typeof this.messages[b][a]=="string"){return this.messages[b][a]}if(typeof this.messages[DEFAULT_LANGUAGE][a]=="string"){return this.messages[DEFAULT_LANGUAGE][a]}return""}};var Qs_Array={get:function(b,d,a){if(typeof d!="undefined"){d=d.replace(/\]/g,"");var c=d.split(/\[/);while((name=array_shift(c))){if(!array_key_exists(name,b)){return(typeof a!="undefined")?a:null}b=b[name]}}return b},set:function(c,e,b){if(typeof e=="undefined"){return false}e=e.replace(/\]/g,"");var d=e.split(/\[/);var a=c;while((name=array_shift(d))){if(d.length==0){a[name]=b;break}if(!array_key_exists(name,a)){a[name]={}}a=a[name]}return true},isAssoc:function(c){if(is_array(c)){return false}var b=0;for(var a in c){if(parseInt(a,10)!=b++){return true}}return false},collapse:function(e,b){if(typeof b=="undefined"){b=""}result={};for(var a in e){var c=e[a];var d=b+(empty(b)?a:"["+a+"]");if(is_array(c)){result=array_merge(result,Qs_Array.collapse(c,d))}else{result[d]=c}}return result}};var Qs_ViewHelper={escape:function(a){return a},_initId:function(a){if(typeof a.id!="undefined"){return false}var b=a.name;if(b.substr(-2)=="[]"){b=b.substr(0,b.length-2)}if(-1!=b.indexOf("]")){b=trim(b,"]");b=b.replace(/\]\[/,"-");b=b.replace(/\[/,"-")}a.id=b},_initClass:function(a){if(typeof a["class"]=="undefined"){a["class"]=a.type}},renderAttribs:function(c){var b="";for(var a in c){b+=a+'="'+Qs_ViewHelper.escape(c[a])+'" '}return b},formHidden:function(a,b,c){if(typeof c=="undefined"){c={}}if(typeof b=="undefined"){b=""}c.type="hidden";c.name=a;c.value=b;Qs_ViewHelper._initId(c);Qs_ViewHelper._initClass(c);return"<input "+Qs_ViewHelper.renderAttribs(c)+" />"},formText:function(a,b,c){if(typeof c=="undefined"){c={}}if(typeof b=="undefined"){b=""}c.type="text";c.name=a;c.value=b;Qs_ViewHelper._initId(c);Qs_ViewHelper._initClass(c);return"<input "+Qs_ViewHelper.renderAttribs(c)+" />"},formCheckbox:function(a,c,d,b){if(typeof d=="undefined"){d={}}if(typeof c=="undefined"){c=""}if(typeof b=="undefined"){b={checkedValue:1,uncheckedValue:0}}hiddenAttribs={name:a,type:"hidden",value:b.uncheckedValue};d.type="checkbox";d.name=a;d.value=b.checkedValue;if(c==d.value){d.checked=true}Qs_ViewHelper._initId(d);Qs_ViewHelper._initClass(d);Qs_ViewHelper._initClass(hiddenAttribs);if(typeof d.checked!="undefined"){if(d.checked){d.checked="checked"}}return"<input "+Qs_ViewHelper.renderAttribs(hiddenAttribs)+" /><input "+Qs_ViewHelper.renderAttribs(d)+" />"},formLabel:function(a,b,c){if(typeof c=="undefined"){c={}}if(typeof b=="undefined"){b=""}c.name=a;Qs_ViewHelper._initId(c);c["for"]=c.id;delete c.name;delete c.id;if(typeof c.disableFor!="undefined"&&c.disableFor){delete c["for"]}return"<label "+Qs_ViewHelper.renderAttribs(c)+">"+Qs_ViewHelper.escape(b)+"</label>"}};var Qs_Form_Element_Select={setOptions:function(f,d,c){var e;var b=false;if(typeof c=="string"){b=document.createElement("OPTION");b.text=c;b.value=""}else{if(true===c){var h=f.options.item(0);if(h){b=document.createElement("OPTION");b.text=h.text;b.value=h.value}}}for(e=f.options.length-1;e>=0;e--){f.remove(e)}if(false!==b){f.options.add(b)}var a=Qs_Array.isAssoc(d);for(e in d){var g=document.createElement("OPTION");g.value=a?e:d[e].value;g.text=a?d[e]:d[e].text;f.options.add(g)}},getValue:function(b){if(b.multiple){var c=[];for(var a in b.options){if(b.options[a]!=null&&typeof b.options[a].tagName=="string"&&b.options[a].tagName=="OPTION"&&b.options[a].selected){c.push(b.options[a].value)}}return c}else{return b.value}},setValue:function(b,c){if(b.multiple){if(!is_array(c)){c=[c]}for(var a in b.options){if(b.options[a]!=null&&typeof b.options[a].tagName=="string"&&b.options[a].tagName=="OPTION"){b.options[a].selected=in_array(b.options[a].value,c)}}}else{b.value=c}}};;
/*
 * jQuery JavaScript Library v1.5.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Wed Feb 23 13:55:29 2011 -0500
 */
(function(aP,aN){function ah(b){return aJ.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}function an(e){if(!cp[e]){var d=aJ("<"+e+">").appendTo("body"),f=d.css("display");d.remove();if(f==="none"||f===""){f="block"}cp[e]=f}return cp[e]}function ap(e,d){var f={};aJ.each(aq.concat.apply([],aq.slice(0,d)),function(){f[this]=e});return f}function cs(){try{return new aP.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}}function cu(){try{return new aP.XMLHttpRequest}catch(a){}}function cw(){aJ(aP).unload(function(){for(var b in cz){cz[b](0,1)}})}function cG(B,A){B.dataFilter&&(A=B.dataFilter(A,B.dataType));var z=B.dataTypes,y={},x,w,v=z.length,u,t=z[0],s,r,q,d,b;for(x=1;x<v;x++){if(x===1){for(w in B.converters){typeof w==="string"&&(y[w.toLowerCase()]=B.converters[w])}}s=t,t=z[x];if(t==="*"){t=s}else{if(s!=="*"&&s!==t){r=s+" "+t,q=y[r]||y["* "+t];if(!q){b=aN;for(d in y){u=d.split(" ");if(u[0]===s||u[0]==="*"){b=y[u[1]+" "+t];if(b){d=y[d],d===!0?q=b:b===!0&&(q=d);break}}}}!q&&!b&&aJ.error("No conversion from "+r.replace(" "," to ")),q!==!0&&(A=q?q(A):b(d(A)))}}}return A}function cH(t,s,r){var q=t.contents,p=t.dataTypes,o=t.responseFields,n,m,l,b;for(m in o){m in r&&(s[o[m]]=r[m])}while(p[0]==="*"){p.shift(),n===aN&&(n=t.mimeType||s.getResponseHeader("content-type"))}if(n){for(m in q){if(q[m]&&q[m].test(n)){p.unshift(m);break}}}if(p[0] in r){l=p[0]}else{for(m in r){if(!p[0]||t.converters[m+" "+p[0]]){l=m;break}b||(b=m)}l=l||b}if(l){l!==p[0]&&p.unshift(l);return r[l]}}function cI(g,d,j,i){if(aJ.isArray(d)&&d.length){aJ.each(d,function(a,c){j||aR.test(g)?i(g,c):cI(g+"["+(typeof c==="object"||aJ.isArray(c)?a:"")+"]",c,j,i)})}else{if(j||d==null||typeof d!=="object"){i(g,d)}else{if(aJ.isArray(d)||aJ.isEmptyObject(d)){i(g,"")}else{for(var h in d){cI(g+"["+h+"]",d[h],j,i)}}}}}function cJ(v,u,t,s,r,q){r=r||u.dataTypes[0],q=q||{},q[r]=!0;var p=v[r],o=0,n=p?p.length:0,m=v===cP,b;for(;o<n&&(m||!b);o++){b=p[o](u,t,s),typeof b==="string"&&(!m||q[b]?b=aN:(u.dataTypes.unshift(b),b=cJ(v,u,t,s,b,q)))}(m||!b)&&!q["*"]&&(b=cJ(v,u,t,s,"*",q));return b}function cK(b){return function(a,p){typeof a!=="string"&&(p=a,a="*");if(aJ.isFunction(p)){var o=a.toLowerCase().split(cV),n=0,m=o.length,l,k,d;for(;n<m;n++){l=o[n],d=/^\+/.test(l),d&&(l=l.substr(1)||"*"),k=b[l]=b[l]||[],k[d?"unshift":"push"](p)}}}}function aU(g,d,j){var i=d==="width"?a3:a1,h=d==="width"?g.offsetWidth:g.offsetHeight;if(j==="border"){return h}aJ.each(i,function(){j||(h-=parseFloat(aJ.css(g,"padding"+this))||0),j==="margin"?h+=parseFloat(aJ.css(g,"margin"+this))||0:h-=parseFloat(aJ.css(g,"border"+this+"Width"))||0});return h}function b9(d,c){c.src?aJ.ajax({url:c.src,async:!1,dataType:"script"}):aJ.globalEval(c.text||c.textContent||c.innerHTML||""),c.parentNode&&c.parentNode.removeChild(c)}function aS(b){return"getElementsByTagName" in b?b.getElementsByTagName("*"):"querySelectorAll" in b?b.querySelectorAll("*"):[]}function cX(e,d){if(d.nodeType===1){var f=d.nodeName.toLowerCase();d.clearAttributes(),d.mergeAttributes(e);if(f==="object"){d.outerHTML=e.outerHTML}else{if(f!=="input"||e.type!=="checkbox"&&e.type!=="radio"){if(f==="option"){d.selected=e.defaultSelected}else{if(f==="input"||f==="textarea"){d.defaultValue=e.defaultValue}}}else{e.checked&&(d.defaultChecked=d.checked=e.checked),d.value!==e.value&&(d.value=e.value)}}d.removeAttribute(aJ.expando)}}function aY(r,q){if(q.nodeType===1&&aJ.hasData(r)){var p=aJ.expando,o=aJ.data(r),n=aJ.data(q,o);if(o=o[p]){var m=o.events;n=n[p]=aJ.extend({},o);if(m){delete n.handle,n.events={};for(var l in m){for(var k=0,d=m[l].length;k<d;k++){aJ.event.add(q,l+(m[l][k].namespace?".":"")+m[l][k].namespace,m[l][k],m[l][k].data)}}}}}}function a0(d,c){return aJ.nodeName(d,"table")?d.getElementsByTagName("tbody")[0]||d.appendChild(d.ownerDocument.createElement("tbody")):d}function ch(f,d,h){if(aJ.isFunction(d)){return aJ.grep(f,function(b,i){var c=!!d.call(b,i,b);return c===h})}if(d.nodeType){return aJ.grep(f,function(b,c){return b===d===h})}if(typeof d==="string"){var g=aJ.grep(f,function(b){return b.nodeType===1});if(cn.test(d)){return aJ.filter(d,g,!h)}d=aJ.filter(d,g)}return aJ.grep(f,function(b,c){return aJ.inArray(b,d)>=0===h})}function ci(b){return !b||!b.parentNode||b.parentNode.nodeType===11}function ct(d,c){return(d&&d!=="*"?d+".":"")+c.replace(al,"`").replace(aj,"&")}function cv(J){var I,H,G,F,E,D,C,B,A,z,y,x,w,v=[],u=[],p=aJ._data(this,"events");if(J.liveFired!==this&&p&&p.live&&!J.target.disabled&&(!J.button||J.type!=="click")){J.namespace&&(x=new RegExp("(^|\\.)"+J.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),J.liveFired=this;var d=p.live.slice(0);for(C=0;C<d.length;C++){E=d[C],E.origType.replace(ao,"")===J.type?u.push(E.selector):d.splice(C--,1)}F=aJ(J.target).closest(u,J.currentTarget);for(B=0,A=F.length;B<A;B++){y=F[B];for(C=0;C<d.length;C++){E=d[C];if(y.selector===E.selector&&(!x||x.test(E.namespace))&&!y.elem.disabled){D=y.elem,G=null;if(E.preType==="mouseenter"||E.preType==="mouseleave"){J.type=E.preType,G=aJ(J.relatedTarget).closest(E.selector)[0]}(!G||G!==D)&&v.push({elem:D,handleObj:E,level:y.level})}}}for(B=0,A=v.length;B<A;B++){F=v[B];if(H&&F.level>H){break}J.currentTarget=F.elem,J.data=F.handleObj.data,J.handleObj=F.handleObj,w=F.handleObj.origHandler.apply(F.elem,arguments);if(w===!1||J.isPropagationStopped()){H=F.level,w===!1&&(I=!1);if(J.isImmediatePropagationStopped()){break}}}return I}}function cA(b,h,g){var d=aJ.extend({},g[0]);d.type=b,d.originalEvent={},d.liveFired=aN,aJ.event.handle.call(h,d),d.isDefaultPrevented()&&g[0].preventDefault()}function ad(){return !0}function ae(){return !1}function aD(d){for(var c in d){if(c!=="toJSON"){return !1}}return !0}function aF(b,h,e){if(e===aN&&b.nodeType===1){e=b.getAttribute("data-"+h);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:aJ.isNaN(e)?aH.test(e)?aJ.parseJSON(e):e:parseFloat(e)}catch(d){}aJ.data(b,h,e)}else{e=aN}}return e}var aL=aP.document,aJ=function(){function J(){if(!bl.isReady){try{aL.documentElement.doScroll("left")}catch(d){setTimeout(J,1);return}bl.ready()}}var bl=function(e,d){return new bl.fn.init(e,d,bi)},bk=aP.jQuery,bj=aP.$,bi,bh=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bg=/\S/,bf=/^\s+/,be=/\s+$/,bd=/\d/,bc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bb=/^[\],:{}\s]*$/,ba=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Z=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(?:^|:|,)(?:\s*\[)+/g,V=/(webkit)[ \/]([\w.]+)/,T=/(opera)(?:.*version)?[ \/]([\w.]+)/,R=/(msie) ([\w.]+)/,P=/(mozilla)(?:.*? rv:([\w.]+))?/,N=navigator.userAgent,L,c=!1,b,a="then done fail isResolved isRejected promise".split(" "),Y,W=Object.prototype.toString,U=Object.prototype.hasOwnProperty,S=Array.prototype.push,Q=Array.prototype.slice,O=String.prototype.trim,M=Array.prototype.indexOf,K={};bl.fn=bl.prototype={constructor:bl,init:function(d,p,o){var n,m,l,h;if(!d){return this}if(d.nodeType){this.context=this[0]=d,this.length=1;return this}if(d==="body"&&!p&&aL.body){this.context=aL,this[0]=aL.body,this.selector="body",this.length=1;return this}if(typeof d==="string"){n=bh.exec(d);if(!n||!n[1]&&p){return !p||p.jquery?(p||o).find(d):this.constructor(p).find(d)}if(n[1]){p=p instanceof bl?p[0]:p,h=p?p.ownerDocument||p:aL,l=bc.exec(d),l?bl.isPlainObject(p)?(d=[aL.createElement(l[1])],bl.fn.attr.call(d,p,!0)):d=[h.createElement(l[1])]:(l=bl.buildFragment([n[1]],[h]),d=(l.cacheable?bl.clone(l.fragment):l.fragment).childNodes);return bl.merge(this,d)}m=aL.getElementById(n[2]);if(m&&m.parentNode){if(m.id!==n[2]){return o.find(d)}this.length=1,this[0]=m}this.context=aL,this.selector=d;return this}if(bl.isFunction(d)){return o.ready(d)}d.selector!==aN&&(this.selector=d.selector,this.context=d.context);return bl.makeArray(d,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this[this.length+d]:this[d]},pushStack:function(f,d,h){var g=this.constructor();bl.isArray(f)?S.apply(g,f):bl.merge(g,f),g.prevObject=this,g.context=this.context,d==="find"?g.selector=this.selector+(this.selector?" ":"")+h:d&&(g.selector=this.selector+"."+d+"("+h+")");return g},each:function(e,d){return bl.each(this,e,d)},ready:function(d){bl.bindReady(),b.done(d);return this},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(d){return this.pushStack(bl.map(this,function(e,f){return d.call(e,f,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:S,sort:[].sort,splice:[].splice},bl.fn.init.prototype=bl.fn,bl.extend=bl.fn.extend=function(){var u,t,s,r,q,p,o=arguments[0]||{},n=1,m=arguments.length,d=!1;typeof o==="boolean"&&(d=o,o=arguments[1]||{},n=2),typeof o!=="object"&&!bl.isFunction(o)&&(o={}),m===n&&(o=this,--n);for(;n<m;n++){if((u=arguments[n])!=null){for(t in u){s=o[t],r=u[t];if(o===r){continue}d&&r&&(bl.isPlainObject(r)||(q=bl.isArray(r)))?(q?(q=!1,p=s&&bl.isArray(s)?s:[]):p=s&&bl.isPlainObject(s)?s:{},o[t]=bl.extend(d,p,r)):r!==aN&&(o[t]=r)}}}return o},bl.extend({noConflict:function(d){aP.$=bj,d&&(aP.jQuery=bk);return bl},isReady:!1,readyWait:1,ready:function(d){d===!0&&bl.readyWait--;if(!bl.readyWait||d!==!0&&!bl.isReady){if(!aL.body){return setTimeout(bl.ready,1)}bl.isReady=!0;if(d!==!0&&--bl.readyWait>0){return}b.resolveWith(aL,[bl]),bl.fn.trigger&&bl(aL).trigger("ready").unbind("ready")}},bindReady:function(){if(!c){c=!0;if(aL.readyState==="complete"){return setTimeout(bl.ready,1)}if(aL.addEventListener){aL.addEventListener("DOMContentLoaded",Y,!1),aP.addEventListener("load",bl.ready,!1)}else{if(aL.attachEvent){aL.attachEvent("onreadystatechange",Y),aP.attachEvent("onload",bl.ready);var d=!1;try{d=aP.frameElement==null}catch(f){}aL.documentElement.doScroll&&d&&J()}}}},isFunction:function(d){return bl.type(d)==="function"},isArray:Array.isArray||function(d){return bl.type(d)==="array"},isWindow:function(d){return d&&typeof d==="object"&&"setInterval" in d},isNaN:function(d){return d==null||!bd.test(d)||isNaN(d)},type:function(d){return d==null?String(d):K[W.call(d)]||"object"},isPlainObject:function(d){if(!d||bl.type(d)!=="object"||d.nodeType||bl.isWindow(d)){return !1}if(d.constructor&&!U.call(d,"constructor")&&!U.call(d.constructor.prototype,"isPrototypeOf")){return !1}var e;for(e in d){}return e===aN||U.call(d,e)},isEmptyObject:function(e){for(var d in e){return !1}return !0},error:function(d){throw d},parseJSON:function(d){if(typeof d!=="string"||!d){return null}d=bl.trim(d);if(bb.test(d.replace(ba,"@").replace(Z,"]").replace(X,""))){return aP.JSON&&aP.JSON.parse?aP.JSON.parse(d):(new Function("return "+d))()}bl.error("Invalid JSON: "+d)},parseXML:function(d,g,f){aP.DOMParser?(f=new DOMParser,g=f.parseFromString(d,"text/xml")):(g=new ActiveXObject("Microsoft.XMLDOM"),g.async="false",g.loadXML(d)),f=g.documentElement,(!f||!f.nodeName||f.nodeName==="parsererror")&&bl.error("Invalid XML: "+d);return g},noop:function(){},globalEval:function(f){if(f&&bg.test(f)){var d=aL.head||aL.getElementsByTagName("head")[0]||aL.documentElement,g=aL.createElement("script");bl.support.scriptEval()?g.appendChild(aL.createTextNode(f)):g.text=f,d.insertBefore(g,d.firstChild),d.removeChild(g)}},nodeName:function(e,d){return e.nodeName&&e.nodeName.toUpperCase()===d.toUpperCase()},each:function(d,q,p){var o,n=0,m=d.length,l=m===aN||bl.isFunction(d);if(p){if(l){for(o in d){if(q.apply(d[o],p)===!1){break}}}else{for(;n<m;){if(q.apply(d[n++],p)===!1){break}}}}else{if(l){for(o in d){if(q.call(d[o],o,d[o])===!1){break}}}else{for(var k=d[0];n<m&&q.call(k,n,k)!==!1;k=d[++n]){}}}return d},trim:O?function(d){return d==null?"":O.call(d)}:function(d){return d==null?"":(d+"").replace(bf,"").replace(be,"")},makeArray:function(f,d){var h=d||[];if(f!=null){var g=bl.type(f);f.length==null||g==="string"||g==="function"||g==="regexp"||bl.isWindow(f)?S.call(h,f):bl.merge(h,f)}return h},inArray:function(f,e){if(e.indexOf){return e.indexOf(f)}for(var h=0,g=e.length;h<g;h++){if(e[h]===f){return h}}return -1},merge:function(g,k){var j=g.length,i=0;if(typeof k.length==="number"){for(var h=k.length;i<h;i++){g[j++]=k[i]}}else{while(k[i]!==aN){g[j++]=k[i++]}}g.length=j;return g},grep:function(i,h,n){var m=[],l;n=!!n;for(var k=0,j=i.length;k<j;k++){l=!!h(i[k],k),n!==l&&m.push(i[k])}return m},map:function(i,h,n){var m=[],l;for(var k=0,j=i.length;k<j;k++){l=h(i[k],k,n),l!=null&&(m[m.length]=l)}return m.concat.apply([],m)},guid:1,proxy:function(d,g,f){arguments.length===2&&(typeof g==="string"?(f=d,d=f[g],g=aN):g&&!bl.isFunction(g)&&(f=g,g=aN)),!g&&d&&(g=function(){return d.apply(f||this,arguments)}),d&&(g.guid=d.guid=d.guid||g.guid||bl.guid++);return g},access:function(s,r,q,p,o,n){var m=s.length;if(typeof r==="object"){for(var l in r){bl.access(s,l,r[l],p,o,q)}return s}if(q!==aN){p=!n&&p&&bl.isFunction(q);for(var d=0;d<m;d++){o(s[d],r,p?q.call(s[d],d,o(s[d],r)):q,n)}return s}return m?o(s[0],r):aN},now:function(){return(new Date).getTime()},_Deferred:function(){var g=[],d,j,i,h={done:function(){if(!i){var o=arguments,n,m,l,f,e;d&&(e=d,d=0);for(n=0,m=o.length;n<m;n++){l=o[n],f=bl.type(l),f==="array"?h.done.apply(h,l):f==="function"&&g.push(l)}e&&h.resolveWith(e[0],e[1])}return this},resolveWith:function(l,k){if(!i&&!d&&!j){j=1;try{while(g[0]){g.shift().apply(l,k)}}catch(e){throw e}finally{d=[l,k],j=0}}return this},resolve:function(){h.resolveWith(bl.isFunction(this.promise)?this.promise():this,arguments);return this},isResolved:function(){return j||d},cancel:function(){i=1,g=[];return this}};return h},Deferred:function(f){var d=bl._Deferred(),h=bl._Deferred(),g;bl.extend(d,{then:function(e,i){d.done(e).fail(i);return this},fail:h.done,rejectWith:h.resolveWith,reject:h.resolve,isRejected:h.isResolved,promise:function(e){if(e==null){if(g){return g}g=e={}}var i=a.length;while(i--){e[a[i]]=d[a[i]]}return e}}),d.done(h.cancel).fail(d.cancel),delete d.cancel,f&&f.call(d,d);return d},when:function(i){var d=arguments.length,n=d<=1&&i&&bl.isFunction(i.promise)?i:bl.Deferred(),m=n.promise();if(d>1){var l=Q.call(arguments,0),k=d,j=function(e){return function(f){l[e]=arguments.length>1?Q.call(arguments,0):f,--k||n.resolveWith(m,l)}};while(d--){i=l[d],i&&bl.isFunction(i.promise)?i.promise().then(j(d),n.reject):--k}k||n.resolveWith(m,l)}else{n!==i&&n.resolve(i)}return m},uaMatch:function(e){e=e.toLowerCase();var d=V.exec(e)||T.exec(e)||R.exec(e)||e.indexOf("compatible")<0&&P.exec(e)||[];return{browser:d[1]||"",version:d[2]||"0"}},sub:function(){function f(e,h){return new f.fn.init(e,h)}bl.extend(!0,f,this),f.superclass=this,f.fn=f.prototype=this(),f.fn.constructor=f,f.subclass=this.subclass,f.fn.init=function d(e,h){h&&h instanceof bl&&!(h instanceof f)&&(h=f(h));return bl.fn.init.call(this,e,h,g)},f.fn.init.prototype=f.fn;var g=f(aL);return f},browser:{}}),b=bl._Deferred(),bl.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,d){K["[object "+d+"]"]=d.toLowerCase()}),L=bl.uaMatch(N),L.browser&&(bl.browser[L.browser]=!0,bl.browser.version=L.version),bl.browser.webkit&&(bl.browser.safari=!0),M&&(bl.inArray=function(e,d){return M.call(d,e)}),bg.test("??")&&(bf=/^[\s\xA0]+/,be=/[\s\xA0]+$/),bi=bl(aL),aL.addEventListener?Y=function(){aL.removeEventListener("DOMContentLoaded",Y,!1),bl.ready()}:aL.attachEvent&&(Y=function(){aL.readyState==="complete"&&(aL.detachEvent("onreadystatechange",Y),bl.ready())});return bl}();(function(){aJ.support={};var v=aL.createElement("div");v.style.display="none",v.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var u=v.getElementsByTagName("*"),t=v.getElementsByTagName("a")[0],s=aL.createElement("select"),r=s.appendChild(aL.createElement("option")),q=v.getElementsByTagName("input")[0];if(u&&u.length&&t){aJ.support={leadingWhitespace:v.firstChild.nodeType===3,tbody:!v.getElementsByTagName("tbody").length,htmlSerialize:!!v.getElementsByTagName("link").length,style:/red/.test(t.getAttribute("style")),hrefNormalized:t.getAttribute("href")==="/a",opacity:/^0.55$/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:q.value==="on",optSelected:r.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},q.checked=!0,aJ.support.noCloneChecked=q.cloneNode(!0).checked,s.disabled=!0,aJ.support.optDisabled=!r.disabled;var p=null;aJ.support.scriptEval=function(){if(p===null){var h=aL.documentElement,k=aL.createElement("script"),j="script"+aJ.now();try{k.appendChild(aL.createTextNode("window."+j+"=1;"))}catch(i){}h.insertBefore(k,h.firstChild),aP[j]?(p=!0,delete aP[j]):p=!1,h.removeChild(k),h=k=j=null}return p};try{delete v.test}catch(o){aJ.support.deleteExpando=!1}!v.addEventListener&&v.attachEvent&&v.fireEvent&&(v.attachEvent("onclick",function d(){aJ.support.noCloneEvent=!1,v.detachEvent("onclick",d)}),v.cloneNode(!0).fireEvent("onclick")),v=aL.createElement("div"),v.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var c=aL.createDocumentFragment();c.appendChild(v.firstChild),aJ.support.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,aJ(function(){var g=aL.createElement("div"),f=aL.getElementsByTagName("body")[0];if(f){g.style.width=g.style.paddingLeft="1px",f.appendChild(g),aJ.boxModel=aJ.support.boxModel=g.offsetWidth===2,"zoom" in g.style&&(g.style.display="inline",g.style.zoom=1,aJ.support.inlineBlockNeedsLayout=g.offsetWidth===2,g.style.display="",g.innerHTML="<div style='width:4px;'></div>",aJ.support.shrinkWrapBlocks=g.offsetWidth!==2),g.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var h=g.getElementsByTagName("td");aJ.support.reliableHiddenOffsets=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",aJ.support.reliableHiddenOffsets=aJ.support.reliableHiddenOffsets&&h[0].offsetHeight===0,g.innerHTML="",f.removeChild(g).style.display="none",g=h=null}});var a=function(f){var e=aL.createElement("div");f="on"+f;if(!e.attachEvent){return !0}var g=f in e;g||(e.setAttribute(f,"return;"),g=typeof e[f]==="function"),e=null;return g};aJ.support.submitBubbles=a("submit"),aJ.support.changeBubbles=a("change"),v=u=t=null}})();var aH=/^(?:\{.*\}|\[.*\])$/;aJ.extend({cache:{},uuid:0,expando:"jQuery"+(aJ.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?aJ.cache[b[aJ.expando]]:b[aJ.expando];return !!b&&!aD(b)},data:function(t,s,r,q){if(aJ.acceptData(t)){var p=aJ.expando,o=typeof s==="string",n,m=t.nodeType,d=m?aJ.cache:t,b=m?t[aJ.expando]:t[aJ.expando]&&aJ.expando;if((!b||q&&b&&!d[b][p])&&o&&r===aN){return}b||(m?t[aJ.expando]=b=++aJ.uuid:b=aJ.expando),d[b]||(d[b]={},m||(d[b].toJSON=aJ.noop));if(typeof s==="object"||typeof s==="function"){q?d[b][p]=aJ.extend(d[b][p],s):d[b]=aJ.extend(d[b],s)}n=d[b],q&&(n[p]||(n[p]={}),n=n[p]),r!==aN&&(n[s]=r);if(s==="events"&&!n[s]){return n[p]&&n[p].events}return o?n[s]:n}},removeData:function(r,q,p){if(aJ.acceptData(r)){var o=aJ.expando,n=r.nodeType,m=n?aJ.cache:r,g=n?r[aJ.expando]:aJ.expando;if(!m[g]){return}if(q){var d=p?m[g][o]:m[g];if(d){delete d[q];if(!aD(d)){return}}}if(p){delete m[g][o];if(!aD(m[g])){return}}var a=m[g][o];aJ.support.deleteExpando||m!=aP?delete m[g]:m[g]=null,a?(m[g]={},n||(m[g].toJSON=aJ.noop),m[g][o]=a):n&&(aJ.support.deleteExpando?delete r[aJ.expando]:r.removeAttribute?r.removeAttribute(aJ.expando):r[aJ.expando]=null)}},_data:function(e,d,f){return aJ.data(e,d,f,!0)},acceptData:function(d){if(d.nodeName){var c=aJ.noData[d.nodeName.toLowerCase()];if(c){return c!==!0&&d.getAttribute("classid")===c}}return !0}}),aJ.fn.extend({data:function(b,p){var o=null;if(typeof b==="undefined"){if(this.length){o=aJ.data(this[0]);if(this[0].nodeType===1){var n=this[0].attributes,m;for(var l=0,f=n.length;l<f;l++){m=n[l].name,m.indexOf("data-")===0&&(m=m.substr(5),aF(this[0],m,o[m]))}}}return o}if(typeof b==="object"){return this.each(function(){aJ.data(this,b)})}var d=b.split(".");d[1]=d[1]?"."+d[1]:"";if(p===aN){o=this.triggerHandler("getData"+d[1]+"!",[d[0]]),o===aN&&this.length&&(o=aJ.data(this[0],b),o=aF(this[0],b,o));return o===aN&&d[1]?this.data(d[0]):o}return this.each(function(){var a=aJ(this),c=[d[0],p];a.triggerHandler("setData"+d[1]+"!",c),aJ.data(this,b,p),a.triggerHandler("changeData"+d[1]+"!",c)})},removeData:function(b){return this.each(function(){aJ.removeData(this,b)})}}),aJ.extend({queue:function(f,d,h){if(f){d=(d||"fx")+"queue";var g=aJ._data(f,d);if(!h){return g||[]}!g||aJ.isArray(h)?g=aJ._data(f,d,aJ.makeArray(h)):g.push(h);return g}},dequeue:function(f,d){d=d||"fx";var h=aJ.queue(f,d),g=h.shift();g==="inprogress"&&(g=h.shift()),g&&(d==="fx"&&h.unshift("inprogress"),g.call(f,function(){aJ.dequeue(f,d)})),h.length||aJ.removeData(f,d+"queue",!0)}}),aJ.fn.extend({queue:function(b,d){typeof b!=="string"&&(d=b,b="fx");if(d===aN){return aJ.queue(this[0],b)}return this.each(function(a){var c=aJ.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&aJ.dequeue(this,b)})},dequeue:function(b){return this.each(function(){aJ.dequeue(this,b)})},delay:function(d,c){d=aJ.fx?aJ.fx.speeds[d]||d:d,c=c||"fx";return this.queue(c,function(){var a=this;setTimeout(function(){aJ.dequeue(a,c)},d)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var aB=/[\n\t\r]/g,az=/\s+/,ay=/\r/g,ax=/^(?:href|src|style)$/,aw=/^(?:button|input)$/i,av=/^(?:button|input|object|select|textarea)$/i,au=/^a(?:rea)?$/i,ar=/^(?:radio|checkbox)$/i;aJ.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"},aJ.fn.extend({attr:function(d,c){return aJ.access(this,d,c,!0,aJ.attr)},removeAttr:function(d,c){return this.each(function(){aJ.attr(this,d,""),this.nodeType===1&&this.removeAttribute(d)})},addClass:function(r){if(aJ.isFunction(r)){return this.each(function(a){var e=aJ(this);e.addClass(r.call(this,a,e.attr("class")))})}if(r&&typeof r==="string"){var q=(r||"").split(az);for(var p=0,o=this.length;p<o;p++){var n=this[p];if(n.nodeType===1){if(n.className){var m=" "+n.className+" ",l=n.className;for(var i=0,d=q.length;i<d;i++){m.indexOf(" "+q[i]+" ")<0&&(l+=" "+q[i])}n.className=aJ.trim(l)}else{n.className=r}}}}return this},removeClass:function(d){if(aJ.isFunction(d)){return this.each(function(a){var e=aJ(this);e.removeClass(d.call(this,a,e.attr("class")))})}if(d&&typeof d==="string"||d===aN){var p=(d||"").split(az);for(var o=0,n=this.length;o<n;o++){var m=this[o];if(m.nodeType===1&&m.className){if(d){var i=(" "+m.className+" ").replace(aB," ");for(var h=0,b=p.length;h<b;h++){i=i.replace(" "+p[h]+" "," ")}m.className=aJ.trim(i)}else{m.className=""}}}}return this},toggleClass:function(f,d){var h=typeof f,g=typeof d==="boolean";if(aJ.isFunction(f)){return this.each(function(b){var a=aJ(this);a.toggleClass(f.call(this,b,a.attr("class"),d),d)})}return this.each(function(){if(h==="string"){var i,e=0,c=aJ(this),b=d,a=f.split(az);while(i=a[e++]){b=g?b:!c.hasClass(i),c[b?"addClass":"removeClass"](i)}}else{if(h==="undefined"||h==="boolean"){this.className&&aJ._data(this,"__className__",this.className),this.className=this.className||f===!1?"":aJ._data(this,"__className__")||""}}})},hasClass:function(f){var e=" "+f+" ";for(var h=0,g=this.length;h<g;h++){if((" "+this[h].className+" ").replace(aB," ").indexOf(e)>-1){return !0}}return !1},val:function(v){if(!arguments.length){var u=this[0];if(u){if(aJ.nodeName(u,"option")){var t=u.attributes.value;return !t||t.specified?u.value:u.text}if(aJ.nodeName(u,"select")){var s=u.selectedIndex,r=[],q=u.options,p=u.type==="select-one";if(s<0){return null}for(var o=p?s:0,j=p?s+1:q.length;o<j;o++){var d=q[o];if(d.selected&&(aJ.support.optDisabled?!d.disabled:d.getAttribute("disabled")===null)&&(!d.parentNode.disabled||!aJ.nodeName(d.parentNode,"optgroup"))){v=aJ(d).val();if(p){return v}r.push(v)}}if(p&&!r.length&&q.length){return aJ(q[s]).val()}return r}if(ar.test(u.type)&&!aJ.support.checkOn){return u.getAttribute("value")===null?"on":u.value}return(u.value||"").replace(ay,"")}return aN}var b=aJ.isFunction(v);return this.each(function(a){var i=aJ(this),h=v;if(this.nodeType===1){b&&(h=v.call(this,a,i.val())),h==null?h="":typeof h==="number"?h+="":aJ.isArray(h)&&(h=aJ.map(h,function(c){return c==null?"":c+""}));if(aJ.isArray(h)&&ar.test(this.type)){this.checked=aJ.inArray(i.val(),h)>=0}else{if(aJ.nodeName(this,"select")){var g=aJ.makeArray(h);aJ("option",this).each(function(){this.selected=aJ.inArray(aJ(this).val(),g)>=0}),g.length||(this.selectedIndex=-1)}else{this.value=h}}}})}}),aJ.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,s,r,q){if(!t||t.nodeType===3||t.nodeType===8||t.nodeType===2){return aN}if(q&&s in aJ.attrFn){return aJ(t)[s](r)}var n=t.nodeType!==1||!aJ.isXMLDoc(t),m=r!==aN;s=n&&aJ.props[s]||s;if(t.nodeType===1){var l=ax.test(s);if(s==="selected"&&!aJ.support.optSelected){var k=t.parentNode;k&&(k.selectedIndex,k.parentNode&&k.parentNode.selectedIndex)}if((s in t||t[s]!==aN)&&n&&!l){m&&(s==="type"&&aw.test(t.nodeName)&&t.parentNode&&aJ.error("type property can't be changed"),r===null?t.nodeType===1&&t.removeAttribute(s):t[s]=r);if(aJ.nodeName(t,"form")&&t.getAttributeNode(s)){return t.getAttributeNode(s).nodeValue}if(s==="tabIndex"){var d=t.getAttributeNode("tabIndex");return d&&d.specified?d.value:av.test(t.nodeName)||au.test(t.nodeName)&&t.href?0:aN}return t[s]}if(!aJ.support.style&&n&&s==="style"){m&&(t.style.cssText=""+r);return t.style.cssText}m&&t.setAttribute(s,""+r);if(!t.attributes[s]&&(t.hasAttribute&&!t.hasAttribute(s))){return aN}var b=!aJ.support.hrefNormalized&&n&&l?t.getAttribute(s,2):t.getAttribute(s);return b===null?aN:b}m&&(t[s]=r);return t[s]}});var ao=/\.(.*)$/,am=/^(?:textarea|input|select)$/i,al=/\./g,aj=/ /g,ag=/[^\w\s.|`]/g,af=function(b){return b.replace(ag,"\\$&")};aJ.event={add:function(D,C,B,A){if(D.nodeType!==3&&D.nodeType!==8){try{aJ.isWindow(D)&&(D!==aP&&!D.frameElement)&&(D=aP)}catch(z){}if(B===!1){B=ae}else{if(!B){return}}var y,x;B.handler&&(y=B,B=y.handler),B.guid||(B.guid=aJ.guid++);var w=aJ._data(D);if(!w){return}var v=w.events,u=w.handle;v||(w.events=v={}),u||(w.handle=u=function(){return typeof aJ!=="undefined"&&!aJ.event.triggered?aJ.event.handle.apply(u.elem,arguments):aN}),u.elem=D,C=C.split(" ");var t,s=0,d;while(t=C[s++]){x=y?aJ.extend({},y):{handler:B,data:A},t.indexOf(".")>-1?(d=t.split("."),t=d.shift(),x.namespace=d.slice(0).sort().join(".")):(d=[],x.namespace=""),x.type=t,x.guid||(x.guid=B.guid);var b=v[t],a=aJ.event.special[t]||{};if(!b){b=v[t]=[];if(!a.setup||a.setup.call(D,A,d,u)===!1){D.addEventListener?D.addEventListener(t,u,!1):D.attachEvent&&D.attachEvent("on"+t,u)}}a.add&&(a.add.call(D,x),x.handler.guid||(x.handler.guid=B.guid)),b.push(x),aJ.event.global[t]=!0}D=null}},global:{},remove:function(L,K,J,I){if(L.nodeType!==3&&L.nodeType!==8){J===!1&&(J=ae);var H,G,F,E,D=0,C,B,A,z,y,x,v,u=aJ.hasData(L)&&aJ._data(L),d=u&&u.events;if(!u||!d){return}K&&K.type&&(J=K.handler,K=K.type);if(!K||typeof K==="string"&&K.charAt(0)==="."){K=K||"";for(G in d){aJ.event.remove(L,G+K)}return}K=K.split(" ");while(G=K[D++]){v=G,x=null,C=G.indexOf(".")<0,B=[],C||(B=G.split("."),G=B.shift(),A=new RegExp("(^|\\.)"+aJ.map(B.slice(0).sort(),af).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=d[G];if(!y){continue}if(!J){for(E=0;E<y.length;E++){x=y[E];if(C||A.test(x.namespace)){aJ.event.remove(L,v,x.handler,E),y.splice(E--,1)}}continue}z=aJ.event.special[G]||{};for(E=I||0;E<y.length;E++){x=y[E];if(J.guid===x.guid){if(C||A.test(x.namespace)){I==null&&y.splice(E--,1),z.remove&&z.remove.call(L,x)}if(I!=null){break}}}if(y.length===0||I!=null&&y.length===1){(!z.teardown||z.teardown.call(L,B)===!1)&&aJ.removeEvent(L,G,u.handle),H=null,delete d[G]}}if(aJ.isEmptyObject(d)){var b=u.handle;b&&(b.elem=null),delete u.events,delete u.handle,aJ.isEmptyObject(u)&&aJ.removeData(L,aN,!0)}}},trigger:function(B,A,z){var y=B.type||B,x=arguments[3];if(!x){B=typeof B==="object"?B[aJ.expando]?B:aJ.extend(aJ.Event(y),B):aJ.Event(y),y.indexOf("!")>=0&&(B.type=y=y.slice(0,-1),B.exclusive=!0),z||(B.stopPropagation(),aJ.event.global[y]&&aJ.each(aJ.cache,function(){var a=aJ.expando,c=this[a];c&&c.events&&c.events[y]&&aJ.event.trigger(B,A,c.handle.elem)}));if(!z||z.nodeType===3||z.nodeType===8){return aN}B.result=aN,B.target=z,A=aJ.makeArray(A),A.unshift(B)}B.currentTarget=z;var w=aJ._data(z,"handle");w&&w.apply(z,A);var v=z.parentNode||z.ownerDocument;try{z&&z.nodeName&&aJ.noData[z.nodeName.toLowerCase()]||z["on"+y]&&z["on"+y].apply(z,A)===!1&&(B.result=!1,B.preventDefault())}catch(u){}if(!B.isPropagationStopped()&&v){aJ.event.trigger(B,A,v,!0)}else{if(!B.isDefaultPrevented()){var t,s=B.target,r=y.replace(ao,""),p=aJ.nodeName(s,"a")&&r==="click",d=aJ.event.special[r]||{};if((!d._default||d._default.call(z,B)===!1)&&!p&&!(s&&s.nodeName&&aJ.noData[s.nodeName.toLowerCase()])){try{s[r]&&(t=s["on"+r],t&&(s["on"+r]=null),aJ.event.triggered=!0,s[r]())}catch(b){}t&&(s["on"+r]=t),aJ.event.triggered=!1}}}},handle:function(x){var w,v,u,t,s,r=[],q=aJ.makeArray(arguments);x=q[0]=aJ.event.fix(x||aP.event),x.currentTarget=this,w=x.type.indexOf(".")<0&&!x.exclusive,w||(u=x.type.split("."),x.type=u.shift(),r=u.slice(0).sort(),t=new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+"(\\.|$)")),x.namespace=x.namespace||r.join("."),s=aJ._data(this,"events"),v=(s||{})[x.type];if(s&&v){v=v.slice(0);for(var p=0,d=v.length;p<d;p++){var b=v[p];if(w||t.test(b.namespace)){x.handler=b.handler,x.data=b.data,x.handleObj=b;var a=b.handler.apply(this,q);a!==aN&&(x.result=a,a===!1&&(x.preventDefault(),x.stopPropagation()));if(x.isImmediatePropagationStopped()){break}}}}return x.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 pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b){if(b[aJ.expando]){return b}var l=b;b=aJ.Event(l);for(var k=this.props.length,j;k;){j=this.props[--k],b[j]=l[j]}b.target||(b.target=b.srcElement||aL),b.target.nodeType===3&&(b.target=b.target.parentNode),!b.relatedTarget&&b.fromElement&&(b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement);if(b.pageX==null&&b.clientX!=null){var d=aL.documentElement,c=aL.body;b.pageX=b.clientX+(d&&d.scrollLeft||c&&c.scrollLeft||0)-(d&&d.clientLeft||c&&c.clientLeft||0),b.pageY=b.clientY+(d&&d.scrollTop||c&&c.scrollTop||0)-(d&&d.clientTop||c&&c.clientTop||0)}b.which==null&&(b.charCode!=null||b.keyCode!=null)&&(b.which=b.charCode!=null?b.charCode:b.keyCode),!b.metaKey&&b.ctrlKey&&(b.metaKey=b.ctrlKey),!b.which&&b.button!==aN&&(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);return b},guid:100000000,proxy:aJ.proxy,special:{ready:{setup:aJ.bindReady,teardown:aJ.noop},live:{add:function(b){aJ.event.add(this,ct(b.origType,b.selector),aJ.extend({},b,{handler:cv,guid:b.handler.guid}))},remove:function(b){aJ.event.remove(this,ct(b.origType,b.selector),b)}},beforeunload:{setup:function(e,d,f){aJ.isWindow(this)&&(this.onbeforeunload=f)},teardown:function(d,c){this.onbeforeunload===c&&(this.onbeforeunload=null)}}}},aJ.removeEvent=aL.removeEventListener?function(e,d,f){e.removeEventListener&&e.removeEventListener(d,f,!1)}:function(e,d,f){e.detachEvent&&e.detachEvent("on"+d,f)},aJ.Event=function(b){if(!this.preventDefault){return new aJ.Event(b)}b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||b.returnValue===!1||b.getPreventDefault&&b.getPreventDefault()?ad:ae):this.type=b,this.timeStamp=aJ.now(),this[aJ.expando]=!0},aJ.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ad;var b=this.originalEvent;b&&(b.preventDefault?b.preventDefault():b.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=ad;var b=this.originalEvent;b&&(b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ad,this.stopPropagation()},isDefaultPrevented:ae,isPropagationStopped:ae,isImmediatePropagationStopped:ae};var ac=function(d){var c=d.relatedTarget;try{if(c!==aL&&!c.parentNode){return}while(c&&c!==this){c=c.parentNode}c!==this&&(d.type=d.data,aJ.event.handle.apply(this,arguments))}catch(f){}},ab=function(b){b.type=b.data,aJ.event.handle.apply(this,arguments)};aJ.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(d,c){aJ.event.special[d]={setup:function(a){aJ.event.add(this,c,a&&a.selector?ab:ac,d)},teardown:function(b){aJ.event.remove(this,c,b&&b.selector?ab:ac)}}}),aJ.support.submitBubbles||(aJ.event.special.submit={setup:function(d,c){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){aJ.event.add(this,"click.specialSubmit",function(f){var e=f.target,g=e.type;(g==="submit"||g==="image")&&aJ(e).closest("form").length&&cA("submit",this,arguments)}),aJ.event.add(this,"keypress.specialSubmit",function(f){var e=f.target,g=e.type;(g==="text"||g==="password")&&aJ(e).closest("form").length&&f.keyCode===13&&cA("submit",this,arguments)})}else{return !1}},teardown:function(b){aJ.event.remove(this,".specialSubmit")}});if(!aJ.support.changeBubbles){var aa,cE=function(e){var d=e.type,f=e.value;d==="radio"||d==="checkbox"?f=e.checked:d==="select-multiple"?f=e.selectedIndex>-1?aJ.map(e.options,function(b){return b.selected}).join("-"):"":e.nodeName.toLowerCase()==="select"&&(f=e.selectedIndex);return f},cC=function cC(b){var h=b.target,g,d;if(am.test(h.nodeName)&&!h.readOnly){g=aJ._data(h,"_change_data"),d=cE(h),(b.type!=="focusout"||h.type!=="radio")&&aJ._data(h,"_change_data",d);if(g===aN||d===g){return}if(g!=null||d){b.type="change",b.liveFired=aN,aJ.event.trigger(b,arguments[1],h)}}};aJ.event.special.change={filters:{focusout:cC,beforedeactivate:cC,click:function(e){var d=e.target,f=d.type;(f==="radio"||f==="checkbox"||d.nodeName.toLowerCase()==="select")&&cC.call(this,e)},keydown:function(e){var d=e.target,f=d.type;(e.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple")&&cC.call(this,e)},beforeactivate:function(d){var c=d.target;aJ._data(c,"_change_data",cE(c))}},setup:function(e,d){if(this.type==="file"){return !1}for(var f in aa){aJ.event.add(this,f+".specialChange",aa[f])}return am.test(this.nodeName)},teardown:function(b){aJ.event.remove(this,".specialChange");return am.test(this.nodeName)}},aa=aJ.event.special.change.filters,aa.focus=aa.beforeactivate}aL.addEventListener&&aJ.each({focus:"focusin",blur:"focusout"},function(e,d){function f(b){b=aJ.event.fix(b),b.type=d;return aJ.event.handle.call(this,b)}aJ.event.special[d]={setup:function(){this.addEventListener(e,f,!0)},teardown:function(){this.removeEventListener(e,f,!0)}}}),aJ.each(["bind","one"],function(b,d){aJ.fn[d]=function(c,p,o){if(typeof c==="object"){for(var n in c){this[d](n,p,c[n],o)}return this}if(aJ.isFunction(p)||p===!1){o=p,p=aN}var m=d==="one"?aJ.proxy(o,function(e){aJ(this).unbind(e,m);return o.apply(this,arguments)}):o;if(c==="unload"&&d!=="one"){this.one(c,p,o)}else{for(var l=0,k=this.length;l<k;l++){aJ.event.add(this[l],c,m,p)}}return this}}),aJ.fn.extend({unbind:function(g,d){if(typeof g!=="object"||g.preventDefault){for(var i=0,h=this.length;i<h;i++){aJ.event.remove(this[i],g,d)}}else{for(var j in g){this.unbind(j,g[j])}}return this},delegate:function(f,e,h,g){return this.live(e,h,g,f)},undelegate:function(e,d,f){return arguments.length===0?this.unbind("live"):this.die(d,null,f,e)},trigger:function(d,c){return this.each(function(){aJ.event.trigger(d,c,this)})},triggerHandler:function(e,d){if(this[0]){var f=aJ.Event(e);f.preventDefault(),f.stopPropagation(),aJ.event.trigger(f,d,this[0]);return f.result}},toggle:function(e){var d=arguments,f=1;while(f<d.length){aJ.proxy(e,d[f++])}return this.click(aJ.proxy(e,function(b){var a=(aJ._data(this,"lastToggle"+e.guid)||0)%f;aJ._data(this,"lastToggle"+e.guid,a+1),b.preventDefault();return d[a].apply(this,arguments)||!1}))},hover:function(d,c){return this.mouseenter(d).mouseleave(c||d)}});var cy={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};aJ.each(["live","die"],function(b,d){aJ.fn[d]=function(D,C,B,A){var z,y=0,x,w,v,u=A||this.selector,t=A?this:aJ(this.context);if(typeof D==="object"&&!D.preventDefault){for(var s in D){t[d](s,C,D[s],u)}return this}aJ.isFunction(C)&&(B=C,C=aN),D=(D||"").split(" ");while((z=D[y++])!=null){x=ao.exec(z),w="",x&&(w=x[0],z=z.replace(ao,""));if(z==="hover"){D.push("mouseenter"+w,"mouseleave"+w);continue}v=z,z==="focus"||z==="blur"?(D.push(cy[z]+w),z=z+w):z=(cy[z]||z)+w;if(d==="live"){for(var p=0,c=t.length;p<c;p++){aJ.event.add(t[p],"live."+ct(z,u),{data:C,selector:u,handler:B,origType:z,origHandler:B,preType:v})}}else{t.unbind("live."+ct(z,u),B)}}return this}}),aJ.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(d,c){aJ.fn[c]=function(b,e){e==null&&(e=b,b=null);return arguments.length>0?this.bind(c,b,e):this.trigger(c)},aJ.attrFn&&(aJ.attrFn[c]=!0)}),function(){function c(t,s,r,q,p,o){for(var n=0,m=q.length;n<m;n++){var l=q[n];if(l){var k=!1;l=l[t];while(l){if(l.sizcache===r){k=q[l.sizset];break}if(l.nodeType===1){o||(l.sizcache=r,l.sizset=n);if(typeof s!=="string"){if(l===s){k=!0;break}}else{if(E.filter(s,[l]).length>0){k=l;break}}}l=l[t]}q[n]=k}}}function d(t,s,r,q,p,o){for(var n=0,m=q.length;n<m;n++){var l=q[n];if(l){var k=!1;l=l[t];while(l){if(l.sizcache===r){k=q[l.sizset];break}l.nodeType===1&&!o&&(l.sizcache=r,l.sizset=n);if(l.nodeName.toLowerCase()===s){k=l;break}l=l[t]}q[n]=k}}}var L=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,K=0,J=Object.prototype.toString,I=!1,H=!0,G=/\\/g,F=/\W/;[0,0].sort(function(){H=!1;return 0});var E=function(Q,O,N,M){N=N||[],O=O||aL;var v=O;if(O.nodeType!==1&&O.nodeType!==9){return[]}if(!Q||typeof Q!=="string"){return N}var p,m,l,k,f,a,V,U,T=!0,S=E.isXML(O),R=[],P=Q;do{L.exec(""),p=L.exec(P);if(p){P=p[3],R.push(p[1]);if(p[2]){k=p[3];break}}}while(p);if(R.length>1&&C.exec(Q)){if(R.length===2&&D.relative[R[0]]){m=b(R[0]+R[1],O)}else{m=D.relative[R[0]]?[O]:E(R.shift(),O);while(R.length){Q=R.shift(),D.relative[Q]&&(Q+=R.shift()),m=b(Q,m)}}}else{!M&&R.length>1&&O.nodeType===9&&!S&&D.match.ID.test(R[0])&&!D.match.ID.test(R[R.length-1])&&(f=E.find(R.shift(),O,S),O=f.expr?E.filter(f.expr,f.set)[0]:f.set[0]);if(O){f=M?{expr:R.pop(),set:z(M)}:E.find(R.pop(),R.length===1&&(R[0]==="~"||R[0]==="+")&&O.parentNode?O.parentNode:O,S),m=f.expr?E.filter(f.expr,f.set):f.set,R.length>0?l=z(m):T=!1;while(R.length){a=R.pop(),V=a,D.relative[a]?V=R.pop():a="",V==null&&(V=O),D.relative[a](l,V,S)}}else{l=R=[]}}l||(l=m),l||E.error(a||Q);if(J.call(l)==="[object Array]"){if(T){if(O&&O.nodeType===1){for(U=0;l[U]!=null;U++){l[U]&&(l[U]===!0||l[U].nodeType===1&&E.contains(O,l[U]))&&N.push(m[U])}}else{for(U=0;l[U]!=null;U++){l[U]&&l[U].nodeType===1&&N.push(m[U])}}}else{N.push.apply(N,l)}}else{z(l,N)}k&&(E(k,v,N,M),E.uniqueSort(N));return N};E.uniqueSort=function(f){if(x){I=H,f.sort(x);if(I){for(var e=1;e<f.length;e++){f[e]===f[e-1]&&f.splice(e--,1)}}}return f},E.matches=function(f,e){return E(f,null,null,e)},E.matchesSelector=function(f,e){return E(e,null,null,[f]).length>0},E.find=function(r,q,p){var o;if(!r){return[]}for(var n=0,m=D.order.length;n<m;n++){var l,k=D.order[n];if(l=D.leftMatch[k].exec(r)){var i=l[1];l.splice(1,1);if(i.substr(i.length-1)!=="\\"){l[1]=(l[1]||"").replace(G,""),o=D.find[k](l,q,p);if(o!=null){r=r.replace(D.match[k],"");break}}}}o||(o=typeof q.getElementsByTagName!=="undefined"?q.getElementsByTagName("*"):[]);return{set:o,expr:r}},E.filter=function(W,V,U,T){var S,R,Q=W,P=[],O=V,N=V&&V[0]&&E.isXML(V[0]);while(W&&V.length){for(var M in D.filter){if((S=D.leftMatch[M].exec(W))!=null&&S[2]){var v,u,l=D.filter[M],k=S[1];R=!1,S.splice(1,1);if(k.substr(k.length-1)==="\\"){continue}O===P&&(P=[]);if(D.preFilter[M]){S=D.preFilter[M](S,O,U,P,T,N);if(S){if(S===!0){continue}}else{R=v=!0}}if(S){for(var Y=0;(u=O[Y])!=null;Y++){if(u){v=l(u,S,Y,O);var X=T^!!v;U&&v!=null?X?R=!0:O[Y]=!1:X&&(P.push(u),R=!0)}}}if(v!==aN){U||(O=P),W=W.replace(D.match[M],"");if(!R){return[]}break}}}if(W===Q){if(R==null){E.error(W)}else{break}}Q=W}return O},E.error=function(e){throw"Syntax error, unrecognized expression: "+e};var D=E.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(j,i){var p=typeof i==="string",o=p&&!F.test(i),n=p&&!o;o&&(i=i.toLowerCase());for(var m=0,l=j.length,k;m<l;m++){if(k=j[m]){while((k=k.previousSibling)&&k.nodeType!==1){}j[m]=n||k&&k.nodeName.toLowerCase()===i?k||!1:k===i}}n&&E.filter(i,j,!0)},">":function(i,h){var n,m=typeof h==="string",l=0,k=i.length;if(m&&!F.test(h)){h=h.toLowerCase();for(;l<k;l++){n=i[l];if(n){var j=n.parentNode;i[l]=j.nodeName.toLowerCase()===h?j:!1}}}else{for(;l<k;l++){n=i[l],n&&(i[l]=m?n.parentNode:n.parentNode===h)}m&&E.filter(h,i,!0)}},"":function(h,e,l){var k,j=K++,i=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),k=e,i=d),i("parentNode",e,j,h,k,l)},"~":function(h,e,l){var k,j=K++,i=c;typeof e==="string"&&!F.test(e)&&(e=e.toLowerCase(),k=e,i=d),i("previousSibling",e,j,h,k,l)}},find:{ID:function(f,e,h){if(typeof e.getElementById!=="undefined"&&!h){var g=e.getElementById(f[1]);return g&&g.parentNode?[g]:[]}},NAME:function(h,g){if(typeof g.getElementsByName!=="undefined"){var l=[],k=g.getElementsByName(h[1]);for(var j=0,i=k.length;j<i;j++){k[j].getAttribute("name")===h[1]&&l.push(k[j])}return l.length===0?null:l}},TAG:function(f,e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName(f[1])}}},preFilter:{CLASS:function(j,i,p,o,n,m){j=" "+j[1].replace(G,"")+" ";if(m){return j}for(var l=0,k;(k=i[l])!=null;l++){k&&(n^(k.className&&(" "+k.className+" ").replace(/[\t\n\r]/g," ").indexOf(j)>=0)?p||o.push(k):p&&(i[l]=!1))}return !1},ID:function(e){return e[1].replace(G,"")},TAG:function(f,e){return f[1].replace(G,"").toLowerCase()},CHILD:function(f){if(f[1]==="nth"){f[2]||E.error(f[0]),f[2]=f[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(f[2]==="even"&&"2n"||f[2]==="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=e[1]+(e[2]||1)-0,f[3]=e[3]-0}else{f[2]&&E.error(f[0])}f[0]=K++;return f},ATTR:function(i,h,n,m,l,k){var j=i[1]=i[1].replace(G,"");!k&&D.attrMap[j]&&(i[1]=D.attrMap[j]),i[4]=(i[4]||i[5]||"").replace(G,""),i[2]==="~="&&(i[4]=" "+i[4]+" ");return i},PSEUDO:function(a,l,k,j,i){if(a[1]==="not"){if((L.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=E(a[3],null,null,l)}else{var h=E.filter(a[3],l,k,!0^i);k||j.push.apply(j,h);return !1}}else{if(D.match.POS.test(a[0])||D.match.CHILD.test(a[0])){return !0}}return a},POS:function(e){e.unshift(!0);return e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){e.parentNode&&e.parentNode.selectedIndex;return e.selected===!0},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(f,e,g){return !!E(g[3],f).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.getAttribute("type")},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(f,e){return e===0},last:function(f,e,h,g){return e===g.length-1},even:function(f,e){return e%2===0},odd:function(f,e){return e%2===1},lt:function(f,e,g){return e<g[3]-0},gt:function(f,e,g){return e>g[3]-0},nth:function(f,e,g){return g[3]-0===e},eq:function(f,e,g){return g[3]-0===e}},filter:{PSEUDO:function(r,q,p,o){var n=q[1],m=D.filters[n];if(m){return m(r,p,q,o)}if(n==="contains"){return(r.textContent||r.innerText||E.getText([r])||"").indexOf(q[3])>=0}if(n==="not"){var l=q[3];for(var k=0,j=l.length;k<j;k++){if(l[k]===r){return !1}}return !0}E.error(n)},CHILD:function(t,s){var r=s[1],q=t;switch(r){case"only":case"first":while(q=q.previousSibling){if(q.nodeType===1){return !1}}if(r==="first"){return !0}q=t;case"last":while(q=q.nextSibling){if(q.nodeType===1){return !1}}return !0;case"nth":var p=s[2],o=s[3];if(p===1&&o===0){return !0}var n=s[0],m=t.parentNode;if(m&&(m.sizcache!==n||!t.nodeIndex)){var l=0;for(q=m.firstChild;q;q=q.nextSibling){q.nodeType===1&&(q.nodeIndex=++l)}m.sizcache=n}var k=t.nodeIndex-o;return p===0?k===0:k%p===0&&k/p>=0}},ID:function(f,e){return f.nodeType===1&&f.getAttribute("id")===e},TAG:function(f,e){return e==="*"&&f.nodeType===1||f.nodeName.toLowerCase()===e},CLASS:function(f,e){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(i,h){var n=h[1],m=D.attrHandle[n]?D.attrHandle[n](i):i[n]!=null?i[n]:i.getAttribute(n),l=m+"",k=h[2],j=h[4];return m==null?k==="!=":k==="="?l===j:k==="*="?l.indexOf(j)>=0:k==="~="?(" "+l+" ").indexOf(j)>=0:j?k==="!="?l!==j:k==="^="?l.indexOf(j)===0:k==="$="?l.substr(l.length-j.length)===j:k==="|="?l===j||l.substr(0,j.length+1)===j+"-":!1:l&&m!==!1},POS:function(h,g,l,k){var j=g[2],i=D.setFilters[j];if(i){return i(h,l,g,k)}}}},C=D.match.POS,B=function(f,e){return"\\"+(e-0+1)};for(var A in D.match){D.match[A]=new RegExp(D.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source),D.leftMatch[A]=new RegExp(/(^(?:.|\r|\n)*?)/.source+D.match[A].source.replace(/\\(\d+)/g,B))}var z=function(f,e){f=Array.prototype.slice.call(f,0);if(e){e.push.apply(e,f);return e}return f};try{Array.prototype.slice.call(aL.documentElement.childNodes,0)[0].nodeType}catch(y){z=function(g,f){var j=0,i=f||[];if(J.call(g)==="[object Array]"){Array.prototype.push.apply(i,g)}else{if(typeof g.length==="number"){for(var h=g.length;j<h;j++){i.push(g[j])}}else{for(;g[j];j++){i.push(g[j])}}}return i}}var x,w;aL.documentElement.compareDocumentPosition?x=function(f,e){if(f===e){I=!0;return 0}if(!f.compareDocumentPosition||!e.compareDocumentPosition){return f.compareDocumentPosition?-1:1}return f.compareDocumentPosition(e)&4?-1:1}:(x=function(t,s){var r,q,p=[],o=[],n=t.parentNode,m=s.parentNode,l=n;if(t===s){I=!0;return 0}if(n===m){return w(t,s)}if(!n){return -1}if(!m){return 1}while(l){p.unshift(l),l=l.parentNode}l=m;while(l){o.unshift(l),l=l.parentNode}r=p.length,q=o.length;for(var g=0;g<r&&g<q;g++){if(p[g]!==o[g]){return w(p[g],o[g])}}return g===r?w(t,o[g],-1):w(p[g],s,1)},w=function(f,e,h){if(f===e){return h}var g=f.nextSibling;while(g){if(g===e){return -1}g=g.nextSibling}return 1}),E.getText=function(f){var e="",h;for(var g=0;f[g];g++){h=f[g],h.nodeType===3||h.nodeType===4?e+=h.nodeValue:h.nodeType!==8&&(e+=E.getText(h.childNodes))}return e},function(){var f=aL.createElement("div"),h="script"+(new Date).getTime(),g=aL.documentElement;f.innerHTML="<a name='"+h+"'/>",g.insertBefore(f,g.firstChild),aL.getElementById(h)&&(D.find.ID=function(i,l,k){if(typeof l.getElementById!=="undefined"&&!k){var j=l.getElementById(i[1]);return j?j.id===i[1]||typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id").nodeValue===i[1]?[j]:aN:[]}},D.filter.ID=function(i,e){var j=typeof i.getAttributeNode!=="undefined"&&i.getAttributeNode("id");return i.nodeType===1&&j&&j.nodeValue===e}),g.removeChild(f),g=f=null}(),function(){var e=aL.createElement("div");e.appendChild(aL.createComment("")),e.getElementsByTagName("*").length>0&&(D.find.TAG=function(g,f){var j=f.getElementsByTagName(g[1]);if(g[1]==="*"){var i=[];for(var h=0;j[h];h++){j[h].nodeType===1&&i.push(j[h])}j=i}return j}),e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(D.attrHandle.href=function(f){return f.getAttribute("href",2)}),e=null}(),aL.querySelectorAll&&function(){var g=E,f=aL.createElement("div"),i="__sizzle__";f.innerHTML="<p class='TEST'></p>";if(!f.querySelectorAll||f.querySelectorAll(".TEST").length!==0){E=function(Q,P,O,N){P=P||aL;if(!N&&!E.isXML(P)){var M=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(Q);if(M&&(P.nodeType===1||P.nodeType===9)){if(M[1]){return z(P.getElementsByTagName(Q),O)}if(M[2]&&D.find.CLASS&&P.getElementsByClassName){return z(P.getElementsByClassName(M[2]),O)}}if(P.nodeType===9){if(Q==="body"&&P.body){return z([P.body],O)}if(M&&M[3]){var v=P.getElementById(M[3]);if(!v||!v.parentNode){return z([],O)}if(v.id===M[3]){return z([v],O)}}try{return z(P.querySelectorAll(Q),O)}catch(u){}}else{if(P.nodeType===1&&P.nodeName.toLowerCase()!=="object"){var t=P,p=P.getAttribute("id"),l=p||i,k=P.parentNode,a=/^\s*[+~]/.test(Q);p?l=l.replace(/'/g,"\\$&"):P.setAttribute("id",l),a&&k&&(P=P.parentNode);try{if(!a||k){return z(P.querySelectorAll("[id='"+l+"'] "+Q),O)}}catch(R){}finally{p||t.removeAttribute("id")}}}}return g(Q,P,O,N)};for(var h in g){E[h]=g[h]}f=null}}(),function(){var g=aL.documentElement,f=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,i=!1;try{f.call(aL.documentElement,"[test!='']:sizzle")}catch(h){i=!0}f&&(E.matchesSelector=function(j,l){l=l.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!E.isXML(j)){try{if(i||!D.match.PSEUDO.test(l)&&!/!=/.test(l)){return f.call(j,l)}}catch(k){}}return E(l,null,null,[j]).length>0})}(),function(){var e=aL.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}D.order.splice(1,0,"CLASS"),D.find.CLASS=function(g,f,h){if(typeof f.getElementsByClassName!=="undefined"&&!h){return f.getElementsByClassName(g[1])}},e=null}}(),aL.documentElement.contains?E.contains=function(f,e){return f!==e&&(f.contains?f.contains(e):!0)}:aL.documentElement.compareDocumentPosition?E.contains=function(f,e){return !!(f.compareDocumentPosition(e)&16)}:E.contains=function(){return !1},E.isXML=function(f){var e=(f?f.ownerDocument||f:0).documentElement;return e?e.nodeName!=="HTML":!1};var b=function(j,i){var p,o=[],n="",m=i.nodeType?[i]:i;while(p=D.match.PSEUDO.exec(j)){n+=p[0],j=j.replace(D.match.PSEUDO,"")}j=D.relative[j]?j+"*":j;for(var l=0,k=m.length;l<k;l++){E(j,m[l],o)}return E.filter(n,o)};aJ.find=E,aJ.expr=E.selectors,aJ.expr[":"]=aJ.expr.filters,aJ.unique=E.uniqueSort,aJ.text=E.getText,aJ.isXMLDoc=E.isXML,aJ.contains=E.contains}();var cr=/Until$/,cq=/^(?:parents|prevUntil|prevAll)/,co=/,/,cn=/^.[^:#\[\.,]*$/,cm=Array.prototype.slice,cl=aJ.expr.match.POS,ck={children:!0,contents:!0,next:!0,prev:!0};aJ.fn.extend({find:function(i){var d=this.pushStack("","find",i),n=0;for(var m=0,l=this.length;m<l;m++){n=d.length,aJ.find(i,this[m],d);if(m>0){for(var k=n;k<d.length;k++){for(var j=0;j<n;j++){if(d[j]===d[k]){d.splice(k--,1);break}}}}}return d},has:function(d){var c=aJ(d);return this.filter(function(){for(var b=0,e=c.length;b<e;b++){if(aJ.contains(this,c[b])){return !0}}})},not:function(b){return this.pushStack(ch(this,b,!1),"not",b)},filter:function(b){return this.pushStack(ch(this,b,!0),"filter",b)},is:function(b){return !!b&&aJ.filter(b,this).length>0},closest:function(v,u){var t=[],s,r,q=this[0];if(aJ.isArray(v)){var p,o,n={},m=1;if(q&&v.length){for(s=0,r=v.length;s<r;s++){o=v[s],n[o]||(n[o]=aJ.expr.match.POS.test(o)?aJ(o,u||this.context):o)}while(q&&q.ownerDocument&&q!==u){for(o in n){p=n[o],(p.jquery?p.index(q)>-1:aJ(q).is(p))&&t.push({selector:o,elem:q,level:m})}q=q.parentNode,m++}}return t}var d=cl.test(v)?aJ(v,u||this.context):null;for(s=0,r=this.length;s<r;s++){q=this[s];while(q){if(d?d.index(q)>-1:aJ.find.matchesSelector(q,v)){t.push(q);break}q=q.parentNode;if(!q||!q.ownerDocument||q===u){break}}}t=t.length>1?aJ.unique(t):t;return this.pushStack(t,"closest",v)},index:function(b){if(!b||typeof b==="string"){return aJ.inArray(this[0],b?aJ(b):this.parent().children())}return aJ.inArray(b.jquery?b[0]:b,this)},add:function(f,d){var h=typeof f==="string"?aJ(f,d):aJ.makeArray(f),g=aJ.merge(this.get(),h);return this.pushStack(ci(h[0])||ci(g[0])?g:aJ.unique(g))},andSelf:function(){return this.add(this.prevObject)}}),aJ.each({parent:function(d){var c=d.parentNode;return c&&c.nodeType!==11?c:null},parents:function(b){return aJ.dir(b,"parentNode")},parentsUntil:function(e,d,f){return aJ.dir(e,"parentNode",f)},next:function(b){return aJ.nth(b,2,"nextSibling")},prev:function(b){return aJ.nth(b,2,"previousSibling")},nextAll:function(b){return aJ.dir(b,"nextSibling")},prevAll:function(b){return aJ.dir(b,"previousSibling")},nextUntil:function(e,d,f){return aJ.dir(e,"nextSibling",f)},prevUntil:function(e,d,f){return aJ.dir(e,"previousSibling",f)},siblings:function(b){return aJ.sibling(b.parentNode.firstChild,b)},children:function(b){return aJ.sibling(b.firstChild)},contents:function(b){return aJ.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:aJ.makeArray(b.childNodes)}},function(d,c){aJ.fn[d]=function(i,h){var b=aJ.map(this,c,i),a=cm.call(arguments);cr.test(d)||(h=i),h&&typeof h==="string"&&(b=aJ.filter(h,b)),b=this.length>1&&!ck[d]?aJ.unique(b):b,(this.length>1||co.test(h))&&cq.test(d)&&(b=b.reverse());return this.pushStack(b,d,a.join(","))}}),aJ.extend({filter:function(e,d,f){f&&(e=":not("+e+")");return d.length===1?aJ.find.matchesSelector(d[0],e)?[d[0]]:[]:aJ.find.matches(e,d)},dir:function(b,j,i){var h=[],d=b[j];while(d&&d.nodeType!==9&&(i===aN||d.nodeType!==1||!aJ(d).is(i))){d.nodeType===1&&h.push(d),d=d[j]}return h},nth:function(g,f,j,i){f=f||1;var h=0;for(;g;g=g[j]){if(g.nodeType===1&&++h===f){break}}return g},sibling:function(e,d){var f=[];for(;e;e=e.nextSibling){e.nodeType===1&&e!==d&&f.push(e)}return f}});var b8=/ jQuery\d+="(?:\d+|null)"/g,b6=/^\s+/,b4=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,b2=/<([\w:]+)/,b0=/<tbody/i,a8=/<|&#?\w+;/,a6=/<(?:script|object|embed|option|style)/i,a4=/checked\s*(?:[^=]|=\s*.checked.)/i,a2={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,"",""]};a2.optgroup=a2.option,a2.tbody=a2.tfoot=a2.colgroup=a2.caption=a2.thead,a2.th=a2.td,aJ.support.htmlSerialize||(a2._default=[1,"div<div>","</div>"]),aJ.fn.extend({text:function(b){if(aJ.isFunction(b)){return this.each(function(a){var d=aJ(this);d.text(b.call(this,a,d.text()))})}if(typeof b!=="object"&&b!==aN){return this.empty().append((this[0]&&this[0].ownerDocument||aL).createTextNode(b))}return aJ.text(this)},wrapAll:function(d){if(aJ.isFunction(d)){return this.each(function(a){aJ(this).wrapAll(d.call(this,a))})}if(this[0]){var c=aJ(d,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var b=this;while(b.firstChild&&b.firstChild.nodeType===1){b=b.firstChild}return b}).append(this)}return this},wrapInner:function(b){if(aJ.isFunction(b)){return this.each(function(a){aJ(this).wrapInner(b.call(this,a))})}return this.each(function(){var a=aJ(this),d=a.contents();d.length?d.wrapAll(b):a.append(b)})},wrap:function(b){return this.each(function(){aJ(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){aJ.nodeName(this,"body")||aJ(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)})}if(arguments.length){var b=aJ(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)})}if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,aJ(arguments[0]).toArray());return b}},remove:function(f,d){for(var h=0,g;(g=this[h])!=null;h++){if(!f||aJ.filter(f,[g]).length){!d&&g.nodeType===1&&(aJ.cleanData(g.getElementsByTagName("*")),aJ.cleanData([g])),g.parentNode&&g.parentNode.removeChild(g)}}return this},empty:function(){for(var d=0,c;(c=this[d])!=null;d++){c.nodeType===1&&aJ.cleanData(c.getElementsByTagName("*"));while(c.firstChild){c.removeChild(c.firstChild)}}return this},clone:function(d,c){d=d==null?!1:d,c=c==null?d:c;return this.map(function(){return aJ.clone(this,d,c)})},html:function(b){if(b===aN){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(b8,""):null}if(typeof b!=="string"||a6.test(b)||!aJ.support.leadingWhitespace&&b6.test(b)||a2[(b2.exec(b)||["",""])[1].toLowerCase()]){aJ.isFunction(b)?this.each(function(a){var e=aJ(this);e.html(b.call(this,a,e.html()))}):this.empty().append(b)}else{b=b.replace(b4,"<$1></$2>");try{for(var h=0,g=this.length;h<g;h++){this[h].nodeType===1&&(aJ.cleanData(this[h].getElementsByTagName("*")),this[h].innerHTML=b)}}catch(d){this.empty().append(b)}}return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(aJ.isFunction(b)){return this.each(function(a){var f=aJ(this),d=f.html();f.replaceWith(b.call(this,a,d))})}typeof b!=="string"&&(b=aJ(b).detach());return this.each(function(){var a=this.nextSibling,d=this.parentNode;aJ(this).remove(),a?aJ(a).before(b):aJ(d).append(b)})}return this.pushStack(aJ(aJ.isFunction(b)?b():b),"replaceWith",b)},detach:function(b){return this.remove(b,!0)},domManip:function(x,w,v){var u,t,s,r,q=x[0],p=[];if(!aJ.support.checkClone&&arguments.length===3&&typeof q==="string"&&a4.test(q)){return this.each(function(){aJ(this).domManip(x,w,v,!0)})}if(aJ.isFunction(q)){return this.each(function(c){var a=aJ(this);x[0]=q.call(this,c,w?a.html():aN),a.domManip(x,w,v)})}if(this[0]){r=q&&q.parentNode,aJ.support.parentNode&&r&&r.nodeType===11&&r.childNodes.length===this.length?u={fragment:r}:u=aJ.buildFragment(x,this,p),s=u.fragment,s.childNodes.length===1?t=s=s.firstChild:t=s.firstChild;if(t){w=w&&aJ.nodeName(t,"tr");for(var o=0,d=this.length,b=d-1;o<d;o++){v.call(w?a0(this[o],t):this[o],u.cacheable||d>1&&o<b?aJ.clone(s,!0,!0):s)}}p.length&&aJ.each(p,b9)}return this}}),aJ.buildFragment=function(d,c,n){var m,l,k,j=c&&c[0]?c[0].ownerDocument||c[0]:aL;d.length===1&&typeof d[0]==="string"&&d[0].length<512&&j===aL&&d[0].charAt(0)==="<"&&!a6.test(d[0])&&(aJ.support.checkClone||!a4.test(d[0]))&&(l=!0,k=aJ.fragments[d[0]],k&&(k!==1&&(m=k))),m||(m=j.createDocumentFragment(),aJ.clean(d,j,m,n)),l&&(aJ.fragments[d[0]]=k?m:1);return{fragment:m,cacheable:l}},aJ.fragments={},aJ.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,c){aJ.fn[d]=function(o){var n=[],m=aJ(o),l=this.length===1&&this[0].parentNode;if(l&&l.nodeType===11&&l.childNodes.length===1&&m.length===1){m[c](this[0]);return this}for(var k=0,b=m.length;k<b;k++){var a=(k>0?this.clone(!0):this).get();aJ(m[k])[c](a),n=n.concat(a)}return this.pushStack(n,d,m.selector)}}),aJ.extend({clone:function(i,d,n){var m=i.cloneNode(!0),l,k,j;if((!aJ.support.noCloneEvent||!aJ.support.noCloneChecked)&&(i.nodeType===1||i.nodeType===11)&&!aJ.isXMLDoc(i)){cX(i,m),l=aS(i),k=aS(m);for(j=0;l[j];++j){cX(l[j],k[j])}}if(d){aY(i,m);if(n){l=aS(i),k=aS(m);for(j=0;l[j];++j){aY(l[j],k[j])}}}return m},clean:function(B,A,z,y){A=A||aL,typeof A.createElement==="undefined"&&(A=A.ownerDocument||A[0]&&A[0].ownerDocument||aL);var x=[];for(var w=0,v;(v=B[w])!=null;w++){typeof v==="number"&&(v+="");if(!v){continue}if(typeof v!=="string"||a8.test(v)){if(typeof v==="string"){v=v.replace(b4,"<$1></$2>");var u=(b2.exec(v)||["",""])[1].toLowerCase(),t=a2[u]||a2._default,s=t[0],r=A.createElement("div");r.innerHTML=t[1]+v+t[2];while(s--){r=r.lastChild}if(!aJ.support.tbody){var q=b0.test(v),d=u==="table"&&!q?r.firstChild&&r.firstChild.childNodes:t[1]==="<table>"&&!q?r.childNodes:[];for(var c=d.length-1;c>=0;--c){aJ.nodeName(d[c],"tbody")&&!d[c].childNodes.length&&d[c].parentNode.removeChild(d[c])}}!aJ.support.leadingWhitespace&&b6.test(v)&&r.insertBefore(A.createTextNode(b6.exec(v)[0]),r.firstChild),v=r.childNodes}}else{v=A.createTextNode(v)}v.nodeType?x.push(v):x=aJ.merge(x,v)}if(z){for(w=0;x[w];w++){!y||!aJ.nodeName(x[w],"script")||x[w].type&&x[w].type.toLowerCase()!=="text/javascript"?(x[w].nodeType===1&&x.splice.apply(x,[w+1,0].concat(aJ.makeArray(x[w].getElementsByTagName("script")))),z.appendChild(x[w])):y.push(x[w].parentNode?x[w].parentNode.removeChild(x[w]):x[w])}}return x},cleanData:function(t){var s,r,q=aJ.cache,p=aJ.expando,o=aJ.event.special,n=aJ.support.deleteExpando;for(var m=0,l;(l=t[m])!=null;m++){if(l.nodeName&&aJ.noData[l.nodeName.toLowerCase()]){continue}r=l[aJ.expando];if(r){s=q[r]&&q[r][p];if(s&&s.events){for(var d in s.events){o[d]?aJ.event.remove(l,d):aJ.removeEvent(l,d,s.handle)}s.handle&&(s.handle.elem=null)}n?delete l[aJ.expando]:l.removeAttribute&&l.removeAttribute(aJ.expando),delete q[r]}}}});var b7=/alpha\([^)]*\)/i,b5=/opacity=([^)]*)/,b3=/-([a-z])/ig,b1=/([A-Z])/g,a9=/^-?\d+(?:px)?$/i,a7=/^-?\d/,a5={position:"absolute",visibility:"hidden",display:"block"},a3=["Left","Right"],a1=["Top","Bottom"],aZ,aX,aW,aV=function(d,c){return c.toUpperCase()};aJ.fn.css=function(b,d){if(arguments.length===2&&d===aN){return this}return aJ.access(this,b,d,!0,function(f,h,g){return g!==aN?aJ.style(f,h,g):aJ.css(f,h)})},aJ.extend({cssHooks:{opacity:{get:function(e,d){if(d){var f=aZ(e,"opacity","opacity");return f===""?"1":f}return e.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":aJ.support.cssFloat?"cssFloat":"styleFloat"},style:function(r,q,p,o){if(r&&r.nodeType!==3&&r.nodeType!==8&&r.style){var n,m=aJ.camelCase(q),l=r.style,d=aJ.cssHooks[m];q=aJ.cssProps[m]||m;if(p===aN){if(d&&"get" in d&&(n=d.get(r,!1,o))!==aN){return n}return l[q]}if(typeof p==="number"&&isNaN(p)||p==null){return}typeof p==="number"&&!aJ.cssNumber[m]&&(p+="px");if(!d||!("set" in d)||(p=d.set(r,p))!==aN){try{l[q]=p}catch(b){}}}},css:function(b,l,k){var j,i=aJ.camelCase(l),d=aJ.cssHooks[i];l=aJ.cssProps[i]||i;if(d&&"get" in d&&(j=d.get(b,!0,k))!==aN){return j}if(aZ){return aZ(b,l,i)}},swap:function(g,f,j){var i={};for(var h in f){i[h]=g.style[h],g.style[h]=f[h]}j.call(g);for(h in f){g.style[h]=i[h]}},camelCase:function(b){return b.replace(b3,aV)}}),aJ.curCSS=aJ.css,aJ.each(["height","width"],function(d,c){aJ.cssHooks[c]={get:function(b,i,h){var g;if(i){b.offsetWidth!==0?g=aU(b,c,h):aJ.swap(b,a5,function(){g=aU(b,c,h)});if(g<=0){g=aZ(b,c,c),g==="0px"&&aW&&(g=aW(b,c,c));if(g!=null){return g===""||g==="auto"?"0px":g}}if(g<0||g==null){g=b.style[c];return g===""||g==="auto"?"0px":g}return typeof g==="string"?g:g+"px"}},set:function(f,e){if(!a9.test(e)){return e}e=parseFloat(e);if(e>=0){return e+"px"}}}}),aJ.support.opacity||(aJ.cssHooks.opacity={get:function(d,c){return b5.test((c&&d.currentStyle?d.currentStyle.filter:d.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(g,d){var j=g.style;j.zoom=1;var i=aJ.isNaN(d)?"":"alpha(opacity="+d*100+")",h=j.filter||"";j.filter=b7.test(h)?h.replace(b7,i):j.filter+" "+i}}),aL.defaultView&&aL.defaultView.getComputedStyle&&(aX=function(b,l,k){var j,i,d;k=k.replace(b1,"-$1").toLowerCase();if(!(i=b.ownerDocument.defaultView)){return aN}if(d=i.getComputedStyle(b,null)){j=d.getPropertyValue(k),j===""&&!aJ.contains(b.ownerDocument.documentElement,b)&&(j=aJ.style(b,k))}return j}),aL.documentElement.currentStyle&&(aW=function(h,g){var l,k=h.currentStyle&&h.currentStyle[g],j=h.runtimeStyle&&h.runtimeStyle[g],i=h.style;!a9.test(k)&&a7.test(k)&&(l=i.left,j&&(h.runtimeStyle.left=h.currentStyle.left),i.left=g==="fontSize"?"1em":k||0,k=i.pixelLeft+"px",i.left=l,j&&(h.runtimeStyle.left=j));return k===""?"auto":k}),aZ=aX||aW,aJ.expr&&aJ.expr.filters&&(aJ.expr.filters.hidden=function(e){var d=e.offsetWidth,f=e.offsetHeight;return d===0&&f===0||!aJ.support.reliableHiddenOffsets&&(e.style.display||aJ.css(e,"display"))==="none"},aJ.expr.filters.visible=function(b){return !aJ.expr.filters.hidden(b)});var aT=/%20/g,aR=/\[\]$/,aQ=/\r?\n/g,aO=/#.*$/,aM=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aK=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aI=/(?:^file|^widget|\-extension):$/,aG=/^(?:GET|HEAD)$/,aE=/^\/\//,aC=/\?/,aA=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cW=/^(?:select|textarea)/i,cV=/\s+/,cU=/([?&])_=[^&]*/,cT=/(^|\-)([a-z])/g,cS=function(e,d,f){return d+f.toUpperCase()},cR=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,cQ=aJ.fn.load,cP={},cO={},cN,cM;try{cN=aL.location.href}catch(cL){cN=aL.createElement("a"),cN.href="",cN=cN.href}cM=cR.exec(cN.toLowerCase()),aJ.fn.extend({load:function(b,n,m){if(typeof b!=="string"&&cQ){return cQ.apply(this,arguments)}if(!this.length){return this}var l=b.indexOf(" ");if(l>=0){var k=b.slice(l,b.length);b=b.slice(0,l)}var j="GET";n&&(aJ.isFunction(n)?(m=n,n=aN):typeof n==="object"&&(n=aJ.param(n,aJ.ajaxSettings.traditional),j="POST"));var d=this;aJ.ajax({url:b,type:j,dataType:"html",data:n,complete:function(f,e,g){g=f.responseText,f.isResolved()&&(f.done(function(c){g=c}),d.html(k?aJ("<div>").append(g.replace(aA,"")).find(k):g)),m&&d.each(m,[g,e,f])}});return this},serialize:function(){return aJ.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?aJ.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||cW.test(this.nodeName)||aK.test(this.type))}).map(function(e,d){var f=aJ(this).val();return f==null?null:aJ.isArray(f)?aJ.map(f,function(b,g){return{name:d.name,value:b.replace(aQ,"\r\n")}}):{name:d.name,value:f.replace(aQ,"\r\n")}}).get()}}),aJ.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,c){aJ.fn[c]=function(b){return this.bind(c,b)}}),aJ.each(["get","post"],function(b,d){aJ[d]=function(c,j,i,h){aJ.isFunction(j)&&(h=h||i,i=j,j=aN);return aJ.ajax({type:d,url:c,data:j,success:i,dataType:h})}}),aJ.extend({getScript:function(b,d){return aJ.get(b,aN,d,"script")},getJSON:function(e,d,f){return aJ.get(e,d,f,"json")},ajaxSetup:function(e,d){d?aJ.extend(!0,e,aJ.ajaxSettings,d):(d=e,e=aJ.extend(!0,aJ.ajaxSettings,d));for(var f in {context:1,url:1}){f in d?e[f]=d[f]:f in aJ.ajaxSettings&&(e[f]=aJ.ajaxSettings[f])}return e},ajaxSettings:{url:cN,isLocal:aI.test(cM[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":aP.String,"text html":!0,"text json":aJ.parseJSON,"text xml":aJ.parseXML}},ajaxPrefilter:cK(cP),ajaxTransport:cK(cO),ajax:function(T,S){function A(m,i,g,f){if(E!==2){E=2,G&&clearTimeout(G),H=aN,J=f||"",B.readyState=m?4:0;var e,r,p,o=g?cH(R,B,g):aN,k,j;if(m>=200&&m<300||m===304){if(R.ifModified){if(k=B.getResponseHeader("Last-Modified")){aJ.lastModified[L]=k}if(j=B.getResponseHeader("Etag")){aJ.etag[L]=j}}if(m===304){i="notmodified",e=!0}else{try{r=cG(R,o),i="success",e=!0}catch(h){i="parsererror",p=h}}}else{p=i;if(!i||m){i="error",m<0&&(m=0)}}B.status=m,B.statusText=i,e?O.resolveWith(Q,[r,i,B]):O.rejectWith(Q,[B,i,p]),B.statusCode(M),M=aN,D&&P.trigger("ajax"+(e?"Success":"Error"),[B,R,e?r:p]),N.resolveWith(Q,[B,i]),D&&(P.trigger("ajaxComplete",[B,R]),--aJ.active||aJ.event.trigger("ajaxStop"))}}typeof T==="object"&&(S=T,T=aN),S=S||{};var R=aJ.ajaxSetup({},S),Q=R.context||R,P=Q!==R&&(Q.nodeType||Q instanceof aJ)?aJ(Q):aJ.event,O=aJ.Deferred(),N=aJ._Deferred(),M=R.statusCode||{},L,K={},J,I,H,G,F,E=0,D,C,B={readyState:0,setRequestHeader:function(e,c){E||(K[e.toLowerCase().replace(cT,cS)]=c);return this},getAllResponseHeaders:function(){return E===2?J:null},getResponseHeader:function(e){var f;if(E===2){if(!I){I={};while(f=aM.exec(J)){I[f[1].toLowerCase()]=f[2]}}f=I[e.toLowerCase()]}return f===aN?null:f},overrideMimeType:function(c){E||(R.mimeType=c);return this},abort:function(c){c=c||"abort",H&&H.abort(c),A(0,c);return this}};O.promise(B),B.success=B.done,B.error=B.fail,B.complete=N.done,B.statusCode=function(e){if(e){var c;if(E<2){for(c in e){M[c]=[M[c],e[c]]}}else{c=e[B.status],B.then(c,c)}}return this},R.url=((T||R.url)+"").replace(aO,"").replace(aE,cM[1]+"//"),R.dataTypes=aJ.trim(R.dataType||"*").toLowerCase().split(cV),R.crossDomain||(F=cR.exec(R.url.toLowerCase()),R.crossDomain=F&&(F[1]!=cM[1]||F[2]!=cM[2]||(F[3]||(F[1]==="http:"?80:443))!=(cM[3]||(cM[1]==="http:"?80:443)))),R.data&&R.processData&&typeof R.data!=="string"&&(R.data=aJ.param(R.data,R.traditional)),cJ(cP,R,S,B);if(E===2){return !1}D=R.global,R.type=R.type.toUpperCase(),R.hasContent=!aG.test(R.type),D&&aJ.active++===0&&aJ.event.trigger("ajaxStart");if(!R.hasContent){R.data&&(R.url+=(aC.test(R.url)?"&":"?")+R.data),L=R.url;if(R.cache===!1){var z=aJ.now(),d=R.url.replace(cU,"$1_="+z);R.url=d+(d===R.url?(aC.test(R.url)?"&":"?")+"_="+z:"")}}if(R.data&&R.hasContent&&R.contentType!==!1||S.contentType){K["Content-Type"]=R.contentType}R.ifModified&&(L=L||R.url,aJ.lastModified[L]&&(K["If-Modified-Since"]=aJ.lastModified[L]),aJ.etag[L]&&(K["If-None-Match"]=aJ.etag[L])),K.Accept=R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", */*; q=0.01":""):R.accepts["*"];for(C in R.headers){B.setRequestHeader(C,R.headers[C])}if(R.beforeSend&&(R.beforeSend.call(Q,B,R)===!1||E===2)){B.abort();return !1}for(C in {success:1,error:1,complete:1}){B[C](R[C])}H=cJ(cO,R,S,B);if(H){B.readyState=1,D&&P.trigger("ajaxSend",[B,R]),R.async&&R.timeout>0&&(G=setTimeout(function(){B.abort("timeout")},R.timeout));try{E=1,H.send(K,A)}catch(b){status<2?A(-1,b):aJ.error(b)}}else{A(-1,"No Transport")}return B},param:function(b,j){var i=[],h=function(e,c){c=aJ.isFunction(c)?c():c,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(c)};j===aN&&(j=aJ.ajaxSettings.traditional);if(aJ.isArray(b)||b.jquery&&!aJ.isPlainObject(b)){aJ.each(b,function(){h(this.name,this.value)})}else{for(var d in b){cI(d,b[d],j,h)}}return i.join("&").replace(aT,"+")}}),aJ.extend({active:0,lastModified:{},etag:{}});var cF=aJ.now(),cD=/(\=)\?(&|$)|()\?\?()/i;aJ.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return aJ.expando+"_"+cF++}}),aJ.ajaxPrefilter("json jsonp",function(v,u,t){var s=typeof v.data==="string";if(v.dataTypes[0]==="jsonp"||u.jsonpCallback||u.jsonp!=null||v.jsonp!==!1&&(cD.test(v.url)||s&&cD.test(v.data))){var r,q=v.jsonpCallback=aJ.isFunction(v.jsonpCallback)?v.jsonpCallback():v.jsonpCallback,p=aP[q],o=v.url,n=v.data,d="$1"+q+"$2",a=function(){aP[q]=p,r&&aJ.isFunction(p)&&aP[q](r[0])};v.jsonp!==!1&&(o=o.replace(cD,d),v.url===o&&(s&&(n=n.replace(cD,d)),v.data===n&&(o+=(/\?/.test(o)?"&":"?")+v.jsonp+"="+q))),v.url=o,v.data=n,aP[q]=function(b){r=[b]},t.then(a,a),v.converters["script json"]=function(){r||aJ.error(q+" was not called");return r[0]},v.dataTypes[0]="json";return"script"}}),aJ.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(b){aJ.globalEval(b);return b}}}),aJ.ajaxPrefilter("script",function(b){b.cache===aN&&(b.cache=!1),b.crossDomain&&(b.type="GET",b.global=!1)}),aJ.ajaxTransport("script",function(b){if(b.crossDomain){var f,c=aL.head||aL.getElementsByTagName("head")[0]||aL.documentElement;return{send:function(d,a){f=aL.createElement("script"),f.async="async",b.scriptCharset&&(f.charset=b.scriptCharset),f.src=b.url,f.onload=f.onreadystatechange=function(e,g){if(!f.readyState||/loaded|complete/.test(f.readyState)){f.onload=f.onreadystatechange=null,c&&f.parentNode&&c.removeChild(f),f=aN,g||a(200,"success")}},c.insertBefore(f,c.firstChild)},abort:function(){f&&f.onload(0,1)}}}});var cB=aJ.now(),cz,cx;aJ.ajaxSettings.xhr=aP.ActiveXObject?function(){return !this.isLocal&&cu()||cs()}:cu,cx=aJ.ajaxSettings.xhr(),aJ.support.ajax=!!cx,aJ.support.cors=cx&&"withCredentials" in cx,cx=aN,aJ.support.ajax&&aJ.ajaxTransport(function(b){if(!b.crossDomain||aJ.support.cors){var d;return{send:function(n,m){var l=b.xhr(),k,c;b.username?l.open(b.type,b.url,b.async,b.username,b.password):l.open(b.type,b.url,b.async);if(b.xhrFields){for(c in b.xhrFields){l[c]=b.xhrFields[c]}}b.mimeType&&l.overrideMimeType&&l.overrideMimeType(b.mimeType),(!b.crossDomain||b.hasContent)&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");try{for(c in n){l.setRequestHeader(c,n[c])}}catch(a){}l.send(b.hasContent&&b.data||null),d=function(v,u){var t,s,r,q,h;try{if(d&&(u||l.readyState===4)){d=aN,k&&(l.onreadystatechange=aJ.noop,delete cz[k]);if(u){l.readyState!==4&&l.abort()}else{t=l.status,r=l.getAllResponseHeaders(),q={},h=l.responseXML,h&&h.documentElement&&(q.xml=h),q.text=l.responseText;try{s=l.statusText}catch(g){s=""}t||!b.isLocal||b.crossDomain?t===1223&&(t=204):t=q.text?200:404}}}catch(f){u||m(-1,f)}q&&m(t,s,q,r)},b.async&&l.readyState!==4?(cz||(cz={},cw()),k=cB++,l.onreadystatechange=cz[k]=d):d()},abort:function(){d&&d(0,1)}}}});var cp={},cY=/^(?:toggle|show|hide)$/,cj=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,at,aq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];aJ.fn.extend({show:function(i,d,n){var m,l;if(i||i===0){return this.animate(ap("show",3),i,d,n)}for(var k=0,j=this.length;k<j;k++){m=this[k],l=m.style.display,!aJ._data(m,"olddisplay")&&l==="none"&&(l=m.style.display=""),l===""&&aJ.css(m,"display")==="none"&&aJ._data(m,"olddisplay",an(m.nodeName))}for(k=0;k<j;k++){m=this[k],l=m.style.display;if(l===""||l==="none"){m.style.display=aJ._data(m,"olddisplay")||""}}return this},hide:function(h,d,l){if(h||h===0){return this.animate(ap("hide",3),h,d,l)}for(var k=0,j=this.length;k<j;k++){var i=aJ.css(this[k],"display");i!=="none"&&!aJ._data(this[k],"olddisplay")&&aJ._data(this[k],"olddisplay",i)}for(k=0;k<j;k++){this[k].style.display="none"}return this},_toggle:aJ.fn.toggle,toggle:function(f,d,h){var g=typeof f==="boolean";aJ.isFunction(f)&&aJ.isFunction(d)?this._toggle.apply(this,arguments):f==null||g?this.each(function(){var a=g?f:aJ(this).is(":hidden");aJ(this)[a?"show":"hide"]()}):this.animate(ap("toggle",3),f,d,h);return this},fadeTo:function(f,e,h,g){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:e},f,h,g)},animate:function(g,d,j,i){var h=aJ.speed(d,j,i);if(aJ.isEmptyObject(g)){return this.each(h.complete)}return this[h.queue===!1?"each":"queue"](function(){var a=aJ.extend({},h),o,n=this.nodeType===1,m=n&&aJ(this).is(":hidden"),l=this;for(o in g){var k=aJ.camelCase(o);o!==k&&(g[k]=g[o],delete g[o],o=k);if(g[o]==="hide"&&m||g[o]==="show"&&!m){return a.complete.call(this)}if(n&&(o==="height"||o==="width")){a.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(aJ.css(this,"display")==="inline"&&aJ.css(this,"float")==="none"){if(aJ.support.inlineBlockNeedsLayout){var f=an(this.nodeName);f==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)}else{this.style.display="inline-block"}}}aJ.isArray(g[o])&&((a.specialEasing=a.specialEasing||{})[o]=g[o][1],g[o]=g[o][0])}a.overflow!=null&&(this.style.overflow="hidden"),a.curAnim=aJ.extend({},g),aJ.each(g,function(u,t){var s=new aJ.fx(l,a,u);if(cY.test(t)){s[t==="toggle"?m?"show":"hide":t](g)}else{var r=cj.exec(t),q=s.cur();if(r){var p=parseFloat(r[2]),b=r[3]||(aJ.cssNumber[u]?"":"px");b!=="px"&&(aJ.style(l,u,(p||1)+b),q=(p||1)/s.cur()*q,aJ.style(l,u,q+b)),r[1]&&(p=(r[1]==="-="?-1:1)*p+q),s.custom(q,p,b)}else{s.custom(q,t,"")}}});return !0})},stop:function(e,d){var f=aJ.timers;e&&this.queue([]),this.each(function(){for(var b=f.length-1;b>=0;b--){f[b].elem===this&&(d&&f[b](!0),f.splice(b,1))}}),d||this.dequeue();return this}}),aJ.each({slideDown:ap("show",1),slideUp:ap("hide",1),slideToggle:ap("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,c){aJ.fn[d]=function(b,f,e){return this.animate(c,b,f,e)}}),aJ.extend({speed:function(f,d,h){var g=f&&typeof f==="object"?aJ.extend({},f):{complete:h||!h&&d||aJ.isFunction(f)&&f,duration:f,easing:h&&d||d&&!aJ.isFunction(d)&&d};g.duration=aJ.fx.off?0:typeof g.duration==="number"?g.duration:g.duration in aJ.fx.speeds?aJ.fx.speeds[g.duration]:aJ.fx.speeds._default,g.old=g.complete,g.complete=function(){g.queue!==!1&&aJ(this).dequeue(),aJ.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(f,e,h,g){return h+g*f},swing:function(f,e,h,g){return(-Math.cos(f*Math.PI)/2+0.5)*g+h}},timers:[],fx:function(e,d,f){this.options=d,this.elem=e,this.prop=f,d.orig||(d.orig={})}}),aJ.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(aJ.fx.step[this.prop]||aJ.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var d,c=aJ.css(this.elem,this.prop);return isNaN(d=parseFloat(c))?!c||c==="auto"?0:c:d},custom:function(h,d,l){function i(b){return k.step(b)}var k=this,j=aJ.fx;this.startTime=aJ.now(),this.start=h,this.end=d,this.unit=l||this.unit||(aJ.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,i.elem=this.elem,i()&&aJ.timers.push(i)&&!at&&(at=setInterval(j.tick,j.interval))},show:function(){this.options.orig[this.prop]=aJ.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),aJ(this.elem).show()},hide:function(){this.options.orig[this.prop]=aJ.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var s=aJ.now(),r=!0;if(t||s>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var q in this.options.curAnim){this.options.curAnim[q]!==!0&&(r=!1)}if(r){if(this.options.overflow!=null&&!aJ.support.shrinkWrapBlocks){var p=this.elem,o=this.options;aJ.each(["","X","Y"],function(e,c){p.style["overflow"+c]=o.overflow[e]})}this.options.hide&&aJ(this.elem).hide();if(this.options.hide||this.options.show){for(var n in this.options.curAnim){aJ.style(this.elem,n,this.options.orig[n])}}this.options.complete.call(this.elem)}return !1}var m=s-this.startTime;this.state=m/this.options.duration;var l=this.options.specialEasing&&this.options.specialEasing[this.prop],d=this.options.easing||(aJ.easing.swing?"swing":"linear");this.pos=aJ.easing[l||d](this.state,m,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return !0}},aJ.extend(aJ.fx,{tick:function(){var d=aJ.timers;for(var c=0;c<d.length;c++){d[c]()||d.splice(c--,1)}d.length||aJ.fx.stop()},interval:13,stop:function(){clearInterval(at),at=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){aJ.style(b.elem,"opacity",b.now)},_default:function(b){b.elem.style&&b.elem.style[b.prop]!=null?b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit:b.elem[b.prop]=b.now}}}),aJ.expr&&aJ.expr.filters&&(aJ.expr.filters.animated=function(b){return aJ.grep(aJ.timers,function(a){return b===a.elem}).length});var ak=/^t(?:able|d|h)$/i,ai=/^(?:body|html)$/i;"getBoundingClientRect" in aL.documentElement?aJ.fn.offset=function(B){var A=this[0],z;if(B){return this.each(function(a){aJ.offset.setOffset(this,B,a)})}if(!A||!A.ownerDocument){return null}if(A===A.ownerDocument.body){return aJ.offset.bodyOffset(A)}try{z=A.getBoundingClientRect()}catch(y){}var x=A.ownerDocument,w=x.documentElement;if(!z||!aJ.contains(w,A)){return z?{top:z.top,left:z.left}:{top:0,left:0}}var v=x.body,u=ah(x),t=w.clientTop||v.clientTop||0,s=w.clientLeft||v.clientLeft||0,r=u.pageYOffset||aJ.support.boxModel&&w.scrollTop||v.scrollTop,q=u.pageXOffset||aJ.support.boxModel&&w.scrollLeft||v.scrollLeft,p=z.top+r-t,d=z.left+q-s;return{top:p,left:d}}:aJ.fn.offset=function(x){var w=this[0];if(x){return this.each(function(a){aJ.offset.setOffset(this,x,a)})}if(!w||!w.ownerDocument){return null}if(w===w.ownerDocument.body){return aJ.offset.bodyOffset(w)}aJ.offset.initialize();var v,u=w.offsetParent,t=w,s=w.ownerDocument,r=s.documentElement,q=s.body,p=s.defaultView,o=p?p.getComputedStyle(w,null):w.currentStyle,n=w.offsetTop,d=w.offsetLeft;while((w=w.parentNode)&&w!==q&&w!==r){if(aJ.offset.supportsFixedPosition&&o.position==="fixed"){break}v=p?p.getComputedStyle(w,null):w.currentStyle,n-=w.scrollTop,d-=w.scrollLeft,w===u&&(n+=w.offsetTop,d+=w.offsetLeft,aJ.offset.doesNotAddBorder&&(!aJ.offset.doesAddBorderForTableAndCells||!ak.test(w.nodeName))&&(n+=parseFloat(v.borderTopWidth)||0,d+=parseFloat(v.borderLeftWidth)||0),t=u,u=w.offsetParent),aJ.offset.subtractsBorderForOverflowNotVisible&&v.overflow!=="visible"&&(n+=parseFloat(v.borderTopWidth)||0,d+=parseFloat(v.borderLeftWidth)||0),o=v}if(o.position==="relative"||o.position==="static"){n+=q.offsetTop,d+=q.offsetLeft}aJ.offset.supportsFixedPosition&&o.position==="fixed"&&(n+=Math.max(r.scrollTop,q.scrollTop),d+=Math.max(r.scrollLeft,q.scrollLeft));return{top:n,left:d}},aJ.offset={initialize:function(){var d=aL.body,c=aL.createElement("div"),p,o,n,m,l=parseFloat(aJ.css(d,"marginTop"))||0,k="<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>";aJ.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),c.innerHTML=k,d.insertBefore(c,d.firstChild),p=c.firstChild,o=p.firstChild,m=p.nextSibling.firstChild.firstChild,this.doesNotAddBorder=o.offsetTop!==5,this.doesAddBorderForTableAndCells=m.offsetTop===5,o.style.position="fixed",o.style.top="20px",this.supportsFixedPosition=o.offsetTop===20||o.offsetTop===15,o.style.position=o.style.top="",p.style.overflow="hidden",p.style.position="relative",this.subtractsBorderForOverflowNotVisible=o.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==l,d.removeChild(c),d=c=p=o=n=m=null,aJ.offset.initialize=aJ.noop},bodyOffset:function(e){var d=e.offsetTop,f=e.offsetLeft;aJ.offset.initialize(),aJ.offset.doesNotIncludeMarginInBodyOffset&&(d+=parseFloat(aJ.css(e,"marginTop"))||0,f+=parseFloat(aJ.css(e,"marginLeft"))||0);return{top:d,left:f}},setOffset:function(z,y,x){var w=aJ.css(z,"position");w==="static"&&(z.style.position="relative");var v=aJ(z),u=v.offset(),t=aJ.css(z,"top"),s=aJ.css(z,"left"),r=w==="absolute"&&aJ.inArray("auto",[t,s])>-1,q={},p={},o,d;r&&(p=v.position()),o=r?p.top:parseInt(t,10)||0,d=r?p.left:parseInt(s,10)||0,aJ.isFunction(y)&&(y=y.call(z,x,u)),y.top!=null&&(q.top=y.top-u.top+o),y.left!=null&&(q.left=y.left-u.left+d),"using" in y?y.using.call(z,q):v.css(q)}},aJ.fn.extend({position:function(){if(!this[0]){return null}var f=this[0],d=this.offsetParent(),h=this.offset(),g=ai.test(d[0].nodeName)?{top:0,left:0}:d.offset();h.top-=parseFloat(aJ.css(f,"marginTop"))||0,h.left-=parseFloat(aJ.css(f,"marginLeft"))||0,g.top+=parseFloat(aJ.css(d[0],"borderTopWidth"))||0,g.left+=parseFloat(aJ.css(d[0],"borderLeftWidth"))||0;return{top:h.top-g.top,left:h.left-g.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||aL.body;while(b&&(!ai.test(b.nodeName)&&aJ.css(b,"position")==="static")){b=b.offsetParent}return b})}}),aJ.each(["Left","Top"],function(b,f){var d="scroll"+f;aJ.fn[d]=function(h){var e=this[0],a;if(!e){return null}if(h!==aN){return this.each(function(){a=ah(this),a?a.scrollTo(b?aJ(a).scrollLeft():h,b?h:aJ(a).scrollTop()):this[d]=h})}a=ah(e);return a?"pageXOffset" in a?a[b?"pageYOffset":"pageXOffset"]:aJ.support.boxModel&&a.document.documentElement[d]||a.document.body[d]:e[d]}}),aJ.each(["Height","Width"],function(b,f){var d=f.toLowerCase();aJ.fn["inner"+f]=function(){return this[0]?parseFloat(aJ.css(this[0],d,"padding")):null},aJ.fn["outer"+f]=function(c){return this[0]?parseFloat(aJ.css(this[0],d,c?"margin":"border")):null},aJ.fn[d]=function(c){var l=this[0];if(!l){return c==null?null:this}if(aJ.isFunction(c)){return this.each(function(a){var g=aJ(this);g[d](c.call(this,a,g[d]()))})}if(aJ.isWindow(l)){var k=l.document.documentElement["client"+f];return l.document.compatMode==="CSS1Compat"&&k||l.document.body["client"+f]||k}if(l.nodeType===9){return Math.max(l.documentElement["client"+f],l.body["scroll"+f],l.documentElement["scroll"+f],l.body["offset"+f],l.documentElement["offset"+f])}if(c===aN){var j=aJ.css(l,d),e=parseFloat(j);return aJ.isNaN(e)?j:e}return this.css(d,typeof c==="string"?c:c+"px")}}),aP.jQuery=aP.$=aJ})(window);;
(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);;
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});;
(function(aG){var ay,aq,ap,aD,aj,aA,ai,ax,am,al,au=0,aE={},aw=[],av=0,aF={},az=[],ag=null,ao=new Image,ae=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,ad,ac=1,an=0,ar="",at,aB,aC=false,ak=aG.extend(aG("<div/>")[0],{prop:0}),ab=aG.browser.msie&&aG.browser.version<7&&!window.XMLHttpRequest,aa=function(){aq.hide();ao.onerror=ao.onload=null;ag&&ag.abort();ay.empty()},R=function(){if(false===aE.onError(aw,au,aE)){aq.hide();aC=false}else{aE.titleShow=false;aE.width="auto";aE.height="auto";ay.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');ah()}},af=function(){var d=aw[au],j,f,e,i,h,b;aa();aE=aG.extend({},aG.fn.fancybox.defaults,typeof aG(d).data("fancybox")=="undefined"?aE:aG(d).data("fancybox"));b=aE.onStart(aw,au,aE);if(b===false){aC=false}else{if(typeof b=="object"){aE=aG.extend(aE,b)}e=aE.title||(d.nodeName?aG(d).attr("title"):d.title)||"";if(d.nodeName&&!aE.orig){aE.orig=aG(d).children("img:first").length?aG(d).children("img:first"):aG(d)}if(e===""&&aE.orig&&aE.titleFromAlt){e=aE.orig.attr("alt")}j=aE.href||(d.nodeName?aG(d).attr("href"):d.href)||null;if(/^(?:javascript)/i.test(j)||j=="#"){j=null}if(aE.type){f=aE.type;if(!j){j=aE.content}}else{if(aE.content){f="html"}else{if(j){f=j.match(ae)?"image":j.match(k)?"swf":aG(d).hasClass("iframe")?"iframe":j.indexOf("#")===0?"inline":"ajax"}}}if(f){if(f=="inline"){d=j.substr(j.indexOf("#"));f=aG(d).length>0?"inline":"ajax"}aE.type=f;aE.href=j;aE.title=e;if(aE.autoDimensions){if(aE.type=="html"||aE.type=="inline"||aE.type=="ajax"){aE.width="auto";aE.height="auto"}else{aE.autoDimensions=false}}if(aE.modal){aE.overlayShow=true;aE.hideOnOverlayClick=false;aE.hideOnContentClick=false;aE.enableEscapeButton=false;aE.showCloseButton=false}aE.padding=parseInt(aE.padding,10);aE.margin=parseInt(aE.margin,10);ay.css("padding",aE.padding+aE.margin);aG(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){aG(this).replaceWith(aA.children())});switch(f){case"html":ay.html(aE.content);ah();break;case"inline":if(aG(d).parent().is("#fancybox-content")===true){aC=false;break}aG('<div class="fancybox-inline-tmp" />').hide().insertBefore(aG(d)).bind("fancybox-cleanup",function(){aG(this).replaceWith(aA.children())}).bind("fancybox-cancel",function(){aG(this).replaceWith(ay.children())});aG(d).appendTo(ay);ah();break;case"image":aC=false;aG.fancybox.showActivity();ao=new Image;ao.onerror=function(){R()};ao.onload=function(){aC=true;ao.onerror=ao.onload=null;aE.width=ao.width;aE.height=ao.height;aG("<img />").attr({id:"fancybox-img",src:ao.src,alt:aE.title}).appendTo(ay);P()};ao.src=j;break;case"swf":aE.scrolling="no";i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+aE.width+'" height="'+aE.height+'"><param name="movie" value="'+j+'"></param>';h="";aG.each(aE.swf,function(l,m){i+='<param name="'+l+'" value="'+m+'"></param>';h+=" "+l+'="'+m+'"'});i+='<embed src="'+j+'" type="application/x-shockwave-flash" width="'+aE.width+'" height="'+aE.height+'"'+h+"></embed></object>";ay.html(i);ah();break;case"ajax":aC=false;aG.fancybox.showActivity();aE.ajax.win=aE.ajax.success;ag=aG.ajax(aG.extend({},aE.ajax,{url:j,data:aE.ajax.data||{},error:function(l){l.status>0&&R()},success:function(l,m,n){if((typeof n=="object"?n:ag).status==200){if(typeof aE.ajax.win=="function"){b=aE.ajax.win(j,l,m,n);if(b===false){aq.hide();return}else{if(typeof b=="string"||typeof b=="object"){l=b}}}ay.html(l);ah()}}}));break;case"iframe":P()}}else{R()}}},ah=function(){var b=aE.width,d=aE.height;b=b.toString().indexOf("%")>-1?parseInt((aG(window).width()-aE.margin*2)*parseFloat(b)/100,10)+"px":b=="auto"?"auto":b+"px";d=d.toString().indexOf("%")>-1?parseInt((aG(window).height()-aE.margin*2)*parseFloat(d)/100,10)+"px":d=="auto"?"auto":d+"px";ay.wrapInner('<div style="width:'+b+";height:"+d+";overflow: "+(aE.scrolling=="auto"?"auto":aE.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');aE.width=ay.width();aE.height=ay.height();P()},P=function(){var b,d;aq.hide();if(aD.is(":visible")&&false===aF.onCleanup(az,av,aF)){aG.event.trigger("fancybox-cancel");aC=false}else{aC=true;aG(aA.add(ap)).unbind();aG(window).unbind("resize.fb scroll.fb");aG(document).unbind("keydown.fb");aD.is(":visible")&&aF.titlePosition!=="outside"&&aD.css("height",aD.height());az=aw;av=au;aF=aE;if(aF.overlayShow){ap.css({"background-color":aF.overlayColor,opacity:aF.overlayOpacity,cursor:aF.hideOnOverlayClick?"pointer":"auto",height:aG(document).height()});if(!ap.is(":visible")){ab&&aG("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});ap.show()}}else{ap.hide()}aB=g();ar=aF.title||"";an=0;ax.empty().removeAttr("style").removeClass();if(aF.titleShow!==false){if(aG.isFunction(aF.titleFormat)){b=aF.titleFormat(ar,az,av,aF)}else{b=ar&&ar.length?aF.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+ar+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+aF.titlePosition+'">'+ar+"</div>":false}ar=b;if(!(!ar||ar==="")){ax.addClass("fancybox-title-"+aF.titlePosition).html(ar).appendTo("body").show();switch(aF.titlePosition){case"inside":ax.css({width:aB.width-aF.padding*2,marginLeft:aF.padding,marginRight:aF.padding});an=ax.outerHeight(true);ax.appendTo(aj);aB.height+=an;break;case"over":ax.css({marginLeft:aF.padding,width:aB.width-aF.padding*2,bottom:aF.padding}).appendTo(aj);break;case"float":ax.css("left",parseInt((ax.width()-aB.width-40)/2,10)*-1).appendTo(aD);break;default:ax.css({width:aB.width-aF.padding*2,paddingLeft:aF.padding,paddingRight:aF.padding}).appendTo(aD)}}}ax.hide();if(aD.is(":visible")){aG(ai.add(am).add(al)).hide();b=aD.position();at={top:b.top,left:b.left,width:aD.width(),height:aD.height()};d=at.width==aB.width&&at.height==aB.height;aA.fadeTo(aF.changeFade,0.3,function(){var e=function(){aA.html(ay.contents()).fadeTo(aF.changeFade,1,H)};aG.event.trigger("fancybox-change");aA.empty().removeAttr("filter").css({"border-width":aF.padding,width:aB.width-aF.padding*2,height:aE.autoDimensions?"auto":aB.height-an-aF.padding*2});if(d){e()}else{ak.prop=0;aG(ak).animate({prop:1},{duration:aF.changeSpeed,easing:aF.easingChange,step:C,complete:e})}})}else{aD.removeAttr("style");aA.css("border-width",aF.padding);if(aF.transitionIn=="elastic"){at=w();aA.html(ay.contents());aD.show();if(aF.opacity){aB.opacity=0}ak.prop=0;aG(ak).animate({prop:1},{duration:aF.speedIn,easing:aF.easingIn,step:C,complete:H})}else{aF.titlePosition=="inside"&&an>0&&ax.show();aA.css({width:aB.width-aF.padding*2,height:aE.autoDimensions?"auto":aB.height-an-aF.padding*2}).html(ay.contents());aD.css(aB).fadeIn(aF.transitionIn=="none"?0:aF.speedIn,H)}}}},c=function(){if(aF.enableEscapeButton||aF.enableKeyboardNav){aG(document).bind("keydown.fb",function(b){if(b.keyCode==27&&aF.enableEscapeButton){b.preventDefault();aG.fancybox.close()}else{if((b.keyCode==37||b.keyCode==39)&&aF.enableKeyboardNav&&b.target.tagName!=="INPUT"&&b.target.tagName!=="TEXTAREA"&&b.target.tagName!=="SELECT"){b.preventDefault();aG.fancybox[b.keyCode==37?"prev":"next"]()}}})}if(aF.showNavArrows){if(aF.cyclic&&az.length>1||av!==0){am.show()}if(aF.cyclic&&az.length>1||av!=az.length-1){al.show()}}else{am.hide();al.hide()}},H=function(){if(!aG.support.opacity){aA.get(0).style.removeAttribute("filter");aD.get(0).style.removeAttribute("filter")}aE.autoDimensions&&aA.css("height","auto");aD.css("height","auto");ar&&ar.length&&ax.show();aF.showCloseButton&&ai.show();c();aF.hideOnContentClick&&aA.bind("click",aG.fancybox.close);aF.hideOnOverlayClick&&ap.bind("click",aG.fancybox.close);aG(window).bind("resize.fb",aG.fancybox.resize);aF.centerOnScroll&&aG(window).bind("scroll.fb",aG.fancybox.center);if(aF.type=="iframe"){aG('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(aG.browser.msie?'allowtransparency="true""':"")+' scrolling="'+aE.scrolling+'" src="'+aF.href+'"></iframe>').appendTo(aA)}aD.show();aC=false;aG.fancybox.center();aF.onComplete(az,av,aF);var b,d;if(az.length-1>av){b=az[av+1].href;if(typeof b!=="undefined"&&b.match(ae)){d=new Image;d.src=b}}if(av>0){b=az[av-1].href;if(typeof b!=="undefined"&&b.match(ae)){d=new Image;d.src=b}}},C=function(b){var d={width:parseInt(at.width+(aB.width-at.width)*b,10),height:parseInt(at.height+(aB.height-at.height)*b,10),top:parseInt(at.top+(aB.top-at.top)*b,10),left:parseInt(at.left+(aB.left-at.left)*b,10)};if(typeof aB.opacity!=="undefined"){d.opacity=b<0.5?0.5:b}aD.css(d);aA.css({width:d.width-aF.padding*2,height:d.height-an*b-aF.padding*2})},x=function(){return[aG(window).width()-aF.margin*2,aG(window).height()-aF.margin*2,aG(document).scrollLeft()+aF.margin,aG(document).scrollTop()+aF.margin]},g=function(){var b=x(),f={},e=aF.autoScale,d=aF.padding*2;f.width=aF.width.toString().indexOf("%")>-1?parseInt(b[0]*parseFloat(aF.width)/100,10):aF.width+d;f.height=aF.height.toString().indexOf("%")>-1?parseInt(b[1]*parseFloat(aF.height)/100,10):aF.height+d;if(e&&(f.width>b[0]||f.height>b[1])){if(aE.type=="image"||aE.type=="swf"){e=aF.width/aF.height;if(f.width>b[0]){f.width=b[0];f.height=parseInt((f.width-d)/e+d,10)}if(f.height>b[1]){f.height=b[1];f.width=parseInt((f.height-d)*e+d,10)}}else{f.width=Math.min(f.width,b[0]);f.height=Math.min(f.height,b[1])}}f.top=parseInt(Math.max(b[3]-20,b[3]+(b[1]-f.height-40)*0.5),10);f.left=parseInt(Math.max(b[2]-20,b[2]+(b[0]-f.width-40)*0.5),10);return f},w=function(){var b=aE.orig?aG(aE.orig):false,d={};if(b&&b.length){d=b.offset();d.top+=parseInt(b.css("paddingTop"),10)||0;d.left+=parseInt(b.css("paddingLeft"),10)||0;d.top+=parseInt(b.css("border-top-width"),10)||0;d.left+=parseInt(b.css("border-left-width"),10)||0;d.width=b.width();d.height=b.height();d={width:d.width+aF.padding*2,height:d.height+aF.padding*2,top:d.top-aF.padding-20,left:d.left-aF.padding-20}}else{b=x();d={width:aF.padding*2,height:aF.padding*2,top:parseInt(b[3]+b[1]*0.5,10),left:parseInt(b[2]+b[0]*0.5,10)}}return d},a=function(){if(aq.is(":visible")){aG("div",aq).css("top",ac*-40+"px");ac=(ac+1)%12}else{clearInterval(ad)}};aG.fn.fancybox=function(b){if(!aG(this).length){return this}aG(this).data("fancybox",aG.extend({},b,aG.metadata?aG(this).metadata():{})).unbind("click.fb").bind("click.fb",function(d){d.preventDefault();if(!aC){aC=true;aG(this).blur();aw=[];au=0;d=aG(this).attr("rel")||"";if(!d||d==""||d==="nofollow"){aw.push(this)}else{aw=aG("a[rel="+d+"], area[rel="+d+"]");au=aw.index(this)}af()}});return this};aG.fancybox=function(b,h){var e;if(!aC){aC=true;e=typeof h!=="undefined"?h:{};aw=[];au=parseInt(e.index,10)||0;if(aG.isArray(b)){for(var d=0,f=b.length;d<f;d++){if(typeof b[d]=="object"){aG(b[d]).data("fancybox",aG.extend({},e,b[d]))}else{b[d]=aG({}).data("fancybox",aG.extend({content:b[d]},e))}}aw=jQuery.merge(aw,b)}else{if(typeof b=="object"){aG(b).data("fancybox",aG.extend({},e,b))}else{b=aG({}).data("fancybox",aG.extend({content:b},e))}aw.push(b)}if(au>aw.length||au<0){au=0}af()}};aG.fancybox.showActivity=function(){clearInterval(ad);aq.show();ad=setInterval(a,66)};aG.fancybox.hideActivity=function(){aq.hide()};aG.fancybox.next=function(){return aG.fancybox.pos(av+1)};aG.fancybox.prev=function(){return aG.fancybox.pos(av-1)};aG.fancybox.pos=function(b){if(!aC){b=parseInt(b);aw=az;if(b>-1&&b<az.length){au=b;af()}else{if(aF.cyclic&&az.length>1){au=b>=az.length?0:az.length-1;af()}}}};aG.fancybox.cancel=function(){if(!aC){aC=true;aG.event.trigger("fancybox-cancel");aa();aE.onCancel(aw,au,aE);aC=false}};aG.fancybox.close=function(){function b(){ap.fadeOut("fast");ax.empty().hide();aD.hide();aG.event.trigger("fancybox-cleanup");aA.empty();aF.onClosed(az,av,aF);az=aE=[];av=au=0;aF=aE={};aC=false}if(!(aC||aD.is(":hidden"))){aC=true;if(aF&&false===aF.onCleanup(az,av,aF)){aC=false}else{aa();aG(ai.add(am).add(al)).hide();aG(aA.add(ap)).unbind();aG(window).unbind("resize.fb scroll.fb");aG(document).unbind("keydown.fb");aA.find("iframe").attr("src",ab&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");aF.titlePosition!=="inside"&&ax.empty();aD.stop();if(aF.transitionOut=="elastic"){at=w();var d=aD.position();aB={top:d.top,left:d.left,width:aD.width(),height:aD.height()};if(aF.opacity){aB.opacity=1}ax.empty().hide();ak.prop=1;aG(ak).animate({prop:0},{duration:aF.speedOut,easing:aF.easingOut,step:C,complete:b})}else{aD.fadeOut(aF.transitionOut=="none"?0:aF.speedOut,b)}}}};aG.fancybox.resize=function(){ap.is(":visible")&&ap.css("height",aG(document).height());aG.fancybox.center(true)};aG.fancybox.center=function(b){var e,d;if(!aC){d=b===true?1:0;e=x();!d&&(aD.width()>e[0]||aD.height()>e[1])||aD.stop().animate({top:parseInt(Math.max(e[3]-20,e[3]+(e[1]-aA.height()-40)*0.5-aF.padding)),left:parseInt(Math.max(e[2]-20,e[2]+(e[0]-aA.width()-40)*0.5-aF.padding))},typeof b=="number"?b:200)}};aG.fancybox.init=function(){if(!aG("#fancybox-wrap").length){aG("body").append(ay=aG('<div id="fancybox-tmp"></div>'),aq=aG('<div id="fancybox-loading"><div></div></div>'),ap=aG('<div id="fancybox-overlay"></div>'),aD=aG('<div id="fancybox-wrap"></div>'));aj=aG('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(aD);aj.append(aA=aG('<div id="fancybox-content"></div>'),ai=aG('<a id="fancybox-close"></a>'),ax=aG('<div id="fancybox-title"></div>'),am=aG('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),al=aG('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));ai.click(aG.fancybox.close);aq.click(aG.fancybox.cancel);am.click(function(b){b.preventDefault();aG.fancybox.prev()});al.click(function(b){b.preventDefault();aG.fancybox.next()});aG.fn.mousewheel&&aD.bind("mousewheel.fb",function(b,d){if(aC){b.preventDefault()}else{if(aG(b.target).get(0).clientHeight==0||aG(b.target).get(0).scrollHeight===aG(b.target).get(0).clientHeight){b.preventDefault();aG.fancybox[d>0?"prev":"next"]()}}});aG.support.opacity||aD.addClass("fancybox-ie");if(ab){aq.addClass("fancybox-ie6");aD.addClass("fancybox-ie6");aG('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(aj)}}};aG.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};aG(document).ready(function(){aG.fancybox.init()})})(jQuery);;
$(document).ready(function(){var a=$("#sts");if(getCookie("login")!=null&&getCookie("password")!=null&&getCookie("autologin")!=null){a.removeAttr("onclick")}else{a.fancybox({hideOnContentClick:false,padding:0,scrolling:false,onComplete:function(){stsLoginFromChangeEvent()}})}});function stsLoginFromChangeEvent(){jQuery.extend(Qs_Form,FormExtend);onLoadLoginBox();$("#autologin").click(function(){var a=$("#savelogin");if($(this).attr("checked")){a.val("1")}else{a.val("")}})}var FormExtend={onSubmit:function(a){var e;if(this.tagName=="FORM"){e=this}else{e=a}var d=$(e).attr("id");Qs_Form.editorsTriggerSave(e);Qs_Form.removeElementsErrors(e);if(typeof Qs_Form.formOptions[d]["processRequest"]=="undefined"||Qs_Form.formOptions[d]["processRequest"]!=true){Qs_Form.formOptions[d]["processRequest"]=true;var c=Qs_Form.toObject(e);var b={url:BASE_URL+"/"+CURRENT_PAGE,type:"POST",dataType:"json",data:c,success:function(f){Qs_Form.onSubmitSuccess(f,e)},error:Qs_Form.onSubmitError,complete:function(f,g){Qs_Form.onSubmitComplete(f,g,e)}};$.ajax(b)}return false},displayErrors:function(c){var f=Qs_Form.getFormOption(c,"response");var e=document.getElementById(c);var g=Qs_Form.getErrorDisplayMethod(c);switch(g){case"ALERT":var i=Qs_Form.message.get("invalidInformationEntered")+"\n";i+=Qs_Form.prepareErrorsAlert(f.errors,f.elements);i+="\n\n"+Qs_Form.message.get("pleaseCorrectTheseFields");var b=array_key(f.errors);if(e[b]&&e[b].focus){e[b].focus()}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){e[b+"[input]"].focus()}}$.scrollTo("#"+b+"-label");alert(i);break;case"HTML":Qs_Form.displayErrorsHtml(e,f.errors);var b=array_key(f.errors);var d=null;if(e[b]&&e[b].focus){d=b}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){d=b+"[input]"}}if(d!=null){if($('[name="'+d+'"]:visible',e).size()){e[d].focus()}}var a=Qs_Form.getFormOption(c,"prependId");if(a){b=c+"-"+b}break;default:alert('Qs_Form. Unknown errorDisplayMethod "'+g+'"')}if(typeof f.captcha=="object"&&f.captcha!=null){for(var b in f.captcha){var h=$("#"+b+"-element");if($(h).size()!=0){$("img:first",h).attr("src",f.captcha[b].src);$("#"+b+"-id",h).attr("value",f.captcha[b].id);$("#"+b+"-input",h).attr("value","");if(typeof f.captcha[b].href!="undefined"){$("a.captcha_refresh",h).attr("href",f.captcha[b].href)}}}}},displayErrorsHtml:function(c,h,e){for(var f in h){var g="";var k;if(typeof e!="undefined"){k=e+"["+f+"]"}else{k=f}for(var i in h[f]){if(typeof h[f][i]=="string"){g+="<li>"+h[f][i]+"</li>"}else{Qs_Form.displayErrorsHtml(c,h[f],k);break}}if(g!=""){g='<ul class="errors">'+g+"</ul>";var j=$(c).attr("id");var d=Qs_Form.getFormOption(j,"response");var b=Qs_Array.get(d.elements,k+"[id]");if(null==b){b=k.replace(/\[\]$/,"").replace(/\]/g,"").replace(/\[/g,"-")}var a=Qs_Form.getFormOption(j,"prependId");if(a){b=j+"-"+b}$("#"+b+"-hint").html(g);$("#"+b).attr("style","border: 1px solid red;")}}}};function getCookie(b){var d=" "+document.cookie;var c=" "+b+"=";var e=null;var f=0;var a=0;if(d.length>0){f=d.indexOf(c);if(f!=-1){f+=c.length;a=d.indexOf(";",f);if(a==-1){a=d.length}e=unescape(d.substring(f,a))}}return(e)};;
var App_Slide=qs.create();App_Slide.prototype={__instances:[],_timer:null,_arrowTimer:null,_mouseTimer:null,_mouseOverStatus:null,_animated:false,_buttons:[{name:"prev",title:"Prev"},{name:"play",title:"Play",arguments:[0]},{name:"pause",title:"Pause"},{name:"next",title:"Next"}],arrowsSize:[24,24],_paginatorTemplatePlaceholders:["{FirstPageLink}","{PreviousPageLink}","{PageLinks}","{NextPageLink}","{LastPageLink}"],paginator:null,container:null,itemContainer:null,buttonsContainer:null,index:null,slides:null,idItem:null,status:null,autostart:true,direction:"right",interval:5000,effect:"slide",effectDuration:500,showArrows:true,enableButtons:true,enablePaginator:true,pageLinkWidth:24,paginatorOptions:{firstPageLinkLabel:"&laquo;",previousPageLinkLabel:"&lsaquo;",nextPageLinkLabel:"&rsaquo;",lastPageLinkLabel:"&raquo; ",rowsPerPage:1},init:function(a){new App_Slide(a)},initialize:function(d){this.setOptions(d);if(!this.slides.length){return false}App_Slide.prototype.__instances[this.idItem]=this;var g=this;this.container.onmouseover=function(a){g.itemOnMouseOver(a)};this.container.onmouseout=function(a){g.itemOnMouseOut(a)};if(this.showArrows){this.nextButton=document.createElement("div");this.nextButton.className="slide_next_button ie_png_bg";this.nextButton.style.display="none";this.nextButton.style.marginTop=Math.ceil((this.height-this.arrowsSize[1])/2)+"px";this.nextButton.style.marginLeft=(this.width-this.arrowsSize[0])+"px";this.nextButton.onclick=function(){g.next()};this.container.appendChild(this.nextButton);this.prevButton=document.createElement("div");this.prevButton.className="slide_prev_button ie_png_bg";this.prevButton.style.display="none";this.prevButton.style.marginTop=Math.ceil((this.height-this.arrowsSize[1])/2)+"px";this.prevButton.style.marginLeft="0px";this.prevButton.onclick=function(){g.prev()};this.container.appendChild(this.prevButton)}this.itemContainer=document.createElement("div");this.itemContainer.className="slide_items_container";this.itemContainer.style.width=this.width+"px";this.itemContainer.style.height=this.height+"px";this.container.appendChild(this.itemContainer);if(this.enableButtons||this.enablePaginator){this.toolbarContainer=document.getElementById("slides-toolbar-container-"+this.idItem);if(!this.toolbarContainer){this.toolbarContainer=document.createElement("div");this.toolbarContainer.id="slides-toolbar-container-"+this.idItem;if(this.container.nextSibling){this.container.parentNode.insertBefore(this.toolbarContainer,this.container.nextSibling)}else{this.container.parentNode.appendChild(this.toolbarContainer)}}this.toolbarContainer.className="slide_toolbar_container";this.paginatorContainer=document.createElement("div");this.paginatorContainer.className="slide_paginator";this.paginatorContainer.id="slide-toolbar-"+this.idItem;this.toolbarContainer.appendChild(this.paginatorContainer)}if(this.enableButtons){this.buttonsContainer=document.createElement("div");this.buttonsContainer.className="slide_player";for(var f=this._buttons.length-1;f>=0;f--){var e=this._buttons[f];var c=document.createElement("a");c.className=e.name;c.title=e.title;c.href="#";var h="var obj = App_Slide.prototype.getInstance('"+this.idItem+"'); obj."+e.name;if(typeof e.arguments!="undefined"&&e.arguments.length){h+=".apply(obj, "+json_encode(e.arguments)+");"}else{h+="();"}h+=" return false;";c.setAttribute("onclick",h);this.buttonsContainer.appendChild(c)}this.toolbarContainer.appendChild(this.buttonsContainer)}if(this.toolbarContainer){var b=document.createElement("div");b.className="clear";this.toolbarContainer.appendChild(b)}this.showToolbar();$(".slide_preload",this.container).fadeOut(250);$(".slide_preload",this.container).remove();for(var f=0;f<this.slides.length;f++){this.slides[f].showTime=false;this.slides[f]._animated=true;this.setVisible(false,f)}this.slides[0].showTime=new Date().getTime();if(this.autostart){this.play(0)}else{this.preload(0)}},setOptions:function(a){if(typeof a=="object"){for(var c in a){var b=a[c];if(typeof b=="string"&&!b.length){continue}switch(c){case"interval":this.setInterval(b);break;case"idContainer":this.setContainer(b);break;case"slides":if(typeof b=="object"){this.setSlides(b)}break;case"paginatorOptions":this.setPaginatorOptions(b);break;case"idItem":this.setIdItem(b);break;case"effectDuration":b=intval(b);default:this[c]=b}}}},setPaginatorOption:function(a,b){if(typeof b=="string"&&!b.length){return false}if(a=="linkWidth"&&intval(b)){this.pageLinkWidth=intval(b);return false}this.paginatorOptions[a]=b},setPaginatorOptions:function(a){for(var b in a){this.setPaginatorOption(b,a[b])}},isVisible:function(a){if(typeof a=="undefined"){a=this.index}if(typeof this.slides[a]!="undefined"){return this.slides[a].visible}return false},setVisible:function(b,a){if(typeof a=="undefined"){a=this.index}if(typeof this.slides[a]!="undefined"){this.slides[a].visible=b}return false},isPreloaded:function(a){if(typeof a=="undefined"){a=this.index}if(typeof this.slides[a]!="undefined"&&typeof this.slides[a].containerObj!="undefined"){return true}return false},getInstance:function(a){if(typeof App_Slide.prototype.__instances[a]!="undefined"){return App_Slide.prototype.__instances[a]}return false},setInterval:function(a){a=parseFloat(a);if(!isNaN(a)&&a!=0){this.interval=a*1000;return true}alert("App_Slide: time interval is wrong!");return false},setIdItem:function(a){a=parseInt(a);if(!isNaN(a)&&a!=0){this.idItem=a;this.setContainer("slides-container-"+a);return true}alert("App_Slide: idItem is wrong!");return false},setContainer:function(a){this.container=document.getElementById(a);if(this.container){return true}this.container=null;alert("App_Slide: slides container is wrong!");return false},prev:function(){if(!this._animated){return false}this.stop();var a=this.direction;this.direction="left";this.initNextShowTime(0);this.preload();this.direction=a},play:function(a){this._mouseOverStatus=null;this.log("play");this.status="play";this._mouseOverStatus="play";if(typeof a!="undefined"){this.initNextShowTime(a)}else{this.initNextShowTime(a)}this.preload();this.startTimer();this.hideButton("play");this.showButton("pause")},next:function(){if(!this._animated){return false}this.stop();var a=this.direction;this.direction="right";this.initNextShowTime(0);this.preload();this.direction=a},pause:function(){this.stop();this.showButton("play");this.hideButton("pause")},hideButton:function(a){$("a."+a,this.buttonsContainer).hide()},showButton:function(a){$("a."+a,this.buttonsContainer).show()},setSlides:function(a){if(typeof a=="object"){this.slides=a;return true}alert("App_Slide: slides are not object!");return false},startTimer:function(){if(this._timer!=null){clearTimeout(this._timer);this._timer=null}this._timer=setTimeout("App_Slide.prototype.getInstance('"+this.idItem+"').preload()",this.interval);return true},stopTimer:function(){if(this._timer!=null){clearTimeout(this._timer)}this._timer=null;if(null!=this._mouseTimer){clearTimeout(this._mouseTimer);this._mouseTimer=null}},stop:function(){this.status="stop";this._mouseOverStatus="stop";this.stopTimer();return true},showBigArrows:function(){if(this.showArrows){$(this.prevButton).show();$(this.nextButton).show()}this.showToolbar()},hideBigArrows:function(){if(this.showArrows){$(this.prevButton).hide();$(this.nextButton).hide()}this.hideToolbar()},itemOnMouseOver:function(a){if(null!=this._arrowTimer){clearTimeout(this._arrowTimer);this._arrowTimer=null}this.showBigArrows();if(null==this._mouseOverStatus){this._mouseOverStatus=this.status}if(null!=this._mouseTimer){clearTimeout(this._mouseTimer);this._mouseTimer=null}this.stopTimer();this.showButton("play");this.hideButton("pause")},itemOnMouseOut:function(a){this._arrowTimer=setTimeout("App_Slide.prototype.getInstance('"+this.idItem+"').hideBigArrows();",50);if(this._mouseOverStatus=="play"){this._mouseTimer=setTimeout("App_Slide.prototype.getInstance('"+this.idItem+"').play();",50)}if("play"==this._mouseOverStatus){this.hideButton("play");this.showButton("pause")}},show:function(b){if(typeof b=="undefined"){b=this.index}if(this.slides[b]==null||this.slides[b]=="undefined"){b=0}var a=this.slides[b];var d=-1;if((b-this.index)>=0){d=1;if(b==this.slides.length-1&&this.index==0){d=-1}}else{if(b==0&&this.index==this.slides.length-1){d=1}}this.log("direction="+d);if(this.index!=null){if("slide"==this.effect){a.containerObj.style.left=d*this.width+"px"}else{this.slides[b].containerObj.style.display="none"}}a.containerObj.style.marginLeft=0;$(this.itemContainer).append(a.containerObj);this._animated=false;a._animated=false;var c=this;if(this.index!=null){if("slide"==this.effect){this.log("animation "+(-1*d*this.width)+" "+this.effectDuration+" ms");$(".slide_item:first").animate({marginLeft:-1*d*this.width},{duration:this.effectDuration});$(".slide_item:last").animate({marginLeft:-1*d*this.width},{duration:this.effectDuration,complete:function(){c.animationComplete(b,d)}})}else{$(this.slides[this.index].containerObj).fadeOut(this.effectDuration);$(a.containerObj).fadeIn(this.effectDuration,function(){c.animationComplete(b,d)})}}else{this.log("no animation");c.animationComplete(b,d)}},animationComplete:function(b,c){var a=this.slides[b];if($(".slide_item",this.container).size()>1){if(c){$(".slide_item:last",this.container).css({left:0,marginLeft:0});$(".slide_item:first",this.container).remove()}else{$(".slide_item:first",this.container).css({left:0,marginLeft:0});$(".slide_item:last",this.container).remove()}}this._animated=true;a.showTime=false;this.setVisible(false,this.index);this.log("show "+this.index+"->"+b);this.index=b;this.paginatorSetPage(b+1);this.setVisible(true);if(this.status=="play"){this.initNextShowTime();this.preload();this.startTimer()}else{this.log("status = "+this.status)}},hideToolbar:function(){if(!this.enablePaginator&&!this.enableButtons){return false}return false},showToolbar:function(){if(!this.enablePaginator&&!this.enableButtons){return false}if(typeof this.toolbarContainer.positionFixed=="undefined"){var g=qs.getPosition(this.container);var d={visibility:"visible",top:g.y+(this.height-this.toolbarContainer.offsetHeight+1)+"px"};if(this.enablePaginator){var b=this.width;if(this.enableButtons){b-=this.buttonsContainer.offsetWidth}this.paginatorOptions.containers="slide-toolbar-"+this.idItem;this.paginatorOptions.totalRecords=this.slides.length;this.paginatorOptions.totalRecords=this.slides.length;var c=0;if(typeof this.paginatorOptions.pageLinks=="undefined"){if(typeof this.paginatorOptions.template=="string"&&this.paginatorOptions.template.length){for(var a=0;a<this._paginatorTemplatePlaceholders.length;a++){var f=this._paginatorTemplatePlaceholders[a];if(f=="{pageLinks}"){continue}if(-1!=this.paginatorOptions.template.indexOf(f)){c++}}}else{c=4}this.paginatorOptions.pageLinks=Math.floor(b/this.pageLinkWidth)-c}this.paginator=new YAHOO.widget.Paginator(this.paginatorOptions);this.paginator.render();var e=this;this.paginator.subscribe("changeRequest",function(h){e.paginatorChangeRequest(h)})}this.toolbarContainer.positionFixed=true}$(this.toolbarContainer).show()},paginatorSetPage:function(a){if(this.paginator){this.paginator.setPage(a,true)}},paginatorChangeRequest:function(b){if(!this._animated){return false}var a=b.page-1;this.initShowTime(a,0);this.preload(a);this.paginator.setState(b)},initShowTime:function(b,a){if(typeof a=="undefined"){a=this.interval}this.slides[b].showTime=new Date().getTime()+a},initNextShowTime:function(a){this.initShowTime(this.getNextIndex(),a)},getNextIndex:function(){var a;if(null==this.index){return 0}else{if("right"==this.direction){a=(this.slides.length==this.index+1)?0:this.index+1}else{if("left"==this.direction){a=(0==this.index)?this.slides.length-1:this.index-1}}}return a},onabort:function(a){return false},onerror:function(a){this.next()},preload:function(g,d){if(typeof g=="undefined"){g=this.getNextIndex()}var e=this;var f=this.slides[g];if(typeof f.containerObj=="undefined"){this.log("preload "+g);f.containerObj=document.createElement("div");f.containerObj.className="slide_item";f.containerObj.style.width=this.width+"px";f.containerObj.style.height=this.height+"px";if("image"==f.type){var c=new Image();c.setAttribute("useMap","#slide_map_"+f.id);c.setAttribute("alt",f.title);c.onabort=function(){e.onabort(this)};c.onerror=function(){e.onerror(this)};c.onload=function(){this.style.marginLeft=Math.ceil((e.width-this.width)/2)+"px";this.style.marginTop=Math.ceil((e.height-this.height)/2)+"px";e.preloaded(g)};c.src=f.image;f.containerObj.appendChild(c);if(f.hotSpotMap!="empty"){var a=document.createElement("MAP");a.name="slide_map_"+f.id;a.id="slide_map_"+f.id;for(var h in f.hotSpotMap){var b=document.createElement("AREA");b.shape=f.hotSpotMap[h].shape;b.coords=f.hotSpotMap[h].coords;b.href=f.hotSpotMap[h].href;b.target=f.hotSpotMap[h].target;b.alt=f.hotSpotMap[h].alt;a.appendChild(b)}f.containerObj.appendChild(a)}}else{if("html"==f.type){e.log("preloaded "+g);var i=document.createElement("div");i.style.width=this.width+"px";i.style.height=this.height+"px";i.className="slide_html";i.innerHTML=f.content;f.containerObj.appendChild(i);e.preloaded(g)}}}else{e.preloaded(g)}},preloaded:function(c){this.log("preloaded "+c);var b=new Date();var a=this.slides[c];if(false!==a.showTime&&Math.floor(b.getTime()/1000)>=Math.floor(a.showTime/1000)){this.show(c)}else{this.log(a.showTime+"\n"+b.getTime())}},log:function(b){if(!this.debug||typeof console=="undefined"){return false}var a="index="+this.index+". ["+b+"] ";console.info(a)}};;
(function(a){a._inlineComplete={_defaultOptions:{caseInsensitive:true},_performComplete:function(k,c,l){var j=a._inlineComplete.sub(k);if(c.type=="keyup"&&j.data("__inlineComplete_noKeyUp")==true){j.data("__inlineComplete_noKeyUp",false);return true}else{if(c.type=="keydown"&&j.selection("start")==j.selection("end")){return true}}if(c.which==8||!l.terms||l.terms.length==0){return true}else{if(c.which==13){}else{if(c.which==16){return this}}}var d=String.fromCharCode(c.which).replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(d==""){return true}if(!c.shiftKey){d=d.toLowerCase()}var h=l.terms,e=j.cursorPosition(),f=j.val().substring(0,e),b=true;if(l.caseInsensitive==true){f=f.toLowerCase()}if(f!=""){for(var g=0;g<h.length;g++){currentTerm=h[g];if(l.caseInsensitive){currentTerm=currentTerm.toLowerCase()}if(currentTerm.indexOf(f)===0){if(h[g].substr(e,1)==d&&c.type=="keydown"&&j.selection("start")!=j.selection("end")){j.select(e+1,currentTerm.length);j.data("__inlineComplete_noKeyUp",true);b=false}else{j.val(h[g]).select(e,currentTerm.length)}break}}}return b}};a._inlineComplete.sub=a.sub();a._inlineComplete.sub.fn.cursorPosition=function(b){if(b){this.filter("input[type=text]").each(function(){a._inlineComplete.sub(this).selection(b,b)});return this}else{return this.selection("start")}};a._inlineComplete.sub.fn.select=function(c,b){if(typeof c=="number"&&typeof b=="number"){this.filter("[type=text]").each(function(){if(typeof this.selectionStart!="undefined"){this.selectionStart=c;this.selectionEnd=b}else{if(document.selection&&document.selection.createRange&&this.select){this.focus();var d=document.selection.createRange();d.collapse();d.moveStart("textedit",-1);d.moveStart("character",c);d.moveEnd("character",c+b);d.select()}}})}return this};a._inlineComplete.sub.fn.selection=function(f){f=f.toLowerCase();if(f=="start"||f=="end"){var e="",d=this.get(0);if(typeof d.selectionStart!="undefined"){if(f=="start"){e=d.selectionStart}else{if(f=="end"){e=d.selectionEnd}}}else{if(document.selection&&document.selection.createRange){d.focus();var c=document.selection.createRange(),b=c.text.length,g;c.moveStart("character",-d.value.length);g=c.text.length-b;if(f=="start"){e=g}else{if(f=="end"){e=g+b}}}}return e}};a.fn.inlineComplete=function(c){c=a.extend({},a._inlineComplete._defaultOptions,c);if(!c.terms){if(this.data("terms")){if(this.data("terms").indexOf("list")===0){c.terms=this.data("terms").replace(/^list:/i,"").split("|")}else{if(this.data("terms").indexOf("url")===0){c.terms=this.data("terms").replace(/^url:/i,"")}}}}if(!c.terms){return this}if(typeof c.terms=="string"){var b=this;a.getJSON(c.terms,function(d){if(!d.terms&&window.console&&window.console.error){console.error("Invalid response for inline complete terms!")}c.terms=d.terms;b.inlineComplete(c)})}else{this.filter("input[type=text]").bind("keyup keydown",function(d){return a._inlineComplete._performComplete(this,d,c)})}return this}})(jQuery);;
var SitePage={o:{workUrl:"",workAutocompleteUrl:""},isWorkFilterActive:false,cursor:null,showContent:function(a){a=$(a);a.parent().find(".fck_trimcontent").slideDown("slow");a.remove();return false},getCookie:function(c,b){b=b||{};var a,d=b.raw?function(e){return e}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(c)+"=([^;]*)").exec(document.cookie))?d(a[1]):null},setCookie:function(c,d,a){a=jQuery.extend({},a);if(d===null||d===undefined){a.expires=-1}if(typeof a.expires==="number"){var e=a.expires,b=a.expires=new Date();b.setDate(b.getDate()+e)}d=String(d);return(document.cookie=[encodeURIComponent(c),"=",a.raw?d:encodeURIComponent(d),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join(""))},captionLength:0,caption:"",initTyping:function(c){var b=$("h1.mainheader:first");var a=b.text();if(a){b.css("text-indent",0);SitePage.cursor=$('<span class="cursor"></span>');if(c=="static"){b.empty().append('<span class="caption">'+a+"</span>").append(SitePage.cursor)}else{b.empty().append('<span class="caption"></span>').append(SitePage.cursor);SitePage.type(a)}setInterval(SitePage.cursorAnimation,1000)}},cursorAnimation:function(){SitePage.cursor.css("opacity",0);setTimeout("SitePage.cursor.css('opacity', 1);",400)},type:function(a){$(".caption").html(a.substr(0,SitePage.captionLength++));if(SitePage.captionLength<a.length+1){setTimeout('SitePage.type("'+a+'")',50)}else{SitePage.captionLength=0;a=""}},initCbb:function(){if(!document.getElementById||!document.createElement||!document.appendChild){return false}var a,h,e,d,j;var f=document.getElementsByTagName("*");var b=new RegExp("(^|\\s)cbb(\\s|$)");var g=document.title;for(var c=0;c<f.length;c++){a=f[c];if(b.test(a.className)){h=document.createElement("div");h.className=a.className.replace(b,"$1cb$2");if(a.getAttribute("id")){j=a.id;a.removeAttribute("id");h.setAttribute("id","");h.id=j}a.className="i3";a.parentNode.replaceChild(h,a);e=document.createElement("div");e.className="i1";h.appendChild(e);d=document.createElement("div");d.className="i2";e.appendChild(d);d.appendChild(a);SitePage.cbbInsertTop(h);SitePage.cbbInsertBottom(h)}}document.title=g},cbbInsertTop:function(b){var a,c;a=document.createElement("div");a.className="bt";c=document.createElement("div");a.appendChild(c);b.insertBefore(a,b.firstChild)},cbbInsertBottom:function(b){var a,c;a=document.createElement("div");a.className="bb";c=document.createElement("div");a.appendChild(c);b.appendChild(a)},initMenu:function(){var a={sensitivity:2,interval:100,over:SitePage.megaHoverOver,timeout:500,out:SitePage.megaHoverOut};setTimeout(function(){$("li.top").each(function(){$(this).find("div.drop").width($(this).find(".sub").outerWidth()+14)})},1000);var c;if((c=document.getElementById("work-menu-form_query"))){c.setAttribute("autocomplete","off");DefaultHint.init({useWrapper:true,elements:[["work-menu-form_query","Enter a Project name",false]]})}$("#work-menu-form-btn").bind("mousedown",function(){$("#work-menu-form").submit()});var d=$("#work-menu-form_query");var b=d.closest("li.top").attr("queryMenu","yes");d.focus(function(){SitePage.isWorkFilterActive=true}).blur(function(){SitePage.isWorkFilterActive=false;b.find(".drop").stop().animate({height:0},300,"swing").css("visibility","hidden")});$("ul.sf-menu li").hoverIntent(a)},megaHoverOver:function(){var a=$(this);$(this).find(".drop").stop().css("visibility","visible").animate({height:a.find(".sub").outerHeight()+34},300,"swing")},megaHoverOut:function(){var a=$(this);if(SitePage.isWorkFilterActive&&"yes"==a.closest("li.top").attr("queryMenu")){return false}a.find(".drop").stop().animate({height:0},300,"swing").css("visibility","hidden")},quickForm:function(){$(document).ready(function(){$("#contact_btn").click(function(){SitePage.quickFormShow();return false});$("#q-btn").click(function(){if($("#q-contact").hasClass("expanded")!=true){SitePage.quickFormShow()}else{SitePage.quickFormHide()}return false})})},quickFormShow:function(){$("#q-contact").toggleClass("expanded").animate({right:"0px"},"slow");$.blockUI({message:""});$(".blockOverlay").click(function(){SitePage.quickFormHide()})},quickFormHide:function(){$("#q-contact").toggleClass("expanded").animate({right:"-241px"},"slow");$.unblockUI()},onQuickFormError:function(){var b=Qs_Form.formOptions["form_contact-form"].response.errors;var e='<ul class="errors">';for(var c in b){var d=b[c];for(var a in d){e+="<li>"+c+":<br/> "+d[a]+"</li><br/>"}}e+="</ul>";$.blockUI({message:e})},onQuickFormSuccess:function(){alert("Thank you! \n Submission has been successfully sent to site administrator.");$("#q-btn").click();$("#name, #email, #phone, #comments").val("").blur();$(".captcha_refresh").click()},initWorkAutocomplete:function(){var a=$("#work-menu-form_query");if(!a.size()){return}a.bind("focus.autocomplete",function(){a.unbind("focus.autocomplete");$.getJSON(SitePage.o.workAutocompleteUrl+"&simple=yes",function(b){if(b){a.inlineComplete({terms:b})}})})},init:function(a){SitePage.o=a||{};SitePage.initCbb();SitePage.initMenu();if(SitePage.o.typing){SitePage.initTyping(SitePage.o.typing)}SitePage.initWorkAutocomplete();SitePage.quickForm()}};;
var DefaultHint=(function(){var b={elements:[],collectFrom:null,requiredClass:"required",autoIndent:false,asteriskClass:"asterisk",asteriskText:"*",useWrapper:false,wrapperIdSuffix:"-wrapper",wrapperClass:"defaultHint-wrapper",containerIdSuffix:"-hint",containerClass:"defaultHint-element",activeElementClass:"",activeParentClass:""};var e=function(f){return Object.prototype.toString.call(f)};var d=function(g){if(g instanceof jQuery){g=g.get(0)}var f=(g.tagName)?g.tagName.toLowerCase():"";if("input"==f){return(g.type&&("text"==g.type||"password"==g.type))}return("textarea"==f||"select"==f)};var a=function(f){if(f instanceof jQuery){f=f.get(0)}return("label"==f.tagName.toLowerCase()&&f.htmlFor)};function c(h){this._o={};this._oType=false;this._tmpL=null;this._tmpE=[];this.isIE=false;var g=this._o;this._onElementFocus=function(){if(this.defaultHint){this.defaultHint.style.display="none"}if(g.activeElementClass.length>0){$(this).addClass(g.activeElementClass)}if(g.activeParentClass.length>0&&this.parentNode){$(this.parentNode).addClass(g.activeParentClass)}return false};this._onElementBlur=function(){if(""===this.value&&this.defaultHint){this.defaultHint.style.display="block"}if(g.activeElementClass.length>0){$(this).removeClass(g.activeElementClass)}if(g.activeParentClass.length>0&&this.parentNode){$(this.parentNode).removeClass(g.activeParentClass)}return false};if(!$||!jQuery){throw new Error("DefaultHint requires jQuery library")}var f=e(h);switch(f){case"[object String]":this._collectElements(h);break;case"[object Array]":this._o.elements=h;break;case"[object Object]":$.extend(true,this._o,b,h);break;default:throw new Error('Invalid parameter options type: "'+this._oType+'" given in DefaultHint.init()')}this._prepare()}c.prototype={_onHintClick:function(){this.belongTo.focus();return false},_onHintMouseDown:function(){var f=this.belongTo;setTimeout(function(){f.focus()},0);return false},_parseElementLabel:function(g){var f;if(!(f=document.getElementById(g.id))||!d(f)){throw new Error('Invalid element: "'+g.id+'" given in DefaultHint._parseElementLabel()')}if(null===this._tmpL&&f.form){this._collectLabels(f.form)}if(this._tmpL[g.id]){g.hint=this._tmpL[g.id].innerHTML||g.id;g.asterisk=$(this._tmpL[g.id]).hasClass(this._o.requiredClass)}return g},_getParamByArr:function(f){var g={id:false,hint:false,asterisk:false};g.id=f[0]||false;g.hint=f[1]||false;g.asterisk=f[2]||false;if(false===g.hint){g=this._parseElementLabel(g)}return g},_getParamByStr:function(g){var f={id:g||false,hint:false,asterisk:false};if(false===f.hint){f=this._parseElementLabel(f)}return f},_prepareParam:function(f){var g=e(f);switch(g){case"[object Array]":return this._getParamByArr(f);break;case"[object Number]":if("undefined"!=typeof this._o.elements[f]){return this._prepareParam(this._o.elements[f])}else{throw new Error('Invalid parameter id: "'+f+'" given in DefaultHint._prepareParam()')}break;case"[object String]":return this._getParamByStr(f);break}throw new Error('Unknown param type "'+g+'" given in DefaultHint._prepareParam()')},_setElementHint:function(j,i){var h=document.createElement("div");h.id=i.id+this._o.containerIdSuffix;h.className=this._o.containerClass;if(i.asterisk||false){var g=document.createElement("span");g.className=this._o.asteriskClass;g.appendChild(document.createTextNode(this._o.asteriskText));h.appendChild(g)}h.appendChild(document.createTextNode(i.hint));if(j.val()!==""){h.style.display="none"}$(h).bind("click.defaultHint",this._onHintClick).bind("mousedown.defaultHint",this._onHintMouseDown);var f=j.get(0);h.belongTo=f;f.defaultHint=h;return h},_setSelectHint:function(j,i){var h=j.children(":first");var g=document.createElement("option");g.value="";g.label=i.hint;g.text=i.hint;if(h.size()){if(""===h.val()){h.attr("label",i.hint);h.attr("text",i.hint)}else{h.before(g);var f=j.children().get(1);if(f&&f.value==j.val()){j.attr("selectedIndex",0)}}}else{j.append(g)}return false},_setHint:function(f){var i,j,h;i=this._prepareParam(f);if(!(j=$("#"+i.id))){throw new Error('Element with id: "'+i.id+'" not found')}if("select"==j.attr("tagName").toLowerCase()){h=this._setSelectHint(j,i)}else{h=this._setElementHint(j,i)}j.bind("focus.defaultHint",this._onElementFocus).bind("blur.defaultHint",this._onElementBlur);if(this._o.useWrapper){var g=$('<div id="'+i.id+this._o.wrapperIdSuffix+'" class="'+this._o.wrapperClass+'"></div>');j.after(g);g.append(j);if("object"==typeof h){g.append(h)}}else{if("object"==typeof h){j.after(h)}}return true},_collectLabels:function(h){var j;this._tmpL={};if("string"==typeof h){j=$("#"+h+" label")}else{j=$(h).find("label")}for(var g=0;g<j.length;g++){var f=j[g];if(a(f)){this._tmpL[f.htmlFor]=f}}},_collectElements:function(m){var k,g,j,f;if("string"==typeof m){k=$("#"+m)}else{k=$(m)}if(!k.length){throw new Error('Invalid container: "'+m+'"')}this._o.elements=[];this._collectLabels(m);this._o.elements=[];var l=k.find(":input");for(g=0;g<l.length;g++){var h=l[g];if(d(h)){if(this._tmpL[h.id]){j=this._tmpL[h.id].innerHTML||h.id;f=$(h).hasClass(this._o.requiredClass)}else{j=h.id;f=false}this._o.elements.push([h.id,j,f])}}},_prepare:function(){this.isIE=$.browser.msie;if(this._o.collectFrom){this._collectElements(this._o.collectFrom)}this._oType=e(this._o.elements);var f;for(f=0;f<this._o.elements.length;f++){this._setHint(this._o.elements[f])}return true}};return{init:function(f){return new c(f)}}}());;
var Qs_Form={message:new Qs_Message({eng:{invalidInformationEntered:"Please review the comments marked in red and make appropriate corrections.",pleaseCorrectTheseFields:""}}),options:{errorDisplayMethod:"HTML"},formOptions:{},init:function(b,a){var c=document.getElementById(b);if(!c){alert("Form (id = "+b+") is not available");return false}if(!c.tagName||c.tagName!="FORM"){alert("Element (id = "+b+") is not a form - tagName = "+c.tagName);return false}if(a){Qs_Form.formOptions[b]=a}$(c).unbind("submit.form-plugin").bind("submit.form-plugin",Qs_Form.onSubmit);$(":submit,input:image",c).unbind("click.form-plugin").bind("click.form-plugin",Qs_Form.buttonOnClick)},buttonOnClick:function(b){var a=this.form;a.clk=this;if(this.type=="image"){if(b.offsetX!=undefined){a.clk_x=b.offsetX;a.clk_y=b.offsetY}else{if(typeof $.fn.offset=="function"){var c=$(this).offset();a.clk_x=b.pageX-c.left;a.clk_y=b.pageY-c.top}else{a.clk_x=b.pageX-this.offsetLeft;a.clk_y=b.pageY-this.offsetTop}}}setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},10)},getOption:function(a){return Qs_Form.options[a]},setErrorDisplayMethod:function(a,b){Qs_Form.setFormOption(a,"errorDisplayMethod",b)},getErrorDisplayMethod:function(a){return Qs_Form.getFormOption(a,"errorDisplayMethod")},setFormOption:function(b,a,c){if(typeof Qs_Form.formOptions[b]=="undefined"){Qs_Form.formOptions[b]={}}Qs_Form.formOptions[b][a]=c},getFormOption:function(b,a){if(typeof Qs_Form.formOptions[b]=="undefined"||typeof Qs_Form.formOptions[b][a]=="undefined"){return Qs_Form.getOption(a)}return Qs_Form.formOptions[b][a]},callExternal:function(a){if(typeof a=="string"){$.globalEval(a+".call(this)")}else{if(typeof a=="object"&&a!=null){var d="";for(var e in a){var c=new Array();if(is_numeric(e)){if(typeof a[e]=="string"){e=a[e]}else{if(typeof a[e]=="object"&&typeof a[e]!=null){var b=array_key(a[e]);c=a[e][b];e=b}else{continue}}}else{c=a[e]}d+=e;if(c.length){d+=".apply(this, "+json_encode(c)+");\n"}else{d+=".call(this);\n"}}if(d.length){$.globalEval(d)}}}},onSubmitSuccess:function(a,d){var e=$(d).attr("id");Qs_Form.setFormOption(e,"response",a);if(a.isValid){if(d){var b=Qs_Form.getFormOption($(d).attr("id"),"onSuccessCallback");if(typeof b=="undefined"){d.submit()}else{Qs_Form.callExternal(b)}}}else{var c=Qs_Form.getFormOption($(d).attr("id"),"onErrorCallback");if(typeof c!="undefined"){Qs_Form.callExternal(c);return true}Qs_Form.displayErrors(e)}return a},displayErrors:function(c){var f=Qs_Form.getFormOption(c,"response");var e=document.getElementById(c);var g=Qs_Form.getErrorDisplayMethod(c);switch(g){case"ALERT":var i=Qs_Form.message.get("invalidInformationEntered")+"\n";i+=Qs_Form.prepareErrorsAlert(f.errors,f.elements);i+="\n\n"+Qs_Form.message.get("pleaseCorrectTheseFields");var b=array_key(f.errors);if(e[b]&&e[b].focus){e[b].focus()}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){e[b+"[input]"].focus()}}$.scrollTo("#"+b+"-label");alert(i);break;case"HTML":Qs_Form.displayErrorsHtml(e,f.errors);var b=array_key(f.errors);var d=null;if(e[b]&&e[b].focus){d=b}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){d=b+"[input]"}}if(d!=null){if($('[name="'+d+'"]:visible',e).size()){e[d].focus()}}var a=Qs_Form.getFormOption(c,"prependId");if(a){b=c+"-"+b}$.scrollTo("#"+b+"-label");var i=Qs_Form.message.get("invalidInformationEntered")+"\n"+Qs_Form.message.get("pleaseCorrectTheseFields");alert(trim(i));break;default:alert('Qs_Form. Unknown errorDisplayMethod "'+g+'"')}if(typeof f.captcha=="object"&&f.captcha!=null){for(var b in f.captcha){var h=$("#"+b+"-element");if($(h).size()!=0){$("img:first",h).attr("src",f.captcha[b].src);$("#"+b+"-id",h).attr("value",f.captcha[b].id);$("#"+b+"-input",h).attr("value","");if(typeof f.captcha[b].href!="undefined"){$("a.captcha_refresh",h).attr("href",f.captcha[b].href)}}}}},prepareErrorsAlert:function(g,f){var d="";for(var b in g){var c="";var a=true;for(var e in g[b]){if(typeof g[b][e]=="string"){c+="\n     - "+g[b][e]}else{d+=Qs_Form.prepareErrorsAlert(g[b],f[b]);a=false;break}}if(a&&c!=""){d+="\n"+f[b]+":"+c}}return d},displayErrorsHtml:function(c,h,e){for(var f in h){var g="";var k;if(typeof e!="undefined"){k=e+"["+f+"]"}else{k=f}for(var i in h[f]){if(typeof h[f][i]=="string"){g+="<li>"+h[f][i]+"</li>"}else{Qs_Form.displayErrorsHtml(c,h[f],k);break}}if(g!=""){g='<ul class="errors">'+g+"</ul>";var j=$(c).attr("id");var d=Qs_Form.getFormOption(j,"response");var b=Qs_Array.get(d.elements,k+"[id]");if(null==b){b=k.replace(/\[\]$/,"").replace(/\]/g,"").replace(/\[/g,"-")}var a=Qs_Form.getFormOption(j,"prependId");if(a){b=j+"-"+b}$("#"+b+"-element").append(g)}}},onSubmitError:function(a,c,b){alert(c+" "+b)},onSubmitComplete:function(d,e,c){var b=$(c).attr("id");Qs_Form.formOptions[b]["processRequest"]=false;var a=Qs_Form.getFormOption(b,"onAfterSubmit");if(typeof a!="undefined"){Qs_Form.callExternal(a)}},removeElementsErrors:function(a){$("ul.errors",a).remove()},editorsTriggerSave:function(b){if(typeof tinyMCE!="undefined"){tinyMCE.triggerSave()}if(typeof FCKeditorAPI!="undefined"){for(var a=0;a<b.elements.length;a++){if(b.elements[a].tagName=="TEXTAREA"){var c=FCKeditorAPI.GetInstance(b.elements[a].name);if(typeof c!="undefined"){if(c.IsDirty()){c.UpdateLinkedField()}}}}}},onSubmit:function(a){var d;if(this.tagName=="FORM"){d=this}else{d=a}var c=$(d).attr("id");var e=Qs_Form.getFormOption(c,"onBeforeSubmit");if(typeof e!="undefined"){Qs_Form.callExternal(e)}Qs_Form.editorsTriggerSave(d);Qs_Form.removeElementsErrors(d);if(typeof Qs_Form.formOptions[c]["processRequest"]=="undefined"||Qs_Form.formOptions[c]["processRequest"]!=true){Qs_Form.formOptions[c]["processRequest"]=true;var b={url:$(d).attr("action"),type:"POST",dataType:"json",data:Qs_Form.toObject(d),success:function(f){Qs_Form.onSubmitSuccess(f,d)},error:Qs_Form.onSubmitError,complete:function(f,g){Qs_Form.onSubmitComplete(f,g,d)}};$.ajax(b)}return false},setValue:function(c,a,b){var d=c[a];if(is_string(d)){if(a.substr(-2)=="[]"){delete c[a];c[a.substr(0,a.length-2)]=[d,b]}else{c[a]=b}}else{if(is_array(d)){d.push(b)}else{c[a]=b}}},toObject:function(h){var c={};var a="file|submit|image|reset|button|";if(is_string(h)){h=document.getElementById(h)}for(var d=0;d<h.elements.length;d++){var g=h.elements[d];if(!g){continue}var f=g.name;var e=(g.type||"").toLowerCase();if(f&&e&&a.indexOf(e)==-1&&!g.disabled){if(e=="radio"||e=="checkbox"){if(g.checked){Qs_Form.setValue(c,f,g.value)}}else{if(g.multiple){c[f]=[];for(var b in g.options){if(g.options[b]!=null&&typeof g.options[b].tagName=="string"&&g.options[b].tagName=="OPTION"&&g.options[b].selected){Qs_Form.setValue(c,f,g.options[b].value)}}}else{Qs_Form.setValue(c,f,g.value);if(e=="image"){c[f+".x"]=c[f+".y"]=c[f].x=c[f].y=0}}}}}if(h.clk&&!h.clk.disabled&&h.clk.name){if(h.clk.type=="image"){c[h.clk.name+".x"]=h.clk_x;c[h.clk.name+".y"]=h.clk_y}else{c[h.clk.name]=h.clk.value}}return c}};;
(function(c){var a=c.scrollTo=function(d,f,g){c(window).scrollTo(d,f,g)};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable()};c.fn._scrollable=function(){return this.map(function(){var d=this,f=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!f){return d}var g=(d.contentWindow||d).document||d.ownerDocument||d;return c.browser.safari||g.compatMode=="BackCompat"?g.body:g.documentElement})};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}if(f=="max"){f=9000000000}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var n=this,l=c(n),m=f,j,k={},h=l.is("html,body");switch(typeof m){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(m)){m=b(m);break}m=c(m,this);case"object":if(m.is||m.style){j=(m=c(m)).offset()}}c.each(d.axis.split(""),function(q,r){var t=r=="x"?"Left":"Top",s=t.toLowerCase(),v="scroll"+t,p=n[v],g=a.max(n,r);if(j){k[v]=j[s]+(h?0:p-l.offset()[s]);if(d.margin){k[v]-=parseInt(m.css("margin"+t))||0;k[v]-=parseInt(m.css("border"+t+"Width"))||0}k[v]+=d.offset[s]||0;if(d.over[s]){k[v]+=m[r=="x"?"width":"height"]()*d.over[s]}}else{var u=m[s];k[v]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*g:u}if(/^\d+$/.test(k[v])){k[v]=k[v]<=0?0:Math.min(k[v],g)}if(!q&&d.queue){if(p!=k[v]){i(d.onAfterFirst)}delete k[v]}});i(d.onAfter);function i(g){l.animate(k,e,d.easing,g&&function(){g.call(this,f,d)})}}).end()};a.max=function(g,j){var n=j=="x"?"Width":"Height",k="scroll"+n;if(!c(g).is("html,body")){return g[k]-c(g)[n.toLowerCase()]()}var o="client"+n,f=g.ownerDocument.documentElement,d=g.ownerDocument.body;return Math.max(f[k],d[k])-Math.min(f[o],d[o])};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);;
var Qs_Form_Element_Phone={message:new Qs_Message({eng:{},uk:{}}),element:null,idTimer:null,options:{},elementOptions:{},init:function(c,a){var b=document.getElementById(c);if(!b){alert("Qs_Form_Element_Phone. Can not find element with id = "+c);return false}if(!b.tagName||b.tagName!="INPUT"){alert("Qs_Form_Element_Phone. Element (id = "+c+') is not "input"');return false}if(b.type!="text"){alert("Qs_Form_Element_Phone. Element (id = "+c+') type is not "text"');return false}$(b).focus(Qs_Form_Element_Phone.onFocus);$(b).blur(Qs_Form_Element_Phone.onBlur);$(b).keyup(Qs_Form_Element_Phone.onKeyUp);Qs_Form_Element_Phone.setElementOptions(c,a);$(b).qtip({content:"Use the numbers only and formatting will be done automatically.<br />E.g.: 1231231234123456 will be formated as (123)-123-1234 ext. 123456",prerender:true,position:{corner:{target:"topMiddle",tooltip:"bottomLeft"}},style:{tip:true,width:500}})},getElementOptions:function(a){if(typeof Qs_Form_Element_Phone.elementOptions[a]=="undefined"){return null}return Qs_Form_Element_Phone.elementOptions[a]},getElementOption:function(c,b){var a=Qs_Form_Element_Phone.getElementOptions(c);if(a){if(typeof a[b]!="undefined"){return a[b]}}return null},setElementOption:function(d,b,c){var a=Qs_Form_Element_Phone.getElementOptions(d);if(a){a[b]=c}else{Qs_Form_Element_Phone.elementOptions[d]={name:c}}},setElementOptions:function(b,a){Qs_Form_Element_Phone.elementOptions[b]=a},onFocus:function(){$(this).qtip("show");return true},onBlur:function(){$(this).qtip("hide");return true},onKeyUp:function(){if(Qs_Form_Element_Phone.idTimer){if(Qs_Form_Element_Phone.element==this){clearTimeout(Qs_Form_Element_Phone.idTimer);Qs_Form_Element_Phone.idTimer=null}else{Qs_Form_Element_Phone.formatReal()}Qs_Form_Element_Phone.element=null}Qs_Form_Element_Phone.element=this;Qs_Form_Element_Phone.idTimer=setTimeout("Qs_Form_Element_Phone.formatReal();",750)},formatReal:function(){if(!Qs_Form_Element_Phone.element){return false}var c=Qs_Form_Element_Phone.element;var a=c.value;var d="(";a=a.replace(/\D*/g,"");a=a.substring(0,16);for(var b=0;b<a.length;b++){d=d+a.charAt(b);if((b==2)&&a.charAt(b+1)!=""){d+=") "}if((b==5)&&a.charAt(b+1)!=""){d=d+"-"}if((b==9&&a.length>10)&&a.charAt(b+1)!=""){d=d+" ext. "}}if(d=="("){d=""}if(c.value!=d){c.value=d}return true}};;
/*
 * jquery.qtip. The jQuery tooltip plugin
 *
 * Copyright (c) 2009 Craig Thompson
 * http://craigsworks.com
 *
 * Licensed under MIT
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Launch  : February 2009
 * Version : 1.0.0-rc3
 * Released: Tuesday 12th May, 2009 - 00:00
 * Debug: jquery.qtip.debug.js
 */
(function(f){f.fn.qtip=function(B,u){var y,t,A,s,x,w,v,z;if(typeof B=="string"){if(typeof f(this).data("qtip")!=="object"){f.fn.qtip.log.error.call(self,1,f.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)}if(B=="api"){return f(this).data("qtip").interfaces[f(this).data("qtip").current]}else{if(B=="interfaces"){return f(this).data("qtip").interfaces}}}else{if(!B){B={}}if(typeof B.content!=="object"||(B.content.jquery&&B.content.length>0)){B.content={text:B.content}}if(typeof B.content.title!=="object"){B.content.title={text:B.content.title}}if(typeof B.position!=="object"){B.position={corner:B.position}}if(typeof B.position.corner!=="object"){B.position.corner={target:B.position.corner,tooltip:B.position.corner}}if(typeof B.show!=="object"){B.show={when:B.show}}if(typeof B.show.when!=="object"){B.show.when={event:B.show.when}}if(typeof B.show.effect!=="object"){B.show.effect={type:B.show.effect}}if(typeof B.hide!=="object"){B.hide={when:B.hide}}if(typeof B.hide.when!=="object"){B.hide.when={event:B.hide.when}}if(typeof B.hide.effect!=="object"){B.hide.effect={type:B.hide.effect}}if(typeof B.style!=="object"){B.style={name:B.style}}B.style=c(B.style);s=f.extend(true,{},f.fn.qtip.defaults,B);s.style=a.call({options:s},s.style);s.user=f.extend(true,{},B)}return f(this).each(function(){if(typeof B=="string"){w=B.toLowerCase();A=f(this).qtip("interfaces");if(typeof A=="object"){if(u===true&&w=="destroy"){while(A.length>0){A[A.length-1].destroy()}}else{if(u!==true){A=[f(this).qtip("api")]}for(y=0;y<A.length;y++){if(w=="destroy"){A[y].destroy()}else{if(A[y].status.rendered===true){if(w=="show"){A[y].show()}else{if(w=="hide"){A[y].hide()}else{if(w=="focus"){A[y].focus()}else{if(w=="disable"){A[y].disable(true)}else{if(w=="enable"){A[y].disable(false)}}}}}}}}}}}else{v=f.extend(true,{},s);v.hide.effect.length=s.hide.effect.length;v.show.effect.length=s.show.effect.length;if(v.position.container===false){v.position.container=f(document.body)}if(v.position.target===false){v.position.target=f(this)}if(v.show.when.target===false){v.show.when.target=f(this)}if(v.hide.when.target===false){v.hide.when.target=f(this)}t=f.fn.qtip.interfaces.length;for(y=0;y<t;y++){if(typeof f.fn.qtip.interfaces[y]=="undefined"){t=y;break}}x=new d(f(this),v,t);f.fn.qtip.interfaces[t]=x;if(typeof f(this).data("qtip")=="object"){if(typeof f(this).attr("qtip")==="undefined"){f(this).data("qtip").current=f(this).data("qtip").interfaces.length}f(this).data("qtip").interfaces.push(x)}else{f(this).data("qtip",{current:0,interfaces:[x]})}if(v.content.prerender===false&&v.show.when.event!==false&&v.show.ready!==true){v.show.when.target.bind(v.show.when.event+".qtip-"+t+"-create",{qtip:t},function(C){z=f.fn.qtip.interfaces[C.data.qtip];z.options.show.when.target.unbind(z.options.show.when.event+".qtip-"+C.data.qtip+"-create");z.cache.mouse={x:C.pageX,y:C.pageY};p.call(z);z.options.show.when.target.trigger(z.options.show.when.event)})}else{x.cache.mouse={x:v.show.when.target.offset().left,y:v.show.when.target.offset().top};p.call(x)}}})};function d(u,t,v){var s=this;s.id=v;s.options=t;s.status={animated:false,rendered:false,disabled:false,focused:false};s.elements={target:u.addClass(s.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};s.cache={mouse:{},position:{},toggle:0};s.timers={};f.extend(s,s.options.api,{show:function(y){var x,z;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")}if(s.elements.tooltip.css("display")!=="none"){return s}s.elements.tooltip.stop(true,false);x=s.beforeShow.call(s,y);if(x===false){return s}function w(){if(s.options.position.type!=="static"){s.focus()}s.onShow.call(s,y);if(f.browser.msie){s.elements.tooltip.get(0).style.removeAttribute("filter")}}s.cache.toggle=1;if(s.options.position.type!=="static"){s.updatePosition(y,(s.options.show.effect.length>0))}if(typeof s.options.show.solo=="object"){z=f(s.options.show.solo)}else{if(s.options.show.solo===true){z=f("div.qtip").not(s.elements.tooltip)}}if(z){z.each(function(){if(f(this).qtip("api").status.rendered===true){f(this).qtip("api").hide()}})}if(typeof s.options.show.effect.type=="function"){s.options.show.effect.type.call(s.elements.tooltip,s.options.show.effect.length);s.elements.tooltip.queue(function(){w();f(this).dequeue()})}else{switch(s.options.show.effect.type.toLowerCase()){case"fade":s.elements.tooltip.fadeIn(s.options.show.effect.length,w);break;case"slide":s.elements.tooltip.slideDown(s.options.show.effect.length,function(){w();if(s.options.position.type!=="static"){s.updatePosition(y,true)}});break;case"grow":s.elements.tooltip.show(s.options.show.effect.length,w);break;default:s.elements.tooltip.show(null,w);break}s.elements.tooltip.addClass(s.options.style.classes.active)}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(y){var x;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(s.elements.tooltip.css("display")==="none"){return s}}clearTimeout(s.timers.show);s.elements.tooltip.stop(true,false);x=s.beforeHide.call(s,y);if(x===false){return s}function w(){s.onHide.call(s,y)}s.cache.toggle=0;if(typeof s.options.hide.effect.type=="function"){s.options.hide.effect.type.call(s.elements.tooltip,s.options.hide.effect.length);s.elements.tooltip.queue(function(){w();f(this).dequeue()})}else{switch(s.options.hide.effect.type.toLowerCase()){case"fade":s.elements.tooltip.fadeOut(s.options.hide.effect.length,w);break;case"slide":s.elements.tooltip.slideUp(s.options.hide.effect.length,w);break;case"grow":s.elements.tooltip.hide(s.options.hide.effect.length,w);break;default:s.elements.tooltip.hide(null,w);break}s.elements.tooltip.removeClass(s.options.style.classes.active)}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_HIDDEN,"hide")},updatePosition:function(w,x){var C,G,L,J,H,E,y,I,B,D,K,A,F,z;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(s.options.position.type=="static"){return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")}}G={position:{left:0,top:0},dimensions:{height:0,width:0},corner:s.options.position.corner.target};L={position:s.getPosition(),dimensions:s.getDimensions(),corner:s.options.position.corner.tooltip};if(s.options.position.target!=="mouse"){if(s.options.position.target.get(0).nodeName.toLowerCase()=="area"){J=s.options.position.target.attr("coords").split(",");for(C=0;C<J.length;C++){J[C]=parseInt(J[C])}H=s.options.position.target.parent("map").attr("name");E=f('img[usemap="#'+H+'"]:first').offset();G.position={left:Math.floor(E.left+J[0]),top:Math.floor(E.top+J[1])};switch(s.options.position.target.attr("shape").toLowerCase()){case"rect":G.dimensions={width:Math.ceil(Math.abs(J[2]-J[0])),height:Math.ceil(Math.abs(J[3]-J[1]))};break;case"circle":G.dimensions={width:J[2]+1,height:J[2]+1};break;case"poly":G.dimensions={width:J[0],height:J[1]};for(C=0;C<J.length;C++){if(C%2==0){if(J[C]>G.dimensions.width){G.dimensions.width=J[C]}if(J[C]<J[0]){G.position.left=Math.floor(E.left+J[C])}}else{if(J[C]>G.dimensions.height){G.dimensions.height=J[C]}if(J[C]<J[1]){G.position.top=Math.floor(E.top+J[C])}}}G.dimensions.width=G.dimensions.width-(G.position.left-E.left);G.dimensions.height=G.dimensions.height-(G.position.top-E.top);break;default:return f.fn.qtip.log.error.call(s,4,f.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}G.dimensions.width-=2;G.dimensions.height-=2}else{if(s.options.position.target.add(document.body).length===1){G.position={left:f(document).scrollLeft(),top:f(document).scrollTop()};G.dimensions={height:f(window).height(),width:f(window).width()}}else{if(typeof s.options.position.target.attr("qtip")!=="undefined"){G.position=s.options.position.target.qtip("api").cache.position}else{G.position=s.options.position.target.offset()}G.dimensions={height:s.options.position.target.outerHeight(),width:s.options.position.target.outerWidth()}}}y=f.extend({},G.position);if(G.corner.search(/right/i)!==-1){y.left+=G.dimensions.width}if(G.corner.search(/bottom/i)!==-1){y.top+=G.dimensions.height}if(G.corner.search(/((top|bottom)Middle)|center/)!==-1){y.left+=(G.dimensions.width/2)}if(G.corner.search(/((left|right)Middle)|center/)!==-1){y.top+=(G.dimensions.height/2)}}else{G.position=y={left:s.cache.mouse.x,top:s.cache.mouse.y};G.dimensions={height:1,width:1}}if(L.corner.search(/right/i)!==-1){y.left-=L.dimensions.width}if(L.corner.search(/bottom/i)!==-1){y.top-=L.dimensions.height}if(L.corner.search(/((top|bottom)Middle)|center/)!==-1){y.left-=(L.dimensions.width/2)}if(L.corner.search(/((left|right)Middle)|center/)!==-1){y.top-=(L.dimensions.height/2)}I=(f.browser.msie)?1:0;B=(f.browser.msie&&parseInt(f.browser.version.charAt(0))===6)?1:0;if(s.options.style.border.radius>0){if(L.corner.search(/Left/)!==-1){y.left-=s.options.style.border.radius}else{if(L.corner.search(/Right/)!==-1){y.left+=s.options.style.border.radius}}if(L.corner.search(/Top/)!==-1){y.top-=s.options.style.border.radius}else{if(L.corner.search(/Bottom/)!==-1){y.top+=s.options.style.border.radius}}}if(I){if(L.corner.search(/top/)!==-1){y.top-=I}else{if(L.corner.search(/bottom/)!==-1){y.top+=I}}if(L.corner.search(/left/)!==-1){y.left-=I}else{if(L.corner.search(/right/)!==-1){y.left+=I}}if(L.corner.search(/leftMiddle|rightMiddle/)!==-1){y.top-=1}}if(s.options.position.adjust.screen===true){y=o.call(s,y,G,L)}if(s.options.position.target==="mouse"&&s.options.position.adjust.mouse===true){if(s.options.position.adjust.screen===true&&s.elements.tip){K=s.elements.tip.attr("rel")}else{K=s.options.position.corner.tooltip}y.left+=(K.search(/right/i)!==-1)?-6:6;y.top+=(K.search(/bottom/i)!==-1)?-6:6}if(!s.elements.bgiframe&&f.browser.msie&&parseInt(f.browser.version.charAt(0))==6){f("select, object").each(function(){A=f(this).offset();A.bottom=A.top+f(this).height();A.right=A.left+f(this).width();if(y.top+L.dimensions.height>=A.top&&y.left+L.dimensions.width>=A.left){k.call(s)}})}y.left+=s.options.position.adjust.x;y.top+=s.options.position.adjust.y;F=s.getPosition();if(y.left!=F.left||y.top!=F.top){z=s.beforePositionUpdate.call(s,w);if(z===false){return s}s.cache.position=y;if(x===true){s.status.animated=true;s.elements.tooltip.animate(y,200,"swing",function(){s.status.animated=false})}else{s.elements.tooltip.css(y)}s.onPositionUpdate.call(s,w);if(typeof w!=="undefined"&&w.type&&w.type!=="mousemove"){f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")}}return s},updateWidth:function(w){var x;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(w&&typeof w!=="number"){return f.fn.qtip.log.error.call(s,2,"newWidth must be of type number","updateWidth")}}x=s.elements.contentWrapper.siblings().add(s.elements.tip).add(s.elements.button);if(!w){if(typeof s.options.style.width.value=="number"){w=s.options.style.width.value}else{s.elements.tooltip.css({width:"auto"});x.hide();if(f.browser.msie){s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"normal"})}w=s.getDimensions().width+1;if(!s.options.style.width.value){if(w>s.options.style.width.max){w=s.options.style.width.max}if(w<s.options.style.width.min){w=s.options.style.width.min}}}}if(w%2!==0){w-=1}s.elements.tooltip.width(w);x.show();if(s.options.style.border.radius){s.elements.tooltip.find(".qtip-betweenCorners").each(function(y){f(this).width(w-(s.options.style.border.radius*2))})}if(f.browser.msie){s.elements.wrapper.add(s.elements.contentWrapper.children()).css({zoom:"1"});s.elements.wrapper.width(w);if(s.elements.bgiframe){s.elements.bgiframe.width(w).height(s.getDimensions.height)}}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(w){var z,A,x,y,B;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")}else{if(typeof w!=="string"||!f.fn.qtip.styles[w]){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}s.options.style=a.call(s,f.fn.qtip.styles[w],s.options.user.style);s.elements.content.css(q(s.options.style));if(s.options.content.title.text!==false){s.elements.title.css(q(s.options.style.title,true))}s.elements.contentWrapper.css({borderColor:s.options.style.border.color});if(s.options.style.tip.corner!==false){if(f("<canvas>").get(0).getContext){z=s.elements.tooltip.find(".qtip-tip canvas:first");x=z.get(0).getContext("2d");x.clearRect(0,0,300,300);y=z.parent("div[rel]:first").attr("rel");B=b(y,s.options.style.tip.size.width,s.options.style.tip.size.height);h.call(s,z,B,s.options.style.tip.color||s.options.style.border.color)}else{if(f.browser.msie){z=s.elements.tooltip.find('.qtip-tip [nodeName="shape"]');z.attr("fillcolor",s.options.style.tip.color||s.options.style.border.color)}}}if(s.options.style.border.radius>0){s.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:s.options.style.border.color});if(f("<canvas>").get(0).getContext){A=g(s.options.style.border.radius);s.elements.tooltip.find(".qtip-wrapper canvas").each(function(){x=f(this).get(0).getContext("2d");x.clearRect(0,0,300,300);y=f(this).parent("div[rel]:first").attr("rel");r.call(s,f(this),A[y],s.options.style.border.radius,s.options.style.border.color)})}else{if(f.browser.msie){s.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){f(this).attr("fillcolor",s.options.style.border.color)})}}}return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(A,y){var z,x,w;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")}else{if(!A){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}z=s.beforeContentUpdate.call(s,A);if(typeof z=="string"){A=z}else{if(z===false){return}}if(f.browser.msie){s.elements.contentWrapper.children().css({zoom:"normal"})}if(A.jquery&&A.length>0){A.clone(true).appendTo(s.elements.content).show()}else{s.elements.content.html(A)}x=s.elements.content.find("img[complete=false]");if(x.length>0){w=0;x.each(function(C){f('<img src="'+f(this).attr("src")+'" />').load(function(){if(++w==x.length){B()}})})}else{B()}function B(){s.updateWidth();if(y!==false){if(s.options.position.type!=="static"){s.updatePosition(s.elements.tooltip.is(":visible"),true)}if(s.options.style.tip.corner!==false){n.call(s)}}}s.onContentUpdate.call(s);return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(w,z,A){var y;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")}y=s.beforeContentLoad.call(s);if(y===false){return s}if(A=="post"){f.post(w,z,x)}else{f.get(w,z,x)}function x(B){s.onContentLoad.call(s);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");s.updateContent(B)}return s},updateTitle:function(w){if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")}else{if(!w){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=s.beforeTitleUpdate.call(s);if(returned===false){return s}if(s.elements.button){s.elements.button=s.elements.button.clone(true)}s.elements.title.html(w);if(s.elements.button){s.elements.title.prepend(s.elements.button)}s.onTitleUpdate.call(s);return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(A){var y,x,w,z;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(s.options.position.type=="static"){return f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")}}y=parseInt(s.elements.tooltip.css("z-index"));x=6000+f("div.qtip[qtip]").length-1;if(!s.status.focused&&y!==x){z=s.beforeFocus.call(s,A);if(z===false){return s}f("div.qtip[qtip]").not(s.elements.tooltip).each(function(){if(f(this).qtip("api").status.rendered===true){w=parseInt(f(this).css("z-index"));if(typeof w=="number"&&w>-1){f(this).css({zIndex:parseInt(f(this).css("z-index"))-1})}f(this).qtip("api").status.focused=false}});s.elements.tooltip.css({zIndex:x});s.status.focused=true;s.onFocus.call(s,A);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_FOCUSED,"focus")}return s},disable:function(w){if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")}if(w){if(!s.status.disabled){s.status.disabled=true;f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_DISABLED,"disable")}else{f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(s.status.disabled){s.status.disabled=false;f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_ENABLED,"disable")}else{f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return s},destroy:function(){var w,x,y;x=s.beforeDestroy.call(s);if(x===false){return s}if(s.status.rendered){s.options.show.when.target.unbind("mousemove.qtip",s.updatePosition);s.options.show.when.target.unbind("mouseout.qtip",s.hide);s.options.show.when.target.unbind(s.options.show.when.event+".qtip");s.options.hide.when.target.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind(s.options.hide.when.event+".qtip");s.elements.tooltip.unbind("mouseover.qtip",s.focus);s.elements.tooltip.remove()}else{s.options.show.when.target.unbind(s.options.show.when.event+".qtip-create")}if(typeof s.elements.target.data("qtip")=="object"){y=s.elements.target.data("qtip").interfaces;if(typeof y=="object"&&y.length>0){for(w=0;w<y.length-1;w++){if(y[w].id==s.id){y.splice(w,1)}}}}delete f.fn.qtip.interfaces[s.id];if(typeof y=="object"&&y.length>0){s.elements.target.data("qtip").current=y.length-1}else{s.elements.target.removeData("qtip")}s.onDestroy.call(s);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_DESTROYED,"destroy");return s.elements.target},getPosition:function(){var w,x;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")}w=(s.elements.tooltip.css("display")!=="none")?false:true;if(w){s.elements.tooltip.css({visiblity:"hidden"}).show()}x=s.elements.tooltip.offset();if(w){s.elements.tooltip.css({visiblity:"visible"}).hide()}return x},getDimensions:function(){var w,x;if(!s.status.rendered){return f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")}w=(!s.elements.tooltip.is(":visible"))?true:false;if(w){s.elements.tooltip.css({visiblity:"hidden"}).show()}x={height:s.elements.tooltip.outerHeight(),width:s.elements.tooltip.outerWidth()};if(w){s.elements.tooltip.css({visiblity:"visible"}).hide()}return x}})}function p(){var s,w,u,t,v,y,x;s=this;s.beforeRender.call(s);s.status.rendered=true;s.elements.tooltip='<div qtip="'+s.id+'" class="qtip '+(s.options.style.classes.tooltip||s.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+s.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+s.options.style.classes.content+'"></div></div></div></div>';s.elements.tooltip=f(s.elements.tooltip);s.elements.tooltip.appendTo(s.options.position.container);s.elements.tooltip.data("qtip",{current:0,interfaces:[s]});s.elements.wrapper=s.elements.tooltip.children("div:first");s.elements.contentWrapper=s.elements.wrapper.children("div:first").css({background:s.options.style.background});s.elements.content=s.elements.contentWrapper.children("div:first").css(q(s.options.style));if(f.browser.msie){s.elements.wrapper.add(s.elements.content).css({zoom:1})}if(s.options.hide.when.event=="unfocus"){s.elements.tooltip.attr("unfocus",true)}if(typeof s.options.style.width.value=="number"){s.updateWidth()}if(f("<canvas>").get(0).getContext||f.browser.msie){if(s.options.style.border.radius>0){m.call(s)}else{s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color})}if(s.options.style.tip.corner!==false){e.call(s)}}else{s.elements.contentWrapper.css({border:s.options.style.border.width+"px solid "+s.options.style.border.color});s.options.style.border.radius=0;s.options.style.tip.corner=false;f.fn.qtip.log.error.call(s,2,f.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof s.options.content.text=="string"&&s.options.content.text.length>0)||(s.options.content.text.jquery&&s.options.content.text.length>0)){u=s.options.content.text}else{if(typeof s.elements.target.attr("title")=="string"&&s.elements.target.attr("title").length>0){u=s.elements.target.attr("title").replace("\\n","<br />");s.elements.target.attr("title","")}else{if(typeof s.elements.target.attr("alt")=="string"&&s.elements.target.attr("alt").length>0){u=s.elements.target.attr("alt").replace("\\n","<br />");s.elements.target.attr("alt","")}else{u=" ";f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(s.options.content.title.text!==false){j.call(s)}s.updateContent(u);l.call(s);if(s.options.show.ready===true){s.show()}if(s.options.content.url!==false){t=s.options.content.url;v=s.options.content.data;y=s.options.content.method||"get";s.loadContent(t,v,y)}s.onRender.call(s);f.fn.qtip.log.error.call(s,1,f.fn.qtip.constants.EVENT_RENDERED,"render")}function m(){var F,z,t,B,x,E,u,G,D,y,w,C,A,s,v;F=this;F.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();t=F.options.style.border.width;B=F.options.style.border.radius;x=F.options.style.border.color||F.options.style.tip.color;E=g(B);u={};for(z in E){u[z]='<div rel="'+z+'" style="'+((z.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+B+"px; width:"+B+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(f("<canvas>").get(0).getContext){u[z]+='<canvas height="'+B+'" width="'+B+'" style="vertical-align: top"></canvas>'}else{if(f.browser.msie){G=B*2+3;u[z]+='<v:arc stroked="false" fillcolor="'+x+'" startangle="'+E[z][0]+'" endangle="'+E[z][1]+'" style="width:'+G+"px; height:"+G+"px; margin-top:"+((z.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((z.search(/Right/)!==-1)?E[z][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'}}u[z]+="</div>"}D=F.getDimensions().width-(Math.max(t,B)*2);y='<div class="qtip-betweenCorners" style="height:'+B+"px; width:"+D+"px; overflow:hidden; background-color:"+x+'; line-height:0.1px; font-size:1px;">';w='<div class="qtip-borderTop" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.topLeft+u.topRight+y;F.elements.wrapper.prepend(w);C='<div class="qtip-borderBottom" dir="ltr" style="height:'+B+"px; margin-left:"+B+'px; line-height:0.1px; font-size:1px; padding:0;">'+u.bottomLeft+u.bottomRight+y;F.elements.wrapper.append(C);if(f("<canvas>").get(0).getContext){F.elements.wrapper.find("canvas").each(function(){A=E[f(this).parent("[rel]:first").attr("rel")];r.call(F,f(this),A,B,x)})}else{if(f.browser.msie){F.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}s=Math.max(B,(B+(t-B)));v=Math.max(t-B,0);F.elements.contentWrapper.css({border:"0px solid "+x,borderWidth:v+"px "+s+"px"})}function r(u,w,s,t){var v=u.get(0).getContext("2d");v.fillStyle=t;v.beginPath();v.arc(w[0],w[1],s,0,Math.PI*2,false);v.fill()}function e(v){var t,s,x,u,w;t=this;if(t.elements.tip!==null){t.elements.tip.remove()}s=t.options.style.tip.color||t.options.style.border.color;if(t.options.style.tip.corner===false){return}else{if(!v){v=t.options.style.tip.corner}}x=b(v,t.options.style.tip.size.width,t.options.style.tip.size.height);t.elements.tip='<div class="'+t.options.style.classes.tip+'" dir="ltr" rel="'+v+'" style="position:absolute; height:'+t.options.style.tip.size.height+"px; width:"+t.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';if(f("<canvas>").get(0).getContext){t.elements.tip+='<canvas height="'+t.options.style.tip.size.height+'" width="'+t.options.style.tip.size.width+'"></canvas>'}else{if(f.browser.msie){u=t.options.style.tip.size.width+","+t.options.style.tip.size.height;w="m"+x[0][0]+","+x[0][1];w+=" l"+x[1][0]+","+x[1][1];w+=" "+x[2][0]+","+x[2][1];w+=" xe";t.elements.tip+='<v:shape fillcolor="'+s+'" stroked="false" filled="true" path="'+w+'" coordsize="'+u+'" style="width:'+t.options.style.tip.size.width+"px; height:"+t.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((v.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';t.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';t.elements.contentWrapper.css("position","relative")}}t.elements.tooltip.prepend(t.elements.tip+"</div>");t.elements.tip=t.elements.tooltip.find("."+t.options.style.classes.tip).eq(0);if(f("<canvas>").get(0).getContext){h.call(t,t.elements.tip.find("canvas:first"),x,s)}if(v.search(/top/)!==-1&&f.browser.msie&&parseInt(f.browser.version.charAt(0))===6){t.elements.tip.css({marginTop:-4})}n.call(t,v)}function h(t,v,s){var u=t.get(0).getContext("2d");u.fillStyle=s;u.beginPath();u.moveTo(v[0][0],v[0][1]);u.lineTo(v[1][0],v[1][1]);u.lineTo(v[2][0],v[2][1]);u.fill()}function n(u){var t,w,s,x,v;t=this;if(t.options.style.tip.corner===false||!t.elements.tip){return}if(!u){u=t.elements.tip.attr("rel")}w=positionAdjust=(f.browser.msie)?1:0;t.elements.tip.css(u.match(/left|right|top|bottom/)[0],0);if(u.search(/top|bottom/)!==-1){if(f.browser.msie){if(parseInt(f.browser.version.charAt(0))===6){positionAdjust=(u.search(/top/)!==-1)?-3:1}else{positionAdjust=(u.search(/top/)!==-1)?1:2}}if(u.search(/Middle/)!==-1){t.elements.tip.css({left:"50%",marginLeft:-(t.options.style.tip.size.width/2)})}else{if(u.search(/Left/)!==-1){t.elements.tip.css({left:t.options.style.border.radius-w})}else{if(u.search(/Right/)!==-1){t.elements.tip.css({right:t.options.style.border.radius+w})}}}if(u.search(/top/)!==-1){t.elements.tip.css({top:-positionAdjust})}else{t.elements.tip.css({bottom:positionAdjust})}}else{if(u.search(/left|right/)!==-1){if(f.browser.msie){positionAdjust=(parseInt(f.browser.version.charAt(0))===6)?1:((u.search(/left/)!==-1)?1:2)}if(u.search(/Middle/)!==-1){t.elements.tip.css({top:"50%",marginTop:-(t.options.style.tip.size.height/2)})}else{if(u.search(/Top/)!==-1){t.elements.tip.css({top:t.options.style.border.radius-w})}else{if(u.search(/Bottom/)!==-1){t.elements.tip.css({bottom:t.options.style.border.radius+w})}}}if(u.search(/left/)!==-1){t.elements.tip.css({left:-positionAdjust})}else{t.elements.tip.css({right:positionAdjust})}}}s="padding-"+u.match(/left|right|top|bottom/)[0];x=t.options.style.tip.size[(s.search(/left|right/)!==-1)?"width":"height"];t.elements.tooltip.css("padding",0);t.elements.tooltip.css(s,x);if(f.browser.msie&&parseInt(f.browser.version.charAt(0))==6){v=parseInt(t.elements.tip.css("margin-top"))||0;v+=parseInt(t.elements.content.css("margin-top"))||0;t.elements.tip.css({marginTop:v})}}function j(){var s=this;if(s.elements.title!==null){s.elements.title.remove()}s.elements.title=f('<div class="'+s.options.style.classes.title+'">').css(q(s.options.style.title,true)).css({zoom:(f.browser.msie)?1:0}).prependTo(s.elements.contentWrapper);if(s.options.content.title.text){s.updateTitle.call(s,s.options.content.title.text)}if(s.options.content.title.button!==false&&typeof s.options.content.title.button=="string"){s.elements.button=f('<a class="'+s.options.style.classes.button+'" style="float:right; position: relative"></a>').css(q(s.options.style.button,true)).html(s.options.content.title.button).prependTo(s.elements.title).click(function(t){if(!s.status.disabled){s.hide(t)}})}}function l(){var t,v,u,s;t=this;v=t.options.show.when.target;u=t.options.hide.when.target;if(t.options.hide.fixed){u=u.add(t.elements.tooltip)}if(t.options.hide.when.event=="inactive"){s=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function y(z){if(t.status.disabled===true){return}clearTimeout(t.timers.inactive);t.timers.inactive=setTimeout(function(){f(s).each(function(){u.unbind(this+".qtip-inactive");t.elements.content.unbind(this+".qtip-inactive")});t.hide(z)},t.options.hide.delay)}}else{if(t.options.hide.fixed===true){t.elements.tooltip.bind("mouseover.qtip",function(){if(t.status.disabled===true){return}clearTimeout(t.timers.hide)})}}function x(z){if(t.status.disabled===true){return}if(t.options.hide.when.event=="inactive"){f(s).each(function(){u.bind(this+".qtip-inactive",y);t.elements.content.bind(this+".qtip-inactive",y)});y()}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.timers.show=setTimeout(function(){t.show(z)},t.options.show.delay)}function w(z){if(t.status.disabled===true){return}if(t.options.hide.fixed===true&&t.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&f(z.relatedTarget).parents("div.qtip[qtip]").length>0){z.stopPropagation();z.preventDefault();clearTimeout(t.timers.hide);return false}clearTimeout(t.timers.show);clearTimeout(t.timers.hide);t.elements.tooltip.stop(true,true);t.timers.hide=setTimeout(function(){t.hide(z)},t.options.hide.delay)}if((t.options.show.when.target.add(t.options.hide.when.target).length===1&&t.options.show.when.event==t.options.hide.when.event&&t.options.hide.when.event!=="inactive")||t.options.hide.when.event=="unfocus"){t.cache.toggle=0;v.bind(t.options.show.when.event+".qtip",function(z){if(t.cache.toggle==0){x(z)}else{w(z)}})}else{v.bind(t.options.show.when.event+".qtip",x);if(t.options.hide.when.event!=="inactive"){u.bind(t.options.hide.when.event+".qtip",w)}}if(t.options.position.type.search(/(fixed|absolute)/)!==-1){t.elements.tooltip.bind("mouseover.qtip",t.focus)}if(t.options.position.target==="mouse"&&t.options.position.type!=="static"){v.bind("mousemove.qtip",function(z){t.cache.mouse={x:z.pageX,y:z.pageY};if(t.status.disabled===false&&t.options.position.adjust.mouse===true&&t.options.position.type!=="static"&&t.elements.tooltip.css("display")!=="none"){t.updatePosition(z)}})}}function o(u,v,A){var z,s,x,y,t,w;z=this;if(A.corner=="center"){return v.position}s=f.extend({},u);y={x:false,y:false};t={left:(s.left<f.fn.qtip.cache.screen.scroll.left),right:(s.left+A.dimensions.width+2>=f.fn.qtip.cache.screen.width+f.fn.qtip.cache.screen.scroll.left),top:(s.top<f.fn.qtip.cache.screen.scroll.top),bottom:(s.top+A.dimensions.height+2>=f.fn.qtip.cache.screen.height+f.fn.qtip.cache.screen.scroll.top)};x={left:(t.left&&(A.corner.search(/right/i)!=-1||(A.corner.search(/right/i)==-1&&!t.right))),right:(t.right&&(A.corner.search(/left/i)!=-1||(A.corner.search(/left/i)==-1&&!t.left))),top:(t.top&&A.corner.search(/top/i)==-1),bottom:(t.bottom&&A.corner.search(/bottom/i)==-1)};if(x.left){if(z.options.position.target!=="mouse"){s.left=v.position.left+v.dimensions.width}else{s.left=z.cache.mouse.x}y.x="Left"}else{if(x.right){if(z.options.position.target!=="mouse"){s.left=v.position.left-A.dimensions.width}else{s.left=z.cache.mouse.x-A.dimensions.width}y.x="Right"}}if(x.top){if(z.options.position.target!=="mouse"){s.top=v.position.top+v.dimensions.height}else{s.top=z.cache.mouse.y}y.y="top"}else{if(x.bottom){if(z.options.position.target!=="mouse"){s.top=v.position.top-A.dimensions.height}else{s.top=z.cache.mouse.y-A.dimensions.height}y.y="bottom"}}if(s.left<0){s.left=u.left;y.x=false}if(s.top<0){s.top=u.top;y.y=false}if(z.options.style.tip.corner!==false){s.corner=new String(A.corner);if(y.x!==false){s.corner=s.corner.replace(/Left|Right|Middle/,y.x)}if(y.y!==false){s.corner=s.corner.replace(/top|bottom/,y.y)}if(s.corner!==z.elements.tip.attr("rel")){e.call(z,s.corner)}}return s}function q(u,t){var v,s;v=f.extend(true,{},u);for(s in v){if(t===true&&s.search(/(tip|classes)/i)!==-1){delete v[s]}else{if(!t&&s.search(/(width|border|tip|title|classes|user)/i)!==-1){delete v[s]}}}return v}function c(s){if(typeof s.tip!=="object"){s.tip={corner:s.tip}}if(typeof s.tip.size!=="object"){s.tip.size={width:s.tip.size,height:s.tip.size}}if(typeof s.border!=="object"){s.border={width:s.border}}if(typeof s.width!=="object"){s.width={value:s.width}}if(typeof s.width.max=="string"){s.width.max=parseInt(s.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof s.width.min=="string"){s.width.min=parseInt(s.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof s.tip.size.x=="number"){s.tip.size.width=s.tip.size.x;delete s.tip.size.x}if(typeof s.tip.size.y=="number"){s.tip.size.height=s.tip.size.y;delete s.tip.size.y}return s}function a(){var s,t,u,x,v,w;s=this;u=[true,{}];for(t=0;t<arguments.length;t++){u.push(arguments[t])}x=[f.extend.apply(f,u)];while(typeof x[0].name=="string"){x.unshift(c(f.fn.qtip.styles[x[0].name]))}x.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},f.fn.qtip.styles.defaults);v=f.extend.apply(f,x);w=(f.browser.msie)?1:0;v.tip.size.width+=w;v.tip.size.height+=w;if(v.tip.size.width%2>0){v.tip.size.width+=1}if(v.tip.size.height%2>0){v.tip.size.height+=1}if(v.tip.corner===true){v.tip.corner=(s.options.position.corner.tooltip==="center")?false:s.options.position.corner.tooltip}return v}function b(v,u,t){var s={bottomRight:[[0,0],[u,t],[u,0]],bottomLeft:[[0,0],[u,0],[0,t]],topRight:[[0,t],[u,0],[u,t]],topLeft:[[0,0],[0,t],[u,t]],topMiddle:[[0,t],[u/2,0],[u,t]],bottomMiddle:[[0,0],[u,0],[u/2,t]],rightMiddle:[[0,0],[u,t/2],[0,t]],leftMiddle:[[u,0],[u,t],[0,t/2]]};s.leftTop=s.bottomRight;s.rightTop=s.bottomLeft;s.leftBottom=s.topRight;s.rightBottom=s.topLeft;return s[v]}function g(s){var t;if(f("<canvas>").get(0).getContext){t={topLeft:[s,s],topRight:[0,s],bottomLeft:[s,0],bottomRight:[0,0]}}else{if(f.browser.msie){t={topLeft:[-90,90,0],topRight:[-90,90,-s],bottomLeft:[90,270,0],bottomRight:[90,270,-s]}}}return t}function k(){var s,t,u;s=this;u=s.getDimensions();t='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+u.height+"px; width:"+u.width+'px" />';s.elements.bgiframe=s.elements.wrapper.prepend(t).children(".qtip-bgiframe:first")}f(document).ready(function(){f.fn.qtip.cache={screen:{scroll:{left:f(window).scrollLeft(),top:f(window).scrollTop()},width:f(window).width(),height:f(window).height()}};var s;f(window).bind("resize scroll",function(t){clearTimeout(s);s=setTimeout(function(){if(t.type==="scroll"){f.fn.qtip.cache.screen.scroll={left:f(window).scrollLeft(),top:f(window).scrollTop()}}else{f.fn.qtip.cache.screen.width=f(window).width();f.fn.qtip.cache.screen.height=f(window).height()}for(i=0;i<f.fn.qtip.interfaces.length;i++){var u=f.fn.qtip.interfaces[i];if(u.status.rendered===true&&(u.options.position.type!=="static"||u.options.position.adjust.scroll&&t.type==="scroll"||u.options.position.adjust.resize&&t.type==="resize")){u.updatePosition(t,true)}}},100)});f(document).bind("mousedown.qtip",function(t){if(f(t.target).parents("div.qtip").length===0){f(".qtip[unfocus]").each(function(){var u=f(this).qtip("api");if(f(this).is(":visible")&&!u.status.disabled&&f(t.target).add(u.elements.target).length>1){u.hide(t)}})}})});f.fn.qtip.interfaces=[];f.fn.qtip.log={error:function(){return this}};f.fn.qtip.constants={};f.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};f.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}})(jQuery);;
$.fn.qtip.defaults.show.effect.length=0;$.fn.qtip.defaults.hide.effect.length=0;$.fn.qtip.styles.defaults.background="#f9feff";$.fn.qtip.styles.defaults.border.color="#07ade4";$.fn.qtip.styles.defaults.border.radius=5;;
var Qs_Form_Element_Captcha={message:new Qs_Message({eng:{},uk:{}}),refresh:function(b){$(b).addClass("loading_captcha");$.ajax({url:b.href,type:"GET",data:{action:"refresh"},dataType:"json",error:function(d,a,c){alert(a+" "+c)},complete:function(){$(b).removeClass("loading_captcha")},success:function(c){if(c.isValid){b.href=b.href.replace(c.oldId,c.newId);var a=$("img:first",b);if(a.size()){a=a.get(0);a.src=a.src.replace(c.oldId,c.newId)}var d=$('input:hidden[value="'+c.oldId+'"]').val(c.newId).attr("name");d=d.replace(/\[id\]/,"[input]");$('input[name="'+d+'"]:text').val("").focus()}}});return false}};;
/*
 * jQuery blockUI plugin
 * Version 2.38 (29-MAR-2011)
 * @requires jQuery v1.2.3 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2010 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
(function(i){if(/1\.(0|1|2)\.(0|1|2)/.test(i.fn.jquery)||/^1.1/.test(i.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+i.fn.jquery);return}i.fn._fadeIn=i.fn.fadeIn;var c=function(){};var j=document.documentMode||0;var e=i.browser.msie&&((i.browser.version<8&&!j)||j<8);var f=i.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!j;i.blockUI=function(p){d(window,p)};i.unblockUI=function(p){h(window,p)};i.growlUI=function(t,r,s,p){var q=i('<div class="growlUI"></div>');if(t){q.append("<h1>"+t+"</h1>")}if(r){q.append("<h2>"+r+"</h2>")}if(s==undefined){s=3000}i.blockUI({message:q,fadeIn:700,fadeOut:1000,centerY:false,timeout:s,showOverlay:false,onUnblock:p,css:i.blockUI.defaults.growlCSS})};i.fn.block=function(p){return this.unblock({fadeOut:0}).each(function(){if(i.css(this,"position")=="static"){this.style.position="relative"}if(i.browser.msie){this.style.zoom=1}d(this,p)})};i.fn.unblock=function(p){return this.each(function(){h(this,p)})};i.blockUI.version=2.38;i.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:false,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg"};var b=null;var g=[];function d(r,F){var A=(r==window);var w=F&&F.message!==undefined?F.message:undefined;F=i.extend({},i.blockUI.defaults,F||{});F.overlayCSS=i.extend({},i.blockUI.defaults.overlayCSS,F.overlayCSS||{});var C=i.extend({},i.blockUI.defaults.css,F.css||{});var N=i.extend({},i.blockUI.defaults.themedCSS,F.themedCSS||{});w=w===undefined?F.message:w;if(A&&b){h(window,{fadeOut:0})}if(w&&typeof w!="string"&&(w.parentNode||w.jquery)){var I=w.jquery?w[0]:w;var P={};i(r).data("blockUI.history",P);P.el=I;P.parent=I.parentNode;P.display=I.style.display;P.position=I.style.position;if(P.parent){P.parent.removeChild(I)}}var B=F.baseZ;var M=(i.browser.msie||F.forceIframe)?i('<iframe class="blockUI" style="z-index:'+(B++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+F.iframeSrc+'"></iframe>'):i('<div class="blockUI" style="display:none"></div>');var L=F.theme?i('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(B++)+';display:none"></div>'):i('<div class="blockUI blockOverlay" style="z-index:'+(B++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var K,G;if(F.theme&&A){G='<div class="blockUI '+F.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+B+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(F.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(F.theme){G='<div class="blockUI '+F.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+B+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(F.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(A){G='<div class="blockUI '+F.blockMsgClass+' blockPage" style="z-index:'+B+';display:none;position:fixed"></div>'}else{G='<div class="blockUI '+F.blockMsgClass+' blockElement" style="z-index:'+B+';display:none;position:absolute"></div>'}}}K=i(G);if(w){if(F.theme){K.css(N);K.addClass("ui-widget-content")}else{K.css(C)}}if(!F.theme&&(!F.applyPlatformOpacityRules||!(i.browser.mozilla&&/Linux/.test(navigator.platform)))){L.css(F.overlayCSS)}L.css("position",A?"fixed":"absolute");if(i.browser.msie||F.forceIframe){M.css("opacity",0)}var y=[M,L,K],O=A?i("body"):i(r);i.each(y,function(){this.appendTo(O)});if(F.theme&&F.draggable&&i.fn.draggable){K.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var v=e&&(!i.boxModel||i("object,embed",A?null:r).length>0);if(f||v){if(A&&F.allowBodyStretch&&i.boxModel){i("html,body").css("height","100%")}if((f||!i.boxModel)&&!A){var E=m(r,"borderTopWidth"),J=m(r,"borderLeftWidth");var x=E?"(0 - "+E+")":0;var D=J?"(0 - "+J+")":0}i.each([M,L,K],function(t,S){var z=S[0].style;z.position="absolute";if(t<2){A?z.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+F.quirksmodeOffsetHack+') + "px"'):z.setExpression("height",'this.parentNode.offsetHeight + "px"');A?z.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):z.setExpression("width",'this.parentNode.offsetWidth + "px"');if(D){z.setExpression("left",D)}if(x){z.setExpression("top",x)}}else{if(F.centerY){if(A){z.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}z.marginTop=0}else{if(!F.centerY&&A){var Q=(F.css&&F.css.top)?parseInt(F.css.top):0;var R="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+Q+') + "px"';z.setExpression("top",R)}}}})}if(w){if(F.theme){K.find(".ui-widget-content").append(w)}else{K.append(w)}if(w.jquery||w.nodeType){i(w).show()}}if((i.browser.msie||F.forceIframe)&&F.showOverlay){M.show()}if(F.fadeIn){var H=F.onBlock?F.onBlock:c;var q=(F.showOverlay&&!w)?H:c;var p=w?H:c;if(F.showOverlay){L._fadeIn(F.fadeIn,q)}if(w){K._fadeIn(F.fadeIn,p)}}else{if(F.showOverlay){L.show()}if(w){K.show()}if(F.onBlock){F.onBlock()}}l(1,r,F);if(A){b=K[0];g=i(":input:enabled:visible",b);if(F.focusInput){setTimeout(o,20)}}else{a(K[0],F.centerX,F.centerY)}if(F.timeout){var u=setTimeout(function(){A?i.unblockUI(F):i(r).unblock(F)},F.timeout);i(r).data("blockUI.timeout",u)}}function h(s,t){var r=(s==window);var q=i(s);var u=q.data("blockUI.history");var v=q.data("blockUI.timeout");if(v){clearTimeout(v);q.removeData("blockUI.timeout")}t=i.extend({},i.blockUI.defaults,t||{});l(0,s,t);var p;if(r){p=i("body").children().filter(".blockUI").add("body > .blockUI")}else{p=i(".blockUI",s)}if(r){b=g=null}if(t.fadeOut){p.fadeOut(t.fadeOut);setTimeout(function(){k(p,u,t,s)},t.fadeOut)}else{k(p,u,t,s)}}function k(p,s,r,q){p.each(function(t,u){if(this.parentNode){this.parentNode.removeChild(this)}});if(s&&s.el){s.el.style.display=s.display;s.el.style.position=s.position;if(s.parent){s.parent.appendChild(s.el)}i(q).removeData("blockUI.history")}if(typeof r.onUnblock=="function"){r.onUnblock(q,r)}}function l(p,t,u){var s=t==window,r=i(t);if(!p&&(s&&!b||!s&&!r.data("blockUI.isBlocked"))){return}if(!s){r.data("blockUI.isBlocked",p)}if(!u.bindEvents||(p&&!u.showOverlay)){return}var q="mousedown mouseup keydown keypress";p?i(document).bind(q,u,n):i(document).unbind(q,n)}function n(t){if(t.keyCode&&t.keyCode==9){if(b&&t.data.constrainTabKey){var r=g;var q=!t.shiftKey&&t.target===r[r.length-1];var p=t.shiftKey&&t.target===r[0];if(q||p){setTimeout(function(){o(p)},10);return false}}}var s=t.data;if(i(t.target).parents("div."+s.blockMsgClass).length>0){return true}return i(t.target).parents().children().filter("div.blockUI").length==0}function o(p){if(!g){return}var q=g[p===true?g.length-1:0];if(q){q.focus()}}function a(w,q,A){var z=w.parentNode,v=w.style;var r=((z.offsetWidth-w.offsetWidth)/2)-m(z,"borderLeftWidth");var u=((z.offsetHeight-w.offsetHeight)/2)-m(z,"borderTopWidth");if(q){v.left=r>0?(r+"px"):"0"}if(A){v.top=u>0?(u+"px"):"0"}}function m(q,r){return parseInt(i.css(q,r))||0}})(jQuery);;
var Qs_Form={message:new Qs_Message({eng:{invalidInformationEntered:"Please review the comments and make appropriate corrections.",pleaseCorrectTheseFields:""}}),options:{errorDisplayMethod:"HTML"},formOptions:{},init:function(b,a){var c=document.getElementById(b);if(!c){alert("Form (id = "+b+") is not available");return false}if(!c.tagName||c.tagName!="FORM"){alert("Element (id = "+b+") is not a form - tagName = "+c.tagName);return false}if(a){Qs_Form.formOptions[b]=a}$(c).unbind("submit.form-plugin").bind("submit.form-plugin",Qs_Form.onSubmit);$(":submit,input:image",c).unbind("click.form-plugin").bind("click.form-plugin",Qs_Form.buttonOnClick)},buttonOnClick:function(b){var a=this.form;a.clk=this;if(this.type=="image"){if(b.offsetX!=undefined){a.clk_x=b.offsetX;a.clk_y=b.offsetY}else{if(typeof $.fn.offset=="function"){var c=$(this).offset();a.clk_x=b.pageX-c.left;a.clk_y=b.pageY-c.top}else{a.clk_x=b.pageX-this.offsetLeft;a.clk_y=b.pageY-this.offsetTop}}}setTimeout(function(){a.clk=a.clk_x=a.clk_y=null},10)},getOption:function(a){return Qs_Form.options[a]},setErrorDisplayMethod:function(a,b){Qs_Form.setFormOption(a,"errorDisplayMethod",b)},getErrorDisplayMethod:function(a){return Qs_Form.getFormOption(a,"errorDisplayMethod")},setFormOption:function(b,a,c){if(typeof Qs_Form.formOptions[b]=="undefined"){Qs_Form.formOptions[b]={}}Qs_Form.formOptions[b][a]=c},getFormOption:function(b,a){if(typeof Qs_Form.formOptions[b]=="undefined"||typeof Qs_Form.formOptions[b][a]=="undefined"){return Qs_Form.getOption(a)}return Qs_Form.formOptions[b][a]},callExternal:function(a){if(typeof a=="string"){$.globalEval(a+".call(this)")}else{if(typeof a=="object"&&a!=null){var d="";for(var e in a){var c=new Array();if(is_numeric(e)){if(typeof a[e]=="string"){e=a[e]}else{if(typeof a[e]=="object"&&typeof a[e]!=null){var b=array_key(a[e]);c=a[e][b];e=b}else{continue}}}else{c=a[e]}d+=e;if(c.length){d+=".apply(this, "+json_encode(c)+");\n"}else{d+=".call(this);\n"}}if(d.length){$.globalEval(d)}}}},onSubmitSuccess:function(a,d){var e=$(d).attr("id");Qs_Form.setFormOption(e,"response",a);if(a.isValid){if(d){var b=Qs_Form.getFormOption($(d).attr("id"),"onSuccessCallback");if(typeof b=="undefined"){d.submit()}else{Qs_Form.callExternal(b)}}}else{var c=Qs_Form.getFormOption($(d).attr("id"),"onErrorCallback");if(typeof c!="undefined"){Qs_Form.callExternal(c);return true}Qs_Form.displayErrors(e)}return a},displayErrors:function(c){var f=Qs_Form.getFormOption(c,"response");var e=document.getElementById(c);var g=Qs_Form.getErrorDisplayMethod(c);switch(g){case"ALERT":var i=Qs_Form.message.get("invalidInformationEntered")+"\n";i+=Qs_Form.prepareErrorsAlert(f.errors,f.elements);i+="\n\n"+Qs_Form.message.get("pleaseCorrectTheseFields");var b=array_key(f.errors);if(e[b]&&e[b].focus){e[b].focus()}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){e[b+"[input]"].focus()}}$.scrollTo("#"+b+"-label");alert(i);break;case"HTML":Qs_Form.displayErrorsHtml(e,f.errors);var b=array_key(f.errors);var d=null;if(e[b]&&e[b].focus){d=b}else{if(e[b+"[input]"]&&e[b+"[input]"].focus){d=b+"[input]"}}if(d!=null){if($('[name="'+d+'"]:visible',e).size()){e[d].focus()}}var a=Qs_Form.getFormOption(c,"prependId");if(a){b=c+"-"+b}$.scrollTo("#"+b+"-label");var i=Qs_Form.message.get("invalidInformationEntered")+"\n"+Qs_Form.message.get("pleaseCorrectTheseFields");alert(trim(i));break;default:alert('Qs_Form. Unknown errorDisplayMethod "'+g+'"')}if(typeof f.captcha=="object"&&f.captcha!=null){for(var b in f.captcha){var h=$("#"+b+"-element");if($(h).size()!=0){$("img:first",h).attr("src",f.captcha[b].src);$("#"+b+"-id",h).attr("value",f.captcha[b].id);$("#"+b+"-input",h).attr("value","");if(typeof f.captcha[b].href!="undefined"){$("a.captcha_refresh",h).attr("href",f.captcha[b].href)}}}}},prepareErrorsAlert:function(g,f){var d="";for(var b in g){var c="";var a=true;for(var e in g[b]){if(typeof g[b][e]=="string"){c+="\n     - "+g[b][e]}else{d+=Qs_Form.prepareErrorsAlert(g[b],f[b]);a=false;break}}if(a&&c!=""){d+="\n"+f[b]+":"+c}}return d},displayErrorsHtml:function(c,h,e){for(var f in h){var g="";var k;if(typeof e!="undefined"){k=e+"["+f+"]"}else{k=f}for(var i in h[f]){if(typeof h[f][i]=="string"){g+="<li>"+h[f][i]+"</li>"}else{Qs_Form.displayErrorsHtml(c,h[f],k);break}}if(g!=""){g='<ul class="errors">'+g+"</ul>";var j=$(c).attr("id");var d=Qs_Form.getFormOption(j,"response");var b=Qs_Array.get(d.elements,k+"[id]");if(null==b){b=k.replace(/\[\]$/,"").replace(/\]/g,"").replace(/\[/g,"-")}var a=Qs_Form.getFormOption(j,"prependId");if(a){b=j+"-"+b}$("#"+b+"-element").append(g)}}},onSubmitError:function(a,c,b){alert(c+" "+b)},onSubmitComplete:function(d,e,c){var b=$(c).attr("id");Qs_Form.formOptions[b]["processRequest"]=false;var a=Qs_Form.getFormOption(b,"onAfterSubmit");if(typeof a!="undefined"){Qs_Form.callExternal(a)}},removeElementsErrors:function(a){$("ul.errors",a).remove()},editorsTriggerSave:function(b){if(typeof tinyMCE!="undefined"){tinyMCE.triggerSave()}if(typeof FCKeditorAPI!="undefined"){for(var a=0;a<b.elements.length;a++){if(b.elements[a].tagName=="TEXTAREA"){var c=FCKeditorAPI.GetInstance(b.elements[a].name);if(typeof c!="undefined"){if(c.IsDirty()){c.UpdateLinkedField()}}}}}},onSubmit:function(a){var d;if(this.tagName=="FORM"){d=this}else{d=a}var c=$(d).attr("id");var e=Qs_Form.getFormOption(c,"onBeforeSubmit");if(typeof e!="undefined"){Qs_Form.callExternal(e)}Qs_Form.editorsTriggerSave(d);Qs_Form.removeElementsErrors(d);if(typeof Qs_Form.formOptions[c]["processRequest"]=="undefined"||Qs_Form.formOptions[c]["processRequest"]!=true){Qs_Form.formOptions[c]["processRequest"]=true;var b={url:$(d).attr("action"),type:"POST",dataType:"json",data:Qs_Form.toObject(d),success:function(f){Qs_Form.onSubmitSuccess(f,d)},error:Qs_Form.onSubmitError,complete:function(f,g){Qs_Form.onSubmitComplete(f,g,d)}};$.ajax(b)}return false},setValue:function(c,a,b){var d=c[a];if(is_string(d)){if(a.substr(-2)=="[]"){delete c[a];c[a.substr(0,a.length-2)]=[d,b]}else{c[a]=b}}else{if(is_array(d)){d.push(b)}else{c[a]=b}}},toObject:function(h){var c={};var a="file|submit|image|reset|button|";if(is_string(h)){h=document.getElementById(h)}for(var d=0;d<h.elements.length;d++){var g=h.elements[d];if(!g){continue}var f=g.name;var e=(g.type||"").toLowerCase();if(f&&e&&a.indexOf(e)==-1&&!g.disabled){if(e=="radio"||e=="checkbox"){if(g.checked){Qs_Form.setValue(c,f,g.value)}}else{if(g.multiple){c[f]=[];for(var b in g.options){if(g.options[b]!=null&&typeof g.options[b].tagName=="string"&&g.options[b].tagName=="OPTION"&&g.options[b].selected){Qs_Form.setValue(c,f,g.options[b].value)}}}else{Qs_Form.setValue(c,f,g.value);if(e=="image"){c[f+".x"]=c[f+".y"]=c[f].x=c[f].y=0}}}}}if(h.clk&&!h.clk.disabled&&h.clk.name){if(h.clk.type=="image"){c[h.clk.name+".x"]=h.clk_x;c[h.clk.name+".y"]=h.clk_y}else{c[h.clk.name]=h.clk.value}}return c}};;

