1. (function(){var H=0,C=[],A={},E={},M={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},B=/[<>&\"\']/g,L,K=window.setTimeout,J={},I;function F(){this.returnValue=false}function D(){this.cancelBubble=true}(function(R){var Q=R.split(/,/),P,N,O;for(P=0;P<Q.length;P+=2){O=Q[P+1].split(/ /);for(N=0;N<O.length;N++){E[O[N]]=Q[P]}}})("application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats-officedocument.wordprocessingml.document,docx,application/vnd.openxmlformats-officedocument.wordprocessingml.template,dotx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,xlsx,application/vnd.openxmlformats-officedocument.presentationml.presentation,pptx,application/vnd.openxmlformats-officedocument.presentationml.template,potx,application/vnd.openxmlformats-officedocument.presentationml.slideshow,ppsx,application/x-javascript,js,application/json,json,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/plain,asc txt text diff log,text/html,htm html xhtml,text/css,css,text/csv,csv,text/rtf,rtf,video/mpeg,mpeg mpg mpe,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/vnd.rn-realvideo,rv,application/vnd.oasis.opendocument.formula-template,otf,application/octet-stream,exe");var G={VERSION:"1.5.4",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:E,ua:(function(){var O=navigator,P=O.userAgent,N=O.vendor,R,S,Q;R=/WebKit/.test(P);Q=R&&N.indexOf("Apple")!==-1;S=window.opera&&window.opera.buildNumber;return{windows:navigator.platform.indexOf("Win")!==-1,ie:!R&&!S&&(/MSIE/gi).test(P)&&(/Explorer/gi).test(O.appName),webkit:R,gecko:!R&&/Gecko/.test(P),safari:Q,opera:!!S}}()),typeOf:function(N){return({}).toString.call(N).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()},extend:function(N){G.each(arguments,function(P,O){if(O>0){G.each(P,function(Q,R){N[R]=Q})}});return N},cleanName:function(P){var O,N;N=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];for(O=0;O<N.length;O+=2){P=P.replace(N[O],N[O+1])}P=P.replace(/\s+/g,"_");P=P.replace(/[^a-z0-9_\-\.]+/gi,"");return P},addRuntime:function(O,N){N.name=O;C[O]=N;C.push(N);return N},guid:function(){var O=new Date().getTime().toString(32),N;for(N=0;N<5;N++){O+=Math.floor(Math.random()*65535).toString(32)}return(G.guidPrefix||"p")+O+(H++).toString(32)},buildUrl:function(O,P){var N="";G.each(P,function(Q,R){N+=(N?"&":"")+encodeURIComponent(R)+"="+encodeURIComponent(Q)});if(N){O+=(O.indexOf("?")>0?"&":"?")+N}return O},each:function(O,N){var P,Q,R;if(O){P=O.length;if(P===L){for(Q in O){if(O.hasOwnProperty(Q)){if(N(O[Q],Q)===false){return }}}}else{for(R=0;R<P;R++){if(N(O[R],R)===false){return }}}}},formatSize:function(N){if(N===L||/\D/.test(N)){return G.translate("N/A")}if(N>1073741824){return Math.round(N/1073741824,1)+" GB"}if(N>1048576){return Math.round(N/1048576,1)+" MB"}if(N>1024){return Math.round(N/1024,1)+" KB"}return N+" b"},getPos:function(P,U){var T=0,V=0,R,S=document,O,N;P=P;U=U||S.body;function Q(Z){var W,a,Y=0,X=0;if(Z){a=Z.getBoundingClientRect();W=S.compatMode==="CSS1Compat"?S.documentElement:S.body;Y=a.left+W.scrollLeft;X=a.top+W.scrollTop}return{x:Y,y:X}}if(P&&P.getBoundingClientRect&&((navigator.userAgent.indexOf("MSIE")>0)&&(S.documentMode<8))){O=Q(P);N=Q(U);return{x:O.x-N.x,y:O.y-N.y}}R=P;while(R&&R!=U&&R.nodeType){T+=R.offsetLeft||0;V+=R.offsetTop||0;R=R.offsetParent}R=P.parentNode;while(R&&R!=U&&R.nodeType){T-=R.scrollLeft||0;V-=R.scrollTop||0;R=R.parentNode}return{x:T,y:V}},getSize:function(N){return{w:N.offsetWidth||N.clientWidth,h:N.offsetHeight||N.clientHeight}},parseSize:function(O){var N;if(typeof (O)=="string"){O=/^([0-9]+)([mgk]?)$/.exec(O.toLowerCase().replace(/[^0-9mkg]/g,""));N=O[2];O=+O[1];if(N=="g"){O*=1073741824}if(N=="m"){O*=1048576}if(N=="k"){O*=1024}}return O},xmlEncode:function(N){return N?(""+N).replace(B,function(O){return M[O]?"&"+M[O]+";":O}):N},toArray:function(N){var O,P=[];for(O=0;O<N.length;O++){P[O]=N[O]}return P},inArray:function(O,N){if(N){if(Array.prototype.indexOf){return Array.prototype.indexOf.call(N,O)}for(var Q=0,P=N.length;Q<P;Q++){if(N[Q]===O){return Q}}}return -1},addI18n:function(N){return G.extend(A,N)},translate:function(N){return A[N]||N},isEmptyObj:function(O){if(O===L){...SVersionID.join(".")}return T},setExif:function(U,T){if(U!=="PixelXDimension"&&U!=="PixelYDimension"){return false}return O("exif",U,T)},getBinary:function(){return P.SEGMENT()}}}})(window,document,plupload);(function(D,B,A,E){function C(F){return B.getElementById(F)}A.runtimes.Html4=A.addRuntime("html4",{getFeatures:function(){return{multipart:true,triggerDialog:(A.ua.gecko&&D.FormData||A.ua.webkit)}},init:function(G,F){G.bind("Init",function(J){var P=B.body,L,Q="javascript",O,S,I,R=[],H=/MSIE/.test(navigator.userAgent),W=[],M=J.settings.filters,K,N,X,T;no_type_restriction:for(K=0;K<M.length;K++){N=M[K].extensions.split(/,/);for(T=0;T<N.length;T++){if(N[T]==="*"){W=[];break no_type_restriction}X=A.mimeTypes[N[T]];if(X&&A.inArray(X,W)===-1){W.push(X)}}}W=W.join(",");function U(){var Z,Y,b,a;I=A.guid();R.push(I);Z=B.createElement("form");Z.setAttribute("id","form_"+I);Z.setAttribute("method","post");Z.setAttribute("enctype","multipart/form-data");Z.setAttribute("encoding","multipart/form-data");Z.setAttribute("target",J.id+"_iframe");Z.style.position="absolute";Y=B.createElement("input");Y.setAttribute("id","input_"+I);Y.setAttribute("type","file");Y.setAttribute("accept",W);Y.setAttribute("size",1);a=C(J.settings.browse_button);if(J.features.triggerDialog&&a){A.addEvent(C(J.settings.browse_button),"click",function(c){if(!Y.disabled){Y.click()}c.preventDefault()},J.id)}A.extend(Y.style,{width:"100%",height:"100%",opacity:0,fontSize:"99px",cursor:"pointer"});A.extend(Z.style,{overflow:"hidden"});b=J.settings.shim_bgcolor;if(b){Z.style.background=b}if(H){A.extend(Y.style,{filter:"alpha(opacity=0)"})}A.addEvent(Y,"change",function(d){var f=d.target,g,e=[],c;if(f.value){C("form_"+I).style.top=-1048575+"px";g=f.value.replace(/\\/g,"/");g=g.substring(g.length,g.lastIndexOf("/")+1);e.push(new A.File(I,g));if(!J.features.triggerDialog){A.removeAllEvents(Z,J.id)}else{A.removeEvent(a,"click",J.id)}A.removeEvent(Y,"change",J.id);U();if(e.length){G.trigger("FilesAdded",e)}}},J.id);Z.appendChild(Y);P.appendChild(Z);J.refresh()}function V(){var Y=B.createElement("div");Y.innerHTML='<iframe id="'+J.id+'_iframe" name="'+J.id+'_iframe" src="'+Q+':&quot;&quot;" style="display:none"></iframe>';L=Y.firstChild;P.appendChild(L);A.addEvent(L,"load",function(b){var a=b.target,c,Z;if(!O){return }try{c=a.contentWindow.document||a.contentDocument||D.frames[a.id].document}catch(d){J.trigger("Error",{code:A.SECURITY_ERROR,message:A.translate("Security error."),file:O});return }Z=c.body.innerHTML;if(Z){O.status=A.DONE;O.loaded=1025;O.percent=100;J.trigger("UploadProgress",O);J.trigger("FileUploaded",O,{response:Z})}},J.id)}if(J.settings.container){P=C(J.settings.container);if(A.getStyle(P,"position")==="static"){P.style.position="relative"}}J.bind("UploadFile",function(b,a){var Z,Y;if(a.status==A.DONE||a.status==A.FAILED||b.state==A.STOPPED){return }Z=C("form_"+a.id);Y=C("input_"+a.id);Y.setAttribute("name",b.settings.file_data_name);Z.setAttribute("action",b.settings.url);A.each(A.extend({name:a.target_name||a.name},b.settings.multipart_params),function(c,e){var d=B.createElement("input");A.extend(d,{type:"hidden",name:e,value:c});Z.insertBefore(d,Z.firstChild)});O=a;C("form_"+I).style.top=-1048575+"px";Z.submit()});J.bind("FileUploaded",function(Y){Y.refresh()});J.bind("StateChanged",function(Y){if(Y.state==A.STARTED){V()}else{if(Y.state==A.STOPPED){D.setTimeout(function(){A.removeEvent(L,"load",Y.id);if(L.parentNode){L.parentNode.removeChild(L)}},0)}}A.each(Y.files,function(b,Z){if(b.status===A.DONE||b.status===A.FAILED){var a=C("form_"+b.id);if(a){a.parentNode.removeChild(a)}}})});J.bind("Refresh",function(b){var f,a,Z,Y,c,e,d,g,h;f=C(b.settings.browse_button);if(f){c=A.getPos(f,C(b.settings.container));e=A.getSize(f);d=C("form_"+I);g=C("input_"+I);A.extend(d.style,{top:c.y+"px",left:c.x+"px",width:e.w+"px",height:e.h+"px"});if(b.features.triggerDialog){if(A.getStyle(f,"position")==="static"){A.extend(f.style,{position:"relative"})}h=parseInt(f.style.zIndex,10);if(isNaN(h)){h=0}A.extend(f.style,{zIndex:h});A.extend(d.style,{zIndex:h-1})}Z=b.settings.browse_button_hover;Y=b.settings.browse_button_active;a=b.features.triggerDialog?f:d;if(Z){A.addEvent(a,"mouseover",function(){A.addClass(f,Z)},b.id);A.addEvent(a,"mouseout",function(){A.removeClass(f,Z)},b.id)}if(Y){A.addEvent(a,"mousedown",function(){A.addClass(f,Y)},b.id);A.addEvent(B.body,"mouseup",function(){A.removeClass(f,Y)},b.id)}}});G.bind("FilesRemoved",function(b,a){var Y,Z;for(Y=0;Y<a.length;Y++){Z=C("form_"+a[Y].id);if(Z){Z.parentNode.removeChild(Z)}}});G.bind("DisableBrowse",function(a,Z){var Y=B.getElementById("input_"+I);if(Y){Y.disabled=Z}});G.bind("Destroy",function(c){var Y,b,a,Z={inputContainer:"form_"+I,inputFile:"input_"+I,browseButton:c.settings.browse_button};for(Y in Z){b=C(Z[Y]);if(b){A.removeAllEvents(b,c.id)}}A.removeAllEvents(B.body,c.id);A.each(R,function(d,e){a=C("form_"+d);if(a){P.removeChild(a)}})});U()});F({success:true})}})})(window,document,plupload)