String.prototype.rsplit=function(J){var K=this;var H=J.exec(K);var I=new Array();while(H!=null){var L=H.index;var M=J.lastIndex;if((L)!=0){var N=K.substring(0,L);I.push(K.substring(0,L));K=K.slice(L)}I.push(H[0]);K=K.slice(H[0].length);H=J.exec(K)}if(!K==""){I.push(K)}return I};String.prototype.chop=function(){return this.substr(0,this.length-1)};var EjsScanner=function(F,E,D){this.left_delimiter=E+"%";this.right_delimiter="%"+D;this.double_left=E+"%%";this.double_right="%%"+D;this.left_equal=E+"%=";this.left_comment=E+"%#";if(E=="["){this.SplitRegexp=/(\[%%)|(%%\])|(\[%=)|(\[%#)|(\[%)|(%\]\n)|(%\])|(\n)/}else{this.SplitRegexp=new RegExp("("+this.double_left+")|(%%"+this.double_right+")|("+this.left_equal+")|("+this.left_comment+")|("+this.left_delimiter+")|("+this.right_delimiter+"\n)|("+this.right_delimiter+")|(\n)")}this.source=F;this.stag=null;this.lines=0};EjsView={};EjsScanner.to_text=function(B){if(B==null||B===undefined){return""}if(B instanceof Date){return B.toDateString()}if(B.toString){return B.toString()}return""};EjsScanner.prototype={scan:function(F){scanline=this.scanline;regex=this.SplitRegexp;if(!this.source==""){var G=this.source.rsplit(/\n/);for(var E=0;E<G.length;E++){var H=G[E];this.scanline(H,regex,F)}}},scanline:function(H,L,I){this.lines++;var K=H.rsplit(L);for(var M=0;M<K.length;M++){var N=K[M];if(N!=null){try{I(N,this)}catch(J){throw {type:"EjsScanner",line:this.lines}}}}}};var EjsBuffer=function(F,E){this.line=new Array();this.script="";this.pre_cmd=F;this.post_cmd=E;for(var D=0;D<this.pre_cmd.length;D++){this.push(F[D])}};EjsBuffer.prototype={push:function(B){this.line.push(B)},cr:function(){this.script=this.script+this.line.join("; ");this.line=new Array();this.script=this.script+"\n"},close:function(){if(this.line.length>0){for(var B=0;B<this.post_cmd.length;B++){this.push(pre_cmd[B])}this.script=this.script+this.line.join("; ");line=null}}};EjsCompiler=function(F,E){this.pre_cmd=['___ejsO = "";'];this.post_cmd=new Array();this.source=" ";if(F!=null){if(typeof F=="string"){F=F.replace(/\r\n/g,"\n");F=F.replace(/\r/g,"\n");this.source=F}else{if(F.innerHTML){this.source=F.innerHTML}}if(typeof this.source!="string"){this.source=""}}E=E||"<";var D=">";switch(E){case"[":D="]";break;case"<":break;default:throw E+" is not a supported deliminator";break}this.scanner=new EjsScanner(this.source,E,D);this.out=""};EjsCompiler.prototype={compile:function(options){options=options||{};this.out="";var put_cmd="___ejsO += ";var insert_cmd=put_cmd;var buff=new EjsBuffer(this.pre_cmd,this.post_cmd);var content="";var clean=function(content){content=content.replace(/\\/g,"\\\\");content=content.replace(/\n/g,"\\n");content=content.replace(/"/g,'\\"');return content};this.scanner.scan(function(token,scanner){if(scanner.stag==null){switch(token){case"\n":content=content+"\n";buff.push(put_cmd+'"'+clean(content)+'";');buff.cr();content="";break;case scanner.left_delimiter:case scanner.left_equal:case scanner.left_comment:scanner.stag=token;if(content.length>0){buff.push(put_cmd+'"'+clean(content)+'"')}content="";break;case scanner.double_left:content=content+scanner.left_delimiter;break;default:content=content+token;break}}else{switch(token){case scanner.right_delimiter:switch(scanner.stag){case scanner.left_delimiter:if(content[content.length-1]=="\n"){content=content.chop();buff.push(content);buff.cr()}else{buff.push(content)}break;case scanner.left_equal:buff.push(insert_cmd+"(EjsScanner.to_text("+content+"))");break}scanner.stag=null;content="";break;case scanner.double_right:content=content+scanner.right_delimiter;break;default:content=content+token;break}}});if(content.length>0){buff.push(put_cmd+'"'+clean(content)+'"')}buff.close();this.out=buff.script+";";var to_be_evaled="this.process = function(_CONTEXT) { try { with(EjsView) { with (_CONTEXT) {"+this.out+" return ___ejsO;}}}catch(e){e.lineNumber=null;throw e;}};";try{eval(to_be_evaled)}catch(e){if(typeof JSLINT!="undefined"){JSLINT(this.out);for(var i=0;i<JSLINT.errors.length;i++){var error=JSLINT.errors[i];if(error.reason!="Unnecessary semicolon."){error.line++;var e=new Error();e.lineNumber=error.line;e.message=error.reason;if(options.url){e.fileName=options.url}throw e}}}else{throw e}}}};EJS=function(F){this.set_options(F);if(F.url){var E=EJS.get(F.url,this.cache);if(E){return E}if(E==EJS.INVALID_PATH){return null}this.text=EJS.request(F.url);if(this.text==null){throw"There is no template at "+F.url}this.name=F.url}else{if(F.element){if(typeof F.element=="string"){var D=F.element;F.element=document.getElementById(F.element);if(F.element==null){throw D+"does not exist!"}}if(F.element.value){this.text=F.element.value}else{this.text=F.element.innerHTML}this.name=F.element.id;this.type="["}}var E=new EjsCompiler(this.text,this.type);E.compile(F);EJS.update(this.name,this);this.template=E};EJS.config=function(D){EJS.cache=D.cache!=null?D.cache:EJS.cache;EJS.type=D.type!=null?D.type:EJS.type;var C={};EJS.get=function(A,B){if(B==false){return null}if(C[A]){return C[A]}return null};EJS.update=function(A,B){if(A==null){return }C[A]=B};EJS.INVALID_PATH=-1};EJS.config({cache:true,type:"<"});EJS.prototype={render:function(B){return this.template.process.call(B,B)},out:function(){return this.template.out},set_options:function(B){this.type=B.type!=null?B.type:EJS.type;this.cache=B.cache!=null?B.cache:EJS.cache;this.text=B.text!=null?B.text:null;this.name=B.name!=null?B.name:null},update:function(element,options){if(typeof element=="string"){element=document.getElementById(element)}if(options==null){_template=this;return function(object){EJS.prototype.update.call(_template,element,object)}}if(typeof options=="string"){params={};params.url=options;_template=this;params.onComplete=function(request){var object=eval(request.responseText);EJS.prototype.update.call(_template,element,object)};EJS.ajax_request(params)}else{element.innerHTML=this.render(options)}}};EJS.newRequest=function(){var G=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];for(var E=0;E<G.length;E++){try{var H=G[E]();if(H!=null){return H}}catch(F){continue}}};EJS.request=function(E){var D=new EJS.newRequest();D.open("GET",E,false);try{D.send(null)}catch(F){return null}if(D.status==404||D.status==2||(D.status==0&&D.responseText=="")){return null}return D.responseText};EJS.ajax_request=function(D){D.method=(D.method?D.method:"GET");var C=new EJS.newRequest();C.onreadystatechange=function(){if(C.readyState==4){if(C.status==200){D.onComplete(C)}else{D.onComplete(C)}}};C.open(D.method,D.url);C.send(null)};EjsView=function(){};EjsView.date_tag=function(R,V,T){if(!(V instanceof Date)){V=new Date()}var S=["January","February","March","April","May","June","July","August","September","October","November","December"];var d=[],Q=[],U=[];var a=V.getFullYear();var c=V.getMonth();var W=V.getDate();for(var X=a-15;X<a+15;X++){d.push({value:X,text:X})}for(var f=0;f<12;f++){Q.push({value:(f),text:S[f]})}for(var b=0;b<31;b++){U.push({value:(b+1),text:(b+1)})}var Y=this.select_tag(R+"[year]",a,d,{id:R+"[year]"});var e=this.select_tag(R+"[month]",c,Q,{id:R+"[month]"});var Z=this.select_tag(R+"[day]",W,U,{id:R+"[day]"});return Y+e+Z};EjsView.form_tag=function(D,C){C=C||{};C.action=D;if(C.multipart==true){C.method="post";C.enctype="multipart/form-data"}return this.start_tag_for("form",C)};EjsView.form_tag_end=function(){return this.tag_end("form")};EjsView.hidden_field_tag=function(D,E,F){return this.input_field_tag(D,E,"hidden",F)};EjsView.input_field_tag=function(E,F,G,H){H=H||{};H.id=H.id||E;H.value=F||"";H.type=G||"text";H.name=E;return this.single_tag_for("input",H)};EjsView.is_current_page=function(B){if(window.location.href==B||window.location.pathname==B){return true}return false};EjsView.link_to=function(F,D,E){if(!F){var F="null"}if(!E){var E={}}if(E.confirm){E.onclick=' var ret_confirm = confirm("'+E.confirm+'"); if(!ret_confirm){ return false;} ';E.confirm=null}E.href=D;return this.start_tag_for("a",E)+F+this.tag_end("a")};EjsView.submit_link_to=function(F,D,E){if(!F){var F="null"}if(!E){var E={}}E.onclick=E.onclick||"";if(E.confirm){E.onclick=' var ret_confirm = confirm("'+E.confirm+'"); if(!ret_confirm){ return false;} ';E.confirm=null}E.value=F;E.type="submit";E.onclick=E.onclick+(D?this.url_for(D):"")+"return false;";return this.start_tag_for("input",E)};EjsView.link_to_if=function(H,L,G,J,K,I){return this.link_to_unless((H==false),L,G,J,K,I)};EjsView.link_to_unless=function(G,J,F,I,H){I=I||{};if(G){if(H&&typeof H=="function"){return H(J,F,I,H)}else{return J}}else{return this.link_to(J,F,I)}};EjsView.link_to_unless_current=function(H,E,G,F){G=G||{};return this.link_to_unless(this.is_current_page(E),H,E,G,F)};EjsView.password_field_tag=function(D,E,F){return this.input_field_tag(D,E,"password",F)};EjsView.select_tag=function(N,K,J,L){L=L||{};L.id=L.id||N;L.value=K;L.name=N;var P="";P+=this.start_tag_for("select",L);for(var M=0;M<J.length;M++){var O=J[M];var I={value:O.value};if(O.value==K){I.selected="selected"}P+=this.start_tag_for("option",I)+O.text+this.tag_end("option")}P+=this.tag_end("select");return P};EjsView.single_tag_for=function(C,D){return this.tag(C,D,"/>")};EjsView.start_tag_for=function(C,D){return this.tag(C,D)};EjsView.submit_tag=function(C,D){D=D||{};D.type=D.type||"submit";D.value=C||"Submit";return this.single_tag_for("input",D)};EjsView.tag=function(K,I,J){if(!J){var J=">"}var L=" ";for(var G in I){if(I[G]!=null){var H=I[G].toString()}else{var H=""}if(G=="Class"){G="class"}if(H.indexOf("'")!=-1){L+=G+'="'+H+'" '}else{L+=G+"='"+H+"' "}}return"<"+K+L+J};EjsView.tag_end=function(B){return"</"+B+">"};EjsView.text_area_tag=function(D,E,F){F=F||{};F.id=F.id||D;F.name=F.name||D;E=E||"";if(F.size){F.cols=F.size.split("x")[0];F.rows=F.size.split("x")[1];delete F.size}F.cols=F.cols||50;F.rows=F.rows||4;return this.start_tag_for("textarea",F)+E+this.tag_end("textarea")};EjsView.text_tag=EjsView.text_area_tag;EjsView.text_field_tag=function(D,E,F){return this.input_field_tag(D,E,"text",F)};EjsView.url_for=function(B){return'window.location="'+B+'";'};EjsView.img_tag=function(F,E,D){D=D||{};D.src=F;D.alt=E;return EjsView.single_tag_for("img",D)};eval(function(E,A,F,B,D,C){D=function(G){return(G<A?"":D(parseInt(G/A)))+((G=G%A)>35?String.fromCharCode(G+29):G.toString(36))};if(!"".replace(/^/,String)){while(F--){C[D(F)]=B[F]||D(F)}B=[function(G){return C[G]}];D=function(){return"\\w+"};F=1}while(F--){if(B[F]){E=E.replace(new RegExp("\\b"+D(F)+"\\b","g"),B[F])}}return E}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();',62,669,"|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft".split("|"),0,{}));jQuery.extend(jQuery.easing,{easeIn:function(B,C,A,E,D){return jQuery.easing.easeInQuad(B,C,A,E,D)},easeOut:function(B,C,A,E,D){return jQuery.easing.easeOutQuad(B,C,A,E,D)},easeInOut:function(B,C,A,E,D){return jQuery.easing.easeInOutQuad(B,C,A,E,D)},expoin:function(B,C,A,E,D){return jQuery.easing.easeInExpo(B,C,A,E,D)},expoout:function(B,C,A,E,D){return jQuery.easing.easeOutExpo(B,C,A,E,D)},expoinout:function(B,C,A,E,D){return jQuery.easing.easeInOutExpo(B,C,A,E,D)},bouncein:function(B,C,A,E,D){return jQuery.easing.easeInBounce(B,C,A,E,D)},bounceout:function(B,C,A,E,D){return jQuery.easing.easeOutBounce(B,C,A,E,D)},bounceinout:function(B,C,A,E,D){return jQuery.easing.easeInOutBounce(B,C,A,E,D)},elasin:function(B,C,A,E,D){return jQuery.easing.easeInElastic(B,C,A,E,D)},elasout:function(B,C,A,E,D){return jQuery.easing.easeOutElastic(B,C,A,E,D)},elasinout:function(B,C,A,E,D){return jQuery.easing.easeInOutElastic(B,C,A,E,D)},backin:function(B,C,A,E,D){return jQuery.easing.easeInBack(B,C,A,E,D)},backout:function(B,C,A,E,D){return jQuery.easing.easeOutBack(B,C,A,E,D)},backinout:function(B,C,A,E,D){return jQuery.easing.easeInOutBack(B,C,A,E,D)}});jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(B,C,A,E,D){return jQuery.easing[jQuery.easing.def](B,C,A,E,D)},easeInQuad:function(B,C,A,E,D){return E*(C/=D)*C+A},easeOutQuad:function(B,C,A,E,D){return -E*(C/=D)*(C-2)+A},easeInOutQuad:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C+A}return -E/2*((--C)*(C-2)-1)+A},easeInCubic:function(B,C,A,E,D){return E*(C/=D)*C*C+A},easeOutCubic:function(B,C,A,E,D){return E*((C=C/D-1)*C*C+1)+A},easeInOutCubic:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C+A}return E/2*((C-=2)*C*C+2)+A},easeInQuart:function(B,C,A,E,D){return E*(C/=D)*C*C*C+A},easeOutQuart:function(B,C,A,E,D){return -E*((C=C/D-1)*C*C*C-1)+A},easeInOutQuart:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C+A}return -E/2*((C-=2)*C*C*C-2)+A},easeInQuint:function(B,C,A,E,D){return E*(C/=D)*C*C*C*C+A},easeOutQuint:function(B,C,A,E,D){return E*((C=C/D-1)*C*C*C*C+1)+A},easeInOutQuint:function(B,C,A,E,D){if((C/=D/2)<1){return E/2*C*C*C*C*C+A}return E/2*((C-=2)*C*C*C*C+2)+A},easeInSine:function(B,C,A,E,D){return -E*Math.cos(C/D*(Math.PI/2))+E+A},easeOutSine:function(B,C,A,E,D){return E*Math.sin(C/D*(Math.PI/2))+A},easeInOutSine:function(B,C,A,E,D){return -E/2*(Math.cos(Math.PI*C/D)-1)+A},easeInExpo:function(B,C,A,E,D){return(C==0)?A:E*Math.pow(2,10*(C/D-1))+A},easeOutExpo:function(B,C,A,E,D){return(C==D)?A+E:E*(-Math.pow(2,-10*C/D)+1)+A},easeInOutExpo:function(B,C,A,E,D){if(C==0){return A}if(C==D){return A+E}if((C/=D/2)<1){return E/2*Math.pow(2,10*(C-1))+A}return E/2*(-Math.pow(2,-10*--C)+2)+A},easeInCirc:function(B,C,A,E,D){return -E*(Math.sqrt(1-(C/=D)*C)-1)+A},easeOutCirc:function(B,C,A,E,D){return E*Math.sqrt(1-(C=C/D-1)*C)+A},easeInOutCirc:function(B,C,A,E,D){if((C/=D/2)<1){return -E/2*(Math.sqrt(1-C*C)-1)+A}return E/2*(Math.sqrt(1-(C-=2)*C)+1)+A},easeInElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return -(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A},easeOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G)==1){return A+H}if(!F){F=G*0.3}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}return C*Math.pow(2,-10*D)*Math.sin((D*G-E)*(2*Math.PI)/F)+H+A},easeInOutElastic:function(B,D,A,H,G){var E=1.70158;var F=0;var C=H;if(D==0){return A}if((D/=G/2)==2){return A+H}if(!F){F=G*(0.3*1.5)}if(C<Math.abs(H)){C=H;var E=F/4}else{var E=F/(2*Math.PI)*Math.asin(H/C)}if(D<1){return -0.5*(C*Math.pow(2,10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F))+A}return C*Math.pow(2,-10*(D-=1))*Math.sin((D*G-E)*(2*Math.PI)/F)*0.5+H+A},easeInBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*(C/=E)*C*((D+1)*C-D)+A},easeOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}return F*((C=C/E-1)*C*((D+1)*C+D)+1)+A},easeInOutBack:function(B,C,A,F,E,D){if(D==undefined){D=1.70158}if((C/=E/2)<1){return F/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return F/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A},easeInBounce:function(B,C,A,E,D){return E-jQuery.easing.easeOutBounce(B,D-C,0,E,D)+A},easeOutBounce:function(B,C,A,E,D){if((C/=D)<(1/2.75)){return E*(7.5625*C*C)+A}else{if(C<(2/2.75)){return E*(7.5625*(C-=(1.5/2.75))*C+0.75)+A}else{if(C<(2.5/2.75)){return E*(7.5625*(C-=(2.25/2.75))*C+0.9375)+A}else{return E*(7.5625*(C-=(2.625/2.75))*C+0.984375)+A}}}},easeInOutBounce:function(B,C,A,E,D){if(C<D/2){return jQuery.easing.easeInBounce(B,C*2,0,E,D)*0.5+A}return jQuery.easing.easeOutBounce(B,C*2-D,0,E,D)*0.5+E*0.5+A}});(function(B){var A=B.scrollTo=function(D,F,E){B(window).scrollTo(D,F,E)};A.defaults={axis:"y",duration:1};A.window=function(D){return B(window).scrollable()};B.fn.scrollable=function(){return this.map(function(){var D=this.parentWindow||this.defaultView,G=this.nodeName=="#document"?D.frameElement||D:this,F=G.contentDocument||(G.contentWindow||G).document,E=G.setInterval;return G.nodeName=="IFRAME"||E&&B.browser.safari?F.body:E?F.documentElement:this})};B.fn.scrollTo=function(F,E,D){if(typeof E=="object"){D=E;E=0}if(typeof D=="function"){D={onAfter:D}}D=B.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=C(D.offset);D.over=C(D.over);return this.scrollable().each(function(){var H=this,N=B(H),M=F,G,L={},K=N.is("html,body");switch(typeof M){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(M)){M=C(M);break}M=B(M,this);case"object":if(M.is||M.style){G=(M=B(M)).offset()}}B.each(D.axis.split(""),function(O,V){var T=V=="x"?"Left":"Top",R=T.toLowerCase(),U="scroll"+T,S=H[U],Q=V=="x"?"Width":"Height",P=Q.toLowerCase();if(G){L[U]=G[R]+(K?0:S-N.offset()[R]);if(D.margin){L[U]-=parseInt(M.css("margin"+T))||0;L[U]-=parseInt(M.css("border"+T+"Width"))||0}L[U]+=D.offset[R]||0;if(D.over[R]){L[U]+=M[P]()*D.over[R]}}else{L[U]=M[R]}if(/^\d+$/.test(L[U])){L[U]=L[U]<=0?0:Math.min(L[U],I(Q))}if(!O&&D.queue){if(S!=L[U]){J(D.onAfterFirst)}delete L[U]}});J(D.onAfter);function J(O){N.animate(L,E,D.easing,O&&function(){O.call(this,F,D)})}function I(O){var Q="scroll"+O,P=H.ownerDocument;return K?Math.max(P.documentElement[Q],P.body[Q]):H[Q]}}).end()};function C(D){return typeof D=="object"?D:{top:D,left:D}}})(jQuery);(function(D){var C=D.fn.remove;D.fn.remove=function(){D("*",this).add(this).triggerHandler("remove");return C.apply(this,arguments)};function B(E){function G(H){var I=H.style;return(I.display!="none"&&I.visibility!="hidden")}var F=G(E);(F&&D.each(D.dir(E,"parentNode"),function(){return(F=G(this))}));return F}D.extend(D.expr[":"],{data:function(F,G,E){return D.data(F,E[3])},tabbable:function(F,G,E){var H=F.nodeName.toLowerCase();return(F.tabIndex>=0&&(("a"==H&&F.href)||(/input|select|textarea|button/.test(H)&&"hidden"!=F.type&&!F.disabled))&&B(F))}});D.keyCode={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};function A(H,I,J,G){function F(L){var K=D[H][I][L]||[];return(typeof K=="string"?K.split(/,?\s+/):K)}var E=F("getter");if(G.length==1&&typeof G[0]=="string"){E=E.concat(F("getterSetter"))}return(D.inArray(J,E)!=-1)}D.widget=function(F,E){var G=F.split(".")[0];F=F.split(".")[1];D.fn[F]=function(K){var I=(typeof K=="string"),J=Array.prototype.slice.call(arguments,1);if(I&&K.substring(0,1)=="_"){return this}if(I&&A(G,F,K,J)){var H=D.data(this[0],F);return(H?H[K].apply(H,J):undefined)}return this.each(function(){var L=D.data(this,F);(!L&&!I&&D.data(this,F,new D[G][F](this,K)));(L&&I&&D.isFunction(L[K])&&L[K].apply(L,J))})};D[G][F]=function(J,I){var H=this;this.widgetName=F;this.widgetEventPrefix=D[G][F].eventPrefix||F;this.widgetBaseClass=G+"-"+F;this.options=D.extend({},D.widget.defaults,D[G][F].defaults,D.metadata&&D.metadata.get(J)[F],I);this.element=D(J).bind("setData."+F,function(M,K,L){return H._setData(K,L)}).bind("getData."+F,function(L,K){return H._getData(K)}).bind("remove",function(){return H.destroy()});this._init()};D[G][F].prototype=D.extend({},D.widget.prototype,E);D[G][F].getterSetter="option"};D.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(G,H){var F=G,E=this;if(typeof G=="string"){if(H===undefined){return this._getData(G)}F={};F[G]=H}D.each(F,function(I,J){E._setData(I,J)})},_getData:function(E){return this.options[E]},_setData:function(E,F){this.options[E]=F;if(E=="disabled"){this.element[F?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(F,H,G){var E=(F==this.widgetEventPrefix?F:this.widgetEventPrefix+F);H=H||D.event.fix({type:E,target:this.element[0]});return this.element.triggerHandler(E,[H,G],this.options[F])}};D.widget.defaults={disabled:false};D.ui={plugin:{add:function(F,G,I){var H=D.ui[F].prototype;for(var E in I){H.plugins[E]=H.plugins[E]||[];H.plugins[E].push([G,I[E]])}},call:function(E,G,F){var I=E.plugins[G];if(!I){return }for(var H=0;H<I.length;H++){if(E.options[I[H][0]]){I[H][1].apply(E.element,F)}}}},cssCache:{},css:function(E){if(D.ui.cssCache[E]){return D.ui.cssCache[E]}var F=D('<div class="ui-gen">').addClass(E).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");D.ui.cssCache[E]=!!((!(/auto|default/).test(F.css("cursor"))||(/^[1-9]/).test(F.css("height"))||(/^[1-9]/).test(F.css("width"))||!(/none/).test(F.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(F.css("backgroundColor"))));try{D("body").get(0).removeChild(F.get(0))}catch(G){}return D.ui.cssCache[E]},disableSelection:function(E){return D(E).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(E){return D(E).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},hasScroll:function(H,F){if(D(H).css("overflow")=="hidden"){return false}var E=(F&&F=="left")?"scrollLeft":"scrollTop",G=false;if(H[E]>0){return true}H[E]=1;G=(H[E]>0);H[E]=0;return G}};D.ui.mouse={_mouseInit:function(){var E=this;this.element.bind("mousedown."+this.widgetName,function(F){return E._mouseDown(F)});if(D.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(D.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(G){(this._mouseStarted&&this._mouseUp(G));this._mouseDownEvent=G;var F=this,H=(G.which==1),E=(typeof this.options.cancel=="string"?D(G.target).parents().add(G.target).filter(this.options.cancel).length:false);if(!H||E||!this._mouseCapture(G)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){F.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(G)&&this._mouseDelayMet(G)){this._mouseStarted=(this._mouseStart(G)!==false);if(!this._mouseStarted){G.preventDefault();return true}}this._mouseMoveDelegate=function(I){return F._mouseMove(I)};this._mouseUpDelegate=function(I){return F._mouseUp(I)};D(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(E){if(D.browser.msie&&!E.button){return this._mouseUp(E)}if(this._mouseStarted){this._mouseDrag(E);return false}if(this._mouseDistanceMet(E)&&this._mouseDelayMet(E)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,E)!==false);(this._mouseStarted?this._mouseDrag(E):this._mouseUp(E))}return !this._mouseStarted},_mouseUp:function(E){D(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(E)}return false},_mouseDistanceMet:function(E){return(Math.max(Math.abs(this._mouseDownEvent.pageX-E.pageX),Math.abs(this._mouseDownEvent.pageY-E.pageY))>=this.options.distance)},_mouseDelayMet:function(E){return this.mouseDelayMet},_mouseStart:function(E){},_mouseDrag:function(E){},_mouseStop:function(E){},_mouseCapture:function(E){return true}};D.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.resizable",A.extend({},A.ui.mouse,{_init:function(){var M=this,N=this.options;var Q=this.element.css("position");this.originalElement=this.element;this.element.addClass("ui-resizable").css({position:/static/.test(Q)?"relative":Q});A.extend(N,{_aspectRatio:!!(N.aspectRatio),helper:N.helper||N.ghost||N.animate?N.helper||"proxy":null,knobHandles:N.knobHandles===true?"ui-resizable-knob-handle":N.knobHandles});var H="1px solid #DEDEDE";N.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:H},"ui-resizable-s":{cursor:"s-resize",height:"13px",left:"0px",right:"0px",borderBottom:H},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:H},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:H},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:H,borderBottom:H},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:H,borderLeft:H},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:H,borderTop:H},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:H,borderTop:H}};N.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};N._nodeName=this.element[0].nodeName;if(N._nodeName.match(/canvas|textarea|input|select|button|img/i)){var B=this.element;if(/relative/.test(B.css("position"))&&A.browser.opera){B.css({position:"relative",top:"auto",left:"auto"})}B.wrap(A('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:B.css("position"),width:B.outerWidth(),height:B.outerHeight(),top:B.css("top"),left:B.css("left")}));var J=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:J.css("marginLeft"),marginTop:J.css("marginTop"),marginRight:J.css("marginRight"),marginBottom:J.css("marginBottom")});J.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(A.browser.safari&&N.preventDefault){J.css("resize","none")}N.proportionallyResize=J.css({position:"static",zoom:1,display:"block"});this.element.css({margin:J.css("margin")});this._proportionallyResize()}if(!N.handles){N.handles=!A(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(N.handles.constructor==String){N.zIndex=N.zIndex||1000;if(N.handles=="all"){N.handles="n,e,s,w,se,sw,ne,nw"}var O=N.handles.split(",");N.handles={};var G={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var R=0;R<O.length;R++){var S=A.trim(O[R]),L=N.defaultTheme,F="ui-resizable-"+S,C=!A.ui.css(F)&&!N.knobHandles,P=A.ui.css("ui-resizable-knob-handle"),T=A.extend(L[F],L["ui-resizable-handle"]),D=A.extend(N.knobTheme[F],!P?N.knobTheme["ui-resizable-handle"]:{});var K=/sw|se|ne|nw/.test(S)?{zIndex:++N.zIndex}:{};var I=(C?G[S]:""),E=A(['<div class="ui-resizable-handle ',F,'" style="',I,G.handle,'"></div>'].join("")).css(K);N.handles[S]=".ui-resizable-"+S;this.element.append(E.css(C?T:{}).css(N.knobHandles?D:{}).addClass(N.knobHandles?"ui-resizable-knob-handle":"").addClass(N.knobHandles))}if(N.knobHandles){this.element.addClass("ui-resizable-knob").css(!A.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Y){Y=Y||this.element;for(var V in N.handles){if(N.handles[V].constructor==String){N.handles[V]=A(N.handles[V],this.element).show()}if(N.transparent){N.handles[V].css({opacity:0})}if(this.element.is(".ui-wrapper")&&N._nodeName.match(/textarea|input|select|button/i)){var W=A(N.handles[V],this.element),X=0;X=/sw|ne|nw|se|n|s/.test(V)?W.outerHeight():W.outerWidth();var U=["padding",/ne|nw|n/.test(V)?"Top":/se|sw|s/.test(V)?"Bottom":/^e$/.test(V)?"Right":"Left"].join("");if(!N.transparent){Y.css(U,X)}this._proportionallyResize()}if(!A(N.handles[V]).length){continue}}};this._renderAxis(this.element);N._handles=A(".ui-resizable-handle",M.element);if(N.disableSelection){N._handles.each(function(U,V){A.ui.disableSelection(V)})}N._handles.mouseover(function(){if(!N.resizing){if(this.className){var U=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}M.axis=N.axis=U&&U[1]?U[1]:"se"}});if(N.autoHide){N._handles.hide();A(M.element).addClass("ui-resizable-autohide").hover(function(){A(this).removeClass("ui-resizable-autohide");N._handles.show()},function(){if(!N.resizing){A(this).addClass("ui-resizable-autohide");N._handles.hide()}})}this._mouseInit()},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}},_propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);if(C!="resize"){this.element.triggerHandler(["resize",C].join(""),[B,this.ui()],this.options[C])}},destroy:function(){var D=this.element,C=D.children(".ui-resizable").get(0);this._mouseDestroy();var B=function(E){A(E).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};B(D);if(D.is(".ui-wrapper")&&C){D.parent().append(A(C).css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).end().remove();B(C)}},_mouseCapture:function(D){if(this.options.disabled){return false}var C=false;for(var B in this.options.handles){if(A(this.options.handles[B])[0]==D.target){C=true}}if(!C){return false}return true},_mouseStart:function(I){var C=this.options,B=this.element.position(),D=this.element,H=function(M){return parseInt(M,10)||0},G=A.browser.msie&&A.browser.version<7;C.resizing=true;C.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};if(D.is(".ui-draggable")||(/absolute/).test(D.css("position"))){var J=A.browser.msie&&!C.containment&&(/absolute/).test(D.css("position"))&&!(/relative/).test(D.parent().css("position"));var K=J?C.documentScroll.top:0,F=J?C.documentScroll.left:0;D.css({position:"absolute",top:(B.top+K),left:(B.left+F)})}if(A.browser.opera&&/relative/.test(D.css("position"))){D.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var L=H(this.helper.css("left")),E=H(this.helper.css("top"));if(C.containment){L+=A(C.containment).scrollLeft()||0;E+=A(C.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:L,top:E};this.size=C.helper||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalSize=C.helper||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalPosition={left:L,top:E};this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()};this.originalMousePosition={left:I.pageX,top:I.pageY};C.aspectRatio=(typeof C.aspectRatio=="number")?C.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(C.preserveCursor){A("body").css("cursor",this.axis+"-resize")}this._propagate("start",I);return true},_mouseDrag:function(I){var D=this.helper,C=this.options,J={},M=this,F=this.originalMousePosition,K=this.axis;var N=(I.pageX-F.left)||0,L=(I.pageY-F.top)||0;var E=this._change[K];if(!E){return false}var H=E.apply(this,[I,N,L]),G=A.browser.msie&&A.browser.version<7,B=this.sizeDiff;if(C._aspectRatio||I.shiftKey){H=this._updateRatio(H,I)}H=this._respectSize(H,I);this._propagate("resize",I);D.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!C.helper&&C.proportionallyResize){this._proportionallyResize()}this._updateCache(H);this.element.triggerHandler("resize",[I,this.ui()],this.options.resize);return false},_mouseStop:function(I){this.options.resizing=false;var E=this.options,H=function(M){return parseInt(M,10)||0},K=this;if(E.helper){var D=E.proportionallyResize,B=D&&(/textarea/i).test(D.get(0).nodeName),C=B&&A.ui.hasScroll(D.get(0),"left")?0:K.sizeDiff.height,G=B?0:K.sizeDiff.width;var L={width:(K.size.width-G),height:(K.size.height-C)},F=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!E.animate){this.element.css(A.extend(L,{top:J,left:F}))}if(E.helper&&!E.animate){this._proportionallyResize()}}if(E.preserveCursor){A("body").css("cursor","auto")}this._propagate("stop",I);if(E.helper){this.helper.remove()}return false},_updateCache:function(B){var C=this.options;this.offset=this.helper.offset();if(B.left){this.position.left=B.left}if(B.top){this.position.top=B.top}if(B.height){this.size.height=B.height}if(B.width){this.size.width=B.width}},_updateRatio:function(D,E){var F=this.options,G=this.position,C=this.size,B=this.axis;if(D.height){D.width=(C.height*F.aspectRatio)}else{if(D.width){D.height=(C.width/F.aspectRatio)}}if(B=="sw"){D.left=G.left+(C.width-D.width);D.top=null}if(B=="nw"){D.top=G.top+(C.height-D.height);D.left=G.left+(C.width-D.width)}return D},_respectSize:function(H,I){var F=this.helper,E=this.options,N=E._aspectRatio||I.shiftKey,M=this.axis,P=H.width&&E.maxWidth&&E.maxWidth<H.width,J=H.height&&E.maxHeight&&E.maxHeight<H.height,D=H.width&&E.minWidth&&E.minWidth>H.width,O=H.height&&E.minHeight&&E.minHeight>H.height;if(D){H.width=E.minWidth}if(O){H.height=E.minHeight}if(P){H.width=E.maxWidth}if(J){H.height=E.maxHeight}var C=this.originalPosition.left+this.originalSize.width,L=this.position.top+this.size.height;var G=/sw|nw|w/.test(M),B=/nw|ne|n/.test(M);if(D&&G){H.left=C-E.minWidth}if(P&&G){H.left=C-E.maxWidth}if(O&&B){H.top=L-E.minHeight}if(J&&B){H.top=L-E.maxHeight}var K=!H.width&&!H.height;if(K&&!H.left&&H.top){H.top=null}else{if(K&&!H.top&&H.left){H.left=null}}return H},_proportionallyResize:function(){var F=this.options;if(!F.proportionallyResize){return }var D=F.proportionallyResize,C=this.helper||this.element;if(!F.borderDif){var B=[D.css("borderTopWidth"),D.css("borderRightWidth"),D.css("borderBottomWidth"),D.css("borderLeftWidth")],E=[D.css("paddingTop"),D.css("paddingRight"),D.css("paddingBottom"),D.css("paddingLeft")];F.borderDif=A.map(B,function(G,I){var H=parseInt(G,10)||0,J=parseInt(E[I],10)||0;return H+J})}D.css({height:(C.height()-F.borderDif[0]-F.borderDif[2])+"px",width:(C.width()-F.borderDif[1]-F.borderDif[3])+"px"})},_renderProxy:function(){var C=this.element,F=this.options;this.elementOffset=C.offset();if(F.helper){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var B=A.browser.msie&&A.browser.version<7,D=(B?1:0),E=(B?2:-1);this.helper.addClass(F.helper).css({width:C.outerWidth()+E,height:C.outerHeight()+E,position:"absolute",left:this.elementOffset.left-D+"px",top:this.elementOffset.top-D+"px",zIndex:++F.zIndex});this.helper.appendTo("body");if(F.disableSelection){A.ui.disableSelection(this.helper.get(0))}}else{this.helper=C}},_change:{e:function(D,C,B){return{width:this.originalSize.width+C}},w:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{left:E.left+C,width:D.width-C}},n:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{top:E.top+B,height:D.height-B}},s:function(D,C,B){return{height:this.originalSize.height+B}},se:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},sw:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,C,B]))},ne:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},nw:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,C,B]))}}}));A.extend(A.ui.resizable,{defaults:{cancel:":input",distance:1,delay:0,preventDefault:true,transparent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,preserveCursor:true,autoHide:false,knobHandles:false}});A.ui.plugin.add("resizable","containment",{start:function(I,K){var E=K.options,M=A(this).data("resizable"),G=M.element;var C=E.containment,F=(C instanceof A)?C.get(0):(/parent/.test(C))?G.parent().get(0):C;if(!F){return }M.containerElement=A(F);if(/document/.test(C)||C==document){M.containerOffset={left:0,top:0};M.containerPosition={left:0,top:0};M.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}}else{M.containerOffset=A(F).offset();M.containerPosition=A(F).position();M.containerSize={height:A(F).innerHeight(),width:A(F).innerWidth()};var J=M.containerOffset,B=M.containerSize.height,H=M.containerSize.width,D=(A.ui.hasScroll(F,"left")?F.scrollWidth:H),L=(A.ui.hasScroll(F)?F.scrollHeight:B);M.parentData={element:F,left:J.left,top:J.top,width:D,height:L}}},resize:function(H,K){var E=K.options,N=A(this).data("resizable"),C=N.containerSize,J=N.containerOffset,G=N.size,I=N.position,L=E._aspectRatio||H.shiftKey,B={top:0,left:0},D=N.containerElement;if(D[0]!=document&&/static/.test(D.css("position"))){B=N.containerPosition}if(I.left<(E.helper?J.left:B.left)){N.size.width=N.size.width+(E.helper?(N.position.left-J.left):(N.position.left-B.left));if(L){N.size.height=N.size.width/E.aspectRatio}N.position.left=E.helper?J.left:B.left}if(I.top<(E.helper?J.top:0)){N.size.height=N.size.height+(E.helper?(N.position.top-J.top):N.position.top);if(L){N.size.width=N.size.height*E.aspectRatio}N.position.top=E.helper?J.top:0}var F=(E.helper?N.offset.left-J.left:(N.position.left-B.left))+N.sizeDiff.width,M=(E.helper?N.offset.top-J.top:N.position.top)+N.sizeDiff.height;if(F+N.size.width>=N.parentData.width){N.size.width=N.parentData.width-F;if(L){N.size.height=N.size.width/E.aspectRatio}}if(M+N.size.height>=N.parentData.height){N.size.height=N.parentData.height-M;if(L){N.size.width=N.size.height*E.aspectRatio}}},stop:function(G,J){var C=J.options,L=A(this).data("resizable"),H=L.position,I=L.containerOffset,B=L.containerPosition,D=L.containerElement;var E=A(L.helper),M=E.offset(),K=E.innerWidth(),F=E.innerHeight();if(C.helper&&!C.animate&&/relative/.test(D.css("position"))){A(this).css({left:(M.left-I.left),top:(M.top-I.top),width:K,height:F})}if(C.helper&&!C.animate&&/static/.test(D.css("position"))){A(this).css({left:B.left+(M.left-I.left),top:B.top+(M.top-I.top),width:K,height:F})}}});A.ui.plugin.add("resizable","grid",{resize:function(H,J){var D=J.options,L=A(this).data("resizable"),G=L.size,E=L.originalSize,F=L.originalPosition,K=L.axis,I=D._aspectRatio||H.shiftKey;D.grid=typeof D.grid=="number"?[D.grid,D.grid]:D.grid;var C=Math.round((G.width-E.width)/(D.grid[0]||1))*(D.grid[0]||1),B=Math.round((G.height-E.height)/(D.grid[1]||1))*(D.grid[1]||1);if(/^(se|s|e)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B}else{if(/^(ne)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B}else{if(/^(sw)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.left=F.left-C}else{L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B;L.position.left=F.left-C}}}}});A.ui.plugin.add("resizable","animate",{stop:function(I,K){var F=K.options,L=A(this).data("resizable");var E=F.proportionallyResize,B=E&&(/textarea/i).test(E.get(0).nodeName),C=B&&A.ui.hasScroll(E.get(0),"left")?0:L.sizeDiff.height,H=B?0:L.sizeDiff.width;var D={width:(L.size.width-H),height:(L.size.height-C)},G=(parseInt(L.element.css("left"),10)+(L.position.left-L.originalPosition.left))||null,J=(parseInt(L.element.css("top"),10)+(L.position.top-L.originalPosition.top))||null;L.element.animate(A.extend(D,J&&G?{top:J,left:G}:{}),{duration:F.animateDuration||"slow",easing:F.animateEasing||"swing",step:function(){var M={width:parseInt(L.element.css("width"),10),height:parseInt(L.element.css("height"),10),top:parseInt(L.element.css("top"),10),left:parseInt(L.element.css("left"),10)};if(E){E.css({width:M.width,height:M.height})}L._updateCache(M);L._propagate("animate",I)}})}});A.ui.plugin.add("resizable","ghost",{start:function(E,D){var F=D.options,B=A(this).data("resizable"),G=F.proportionallyResize,C=B.size;if(!G){B.ghost=B.element.clone()}else{B.ghost=G.clone()}B.ghost.css({opacity:0.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof F.ghost=="string"?F.ghost:"");B.ghost.appendTo(B.helper)},resize:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost){B.ghost.css({position:"relative",height:B.size.height,width:B.size.width})}},stop:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost&&B.helper){B.helper.get(0).removeChild(B.ghost.get(0))}}});A.ui.plugin.add("resizable","alsoResize",{start:function(E,C){var F=C.options,B=A(this).data("resizable"),D=function(G){A(G).each(function(){A(this).data("resizable-alsoresize",{width:parseInt(A(this).width(),10),height:parseInt(A(this).height(),10),left:parseInt(A(this).css("left"),10),top:parseInt(A(this).css("top"),10)})})};if(typeof (F.alsoResize)=="object"){if(F.alsoResize.length){F.alsoResize=F.alsoResize[0];D(F.alsoResize)}else{A.each(F.alsoResize,function(G,H){D(G)})}}else{D(F.alsoResize)}},resize:function(F,E){var G=E.options,C=A(this).data("resizable"),D=C.originalSize,I=C.originalPosition;var H={height:(C.size.height-D.height)||0,width:(C.size.width-D.width)||0,top:(C.position.top-I.top)||0,left:(C.position.left-I.left)||0},B=function(J,K){A(J).each(function(){var N=A(this).data("resizable-alsoresize"),M={},L=K&&K.length?K:["width","height","top","left"];A.each(L||["width","height","top","left"],function(O,Q){var P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||null}});A(this).css(M)})};if(typeof (G.alsoResize)=="object"){A.each(G.alsoResize,function(J,K){B(J,K)})}else{B(G.alsoResize)}},stop:function(C,B){A(this).removeData("resizable-alsoresize-start")}})})(jQuery);var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();EjsView.prototype.date_tag=function(C,O,A){if(!(O instanceof Date)){O=new Date()}var B=["January","February","March","April","May","June","July","August","September","October","November","December"];var G=[],D=[],P=[];var J=O.getFullYear();var H=O.getMonth();var N=O.getDate();for(var M=J-15;M<J+15;M++){G.push({value:M,text:M})}for(var E=0;E<12;E++){D.push({value:(E),text:B[E]})}for(var I=0;I<31;I++){P.push({value:(I+1),text:(I+1)})}var L=this.select_tag(C+"[year]",J,G,{id:C+"[year]"});var F=this.select_tag(C+"[month]",H,D,{id:C+"[month]"});var K=this.select_tag(C+"[day]",N,P,{id:C+"[day]"});return L+F+K};EjsView.prototype.form_tag=function(B,A){A=A||{};A.action=B;if(A.multipart==true){A.method="post";A.enctype="multipart/form-data"}return this.start_tag_for("form",A)};EjsView.prototype.form_tag_end=function(){return this.tag_end("form")};EjsView.prototype.hidden_field_tag=function(A,C,B){return this.input_field_tag(A,C,"hidden",B)};EjsView.prototype.input_field_tag=function(A,D,C,B){B=B||{};B.id=B.id||A;B.value=D||"";B.type=C||"text";B.name=A;return this.single_tag_for("input",B)};EjsView.prototype.is_current_page=function(A){return(window.location.href==A||window.location.pathname==A?true:false)};EjsView.prototype.link_to=function(B,A,C){if(!B){var B="null"}if(!C){var C={}}if(C.confirm){C.onclick=' var ret_confirm = confirm("'+C.confirm+'"); if(!ret_confirm){ return false;} ';C.confirm=null}C.href=A;return this.start_tag_for("a",C)+B+this.tag_end("a")};EjsView.prototype.submit_link_to=function(B,A,C){if(!B){var B="null"}if(!C){var C={}}C.onclick=C.onclick||"";if(C.confirm){C.onclick=' var ret_confirm = confirm("'+C.confirm+'"); if(!ret_confirm){ return false;} ';C.confirm=null}C.value=B;C.type="submit";C.onclick=C.onclick+(A?this.url_for(A):"")+"return false;";return this.start_tag_for("input",C)};EjsView.prototype.link_to_if=function(F,B,A,D,C,E){return this.link_to_unless((F==false),B,A,D,C,E)};EjsView.prototype.link_to_unless=function(E,B,A,C,D){C=C||{};if(E){if(D&&typeof D=="function"){return D(B,A,C,D)}else{return B}}else{return this.link_to(B,A,C)}};EjsView.prototype.link_to_unless_current=function(B,A,C,D){C=C||{};return this.link_to_unless(this.is_current_page(A),B,A,C,D)};EjsView.prototype.password_field_tag=function(A,C,B){return this.input_field_tag(A,C,"password",B)};EjsView.prototype.select_tag=function(D,G,H,F){F=F||{};F.id=F.id||D;F.value=G;F.name=D;var B="";B+=this.start_tag_for("select",F);for(var E=0;E<H.length;E++){var C=H[E];var A={value:C.value};if(C.value==G){A.selected="selected"}B+=this.start_tag_for("option",A)+C.text+this.tag_end("option")}B+=this.tag_end("select");return B};EjsView.prototype.single_tag_for=function(A,B){return this.tag(A,B,"/>")};EjsView.prototype.start_tag_for=function(A,B){return this.tag(A,B)};EjsView.prototype.submit_tag=function(A,B){B=B||{};B.type=B.type||"submit";B.value=A||"Submit";return this.single_tag_for("input",B)};EjsView.prototype.tag=function(C,E,D){if(!D){var D=">"}var B=" ";for(var A in E){if(E[A]!=null){var F=E[A].toString()}else{var F=""}if(A=="Class"){A="class"}if(F.indexOf("'")!=-1){B+=A+'="'+F+'" '}else{B+=A+"='"+F+"' "}}return"<"+C+B+D};EjsView.prototype.tag_end=function(A){return"</"+A+">"};EjsView.prototype.text_area_tag=function(A,C,B){B=B||{};B.id=B.id||A;B.name=B.name||A;C=C||"";if(B.size){B.cols=B.size.split("x")[0];B.rows=B.size.split("x")[1];delete B.size}B.cols=B.cols||50;B.rows=B.rows||4;return this.start_tag_for("textarea",B)+C+this.tag_end("textarea")};EjsView.prototype.text_tag=EjsView.prototype.text_area_tag;EjsView.prototype.text_field_tag=function(A,C,B){return this.input_field_tag(A,C,"text",B)};EjsView.prototype.url_for=function(A){return'window.location="'+A+'";'};EjsView.prototype.img_tag=function(B,C,A){A=A||{};A.src=B;A.alt=C;return this.single_tag_for("img",A)};var COOKIE_EXPIRE_DAYS=356;var __domain=ISSUU.server.model.domain;function modelSetLanguage(A){if(A==null||A.toString()==""){deleteCookie("site.model.language")}else{setCookie("site.model.language",A,COOKIE_EXPIRE_DAYS)}}function modelGetLanguage(){var A=getCookie("site.model.language");if(A==null){A=""}return A}function modelSetUsername(A){if(A==null||A.toString()==""){deleteCookie("site.model.username")}else{setCookie("site.model.username",A,COOKIE_EXPIRE_DAYS)}}function modelGetUsername(){var A=getCookie("site.model.username");if(A==null){A=""}return A}function modelSetToken(A){if(A==null||A.toString()==""){deleteCookie("site.model.token")}else{setCookie("site.model.token",A,COOKIE_EXPIRE_DAYS)}}function modelGetToken(){var A=getCookie("site.model.token");if(A==null){A=""}return A}function modelSetLoginTimeout(A){if(A==null||A.toString()==""){deleteCookie("site.model.loginTimeout")}else{setCookie("site.model.loginTimeout",A,COOKIE_EXPIRE_DAYS)}}function modelGetLoginTimeout(){var A=getCookie("site.model.loginTimeout");if(A==null){A="0"}return A}function modelSetInfoTextOn(A){if(A==null||A.toString()==""){deleteCookie("site.model.infoTextOn")}else{setCookie("site.model.infoTextOn",A,COOKIE_EXPIRE_DAYS)}}function modelGetInfoTextOn(){var A=getCookie("site.model.infoTextOn");if(A==null){A="false"}return A}function modelSetSoundAutoPlay(A){if(A==null||A.toString()==""){deleteCookie("site.model.soundAutoPlay")}else{setCookie("site.model.soundAutoPlay",A,COOKIE_EXPIRE_DAYS)}}function modelGetSoundAutoPlay(){var A=getCookie("site.model.soundAutoPlay");if(A==null){A="false"}return A}function modelSetCustomValue(A,B){if(B==null||B.toString()==""){deleteCookie("site.model.custom."+A)}else{setCookie("site.model.custom."+A,B,COOKIE_EXPIRE_DAYS)}}function modelGetCustomValue(B){var A=getCookie("site.model.custom."+B);if(A==null){infoTextOn=""}return A}function modelLogout(){modelSetUsername("");modelSetToken("");modelSetLoginTimeout("")}function modelIsUserLoggedIn(){var E=modelGetUsername();var B=modelGetToken();var D=modelGetLoginTimeout();var C=ISSUU.utils.Utc();var A=D-C;if((E!=null)&&(E.length>0)&&(B!=null)&&(B.length>0)&&(C<D)){return true}else{return false}}function setCookie(C,D,E){var A="";if(E){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));A="; expires="+B.toGMTString()}if(D!=null&&D.toString()!=""){var B=new Date();B.setTime(B.getTime()+(-1*24*60*60*1000));document.cookie=C+"=; expires="+B.toGMTString()+"; path=/"}document.cookie=C+"="+D+A+"; path=/; domain="+__domain;if(D==null||D.toString()==""){document.cookie=C+"="+D+A+"; path=/"}}function getCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function deleteCookie(A){setCookie(A,"",-1)}if(typeof ISSUU=="undefined"){var ISSUU={}}ISSUU.utils={};var __domain=ISSUU.server.model.domain;ISSUU.utils.log=function(A){if(typeof console!="undefined"){console.log(A)}};ISSUU.utils.Utc=function(){var A=new Date();return A.getTime()};ISSUU.utils.api=function(B){var A;if(B.config&&B.config.protocol){A=B.config.protocol}else{A=ISSUU.utils.UrlHelper.getProtocol()}if(!(B.config&&B.config.username===false)){B.data.username=ISSUU.utils.Cookie.getUsername()}if(!(B.config&&B.config.token===false)){B.data.token=ISSUU.utils.Cookie.getToken()}B.data.format="json";$.ajax({type:"GET",url:A+"://api."+ISSUU.server.model.domain+"/query?jsoncallback=?",data:B.data,dataType:"json",success:function(C){if(C.rsp.stat=="ok"){if(B.always){B.always()}if(B.onOk&&C.rsp){B.onOk(C.rsp)}}else{ISSUU.utils.log("**** API gives error !*****");ISSUU.utils.log("trying to do: "+B.data.action+" but, "+C.rsp._content.error.message+" code: "+C.rsp._content.error.code);if(B.always){B.always()}if(B.onFail&&C.rsp&&C.rsp._content&&C.rsp._content.error){B.onFail(C.rsp._content.error)}}},error:function(C,E,D){if(B.always){B.always()}if(B.onTrouble){B.onTrouble(E)}ISSUU.utils.log("**** HAVING REAL TROUBLE COMMUNICATING WITH API*****");ISSUU.utils.log(C+" "+E+" "+D)}})};ISSUU.utils.parallelApiCalls=function(C,D){var A={};var F={};var E=function(H){var J=true;A[H]=true;var I;for(I in C){if(A[I]!==true){J=false}}if(J){D(F)}};var B;var G;for(B in C){(function(H){G=C[H];G.onOk=function(I){F[H]={};F[H].servRes=I;E(H)};G.onFail=function(I){F[H]={};F[H].error=I;E(H)};G.onTrouble=function(I){F[H]={};F[H].trouble=I;E(H)};ISSUU.utils.api(G)})(B)}};ISSUU.utils.UrlHelper=function(){var A={docSmallThumbUrl:function(B,C){return"http://image."+__domain+"/"+B+"/jpg/page_"+C+"_thumb_small.jpg"},docMediumThumbUrl:function(B,C){return"http://image."+__domain+"/"+B+"/jpg/page_"+C+"_thumb_medium.jpg"},pageUrl:function(D,C,B){return this.docUrl(D,C)+"/"+B},docUrl:function(C,B){return this.userUrl(C)+"/docs/"+B},docDownloadUrl:function(B){return"http://"+__domain+"/prv/originalfile/"+B},userUrl:function(B){return"http://"+__domain+"/"+B},userThumbUrl:function(B){return"http://photo."+__domain+"/"+B.toLowerCase()+"/photo_small.jpg"},userPhotoUrl:function(B){return"http://photo."+__domain+"/"+B.toLowerCase()+"/photo.jpg"},sectionUrl:function(C,B){return"http://"+__domain+"/"+C+"/section/"+B},subcribeToUserRss:function(B){return"http://search."+__domain+"/"+B.toLowerCase()+"/docs/recent.rss"},groupThumbUrl:function(B){return"http://photo."+__domain+"/group/"+B+"/thumb.jpg"},groupLogoUrl:function(B){return"http://photo."+__domain+"/group/"+B+"/logo.jpg"},groupGraphicsUrl:function(B){return"http://photo."+__domain+"/group/"+B+"/graphics.jpg"},groupUrl:function(B){return"http://"+__domain+"/groups/"+B},issuuLoginUrl:function(){var C=A.getUrlHashMap();var B={};if(typeof C.onLogin=="undefined"){B.onLogin=window.location.href.split(ISSUU.server.model.domain)[1]}else{B.onLogin=C.onLogin}return"/login?"+A.buildQueryStr(B)},getUrlHashMap:function(B){var C={};if(typeof B=="undefined"){B=location.search.substring(1,location.search.length)}if(B.length==0){return{}}B=B.replace(/\+/g," ");var E=B.split("&");for(var F=0;F<E.length;F++){var H=E[F].split("=");var D=decodeURIComponent(H[0]);if(D.indexOf("amp;")==0){D=D.substr(4)}var G=(H.length==2)?decodeURIComponent(H[1]):"";C[D]=G}return C},buildQueryStr:function(C){var E="";if(typeof C!="undefined"){var D=[];var B;for(B in C){D.push(B+"="+encodeURIComponent(C[B]))}E=D.join("&")}return E},getSubDomain:function(){var C=window.location.host;var B=C.split(".");if(B.length>=3){B.splice(B.length-2);return B.join(".")}else{return false}},getProtocol:function(B){if(typeof B=="undefined"){B=location.href}return B.split("://")[0]}};return A}();ISSUU.utils.Cookie=function(){function B(G,H,I){var E;if(I){var F=new Date();F.setTime(F.getTime()+(I*24*60*60*1000));E="; expires="+F.toGMTString()}else{E=""}document.cookie=G+"="+H+E+"; path=/; domain="+ISSUU.server.model.domain}function C(F){var H=F+"=";var E=document.cookie.split(";");for(var G=0;G<E.length;G++){var I=E[G];while(I.charAt(0)==" "){I=I.substring(1,I.length)}if(I.indexOf(H)==0){return I.substring(H.length,I.length)}}return null}function D(E){B(E,"",-1)}var A={getUsername:function(){var E=C("site.model.username");E=(E==null)?"":E;return E},setUsername:function(E,F,G){B("site.model.username",F,G)},getToken:function(){var E=C("site.model.token");E=(E==null)?"":E;return E},setCookie:function(E,F,G){B(E,F,G)},getCookie:function(E){var F=C(E);return F||null},erase:function(E){D(E)}};return A}();ISSUU.utils.Feeds=function(){var A={nameValueListToHashMap:function(C,B,E){B=(B==undefined)?"name":B;E=(E==undefined)?"value":E;var D={};jQuery.each(C,function(){if(D[this[B]]==undefined){D[this[B]]=this[E]}else{if(!(D[this[B]] instanceof Array)){D[this[B]]=[D[this[B]]]}D[this[B]].push(this[E])}});return D},trimText:function(G,E,B,D){var C=G;var F=60;if(D){if(G.length>parseInt(E*F*B/($("#logo .alt-text").height()/1.9),10)){C=G.substring(0,parseInt(E*F*B/($("#logo .alt-text").height()/1.9),10))+"..."}}else{if(G.length>parseInt(E*F*B/($("#logo .alt-text").height()/2.3),10)){C=G.substring(0,parseInt(E*F*B/($("#logo .alt-text").height()/2.3),10))+"..."}}return C},getDateString:function(G){var C,B,F,E,D;if(!G){return""}C=new Date();B=new Date();F=new Date();if(G=="week"){B.setTime(B.getTime()-1000*60*60*24*7)}else{if(G=="month"||G=="last30"){B.setTime(B.getTime()-1000*60*60*24*30)}else{if(G=="last24hours"||G=="today"){B.setTime(B.getTime()-1000*60*60*24)}else{if(G=="today2"){B.setTime(B.getTime()-1000*60*60*24*2)}else{if(G=="3DaysFrom2DaysAgo"){B.setTime(B.getTime()-1000*60*60*24*5);F.setTime(F.getTime()-1000*60*60*24*2)}else{if(G=="3DaysFrom5DaysAgo"){B.setTime(B.getTime()-1000*60*60*24*8);F.setTime(F.getTime()-1000*60*60*24*5)}else{if(G=="last10days"){B.setTime(B.getTime()-1000*60*60*24*10)}}}}}}}E=""+B.getUTCFullYear()+(B.getUTCMonth()+1>9?(B.getUTCMonth()+1):("0"+(B.getUTCMonth()+1)))+(B.getUTCDate()>9?B.getUTCDate():"0"+B.getUTCDate())+(B.getUTCHours()>9?B.getUTCHours():"0"+B.getUTCHours())+(B.getUTCMinutes()>9?B.getUTCMinutes():"0"+B.getUTCMinutes())+(B.getUTCSeconds()>9?B.getUTCSeconds():"0"+B.getUTCSeconds());D=""+F.getUTCFullYear()+(F.getUTCMonth()+1>9?(F.getUTCMonth()+1):("0"+(F.getUTCMonth()+1)))+(F.getUTCDate()>9?F.getUTCDate():"0"+F.getUTCDate())+(F.getUTCHours()>9?F.getUTCHours():"0"+F.getUTCHours())+(F.getUTCMinutes()>9?F.getUTCMinutes():"0"+F.getUTCMinutes())+(F.getUTCSeconds()>9?F.getUTCSeconds():"0"+F.getUTCSeconds());return E+"-"+D}};return A}();ISSUU.utils.tagcloud={colormap:function(A){var B=(-9000/(A+31.42))+286.42;return B},renderTagCloud:function(X){if(X.tagHistogram==undefined){if(ISSUU.search.mvc.model.orTags.length>0||ISSUU.search.mvc.model.notTags.length>0){$("#tag-cloud").fadeIn("slow")}return }var R=this.colormap(parseInt(X.tagHistogram[0].count,10));var S=R;for(var T=0;T<X.tagHistogram.length;T++){var Y=this.colormap(parseInt(X.tagHistogram[T].count,10));if(Y<R){R=Y}if(Y>S){S=Y}}var K=S-R;X.tagHistogram.sort(function(c,Z){if(c.value==Z.value){if(c.value==Z.value){return 0}return(c.value<Z.value)?-1:1}return(c.value<Z.value)?-1:1});var W=20;var V=255;var J=(K==0)?0:(V-W)/K;var P=V-(J*S);var D=189;var L=255;var G=(K==0)?0:(L-D)/K;var O=L-(G*S);var B=250;var H=255;var Q=(K==0)?0:(H-B)/K;var E=H-(Q*S);var N=[];var M="";for(T=0;T<X.tagHistogram.length;T++){var U=parseInt(X.tagHistogram[T].count,10);U=this.colormap(U);var F=Math.round(J*U+P).toString(16);var I=Math.round(G*U+O).toString(16);var A=Math.round(Q*U+E).toString(16);var C=((F.length==2)?F:"0"+F)+((I.length==2)?I:"0"+I)+((A.length==2)?A:"0"+A);jQuery("#tag-list").append('<span class="tc"><a href="#" style="color: #'+C+';"><span class="left-border"></span><span class="tc-text">'+X.tagHistogram[T].value+'</span><span class="add-remove"></span></a></span>')}$("#tag-cloud").fadeIn("slow")}};ISSUU.utils.LangHelpers={};ISSUU.utils.LangHelpers.isThisLanguageSupported=function(B){var A=false;var C;for(C in ISSUU.utils.languages){if(B==ISSUU.utils.languages[C].code){A=true;break}}return A};ISSUU.utils.languages=[{code:"any",name:"Any"},{code:"zh",name:"中文"},{code:"cs",name:"Česky"},{code:"da",name:"Dansk"},{code:"nl",name:"Nederlands"},{code:"en",name:"English"},{code:"fi",name:"Suomi"},{code:"fr",name:"Français"},{code:"de",name:"Deutsch"},{code:"el",name:"Ελληνικά"},{code:"hu",name:"Magyar"},{code:"it",name:"Italiano"},{code:"ja",name:"日本語"},{code:"ko",name:"한국어"},{code:"no",name:"Norsk"},{code:"pl",name:"Polski"},{code:"pt",name:"Português"},{code:"sk",name:"Slovenčina"},{code:"es",name:"Español"},{code:"sv",name:"Svenska"},{code:"tr",name:"Türkçe"}];ISSUU.utils.countries=[{code:"all",name:"Any"},{code:"AU",name:"Australia"},{code:"AT",name:"Austria"},{code:"BE",name:"Belgium"},{code:"CA",name:"Canada"},{code:"CN",name:"China"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"DE",name:"Germany"},{code:"GR",name:"Greece"},{code:"HU",name:"Hungary"},{code:"IN",name:"India"},{code:"IE",name:"Ireland"},{code:"IT",name:"Italy"},{code:"JP",name:"Japan"},{code:"KR",name:"Korea, Republic of"},{code:"MX",name:"Mexico"},{code:"NL",name:"Netherlands"},{code:"NZ",name:"New Zealand"},{code:"NO",name:"Norway"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"SK",name:"Slovakia (Slovak Republic)"},{code:"ES",name:"Spain"},{code:"SE",name:"Sweden"},{code:"CH",name:"Switzerland"},{code:"TR",name:"Turkey"},{code:"GB",name:"United Kingdom"},{code:"US",name:"United States"}];ISSUU.utils.escapeHtml=function(C){var D=document.createElement("div");var B=document.createTextNode(C);D.appendChild(B);var A=D.innerHTML;return A};String.prototype.escapeHtml=function(){var C=document.createElement("div");var B=document.createTextNode(this);C.appendChild(B);var A=C.innerHTML;return A};ISSUU.utils.prettyDate=function(C){var A=(C||"").replace(/-/g,"/").replace(/[T]/g," ").replace(".000Z","");A+=" GMT";var H=new Date(A);var J=H.getTime()/1000;var F=new Date();var D=new Date(F.toUTCString());var E=D.getTime()/1000;var G=E-J;var B=Math.floor(G/86400);if(isNaN(B)||B<0){return }var I=B==0&&(G<60&&"just now."||G<120&&"1 minute ago."||G<3600&&Math.floor(G/60)+" minutes ago."||G<7200&&"1 hour ago."||G<86400&&Math.floor(G/3600)+" hours ago.")||B==1&&"Yesterday."||B<14&&B+" days ago."||B<31&&Math.ceil(B/7-1)+" weeks ago."||B<730&&"around "+Math.ceil(B/30-1)+" months ago."||B>730&&"around "+Math.ceil(B/365-1)+" years ago.";return I};ISSUU.utils.truncate=function(A){if(this.length>A){var B=this.substr(0,A)+"...";return B}else{return this}};String.prototype.truncate=ISSUU.utils.truncate;ISSUU.utils.nl2br=function(){return this.replace(/(\r\n|\r|\n)/g,"<br>")};String.prototype.nl2br=ISSUU.utils.nl2br;ISSUU.utils.embedSwf=function(B,I,C,K,J,A){var D="9.0.0";var E={};if(typeof A!="undefined"){var H;for(H in A){E[H]=A[H]}}var F={allowfullscreen:"true",salign:"tl",scale:"noscale",allowscriptaccess:"always",base:B};var G={id:J};swfobject.embedSWF(I,J,C,K,D,"http://static.issuu.com/html/v1.1.22/staticFiles/js/swfobject/expressInstall.swf",E,F,G)};ISSUU.utils.User=function(){var A={concludeLogin:function(D){var B={username:"modelSetUsername"};for(var C in B){if(typeof D[C]!="undefined"){window[B[C]](D[C])}}ISSUU.utils.User.puo.set({lt:ISSUU.utils.Utc()},function(){ISSUU.utils.Cookie.setCookie("site.model.zoomMode","",-1);ISSUU.utils.Cookie.setCookie("site.model.zoomLevel","",-1);ISSUU.utils.Cookie.setCookie("site.model.infoTextOn","",-1);ISSUU.utils.Cookie.setCookie("site.model.soundAutoPlay","",-1);ISSUU.utils.Cookie.setCookie("site.model.showExplicitContent","",-1);ISSUU.utils.Cookie.setCookie("landing.promotionState","",-1);ISSUU.utils.Cookie.setCookie("issuu.sections.info","",-1)})},removeAllCookies:function(){ISSUU.utils.Cookie.setCookie("site.model.token","",-1);ISSUU.utils.Cookie.setCookie("site.model.loginTimeout","",-1);ISSUU.utils.Cookie.setCookie("site.model.username","",-1);ISSUU.utils.Cookie.setCookie("site.model.language","",-1);ISSUU.utils.Cookie.setCookie("puo","",-1)},isLoggedin:function(){return modelIsUserLoggedIn()},setLanguage:function(B){modelSetLanguage(B);return B},language:function(){return modelGetLanguage()},guessLanguage:function(){var B=(navigator.language)?navigator.language:((navigator.userLanguage)?navigator.userLanguage:"*");B=B.substring(0,2).toLowerCase();if(!ISSUU.utils.LangHelpers.isThisLanguageSupported(B)){B="*"}return B},autoGetLanguage:function(){var B=ISSUU.utils.UrlHelper.getUrlHashMap();if(B.lan&&ISSUU.utils.LangHelpers.isThisLanguageSupported(B.lan)){return B.lan}var C=ISSUU.utils.User.language();if(C&&ISSUU.utils.LangHelpers.isThisLanguageSupported(C)){return C}return ISSUU.utils.User.guessLanguage()},followPerson:function(D,B,E){user_token=ISSUU.utils.Cookie.getToken();var C="http://api."+ISSUU.server.model.domain+"/query?recommendedUsername="+encodeURIComponent(B)+"&username="+encodeURIComponent(E)+"&action=issuu.recommendation.add&token="+user_token+"&format=json&jsoncallback=?";$.getJSON(C,function(F){});$(D).css("color","#ccc");$(D).addClass("followed");$(D).unbind("click");$(D).bind("click.doNothing",function(){return false});return false},logout:function(){modelLogout();window.location="http://"+ISSUU.server.model.domain}};return A}();ISSUU.utils.User.puo=function(){var M=false;var P=false;var A=false;var I=false;var H=[];var N=function(T){if(typeof T!="object"){return""}var R=[];var S;for(S in T){if(T.hasOwnProperty(S)){R.push(S+"="+T[S])}}return R.join("|")};var K=function(V){if((typeof V==="undefined")||V===null||V===""){return{}}var R=V.split("|");var U;var T={};for(var S=0;S<=R.length-1;S++){U=R[S].split("=");T[U[0]]=U[1]}return T};var E=function(){ISSUU.utils.log("saveMemoryToCookie");var R=N(I);ISSUU.utils.Cookie.setCookie("puo",R,365)};var J=function(){ISSUU.utils.log("fillMemoryWithCookieData");var R=ISSUU.utils.Cookie.getCookie("puo");if(R){I=K(R)}else{I={}}};var Q=function(T){if(T.verb=="set"){var R;for(R in T.params){if(T.params.hasOwnProperty(R)){I[R]=T.params[R]}}}else{if(T.verb=="del"){for(var S=0;S<=T.params.length;S++){delete I[T.params[S]]}}}ISSUU.utils.log("modifyMemory. is now: "+N(I))};var D=function(R){if(P&&!R){ISSUU.utils.log("saveToServer. ABORTING SAVE!: flag"+P.toString());A=true;return }ISSUU.utils.log("saveToServer. flagSavingToServer:"+P.toString());P=true;ISSUU.utils.api({data:{action:"issuu.serverobject.add",objectKeys:"puo",objectValues:ISSUU.utils.Cookie.getCookie("puo")},onOk:function(S){P=false;ISSUU.utils.log("saveToServer OK");if(A){A=false;D()}if(R){R()}}})};var O=function(S,R){if(M&&!S){ISSUU.utils.log("getServer. ABORTING GETSERVER!: getting-flag:"+M.toString());return }ISSUU.utils.log("getServer. gettingFlag:"+M.toString());M=true;ISSUU.utils.api({data:{action:"issuu.serverobject.get",objectKeys:"puo"},onOk:function(V){M=false;ISSUU.utils.log("getServer OK");var T=(typeof V._content=="undefined")?"":V._content.obj.puo;var U=K(T);U._t=ISSUU.utils.Utc()+1000*60*5;I=U;G();E();ISSUU.utils.log("getServer. uo is now: "+N(I));if(A){A=false;D()}if(S){S(C(R))}}})};var F=function(){var R;for(R in I){if(I.hasOwnProperty(R)){ISSUU.utils.log("outPutMemory Key: "+R+", Val: "+I[R])}}};var L=function(){if(typeof I!="object"){I={};J()}var S={};var R=new Date();S.orderStart=R.getTime();S.timeLeft=Math.floor((parseInt(I._t,10)-S.orderStart)/1000);ISSUU.utils.log("doTimer. Time left. "+S.timeLeft+" sec.");S.fresh=false;if(I._t&&(parseInt(I._t,10)>ISSUU.utils.Utc())){S.fresh=true}return S};var G=function(){ISSUU.utils.log("runBuffer.");while(H.length>=1){var R=H.shift();ISSUU.utils.log("buffer. running:"+R.verb);ISSUU.utils.log("buffer. length:"+H.length);Q(R)}};var C=function(S){var R={};if(Object.prototype.toString.call(S)==="[object Array]"){var T;for(T in S){R[S[T]]=I[S[T]]}}else{if(typeof S=="undefined"||S===null){R=I}else{R=(typeof I[S]!="undefined")?I[S]:undefined}}return R};var B={get:function(R,T){if(!ISSUU.utils.User.isLoggedin()){if(T){T({})}return }ISSUU.utils.log(" GET");var S=L();if(S.fresh&&T){ISSUU.utils.log("get. _t is fine.. calling callback right away..");T(C(R))}else{if(S.fresh&&!T){ISSUU.utils.log("get. No callback!. _t is ok so i am returning puo"+N(I));return C(R)}else{if(!S.fresh&&!T){ISSUU.utils.log("get. No callback!. _t is Bad so i am returning current puo. And starting a getserver. Good luck...consider using a callback instead ");setTimeout(function(){O(null,R)},0);return C(R)}else{ISSUU.utils.log("get. _t is Bad so i am doing getserver before running callback");O(T,R)}}}},set:function(R,T){if(!ISSUU.utils.User.isLoggedin()){if(T){T()}return }ISSUU.utils.log("SET");var S=L();Q({verb:"set",params:R});if(!S.fresh){H.push({verb:"set",params:R})}if(S.fresh){E();setTimeout(function(){D()},100);if(T){T()}}else{if(!S.fresh&&T){ISSUU.utils.log("takeOrders SET. _t is bad first do getServer then do set.");O(function(){D(T)})}else{if(!S.fresh&&!T){A=true;O()}}}},del:function(R,T){if(!ISSUU.utils.User.isLoggedin()){if(T){T()}return }ISSUU.utils.log("DEL");var S=L();Q({verb:"del",params:R});if(!S.fresh){H.push({verb:"del",params:R})}if(S.fresh){E();setTimeout(function(){D()},0);if(T){T(I)}}else{if(!S.fresh&&T){O(function(){D(T)})}else{if(!S.fresh&&!T){A=true;O()}}}}};B.o=function(){return I};B.o2=function(R){return I[R]};B.bufferlength=function(R){return H.length};B.getBuffer=function(R){return H};return B}();ISSUU.search={};ISSUU.search.mvc={};ISSUU.search.mvc.model=function(){var F=0;var E=[];var A=0;var C={};var D;function G(I,H){var J=C[I];return(J!=null)?J:((B.defaultValues&&B.defaultValues[I])?B.defaultValues[I]:H)}var B={baseURL:"",andKeywords:[],start:0,num:20,searchType:"",browse:"",category:"all",doctype:"all",created:"all",language:"",country:"",loggedUser:"",targetUser:"",andTags:[],orTags:[],notTags:[],mAndTags:[],mOrTags:[],mNotTags:[],andUsers:[],orUsers:[],taghistsize:0,taghistnum:0,display:"grid",defaultValues:null,searchIn:"issuu",documentId:"",pageNumber:1,endOfSearchHash:0,vicinity:"",picture:"",xqhidden:"",initilize:function(O,N,K,M){if(jQuery.isFunction(O)){N=O;O=null}D=N;if(M){this.defaultValues=M}this.baseURL=K;var H=O.substring(O.indexOf("?")+1);if(H.indexOf("#")>-1){H=H.substr(0,H.indexOf("#"))}C=ISSUU.utils.UrlHelper.getUrlHashMap(H);this.andKeywords=unescape(decodeURIComponent(G("q",""))).split(" ");if(this.andKeywords.length==1&&this.andKeywords[0]==""){this.andKeywords=[]}ISSUU.utils.log("andKeywords: "+this.andKeywords);this.andTags=G("at","").split(",");if(this.andTags.length==1&&this.andTags[0]==""){this.andTags=[]}ISSUU.utils.log("andTags: "+this.andTags);this.orTags=G("ot","").split(",");if(this.orTags.length==1&&this.orTags[0]==""){this.orTags=[]}ISSUU.utils.log("orTags: "+this.orTags);this.notTags=G("nt","").split(",");if(this.notTags.length==1&&this.notTags[0]==""){this.notTags=[]}ISSUU.utils.log("notTags: "+this.notTags);this.mAndTags=G("mat","").split(",");if(this.mAndTags.length==1&&this.mAndTags[0]==""){this.mAndTags=[]}ISSUU.utils.log("mAndTags: "+this.mAndTags);this.mOrTags=G("mot","").split(",");if(this.mOrTags.length==1&&this.mOrTags[0]==""){this.mOrTags=[]}ISSUU.utils.log("mOrTags: "+this.orTags);this.mNotTags=G("mnt","").split(",");if(this.mNotTags.length==1&&this.mNotTags[0]==""){this.mNotTags=[]}ISSUU.utils.log("mNotTags: "+this.mNotTags);this.pageNumber=G("pn",1);ISSUU.utils.log("pageNumber: "+this.pageNumber);this.start=parseInt(G("start","0"),10);this.start=isNaN(this.start)?0:this.start;ISSUU.utils.log("start: "+this.start);this.num=parseInt(G("num","20"),10);this.num=isNaN(this.num)?10:this.num;ISSUU.utils.log("num: "+this.num);this.endOfSearchHash=G("eos",0);ISSUU.utils.log("search hash: "+this.endOfSearchHash);this.language=G("lan","any")||"any";ISSUU.utils.log("language: "+this.language);this.country=G("ctr","Any");ISSUU.utils.log("country: "+this.country);this.browse=G("br","");ISSUU.utils.log("browse: "+this.browse);this.category=G("cat","all");ISSUU.utils.log("category: "+this.category);this.doctype=G("dt","all");ISSUU.utils.log("doctype: "+this.doctype);this.created=G("cr","all");ISSUU.utils.log("created: "+this.created);var L=ISSUU.utils.Cookie.getUsername();if(L){this.loggedUser=L}ISSUU.utils.log("logged user: "+this.loggedUser);this.targetUser=G("tusr","");ISSUU.utils.log("targetUser: "+this.targetUser);this.taghistsize=G("ths",0);ISSUU.utils.log("taghistsize: "+this.taghistsize);this.taghistnum=G("thn",0);ISSUU.utils.log("taghistnum: "+this.taghistnum);this.display=G("dsp","grid");ISSUU.utils.log("display: "+this.display);var J=G("st","");if(this.display=="remix"){this.searchType="page"}else{this.searchType=J}ISSUU.utils.log("search type: "+this.searchType);this.searchIn=G("in","issuu");ISSUU.utils.log("searchIn: "+this.searchIn);this.documentId=G("docid","");ISSUU.utils.log("documentId: "+this.documentId);this.vicinity=G("vc","");ISSUU.utils.log("vicinity: "+this.vicinity);this.picture=G("pic","");ISSUU.utils.log("picture: "+this.picture);this.xqhidden=G("xq","");var I="http://search."+ISSUU.server.model.domain+"/generic?"+B.toIssuuQueryString();jQuery.getJSON(I,function(P){ISSUU.utils.log("search results loaded into model");E=P;A=P.totalResults;D(P);D=undefined})},toBrowserQueryString:function(){ISSUU.utils.log('---Way to basic. Not support for "this is a keyword"');var I=this.baseURL+"?q=";for(var H=0;H<this.andKeywords.length;H++){if(H!=0){I+="+"}I+=escape(encodeURIComponent(this.andKeywords[H]))}if(this.orTags.length>0){I+="&ot=";for(H=0;H<this.orTags.length;H++){if(H!=0){I+=","}I+=this.orTags[H]}}if(this.andTags.length>0){I+="&at=";for(H=0;H<this.andTags.length;H++){if(H!=0){I+=","}I+=this.andTags[H]}}if(this.notTags.length>0){I+="&nt=";for(H=0;H<this.notTags.length;H++){if(H!=0){I+=","}I+=this.notTags[H]}}if(this.mOrTags.length>0){I+="&mot=";for(H=0;H<this.mOrTags.length;H++){if(H!=0){I+=","}I+=this.mOrTags[H]}}if(this.mAndTags.length>0){I+="&mat=";for(H=0;H<this.mAndTags.length;H++){if(H!=0){I+=","}I+=this.mAndTags[H]}}if(this.mNotTags.length>0){I+="&mnt=";for(H=0;H<this.mNotTags.length;H++){if(H!=0){I+=","}I+=this.mNotTags[H]}}if(this.browse){I+="&br="+this.browse}if(this.category!="all"){I+="&cat="+this.category}if(this.doctype!="all"){I+="&dt="+this.doctype}I+="&cr="+this.created;if(this.language!="all"){I+="&lan="+this.language}if(this.country!="Any"){I+="&ctr="+this.country}if(this.targetUser&&this.searchIn=="user"){I+="&tusr="+this.targetUser}if(this.display){I+="&dsp="+this.display}if(this.start){I+="&start="+this.start}if(this.num){I+="&num="+this.num}if(this.searchType){I+="&st="+this.searchType}if(this.endOfSearchHash!=0){I+="&eos="+this.endOfSearchHash}if(this.searchIn!="issuu"){I+="&in="+this.searchIn}if(this.documentId){I+="&docid="+this.documentId}if(this.pageNumber>1){I+="&pn="+this.pageNumber}if(this.vicinity){I+="&vc="+this.vicinity}if(this.picture==="pictureonly"||this.picture==="pictureall"){I+="&pic="+this.picture}return I},toIssuuQueryString:function(){ISSUU.utils.log('---Way to basic. Not support for "this is a keyword"');var J="q=";for(var I=0;I<this.andKeywords.length;I++){if(I!=0){J+=" "}J+=encodeURIComponent(this.andKeywords[I])}if(this.display=="remix"){J+=" +graphical:700000-999999 +visual:700000-999999"}for(I=0;I<this.andUsers.length;I++){J+="+user:"+this.andUsers[I]}for(I=0;I<this.andTags.length;I++){J+=" +tag:"+this.andTags[I]}for(I=0;I<this.notTags.length;I++){J+=" -tag:"+this.notTags[I]}if(this.orTags.length>0){var H=((this.orTags.length!=0)?'tag:"'+this.orTags[0]:"");for(I=1;I<this.orTags.length;I++){H+=","+this.orTags[I]}H+=(H!="")?'"':"";J+=(" +"+H+"+")}if(this.orUsers.length>0){J+=((this.orUsers.length!=0)?"+users:"+this.orUsers[0]:"");for(I=1;I<this.orUsers.length;I++){J+=","+this.orUsers[I]}J+="+"}if(this.documentId!=""){J+=" documentId:"+this.documentId}if(this.category!="all"){J+="category:"+this.category}else{if(J=="q="){J+="*"}}if(this.loggedUser&&(this.searchType=="connection"||this.searchType=="recommendation")){J+="+user:"+this.loggedUser}if(this.picture==="pictureonly"){J+="+photo:true"}if(this.targetUser&&this.searchIn=="user"){J+="+user:"+this.targetUser}else{if(this.loggedUser&&this.searchIn=="user"){J+="+user:"+this.loggedUser}}if(this.created!="all"){J+="+created:"+ISSUU.utils.Feeds.getDateString(this.created)}if(this.doctype!="all"){J+="+doctype:"+this.doctype}if(this.language!="all"&&this.language!="any"&&this.searchType!="user"&&this.searchType!="document,page,user"&&this.searchIn!="user"){J+="+language:"+this.language}if(this.country!="all"&&this.country!="Any"&&this.searchType!="connection"&&this.searchType!="recommendation"){J+='+country:"'+this.country+'"'}if(this.xqhidden!==""){J+=this.xqhidden}if(this.browse!=""){J+="&sort="+this.browse}J+="&start="+this.start;if(this.display=="remix"){J+="&num=50"}else{J+="&num="+this.num}J+="&type="+((this.searchType=="")?"document":this.searchType);if((this.searchType=="page"||this.searchType=="document,page,user")&&this.display!="remix"){J+="&dedupfield=documentId&dedupnum=3"}if(this.display=="remix"){J+="&dedupfield=documentId&dedupnum=3";J+="&details=graphical,visual,language,infoLink,downloadable"}else{J+="&details=language,infoLink,downloadable"}if(this.taghistsize!=0){J+="&taghistsize="+this.taghistsize}if(this.taghistnum!=0){J+="&taghistnum="+this.taghistnum}if(this.vicinity!=""){J+="&vicinity="+this.vicinity}J+="&reverse=true&format=json&jsoncallback=?";ISSUU.utils.log("query: "+J);return J},toIssuuViewerQueryString:function(){ISSUU.utils.log('---Way to basic. Not support for "this is a keyword"');var J="q=";for(var I=0;I<this.andKeywords.length;I++){if(I!=0){J+=" "}J+=this.andKeywords[I]}J+=" +graphical:700000-999999 +visual:700000-999999";for(I=0;I<this.andTags.length;I++){J+=" +tag:"+this.andTags[I]}for(I=0;I<this.notTags.length;I++){J+=" -tag:"+this.notTags[I]}if(this.orTags.length>0){var H=((this.orTags.length!=0)?'tag:"'+this.orTags[0]:"");for(I=1;I<this.orTags.length;I++){H+=","+this.orTags[I]}H+=(H!="")?'"':"";J+=(" +"+H+"+")}if(this.documentId!=""){J+=" documentId:"+this.documentId}if(this.loggedUser&&(this.searchType=="connection"||this.searchType=="recommendation")){J+="+user:"+this.loggedUser}if(this.targetUser&&this.searchIn=="user"){J+="+user:"+this.targetUser}else{if(this.loggedUser&&this.searchIn=="user"){J+="+user:"+this.loggedUser}}if(this.language!="all"&&this.language!="any"&&this.searchIn!="user"){J+="+language:"+this.language}J+="&pageNumber="+this.pageNumber;J+="&details=graphical,visual";return J},setValue:function(I,J,H){if(I!="num"&&I!="display"){this.start=0}this[I]=J;if(!H){window.location=this.toBrowserQueryString()}},addOrTag:function(H,I,J){if(J){if(!this.isNotTag(H)&&!this.isOrTag(H)){this.orTags.push(H)}if(this.isNotTag(H)&&!this.isMNotTag(H)){this.removeNotTag(H,true);this.orTags.push(H)}}else{if(this.isNotTag(H)){this.removeNotTag(H,true);this.removeMNotTag(H)}if(!this.isOrTag(H)){this.orTags.push(H);this.mOrTags.push(H)}else{this.removeOrTag(H,true);this.removeMOrTag(H);this.addNotTag(H)}}if(!I){window.location=this.toBrowserQueryString()}},addOrTags:function(H){var J=H.replace(/\s/g,"").split(",");for(var I=0;I<J.length;I++){this.addOrTag(J[I],true,true)}window.location=this.toBrowserQueryString()},removeOrTag:function(H,I){for(var J=0;J<this.orTags.length;J++){if(this.orTags[J]==H){this.orTags.splice(J,1);break}}this.removeMOrTag(H);if(!I){window.location=this.toBrowserQueryString()}},removeMOrTag:function(H){for(var I=0;I<this.mOrTags.length;I++){if(this.mOrTags[I]==H){this.mOrTags.splice(I,1);break}}},isOrTag:function(H){var J=false;for(var I=0;I<this.orTags.length;I++){if(this.orTags[I]==H){J=true;break}}return J},isMOrTag:function(H){var J=false;for(var I=0;I<this.mOrTags.length;I++){if(this.mOrTags[I]==H){J=true;break}}return J},addNotTag:function(H,I,J){if(J){if(!this.isOrTag(H)&&!this.isNotTag(H)){this.notTags.push(H)}if(this.isOrTag(H)&&!this.isMOrTag(H)){this.removeOrTag(H,true);this.notTags.push(H)}}else{if(this.isOrTag(H)){this.removeOrTag(H,true);this.removeMOrTag(H)}if(!this.isNotTag(H)){this.notTags.push(H);this.mNotTags.push(H)}else{this.removeNotTag(H,true);this.removeMNotTag(H);this.addOrTag(H)}}if(!I){window.location=this.toBrowserQueryString()}},addNotTags:function(H){var J=H.replace(/\s/g,"").split(",");for(var I=0;I<J.length;I++){this.addNotTag(J[I],true,true)}window.location=this.toBrowserQueryString()},removeNotTag:function(H,I){for(var J=0;J<this.notTags.length;J++){if(this.notTags[J]==H){this.notTags.splice(J,1);break}}this.removeMNotTag(H);if(!I){window.location=this.toBrowserQueryString()}},removeMNotTag:function(H){for(var I=0;I<this.mNotTags.length;I++){if(this.mNotTags[I]==H){this.mNotTags.splice(I,1);break}}},isNotTag:function(H){var J=false;for(var I=0;I<this.notTags.length;I++){if(this.notTags[I]==H){J=true;break}}return J},isMNotTag:function(H){var J=false;for(var I=0;I<this.mNotTags.length;I++){if(this.mNotTags[I]==H){J=true;break}}return J},clearTags:function(H){this.notTags=this.andTags=this.orTags=this.mNotTags=this.mOrTags=[];window.location=this.toBrowserQueryString()}};return B}();var view;jQuery(document).ready(function(){});ISSUU.menubar=function(){var A=true;var C=false;$(document).ready(function(){var H="bunch"+Math.ceil(2*Math.random());$("div."+H).css("display","block");var F={"blue-box-1":{t:"l",l:"/publications"},"blue-box-2":{t:"pa",pa:"promo_2"},"blue-box-3":{t:"l",l:"http://platform.issuu.com/"},"blue-box-4":{t:"l",l:"/business"},"blue-box-5":{t:"l",l:"/smartlook"}};for(var K in F){(function(){var L=F[K];$("."+K).css({cursor:"pointer"}).click(function(){if(L.t=="l"){location.href=L.l}else{if(L.t=="pa"){ISSUU.landing.top.promo_actions(L.pa)}}})})()}setTimeout(function(){$(".footer").css({visibility:"visible"})},2000);$("li.dropdown a").click(function(O){O.preventDefault();O.stopPropagation();$("li.dropdown").removeClass("over").removeClass("down");$($(this).parent("li.dropdown").get(0)).addClass("down");var P=ISSUU.utils.Cookie.getUsername();var M={peopleMyFriends:{loggedin:"http://"+ISSUU.server.model.domain+"/people?q=&br=totalviews&cr=all&dsp=grid&num=24&st=user&vc=connections",anonymous:"http://"+ISSUU.server.model.domain+"/login"},peopleMySubscriptions:{loggedin:"http://"+ISSUU.server.model.domain+"/people?q=&br=totalviews&cr=all&dsp=grid&num=24&st=user&vc=recommendations",anonymous:"http://"+ISSUU.server.model.domain+"/login"},homeProfile:{loggedin:"http://"+ISSUU.server.model.domain+"/[loggeduser]",anonymous:"http://"+ISSUU.server.model.domain+"/login"}};var N=$(this).attr("href");var L;for(L in M){if(N.indexOf(L)!=-1){if(ISSUU.utils.User.isLoggedin()){N=M[L].loggedin.replace("[loggeduser]",P)}else{N=M[L].anonymous}}}if(N==="../"){N="/"}window.location.href=N});$("li.dropdown span.link-arrow").click(function(L){L.stopPropagation();L.preventDefault();var M=$($(this).parent("li.dropdown").get(0)).hasClass("over");$("li.dropdown").removeClass("over").removeClass("text-over");$("li#left_most").removeClass("over").removeClass("text-over");if(M){$($(this).parent("li.dropdown").get(0)).removeClass("over").removeClass("text-over")}else{$($(this).parent("li.dropdown").get(0)).addClass("over").addClass("text-over")}});$(document).click(function(L){$("li.dropdown").removeClass("over").removeClass("down").removeClass("text-over");$("li#left_most").removeClass("over").removeClass("down").removeClass("text-over");$("li.default").addClass("down")});$("li.dropdown span.link-arrow").mouseover(function(L){$($(this).parent("li.dropdown").get(0)).addClass("arrow-over")});$("li.dropdown span.link-arrow").mouseout(function(L){$($(this).parent("li.dropdown").get(0)).removeClass("arrow-over")});$("li.dropdown a").mouseover(function(L){$($(this).parent("li.dropdown").get(0)).addClass("text-over")});$("li.dropdown a").mouseout(function(L){$($(this).parent("li.dropdown").get(0)).removeClass("text-over")});$(".system-grey-shade-fat-btn-dropdown").mouseover(function(L){$(this).addClass("over")});$(".system-grey-shade-fat-btn-dropdown").mouseout(function(L){$(this).removeClass("over")});$("input#btn_search").click(function(N){var M=$("#input_keywords").val();if(ISSUU.searchpage){ISSUU.search.mvc.model.setValue("searchIn","issuu",true);ISSUU.search.mvc.model.setValue("pageNumber",1,true);ISSUU.search.mvc.model.setValue("andKeywords",M.split(" "))}else{var L="http://"+ISSUU.server.model.domain+"/search/?q="+escape(encodeURIComponent(M))+"&st=document";window.location=L}});$("#top_search_form").submit(function(N){N.preventDefault();N.stopPropagation();var M=$("#input_keywords").val();if(ISSUU.searchpage){ISSUU.search.mvc.model.setValue("searchIn","issuu",true);ISSUU.search.mvc.model.setValue("pageNumber",1,true);ISSUU.search.mvc.model.setValue("andKeywords",M.split(" "))}else{var L="http://"+ISSUU.server.model.domain+"/search/?q="+escape(encodeURIComponent(M))+"&st=document";window.location=L}});$("input#btn_search_vault").click(function(N){N.preventDefault();N.stopPropagation();var M=$("#input_keywords").val();if(ISSUU.searchpage){ISSUU.search.mvc.model.setValue("searchIn","user",true);ISSUU.search.mvc.model.setValue("searchType","document,page",true);ISSUU.search.mvc.model.setValue("andKeywords",M.split(" "))}else{var L="http://"+ISSUU.server.model.domain+"/search/?q="+escape(encodeURIComponent(M))+"&in=user&st=document,page";window.location=L}});if($("#input_keywords").length){$("#input_keywords").select()}$("#tm_slideup").click(function(L){ISSUU.menubar.collapseMenu()});$("#tm_slidedown").click(function(L){ISSUU.menubar.expandMenu()});$("#tm_disable").click(function(L){ISSUU.menubar.disableMenu()});$("#tm_enable").click(function(L){ISSUU.menubar.enableMenu()});$("#menu_disabler").click(function(L){return false});var D=ISSUU.server.model.shownew=="true"?'<a href="http://blog.issuu.com" class="showNew" >New</a> | ':"";var G;if(ISSUU.utils.User.isLoggedin()){var J=ISSUU.utils.Cookie.getUsername();G=D+'<a href="/mylibrary">My Library</a> | <a href="/user/settings">'+J.truncate(15)+'</a> | <a href="#logout" class="logout_behavior">Log out</a>';$("#tm_user_info").html(G);$("a.logout_behavior").click(function(L){ISSUU.utils.User.logout()});$("#btn_search_vault").removeClass("hidden");$("#btn_search_vault").attr("value","Search "+J.truncate(7));$("#issuu_menu a").each(function(L,M){$(M).attr("href",$(M).attr("href").replace("[loggeduser]",J.truncate(7)))});$("li#left_most span.link-arrow").show()}else{G=D+'<a href="/signup">Sign up</a>&nbsp;|&nbsp;<a href="'+ISSUU.utils.UrlHelper.issuuLoginUrl()+'">Log in</a>';$("#tm_user_info").html(G);$("li.tm_home span.link-text").css({padding:"0 10px 0 0"})}var I=$("#selected_menu_carrier").attr("title");var E=$("#selected_sub_menu_carrier").attr("title");$("li.tm_"+I).addClass("down").addClass("default");$("li.tm_sub_"+E+" a").addClass("selected");$("a.fakeGetSatisfactionButton").click(function(L){L.preventDefault();L.stopPropagation();$("#continue").click();return false})});var B={dontAnimateMenubar:false,is_menu_expanded:function(){return A},is_menu_hidden:function(){return C},are_dropdowns_used:function(){var D=($("div#issuu_menu li").hasClass("down"))&&($("div#issuu_menu li").hasClass("over"));return D},hideMenubar:function(){$("div#top_menu_slider").css("display","none");C=true},showMenubar:function(){$("div#top_menu_slider").css("display","block");C=false},collapseMenu:function(){if(!B.dontAnimateMenubar){$("#top_menu_slider").animate({height:"12px"},225);$("div#menu_disabler").css("height","12px");A=false}},collapseMenuFast:function(){$("#top_menu_slider").css({height:"12px"});$("div#menu_disabler").css("height","12px");A=false},expandMenu:function(){if(!B.dontAnimateMenubar){$("#top_menu_slider").animate({height:"100px"},225);$("div#menu_disabler").css("height","98px");A=true}},disableMenu:function(){$("#menu_disabler").removeClass("hidden")},enableMenu:function(){$("#menu_disabler").addClass("hidden")},changeSelectedTo:function(D){$("ul#issuu_menu>li").removeClass("down").removeClass("default");$("li.tm_"+D).addClass("down").addClass("default")},changeSubTo:function(D){$("ul#issuu_menu li li a").removeClass("selected");$("li.tm_sub_"+D+" a").addClass("selected")}};return B}();ISSUU.utils.dialogue=function(){$(document).ready(function(){var C;if(jQuery.browser.version<7&&$.browser.msie){C=["img/dialogue/ie6/a.png","img/dialogue/ie6/b.png","img/dialogue/ie6/c.png","img/dialogue/ie6/d.png","img/dialogue/ie6/e.png","img/dialogue/ie6/f.png","img/dialogue/ie6/g.png","img/dialogue/ie6/h.png","img/dialogue/ie6/i.png","img/dialogue/ie6/j.png","img/dialogue/ie6/k.png","img/dialogue/ie6/l.png","img/dialogue/ie6/m.png","img/dialogue/ie6/n.png"]}else{C=["img/dialogue/s.png","img/dialogue/sl.png","img/dialogue/sb.png","img/dialogue/sr.png","img/dialogue/st.png"]}if($("div#preloader").length==0){$("body").append('<div id="preloader"></div>')}for(var B=0;B<C.length;B++){$("#preloader").append('<img src="http://static.issuu.com/html/v1.1.22/staticFiles/'+C[B]+'" alt="preload" >')}});var A={settings:{},clear:function(){var B=400+46;A.settings={width:B}},init:function(C){if(!C){return false}for(var B in C){if(C.hasOwnProperty(B)){A.settings[B]=C[B]}}},ajustOverlay:function(){var B=parseInt($("div.dia_box").height(),10)+20+(parseInt($(window).scrollTop(),10));if(B>$("body").height()){$("div.dialogue_base").height(B)}else{$("div.dialogue_base").height($("body").height()+(parseInt($(window).scrollTop(),10)))}},calculateSizes:function(B,D){var C={};C.diaHeight=D+46;C.diaWidth=B+46;C.contentHeight=D;C.contentWidth=B;C.horizShad=B;C.longHoCenTd=B-46;C.viewportHeight=$(window).height();C.viewportScrollTop=$(window).scrollTop();C.verticalCenter=Math.floor(C.viewportScrollTop+C.viewportHeight/2);C.diaboxTop=C.verticalCenter-Math.floor(C.diaHeight/2);C.diaboxTopNoHeight=C.viewportScrollTop+20;return C},open:function(F){if(F){A.init(F)}var G=A.calculateSizes(A.settings.width,A.settings.height);var D;if(A.settings.animate){D=new EJS({text:ISSUU.utils.dialogue.markup}).render({cont:"<div></div>"});$("body").append(D);$("div.dia_box").css({width:"100px"});$("div.d_main").css({width:"54px",height:"54px"});var E=Math.floor(($(window).height()-100)/2);$("div.dia_box").css({top:E});var C;if(A.settings.height){C=A.settings.height-46}else{C=500}E=Math.floor(($(window).height()-C)/2);if(E<20||!A.settings.height){E=20}$("div.dia_box").animate({top:E,width:G.diaWidth+"px"},225,null);$("div.d_main").animate({width:G.contentWidth+"px",height:C+"px"},225,null,function(){$("table.horizShad").css({width:G.horizShad+"px"});$("td.longHoCenTd").css({width:G.longHoCenTd+"px"});$("div.d_main").html(A.settings.content);if(!A.settings.height){$("div.d_main").css("height","")}ISSUU.utils.dialogue.ajustOverlay();$("div.d_closer").css("visibility","visible");if(A.settings.onOpen){A.settings.onOpen(A.settings.onOpenParams)}})}else{D=new EJS({text:ISSUU.utils.dialogue.markup}).render({cont:A.settings.content});$("body").append(D);A.ajustOverlay();$("div.dia_box").css({width:G.diaWidth});$("table.horizShad").css({width:G.horizShad+"px"});$("td.longHoCenTd").css({width:G.longHoCenTd+"px"});var B={width:G.contentWidth};if(A.settings.height){B.height=G.contentHeight}$("div.d_main").css(B);if(A.settings.height){if(G.diaHeight<$(window).height()){$("div.dia_box").css({top:G.diaboxTop})}else{$("div.dia_box").css({top:G.diaboxTopNoHeight})}}else{$("div.dia_box").css({top:G.diaboxTopNoHeight})}if(A.settings.onOpen){A.settings.onOpen(A.settings.onOpenParams)}$("div.d_closer").css("visibility","visible")}$("div.dialogue_base").click(function(){A.close()});$("div.d_closer").click(function(){A.close()});$("div.dia_box").click(function(H){H.stopPropagation()});$("div.dialogue_base").hover(function(H){H.stopPropagation();H.preventDefault()},function(H){H.stopPropagation();H.preventDefault()});ISSUU.menubar.dontAnimateMenubar=true},close:function(){if(A.settings.beforeClose){A.settings.beforeClose()}$("div.dialogue_base").remove();ISSUU.menubar.dontAnimateMenubar=false;if(A.settings.onClose){A.settings.onClose()}}};return A}();if(typeof ISSUU.utils.dialogue=="undefined"){ISSUU.utils.dialogue={}}ISSUU.utils.dialogue.markup='\n<div class="dialogue_base"> \n  <div class="dialogue_overlay"></div> \n	<div class="dia_box"> \n    <table class="dialogue_t" > \n      <tr> \n        <td class="c1">&nbsp;</td> \n        <td> \n            <table class="horizShad" width="100%" height="14px"> \n              <tr> \n                <td class="c2" width="23px" height="14px">&nbsp;</td> \n                <td class="c3 longHoCenTd">&nbsp;</td> \n                <td class="c4" width="23px">&nbsp;</td> \n              </tr> \n            </table> \n        </td> \n        <td class="c5">&nbsp;</td> \n      </tr> \n      <tr> \n        <td class="c6" ></td> \n        <td ></td> \n        <td class="c8" ></td> \n      </tr> \n      <tr> \n        <td class="c9"></td> \n        <td class="c7"> \n          <div class="d_main"><%= cont %></div> \n        </td> \n        <td class="c10" ></td> \n      </tr> \n      <tr > \n        <td class="c13" ></td> \n        <td > \n            <table class="horizShad" width="100%" height="32px"> \n              <tr> \n                <td class="c14" width="23px" height="32px">&nbsp;</td> \n                <td class="c15 longHoCenTd">&nbsp;</td> \n                <td class="c16" width="23px">&nbsp;</td> \n              </tr> \n            </table> \n        </td> \n        <td class="c17" >&nbsp;</td> \n      </tr> \n    </table> \n		<div class="d_closer"></div> \n  </div> \n</div> \n';ISSUU.utils.button=function(){var A={disable:function(B){ISSUU.utils.log($(B));$(B).css("cursor","default");$(B).removeClass("system-blue-shade-fat-btn-on").addClass("system-grey-shade-fat-btn-on");$(B+" .system-blue-shade-fat-btn-leftcap").removeClass("system-blue-shade-fat-btn-leftcap").addClass("system-grey-shade-fat-btn-leftcap");$(B+" .system-grey-shade-fat-btn-leftcap").css("background-position","0px -70px");$(B+" .system-blue-shade-fat-btn-text").removeClass("system-blue-shade-fat-btn-text").addClass("system-grey-shade-fat-btn-text");$(B+" .system-grey-shade-fat-btn-text").css("background-position","-11px -70px");$(B+" .system-blue-shade-fat-btn-rightcap").removeClass("system-blue-shade-fat-btn-rightcap").addClass("system-grey-shade-fat-btn-rightcap");$(B+" .system-grey-shade-fat-btn-rightcap").css("background-position","-5px -70px");$(B).unbind("click");$(B).bind("click.doNothing",function(){return false})},enable:function(B,C){$(B).css("cursor","pointer");$(B).removeClass("system-grey-shade-fat-btn-on").addClass("system-blue-shade-fat-btn-on");$(B+" .system-grey-shade-fat-btn-leftcap").removeClass("system-grey-shade-fat-btn-leftcap").addClass("system-blue-shade-fat-btn-leftcap").removeAttr("style");$(B+" .system-grey-shade-fat-btn-text").removeClass("system-grey-shade-fat-btn-text").addClass("system-blue-shade-fat-btn-text").removeAttr("style");$(B+" .system-grey-shade-fat-btn-rightcap").removeClass("system-grey-shade-fat-btn-rightcap").addClass("system-blue-shade-fat-btn-rightcap").removeAttr("style");if(C){$(B).unbind("click");$(B).bind("click",C)}}};return A}();var GsfnClass={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(A,C){for(var B in C){A[B]=C[B]}return A};Object.extend(String,{interpret:function(A){return A==null?"":String(A)}});Object.extend(String.prototype,{gsub:function(E,C){var A="",D=this,B;C=arguments.callee.prepareReplacement(C);while(D.length>0){if(B=D.match(E)){A+=D.slice(0,B.index);A+=String.interpret(C(B));D=D.slice(B.index+B[0].length)}else{A+=D;D=""}}return A}});String.prototype.gsub.prepareReplacement=function(B){if(typeof B=="function"){return B}var A=new GsfnTemplate(B);return function(C){return A.evaluate(C)}};var GsfnTemplate=GsfnClass.create();GsfnTemplate.Pattern=/(^|.|\r|\n)(#\{(.*?)\})/;GsfnTemplate.prototype={initialize:function(A,B){this.template=A.toString();this.pattern=B||GsfnTemplate.Pattern},evaluate:function(A){return this.template.gsub(this.pattern,function(B){var C=B[1];if(C=="\\"){return B[2]}return C+String.interpret(A[B[3]])})}};var GsfnScriptAttach=GsfnClass.create();Object.extend(GsfnScriptAttach,{at:function(A){var B=document.createElement("script");B.type="text/javascript";B.src=A;B.setAttribute("class","gsfn");document.getElementsByTagName("head")[0].appendChild(B)}});gsfn_topic_list={open_tag:'<ul class="gsfn_topic_list">',item:'<li class="gsfn_#{style}"><a href="#{url}" class="gsfn_link">#{subject}</a><span class="time">#{date}</span><div class="gsfn_summary">#{summary}</div></li>',result:'<li class="gsfn_#{style}"><a href="#{url}" class="gsfn_link">#{subject}</a></li>',no_results:'<li class="gsfn_no_results">Get Satisfaction has no topics matching your exact criteria.</li>',suggested:'<li class="gsfn_suggestion">Suggested Topics: Are any of these helpful?</li>',topic_submit:'<li class="gsfn_submit">Not quite right? <input type="submit" onclick="gsfn_submit();" value="Create a Topic" /> <span class="gsfn_or">or</span> <a href="#" onclick="gsfn_cancel(); return false;">Cancel</a></li>',no_results_submit:'<li class="gsfn_no_results"><input type="submit" onclick="gsfn_submit();" value="Create a Topic" /> <span class="gsfn_or">or</span> <a href="#" onclick="gsfn_cancel(); return false;">Cancel</a></li>',close_tag:"</ul>"};function gsfn_populate(B,A){document.getElementById(B).innerHTML=A}function gsfn_append(B,A){document.getElementById(B).innerHTML+=A}function gsfn_cancel(A){document.getElementById("gsfn_search_query").value="";document.getElementById("gsfn_search_results").innerHTML=""}var gsfn_searched=false;function gsfn_search(C){document.getElementById("gsfn_search_results").innerHTML="Searching Get Satisfaction...";var A="http://getsatisfaction.com/issuu/searches";var D=[];for(var B=C.elements.length-1;B>=0;B--){if(C.elements[B].name){if(C.elements[B].name=="query"){D.push("utm_term="+C.elements[B].value)}D.push(C.elements[B].name+"="+C.elements[B].value)}}A+="?"+encodeURI(D.join("&"));GsfnScriptAttach.at(A);gsfn_searched=true}function gsfn_submit(){form=document.getElementById("gsfn_search_form");if(gsfn_searched){for(var A=form.elements.length-1;A>=0;A--){el=form.elements[A];if(el.name!="query"){el.disabled="disabled"}else{el.name="topic[subject]"}}form.submit();return true}else{gsfn_search(form);return false}}function gsfnResultsCallback(C){var D=C;var A=[];A.push(gsfn_topic_list.open_tag);if(D.length==0){A.push(gsfn_topic_list.no_results);A.push(gsfn_topic_list.no_results_submit)}else{A.push(gsfn_topic_list.suggested);for(var B=0;B<D.length;B++){A.push(new GsfnTemplate(gsfn_topic_list.result).evaluate(D[B]))}A.push(gsfn_topic_list.topic_submit)}A.push(gsfn_topic_list.close_tag);gsfn_populate("gsfn_search_results",A.join("\n"))}function gsfnTopicsCallback(C){var D=C;var A=[];A.push(gsfn_topic_list.open_tag);if(D.length==0){A.push(gsfn_topic_list.no_results)}else{for(var B=0;B<D.length;B++){A.push(new GsfnTemplate(gsfn_topic_list.item).evaluate(D[B]))}}A.push(gsfn_topic_list.close_tag);gsfn_populate("gsfn_content",A.join("\n"))};