var com;if(typeof com=="undefined"){com=new Object()}if(typeof com.deconcept=="undefined"){com.deconcept=new Object()}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object()}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object()}com.deconcept.FlashObject=function(Z,O,S,X,V,T,U,R,Q,N){this.DETECT_KEY=N?N:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(Z){this.setAttribute("swf",Z)}if(O){this.setAttribute("id",O)}if(S){this.setAttribute("width",S)}if(X){this.setAttribute("height",X)}if(V){this.setAttribute("version",new com.deconcept.PlayerVersion(V.toString().split(".")))}if(T){this.addParam("bgcolor",T)}var P=R?R:"high";this.addParam("quality",P);this.setAttribute("redirectUrl","");if(Q){this.setAttribute("redirectUrl",Q)}if(U){var Y=new com.deconcept.PlayerVersion([9,0,0]);var W=com.deconcept.FlashObjectUtil.getPlayerVersion();if(W.versionIsValid(Y)&&!W.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true)}}else{this.setAttribute("doExpressInstall",false)}};com.deconcept.FlashObject.prototype.setAttribute=function(C,D){this.attributes[C]=D};com.deconcept.FlashObject.prototype.getAttribute=function(B){return this.attributes[B]};com.deconcept.FlashObject.prototype.getAttributes=function(){return this.attributes};com.deconcept.FlashObject.prototype.addParam=function(C,D){this.params[C]=D};com.deconcept.FlashObject.prototype.getParams=function(){return this.params};com.deconcept.FlashObject.prototype.getParam=function(B){return this.params[B]};com.deconcept.FlashObject.prototype.addVariable=function(C,D){this.variables[C]=D};com.deconcept.FlashObject.prototype.getVariable=function(B){return this.variables[B]};com.deconcept.FlashObject.prototype.getVariables=function(){return this.variables};com.deconcept.FlashObject.prototype.getParamTags=function(){var F="";var D;var E=this.getParams();for(D in E){F+='<param name="'+D+'" value="'+E[D]+'" />'}return F};com.deconcept.FlashObject.prototype.getVariablePairs=function(){var D=new Array();var F;var E=this.getVariables();for(F in E){D.push(F+"="+E[F])}return D};com.deconcept.FlashObject.prototype.getHTML=function(){var F="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}F+='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'"';var G=this.getParams();for(var I in G){F+=" "+I+'="'+G[I]+'"'}var H=this.getVariablePairs().join("&");if(H.length>0){F+=' flashvars="'+H+'"'}F+="></embed>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}F+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" id="'+this.getAttribute("id")+'">';F+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var J=this.getParamTags();if(J.length>0){F+=J}var H=this.getVariablePairs().join("&");if(H.length>0){F+='<param name="flashvars" value="'+H+'" />'}F+="</object>"}return F};com.deconcept.FlashObject.prototype.write=function(B){if(this.skipDetect||this.getAttribute("doExpressInstall")||com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute("version"))){if(document.getElementById){if(this.getAttribute("doExpressInstall")){this.addVariable("MMredirectURL",escape(window.location));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}document.getElementById(B).innerHTML=this.getHTML()}}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(){var H=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var E=navigator.plugins["Shockwave Flash"];if(E&&E.description){H=new com.deconcept.PlayerVersion(E.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(window.ActiveXObject){try{var G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");H=new com.deconcept.PlayerVersion(G.GetVariable("$version").split(" ")[1].split(","))}catch(F){}}}return H};com.deconcept.PlayerVersion=function(B){if(arguments.length>1){B=arguments}this.major=parseInt(B[0])||0;this.minor=parseInt(B[1])||0;this.rev=parseInt(B[2])||0;this.toString=function(){return[this.major,this.minor,this.rev].join(".")}};com.deconcept.PlayerVersion.prototype.versionIsValid=function(B){if(this.major<B.major){return false}if(this.major>B.major){return true}if(this.minor<B.minor){return false}if(this.minor>B.minor){return true}if(this.rev<B.rev){return false
}return true};com.deconcept.util.getRequestParameter=function(F){var H=document.location.search||document.location.href.hash;if(H){var G=H.indexOf(F+"=");var E=(H.indexOf("&",G)>-1)?H.indexOf("&",G):H.length;if(H.length>1&&G>-1){return H.substring(H.indexOf("=",G)+1,E)}}return""};if(Array.prototype.push==null){Array.prototype.push=function(B){this[this.length]=B;return this.length}}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=F[I].split(".");G=YAHOO;for(J=(H[0]=="YAHOO")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]]}}return G};YAHOO.log=function(F,E,G){var H=YAHOO.widget.Logger;if(H&&H.log){return H.log(F,E,G)}else{return false}};YAHOO.register=function(M,R,J){var N=YAHOO.env.modules;if(!N[M]){N[M]={versions:[],builds:[]}}var L=N[M],O=J.version,P=J.build,Q=YAHOO.env.listeners;L.name=M;L.version=O;L.build=P;L.versions.push(O);L.builds.push(P);L.mainClass=R;for(var K=0;K<Q.length;K=K+1){Q[K](L)}if(R){R.VERSION=O;R.BUILD=P}else{YAHOO.log("mainClass is undefined for module "+M,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(B){return YAHOO.env.modules[B]||null};YAHOO.env.ua=function(){var E={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};var F=navigator.userAgent,D;if((/KHTML/).test(F)){E.webkit=1}D=F.match(/AppleWebKit\/([^\s]*)/);if(D&&D[1]){E.webkit=parseFloat(D[1]);if(/ Mobile\//.test(F)){E.mobile="Apple"}else{D=F.match(/NokiaN[^\/]*/);if(D){E.mobile=D[0]}}D=F.match(/AdobeAIR\/([^\s]*)/);if(D){E.air=D[0]}}if(!E.webkit){D=F.match(/Opera[\s\/]([^\s]*)/);if(D&&D[1]){E.opera=parseFloat(D[1]);D=F.match(/Opera Mini[^;]*/);if(D){E.mobile=D[0]}}else{D=F.match(/MSIE\s([^;]*)/);if(D&&D[1]){E.ie=parseFloat(D[1])}else{D=F.match(/Gecko\/([^\s]*)/);if(D){E.gecko=1;D=F.match(/rv:([^\s\)]*)/);if(D&&D[1]){E.gecko=parseFloat(D[1])}}}}}return E}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var H=YAHOO_config.listener,E=YAHOO.env.listeners,F=true,G;if(H){for(G=0;G<E.length;G=G+1){if(E[G]==H){F=false;break}}if(F){E.push(H)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var D=YAHOO.lang,E=["toString","valueOf"],F={isArray:function(A){if(A){return D.isNumber(A.length)&&D.isFunction(A.splice)}return false},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return typeof A==="function"},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||D.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(C,I){for(var J=0;J<E.length;J=J+1){var A=E[J],B=I[A];if(D.isFunction(B)&&B!=Object.prototype[A]){C[A]=B}}}:function(){},extend:function(B,A,C){if(!A||!B){throw new Error("extend failed, please check that all dependencies are included.")}var J=function(){};J.prototype=A.prototype;B.prototype=new J();B.prototype.constructor=B;B.superclass=A.prototype;if(A.prototype.constructor==Object.prototype.constructor){A.prototype.constructor=A}if(C){for(var K in C){if(D.hasOwnProperty(C,K)){B.prototype[K]=C[K]}}D._IEEnumFix(B.prototype,C)}},augmentObject:function(B,C){if(!C||!B){throw new Error("Absorb failed, verify dependencies.")}var L=arguments,J,A,K=L[2];if(K&&K!==true){for(J=2;J<L.length;J=J+1){B[L[J]]=C[L[J]]}}else{for(A in C){if(K||!(A in B)){B[A]=C[A]}}D._IEEnumFix(B,C)}},augmentProto:function(A,B){if(!B||!A){throw new Error("Augment failed, verify dependencies.")}var H=[A.prototype,B.prototype];for(var C=2;C<arguments.length;C=C+1){H.push(arguments[C])}D.augmentObject.apply(this,H)},dump:function(A,N){var Q,O,C=[],B="{...}",R="f(){...}",M=", ",P=" => ";if(!D.isObject(A)){return A+""}else{if(A instanceof Date||("nodeType" in A&&"tagName" in A)){return A}else{if(D.isFunction(A)){return R}}}N=(D.isNumber(N))?N:3;if(D.isArray(A)){C.push("[");for(Q=0,O=A.length;Q<O;Q=Q+1){if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}if(C.length>1){C.pop()}C.push("]")}else{C.push("{");for(Q in A){if(D.hasOwnProperty(A,Q)){C.push(Q+P);if(D.isObject(A[Q])){C.push((N>0)?D.dump(A[Q],N-1):B)}else{C.push(A[Q])}C.push(M)}}if(C.length>1){C.pop()}C.push("}")}return C.join("")},substitute:function(B,f,Y){var b,c,d,V,U,C,W=[],e,a="dump",X=" ",A="{",T="}";for(;;){b=B.lastIndexOf(A);if(b<0){break}c=B.indexOf(T,b);if(b+1>=c){break}e=B.substring(b+1,c);V=e;C=null;d=V.indexOf(X);if(d>-1){C=V.substring(d+1);V=V.substring(0,d)}U=f[V];if(Y){U=Y(V,U,C)}if(D.isObject(U)){if(D.isArray(U)){U=D.dump(U,parseInt(C,10))}else{C=C||"";var Z=C.indexOf(a);if(Z>-1){C=C.substring(4)}if(U.toString===Object.prototype.toString||Z>-1){U=D.dump(U,parseInt(C,10))}else{U=U.toString()}}}else{if(!D.isString(U)&&!D.isNumber(U)){U="~-"+W.length+"-~";W[W.length]=e}}B=B.substring(0,b)+U+B.substring(c+1)}for(b=W.length-1;b>=0;b=b-1){B=B.replace(new RegExp("~-"+b+"-~"),"{"+W[b]+"}","g")}return B},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"")}catch(A){return B}},merge:function(){var A={},C=arguments;for(var B=0,H=C.length;B<H;B=B+1){D.augmentObject(A,C[B],true)}return A},later:function(C,R,B,P,O){C=C||0;R=R||{};var Q=B,M=P,N,A;if(D.isString(B)){Q=R[B]}if(!Q){throw new TypeError("method undefined")}if(!D.isArray(M)){M=[P]}N=function(){Q.apply(R,M)
};A=(O)?setInterval(N,C):setTimeout(N,C);return{interval:O,cancel:function(){if(this.interval){clearInterval(A)}else{clearTimeout(A)}}}},isValue:function(A){return(D.isObject(A)||D.isString(A)||D.isNumber(A)||D.isBoolean(A))}};D.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(B,A){return B&&B.hasOwnProperty(A)}:function(B,A){return !D.isUndefined(B[A])&&B.constructor.prototype[A]!==B[A]};F.augmentObject(D,F,true);YAHOO.util.Lang=D;D.augment=D.augmentProto;YAHOO.augment=D.augmentProto;YAHOO.extend=D.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.6.0",build:"1321"});YAHOO.util.Get=function(){var Z={},a=0,U=0,h=false,Y=YAHOO.env.ua,T=YAHOO.lang;var c=function(A,D,G){var C=G||window,F=C.document,E=F.createElement(A);for(var B in D){if(D[B]&&YAHOO.lang.hasOwnProperty(D,B)){E.setAttribute(B,D[B])}}return E};var d=function(D,C,A){var B=A||"utf-8";return c("link",{id:"yui__dyn_"+(U++),type:"text/css",charset:B,rel:"stylesheet",href:D},C)};var W=function(D,C,A){var B=A||"utf-8";return c("script",{id:"yui__dyn_"+(U++),type:"text/javascript",charset:B,src:D},C)};var l=function(B,A){return{tId:B.tId,win:B.win,data:B.data,nodes:B.nodes,msg:A,purge:function(){i(this.tId)}}};var k=function(D,A){var C=Z[A],B=(T.isString(D))?C.win.document.getElementById(D):D;if(!B){V(A,"target node not found: "+D)}return B};var V=function(A,B){var D=Z[A];if(D.onFailure){var C=D.scope||D.win;D.onFailure.call(C,l(D,B))}};var j=function(A){var D=Z[A];D.finished=true;if(D.aborted){var B="transaction "+A+" was aborted";V(A,B);return }if(D.onSuccess){var C=D.scope||D.win;D.onSuccess.call(C,l(D))}};var X=function(A){var C=Z[A];if(C.onTimeout){var B=C.context||C;C.onTimeout.call(B,l(C))}};var f=function(E,A){var F=Z[E];if(F.timer){F.timer.cancel()}if(F.aborted){var C="transaction "+E+" was aborted";V(E,C);return }if(A){F.url.shift();if(F.varName){F.varName.shift()}}else{F.url=(T.isString(F.url))?[F.url]:F.url;if(F.varName){F.varName=(T.isString(F.varName))?[F.varName]:F.varName}}var I=F.win,J=I.document,K=J.getElementsByTagName("head")[0],D;if(F.url.length===0){if(F.type==="script"&&Y.webkit&&Y.webkit<420&&!F.finalpass&&!F.varName){var B=W(null,F.win,F.charset);B.innerHTML='YAHOO.util.Get._finalize("'+E+'");';F.nodes.push(B);K.appendChild(B)}else{j(E)}return }var G=F.url[0];if(!G){F.url.shift();return f(E)}if(F.timeout){F.timer=T.later(F.timeout,F,X,E)}if(F.type==="script"){D=W(G,I,F.charset)}else{D=d(G,I,F.charset)}g(F.type,D,E,G,I,F.url.length);F.nodes.push(D);if(F.insertBefore){var H=k(F.insertBefore,E);if(H){H.parentNode.insertBefore(D,H)}}else{K.appendChild(D)}if((Y.webkit||Y.gecko)&&F.type==="css"){f(E,G)}};var b=function(){if(h){return }h=true;for(var B in Z){var A=Z[B];if(A.autopurge&&A.finished){i(A.tId);delete Z[B]}}h=false};var i=function(C){var H=Z[C];if(H){var F=H.nodes,E=F.length,G=H.win.document,A=G.getElementsByTagName("head")[0];if(H.insertBefore){var B=k(H.insertBefore,C);if(B){A=B.parentNode}}for(var D=0;D<E;D=D+1){A.removeChild(F[D])}H.nodes=[]}};var e=function(C,D,B){var E="q"+(a++);B=B||{};if(a%YAHOO.util.Get.PURGE_THRESH===0){b()}Z[E]=T.merge(B,{tId:E,type:C,url:D,finished:false,aborted:false,nodes:[]});var A=Z[E];A.win=A.win||window;A.scope=A.scope||A.win;A.autopurge=("autopurge" in A)?A.autopurge:(C==="script")?true:false;T.later(0,A,f,E);return{tId:E}};var g=function(H,C,D,F,B,A,I){var J=I||f;if(Y.ie){C.onreadystatechange=function(){var K=this.readyState;if("loaded"===K||"complete"===K){C.onreadystatechange=null;J(D,F)}}}else{if(Y.webkit){if(H==="script"){if(Y.webkit>=420){C.addEventListener("load",function(){J(D,F)})}else{var G=Z[D];if(G.varName){var E=YAHOO.util.Get.POLL_FREQ;G.maxattempts=YAHOO.util.Get.TIMEOUT/E;G.attempts=0;G._cache=G.varName[0].split(".");G.timer=T.later(E,G,function(K){var N=this._cache,O=N.length,P=this.win,M;for(M=0;M<O;M=M+1){P=P[N[M]];if(!P){this.attempts++;if(this.attempts++>this.maxattempts){var L="Over retry limit, giving up";G.timer.cancel();V(D,L)}else{}return }}G.timer.cancel();J(D,F)},null,true)}else{T.later(YAHOO.util.Get.POLL_FREQ,null,J,[D,F])}}}}else{C.onload=function(){J(D,F)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(A){T.later(0,null,j,A)},abort:function(B){var A=(T.isString(B))?B:B.tId;var C=Z[A];if(C){C.aborted=true}},script:function(B,A){return e("script",B,A)},css:function(B,A){return e("css",B,A)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.6.0",build:"1321"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{yahoo:true,get:true},info:{root:"2.6.0/build/",base:"http://yui.yahooapis.com/2.6.0/build/",comboBase:"http://yui.yahooapis.com/combo?",skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["reset","fonts","grids","base"],rollup:3},dupsAllowed:["yahoo","get"],moduleInfo:{animation:{type:"js",path:"animation/animation-min.js",requires:["dom","event"]},autocomplete:{type:"js",path:"autocomplete/autocomplete-min.js",requires:["dom","event","datasource"],optional:["connection","animation"],skinnable:true},base:{type:"css",path:"base/base-min.css",after:["reset","fonts","grids"]},button:{type:"js",path:"button/button-min.js",requires:["element"],optional:["menu"],skinnable:true},calendar:{type:"js",path:"calendar/calendar-min.js",requires:["event","dom"],skinnable:true},carousel:{type:"js",path:"carousel/carousel-beta-min.js",requires:["element"],optional:["animation"],skinnable:true},charts:{type:"js",path:"charts/charts-experimental-min.js",requires:["element","json","datasource"]},colorpicker:{type:"js",path:"colorpicker/colorpicker-min.js",requires:["slider","element"],optional:["animation"],skinnable:true},connection:{type:"js",path:"connection/connection-min.js",requires:["event"]},container:{type:"js",path:"container/container-min.js",requires:["dom","event"],optional:["dragdrop","animation","connection"],supersedes:["containercore"],skinnable:true},containercore:{type:"js",path:"container/container_core-min.js",requires:["dom","event"],pkg:"container"},cookie:{type:"js",path:"cookie/cookie-min.js",requires:["yahoo"]},datasource:{type:"js",path:"datasource/datasource-min.js",requires:["event"],optional:["connection"]},datatable:{type:"js",path:"datatable/datatable-min.js",requires:["element","datasource"],optional:["calendar","dragdrop","paginator"],skinnable:true},dom:{type:"js",path:"dom/dom-min.js",requires:["yahoo"]},dragdrop:{type:"js",path:"dragdrop/dragdrop-min.js",requires:["dom","event"]},editor:{type:"js",path:"editor/editor-min.js",requires:["menu","element","button"],optional:["animation","dragdrop"],supersedes:["simpleeditor"],skinnable:true},element:{type:"js",path:"element/element-beta-min.js",requires:["dom","event"]},event:{type:"js",path:"event/event-min.js",requires:["yahoo"]},fonts:{type:"css",path:"fonts/fonts-min.css"},get:{type:"js",path:"get/get-min.js",requires:["yahoo"]},grids:{type:"css",path:"grids/grids-min.css",requires:["fonts"],optional:["reset"]},history:{type:"js",path:"history/history-min.js",requires:["event"]},imagecropper:{type:"js",path:"imagecropper/imagecropper-beta-min.js",requires:["dom","event","dragdrop","element","resize"],skinnable:true},imageloader:{type:"js",path:"imageloader/imageloader-min.js",requires:["event","dom"]},json:{type:"js",path:"json/json-min.js",requires:["yahoo"]},layout:{type:"js",path:"layout/layout-min.js",requires:["dom","event","element"],optional:["animation","dragdrop","resize","selector"],skinnable:true},logger:{type:"js",path:"logger/logger-min.js",requires:["event","dom"],optional:["dragdrop"],skinnable:true},menu:{type:"js",path:"menu/menu-min.js",requires:["containercore"],skinnable:true},paginator:{type:"js",path:"paginator/paginator-min.js",requires:["element"],skinnable:true},profiler:{type:"js",path:"profiler/profiler-min.js",requires:["yahoo"]},profilerviewer:{type:"js",path:"profilerviewer/profilerviewer-beta-min.js",requires:["profiler","yuiloader","element"],skinnable:true},reset:{type:"css",path:"reset/reset-min.css"},"reset-fonts-grids":{type:"css",path:"reset-fonts-grids/reset-fonts-grids.css",supersedes:["reset","fonts","grids","reset-fonts"],rollup:4},"reset-fonts":{type:"css",path:"reset-fonts/reset-fonts.css",supersedes:["reset","fonts"],rollup:2},resize:{type:"js",path:"resize/resize-min.js",requires:["dom","event","dragdrop","element"],optional:["animation"],skinnable:true},selector:{type:"js",path:"selector/selector-beta-min.js",requires:["yahoo","dom"]},simpleeditor:{type:"js",path:"editor/simpleeditor-min.js",requires:["element"],optional:["containercore","menu","button","animation","dragdrop"],skinnable:true,pkg:"editor"},slider:{type:"js",path:"slider/slider-min.js",requires:["dragdrop"],optional:["animation"],skinnable:true},tabview:{type:"js",path:"tabview/tabview-min.js",requires:["element"],optional:["connection"],skinnable:true},treeview:{type:"js",path:"treeview/treeview-min.js",requires:["event","dom"],skinnable:true},uploader:{type:"js",path:"uploader/uploader-experimental.js",requires:["element"]},utilities:{type:"js",path:"utilities/utilities.js",supersedes:["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],rollup:8},yahoo:{type:"js",path:"yahoo/yahoo-min.js"},"yahoo-dom-event":{type:"js",path:"yahoo-dom-event/yahoo-dom-event.js",supersedes:["yahoo","event","dom"],rollup:3},yuiloader:{type:"js",path:"yuiloader/yuiloader-min.js",supersedes:["yahoo","get"]},"yuiloader-dom-event":{type:"js",path:"yuiloader-dom-event/yuiloader-dom-event.js",supersedes:["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],rollup:5},yuitest:{type:"js",path:"yuitest/yuitest-min.js",requires:["logger"],skinnable:true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;
i<a.length;i=i+1){o[a[i]]=true}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i)}}return a}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2)},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i}}return -1},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true}return o},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a))}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name)}});this.skin=lang.merge(YUI.info.skin);this._config(o)};Y.util.YUILoader.prototype={FILTERS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i])}else{this[i]=o[i]}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger")}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y}}this.filter=this.FILTERS[f]}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a)},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({name:name,type:"css",path:sinf.base+skin+"/"+sinf.path,after:sinf.after,rollup:sinf.rollup,ext:ext})}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({name:name,type:"css",after:sinf.after,path:pkg+"/"+sinf.base+skin+"/"+mod+".css",ext:ext})}}return name},getRequires:function(mod){if(!mod){return[]}if(!this.dirty&&mod.expanded){return mod.expanded}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m))}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]))}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o}if(m[ckey]){return m[ckey]}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm))}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i])}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey]},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup()}this._reduce();this._sort();this.dirty=false}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name)}}else{smod=this._addSkin(this.skin.defaultSkin,name)}m.requires.push(smod)}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules)}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore)}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]]}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j))}}this.loaded=l},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req)}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod}return s},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]}}return null},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m}}}this.rollups=rollups}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue}var skin=(m.ext)?false:this.parseSkin(i),c=0;
if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m)}}}if(!rolled){break}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i]}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j]}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]]}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false})}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false})}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true}return false};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i)}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break}}if(moved){break}else{p=p+1}}if(!moved){break}}this.sorted=s},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1)},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target}else{css+=target}this._combining.push(s[i])}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true}this.loadNext(o.data)},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self})}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self})}else{loadScript()}return }else{this.loadNext(this._loading)}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine()}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js")};this.insert(null,"css");return }this.loadNext()},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox")}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js")};this.insert(null,"css");return }if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js")},scope:this},"js");return }this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort()}return }if(m.type!=="js"){this._loadCount++;continue}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data})}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";
var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data})}else{this._onFailure.call(this.varName+" reference failure")}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data})},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData))}},loadNext:function(mname){if(!this._loading){return }if(mname){if(mname!==this._loading){return }this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data})}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue}if(s[i]===this._loading){return }m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return }if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data)};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return }}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this)}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data})}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load()}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp),f.replaceStr):str},_url:function(path){var u=this.base||"",f=this.filter;u=u+path;return this._filter(u)}}})();(function(){var S=YAHOO.util,e=YAHOO.lang,Y,a,Z={},d={},W=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var R=YAHOO.env.ua.opera,X=YAHOO.env.ua.webkit,T=YAHOO.env.ua.gecko,c=YAHOO.env.ua.ie;var f={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var V=function(B){if(!f.HYPHEN.test(B)){return B}if(Z[B]){return Z[B]}var A=B;while(f.HYPHEN.exec(A)){A=A.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}Z[B]=A;return A};var U=function(A){var B=d[A];if(!B){B=new RegExp("(?:^|\\s+)"+A+"(?:\\s+|$)");d[A]=B}return B};if(W.defaultView&&W.defaultView.getComputedStyle){Y=function(D,A){var B=null;if(A=="float"){A="cssFloat"}var C=D.ownerDocument.defaultView.getComputedStyle(D,"");if(C){B=C[V(A)]}return D.style[A]||B}}else{if(W.documentElement.currentStyle&&c){Y=function(E,C){switch(V(C)){case"opacity":var A=100;try{A=E.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(B){try{A=E.filters("alpha").opacity}catch(B){}}return A/100;case"float":C="styleFloat";default:var D=E.currentStyle?E.currentStyle[C]:null;return(E.style[C]||D)}}}else{Y=function(B,A){return B.style[A]}}}if(c){a=function(C,B,A){switch(B){case"opacity":if(e.isString(C.style.filter)){C.style.filter="alpha(opacity="+A*100+")";if(!C.currentStyle||!C.currentStyle.hasLayout){C.style.zoom=1}}break;case"float":B="styleFloat";default:C.style[B]=A}}}else{a=function(C,B,A){if(B=="float"){B="cssFloat"}C.style[B]=A}}var Q=function(B,A){return B&&B.nodeType==1&&(!A||A(B))};YAHOO.util.Dom={get:function(B){if(B){if(B.nodeType||B.item){return B}if(typeof B==="string"){return W.getElementById(B)}if("length" in B){var A=[];for(var C=0,D=B.length;C<D;++C){A[A.length]=S.Dom.get(B[C])}return A}return B}return null},getStyle:function(C,A){A=V(A);var B=function(D){return Y(D,A)};return S.Dom.batch(C,B,S.Dom,true)},setStyle:function(D,B,A){B=V(B);var C=function(E){a(E,B,A)};S.Dom.batch(D,C,S.Dom,true)},getXY:function(B){var A=function(C){if((C.parentNode===null||C.offsetParent===null||this.getStyle(C,"display")=="none")&&C!=C.ownerDocument.body){return false}return b(C)};return S.Dom.batch(B,A,S.Dom,true)},getX:function(B){var A=function(C){return S.Dom.getXY(C)[0]};return S.Dom.batch(B,A,S.Dom,true)},getY:function(B){var A=function(C){return S.Dom.getXY(C)[1]};return S.Dom.batch(B,A,S.Dom,true)},setXY:function(D,A,B){var C=function(E){var F=this.getStyle(E,"position");if(F=="static"){this.setStyle(E,"position","relative");F="relative"}var H=this.getXY(E);if(H===false){return false}var I=[parseInt(this.getStyle(E,"left"),10),parseInt(this.getStyle(E,"top"),10)];if(isNaN(I[0])){I[0]=(F=="relative")?0:E.offsetLeft}if(isNaN(I[1])){I[1]=(F=="relative")?0:E.offsetTop}if(A[0]!==null){E.style.left=A[0]-H[0]+I[0]+"px"}if(A[1]!==null){E.style.top=A[1]-H[1]+I[1]+"px"}if(!B){var G=this.getXY(E);if((A[0]!==null&&G[0]!=A[0])||(A[1]!==null&&G[1]!=A[1])){this.setXY(E,A,true)}}};S.Dom.batch(D,C,S.Dom,true)},setX:function(A,B){S.Dom.setXY(A,[B,null])},setY:function(B,A){S.Dom.setXY(B,[null,A])},getRegion:function(B){var A=function(D){if((D.parentNode===null||D.offsetParent===null||this.getStyle(D,"display")=="none")&&D!=D.ownerDocument.body){return false
}var C=S.Region.getRegion(D);return C};return S.Dom.batch(B,A,S.Dom,true)},getClientWidth:function(){return S.Dom.getViewportWidth()},getClientHeight:function(){return S.Dom.getViewportHeight()},getElementsByClassName:function(E,A,D,C){E=e.trim(E);A=A||"*";D=(D)?S.Dom.get(D):null||W;if(!D){return[]}var H=[],I=D.getElementsByTagName(A),B=U(E);for(var G=0,F=I.length;G<F;++G){if(B.test(I[G].className)){H[H.length]=I[G];if(C){C.call(I[G],I[G])}}}return H},hasClass:function(B,C){var D=U(C);var A=function(E){return D.test(E.className)};return S.Dom.batch(B,A,S.Dom,true)},addClass:function(B,C){var A=function(D){if(this.hasClass(D,C)){return false}D.className=e.trim([D.className,C].join(" "));return true};return S.Dom.batch(B,A,S.Dom,true)},removeClass:function(B,C){var D=U(C);var A=function(E){var F=false,H=E.className;if(C&&H&&this.hasClass(E,C)){E.className=H.replace(D," ");if(this.hasClass(E,C)){this.removeClass(E,C)}E.className=e.trim(E.className);if(E.className===""){var G=(E.hasAttribute)?"class":"className";E.removeAttribute(G)}F=true}return F};return S.Dom.batch(B,A,S.Dom,true)},replaceClass:function(B,D,E){if(!E||D===E){return false}var C=U(D);var A=function(F){if(!this.hasClass(F,D)){this.addClass(F,E);return true}F.className=F.className.replace(C," "+E+" ");if(this.hasClass(F,D)){this.removeClass(F,D)}F.className=e.trim(F.className);return true};return S.Dom.batch(B,A,S.Dom,true)},generateId:function(C,A){A=A||"yui-gen";var B=function(E){if(E&&E.id){return E.id}var D=A+YAHOO.env._id_counter++;if(E){E.id=D}return D};return S.Dom.batch(C,B,S.Dom,true)||B.apply(S.Dom,arguments)},isAncestor:function(B,A){B=S.Dom.get(B);A=S.Dom.get(A);var C=false;if((B&&A)&&(B.nodeType&&A.nodeType)){if(B.contains&&B!==A){C=B.contains(A)}else{if(B.compareDocumentPosition){C=!!(B.compareDocumentPosition(A)&16)}}}else{}return C},inDocument:function(A){return this.isAncestor(W.documentElement,A)},getElementsBy:function(H,F,E,C){F=F||"*";E=(E)?S.Dom.get(E):null||W;if(!E){return[]}var D=[],A=E.getElementsByTagName(F);for(var B=0,G=A.length;B<G;++B){if(H(A[B])){D[D.length]=A[B];if(C){C(A[B])}}}return D},batch:function(C,H,A,E){C=(C&&(C.tagName||C.item))?C:S.Dom.get(C);if(!C||!H){return false}var D=(E)?A:window;if(C.tagName||C.length===undefined){return H.call(D,C,A)}var B=[];for(var F=0,G=C.length;F<G;++F){B[B.length]=H.call(D,C[F],A)}return B},getDocumentHeight:function(){var A=(W.compatMode!="CSS1Compat")?W.body.scrollHeight:W.documentElement.scrollHeight;var B=Math.max(A,S.Dom.getViewportHeight());return B},getDocumentWidth:function(){var A=(W.compatMode!="CSS1Compat")?W.body.scrollWidth:W.documentElement.scrollWidth;var B=Math.max(A,S.Dom.getViewportWidth());return B},getViewportHeight:function(){var B=self.innerHeight;var A=W.compatMode;if((A||c)&&!R){B=(A=="CSS1Compat")?W.documentElement.clientHeight:W.body.clientHeight}return B},getViewportWidth:function(){var B=self.innerWidth;var A=W.compatMode;if(A||c){B=(A=="CSS1Compat")?W.documentElement.clientWidth:W.body.clientWidth}return B},getAncestorBy:function(B,A){while((B=B.parentNode)){if(Q(B,A)){return B}}return null},getAncestorByClassName:function(B,C){B=S.Dom.get(B);if(!B){return null}var A=function(D){return S.Dom.hasClass(D,C)};return S.Dom.getAncestorBy(B,A)},getAncestorByTagName:function(B,C){B=S.Dom.get(B);if(!B){return null}var A=function(D){return D.tagName&&D.tagName.toUpperCase()==C.toUpperCase()};return S.Dom.getAncestorBy(B,A)},getPreviousSiblingBy:function(B,A){while(B){B=B.previousSibling;if(Q(B,A)){return B}}return null},getPreviousSibling:function(A){A=S.Dom.get(A);if(!A){return null}return S.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(B,A){while(B){B=B.nextSibling;if(Q(B,A)){return B}}return null},getNextSibling:function(A){A=S.Dom.get(A);if(!A){return null}return S.Dom.getNextSiblingBy(A)},getFirstChildBy:function(C,A){var B=(Q(C.firstChild,A))?C.firstChild:null;return B||S.Dom.getNextSiblingBy(C.firstChild,A)},getFirstChild:function(B,A){B=S.Dom.get(B);if(!B){return null}return S.Dom.getFirstChildBy(B)},getLastChildBy:function(C,A){if(!C){return null}var B=(Q(C.lastChild,A))?C.lastChild:null;return B||S.Dom.getPreviousSiblingBy(C.lastChild,A)},getLastChild:function(A){A=S.Dom.get(A);return S.Dom.getLastChildBy(A)},getChildrenBy:function(C,A){var B=S.Dom.getFirstChildBy(C,A);var D=B?[B]:[];S.Dom.getNextSiblingBy(B,function(E){if(!A||A(E)){D[D.length]=E}return false});return D},getChildren:function(A){A=S.Dom.get(A);if(!A){}return S.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||W;return Math.max(A.documentElement.scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||W;return Math.max(A.documentElement.scrollTop,A.body.scrollTop)},insertBefore:function(A,B){A=S.Dom.get(A);B=S.Dom.get(B);if(!A||!B||!B.parentNode){return null}return B.parentNode.insertBefore(A,B)},insertAfter:function(A,B){A=S.Dom.get(A);B=S.Dom.get(B);if(!A||!B||!B.parentNode){return null}if(B.nextSibling){return B.parentNode.insertBefore(A,B.nextSibling)
}else{return B.parentNode.appendChild(A)}},getClientRegion:function(){var B=S.Dom.getDocumentScrollTop(),C=S.Dom.getDocumentScrollLeft(),A=S.Dom.getViewportWidth()+C,D=S.Dom.getViewportHeight()+B;return new S.Region(B,A,D,C)}};var b=function(){if(W.documentElement.getBoundingClientRect){return function(B){var A=B.getBoundingClientRect(),C=Math.round;var D=B.ownerDocument;return[C(A.left+S.Dom.getDocumentScrollLeft(D)),C(A.top+S.Dom.getDocumentScrollTop(D))]}}else{return function(B){var A=[B.offsetLeft,B.offsetTop];var C=B.offsetParent;var D=(X&&S.Dom.getStyle(B,"position")=="absolute"&&B.offsetParent==B.ownerDocument.body);if(C!=B){while(C){A[0]+=C.offsetLeft;A[1]+=C.offsetTop;if(!D&&X&&S.Dom.getStyle(C,"position")=="absolute"){D=true}C=C.offsetParent}}if(D){A[0]-=B.ownerDocument.body.offsetLeft;A[1]-=B.ownerDocument.body.offsetTop}C=B.parentNode;while(C.tagName&&!f.ROOT_TAG.test(C.tagName)){if(C.scrollTop||C.scrollLeft){A[0]-=C.scrollLeft;A[1]-=C.scrollTop}C=C.parentNode}return A}}}()})();YAHOO.util.Region=function(G,F,E,H){this.top=G;this[1]=G;this.right=F;this.bottom=E;this.left=H;this[0]=H};YAHOO.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top);var H=Math.min(this.right,G.right);var F=Math.min(this.bottom,G.bottom);var J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top);var H=Math.max(this.right,G.right);var F=Math.max(this.bottom,G.bottom);var J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J);var K=H[1];var I=H[0]+J.offsetWidth;var G=H[1]+J.offsetHeight;var L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}this.x=this.right=this.left=this[0]=C;this.y=this.top=this.bottom=this[1]=D};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.6.0",build:"1321"});YAHOO.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G="_YUICEOnSubscribe";if(H!==G){this.subscribeEvent=new YAHOO.util.CustomEvent(G,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(F,E,D){if(!F){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(F,E,D)}this.subscribers.push(new YAHOO.util.Subscriber(F,E,D))},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){this.lastError=null;var T=[],Z=this.subscribers.length;if(!Z&&this.silent){return true}var V=[].slice.call(arguments,0),X=true,N,U=false;if(!this.silent){}var O=this.subscribers.slice(),Q=YAHOO.util.Event.throwErrors;for(N=0;N<Z;++N){var R=O[N];if(!R){U=true}else{if(!this.silent){}var S=R.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var P=null;if(V.length>0){P=V[0]}try{X=R.fn.call(S,P,R.obj)}catch(Y){this.lastError=Y;if(Q){throw Y}}}else{try{X=R.fn.call(S,this.type,V,R.obj)}catch(W){this.lastError=W;if(Q){throw W}}}if(false===X){if(!this.silent){}break}}}return(X!==false)},unsubscribeAll:function(){for(var B=this.subscribers.length-1;B>-1;B--){this._delete(B)}this.subscribers=[];return B},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(F,E,D){this.fn=F;this.obj=YAHOO.lang.isUndefined(E)?null:E;this.override=D};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var U=false;var T=[];var S=[];var V=[];var X=[];var N=0;var W=[];var O=[];var P=0;var M={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var R=YAHOO.env.ua.ie?"focusin":"focus";var Q=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){var B=this;
var A=function(){B._tryPreloadAttach()};this._interval=setInterval(A,this.POLL_INTERVAL)}},onAvailable:function(B,E,A,C,D){var G=(YAHOO.lang.isString(B))?[B]:B;for(var F=0;F<G.length;F=F+1){W.push({id:G[F],fn:E,obj:A,override:C,checkReady:D})}N=this.POLL_RETRYS;this.startInterval()},onContentReady:function(B,D,A,C){this.onAvailable(B,D,A,C,true)},onDOMReady:function(C,A,B){if(this.DOMReady){setTimeout(function(){var D=window;if(B){if(B===true){D=A}else{D=B}}C.call(D,"DOMReady",[],A)},0)}else{this.DOMReadyEvent.subscribe(C,A,B)}},_addListener:function(L,d,C,H,c,f){if(!C||!C.call){return false}if(this._isValidCollection(L)){var B=true;for(var G=0,E=L.length;G<E;++G){B=this._addListener(L[G],d,C,H,c,f)&&B}return B}else{if(YAHOO.lang.isString(L)){var I=this.getEl(L);if(I){L=I}else{this.onAvailable(L,function(){YAHOO.util.Event._addListener(L,d,C,H,c,f)});return true}}}if(!L){return false}if("unload"==d&&H!==this){S[S.length]=[L,d,C,H,c,f];return true}var e=L;if(c){if(c===true){e=H}else{e=c}}var K=function(Y){return C.call(e,YAHOO.util.Event.getEvent(Y,L),H)};var A=[L,d,C,K,e,H,c,f];var F=T.length;T[F]=A;if(this.useLegacyEvent(L,d)){var J=this.getLegacyIndex(L,d);if(J==-1||L!=V[J][0]){J=V.length;O[L.id+d]=J;V[J]=[L,d,L["on"+d]];X[J]=[];L["on"+d]=function(Y){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(Y),J)}}X[J].push(A)}else{try{this._simpleAdd(L,d,K,f)}catch(D){this.lastError=D;this._removeListener(L,d,C,f);return false}}return true},addListener:function(C,A,D,B,E){return this._addListener(C,A,D,B,E,false)},addFocusListener:function(B,C,A,D){return this._addListener(B,R,C,A,D,true)},removeFocusListener:function(A,B){return this._removeListener(A,R,B,true)},addBlurListener:function(B,C,A,D){return this._addListener(B,Q,C,A,D,true)},removeBlurListener:function(A,B){return this._removeListener(A,Q,B,true)},fireLegacyEvent:function(F,H){var D=true,J,B,C,A,E;B=X[H].slice();for(var I=0,G=B.length;I<G;++I){C=B[I];if(C&&C[this.WFN]){A=C[this.ADJ_SCOPE];E=C[this.WFN].call(A,F);D=(D&&E)}}J=V[H];if(J&&J[2]){J[2](F)}return D},getLegacyIndex:function(B,A){var C=this.generateId(B)+A;if(typeof O[C]=="undefined"){return -1}else{return O[C]}},useLegacyEvent:function(B,A){return(this.webkit&&this.webkit<419&&("click"==A||"dblclick"==A))},_removeListener:function(L,Z,D,A){var I,F,B;if(typeof L=="string"){L=this.getEl(L)}else{if(this._isValidCollection(L)){var C=true;for(I=L.length-1;I>-1;I--){C=(this._removeListener(L[I],Z,D,A)&&C)}return C}}if(!D||!D.call){return this.purgeElement(L,false,Z)}if("unload"==Z){for(I=S.length-1;I>-1;I--){B=S[I];if(B&&B[0]==L&&B[1]==Z&&B[2]==D){S.splice(I,1);return true}}return false}var H=null;var G=arguments[4];if("undefined"===typeof G){G=this._getCacheIndex(L,Z,D)}if(G>=0){H=T[G]}if(!L||!H){return false}if(this.useLegacyEvent(L,Z)){var J=this.getLegacyIndex(L,Z);var K=X[J];if(K){for(I=0,F=K.length;I<F;++I){B=K[I];if(B&&B[this.EL]==L&&B[this.TYPE]==Z&&B[this.FN]==D){K.splice(I,1);break}}}}else{try{this._simpleRemove(L,Z,H[this.WFN],A)}catch(E){this.lastError=E;return false}}delete T[G][this.WFN];delete T[G][this.FN];T.splice(G,1);return true},removeListener:function(B,A,C){return this._removeListener(B,A,C,false)},getTarget:function(A,B){var C=A.target||A.srcElement;return this.resolveTextNode(C)},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode}}catch(B){}return A},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement}else{if(A.type=="mouseover"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(A){if(!A.time){var B=new Date().getTime();try{A.time=B}catch(C){this.lastError=C;return B}}return A.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(B,D){var C=B||window.event;if(!C){var A=this.getEvent.caller;while(A){C=A.arguments[0];if(C&&Event==C.constructor){break}A=A.caller}}return C},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in M)){B=M[B]}return B},_getCacheIndex:function(B,A,C){for(var D=0,E=T.length;D<E;D=D+1){var F=T[D];if(F&&F[this.FN]==C&&F[this.EL]==B&&F[this.TYPE]==A){return D}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+P;++P;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(A){if(!U){U=true;
var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(W.length===0){N=0;clearInterval(this._interval);this._interval=null;return }if(this.locked){return }if(this.isIE){if(!this.DOMReady){this.startInterval();return }}this.locked=true;var B=!U;if(!B){B=(N>0&&W.length>0)}var C=[];var A=function(J,I){var K=J;if(I.override){if(I.override===true){K=I.obj}else{K=I.override}}I.fn.call(K,I.obj)};var G,H,D,E,F=[];for(G=0,H=W.length;G<H;G=G+1){D=W[G];if(D){E=this.getEl(D.id);if(E){if(D.checkReady){if(U||E.nextSibling||!B){F.push(D);W[G]=null}}else{A(E,D);W[G]=null}}else{C.push(D)}}}for(G=0,H=F.length;G<H;G=G+1){D=F[G];A(this.getEl(D.id),D)}N--;if(B){for(G=W.length-1;G>-1;G--){D=W[G];if(!D||!D.id){W.splice(G,1)}}this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false},purgeElement:function(D,C,A){var F=(YAHOO.lang.isString(D))?this.getEl(D):D;var B=this.getListeners(F,A),E,H;if(B){for(E=B.length-1;E>-1;E--){var G=B[E];this._removeListener(F,G.type,G.fn,G.capture)}}if(C&&F&&F.childNodes){for(E=0,H=F.childNodes.length;E<H;++E){this.purgeElement(F.childNodes[E],C,A)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[T,S]}else{if(J==="unload"){I=[S]}else{I=[T]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],capture:G[this.CAPTURE],index:D})}}}}return(E.length)?E:null},_unload:function(C){var I=YAHOO.util.Event,F,G,H,D,E,B=S.slice();for(F=0,D=S.length;F<D;++F){H=B[F];if(H){var A=window;if(H[I.ADJ_SCOPE]){if(H[I.ADJ_SCOPE]===true){A=H[I.UNLOAD_OBJ]}else{A=H[I.ADJ_SCOPE]}}H[I.FN].call(A,I.getEvent(C,H[I.EL]),H[I.UNLOAD_OBJ]);B[F]=null;H=null;A=null}}S=null;if(T){for(G=T.length-1;G>-1;G--){H=T[G];if(H){I._removeListener(H[I.EL],H[I.TYPE],H[I.FN],H[I.CAPTURE],G)}}H=null}V=null;I._simpleRemove(window,"unload",I._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(B,A,C,D){B.addEventListener(A,C,(D))}}else{if(window.attachEvent){return function(B,A,C,D){B.attachEvent("on"+A,C)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(B,A,C,D){B.removeEventListener(A,C,(D))}}else{if(window.detachEvent){return function(B,A,C){B.detachEvent("on"+A,C)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;A.onFocus=A.addFocusListener;A.onBlur=A.addBlurListener;if(A.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,override:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(P,J){this.__yui_events=this.__yui_events||{};var M=J||{};var N=this.__yui_events;if(N[P]){}else{var O=M.scope||this;var R=(M.silent);var L=new YAHOO.util.CustomEvent(P,O,R,YAHOO.util.CustomEvent.FLAT);N[P]=L;if(M.onSubscribeCallback){L.subscribeEvent.subscribe(M.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var Q=this.__yui_subscribers[P];if(Q){for(var K=0;K<Q.length;++K){L.subscribe(Q[K].fn,Q[K].obj,Q[K].override)}}}return N[P]},fireEvent:function(K,L,H,M){this.__yui_events=this.__yui_events||{};var I=this.__yui_events[K];if(!I){return null}var N=[];for(var J=1;J<arguments.length;
++J){N.push(arguments[J])}return I.fire.apply(I,N)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};YAHOO.util.KeyListener=function(G,H,L,K){if(!G){}else{if(!H){}else{if(!L){}}}if(!K){K=YAHOO.util.KeyListener.KEYDOWN}var J=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof G=="string"){G=document.getElementById(G)}if(typeof L=="function"){J.subscribe(L)}else{J.subscribe(L.fn,L.scope,L.correctScope)}function I(A,B){if(!H.shift){H.shift=false}if(!H.alt){H.alt=false}if(!H.ctrl){H.ctrl=false}if(A.shiftKey==H.shift&&A.altKey==H.alt&&A.ctrlKey==H.ctrl){var D;if(H.keys instanceof Array){for(var C=0;C<H.keys.length;C++){D=H.keys[C];if(D==A.charCode){J.fire(A.charCode,A);break}else{if(D==A.keyCode){J.fire(A.keyCode,A);break}}}}else{D=H.keys;if(D==A.charCode){J.fire(A.charCode,A)}else{if(D==A.keyCode){J.fire(A.keyCode,A)}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(G,K,I);this.enabledEvent.fire(H)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(G,K,I);this.disabledEvent.fire(H)}this.enabled=false};this.toString=function(){return"KeyListener ["+H.keys+"] "+G.tagName+(G.id?"["+G.id+"]":"")}};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.util.KeyListener.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register("event",YAHOO.util.Event,{version:"2.6.0",build:"1321"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(D){var C=YAHOO.util.Event.getTarget(D);if(C.nodeName.toLowerCase()=="input"&&(C.type&&C.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(C.name)+"="+encodeURIComponent(C.value)}});return true}return false})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(B){this._msxml_progid.unshift(B)},setDefaultPostHeader:function(B){if(typeof B=="string"){this._default_post_header=B}else{if(typeof B=="boolean"){this._use_default_post_header=B}}},setDefaultXhrHeader:function(B){if(typeof B=="string"){this._default_xhr_header=B}else{this._use_default_xhr_header=B}},setPollingInterval:function(B){if(typeof B=="number"&&isFinite(B)){this._polling_interval=B}},createXhrObject:function(H){var I,G;try{G=new XMLHttpRequest();I={conn:G,tId:H}}catch(J){for(var L=0;L<this._msxml_progid.length;++L){try{G=new ActiveXObject(this._msxml_progid[L]);I={conn:G,tId:H};break}catch(K){}}}finally{return I}},getConnectionObject:function(E){var G;var F=this._transaction_id;try{if(!E){G=this.createXhrObject(F)}else{G={};G.tId=F;G.isUpload=true}if(G){this._transaction_id++}}catch(H){}finally{return G}},asyncRequest:function(H,K,I,G){var J=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var L=(I&&I.argument)?I.argument:null;if(!J){return null}else{if(I&&I.customevents){this.initCustomEvents(J,I)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(J,I,K,G);return J}if(H.toUpperCase()=="GET"){if(this._sFormData.length!==0){K+=((K.indexOf("?")==-1)?"?":"&")+this._sFormData}}else{if(H.toUpperCase()=="POST"){G=G?this._sFormData+"&"+G:this._sFormData}}}if(H.toUpperCase()=="GET"&&(I&&I.cache===false)){K+=((K.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}J.conn.open(H,K,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if((H.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header)}if(this._has_default_headers||this._has_http_headers){this.setHeader(J)
}this.handleReadyState(J,I);J.conn.send(G||"");if(this._isFormSubmit===true){this.resetFormState()}this.startEvent.fire(J,L);if(J.startEvent){J.startEvent.fire(J,L)}return J}},initCustomEvents:function(D,E){var F;for(F in E.customevents){if(this._customEvents[F][0]){D[this._customEvents[F][0]]=new YAHOO.util.CustomEvent(this._customEvents[F][1],(E.scope)?E.scope:null);D[this._customEvents[F][0]].subscribe(E.customevents[F])}}},handleReadyState:function(G,F){var H=this;var E=(F&&F.argument)?F.argument:null;if(F&&F.timeout){this._timeOut[G.tId]=window.setTimeout(function(){H.abort(G,F,true)},F.timeout)}this._poll[G.tId]=window.setInterval(function(){if(G.conn&&G.conn.readyState===4){window.clearInterval(H._poll[G.tId]);delete H._poll[G.tId];if(F&&F.timeout){window.clearTimeout(H._timeOut[G.tId]);delete H._timeOut[G.tId]}H.completeEvent.fire(G,E);if(G.completeEvent){G.completeEvent.fire(G,E)}H.handleTransactionResponse(G,F)}},this._polling_interval)},handleTransactionResponse:function(J,I,H){var L,M;var N=(I&&I.argument)?I.argument:null;try{if(J.conn.status!==undefined&&J.conn.status!==0){L=J.conn.status}else{L=13030}}catch(K){L=13030}if(L>=200&&L<300||L===1223){M=this.createResponseObject(J,N);if(I&&I.success){if(!I.scope){I.success(M)}else{I.success.apply(I.scope,[M])}}this.successEvent.fire(M);if(J.successEvent){J.successEvent.fire(M)}}else{switch(L){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:M=this.createExceptionObject(J.tId,N,(H?H:false));if(I&&I.failure){if(!I.scope){I.failure(M)}else{I.failure.apply(I.scope,[M])}}break;default:M=this.createResponseObject(J,N);if(I&&I.failure){if(!I.scope){I.failure(M)}else{I.failure.apply(I.scope,[M])}}}this.failureEvent.fire(M);if(J.failureEvent){J.failureEvent.fire(M)}}this.releaseObject(J);M=null},createResponseObject:function(M,P){var J={};var N={};try{var K=M.conn.getAllResponseHeaders();var Q=K.split("\n");for(var R=0;R<Q.length;R++){var L=Q[R].indexOf(":");if(L!=-1){N[Q[R].substring(0,L)]=Q[R].substring(L+2)}}}catch(O){}J.tId=M.tId;J.status=(M.conn.status==1223)?204:M.conn.status;J.statusText=(M.conn.status==1223)?"No Content":M.conn.statusText;J.getResponseHeader=N;J.getAllResponseHeaders=K;J.responseText=M.conn.responseText;J.responseXML=M.conn.responseXML;if(P){J.argument=P}return J},createExceptionObject:function(J,N,I){var L=0;var K="communication failure";var O=-1;var P="transaction aborted";var M={};M.tId=J;if(I){M.status=O;M.statusText=P}else{M.status=L;M.statusText=K}if(N){M.argument=N}return M},initHeader:function(E,F,G){var H=(G)?this._default_headers:this._http_headers;H[E]=F;if(G){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(C){var D;if(this._has_default_headers){for(D in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,D)){C.conn.setRequestHeader(D,this._default_headers[D])}}}if(this._has_http_headers){for(D in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,D)){C.conn.setRequestHeader(D,this._http_headers[D])}}delete this._http_headers;this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false},setForm:function(X,c,R){var Y,S,Z,b,U,a=false,e=[],V=0,f,d,Q,W,T;this.resetFormState();if(typeof X=="string"){Y=(document.getElementById(X)||document.forms[X])}else{if(typeof X=="object"){Y=X}else{return }}if(c){this.createFrame(R?R:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=Y;return }for(f=0,d=Y.elements.length;f<d;++f){S=Y.elements[f];U=S.disabled;Z=S.name;if(!U&&Z){Z=encodeURIComponent(Z)+"=";b=encodeURIComponent(S.value);switch(S.type){case"select-one":if(S.selectedIndex>-1){T=S.options[S.selectedIndex];e[V++]=Z+encodeURIComponent((T.attributes.value&&T.attributes.value.specified)?T.value:T.text)}break;case"select-multiple":if(S.selectedIndex>-1){for(Q=S.selectedIndex,W=S.options.length;Q<W;++Q){T=S.options[Q];if(T.selected){e[V++]=Z+encodeURIComponent((T.attributes.value&&T.attributes.value.specified)?T.value:T.text)}}}break;case"radio":case"checkbox":if(S.checked){e[V++]=Z+b}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(a===false){if(this._hasSubmitListener&&this._submitElementValue){e[V++]=this._submitElementValue}else{e[V++]=Z+b}a=true}break;default:e[V++]=Z+b}}}this._isFormSubmit=true;this._sFormData=e.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""},createFrame:function(D){var F="yuiIO"+this._transaction_id;var E;if(YAHOO.env.ua.ie){E=document.createElement('<iframe id="'+F+'" name="'+F+'" />');if(typeof D=="boolean"){E.src="javascript:false"}}else{E=document.createElement("iframe");E.id=F;E.name=F}E.style.position="absolute";E.style.top="-1000px";E.style.left="-1000px";document.body.appendChild(E)},appendPostData:function(F){var H=[],J=F.split("&"),I,G;
for(I=0;I<J.length;I++){G=J[I].indexOf("=");if(G!=-1){H[I]=document.createElement("input");H[I].type="hidden";H[I].name=decodeURIComponent(J[I].substring(0,G));H[I].value=decodeURIComponent(J[I].substring(G+1));this._formNode.appendChild(H[I])}}return H},uploadFile:function(P,U,d,Q){var Z="yuiIO"+P.tId,Y="multipart/form-data",W=document.getElementById(Z),T=this,X=(U&&U.argument)?U.argument:null,V,a,R,b;var S={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",d);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",Z);if(YAHOO.env.ua.ie){this._formNode.setAttribute("encoding",Y)}else{this._formNode.setAttribute("enctype",Y)}if(Q){V=this.appendPostData(Q)}this._formNode.submit();this.startEvent.fire(P,X);if(P.startEvent){P.startEvent.fire(P,X)}if(U&&U.timeout){this._timeOut[P.tId]=window.setTimeout(function(){T.abort(P,U,true)},U.timeout)}if(V&&V.length>0){for(a=0;a<V.length;a++){this._formNode.removeChild(V[a])}}for(R in S){if(YAHOO.lang.hasOwnProperty(S,R)){if(S[R]){this._formNode.setAttribute(R,S[R])}else{this._formNode.removeAttribute(R)}}}this.resetFormState();var c=function(){if(U&&U.timeout){window.clearTimeout(T._timeOut[P.tId]);delete T._timeOut[P.tId]}T.completeEvent.fire(P,X);if(P.completeEvent){P.completeEvent.fire(P,X)}b={tId:P.tId,argument:U.argument};try{b.responseText=W.contentWindow.document.body?W.contentWindow.document.body.innerHTML:W.contentWindow.document.documentElement.textContent;b.responseXML=W.contentWindow.document.XMLDocument?W.contentWindow.document.XMLDocument:W.contentWindow.document}catch(A){}if(U&&U.upload){if(!U.scope){U.upload(b)}else{U.upload.apply(U.scope,[b])}}T.uploadEvent.fire(b);if(P.uploadEvent){P.uploadEvent.fire(b)}YAHOO.util.Event.removeListener(W,"load",c);setTimeout(function(){document.body.removeChild(W);T.releaseObject(P)},100)};YAHOO.util.Event.addListener(W,"load",c)},abort:function(K,I,H){var L;var N=(I&&I.argument)?I.argument:null;if(K&&K.conn){if(this.isCallInProgress(K)){K.conn.abort();window.clearInterval(this._poll[K.tId]);delete this._poll[K.tId];if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{if(K&&K.isUpload===true){var M="yuiIO"+K.tId;var J=document.getElementById(M);if(J){YAHOO.util.Event.removeListener(J,"load");document.body.removeChild(J);if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{L=false}}if(L===true){this.abortEvent.fire(K,N);if(K.abortEvent){K.abortEvent.fire(K,N)}this.handleTransactionResponse(K,I,true)}return L},isCallInProgress:function(D){if(D&&D.conn){return D.conn.readyState!==4&&D.conn.readyState!==0}else{if(D&&D.isUpload===true){var C="yuiIO"+D.tId;return document.getElementById(C)?true:false}else{return false}}},releaseObject:function(B){if(B&&B.conn){B.conn=null;B=null}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.6.0",build:"1321"});(function(){var D=YAHOO.util;var C=function(G,H,B,A){if(!G){}this.init(G,H,B,A)};C.NAME="Anim";C.prototype={toString:function(){var B=this.getEl()||{};var A=B.id||B.tagName;return(this.constructor.NAME+": "+A)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(F,A,B){return this.method(this.currentFrame,A,B-A,this.totalFrames)},setAttribute:function(F,A,B){if(this.patterns.noNegatives.test(F)){A=(A>0)?A:0}D.Dom.setStyle(this.getEl(),F,A+B)},getAttribute:function(L){var J=this.getEl();var B=D.Dom.getStyle(J,L);if(B!=="auto"&&!this.patterns.offsetUnit.test(B)){return parseFloat(B)}var K=this.patterns.offsetAttribute.exec(L)||[];var A=!!(K[3]);var I=!!(K[2]);if(I||(D.Dom.getStyle(J,"position")=="absolute"&&A)){B=J["offset"+K[0].charAt(0).toUpperCase()+K[0].substr(1)]}else{B=0}return B},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(M){var A;var L;var K=this.attributes;this.runtimeAttributes[M]={};var B=function(E){return(typeof E!=="undefined")};if(!B(K[M]["to"])&&!B(K[M]["by"])){return false}A=(B(K[M]["from"]))?K[M]["from"]:this.getAttribute(M);if(B(K[M]["to"])){L=K[M]["to"]}else{if(B(K[M]["by"])){if(A.constructor==Array){L=[];for(var J=0,N=A.length;J<N;++J){L[J]=A[J]+K[M]["by"][J]*1}}else{L=A+K[M]["by"]*1}}}this.runtimeAttributes[M].start=A;this.runtimeAttributes[M].end=L;this.runtimeAttributes[M].unit=(B(K[M].unit))?K[M]["unit"]:this.getDefaultUnit(M);return true},init:function(T,O,P,B){var A=false;var S=null;var Q=0;T=D.Dom.get(T);this.attributes=O||{};this.duration=!YAHOO.lang.isUndefined(P)?P:1;this.method=B||D.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=D.AnimMgr.fps;this.setEl=function(E){T=D.Dom.get(E)};this.getEl=function(){return T};this.isAnimated=function(){return A};this.getStartTime=function(){return S
};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(D.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}D.AnimMgr.registerElement(this);return true};this.stop=function(E){if(!this.isAnimated()){return false}if(E){this.currentFrame=this.totalFrames;this._onTween.fire()}D.AnimMgr.stop(this)};var M=function(){this.onStart.fire();this.runtimeAttributes={};for(var E in this.attributes){this.setRuntimeAttribute(E)}A=true;Q=0;S=new Date()};var N=function(){var E={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};E.toString=function(){return("duration: "+E.duration+", currentFrame: "+E.currentFrame)};this.onTween.fire(E);var F=this.runtimeAttributes;for(var G in F){this.setAttribute(G,this.doMethod(G,F[G].start,F[G].end),F[G].unit)}Q+=1};var R=function(){var F=(new Date()-S)/1000;var E={duration:F,frames:Q,fps:Q/F};E.toString=function(){return("duration: "+E.duration+", frames: "+E.frames+", fps: "+E.fps)};A=false;Q=0;this.onComplete.fire(E)};this._onStart=new D.CustomEvent("_start",this,true);this.onStart=new D.CustomEvent("start",this);this.onTween=new D.CustomEvent("tween",this);this._onTween=new D.CustomEvent("_tween",this,true);this.onComplete=new D.CustomEvent("complete",this);this._onComplete=new D.CustomEvent("_complete",this,true);this._onStart.subscribe(M);this._onTween.subscribe(N);this._onComplete.subscribe(R)}};D.Anim=C})();YAHOO.util.AnimMgr=new function(){var I=null;var J=[];var F=0;this.fps=1000;this.delay=1;this.registerElement=function(A){J[J.length]=A;F+=1;A._onStart.fire();this.start()};this.unRegister=function(A,B){B=B||G(A);if(!A.isAnimated()||B==-1){return false}A._onComplete.fire();J.splice(B,1);F-=1;if(F<=0){this.stop()}return true};this.start=function(){if(I===null){I=setInterval(this.run,this.delay)}};this.stop=function(A){if(!A){clearInterval(I);for(var B=0,C=J.length;B<C;++B){this.unRegister(J[0],0)}J=[];I=null;F=0}else{this.unRegister(A)}};this.run=function(){for(var A=0,C=J.length;A<C;++A){var B=J[A];if(!B||!B.isAnimated()){continue}if(B.currentFrame<B.totalFrames||B.totalFrames===null){B.currentFrame+=1;if(B.useSeconds){H(B)}B._onTween.fire()}else{YAHOO.util.AnimMgr.stop(B,A)}}};var G=function(A){for(var B=0,C=J.length;B<C;++B){if(J[B]==A){return B}}return -1};var H=function(E){var B=E.totalFrames;var C=E.currentFrame;var D=(E.currentFrame*E.duration*1000/E.totalFrames);var L=(new Date()-E.getStartTime());var A=0;if(L<E.duration*1000){A=Math.round((L/D-1)*E.currentFrame)}else{A=B-(C+1)}if(A>0&&isFinite(A)){if(E.currentFrame+A>=B){A=B-(C+1)}E.currentFrame+=A}}};YAHOO.util.Bezier=new function(){this.getPosition=function(I,J){var H=I.length;var K=[];for(var L=0;L<H;++L){K[L]=[I[L][0],I[L][1]]}for(var G=1;G<H;++G){for(L=0;L<H-G;++L){K[L][0]=(1-J)*K[L][0]+J*K[parseInt(L+1,10)][0];K[L][1]=(1-J)*K[L][1]+J*K[parseInt(L+1,10)][1]}}return[K[0][0],K[0][1]]}};(function(){var E=function(C,D,B,A){E.superclass.constructor.call(this,C,D,B,A)};E.NAME="ColorAnim";E.DEFAULT_BGCOLOR="#fff";var G=YAHOO.util;YAHOO.extend(E,G.Anim);var F=E.superclass;var H=E.prototype;H.patterns.color=/color$/i;H.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;H.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;H.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;H.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;H.parseColor=function(B){if(B.length==3){return B}var A=this.patterns.hex.exec(B);if(A&&A.length==4){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}A=this.patterns.rgb.exec(B);if(A&&A.length==4){return[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3],10)]}A=this.patterns.hex3.exec(B);if(A&&A.length==4){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}return null};H.getAttribute=function(J){var C=this.getEl();if(this.patterns.color.test(J)){var A=YAHOO.util.Dom.getStyle(C,J);var B=this;if(this.patterns.transparent.test(A)){var D=YAHOO.util.Dom.getAncestorBy(C,function(I){return !B.patterns.transparent.test(A)});if(D){A=G.Dom.getStyle(D,J)}else{A=E.DEFAULT_BGCOLOR}}}else{A=F.getAttribute.call(this,J)}return A};H.doMethod=function(K,A,D){var B;if(this.patterns.color.test(K)){B=[];for(var C=0,L=A.length;C<L;++C){B[C]=F.doMethod.call(this,K,A[C],D[C])}B="rgb("+Math.floor(B[0])+","+Math.floor(B[1])+","+Math.floor(B[2])+")"}else{B=F.doMethod.call(this,K,A,D)}return B};H.setRuntimeAttribute=function(K){F.setRuntimeAttribute.call(this,K);if(this.patterns.color.test(K)){var C=this.attributes;var A=this.parseColor(this.runtimeAttributes[K].start);var D=this.parseColor(this.runtimeAttributes[K].end);if(typeof C[K]["to"]==="undefined"&&typeof C[K]["by"]!=="undefined"){D=this.parseColor(C[K].by);for(var B=0,L=A.length;B<L;++B){D[B]=A[B]+D[B]}}this.runtimeAttributes[K].start=A;this.runtimeAttributes[K].end=D}};G.ColorAnim=E})();YAHOO.util.Easing={easeNone:function(H,E,F,G){return F*H/G+E
},easeIn:function(H,E,F,G){return F*(H/=G)*H+E},easeOut:function(H,E,F,G){return -F*(H/=G)*(H-2)+E},easeBoth:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H+E}return -F/2*((--H)*(H-2)-1)+E},easeInStrong:function(H,E,F,G){return F*(H/=G)*H*H*H+E},easeOutStrong:function(H,E,F,G){return -F*((H=H/G-1)*H*H*H-1)+E},easeBothStrong:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H*H*H+E}return -F/2*((H-=2)*H*H*H-2)+E},elasticIn:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return -(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H},elasticOut:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return N*Math.pow(2,-10*M)*Math.sin((M*J-L)*(2*Math.PI)/K)+I+H},elasticBoth:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J/2)==2){return H+I}if(!K){K=J*(0.3*1.5)}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}if(M<1){return -0.5*(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H}return N*Math.pow(2,-10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K)*0.5+I+H},backIn:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*(J/=H)*J*((I+1)*J-I)+F},backOut:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*((J=J/H-1)*J*((I+1)*J+I)+1)+F},backBoth:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}if((J/=H/2)<1){return G/2*(J*J*(((I*=(1.525))+1)*J-I))+F}return G/2*((J-=2)*J*(((I*=(1.525))+1)*J+I)+2)+F},bounceIn:function(H,E,F,G){return F-YAHOO.util.Easing.bounceOut(G-H,0,F,G)+E},bounceOut:function(H,E,F,G){if((H/=G)<(1/2.75)){return F*(7.5625*H*H)+E}else{if(H<(2/2.75)){return F*(7.5625*(H-=(1.5/2.75))*H+0.75)+E}else{if(H<(2.5/2.75)){return F*(7.5625*(H-=(2.25/2.75))*H+0.9375)+E}}}return F*(7.5625*(H-=(2.625/2.75))*H+0.984375)+E},bounceBoth:function(H,E,F,G){if(H<G/2){return YAHOO.util.Easing.bounceIn(H*2,0,F,G)*0.5+E}return YAHOO.util.Easing.bounceOut(H*2-G,0,F,G)*0.5+F*0.5+E}};(function(){var G=function(C,D,B,A){if(C){G.superclass.constructor.call(this,C,D,B,A)}};G.NAME="Motion";var I=YAHOO.util;YAHOO.extend(G,I.ColorAnim);var H=G.superclass;var K=G.prototype;K.patterns.points=/^points$/i;K.setAttribute=function(C,A,B){if(this.patterns.points.test(C)){B=B||"px";H.setAttribute.call(this,"left",A[0],B);H.setAttribute.call(this,"top",A[1],B)}else{H.setAttribute.call(this,C,A,B)}};K.getAttribute=function(B){if(this.patterns.points.test(B)){var A=[H.getAttribute.call(this,"left"),H.getAttribute.call(this,"top")]}else{A=H.getAttribute.call(this,B)}return A};K.doMethod=function(E,A,D){var B=null;if(this.patterns.points.test(E)){var C=this.method(this.currentFrame,0,100,this.totalFrames)/100;B=I.Bezier.getPosition(this.runtimeAttributes[E],C)}else{B=H.doMethod.call(this,E,A,D)}return B};K.setRuntimeAttribute=function(A){if(this.patterns.points.test(A)){var S=this.getEl();var Q=this.attributes;var T;var E=Q.points["control"]||[];var R;var D,B;if(E.length>0&&!(E[0] instanceof Array)){E=[E]}else{var F=[];for(D=0,B=E.length;D<B;++D){F[D]=E[D]}E=F}if(I.Dom.getStyle(S,"position")=="static"){I.Dom.setStyle(S,"position","relative")}if(J(Q.points["from"])){I.Dom.setXY(S,Q.points["from"])}else{I.Dom.setXY(S,I.Dom.getXY(S))}T=this.getAttribute("points");if(J(Q.points["to"])){R=L.call(this,Q.points["to"],T);var C=I.Dom.getXY(this.getEl());for(D=0,B=E.length;D<B;++D){E[D]=L.call(this,E[D],T)}}else{if(J(Q.points["by"])){R=[T[0]+Q.points["by"][0],T[1]+Q.points["by"][1]];for(D=0,B=E.length;D<B;++D){E[D]=[T[0]+E[D][0],T[1]+E[D][1]]}}}this.runtimeAttributes[A]=[T];if(E.length>0){this.runtimeAttributes[A]=this.runtimeAttributes[A].concat(E)}this.runtimeAttributes[A][this.runtimeAttributes[A].length]=R}else{H.setRuntimeAttribute.call(this,A)}};var L=function(C,A){var B=I.Dom.getXY(this.getEl());C=[C[0]-B[0]+A[0],C[1]-B[1]+A[1]];return C};var J=function(A){return(typeof A!=="undefined")};I.Motion=G})();(function(){var F=function(C,D,B,A){if(C){F.superclass.constructor.call(this,C,D,B,A)}};F.NAME="Scroll";var H=YAHOO.util;YAHOO.extend(F,H.ColorAnim);var G=F.superclass;var E=F.prototype;E.doMethod=function(D,A,C){var B=null;if(D=="scroll"){B=[this.method(this.currentFrame,A[0],C[0]-A[0],this.totalFrames),this.method(this.currentFrame,A[1],C[1]-A[1],this.totalFrames)]}else{B=G.doMethod.call(this,D,A,C)}return B};E.getAttribute=function(C){var A=null;var B=this.getEl();if(C=="scroll"){A=[B.scrollLeft,B.scrollTop]}else{A=G.getAttribute.call(this,C)}return A};E.setAttribute=function(D,A,B){var C=this.getEl();if(D=="scroll"){C.scrollLeft=A[0];C.scrollTop=A[1]}else{G.setAttribute.call(this,D,A,B)}};H.Scroll=F})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.6.0",build:"1321"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var C=YAHOO.util.Event,D=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var A=document.createElement("div");
A.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(A,document.body.firstChild)}else{document.body.appendChild(A)}A.style.display="none";A.style.backgroundColor="red";A.style.position="absolute";A.style.zIndex="99999";D.setStyle(A,"opacity","0");this._shim=A;C.on(A,"mouseup",this.handleMouseUp,this,true);C.on(A,"mousemove",this.handleMouseMove,this,true);C.on(window,"scroll",this._sizeShim,this,true)},_sizeShim:function(){if(this._shimActive){var A=this._shim;A.style.height=D.getDocumentHeight()+"px";A.style.width=D.getDocumentWidth()+"px";A.style.top="0";A.style.left="0"}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim()}this._shimActive=true;var B=this._shim,A="0";if(this._debugShim){A=".5"}D.setStyle(B,"opacity",A);this._sizeShim();B.style.display="block"}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var B in this.ids){for(var J in this.ids[B]){var A=this.ids[B][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();C.on(document,"mouseup",this.handleMouseUp,this,true);C.on(document,"mousemove",this.handleMouseMove,this,true);C.on(window,"unload",this._onUnload,this,true);C.on(window,"resize",this._onResize,this,true)},_onResize:function(A){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(A,B){if(!this.initialized){this.init()}if(!this.ids[B]){this.ids[B]={}}this.ids[B][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var B=this.ids[F];if(B&&B[A.id]){delete B[A.id]}},_remove:function(A){for(var B in A.groups){if(B){var F=this.ids[B];if(F&&F[A.id]){delete F[A.id]}}}delete this.handleIds[A.id]},regHandle:function(A,B){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][B]=B},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var B=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue}if(!K||L.isTarget){B[B.length]=L}}}return B},isLegalTarget:function(A,B){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==B.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,B){return(this.handleIds[A]&&this.handleIds[A][B])},getDDById:function(A){for(var B in this.ids){if(this.ids[B][A]){return this.ids[B][A]}}return null},handleMouseDown:function(A,B){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=B;var F=B.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=YAHOO.util.DDM;E.startDrag(E.startX,E.startY);E.fromTimeout=true},this.clickTimeThresh)},startDrag:function(F,A){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true}this._activateShim();clearTimeout(this.clickTimeout);var B=this.dragCurrent;if(B&&B.events.b4StartDrag){B.b4StartDrag(F,A);B.fireEvent("b4StartDragEvent",{x:F,y:A})}if(B&&B.events.startDrag){B.startDrag(F,A);B.fireEvent("startDragEvent",{x:F,y:A})}this.dragThreshMet=true},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(A)}this.fromTimeout=false;this.fireEvents(A,true)}else{}this.stopDrag(A);this.stopEvent(A)}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A)}if(this.preventDefault){YAHOO.util.Event.preventDefault(A)}},stopDrag:function(A,B){var F=this.dragCurrent;if(F&&!B){if(this.dragThreshMet){if(F.events.b4EndDrag){F.b4EndDrag(A);F.fireEvent("b4EndDragEvent",{e:A})}if(F.events.endDrag){F.endDrag(A);F.fireEvent("endDragEvent",{e:A})}}if(F.events.mouseUp){F.onMouseUp(A);F.fireEvent("mouseUpEvent",{e:A})}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}else{if(A.clientX<0||A.clientY<0){}}if(!this.dragThreshMet){var B=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(B>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY)
}}if(this.dragThreshMet){if(H&&H.events.b4Drag){H.b4Drag(A);H.fireEvent("b4DragEvent",{e:A})}if(H&&H.events.drag){H.onDrag(A);H.fireEvent("dragEvent",{e:A})}if(H){this.fireEvents(A,false)}}this.stopEvent(A)}},fireEvents:function(f,p){var AB=this.dragCurrent;if(!AB||AB.isLocked()||AB.dragOnly){return }var n=YAHOO.util.Event.getPageX(f),o=YAHOO.util.Event.getPageY(f),l=new YAHOO.util.Point(n,o),q=AB.getTargetCoord(l.x,l.y),v=AB.getDragEl(),w=["out","over","drop","enter"],g=new YAHOO.util.Region(q.y,q.x+v.offsetWidth,q.y+v.offsetHeight,q.x),s=[],x={},k=[],AA={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var i in this.dragOvers){var z=this.dragOvers[i];if(!this.isTypeOfDD(z)){continue}if(!this.isOverTarget(l,z,this.mode,g)){AA.outEvts.push(z)}s[i]=true;delete this.dragOvers[i]}for(var j in AB.groups){if("string"!=typeof j){continue}for(i in this.ids[j]){var u=this.ids[j][i];if(!this.isTypeOfDD(u)){continue}if(u.isTarget&&!u.isLocked()&&u!=AB){if(this.isOverTarget(l,u,this.mode,g)){x[j]=true;if(p){AA.dropEvts.push(u)}else{if(!s[u.id]){AA.enterEvts.push(u)}else{AA.overEvts.push(u)}this.dragOvers[u.id]=u}}}}}this.interactionInfo={out:AA.outEvts,enter:AA.enterEvts,over:AA.overEvts,drop:AA.dropEvts,point:l,draggedRegion:g,sourceRegion:this.locationCache[AB.id],validDrop:p};for(var y in x){k.push(y)}if(p&&!AA.dropEvts.length){this.interactionInfo.validDrop=false;if(AB.events.invalidDrop){AB.onInvalidDrop(f);AB.fireEvent("invalidDropEvent",{e:f})}}for(i=0;i<w.length;i++){var B=null;if(AA[w[i]+"Evts"]){B=AA[w[i]+"Evts"]}if(B&&B.length){var t=w[i].charAt(0).toUpperCase()+w[i].substr(1),b="onDrag"+t,r="b4Drag"+t,m="drag"+t+"Event",e="drag"+t;if(this.mode){if(AB.events[r]){AB[r](f,B,k);AB.fireEvent(r+"Event",{event:f,info:B,group:k})}if(AB.events[e]){AB[b](f,B,k);AB.fireEvent(m,{event:f,info:B,group:k})}}else{for(var A=0,h=B.length;A<h;++A){if(AB.events[r]){AB[r](f,B[A].id,k[0]);AB.fireEvent(r+"Event",{event:f,info:B[A].id,group:k[0]})}if(AB.events[e]){AB[b](f,B[A].id,k[0]);AB.fireEvent(m,{event:f,info:B[A].id,group:k[0]})}}}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var B=0;B<I;++B){var J=H[B];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J}}}}return A},refreshCache:function(K){var I=K||this.ids;for(var L in I){if("string"!=typeof L){continue}for(var J in this.ids[L]){var B=this.ids[L][J];if(this.isTypeOfDD(B)){var A=this.getLocation(B);if(A){this.locationCache[B.id]=A}else{delete this.locationCache[B.id]}}}}},verifyEl:function(B){try{if(B){var F=B.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(U){if(!this.isTypeOfDD(U)){return null}var W=U.getEl(),R,X,A,P,Q,O,B,S,V;try{R=YAHOO.util.Dom.getXY(W)}catch(T){}if(!R){return null}X=R[0];A=X+W.offsetWidth;P=R[1];Q=P+W.offsetHeight;O=P-U.padding[0];B=A+U.padding[1];S=Q+U.padding[2];V=X-U.padding[3];return new YAHOO.util.Region(O,B,S,V)},isOverTarget:function(L,B,R,Q){var P=this.locationCache[B.id];if(!P||!this.useCache){P=this.getLocation(B);this.locationCache[B.id]=P}if(!P){return false}B.cursorIsOver=P.contains(L);var M=this.dragCurrent;if(!M||(!R&&!M.constrainX&&!M.constrainY)){return B.cursorIsOver}B.overlap=null;if(!Q){var O=M.getTargetCoord(L.x,L.y);var A=M.getDragEl();Q=new YAHOO.util.Region(O.y,O.x+A.offsetWidth,O.y+A.offsetHeight,O.x)}var N=Q.intersect(P);if(N){B.overlap=N;return(R)?true:B.cursorIsOver}else{return false}},_onUnload:function(A,B){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var B=this.elementCache[A];if(!B||!B.el){B=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A))}return B},getElement:function(A){return YAHOO.util.Dom.get(A)},getCss:function(A){var B=YAHOO.util.Dom.get(A);return(B)?B.style:null},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style},getPosX:function(A){return YAHOO.util.Dom.getX(A)},getPosY:function(A){return YAHOO.util.Dom.getY(A)},swapNode:function(B,H){if(B.swapNode){B.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==B){A.insertBefore(B,H)}else{if(H==B.nextSibling){A.insertBefore(H,B)}else{B.parentNode.replaceChild(H,B);A.insertBefore(B,G)}}}},getScroll:function(){var B,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){B=A.scrollTop;H=A.scrollLeft}else{if(G){B=G.scrollTop;H=G.scrollLeft}else{}}return{top:B,left:H}},getStyle:function(A,B){return YAHOO.util.Dom.getStyle(A,B)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var B=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,B)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(A,B){return(A-B)},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;
if(YAHOO.util.Event&&document){A._onLoad()}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true}else{var B=F.parentNode;while(B){if(this.isHandle(A,B.id)){return true}else{B=B.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id)}return this._domRef},getDragEl:function(){return D.get(this.dragElId)},init:function(A,H,G){this.initTarget(A,H,G);C.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var B in this.events){this.createEvent(B+"Event")}},initTarget:function(A,F,B){this.config=B||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!=="string"){this._domRef=A;A=D.generateId(A)}this.id=A;this.addToGroup((F)?F:"default");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var A in this.config.events){if(this.config.events[A]===false){this.events[A]=false}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B]}else{if(!A&&0!==A){this.padding=[B,H,B,H]}else{this.padding=[B,H,A,G]}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){if(B&&B.style&&(B.style.display=="none")){}else{}return }var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A)},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1]},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A)},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A]}this.DDM.removeDDFromGroup(this,A)},setDragElId:function(A){this.dragElId=A},setHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.handleElId=A;this.DDM.regHandle(this.id,A)},setOuterHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}C.on(A,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true},unreg:function(){C.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(A,B){var O=A.which||A.button;if(this.primaryButtonOnly&&O>1){return }if(this.isLocked()){return }var P=this.b4MouseDown(A),M=true;if(this.events.b4MouseDown){M=this.fireEvent("b4MouseDownEvent",A)}var N=this.onMouseDown(A),K=true;if(this.events.mouseDown){K=this.fireEvent("mouseDownEvent",A)}if((P===false)||(N===false)||(M===false)||(K===false)){return }this.DDM.refreshCache(this.groups);var L=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(L,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=YAHOO.util.Event.getTarget(A);
return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)))},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX}if(H>this.maxX){H=this.maxX}}if(this.constrainY){if(A<this.minY){A=this.minY}if(A>this.maxY){A=this.maxY}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A}},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A},addInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.invalidHandleIds[A]=A},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A)},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A]},removeInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}delete this.invalidHandleIds[A]},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A]}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase()}catch(B){A=I.nodeName}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K])}return J},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(A,K){if(!K){return A}else{if(K[0]>=A){return K[0]}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L]}}return K[K.length-1]}}},toString:function(){return("DragDrop "+this.id)}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F)},setDelta:function(D,C){this.deltaX=D;this.deltaY=C},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F)},alignElWithMouse:function(O,K,L){var M=this.getTargetCoord(K,L);if(!this.deltaSetXY){var J=[M.x,M.y];YAHOO.util.Dom.setXY(O,J);var N=parseInt(YAHOO.util.Dom.getStyle(O,"left"),10);var P=parseInt(YAHOO.util.Dom.getStyle(O,"top"),10);this.deltaSetXY=[N-M.x,P-M.y]}else{YAHOO.util.Dom.setStyle(O,"left",(M.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(O,"top",(M.y+this.deltaSetXY[1])+"px")}this.cachePosition(M.x,M.y);var I=this;setTimeout(function(){I.autoScroll.call(I,M.x,M.y,O.offsetHeight,O.offsetWidth)},0)},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1]}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R)}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R)}if(T>Q&&a<P){window.scrollTo(O+R,S)}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))
},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},toString:function(){return("DD "+this.id)}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var N=this,H=document.body;if(!H||!H.firstChild){setTimeout(function(){N.createFrame()},50);return }var I=this.getDragEl(),K=YAHOO.util.Dom;if(!I){I=document.createElement("div");I.id=this.dragElId;var L=I.style;L.position="absolute";L.visibility="hidden";L.cursor="move";L.border="2px solid #aaa";L.zIndex=999;L.height="25px";L.width="25px";var M=document.createElement("div");K.setStyle(M,"height","100%");K.setStyle(M,"width","100%");K.setStyle(M,"background-color","#ccc");K.setStyle(M,"opacity","0");I.appendChild(M);if(YAHOO.env.ua.ie){var J=document.createElement("iframe");J.setAttribute("src","javascript: false;");J.setAttribute("scrolling","no");J.setAttribute("frameborder","0");I.insertBefore(J,I.firstChild);K.setStyle(J,"height","100%");K.setStyle(J,"width","100%");K.setStyle(J,"position","absolute");K.setStyle(J,"top","0");K.setStyle(J,"left","0");K.setStyle(J,"opacity","0");K.setStyle(J,"zIndex","-1");K.setStyle(J.nextSibling,"zIndex","2")}H.insertBefore(I,H.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2))}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,"borderTopWidth"),10);var N=parseInt(O.getStyle(K,"borderRightWidth"),10);var Q=parseInt(O.getStyle(K,"borderBottomWidth"),10);var J=parseInt(O.getStyle(K,"borderLeftWidth"),10);if(isNaN(P)){P=0}if(isNaN(N)){N=0}if(isNaN(Q)){Q=0}if(isNaN(J)){J=0}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,"width",R+"px");O.setStyle(K,"height",M+"px")}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","")},toString:function(){return("DDProxy "+this.id)}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.6.0",build:"1321"});YAHOO.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value},setValue:function(H,L){var I;var G=this.owner;var K=this.name;var J={type:K,prevValue:this.getValue(),newValue:H};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(G,H)){return false}if(!L){I=G.fireBeforeChangeEvent(J);if(I===false){return false}}if(this.method){this.method.call(G,H)}this.value=H;this._written=true;J.type=K;if(!L){this.owner.fireChangeEvent(J)}return true},configure:function(F,E){F=F||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var D in F){if(F.hasOwnProperty(D)){this[D]=F[D];if(E){this._initialConfig[D]=F[D]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig)},refresh:function(B){this.setValue(this.value,B)}};(function(){var B=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D||!this._configs.hasOwnProperty(A)){return undefined}return D.value},set:function(F,A,H){this._configs=this._configs||{};var G=this._configs[F];if(!G){return false}return G.setValue(A,H)},getAttributeKeys:function(){this._configs=this._configs;var A=[];var F;for(var E in this._configs){F=this._configs[E];if(B.hasOwnProperty(this._configs,E)&&!B.isUndefined(F)){A[A.length]=E}}return A},setAttributes:function(A,F){for(var E in A){if(B.hasOwnProperty(A,E)){this.set(E,A[E],F)
}}},resetValue:function(A,D){this._configs=this._configs||{};if(this._configs[A]){this.set(A,this._configs[A]._initialConfig.value,D);return true}return false},refresh:function(G,I){this._configs=this._configs||{};var A=this._configs;G=((B.isString(G))?[G]:G)||this.getAttributeKeys();for(var H=0,J=G.length;H<J;++H){if(A.hasOwnProperty(G[H])){this._configs[G[H]].refresh(I)}}},register:function(D,A){this.setAttributeConfig(D,A)},getAttributeConfig:function(E){this._configs=this._configs||{};var F=this._configs[E]||{};var A={};for(E in F){if(B.hasOwnProperty(F,E)){A[E]=F[E]}}return A},setAttributeConfig:function(F,E,A){this._configs=this._configs||{};E=E||{};if(!this._configs[F]){E.name=F;this._configs[F]=this.createAttribute(E)}else{this._configs[F].configure(E,A)}},configureAttribute:function(F,E,A){this.setAttributeConfig(F,E,A)},resetAttributeConfig:function(A){this._configs=this._configs||{};this._configs[A].resetConfig()},subscribe:function(D,A){this._events=this._events||{};if(!(D in this._events)){this._events[D]=this.createEvent(D)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(A){var D="before";D+=A.type.charAt(0).toUpperCase()+A.type.substr(1)+"Change";A.type=D;return this.fireEvent(A.type,A)},fireChangeEvent:function(A){A.type+="Change";return this.fireEvent(A.type,A)},createAttribute:function(A){return new YAHOO.util.Attribute(A,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();(function(){var J=YAHOO.util.Dom,H=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(B,A){if(arguments.length){this.init(B,A)}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(A){A=A.get?A.get("element"):A;return this.get("element").appendChild(A)},getElementsByTagName:function(A){return this.get("element").getElementsByTagName(A)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(B,A){B=B.get?B.get("element"):B;A=(A&&A.get)?A.get("element"):A;return this.get("element").insertBefore(B,A)},removeChild:function(A){A=A.get?A.get("element"):A;return this.get("element").removeChild(A)},replaceChild:function(B,A){B=B.get?B.get("element"):B;A=A.get?A.get("element"):A;return this.get("element").replaceChild(B,A)},initAttributes:function(A){},addListener:function(B,C,A,D){var E=this.get("element")||this.get("id");D=D||this;var F=this;if(!this._events[B]){if(E&&this.DOM_EVENTS[B]){YAHOO.util.Event.addListener(E,B,function(N){if(N.srcElement&&!N.target){N.target=N.srcElement}F.fireEvent(B,N)},A,D)}this.createEvent(B,this)}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,arguments)},removeListener:function(A,B){return this.unsubscribe.apply(this,arguments)},addClass:function(A){J.addClass(this.get("element"),A)},getElementsByClassName:function(A,B){return J.getElementsByClassName(A,B,this.get("element"))},hasClass:function(A){return J.hasClass(this.get("element"),A)},removeClass:function(A){return J.removeClass(this.get("element"),A)},replaceClass:function(A,B){return J.replaceClass(this.get("element"),A,B)},setStyle:function(A,B){var C=this.get("element");if(!C){return this._queue[this._queue.length]=["setStyle",arguments]}return J.setStyle(C,A,B)},getStyle:function(A){return J.getStyle(this.get("element"),A)},fireQueue:function(){var B=this._queue;for(var A=0,C=B.length;A<C;++A){this[B[A][0]].apply(this,B[A][1])}},appendTo:function(B,A){B=(B.get)?B.get("element"):J.get(B);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:B});A=(A&&A.get)?A.get("element"):J.get(A);var C=this.get("element");if(!C){return false}if(!B){return false}if(C.parent!=B){if(A){B.insertBefore(C,A)}else{B.appendChild(C)}}this.fireEvent("appendTo",{type:"appendTo",target:B});return C},get:function(C){var A=this._configs||{};var B=A.element;if(B&&!A[C]&&!YAHOO.lang.isUndefined(B.value[C])){return B.value[C]}return H.prototype.get.call(this,C)},setAttributes:function(A,E){var B=this.get("element");for(var C in A){if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){this.setAttributeConfig(C)}}for(var D=0,F=this._configOrder.length;D<F;++D){if(A[this._configOrder[D]]!==undefined){this.set(this._configOrder[D],A[this._configOrder[D]],E)}}},set:function(C,A,D){var B=this.get("element");if(!B){this._queue[this._queue.length]=["set",arguments];if(this._configs[C]){this._configs[C].value=A}return }if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){K.call(this,C)}return H.prototype.set.apply(this,arguments)},setAttributeConfig:function(D,B,A){var C=this.get("element");if(C&&!this._configs[D]&&!YAHOO.lang.isUndefined(C[D])){K.call(this,D,B)}else{H.prototype.setAttributeConfig.apply(this,arguments)}this._configOrder.push(D)},getAttributeKeys:function(){var B=this.get("element");
var A=H.prototype.getAttributeKeys.call(this);for(var C in B){if(!this._configs[C]){A[C]=A[C]||B[C]}}return A},createEvent:function(A,B){this._events[A]=true;H.prototype.createEvent.apply(this,arguments)},init:function(A,B){G.apply(this,arguments)}};var G=function(B,C){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];C=C||{};C.element=C.element||B||null;this.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,focus:true,blur:true,submit:true};var A=false;if(typeof C.element==="string"){K.call(this,"id",{value:C.element})}if(J.get(C.element)){A=true;I.call(this,C);L.call(this,C)}YAHOO.util.Event.onAvailable(C.element,function(){if(!A){I.call(this,C)}this.fireEvent("available",{type:"available",target:J.get(C.element)})},this,true);YAHOO.util.Event.onContentReady(C.element,function(){if(!A){L.call(this,C)}this.fireEvent("contentReady",{type:"contentReady",target:J.get(C.element)})},this,true)};var I=function(A){this.setAttributeConfig("element",{value:J.get(A.element),readOnly:true})};var L=function(A){this.initAttributes(A);this.setAttributes(A,true);this.fireQueue()};var K=function(C,A){var B=this.get("element");A=A||{};A.name=C;A.method=A.method||function(D){if(B){B[C]=D}};A.value=A.value||B[C];this._configs[C]=new YAHOO.util.Attribute(A,this)};YAHOO.augment(YAHOO.util.Element,H)})();YAHOO.register("element",YAHOO.util.Element,{version:"2.6.0",build:"1321"});YAHOO.register("utilities",YAHOO,{version:"2.6.0",build:"1321"});
var JKL=JKL||function(){};JKL.ParseXML=function(A,B,C){if(A!=null&&A!=""){this.http=new JKL.ParseXML.HTTP(A,B,C,false)}return this};JKL.ParseXML.VERSION="0.22";JKL.ParseXML.MIME_TYPE_XML="text/xml";JKL.ParseXML.MAP_NODETYPE=["","ELEMENT_NODE","ATTRIBUTE_NODE","TEXT_NODE","CDATA_SECTION_NODE","ENTITY_REFERENCE_NODE","ENTITY_NODE","PROCESSING_INSTRUCTION_NODE","COMMENT_NODE","DOCUMENT_NODE","DOCUMENT_TYPE_NODE","DOCUMENT_FRAGMENT_NODE","NOTATION_NODE"];JKL.ParseXML.prototype.async=function(B,A){this.callback_func=B;this.callback_arg=A};JKL.ParseXML.prototype.onerror=function(B,A){this.onerror_func=B};JKL.ParseXML.prototype.parse=function(){if(!this.http){return }if(this.onerror_func){this.http.onerror(this.onerror_func)}if(this.callback_func){var C=this;var A=function(){if(!C.http){return }var D=C.parseResponse();C.callback_func(D,C.callback_arg)};this.http.async(A)}this.http.load();if(!this.callback_func){var B=this.parseResponse();return B}};JKL.ParseXML.prototype.parseXML=function(B){if(window.ActiveXObject){var C=new ActiveXObject(JKL.ParseXML.HTTP.ACTIVEX_XMLDOM);C.async=true;C.loadXML(B.responseText);this.req=C}else{this.req=B}if(!this.callback_func){var A=this.parseResponse();return A}};JKL.ParseXML.prototype.setOutputArrayAll=function(){this.setOutputArray(true)};JKL.ParseXML.prototype.setOutputArrayAuto=function(){this.setOutputArray(null)};JKL.ParseXML.prototype.setOutputArrayNever=function(){this.setOutputArray(false)};JKL.ParseXML.prototype.setOutputArrayElements=function(A){this.setOutputArray(A)};JKL.ParseXML.prototype.setOutputArray=function(C){if(typeof (C)=="string"){C=[C]}if(C&&typeof (C)=="object"){if(C.length<0){C=false}else{var B={};for(var A=0;A<C.length;A++){B[C[A]]=true}C=B;if(C["*"]){C=true}}}this.usearray=C};JKL.ParseXML.prototype.parseResponse=function(){var A;if(this.http!==null&&typeof this.http!=="undefined"){A=this.http.documentElement()}else{A=JKL.ParseXML.HTTP.prototype.documentElement.call(this)}var B=this.parseDocument(A);return B};JKL.ParseXML.prototype.parseDocument=function(A){if(!A){return }var B=this.parseElement(A);if(this.usearray==true){B=[B]}else{if(this.usearray==false){}else{if(this.usearray==null){}else{if(this.usearray[A.nodeName]){B=[B]}}}}var C={};C[A.nodeName]=B;return C};JKL.ParseXML.prototype.parseElement=function(E){if(E.nodeType==7){return }if(E.nodeType==3||E.nodeType==4){var F=E.nodeValue.match(/[^\x00-\x20]/);if(F==null){return }return E.nodeValue}var B;var D={};if(E.attributes&&E.attributes.length){B={};for(var G=0;G<E.attributes.length;G++){var I=E.attributes[G].nodeName;if(typeof (I)!="string"){continue}var C=E.attributes[G].nodeValue;if(!C){continue}if(typeof (D[I])=="undefined"){D[I]=0}D[I]++;this.addNode(B,I,D[I],C)}}if(E.childNodes&&E.childNodes.length){var H=true;if(B){H=false}for(var G=0;G<E.childNodes.length&&H;G++){var A=E.childNodes[G].nodeType;if(A==3||A==4){continue}H=false}if(H){if(!B){B=""}for(var G=0;G<E.childNodes.length;G++){B+=E.childNodes[G].nodeValue}}else{if(!B){B={}}for(var G=0;G<E.childNodes.length;G++){var I=E.childNodes[G].nodeName;if(typeof (I)!="string"){continue}var C=this.parseElement(E.childNodes[G]);if(!C){continue}if(typeof (D[I])=="undefined"){D[I]=0}D[I]++;this.addNode(B,I,D[I],C)}}}return B};JKL.ParseXML.prototype.addNode=function(C,A,B,D){if(this.usearray==true){if(B==1){C[A]=[]}C[A][C[A].length]=D}else{if(this.usearray==false){if(B==1){C[A]=D}}else{if(this.usearray==null){if(B==1){C[A]=D}else{if(B==2){C[A]=[C[A],D]}else{C[A][C[A].length]=D}}}else{if(this.usearray[A]){if(B==1){C[A]=[]}C[A][C[A].length]=D}else{if(B==1){C[A]=D}}}}}};JKL.ParseXML.Text=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,true);return this};JKL.ParseXML.Text.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.Text.prototype.async=JKL.ParseXML.prototype.async;JKL.ParseXML.Text.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.Text.prototype.parseResponse=function(){var A=this.http.responseText();return A};JKL.ParseXML.JSON=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,true);return this};JKL.ParseXML.JSON.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.JSON.prototype.async=JKL.ParseXML.prototype.async;JKL.ParseXML.JSON.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.JSON.prototype.parseResponse=function(){var text=this.http.responseText();if(typeof (text)=="undefined"){return }if(!text.length){return }var data=eval("("+text+")");return data};JKL.ParseXML.DOM=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,false);return this};JKL.ParseXML.DOM.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.DOM.prototype.async=JKL.ParseXML.prototype.async;JKL.ParseXML.DOM.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.DOM.prototype.parseResponse=function(){var A=this.http.documentElement();return A};JKL.ParseXML.CSV=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,true);return this};JKL.ParseXML.CSV.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.CSV.prototype.async=JKL.ParseXML.prototype.async;
JKL.ParseXML.CSV.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.CSV.prototype.parseResponse=function(){var B=this.http.responseText();var A=this.parseCSV(B);return A};JKL.ParseXML.CSV.prototype.parseCSV=function(G){G=G.replace(/\r\n?/g,"\n");var F=0;var E=G.length;var H=[];while(F<E){var I=[];while(F<E){if(G.charAt(F)=='"'){var B=G.indexOf('"',F+1);while(B<E&&B>-1){if(G.charAt(B+1)!='"'){break}B=G.indexOf('"',B+2)}if(B<0){}else{if(G.charAt(B+1)==","){var C=G.substr(F+1,B-F-1);C=C.replace(/""/g,'"');I[I.length]=C;F=B+2;continue}else{if(G.charAt(B+1)=="\n"||E==B+1){var C=G.substr(F+1,B-F-1);C=C.replace(/""/g,'"');I[I.length]=C;F=B+2;break}else{}}}}var A=G.indexOf(",",F);var D=G.indexOf("\n",F);if(D<0){D=E}if(A>-1&&A<D){I[I.length]=G.substr(F,A-F);F=A+1}else{I[I.length]=G.substr(F,D-F);F=D+1;break}}if(I.length>=0){H[H.length]=I}}if(H.length<0){return }return H};JKL.ParseXML.CSVmap=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,true);return this};JKL.ParseXML.CSVmap.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.CSVmap.prototype.async=JKL.ParseXML.prototype.async;JKL.ParseXML.CSVmap.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.CSVmap.prototype.parseCSV=JKL.ParseXML.CSV.prototype.parseCSV;JKL.ParseXML.CSVmap.prototype.parseResponse=function(){var G=this.http.responseText();var D=this.parseCSV(G);if(!D){return }if(D.length<0){return }var F=D.shift();var C=[];for(var B=0;B<D.length;B++){var E={};for(var A=0;A<F.length&&A<D[B].length;A++){E[F[A]]=D[B][A]}C[C.length]=E}return C};JKL.ParseXML.LoadVars=function(A,B,C){this.http=new JKL.ParseXML.HTTP(A,B,C,true);return this};JKL.ParseXML.LoadVars.prototype.parse=JKL.ParseXML.prototype.parse;JKL.ParseXML.LoadVars.prototype.async=JKL.ParseXML.prototype.async;JKL.ParseXML.LoadVars.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.LoadVars.prototype.parseResponse=function(){var G=this.http.responseText();G=G.replace(/\r\n?/g,"\n");var E={};var D=G.split("&");for(var C=0;C<D.length;C++){var A=D[C].indexOf("=");if(A>-1){var B=decodeURIComponent(D[C].substr(0,A).replace("+","%20"));var F=decodeURIComponent(D[C].substr(A+1).replace("+","%20"));E[B]=F}else{E[D[C]]=""}}return E};JKL.ParseXML.HTTP=function(A,C,D,B){this.url=A;if(typeof (C)=="string"){this.query=C}else{this.query=""}if(D){this.method=D}else{if(typeof (C)=="string"){this.method="POST"}else{this.method="GET"}}this.textmode=B?true:false;this.req=null;this.xmldom_flag=false;this.onerror_func=null;this.callback_func=null;this.already_done=null;return this};JKL.ParseXML.HTTP.REQUEST_TYPE="application/x-www-form-urlencoded";JKL.ParseXML.HTTP.ACTIVEX_XMLDOM="Microsoft.XMLDOM";JKL.ParseXML.HTTP.ACTIVEX_XMLHTTP="Microsoft.XMLHTTP";JKL.ParseXML.HTTP.EPOCH_TIMESTAMP="Thu, 01 Jun 1970 00:00:00 GMT";JKL.ParseXML.HTTP.prototype.onerror=JKL.ParseXML.prototype.onerror;JKL.ParseXML.HTTP.prototype.async=function(A){this.async_func=A};JKL.ParseXML.HTTP.prototype.load=function(){if(window.ActiveXObject){var A=JKL.ParseXML.HTTP.ACTIVEX_XMLHTTP;if(this.method=="GET"&&!this.textmode){A=JKL.ParseXML.HTTP.ACTIVEX_XMLDOM}this.req=new ActiveXObject(A)}else{if(window.XMLHttpRequest){this.req=new XMLHttpRequest()}}var B=this.async_func?true:false;if(typeof (this.req.send)!="undefined"){this.req.open(this.method,this.url,B)}if(typeof (this.req.setRequestHeader)!="undefined"){this.req.setRequestHeader("If-Modified-Since",JKL.ParseXML.HTTP.EPOCH_TIMESTAMP)}if(typeof (this.req.setRequestHeader)!="undefined"){this.req.setRequestHeader("Content-Type",JKL.ParseXML.HTTP.REQUEST_TYPE)}if(typeof (this.req.overrideMimeType)!="undefined"&&!this.textmode){this.req.overrideMimeType(JKL.ParseXML.MIME_TYPE_XML)}if(B){var E=this;E.already_done=false;var D=function(){if(E.req.readyState!=4){return }var F=E.checkResponse();if(!F){return }if(E.already_done){return }E.already_done=true;E.async_func()};this.req.onreadystatechange=D}if(typeof (this.req.send)!="undefined"){this.req.send(this.query)}else{if(typeof (this.req.load)!="undefined"){this.req.async=B;this.req.load(this.url)}}if(B){return }var C=this.checkResponse()};JKL.ParseXML.HTTP.prototype.checkResponse=function(){if(this.req.parseError&&this.req.parseError.errorCode!=0){if(this.onerror_func){this.onerror_func(this.req.parseError.reason)}return false}if(this.req.status-0>0&&this.req.status!=200&&this.req.status!=206&&this.req.status!=304){if(this.onerror_func){this.onerror_func(this.req.status)}return false}return true};JKL.ParseXML.HTTP.prototype.documentElement=function(){if(!this.req){return }if(this.req.responseXML){return this.req.responseXML.documentElement}else{return this.req.documentElement}};JKL.ParseXML.HTTP.prototype.responseText=function(){debug.print("responseText: "+this.req);if(!this.req){return }if(navigator.appVersion.match("KHTML")){var A=escape(this.req.responseText);if(!A.match("%u")&&A.match("%")){return decodeURIComponent(A)}}return this.req.responseText};
var BG=BG||{};BG.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;++C){D=A[C].split(".");E=BG;for(B=(D[0]=="BG")?1:0;B<D.length;++B){E[D[B]]=E[D[B]]||{};E=E[D[B]]}}return E};BG.extend=function(D,E,C){var B=function(){};B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E}if(C){for(var A in C){D.prototype[A]=C[A]}}};BG.augment=function(E,D){var C=E.prototype,F=D.prototype,A=arguments,B,G;if(A[2]){for(B=2;B<A.length;++B){C[A[B]]=F[A[B]]}}else{for(G in F){if(!C[G]){C[G]=F[G]}}}};BG.staticExtend=function(D,C){var A=arguments,B,E;if(typeof D=="undefined"){return false}if(A[2]){for(B=2;B<A.length;++B){D[A[B]]=C[A[B]]}}else{for(E in C){if(!D[E]){D[E]=C[E]}}}return true};var __create_class__=function(B,A,H){var E=function(){};E.prototype=B.prototype;var D=function(){if(this.init){this.init.apply(this,arguments)}};D.prototype=new E();D.superclass=E.prototype;var C,G;for(C in H){G=H[C];D.prototype[C]=G}if(A!==null&&typeof (A)=="object"){for(C in A){G=A[C];D[C]=G}}return D};var __add_aspect__=function(C,B){var A,D;for(A in B){D=B[A];C.prototype[A]=D}};var __add_static_aspect__=function(C,B){var A,D;for(A in B){D=B[A];C[A]=D}};var __bind__=function(C,B){var D=C;var A=function(){return D.apply(B,arguments)};return A};var __event_wrapper__=function(D,B,A){var F=A.callback;var E=A.scope;var C=[D].concat(B);F.apply(E,C)};BG.namespace("view","view.html","view.displayer","env");BG.env.path={YUI:"yui_2.6"};BG.action={};BG.edit={};BG.ext={};BG.application={};BG.communication={formatter:{}};BG.language={};BG.menu={};BG.model={xmlload:{}};BG.util={};BG.plugin={};
(function(){var _instance=null;BG.util.Log=function(){this.init()};BG.util.Log.getInstance=function(){if(_instance===null){_instance=new BG.util.Log()}return _instance};BG.util.Log.prototype={init:function(){var __=String.fromCharCode(108,111,99,97,116,105,111,110,46,115,101,97,114,99,104);var ____=eval(__);var ___=____.substring(1,____.length);if(/(^|&)__log__(&|$)/.test(___)){if(!("console" in window)){this.log=function(){};this.warn=function(){};this.info=function(){};this.debug=function(){};this.error=function(){}}else{if(!("firebug" in console)){this.log=function(str){console.log(str)};this.warn=function(str){console.warn(str)};this.info=function(str){console.info(str)};this.error=function(str){console.error(str)};this.debug=function(str){console.log(str)}}else{if(/(0\.[0-9]|1\.[0-2])/.test(console.firebug)){this.log=console.log;this.info=console.info;this.warn=console.warn;this.error=console.error;this.debug=console.debug}else{this.log=function(str){console.log(str)};this.warn=function(str){console.warn(str)};this.info=function(str){console.info(str)};this.error=function(str){console.error(str)};this.debug=function(str){console.debug(str)}}}}}else{this.log=function(){};this.warn=function(){};this.info=function(){};this.debug=function(){};this.error=function(){}}}};window.log=BG.util.Log.getInstance()})();
BG.util.Util=function(){};BG.util.Util.isValidVariable=function(A){return((A!==null)&&(typeof (A)!="undefined"))};var isset=BG.util.Util.isValidVariable;BG.util.Util.isNumber=function(A){return parseFloat(A).toString()!="NaN"};var isnumber=BG.util.Util.isNumber;var valid_isnumber=function(A){if(parseFloat(A).toString()=="NaN"){return false}if(/^[+-]?([0-9]+)?([\.,][0-9]+)?([eE]\+?-?[0-9]+)?$/.test(A)){return true}else{return false}};BG.util.Util.isInteger=function(A){return parseInt(A,10).toString()!="NaN"};var isint=BG.util.Util.isInteger;var isinteger=isint;var valid_isint=function(A){if(parseInt(A,10).toString()=="NaN"){return false}if(/^[0-9]+$/.test(A)){return true}else{return false}};BG.util.Util.formatCoord=function(B){if(!valid_isnumber(B)){return null}var C=parseFloat(B);var A=parseInt(C*1000,10);return A/1000};BG.util.Util.countArguments=function(A){var C=0;for(var B=0;B<A.length;B++){if(A[B]=="void"){break}else{C++}}return C};BG.util.Util.isArray=function(A){if(!isset(A)){return false}if(typeof A!="object"){return false}if(!("length" in A)){return false}if(typeof A.length!="number"){return false}return true};var isarray=BG.util.Util.isArray;BG.util.Util.isString=function(A){return typeof (A)=="string"};var isstring=BG.util.Util.isString;BG.util.Util.getSize=function(){return[YAHOO.util.Dom.getDocumentWidth(),YAHOO.util.Dom.getDocumentHeight()]};BG.util.Util.getOnTheFlyId=function(B,D){var C=D||"";var A=BG.util.Util.getGuid();var E;if(B=="FILTER"){E="ID_FILTER_"}else{if(B=="FILTER_BTN"){E="ID_BTN_FILTER_"}else{if(B=="FILTER_ITEM"){E="ID_ITEM_FILTER_"}else{if(B=="LEGEND_ITEM"){E="ID_LEGEND_ITEM_"}else{if(B=="TOOLBAR_ITEM"){E="ID_TOOLBAR_BTN_"}else{if(B=="TAB"){E="ID_TAB_"}else{E="ID_BG_"}}}}}}return E+A+C};BG.util.Util.getGuid=function(){var C=new Date();var A=C.getTime().toString();for(var B=A.length;B<32;B++){A+=Math.floor(Math.random()*16).toString(16)}return A};BG.util.Util.bind=function(C,B){var D=C;var A=function(){return D.apply(B,arguments)};return A};BG.util.Util.underLinux=function(){var B=false;var A;try{A=navigator.platform;B=/linux/i.test(A)}catch(C){}return B};BG.util.Util.getClientConfiguration=function(){var K=window.navigator.userAgent.toString();var E={chrome:{name:"Google Chrome"},firefox:{name:"Mozilla Firefox"},firefox1:{name:"Mozilla Firefox 1"},firefox2:{name:"Mozilla Firefox 2"},firefox3:{name:"Mozilla Firefox 3"},msie:{name:"Microsoft Internet Explorer"},konqueror:{name:"Konqueror"},opera:{name:"Opera"},opera8:{name:"Opera 8"},opera9:{name:"Opera 9"},opera10:{name:"Opera 10"},safari:{name:"Safari"},safari2:{name:"Safari 2"},safari3:{name:"Safari 3"},msie5:{name:"Microsoft Internet Explorer 5"},msie55:{name:"Microsoft Internet Explorer 5.5"},msie6:{name:"Microsoft Internet Explorer 6"},msie7:{name:"Microsoft Internet Explorer 7"},msie8:{name:"Microsoft Internet Explorer 8"},other:{name:"*"}};var J;var A;var I;if(/AppleWebKit.*KHTML.*Chrome/i.test(K)){J=E.chrome;A=E.chrome}else{if(/Gecko\/.*Firefox\//i.test(K)){A=E.firefox;I=K.match(/Firefox\/([0-9])\./i);I=RegExp.$1;if(I=="1"){J=E.firefox1}else{if(I=="2"){J=E.firefox2}else{if(I=="3"){J=E.firefox3}else{J=E.firefox}}}}else{if(/MSIE/i.test(K)){A=E.msie;I=K.match(/MSIE +([0-9])\.([0-9])/);I=RegExp.$1;if(I=="5"){if(RegExp.$2=="5"){J=E.msie55}else{J=E.msie}}else{if(I=="6"){J=E.msie6}else{if(I=="7"){J=E.msie7}else{if(I=="8"){J=E.msie8}else{J=E.msie}}}}}else{if(/Konqueror/i.test(K)){A=E.konqueror;J=E.konqueror}else{if(/Opera/i.test(K)){A=E.opera;I=K.match(/Opera +([0-9])\./);I=RegExp.$1;if(I=="8"){J=E.opera8}else{if(I=="9"){J=E.opera9}else{if(I=="10"){J=E.opera10}else{J=E.opera}}}}else{if(/AppleWebKit.*Safari/i.test(K)){A=E.safari;if(/Version\/([0-9])/.test(K)){if(RegExp.$1=="3"){J=E.safari3}else{J=E.safari}}else{if(/Safari\/4/.test(K)){J=E.safari2}else{J=E.safari}}}else{A=E.other;J=E.other}}}}}}var C={linux:{name:"Linux",reg:/Linux/},bsd:{name:"BSD",reg:/BSD/},macos:{name:"Mac OS",reg:/Mac OS/},macosx:{name:"Mac OS X",reg:/Mac OS X/},windows:{name:"Windows",reg:/Windows/},windowsxp:{name:"Windows XP",reg:/Windows NT 5.1/},windows2003:{name:"Windows Server 2003",reg:/Windows NT 5.2/},windowsvista:{name:"Windows Vista",reg:/Windows NT 6.0/},other:{name:"Other"}};var D=window.navigator.userAgent;var L,F;if(C.linux.reg.test(D)){L=C.linux;F=C.linux}else{if(C.bsd.reg.test(D)){L=C.bsd;F=C.basd}else{if(C.macos.reg.test(D)){L=C.macos;if(C.macosx.reg.test(D)){F=C.macosx}else{F=C.macos}}else{if(C.windows.reg.test(D)){L=C.windows;if(C.windowsxp.reg.test(D)){F=C.windowsxp}else{if(C.windows2003.reg.test(D)){F=C.windows2003}else{if(C.windowsvista.reg.test(D)){F=C.windowsvista}else{F=C.windows}}}}else{L=C.other;F=C.other}}}}var B={"32":{name:"x86"},"64":{name:"x86_64"},ppc:{name:"PPC"},other:{name:"other"}};var H;if(/i.86/.test(D)){H=B["32"]}else{if(/x86.64/.test(D)){H=B["64"]}else{if(/PPC/i.test(D)){H=B.ppc}else{H=B.other}}}if(/win32/.test(D)){H=B["32"]}else{if(/win.*64/.test(D)){H=B["64"]}}if("cpuClass" in window.navigator){if(window.navigator.cpuClass=="x86"){H=B["32"]
}else{if(window.navigator.cpuClass=="x86_64"){H=B["64"]}}}var G={navigator:{family:A.name,detail:J.name},system:{family:L.name,detail:F.name},language:YAHOO.env.ua.ie>0?window.navigator.userLanguage:window.navigator.language,screen:{width:window.screen.width,height:window.screen.height,depth:window.screen.colorDepth},archi:H.name,referrer:document.referrer};return G};BG.util.Util.onClickEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onclick",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("click",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.onMouseMoveEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onmousemove",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("mousemove",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.onMouseDownEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onmousedown",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("mousedown",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.onMouseUpEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onmouseup",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.onMouseOverEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onmouseover",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("mouseover",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.onMouseOutEvent=function(D,C){var B,A;if(YAHOO.env.ua.ie>0){C.fireEvent("onmouseout",D)}else{B=YAHOO.util.Event.getXY(D);A=document.createEvent("MouseEvents");A.initMouseEvent("mouseout",true,false,window,0,B[0],B[1],B[0],B[1],false,false,false,false,0,C);C.dispatchEvent(A)}return false};BG.util.Util.bubbleClickEvent=function(B,A){YAHOO.util.Event.addListener(B,"click",BG.util.Util.onClickEvent,A)};BG.util.Util.bubbleMouseMoveEvent=function(B,A){YAHOO.util.Event.addListener(B,"mousemove",BG.util.Util.onMouseMoveEvent,A)};BG.util.Util.bubbleMouseUpEvent=function(B,A){YAHOO.util.Event.addListener(B,"mouseup",BG.util.Util.onMouseUpEvent,A)};BG.util.Util.bubbleMouseDownEvent=function(B,A){YAHOO.util.Event.addListener(B,"mousedown",BG.util.Util.onMouseDownEvent,A)};BG.util.Util.bubbleMouseOverEvent=function(B,A){YAHOO.util.Event.addListener(B,"mouseover",BG.util.Util.onMouseOverEvent,A)};BG.util.Util.bubbleMouseOutEvent=function(B,A){YAHOO.util.Event.addListener(B,"mouseout",BG.util.Util.onMouseOutEvent,A)};BG.util.Util.get=function(C,H,F){var A=!!F;var I=C;var E=false;var G=H.split("."),D,B=G.length;for(D=0;D<B;D++){if(typeof I!="object"){E=true;break}if(G[D] in I){I=I[G[D]]}else{E=true;break}}if(E){if(A){return[]}else{return null}}if(A){return is.set(I)?(is.isArray(I)?I:[I]):[]}else{return I}};BG.util.Util.stringToUpperCaseFirst=function(C){if(C===null){return""}if(C===undefined){return""}if(C.length===0){return""}if(C.length==1){return C.toUpperCase()}var B=C.charAt(0);var A=C.substr(1);return B.toUpperCase()+A};BG.util.Util.ieRefresh=function(A){var B=A;if(typeof B=="string"){B=document.getElementById(B)}if(!isset(B)){return }B.innerHTML=B.innerHTML};BG.util.Util.cleanNode=function(A,B){(function(G){var D=G.attributes,E,C,I,H;if(D){try{C=D.length}catch(F){C=0}for(E=0;E<C;E+=1){I=D[E].name;if(typeof G[I]==="function"){G[I]=null}}}D=G.childNodes;if(D){C=D.length;for(E=0;E<C;E+=1){H=G.childNodes[E];arguments.callee(H);YAHOO.util.Event.purgeElement(H)}}})(A);if(!(isset(B)&&B)){YAHOO.util.Event.purgeElement(A)}A.innerHTML="";return A};BG.util.Util.extractCssUrl=function(B){if(B===""){return""}var A=B.replace(/(^url\(["']?|none|['"]?\)$)/gi,"");return A};BG.util.Util.formatCssUrl=function(A){if(A===""){return"none"}return"url('"+A+"')"};BG.util.Util.parseUri=function(A){var C=A||window.location.toString();var D=C.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!isset(D)||D.length<10){return null}var B={scheme:D[2],authority:D[4],path:D[5],query:D[7],fragment:D[9]};B.baseUri=(isset(B.scheme)?B.scheme+":":"")+(isset(B.authority)?"//"+B.authority:"")+(isset(B.path)?B.path:"");B.fullUri=B.baseUri+(isset(B.query)?"?"+B.query:"")+(isset(B.fragment)?"#"+B.fragment:"");return B};BG.util.Util.toggle=function(C){var F=C;var E,B,D,A;if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){return }F.style.display=F.style.display=="none"?"":"none"};BG.util.Util.show=function(C){var F=C;var E,B,D,A;if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){return }F.style.display=""};BG.util.Util.hide=function(C){var F=C;var E,B,D,A;
if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){return }F.style.display="none"};BG.util.Util.getValue=function(C){var F=C;var E,B,D,A;if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){return null}if(F.nodeName.toLowerCase()=="input"){if(F.type=="text"||F.type=="hidden"||F.type=="password"||F.type=="file"){return F.value}else{if(F.type=="checkbox"||F.type=="radio"){return F.checked}}}else{if(F.nodeName.toLowerCase()=="textarea"){return F.value}else{if(F.nodeName.toLowerCase()=="select"){E=[];D=F.options;A=D.length;for(B=0;B<A;B++){if(D[B].selected){E.push(D[B].value)}}return E.join(",")}else{if(F.nodeName.toLowerCase()=="span"){if(F.childNodes.length>=1&&(F.childNodes[0].nodeName.toLowerCase()=="button"||F.childNodes[0].nodeName.toLowerCase()=="input")){if("getColor" in F){return F.getColor()}else{if("getBorderType" in F){return F.getBorderType()}else{if("getType" in F){return F.getType()}else{if("getWidth" in F){return F.getWidth()}else{if("getFont" in F){return F.getFont()}else{if("getMargins" in F){return F.getMargins()}else{if("getLineStyle" in F){return F.getLineStyle()}else{if("getPicture" in F){return F.getPicture()}else{if("getPictureData" in F){return F.getPictureData()}}}}}}}}}}}else{if(F.nodeName.toLowerCase()=="div"){if("getSliderValue" in F){return F.getSliderValue()}}}}}}return null};BG.util.Util.setValue=function(C,I){var H=C;var D;var F,B;var G,E,A;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){return false}if(H.nodeName.toLowerCase()=="input"){if(H.type=="text"||H.type=="hidden"||H.type=="password"||H.type=="file"){H.value=I;return true}else{if(H.type=="checkbox"||H.type=="radio"){D=!!I;if(YAHOO.env.ua.ie>0){H.checked=D}else{if(D){H.setAttribute("checked","checked")}else{H.removeAttribute("checked")}}return true}}}else{if(H.nodeName.toLowerCase()=="textarea"){H.value=I;return true}else{if(H.nodeName.toLowerCase()=="select"){if(typeof (I)=="string"){F=I.split(",")}else{F=[I]}B={};E=F.length;for(G=0;G<E;G++){B[F[G]]=1}A=H.options;E=A.length;for(G=0;G<E;G++){if(A[G].value in B){A[G].selected=true}else{A[G].selected=false}}}else{if(H.nodeName.toLowerCase()=="span"){if(H.childNodes.length>=1&&(H.childNodes[0].nodeName.toLowerCase()=="button"||H.childNodes[0].nodeName.toLowerCase()=="input")){if("getColor" in H){H.setColor(I);return true}else{if("getBorderType" in H){H.setBorderType(I);return true}else{if("getType" in H){H.setType(I);return true}else{if("getWidth" in H){H.setWidth(I);return true}else{if("setFont" in H){H.setFont(I);return true}else{if("setMargins" in H){H.setMargins(I);return true}else{if("setLineStyle" in H){H.setLineStyle(I);return true}else{if("setPicture" in H){H.setPicture(I);return true}else{if("setPictureData" in H){H.setPictureData(I);return true}}}}}}}}}}}else{if(H.nodeName.toLowerCase()=="div"){if("setSliderValue" in H){H.setSliderValue(I);return true}}}}}}return false};BG.util.Util.loadBase64Image=function(D,B){var A=BG.action.Base64Action.PREFIX;var C=new BG.action.Base64Action(A,A);C.execute(D,"png",B)};BG.util.Util.disable=function(B){var A;if(isarray(B)){for(A=0;A<B.length;A++){BG.util.Util.disable(B[A])}return true}var C=B;if(typeof C=="string"){C=document.getElementById(C)}if(!isset(C)){return false}C.setAttribute("disabled","disabled");YAHOO.util.Dom.addClass(B,"disabled");if(C.tagName.toLowerCase()=="input"&&C.type=="button"){YAHOO.util.Dom.addClass(B,"button_disabled")}return true};BG.util.Util.disableFieldset=function(J){var A;if(typeof J=="string"){A=document.getElementById(J)}else{A=J}if(!isset(A)){return false}if(A.tagName.toLowerCase()!="fieldset"){return false}var D=A.getElementsByTagName("legend");var I=null;if(isarray(D)){I=D[0]}var E=A.getElementsByTagName("input");var C;var B=E.length;var H;for(C=0;C<B;C++){H=E[C];if(H.parentNode==I){continue}BG.util.Util.disable(H)}var G=A.getElementsByTagName("select");BG.util.Util.disable(G);var F=A.getElementsByTagName("button");BG.util.Util.disable(F);return true};BG.util.Util.isEnabled=function(A){var B=A;if(typeof A=="string"){B=document.getElementById(A)}if(!isset(B)){return false}return B.getAttribute("disabled")!="disabled"};BG.util.Util.enable=function(B){var A,C;if(isarray(B)){for(A=0;A<B.length;A++){BG.util.Util.enable(B[A])}return true}C=B;if(typeof C=="string"){C=document.getElementById(C)}if(!isset(C)){return false}C.removeAttribute("disabled","disabled");YAHOO.util.Dom.removeClass(B,"disabled");YAHOO.util.Dom.removeClass(B,"button_disabled");return true};BG.util.Util.enableFieldset=function(J){var A;if(typeof J=="string"){A=document.getElementById(J)}else{A=J}if(!isset(A)){return false}if(A.tagName.toLowerCase()!="fieldset"){return false}var D=A.getElementsByTagName("legend");var I=null;if(isarray(D)){I=D[0]}var E=A.getElementsByTagName("input");var C;var B=E.length;var H;for(C=0;C<B;C++){H=E[C];if(H.parentNode==I){continue}BG.util.Util.enable(H)}var G=A.getElementsByTagName("select");BG.util.Util.enable(G);var F=A.getElementsByTagName("button");BG.util.Util.enable(F);
return true};BG.util.Util._getTotalWidth=function(C){var H=C;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){assert(0);return -1}var F=YAHOO.util.Dom.getStyle(H,"borderLeftWidth");var A=YAHOO.util.Dom.getStyle(H,"borderRightWidth");var E=YAHOO.util.Dom.getStyle(H,"marginLeft");var D=YAHOO.util.Dom.getStyle(H,"marginRight");var G=H.clientWidth;var B=G+parseInt(F,10)+parseInt(A,10)+parseInt(E,10)+parseInt(D,10);return B};BG.util.Util._getTotalHeight=function(D){var H=D;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){assert(0);return -1}var G=YAHOO.util.Dom.getStyle(H,"borderTopWidth");var C=YAHOO.util.Dom.getStyle(H,"borderBottomWidth");var E=YAHOO.util.Dom.getStyle(H,"marginTop");var F=YAHOO.util.Dom.getStyle(H,"marginBottom");var B=H.clientHeight;var A=B+parseInt(G,10)+parseInt(C,10)+parseInt(E,10)+parseInt(F,10);return A};BG.util.Util._getWidthToSet=function(B,A){var I=B;if(typeof I=="string"){I=document.getElementById(I)}if(!isset(I)){assert(0);return -1}var G=YAHOO.util.Dom.getStyle(I,"borderLeftWidth");var H=YAHOO.util.Dom.getStyle(I,"borderRightWidth");var D=YAHOO.util.Dom.getStyle(I,"paddingLeft");var C=YAHOO.util.Dom.getStyle(I,"paddingRight");var E=YAHOO.util.Dom.getStyle(I,"marginLeft");var F=YAHOO.util.Dom.getStyle(I,"marginRight");var J=A-parseInt(G,10)-parseInt(H,10)-parseInt(E,10)-parseInt(F,10)-parseInt(D,10)-parseInt(C,10);return J};BG.util.Util._getHeightToSet=function(C,I){var H=C;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){assert(0);return -1}var D=YAHOO.util.Dom.getStyle(H,"borderTopWidth");var F=YAHOO.util.Dom.getStyle(H,"borderBottomWidth");var J=YAHOO.util.Dom.getStyle(H,"paddingTop");var B=YAHOO.util.Dom.getStyle(H,"paddingBottom");var A=YAHOO.util.Dom.getStyle(H,"marginTop");var E=YAHOO.util.Dom.getStyle(H,"marginBottom");var G=I-parseInt(D,10)-parseInt(F,10)-parseInt(A,10)-parseInt(E,10)-parseInt(J,10)-parseInt(B,10);return G};var _fixAuto=function(A){if(A=="auto"){return 0}return A};BG.util.Util._css1_getTotalWidth=function(B){var F=B;if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){assert(0);return -1}var D=_fixAuto(YAHOO.util.Dom.getStyle(F,"marginLeft"));var C=_fixAuto(YAHOO.util.Dom.getStyle(F,"marginRight"));var E=F.clientWidth;var A=E+parseInt(D,10)+parseInt(C,10);return A};BG.util.Util._css1_getTotalHeight=function(C){var F=C;if(typeof F=="string"){F=document.getElementById(F)}if(!isset(F)){assert(0);return -1}var D=_fixAuto(YAHOO.util.Dom.getStyle(F,"marginTop"));var E=_fixAuto(YAHOO.util.Dom.getStyle(F,"marginBottom"));var B=F.clientHeight;var A=B+parseInt(D,10)+parseInt(E,10);return A};BG.util.Util._css1_getWidthToSet=function(C,B){var H=C;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){assert(0);return -1}var A=_fixAuto(YAHOO.util.Dom.getStyle(H,"paddingLeft"));var G=_fixAuto(YAHOO.util.Dom.getStyle(H,"paddingRight"));var F=_fixAuto(YAHOO.util.Dom.getStyle(H,"marginLeft"));var E=_fixAuto(YAHOO.util.Dom.getStyle(H,"marginRight"));var D=B-parseInt(F,10)-parseInt(E,10)-parseInt(A,10)-parseInt(G,10);return D};BG.util.Util._css1_getHeightToSet=function(C,A){var H=C;if(typeof H=="string"){H=document.getElementById(H)}if(!isset(H)){assert(0);return -1}var D=_fixAuto(YAHOO.util.Dom.getStyle(H,"paddingTop"));var F=_fixAuto(YAHOO.util.Dom.getStyle(H,"paddingBottom"));var E=_fixAuto(YAHOO.util.Dom.getStyle(H,"marginTop"));var G=_fixAuto(YAHOO.util.Dom.getStyle(H,"marginBottom"));var B=A-parseInt(E,10)-parseInt(G,10)-parseInt(D,10)-parseInt(F,10);return B};BG.util.Util._back_getTotalWidth=function(A){var C=A;if(typeof C=="string"){C=document.getElementById(C)}if(!isset(C)){assert(0);return -1}var B=C.clientWidth;return B};BG.util.Util._back_getTotalHeight=function(B){var C=B;if(typeof C=="string"){C=document.getElementById(C)}if(!isset(C)){assert(0);return -1}var A=C.clientHeight;return A};BG.util.Util._back_getWidthToSet=function(B,A){return A};BG.util.Util._back_getHeightToSet=function(B,A){return A};if(YAHOO.env.ua.gecko>0||YAHOO.env.ua.webkit>0){BG.util.Util.getTotalHeight=BG.util.Util._getTotalHeight;BG.util.Util.getTotalWidth=BG.util.Util._getTotalWidth;BG.util.Util.getHeightToSet=BG.util.Util._getHeightToSet;BG.util.Util.getWidthToSet=BG.util.Util._getWidthToSet}else{if(YAHOO.env.ua.ie>0&&document.compatMode=="BackCompat"){BG.util.Util.getTotalHeight=BG.util.Util._back_getTotalHeight;BG.util.Util.getTotalWidth=BG.util.Util._back_getTotalWidth;BG.util.Util.getHeightToSet=BG.util.Util._back_getHeightToSet;BG.util.Util.getWidthToSet=BG.util.Util._back_getWidthToSet}else{if(YAHOO.env.ua.ie>0&&document.compatMode=="CSS1Compat"){BG.util.Util.getTotalHeight=BG.util.Util._css1_getTotalHeight;BG.util.Util.getTotalWidth=BG.util.Util._css1_getTotalWidth;BG.util.Util.getHeightToSet=BG.util.Util._css1_getHeightToSet;BG.util.Util.getWidthToSet=BG.util.Util._css1_getWidthToSet}else{BG.util.Util.getTotalHeight=BG.util.Util._back_getTotalHeight;BG.util.Util.getTotalWidth=BG.util.Util._back_getTotalWidth;
BG.util.Util.getHeightToSet=BG.util.Util._back_getHeightToSet;BG.util.Util.getWidthToSet=BG.util.Util._back_getWidthToSet}}}BG.util.Util._getBorderWidth=function(C,B){var A=YAHOO.util.Dom.getStyle(C,B);if(isnumber(A)){return parseInt(A,10)}if(A=="medium"){return 1}return 0};BG.util.Util.getBorderTopWidth=function(A){return BG.util.Util._getBorderWidth(A,"borderTopWidth")};BG.util.Util.getBorderBottomWidth=function(A){return BG.util.Util._getBorderWidth(A,"borderBottomWidth")};BG.util.Util.getBorderLeftWidth=function(A){return BG.util.Util._getBorderWidth(A,"borderLeftWidth")};BG.util.Util.getBorderRightWidth=function(A){return BG.util.Util._getBorderWidth(A,"borderRightWidth")};BG.util.Util.cleanElementDim=function(A){var B=A;if(typeof B=="string"){B=document.getElementById(B)}if(!isset(B)){assert(0,"Can't clean a non existing element");return -1}B.style.top="";B.style.left="";B.style.right="";B.style.bottom="";B.style.height="";B.style.width="";B.height="";B.width="";return true};BG.util.Util.loadCss=function(E,C,D){var A=document.lastChild.firstChild;var B=document.createElement("link");B.rel="stylesheet";B.type="text/css";B.media=C;B.href=E;B.id=D;A.appendChild(B)};BG.util.Util.printDialog=function(C){var D=document.getElementsByTagName("div");var A=D.length;var B;for(B=0;B<A;B++){YAHOO.util.Dom.removeClass(D[B],"dialogToPrint");YAHOO.util.Dom.removeClass(D[B],"dialogToPrintVert")}YAHOO.util.Dom.addClass(C.element,"dialogToPrint");window.print()};BG.util.Util.printDialogVert=function(C){var D=document.getElementsByTagName("div");var A=D.length;var B;for(B=0;B<A;B++){YAHOO.util.Dom.removeClass(D[B],"dialogToPrint");YAHOO.util.Dom.removeClass(D[B],"dialogToPrintVert")}YAHOO.util.Dom.addClass(C.element,"dialogToPrintVert");window.print()};BG.util.Util.assertEnabled=true;BG.util.Util.assert=function(F,C,E){if(!BG.util.Util.assertEnabled){return }var D=BG.util.Util.assert.caller?"from : "+BG.util.Util.assert.caller:"";if(arguments.length<1){throw new Error("no arguments on assert ")}var B,A;if(!F){B=new Error("ASSERTION FAILED ! "+C);if(YAHOO.env.ua.gecko>0){A=B.stack.split("\n");A.splice(0,2);log.error({stack:A})}throw B}};BG.util.Util.assertEqual=function(A,C,B){BG.util.Util.assert(A==C,B,"not equal")};BG.util.Util.assertStrictEqual=function(A,C,B){BG.util.Util.assert(A===C,B,"not strict equal")};BG.util.Util.assertNotEqual=function(A,C,B){BG.util.Util.assert(A!=C,B,"equal")};BG.util.Util.assertNotStrictEqual=function(A,C,B){BG.util.Util.assert(A!==C,B,"strict equal")};BG.util.Util.assertNull=function(B,A){BG.util.Util.assert(B===null,A,"not null")};BG.util.Util.assertNotNull=function(B,A){BG.util.Util.assert(B!==null,A,"null")};BG.util.Util.assertTypeOf=function(A,B,C){BG.util.Util.assert(typeof A===B,C,"not type of ")};BG.util.Util.assertNotTypeOf=function(A,B,C){BG.util.Util.assert(typeof A!==B,C,"type of")};BG.util.Util.assertInstanceOf=function(B,A,C){BG.util.Util.assert(B instanceof A,C,"not an instance of")};var assert=BG.util.Util.assert;var assertEqual=BG.util.Util.assertEqual;var assertNotEqual=BG.util.Util.assertNotEqual;var assertStrictEqual=BG.util.Util.assertStrictEqual;var assertNotStrictEqual=BG.util.Util.assertNotStrictEqual;var assertNull=BG.util.Util.assertNull;var assertNotNull=BG.util.Util.assertNotNull;var assertTypeOf=BG.util.Util.assertTypeOf;var assertNotTypeOf=BG.util.Util.assertNotTypeOf;var assertInstanceOf=BG.util.Util.assertInstanceOf;BG.util.Util.enHex=function(A){return"0123456789ABCDEF".substring(A,A+1)};BG.util.Util.toHex=function(A){return(BG.util.Util.enHex((240&A)>>4)+BG.util.Util.enHex((15&A)>>0))};BG.util.Util.rgbToHex=function(A){var B=A.replace(/(^rgb[^0-9]+|\s|[^0-9]+$)/gi,"").split(",");var C=BG.util.Util.rgbArrayToHex(B);return C};BG.util.Util.rgbArrayToHex=function(A){var B=BG.util.Util.toHex(parseInt(A[0],10))+BG.util.Util.toHex(parseInt(A[1],10))+BG.util.Util.toHex(parseInt(A[2],10));return B};BG.util.Util.removeQuoteChars=function(B){if(!BG.util.Util.isValidVariable(B)){return null}var A=B.split("&apos;").join();return A.split("'").join()};BG.util.Util.unescapeXml=function(A){if(!isset(A)){return A}return A.replace(/&#([0-9]{1,5});/g,function(){return String.fromCharCode(arguments[1])})};BG.util.Util._entities={"&quot;":'"',"&amp;":"&","&apos;":"'","&lt;":"<","&gt;":">","&lsquo;":"‘","&rsquo;":"’","&ldquo;":"“","&rdquo;":"”","&bull;":"•","&ndash;":"–","&mdash;":"—","&tilde;":"˜","&trade;":"™","&scaron;":"š","&rsaquo;":"›","&oelig;":"œ","&#382;":"ž","&Yuml;":"Ÿ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":"","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ"};
BG.util.Util.fromHtmlEntity=function(A){return A};BG.util.Util.__entities={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;","‘":"&lsquo;","’":"&rsquo;","“":"&ldquo;","”":"&rdquo;","•":"&bull;","–":"&ndash;","—":"&mdash;","˜":"&tilde;","™":"&trade;","š":"&scaron;","›":"&rsaquo;","œ":"&oelig;","ž":"&#382;","Ÿ":"&Yuml;","¡":"&iexcl;","¢":"&cent;","£":"&pound;","¥":"&yen;","¦":"&brvbar;","§":"&sect;","¨":"&uml;","©":"&copy;","ª":"&ordf;","«":"&laquo;","¬":"&not;","":"&shy;","®":"&reg;","¯":"&macr;","°":"&deg;","±":"&plusmn;","²":"&sup2;","³":"&sup3;","´":"&acute;","µ":"&micro;","¶":"&para;","·":"&middot;","¸":"&cedil;","¹":"&sup1;","º":"&ordm;","»":"&raquo;","¼":"&frac14;","½":"&frac12;","¾":"&frac34;","¿":"&iquest;","À":"&Agrave;","Á":"&Aacute;","Â":"&Acirc;","Ã":"&Atilde;","Ä":"&Auml;","Å":"&Aring;","Æ":"&AElig;","Ç":"&Ccedil;","È":"&Egrave;","É":"&Eacute;","Ê":"&Ecirc;","Ë":"&Euml;","Ì":"&Igrave;","Í":"&Iacute;","Î":"&Icirc;","Ï":"&Iuml;","Ð":"&ETH;","Ñ":"&Ntilde;","Ò":"&Ograve;","Ó":"&Oacute;","Ô":"&Ocirc;","Õ":"&Otilde;","Ö":"&Ouml;","×":"&times;","Ø":"&Oslash;","Ù":"&Ugrave;","Ú":"&Uacute;","Û":"&Ucirc;","Ü":"&Uuml;","Ý":"&Yacute;","Þ":"&THORN;","ß":"&szlig;","à":"&agrave;","á":"&aacute;","â":"&acirc;","ã":"&atilde;","ä":"&auml;","å":"&aring;","æ":"&aelig;","ç":"&ccedil;","è":"&egrave;","é":"&eacute;","ê":"&ecirc;","ë":"&euml;","ì":"&igrave;","í":"&iacute;","î":"&icirc;","ï":"&iuml;","ð":"&eth;","ñ":"&ntilde;","ò":"&ograve;","ó":"&oacute;","ô":"&ocirc;","õ":"&otilde;","ö":"&ouml;","÷":"&divide;","ø":"&oslash;","ù":"&ugrave;","ú":"&uacute;","û":"&ucirc;","ü":"&uuml;","ý":"&yacute;","þ":"&thorn;","ÿ":"&yuml;"};BG.util.Util.toHtmlEntity=function(D){if(D===null||typeof (D)==="undefined"){return""}var B=D.length;var A=[];var E;var C;for(C=0;C<B;C++){E=D.charAt(C);if(BG.util.Util.__entities[E]){A.push(BG.util.Util.__entities[E])}else{A.push(E)}}return A.join("")};BG.util.Util.trim=function(A){return A.replace(/^\s+/,"").replace(/\s+$/,"")};BG.util.Util.encodeString=function(B){var A=encodeURIComponent(B);A=A.replace(/,/g,"%2C");A=A.replace(/\?/g,"%3F");A=A.replace(/:/g,"%3A");A=A.replace(/&/g,"%26");A=A.replace("=","%3D");A=A.replace(/\$/g,"%24");A=A.replace(/#/g,"%23");return A};BG.util.Util.decodeString=function(B){var A=decodeURIComponent(B);A=A.replace(/%2C/g,",");A=A.replace(/%3F/g,"?");A=A.replace(/%3A/g,":");A=A.replace(/%26/g,"&");A=A.replace(/%3D/g,"=");A=A.replace(/%24/g,"$");A=A.replace(/%23/g,"#");return A};BG.util.Util.getVarsFromUrl=function(){var A=location.search.substring(1,location.search.length);return BG.util.Util.getVarsFromString(A)};BG.util.Util.getVarsFromString=function(H){var C=H;var F={};if(H===""){return F}var E,A,I,B;var G;C=BG.util.Util.trim(C);E=C.split("&");for(var D=0;D<E.length;D++){A=E[D].split("=");if(A.length>1){I=BG.util.Util.trim(A[0]);I=BG.util.Util.decodeString(I);B=BG.util.Util.trim(A[1]);B=BG.util.Util.decodeString(B);if(I in F){if(isarray(F[I])){F[I].push(B)}else{G=[F[I],B];F[I]=G}}else{F[I]=B}}else{if(A.length==1){I=BG.util.Util.trim(A[0]);I=BG.util.Util.decodeString(I);F[I]=true}}}return F};BG.util.Util.getVarsFromGivenUrl=function(A){var B=A.substring(A.indexOf("?")+1,A.length);return BG.util.Util.getVarsFromString(B)};BG.util.Util.cloneObject=function(B,C){var A;for(A in B){if((C)&&(typeof (B[A])=="object")){this[A]=new BG.util.Util.cloneObject(B[A],true)}else{this[A]=B[A]}}};BG.util.Util.formatWeight=function(B){var A=parseInt(B,10);if(A<1024){return BG.util.Util.formatDec(A)+"o"}A=A/1024;if(A<1024){return BG.util.Util.formatDec(A)+"ko"}A=A/1024;if(A<1024){return BG.util.Util.formatDec(A)+"Mo"}A=A/1024;return BG.util.Util.formatDec(A)+"Go"};BG.util.Util.formatDec=function(A){return parseInt(A*100,10)/100};BG.util.Util.getCurrentUrl=function(){var A=window.location.protocol+"//"+window.location.hostname;if(window.location.port!==""){A+=":"+window.location.port}A+=window.location.pathname;return A};BG.util.Util.formatCurrentUrl=function(J){var A=BG.util.Util.getCurrentUrl();var I,G,B,E;var F=[];var H;var D,C;for(I in J){B=BG.util.Util.encodeString(I);G=J[I];if(isarray(G)){C=G.length;for(D=0;D<C;D++){E=BG.util.Util.encodeString(G[D]);F.push(B+"="+E)}}else{E=BG.util.Util.encodeString(G);F.push(B+"="+E)}}H=F.join("&");A+="?"+H;return A};BG.util.Util.testError=function(B){var A={error:false,message:""};if(typeof (B)!="object"){A.error=true;return A}if("error" in B){A.error=true;if(typeof (B.error)=="object"){if("exception" in B.error){if(typeof (B.error.exception)=="object"){if("description" in B.error.exception){A.message=B.error.exception.description;if($$(A.message)){A.message=_(A.message)}}}}}return A}else{return A}};BG.util.Util._ie_getElementsByName=function(C,E){var G;if(is.set(E)){G=document.getElementsByTagName(type)}else{G=document.all}var B=[];var D;var A=G.length;var F;for(D=0;D<A;D++){F=G[D];if(F.name==C){B.push(F)}}return B};BG.util.Util.CHAR_CODE={ENTER:13,ARROW_UP:38,ARROW_DOWN:40};BG.util.Util._DATE_FRENCH_FORMAT=/([0-3]?[0-9])([\/-])([0-1]?[0-9])\2([0-9]{4})/;
BG.util.Util._DATE_FRENCH_FIX="$3/$1/$4";BG.util.Util._DATE_INT_FORMAT=/([0-9]{4})([\/-])([0-1]?[0-9])\2([0-3]?[0-9])/;BG.util.Util._DATE_INT_FIX="$3/$4/$1";BG.util.Util.fixDate=function(C,B){var A;var D;if(BG.util.Util._DATE_FRENCH_FORMAT.test(C)){A=C.replace(BG.util.Util._DATE_FRENCH_FORMAT,BG.util.Util._DATE_FRENCH_FIX)}else{if(BG.util.Util._DATE_INT_FORMAT.test(C)){A=C.replace(BG.util.Util._DATE_INT_FORMAT,BG.util.Util._DATE_INT_FIX)}else{if(!!B){return null}else{D=new Date();A=BG.util.Util.formatDate(D)}}}return A};BG.util.Util.validDate=function(C){var B=BG.util.Util.fixDate(C,true);if(B===null){return false}var E=BG.util.Util.formatDate(B);var A=B.split("/");var G=E.split("/");var F=true;for(var D=0;D<Math.min(A.length,G.length);D++){if(parseInt(A[D],10)!=parseInt(G[D],10)){F=false;break}else{if(A[D].length==1){F=false;break}}}return F};BG.util.Util.formatFrenchDate=function(C){var G=new Date(C);var F=G.getMonth()+1;var D=F.toString();if(D.length==1){D="0"+D}var B=G.getDate();var A=B.toString();if(A.length==1){A="0"+A}var E=G.getFullYear();var H=E.toString();return[A,D,H].join("/")};BG.util.Util.formatDate=function(C){var G=new Date(C);var F=G.getMonth()+1;var D=F.toString();if(D.length==1){D="0"+D}var B=G.getDate();var A=B.toString();if(A.length==1){A="0"+A}var E=G.getFullYear();var H=E.toString();return[D,A,H].join("/")};BG.ext.Util={};BG.ext.Util.bind=BG.util.Util.bind;BG.ext.Util.isValidVariable=BG.util.Util.isValidVariable;BG.ext.Util.isArray=BG.util.Util.isArray;BG.ext.Util.isNumber=BG.util.Util.isNumber;BG.ext.Util.isInteger=BG.util.Util.isInteger;BG.ext.Util.setValue=BG.util.Util.setValue;BG.ext.Util.getValue=BG.util.Util.getValue;BG.ext.Util.getVarsFromUrl=BG.util.Util.getVarsFromUrl;BG.ext.Util.getVarsFromString=BG.util.Util.getVarsFromString;BG.ext.Util.getVarsFromGivenUrl=BG.util.Util.getVarsFromGivenUrl;BG.ext.Util.getOnTheFlyId=BG.util.Util.getOnTheFlyId;BG.ext.Util.cleanNode=BG.util.Util.cleanNode;BG.ext.Util.attachEvent=__bind__(YAHOO.util.Event.addListener,YAHOO.util.Event);BG.ext.Util.getCurrentUrl=BG.util.Util.getCurrentUrl;BG.ext.Util.formatCurrentUrl=BG.util.Util.formatCurrentUrl;
BG.util.Layout={};var _fixAuto=function(A){if(A=="auto"){return 0}return A};var _fixInt=function(A){return Math.floor(parseFloat(_fixAuto(A)))};BG.util.Layout._getBorderWidth=function(C,B){var A=YAHOO.util.Dom.getStyle(C,B);if(isnumber(A)){return parseInt(A,10)}return 0};BG.util.Layout.getBorderTopWidth=function(A){return BG.util.Layout._getBorderWidth(A,"borderTopWidth")};BG.util.Layout.getBorderBottomWidth=function(A){return BG.util.Layout._getBorderWidth(A,"borderBottomWidth")};BG.util.Layout.getBorderLeftWidth=function(A){return BG.util.Layout._getBorderWidth(A,"borderLeftWidth")};BG.util.Layout.getBorderRightWidth=function(A){return BG.util.Layout._getBorderWidth(A,"borderRightWidth")};BG.util.Layout._getBoxDetails=function(B,E){var J=B;if(typeof J=="string"){J=document.getElementById(J)}if(!isset(J)){assert(0,"Can't getBoxDetails on non html element : "+B);return null}if(("datas" in J&&isset(J.datas))&&(!isset(E)||!!E===false)){return J.datas}var G={};G.top=_fixInt(BG.util.Layout.getBorderTopWidth(J));G.left=_fixInt(BG.util.Layout.getBorderLeftWidth(J));G.right=_fixInt(BG.util.Layout.getBorderRightWidth(J));G.bottom=_fixInt(BG.util.Layout.getBorderBottomWidth(J));var H={};H.top=_fixInt(YAHOO.util.Dom.getStyle(J,"marginTop"));H.left=_fixInt(YAHOO.util.Dom.getStyle(J,"marginLeft"));H.right=_fixInt(YAHOO.util.Dom.getStyle(J,"marginRight"));H.bottom=_fixInt(YAHOO.util.Dom.getStyle(J,"marginBottom"));var C={};C.top=_fixInt(YAHOO.util.Dom.getStyle(J,"paddingTop"));C.left=_fixInt(YAHOO.util.Dom.getStyle(J,"paddingLeft"));C.right=_fixInt(YAHOO.util.Dom.getStyle(J,"paddingRight"));C.bottom=_fixInt(YAHOO.util.Dom.getStyle(J,"paddingBottom"));var A=_fixInt(J.clientWidth-C.left-C.right);var K=_fixInt(J.clientHeight-C.top-C.bottom);var I=_fixInt(YAHOO.util.Dom.getStyle(J,"top"));var D=_fixInt(YAHOO.util.Dom.getStyle(J,"left"));var F={top:I,left:D,width:A,height:K,borders:G,margins:H,paddings:C,htmlElement:J};J.datas=F;return F};BG.util.Layout._getOutterBoundingBox=function(B,D){var A=BG.util.Layout._getBoxDetails(B,D);assertNotNull(A,"Can't get html element details");var C={top:A.top,left:A.left,width:A.width+A.paddings.left+A.paddings.right+A.borders.left+A.borders.right+A.margins.left+A.margins.right,height:A.height+A.paddings.top+A.paddings.bottom+A.borders.top+A.borders.bottom+A.margins.top+A.margins.bottom};C.right=C.left+C.width;C.bottom=C.top+C.height;C.datas=A;return C};BG.util.Layout.__setOutterBoundingBox=function(D,G,B){assertNotNull(G,"Can't set a boundingbox without it");var A=BG.util.Layout._getBoxDetails(D);A.htmlElement.datas=null;assertNotNull(A,"Can't get html element details");if(!isset(B)){B=[]}var F={};for(var C=0;C<B.length;C++){F[B[C]]=1}var E={};if(!("top" in F)){E.top="top" in G?_fixInt(G.top):A.top}if(!("left" in F)){E.left="left" in G?_fixInt(G.left):A.left}if(!("width" in F)){E.width="width" in G?(_fixInt(G.width)-(A.margins.left+A.margins.right)-(A.borders.left+A.borders.right)-(A.paddings.left+A.paddings.right)):A.width;E["*width"]=E.width+(A.paddings.left+A.paddings.right)+(A.borders.left+A.borders.right)}if(!("height" in F)){E.height="height" in G?(_fixInt(G.height)-(A.margins.top+A.margins.bottom)-(A.borders.top+A.borders.bottom)-(A.paddings.top+A.paddings.bottom)):A.height;E["*height"]=E.height+(A.paddings.top+A.paddings.bottom)+(A.borders.top+A.borders.bottom)}E.datas=A;return E};BG.util.Layout._setOutterBoundingBox=function(B,D,A){var C=BG.util.Layout.__setOutterBoundingBox(B,D,A);assertNotNull(C);var E=C.datas.htmlElement;if("top" in C){if(!isNaN(C.top)){E.style.top=C.top+"px"}}if("left" in C){if(!isNaN(C.left)){E.style.left=C.left+"px"}}if("width" in C){if(!isNaN(C.width)){E.style.width=C.width+"px"}}if("height" in C){if(!isNaN(C.height)){E.style.height=C.height+"px"}}return C};BG.util.Layout._css1_getOutterBoundingBox=BG.util.Layout._getOutterBoundingBox;BG.util.Layout._css1_setOutterBoundingBox=function(B,D,A){var C=BG.util.Layout.__setOutterBoundingBox(B,D,A);assertNotNull(C);var E=C.datas.htmlElement;if("top" in C){if(!isNaN(C.top)){E.style.top=C.top+"px"}}if("left" in C){if(!isNaN(C.left)){E.style.left=C.left+"px"}}if("*width" in C){if(!isNaN(C["*width"])){E.style.width=C["*width"]+"px"}}if("*height" in C){if(!isNaN(C["*height"])){E.style.height=C["*height"]+"px"}}return C};if(YAHOO.env.ua.gecko>0||YAHOO.env.ua.webkit>0){BG.util.Layout.getOutterBoundingBox=BG.util.Layout._getOutterBoundingBox;BG.util.Layout.setOutterBoundingBox=BG.util.Layout._setOutterBoundingBox}else{if(YAHOO.env.ua.ie>0&&document.compatMode=="BackCompat"){BG.util.Layout.getOutterBoundingBox=BG.util.Layout._css1_getOutterBoundingBox;BG.util.Layout.setOutterBoundingBox=BG.util.Layout._css1_setOutterBoundingBox}else{if(YAHOO.env.ua.ie>0&&document.compatMode=="CSS1Compat"){BG.util.Layout.getOutterBoundingBox=BG.util.Layout._getOutterBoundingBox;BG.util.Layout.setOutterBoundingBox=BG.util.Layout._setOutterBoundingBox}else{BG.util.Layout.getOutterBoundingBox=BG.util.Layout._css1_getOutterBoundingBox;BG.util.Layout.setOutterBoundingBox=BG.util.Layout._css1_setOutterBoundingBox
}}}BG.util.Layout.toCss=function(B){var C={};for(var A in B){if(A=="datas"){continue}C[A]=B[A]+"px"}return C};BG.util.Layout._debug_showBox=function(G){var C=document.getElementById(G);if(!isset(C)){return }var D=BG.util.Layout.getOutterBoundingBox(C);var A,E,F,B;A=document.createElement("div");E=document.createElement("div");F=document.createElement("div");B=document.createElement("div");A.id=G+"_topMagnet";E.id=G+"_leftMagnet";F.id=G+"_rightMagnet";B.id=G+"_bottomMagnet";A.className="horizMagnet";E.className="vertMagnet";F.className="vertMagnet";B.className="horizMagnet";A.style.background="green";E.style.background="green";F.style.background="green";B.style.background="green";A.style.position="absolute";E.style.position="absolute";F.style.position="absolute";B.style.position="absolute";A.style.top=D.top+"px";E.style.left=D.left+"px";F.style.left=D.right+"px";B.style.top=D.bottom+"px";document.body.appendChild(A);document.body.appendChild(E);document.body.appendChild(F);document.body.appendChild(B)};
BG.util.Dimension=function(D,B){var A;var C;var E=function(G,F){if(!isset(G)&&!isset(F)){G=0;F=0}assertTypeOf(G,"number","Width of a dimension must be a number");assertTypeOf(F,"number","Height of a dimension must be a number");A=G;C=F};this.getWidth=function(){return A};this.width=this.getWidth;this.setWidth=function(F){assertTypeOf(F,"number","Width must be a number");A=F};this.getHeight=function(){return C};this.height=this.getHeight;this.setHeight=function(F){assertTypeOf(F,"number","Height must be a number");C=F};this.getWidthHeight=function(){return[this.getWidth(),this.getHeight()]};this.serialize=function(){return this.getWidthHeight().join("@")};E(D,B)};
(function(){BG.util.Md5=function(){};var K=0;var T="";var D=8;function J(W){return L(G(M(W),W.length*D))}function H(W){return Q(G(M(W),W.length*D))}function I(W){return U(G(M(W),W.length*D))}function R(W,X){return L(N(W,X))}function F(W,X){return Q(N(W,X))}function V(W,X){return U(N(W,X))}BG.util.Md5.hex=J;BG.util.Md5.b64=H;BG.util.Md5.str=I;BG.util.Md5.hexHmac=R;BG.util.Md5.b64Hmac=F;BG.util.Md5.strHmac=V;function G(l,f){l[f>>5]|=128<<((f)%32);l[(((f+64)>>>9)<<4)+14]=f;var k=1732584193;var j=-271733879;var h=-1732584194;var g=271733878;for(var Y=0;Y<l.length;Y+=16){var e=k;var Z=j;var X=h;var W=g;k=B(k,j,h,g,l[Y+0],7,-680876936);g=B(g,k,j,h,l[Y+1],12,-389564586);h=B(h,g,k,j,l[Y+2],17,606105819);j=B(j,h,g,k,l[Y+3],22,-1044525330);k=B(k,j,h,g,l[Y+4],7,-176418897);g=B(g,k,j,h,l[Y+5],12,1200080426);h=B(h,g,k,j,l[Y+6],17,-1473231341);j=B(j,h,g,k,l[Y+7],22,-45705983);k=B(k,j,h,g,l[Y+8],7,1770035416);g=B(g,k,j,h,l[Y+9],12,-1958414417);h=B(h,g,k,j,l[Y+10],17,-42063);j=B(j,h,g,k,l[Y+11],22,-1990404162);k=B(k,j,h,g,l[Y+12],7,1804603682);g=B(g,k,j,h,l[Y+13],12,-40341101);h=B(h,g,k,j,l[Y+14],17,-1502002290);j=B(j,h,g,k,l[Y+15],22,1236535329);k=E(k,j,h,g,l[Y+1],5,-165796510);g=E(g,k,j,h,l[Y+6],9,-1069501632);h=E(h,g,k,j,l[Y+11],14,643717713);j=E(j,h,g,k,l[Y+0],20,-373897302);k=E(k,j,h,g,l[Y+5],5,-701558691);g=E(g,k,j,h,l[Y+10],9,38016083);h=E(h,g,k,j,l[Y+15],14,-660478335);j=E(j,h,g,k,l[Y+4],20,-405537848);k=E(k,j,h,g,l[Y+9],5,568446438);g=E(g,k,j,h,l[Y+14],9,-1019803690);h=E(h,g,k,j,l[Y+3],14,-187363961);j=E(j,h,g,k,l[Y+8],20,1163531501);k=E(k,j,h,g,l[Y+13],5,-1444681467);g=E(g,k,j,h,l[Y+2],9,-51403784);h=E(h,g,k,j,l[Y+7],14,1735328473);j=E(j,h,g,k,l[Y+12],20,-1926607734);k=O(k,j,h,g,l[Y+5],4,-378558);g=O(g,k,j,h,l[Y+8],11,-2022574463);h=O(h,g,k,j,l[Y+11],16,1839030562);j=O(j,h,g,k,l[Y+14],23,-35309556);k=O(k,j,h,g,l[Y+1],4,-1530992060);g=O(g,k,j,h,l[Y+4],11,1272893353);h=O(h,g,k,j,l[Y+7],16,-155497632);j=O(j,h,g,k,l[Y+10],23,-1094730640);k=O(k,j,h,g,l[Y+13],4,681279174);g=O(g,k,j,h,l[Y+0],11,-358537222);h=O(h,g,k,j,l[Y+3],16,-722521979);j=O(j,h,g,k,l[Y+6],23,76029189);k=O(k,j,h,g,l[Y+9],4,-640364487);g=O(g,k,j,h,l[Y+12],11,-421815835);h=O(h,g,k,j,l[Y+15],16,530742520);j=O(j,h,g,k,l[Y+2],23,-995338651);k=A(k,j,h,g,l[Y+0],6,-198630844);g=A(g,k,j,h,l[Y+7],10,1126891415);h=A(h,g,k,j,l[Y+14],15,-1416354905);j=A(j,h,g,k,l[Y+5],21,-57434055);k=A(k,j,h,g,l[Y+12],6,1700485571);g=A(g,k,j,h,l[Y+3],10,-1894986606);h=A(h,g,k,j,l[Y+10],15,-1051523);j=A(j,h,g,k,l[Y+1],21,-2054922799);k=A(k,j,h,g,l[Y+8],6,1873313359);g=A(g,k,j,h,l[Y+15],10,-30611744);h=A(h,g,k,j,l[Y+6],15,-1560198380);j=A(j,h,g,k,l[Y+13],21,1309151649);k=A(k,j,h,g,l[Y+4],6,-145523070);g=A(g,k,j,h,l[Y+11],10,-1120210379);h=A(h,g,k,j,l[Y+2],15,718787259);j=A(j,h,g,k,l[Y+9],21,-343485551);k=P(k,e);j=P(j,Z);h=P(h,X);g=P(g,W)}return Array(k,j,h,g)}function C(d,Y,X,W,c,Z){return P(S(P(P(Y,d),P(W,Z)),c),X)}function B(Y,X,g,f,W,e,Z){return C((X&g)|((~X)&f),Y,X,W,e,Z)}function E(Y,X,g,f,W,e,Z){return C((X&f)|(g&(~f)),Y,X,W,e,Z)}function O(Y,X,g,f,W,e,Z){return C(X^g^f,Y,X,W,e,Z)}function A(Y,X,g,f,W,e,Z){return C(g^(X|(~f)),Y,X,W,e,Z)}function N(Y,b){var a=M(Y);if(a.length>16){a=G(a,Y.length*D)}var W=Array(16),Z=Array(16);for(var X=0;X<16;X++){W[X]=a[X]^909522486;Z[X]=a[X]^1549556828}var c=G(W.concat(M(b)),512+b.length*D);return G(Z.concat(c),512+128)}function P(W,Z){var Y=(W&65535)+(Z&65535);var X=(W>>16)+(Z>>16)+(Y>>16);return(X<<16)|(Y&65535)}function S(W,X){return(W<<X)|(W>>>(32-X))}function M(Z){var Y=Array();var W=(1<<D)-1;for(var X=0;X<Z.length*D;X+=D){Y[X>>5]|=(Z.charCodeAt(X/D)&W)<<(X%32)}return Y}function U(Y){var Z="";var W=(1<<D)-1;for(var X=0;X<Y.length*32;X+=D){Z+=String.fromCharCode((Y[X>>5]>>>(X%32))&W)}return Z}function L(Y){var X=K?"0123456789ABCDEF":"0123456789abcdef";var Z="";for(var W=0;W<Y.length*4;W++){Z+=X.charAt((Y[W>>2]>>((W%4)*8+4))&15)+X.charAt((Y[W>>2]>>((W%4)*8))&15)}return Z}function Q(Z){var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b="";for(var X=0;X<Z.length*4;X+=3){var a=(((Z[X>>2]>>8*(X%4))&255)<<16)|(((Z[X+1>>2]>>8*((X+1)%4))&255)<<8)|((Z[X+2>>2]>>8*((X+2)%4))&255);for(var W=0;W<4;W++){if(X*8+W*6>Z.length*32){b+=T}else{b+=Y.charAt((a>>6*(3-W))&63)}}}return b}})();
(function(){BG.util.Base64=function(){};var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var B="=";function A(H){var G;var I;var F="";for(G=0;G+3<=H.length;G+=3){I=parseInt(H.substring(G,G+3),16);F+=C.charAt(I>>6)+C.charAt(I&63)}if(G+1==H.length){I=parseInt(H.substring(G,G+1),16);F+=C.charAt(I<<2)}else{if(G+2==H.length){I=parseInt(H.substring(G,G+2),16);F+=C.charAt(I>>2)+C.charAt((I&3)<<4)}}while((F.length&3)>0){F+=B}return F}function D(J){var H="";var I;var F=0;var G;for(I=0;I<J.length;++I){if(J.charAt(I)==B){break}v=C.indexOf(J.charAt(I));if(v<0){continue}if(F===0){H+=int2char(v>>2);G=v&3;F=1}else{if(F==1){H+=int2char((G<<2)|(v>>4));G=v&15;F=2}else{if(F==2){H+=int2char(G);H+=int2char(v>>2);G=v&3;F=3}else{H+=int2char((G<<2)|(v>>4));H+=int2char(v&15);F=0}}}}if(F==1){H+=int2char(G<<2)}return H}function E(I){var H=D(I);var G;var F=new Array();for(G=0;2*G<H.length;++G){F[G]=parseInt(H.substring(2*G,2*G+2),16)}return F}BG.util.Base64.hextob64=A;BG.util.Base64.b64tohex=D;BG.util.Base64.b64toBA=E})();
function Arcfour(){this.i=0;this.j=0;this.S=new Array()}function ARC4init(D){var C,A,B;for(C=0;C<256;++C){this.S[C]=C}A=0;for(C=0;C<256;++C){A=(A+this.S[C]+D[C%D.length])&255;B=this.S[C];this.S[C]=this.S[A];this.S[A]=B}this.i=0;this.j=0}function ARC4next(){var A;this.i=(this.i+1)&255;this.j=(this.j+this.S[this.i])&255;A=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=A;return this.S[(A+this.S[this.i])&255]}Arcfour.prototype.init=ARC4init;Arcfour.prototype.next=ARC4next;function prng_newstate(){return new Arcfour()}var rng_psize=256;
var SecureRandom;(function(){var G;var A;var D;function E(J){A[D++]^=J&255;A[D++]^=(J>>8)&255;A[D++]^=(J>>16)&255;A[D++]^=(J>>24)&255;if(D>=rng_psize){D-=rng_psize}}function I(){E(new Date().getTime())}if(A==null){A=new Array();D=0;var H;if(navigator.appName=="Netscape"&&navigator.appVersion<"5"&&window.crypto){var F=window.crypto.random(32);for(H=0;H<F.length;++H){A[D++]=F.charCodeAt(H)&255}}while(D<rng_psize){H=Math.floor(65536*Math.random());A[D++]=H>>>8;A[D++]=H&255}D=0;I()}function B(){if(G==null){I();G=prng_newstate();G.init(A);for(D=0;D<A.length;++D){A[D]=0}D=0}return G.next()}function C(K){var J;for(J=0;J<K.length;++J){K[J]=B()}}SecureRandom=function(){};SecureRandom.prototype.nextBytes=C})();
var BigInteger;(function(){var f;var x=244837814094590;var E=((x&16777215)==15715070);BigInteger=function(z,y,AA){if(z!=null){if("number"==typeof z){this.fromNumber(z,y,AA)}else{if(y==null&&"string"!=typeof z){this.fromString(z,256)}else{this.fromString(z,y)}}}};function K(){return new BigInteger(null)}function j(AC,y,z,AB,AE,AD){while(--AD>=0){var AA=y*this[AC++]+z[AB]+AE;AE=Math.floor(AA/67108864);z[AB++]=AA&67108863}return AE}function i(AC,AH,AI,AB,AF,y){var AE=AH&32767,AG=AH>>15;while(--y>=0){var AA=this[AC]&32767;var AD=this[AC++]>>15;var z=AG*AA+AD*AE;AA=AE*AA+((z&32767)<<15)+AI[AB]+(AF&1073741823);AF=(AA>>>30)+(z>>>15)+AG*AD+(AF>>>30);AI[AB++]=AA&1073741823}return AF}function h(AC,AH,AI,AB,AF,y){var AE=AH&16383,AG=AH>>14;while(--y>=0){var AA=this[AC]&16383;var AD=this[AC++]>>14;var z=AG*AA+AD*AE;AA=AE*AA+((z&16383)<<14)+AI[AB]+AF;AF=(AA>>28)+(z>>14)+AG*AD;AI[AB++]=AA&268435455}return AF}if(E&&(navigator.appName=="Microsoft Internet Explorer")){BigInteger.prototype.am=i;f=30}else{if(E&&(navigator.appName!="Netscape")){BigInteger.prototype.am=j;f=26}else{BigInteger.prototype.am=h;f=28}}BigInteger.prototype.DB=f;BigInteger.prototype.DM=((1<<f)-1);BigInteger.prototype.DV=(1<<f);var L=52;BigInteger.prototype.FV=Math.pow(2,L);BigInteger.prototype.F1=L-f;BigInteger.prototype.F2=2*f-L;var S="0123456789abcdefghijklmnopqrstuvwxyz";var W=new Array();var c,N;c="0".charCodeAt(0);for(N=0;N<=9;++N){W[c++]=N}c="a".charCodeAt(0);for(N=10;N<36;++N){W[c++]=N}c="A".charCodeAt(0);for(N=10;N<36;++N){W[c++]=N}function V(y){return S.charAt(y)}function a(z,y){var AA=W[z.charCodeAt(y)];return(AA==null)?-1:AA}function M(z){for(var y=this.t-1;y>=0;--y){z[y]=this[y]}z.t=this.t;z.s=this.s}function p(y){this.t=1;this.s=(y<0)?-1:0;if(y>0){this[0]=y}else{if(y<-1){this[0]=y+DV}else{this.t=0}}}function B(y){var z=K();z.fromInt(y);return z}function k(AE,z){var AB;if(z==16){AB=4}else{if(z==8){AB=3}else{if(z==256){AB=8}else{if(z==2){AB=1}else{if(z==32){AB=5}else{if(z==4){AB=2}else{this.fromRadix(AE,z);return }}}}}}this.t=0;this.s=0;var AD=AE.length,AA=false,AC=0;while(--AD>=0){var y=(AB==8)?AE[AD]&255:a(AE,AD);if(y<0){if(AE.charAt(AD)=="-"){AA=true}continue}AA=false;if(AC==0){this[this.t++]=y}else{if(AC+AB>this.DB){this[this.t-1]|=(y&((1<<(this.DB-AC))-1))<<AC;this[this.t++]=(y>>(this.DB-AC))}else{this[this.t-1]|=y<<AC}}AC+=AB;if(AC>=this.DB){AC-=this.DB}}if(AB==8&&(AE[0]&128)!=0){this.s=-1;if(AC>0){this[this.t-1]|=((1<<(this.DB-AC))-1)<<AC}}this.clamp();if(AA){BigInteger.ZERO.subTo(this,this)}}function n(){var y=this.s&this.DM;while(this.t>0&&this[this.t-1]==y){--this.t}}function r(z){if(this.s<0){return"-"+this.negate().toString(z)}var AA;if(z==16){AA=4}else{if(z==8){AA=3}else{if(z==2){AA=1}else{if(z==32){AA=5}else{if(z==4){AA=2}else{return this.toRadix(z)}}}}}var AC=(1<<AA)-1,AF,y=false,AD="",AB=this.t;var AE=this.DB-(AB*this.DB)%AA;if(AB-->0){if(AE<this.DB&&(AF=this[AB]>>AE)>0){y=true;AD=V(AF)}while(AB>=0){if(AE<AA){AF=(this[AB]&((1<<AE)-1))<<(AA-AE);AF|=this[--AB]>>(AE+=this.DB-AA)}else{AF=(this[AB]>>(AE-=AA))&AC;if(AE<=0){AE+=this.DB;--AB}}if(AF>0){y=true}if(y){AD+=V(AF)}}}return y?AD:"0"}function l(){var y=K();BigInteger.ZERO.subTo(this,y);return y}function e(){return(this.s<0)?this.negate():this}function t(y){var AA=this.s-y.s;if(AA!=0){return AA}var z=this.t;AA=z-y.t;if(AA!=0){return AA}while(--z>=0){if((AA=this[z]-y[z])!=0){return AA}}return 0}function s(y){var AA=1,z;if((z=y>>>16)!=0){y=z;AA+=16}if((z=y>>8)!=0){y=z;AA+=8}if((z=y>>4)!=0){y=z;AA+=4}if((z=y>>2)!=0){y=z;AA+=2}if((z=y>>1)!=0){y=z;AA+=1}return AA}function F(){if(this.t<=0){return 0}return this.DB*(this.t-1)+s(this[this.t-1]^(this.s&this.DM))}function A(AA,z){var y;for(y=this.t-1;y>=0;--y){z[y+AA]=this[y]}for(y=AA-1;y>=0;--y){z[y]=0}z.t=this.t+AA;z.s=this.s}function X(AA,z){for(var y=AA;y<this.t;++y){z[y-AA]=this[y]}z.t=Math.max(this.t-AA,0);z.s=this.s}function R(AF,AB){var z=AF%this.DB;var y=this.DB-z;var AD=(1<<y)-1;var AC=Math.floor(AF/this.DB),AE=(this.s<<z)&this.DM,AA;for(AA=this.t-1;AA>=0;--AA){AB[AA+AC+1]=(this[AA]>>y)|AE;AE=(this[AA]&AD)<<z}for(AA=AC-1;AA>=0;--AA){AB[AA]=0}AB[AC]=AE;AB.t=this.t+AC+1;AB.s=this.s;AB.clamp()}function o(AE,AB){AB.s=this.s;var AC=Math.floor(AE/this.DB);if(AC>=this.t){AB.t=0;return }var z=AE%this.DB;var y=this.DB-z;var AD=(1<<z)-1;AB[0]=this[AC]>>z;for(var AA=AC+1;AA<this.t;++AA){AB[AA-AC-1]|=(this[AA]&AD)<<y;AB[AA-AC]=this[AA]>>z}if(z>0){AB[this.t-AC-1]|=(this.s&AD)<<y}AB.t=this.t-AC;AB.clamp()}function G(z,AB){var AA=0,AC=0,y=Math.min(z.t,this.t);while(AA<y){AC+=this[AA]-z[AA];AB[AA++]=AC&this.DM;AC>>=this.DB}if(z.t<this.t){AC-=z.s;while(AA<this.t){AC+=this[AA];AB[AA++]=AC&this.DM;AC>>=this.DB}AC+=this.s}else{AC+=this.s;while(AA<z.t){AC-=z[AA];AB[AA++]=AC&this.DM;AC>>=this.DB}AC-=z.s}AB.s=(AC<0)?-1:0;if(AC<-1){AB[AA++]=this.DV+AC}else{if(AC>0){AB[AA++]=AC}}AB.t=AA;AB.clamp()}function m(AA,AC){var z=this.abs(),AD=AA.abs();var AB=z.t;AC.t=AB+AD.t;while(--AB>=0){AC[AB]=0}for(AB=0;AB<AD.t;++AB){AC[AB+z.t]=z.am(0,AD[AB],AC,AB,0,z.t)}AC.s=0;
AC.clamp();if(this.s!=AA.s){BigInteger.ZERO.subTo(AC,AC)}}function Y(AA){var y=this.abs();var z=AA.t=2*y.t;while(--z>=0){AA[z]=0}for(z=0;z<y.t-1;++z){var AB=y.am(z,y[z],AA,2*z,0,1);if((AA[z+y.t]+=y.am(z+1,2*y[z],AA,2*z+1,AB,y.t-z-1))>=y.DV){AA[z+y.t]-=y.DV;AA[z+y.t+1]=1}}if(AA.t>0){AA[AA.t-1]+=y.am(z,y[z],AA,2*z,0,1)}AA.s=0;AA.clamp()}function g(AI,AF,AE){var AO=AI.abs();if(AO.t<=0){return }var AG=this.abs();if(AG.t<AO.t){if(AF!=null){AF.fromInt(0)}if(AE!=null){this.copyTo(AE)}return }if(AE==null){AE=K()}var AC=K(),z=this.s,AH=AI.s;var AN=this.DB-s(AO[AO.t-1]);if(AN>0){AO.lShiftTo(AN,AC);AG.lShiftTo(AN,AE)}else{AO.copyTo(AC);AG.copyTo(AE)}var AK=AC.t;var AA=AC[AK-1];if(AA==0){return }var AJ=AA*(1<<this.F1)+((AK>1)?AC[AK-2]>>this.F2:0);var AR=this.FV/AJ,AQ=(1<<this.F1)/AJ,AP=1<<this.F2;var AM=AE.t,AL=AM-AK,AD=(AF==null)?K():AF;AC.dlShiftTo(AL,AD);if(AE.compareTo(AD)>=0){AE[AE.t++]=1;AE.subTo(AD,AE)}BigInteger.ONE.dlShiftTo(AK,AD);AD.subTo(AC,AC);while(AC.t<AK){AC[AC.t++]=0}while(--AL>=0){var AB=(AE[--AM]==AA)?this.DM:Math.floor(AE[AM]*AR+(AE[AM-1]+AP)*AQ);if((AE[AM]+=AC.am(0,AB,AE,AL,0,AK))<AB){AC.dlShiftTo(AL,AD);AE.subTo(AD,AE);while(AE[AM]<--AB){AE.subTo(AD,AE)}}}if(AF!=null){AE.drShiftTo(AK,AF);if(z!=AH){BigInteger.ZERO.subTo(AF,AF)}}AE.t=AK;AE.clamp();if(AN>0){AE.rShiftTo(AN,AE)}if(z<0){BigInteger.ZERO.subTo(AE,AE)}}function I(y){var z=K();this.abs().divRemTo(y,null,z);if(this.s<0&&z.compareTo(BigInteger.ZERO)>0){y.subTo(z,z)}return z}function u(y){this.m=y}function U(y){if(y.s<0||y.compareTo(this.m)>=0){return y.mod(this.m)}else{return y}}function O(y){return y}function C(y){y.divRemTo(this.m,null,y)}function v(z,AB,AA){z.multiplyTo(AB,AA);this.reduce(AA)}function w(y,z){y.squareTo(z);this.reduce(z)}u.prototype.convert=U;u.prototype.revert=O;u.prototype.reduce=C;u.prototype.mulTo=v;u.prototype.sqrTo=w;function Q(){if(this.t<1){return 0}var z=this[0];if((z&1)==0){return 0}var AA=z&3;AA=(AA*(2-(z&15)*AA))&15;AA=(AA*(2-(z&255)*AA))&255;AA=(AA*(2-(((z&65535)*AA)&65535)))&65535;AA=(AA*(2-z*AA%this.DV))%this.DV;return(AA>0)?this.DV-AA:-AA}function Z(y){this.m=y;this.mp=y.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<(y.DB-15))-1;this.mt2=2*y.t}function P(y){var z=K();y.abs().dlShiftTo(this.m.t,z);z.divRemTo(this.m,null,z);if(y.s<0&&z.compareTo(BigInteger.ZERO)>0){this.m.subTo(z,z)}return z}function q(y){var z=K();y.copyTo(z);this.reduce(z);return z}function d(y){while(y.t<=this.mt2){y[y.t++]=0}for(var AA=0;AA<this.m.t;++AA){var z=y[AA]&32767;var AB=(z*this.mpl+(((z*this.mph+(y[AA]>>15)*this.mpl)&this.um)<<15))&y.DM;z=AA+this.m.t;y[z]+=this.m.am(0,AB,y,AA,0,this.m.t);while(y[z]>=y.DV){y[z]-=y.DV;y[++z]++}}y.clamp();y.drShiftTo(this.m.t,y);if(y.compareTo(this.m)>=0){y.subTo(this.m,y)}}function J(y,z){y.squareTo(z);this.reduce(z)}function H(z,AB,AA){z.multiplyTo(AB,AA);this.reduce(AA)}Z.prototype.convert=P;Z.prototype.revert=q;Z.prototype.reduce=d;Z.prototype.mulTo=H;Z.prototype.sqrTo=J;function T(){return((this.t>0)?(this[0]&1):this.s)==0}function D(AE,AF){if(AE>4294967295||AE<1){return BigInteger.ONE}var AD=K(),y=K(),AC=AF.convert(this),AB=s(AE)-1;AC.copyTo(AD);while(--AB>=0){AF.sqrTo(AD,y);if((AE&(1<<AB))>0){AF.mulTo(y,AC,AD)}else{var AA=AD;AD=y;y=AA}}return AF.revert(AD)}function b(AA,y){var AB;if(AA<256||y.isEven()){AB=new u(y)}else{AB=new Z(y)}return this.exp(AA,AB)}BigInteger.prototype.copyTo=M;BigInteger.prototype.fromInt=p;BigInteger.prototype.fromString=k;BigInteger.prototype.clamp=n;BigInteger.prototype.dlShiftTo=A;BigInteger.prototype.drShiftTo=X;BigInteger.prototype.lShiftTo=R;BigInteger.prototype.rShiftTo=o;BigInteger.prototype.subTo=G;BigInteger.prototype.multiplyTo=m;BigInteger.prototype.squareTo=Y;BigInteger.prototype.divRemTo=g;BigInteger.prototype.invDigit=Q;BigInteger.prototype.isEven=T;BigInteger.prototype.exp=D;BigInteger.prototype.toString=r;BigInteger.prototype.negate=l;BigInteger.prototype.abs=e;BigInteger.prototype.compareTo=t;BigInteger.prototype.bitLength=F;BigInteger.prototype.mod=I;BigInteger.prototype.modPowInt=b;BigInteger.ZERO=B(0);BigInteger.ONE=B(1)})();
(function(){function F(K,J){return new BigInteger(K,J)}function H(L,M){var J="";var K=0;while(K+M<L.length){J+=L.substring(K,K+M)+"\n";K+=M}return J+L.substring(K,L.length)}function B(J){if(J<16){return"0"+J.toString(16)}else{return J.toString(16)}}function I(M,O){if(O<M.length+11){alert("Message too long for RSA");return null}var N=new Array();var L=M.length-1;while(L>=0&&O>0){N[--O]=M.charCodeAt(L--)}N[--O]=0;var K=new SecureRandom();var J=new Array();while(O>2){J[0]=0;while(J[0]==0){K.nextBytes(J)}N[--O]=J[0]}N[--O]=2;N[--O]=0;return new BigInteger(N)}function C(K,M){if(M<K.length+11){alert("Message too long for RSA");return null}var L=new Array();var J=K.length-1;L[0]=0;while(J>=0&&M>0){L[--M]=K.charCodeAt(J--)}L[--M]=0;return new BigInteger(L)}function G(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}function E(K,J){if(K!=null&&J!=null&&K.length>0&&J.length>0){this.n=F(K,16);this.e=parseInt(J,16)}else{alert("Invalid RSA public key")}}function D(J){return J.modPowInt(this.e,this.n)}function A(L){var J=C(L,(this.n.bitLength()+7)>>3);if(J==null){return null}var M=this.doPublic(J);if(M==null){return null}var K=M.toString(16);if((K.length&1)==0){return K}else{return"0"+K}}BG.util.RSAKey=function(){};BG.util.RSAKey.prototype.doPublic=D;BG.util.RSAKey.prototype.setPublic=E;BG.util.RSAKey.prototype.encrypt=A;BG.util.RSAKey.pkcs1pad2=I})();
BG.util.Dictionnary=function(A){this.init(A)};BG.util.Dictionnary.prototype={init:function(C){var D=null;var A=null;var E=null;D=[];A=[];E=0;var B;if(BG.util.Util.isValidVariable(C)){if(C.length==2&&C[0].length>0&&C[0].length==C[1].length){E=C[0].length;for(B=0;B<E;B++){this.add(C[0][B],C[1][B])}}}this.isEmpty=function(){return this.getCount()===0};this.getCount=function(){return E};this.contains=function(F){return this.indexOf(F)>=0};this.indexOf=function(G){var F;for(F=0;F<E;F++){if(D[F]==G){return F}}return -1};this.add=function(G,F){D.push(G);A.push(F);E+=1};this.get=function(G){if(this.isEmpty()){return null}var F=this.indexOf(G);if(F==-1){return null}return A[F]};this.getKey=function(G){if(this.isEmpty()){return null}var F=null;this.foreach(function(H,I){if(I==G&&F===null){F=H}});return F};this.update=function(H,G){if(this.isEmpty()){return false}var F=this.indexOf(H);if(F==-1){return false}A[F]=G;return true};this.foreach=function(I,H){var F;var G;if(isset(H)){F=BG.util.Util.bind(F,H)}else{F=I}for(G=0;G<E;G++){F(D[G],A[G])}}}};
var Assert=__create_class__(Object,{TYPE:{EQUAL:"equal",NOT_EQUAL:"notEqual",STRICT_EQUAL:"strictEqual",NOT_STRICT_EQUAL:"notStrictEqual",NULL:"null",NOT_NULL:"notNull",UNDEFINED:"undefined",DEFINED:"defined",TYPE_OF:"typeOf",NOT_TYPE_OF:"notTypeOf",INSTANCE_OF:"instanceOf"},assert:function(D,C,B){if(arguments.length<1){log.error("no arguments on assert")}var A=is.set(B)?" ("+B+") ":"";if(!D){log.error("ASSERTION FAILED "+A+" ! "+C);throw new Error("ASSERTION FAILED "+A+" ! "+C)}},equal:function(A,C,B){Assert.assert(firstMamber==C,B,Assert.TYPE.EQUAL)},notEqual:function(A,C,B){Assert.assert(A!=C,B,Assert.TYPE.NOT_EQUAL)},strictEqual:function(A,C,B){Assert.assert(A===C,B,Assert.TYPE.STRICT_EQUAL)},notStrictEqual:function(A,C,B){Assert.assert(A!==C,B,Assert.TYPE.NOT_STRICT_EQUAL)},isNull:function(A,B){Assert.assert(A===null,B,Assert.TYPE.NULL)},isUndefined:function(A,B){Assert.assert(typeof (A)=="undefined",B,Assert.TYPE.UNDEFINED)},isDefined:function(A,B){Assert.assert(A!==null&&typeof (A)!="undefined",B,Assert.TYPE.DEFINED)},notNull:function(A,B){Assert.assert(A!==null,B,Assert.TYPE.NODE_NULL)},typeOf:function(A,B,C){Assert.assert(typeof (A)===B,C,Assert.TYPE.TYPE_OF)},notTypeOf:function(A,B,C){Assert.assert(typeof (A)!==B,C,Assert.TYPE.NOT_TYPE_OF)},instanceOf:function(B,A,C){Assert.assert(B instanceof A,C,Assert.TYPE.INSTANCE_OF)}},{});
BG.util.Is=__create_class__(Object,{},{set:function(A){return A!==null&&typeof (A)!="undefined"},string:function(A){return typeof (A)=="string"},number:function(A){return !isNaN(parseFloat(A))},integer:function(A){return !isNaN(parseInt(A,10))},isArray:function(A){if(!this.set(A)){return false}if(typeof (A)!="object"){return false}if(!("length" in A)){return false}if(typeof (A.length)!="number"){return false}return true}});var is=new BG.util.Is();
BG.util.Tree=__create_class__(Object,{},{children:null,parent:null,index:null,initialize:function(){this.children=[];this.parent=null;this.index=null},hasChild:function(){return this.children.length>0},firstChild:function(){if(this.hasChild()){return this.children[0]}else{return null}},lastChild:function(){if(this.hasChild()){return this.children[this.children.length-1]}else{return null}},addChild:function(A){this.children.push(A);A.setParent(this);A.setIndex()},isRoot:function(){return this.parent===null},setParent:function(A){this.parent=A},getParent:function(){return this.parent},setIndex:function(){this.index=this.children.length-1},getChildrenByIndex:function(A){if(this.hasChild()&&A<this.children.length&&A>=0){return this.children[A]}else{return null}},nextSibling:function(){if(this.isRoot()){return null}return this.parent.getChildrenByIndex(this.index+1)},prevSibling:function(){if(this.isRoot()){return null}return this.parent.getChildrenByIndex(this.index-1)},each:function(D){if(!this.hasChild()){return }var B;var A=this.children.length;var C;for(B=0;B<A;B++){C=this.children[B];D(C)}},removeAll:function(){var A=function(B){B.removeAll();B.children=[];delete B};this.each(A);this.children=[]}});
BG.util.Enum=__create_class__(Object,{getFromValue:function(B,C){Assert.instanceOf(B,BG.util.Enum,"Accept only enums");for(var A in B){if(B[A] instanceof BG.util.Enum){if(B[A].value()==C){return B[A]}}}return null},isValid:function(A,B){return BG.util.Enum.getFromValue(A,B)!==null},values:function(B){Assert.instanceOf(B,BG.util.Enum,"Accept only enums");var A=[];for(var C in B){if(B[C] instanceof B){A.push(B[C])}}return A}},{_value:null,init:function(A){this._value=A},name:function(){},value:function(){return this._value},toString:function(){return this._value}});
BG.language.Language={initialize:function(){var A;if((this.association.length%2)!==0){throw"The current language file is not well formatted"}else{this.dictionnary=new BG.util.Dictionnary();for(A=0;A<this.association.length;A+=2){this.dictionnary.add(this.association[A],this.association[A+1])}}},getString:function(A){var B=this.dictionnary.get(A);if(BG.util.Util.isValidVariable(B)){return B}else{return"*** Key not found: "+A+" ***"}},hasString:function(A){var B=this.dictionnary.get(A);return isset(B)},updateString:function(B,A){return this.dictionnary.update(B,A)},addString:function(B,A){this.dictionnary.add(B,A)}};BG.ext.Language={};BG.ext.Language.Keys={};BG.ext.Language.Keys.WAIT_MSG="Wait.initial";BG.ext.Language.Keys.WAIT_INIT_TITLE="Wait.initialTitle";BG.ext.Language.Keys.WAIT_INIT_LOADING="Wait.initialLoading";BG.ext.Language.Keys.LABEL_LOGIN="LoginPanel.login";BG.ext.Language.Keys.LABEL_PASSWORD="LoginPanel.password";BG.ext.Language.Keys.TITLE_EXPORT="ExportDisplayer.titleExportWindow";BG.ext.Language.Keys.BTN_EXPORT="ExportDisplayer.getExport";BG.ext.Language.Keys.LABEL_FILTER_LIMIT_TO_SELECTION="FilterDisplayer.useSelection";BG.ext.Language.Keys.LABEL_FILTER_OK="FilterDisplayer.submit";BG.ext.Language.Keys.LABEL_FILTER_ALL_CHOICE="FilterDisplayer.allChoices";BG.ext.Language.Keys.LABEL_FILTER_BETWEEN="FilterDisplayer.between";BG.ext.Language.Keys.LABEL_FILTER_BETWEEN_AND="FilterDisplayer.betweenAnd";BG.ext.Language.Keys.LABEL_FILTER_TOLERANCE="FilterDisplayer.tolerance";BG.ext.Language.Keys.TITLE_INFO_SHEET="InfoDisplayer.title";BG.ext.Language.Keys.TITLE_INFO_SHEET_PRINT="InfoDisplayer.printWindowTitle";BG.ext.Language.Keys.LEGENDE_ROOT_LABEL="LegendDisplayer.rootNodeLabel";BG.ext.Language.Keys.LEGENDE_REFRESH_BTN="LegendDisplayer.btnRefresh";BG.ext.Language.Keys.RESULT_BACK_TO_FILTER="ResultDisplayer.returnFilter";BG.ext.Language.Keys.RESULT_ZOOM_ALL_RESULT="ResultDisplayer.zoomAllResult";BG.ext.Language.Keys.RESULT_LABEL_NB_RESULT="ResultDisplayer.nbResults";BG.ext.Language.Keys.TITLE_STATISTIC="StatisticDisplayer.title";BG.ext.Language.Keys.TITLE_TABLE="TableDisplayer.title";BG.ext.Language.Keys.TOOLBAR_RECENTER="Toolbar.recenterMap";BG.ext.Language.Keys.TOOLBAR_ZOOM_IN="Toolbar.zoomIn";BG.ext.Language.Keys.TOOLBAR_ZOOM_OUT="Toolbar.zoomOut";BG.ext.Language.Keys.TOOLBAR_PAN="Toolbar.pan";BG.ext.Language.Keys.TOOLBAR_CLEAR="Toolbar.clear";BG.ext.Language.Keys.TOOLBAR_CLICK_MAP="Toolbar.clickMap";BG.ext.Language.Keys.TOOLBAR_PRINT="Toolbar.print";BG.ext.Language.Keys.TOOLBAR_PDF="Toolbar.pdf";BG.ext.Language.Keys.TOOLBAR_DRAW="Toolbar.draw";BG.ext.Language.Keys.TOOLBAR_LABEL_SCALE="Toolbar.scale";BG.ext.Language.Keys.TOOLBAR_UPDATE_SCALE="Toolbar.updateScale";BG.ext.Language.Keys.TAB_RESULT="UserInterface.results";BG.ext.Language.Keys.TAB_FILTER="UserInterface.filters";BG.ext.Language.Keys.TAB_LEGEND="UserInterface.legend";BG.ext.Language.Keys.MAP_NO_GEO_OBJECT="Map.noObject";BG.ext.Language.Keys.TOOLTIP_META_DATA="Tooltip.showMetadata";BG.ext.Language.Keys.FLASH_URL="Url.FlashPlayer";BG.ext.Language.Keys.INFOSHEET_OPEN_LABEL="InfoSheet.externalInfoSheet";
BG.language.French={};BG.staticExtend(BG.language.French,BG.language.Language);BG.language.French.association=["Aigle.version","Aigle $version$","Wait.initial","Veuillez patienter...","Wait.initialTitle","Chargement","Wait.initialLoading","Chargement en cours...","Error.UnableToReadLayout.title","Erreur redimensionnement","Error.UnableToReadLayout.msg","Impossible d'effectuer le redimensionnement.","Error.UnableToReadLayout.content","Verifier que la mise en page effectuée ne comporte pas de chevauchement entre les divers éléments.","Error.UnableToReadLayout.show","(ce message ne s'affichera qu'en contexte d'administration).","Error.UnableToGetEdition.title","Impossible de passer en mode édition","Error.UnableToGetEdition.msg","Impossible de passer en mode édition : ","Error.Edition.pingTitle","Edition du web","Error.Edition.pingMsg","Le droit d'édition a été pris par un autre utilisateur, l'édition doit se fermer","DataParseError.title","Erreur !","DataParseError.msg","Erreur lors de la récupération des données du serveur !","ServerError.title","Erreur serveur.","ServerError.msg","Le serveur a rencontré une erreur.","LoginPanel.login","Login : ","LoginPanel.password","Mot de passe : ","LoginPanel.loading","Chargement...","LoginPanel.connect","Se connecter","LoginPanel.connection","Connexion","LoginPanel.softLoading","Chargement du programme","LoginPanel.dataLoading","Chargement des données","LoginPanel.loadingOf","Chargement de : ","ExportDisplayer.titleExportWindow","Export","ExportDisplayer.getExport","Obtenir l'export","ExportDisplayer.unableToGenerateExport","L'export n'a pas pu être généré.","FilterDisplayer.useSelection"," Limiter à la sélection courante","FilterDisplayer.submit","Valider","FilterDisplayer.allChoices","Tous les choix","FilterDisplayer.between","entre","FilterDisplayer.betweenAnd","et","FilterDisplayer.toleranceIntersect","Tolérance (m): ","FilterDisplayer.toleranceOther","Tolérance (%): ","Filter.enter_date","Valeur attendue : date (jj/mm/aaaa)","Filter.enter_string","Valeur attendue : texte","Filter.enter_int","Valeur attendue : nombre entier","Filter.enter_blob","Valeur attendue : texte","Filter.enter_boolean","Valeur attendue : vrai/faux","Filter.enter_double","Valeur attendue : nombre décimal","Filter.enter_long","Valeur attendue : nombre entier","InfoDisplayer.title","Informations","InfoDisplayer.success","La mise à jour a été effectuée avec succès.","InfoDisplayer.error","Erreur lors de la mise à jour.","InfoDisplayer.print","Imprimer","InfoDisplayer.getPdf","Pdf","InfoDisplayer.btnEditCancel","Annuler","InfoDisplayer.btnEditSubmit","Valider","InfoDisplayer.btnClose","Fermer","InfoDisplayer.btnEdit","Editer","InfoDisplayer.printWindowTitle","Fiche d'information","InfoDisplayer.Link","Lien","GeoCodeDisplayer.success","Geocodage effectué avec succès.","GeoCodeDisplayer.error","Erreur durant le geocodage.","GeoCodeDisplayer.geocode","Geocodage","LegendDisplayer.rootNodeLabel","Carte :","LegendDisplayer.btnRefresh","Actualiser","LegendDisplayer.reloadLayer","Recharger la couche","LegendDisplayer.reloadLayer.tooltip","Recharger la couche","LegendDisplayer.removeAnalysis","Supprimer l'analyse","LegendDisplayer.removeAnalysis.tooltip","Supprimer l'analyse","LegendDisplayer.ws.opacity","Régler l'opacité","ResultDisplayer.unableToGenerateExport_noSelection","Impossible de générer l'export, aucun résultat sélectionné.","ResultDisplayer.waitingExport","Préparation de l'export","ResultDisplayer.noResult","Aucun résultat.","ResultDisplayer.tooMany","Trop de résultats.","ResultDisplayer.selectAll","Tout sélectionner","ResultDisplayer.unSelectAll","Tout déselectionner","ResultDisplayer.wordExport","Exporter au format Word","ResultDisplayer.excelExport","Exporter au format Excel","ResultDisplayer.pdfExport","Exporter au format Pdf","ResultDisplayer.odtExport","Exporter au format odt","ResultDisplayer.results","Résultats : ","ResultDisplayer.firstPage","Première page","ResultDisplayer.prevPage","Page précédente","ResultDisplayer.nextPage","Page suivante","ResultDisplayer.lastPage","Dernière page","ResultDisplayer.locate","Positionner","ResultDisplayer.informationSheet","Fiche d'information","ResultDisplayer.geoCode","Geocodage","ResultDisplayer.export","Selectionner pour l'export","ResultDisplayer.returnFilter","Retour au filtre","ResultDisplayer.zoomAllResult","Zoomer sur les éléments","ResultDisplayer.nbResults"," résultat(s)","StatisticDisplayer.title","Statistique","StatisticDisplayer.btnClose","Fermer","StatisticDisplayer.getExportFile","Obtenir un export excel","StatisticDisplayer.noData","Aucune donnée à afficher !","StatisticDisplayer.wait","Veuillez patienter durant le rafraichissement des données","StatisticDisplayer.print","Imprimer la statistique","TableDisplayer.title","Tableau de bord","TableDisplayer.btnClose","Fermer","TableDisplayer.getExportFile","Obtenir un export excel","PdfExportDialog.format","Format : ","PdfExportDialog.orientation","Orientation : ","PdfExportDialog.portrait","Portrait","PdfExportDialog.landscape","Paysage","PdfExportDialog.scale","Echelle","PdfExportDialog.visibleLegend","Légende","PdfExportDialog.exportTitle","Titre : ","PdfExportDialog.btnExport","Obtenir l'export","PdfExportDialog.btnCancel","Annuler","PdfExportDialog.title","Exporter la carte en PDF","PdfExportDialog.model","Modèle","PdfExportDialog.exportTitle","Titre","PdfExportDialog.exportSubTitle","Sous-titre","PdfExportDialog.exportComment","Commentaires","PdfExportDialog.noExportTitle","Aucun export","PdfExportDialog.noExport","Impossible d'exporter, aucun modèle disponible.","Toolbar.recenterMap","Recentrer la carte","Toolbar.zoomIn","Zoom avant","Toolbar.zoomOut","Zoom arrière","Toolbar.pan","Déplacer la carte","Toolbar.clear","Effacer les sélections","Toolbar.clickMap","Obtenir des informations","Toolbar.print","Imprimer la carte","Toolbar.pdf","Exporter la carte en PDF","Toolbar.draw","Afficher la barre de dessin","Toolbar.scale","Echelle 1: ","Toolbar.updateScale","Modifier l'échelle","Toolbar.fullscreenMap","Agrandir / réduire la carte","Toolbar.getlink","Obtenir un lien vers cette page","Toolbar.disconnect","Se déconnecter","Toolbar.undoExtent","Emprise précédente","Toolbar.redoExtent","Emprise suivante","Toolbar.xycenter","Centrer","Toolbar.xy","Centrer sur les coordonnées","Toolbar.x","X :","Toolbar.y","Y :","Toolbar.updateX","Coordonnée X<br/>Valeur attendue : nombre décimal","Toolbar.updateY","Coordonnée Y<br/>Valeur attendue : nombre décimal","Toolbar.updateCenter","Centrer la carte sur les coordonnées","Toolbar.xCoord","Coordonnée X","Toolbar.yCoord","Coordonnée Y","ToolbarItems.refresh","Recentrer","ToolbarItems.zoomIn","Zoom +","ToolbarItems.zoomOut","Zoom -","ToolbarItems.pan","Déplacer","ToolbarItems.clean","Effacer","ToolbarItems.info","Informations","ToolbarItems.print","Imprimer","ToolbarItems.pdfExport","PDF","ToolbarItems.draw","Dessin","ToolbarItems.getLink","Lien","ToolbarItems.disconnect","Déconnecter","ToolbarItems.scale","Echelle","ToolbarItems.toggleTabView","Masquer les onglets","ToolbarItems.toggleTabViewNoResize","Masquer les onglets (sans redimensionnement)","ToolbarItems.separator"," -- séparateur -- ","ToolbarItems.undoExtent","Emprise précédente","ToolbarItems.redoExtent","Emprise suivante","ToolbarItems.xy","Centrer sur coordonnées X Y","Map.linkBounds.content","Voici le lien pointant vers cette carte : ","Map.linkBounds.title","Lien vers cette carte","MiniMapDialog.title","Carte miniature","MiniMapDialog.legend","Postionnement de la miniature:","MiniMapDialog.integratedMap","Intégrer la miniature dans la carte","MiniMapDialog.mapChoice","Identifiant de la carte d'accueil","MiniMapDialog.valid","Valider","MiniMapDialog.cancel","Annuler","ToolbarDialog.title","Barre d'outils","ToolbarDialog.legend","Orientation de la barre d'outils","ToolbarDialog.orientation","Orientation : ","ToolbarDialog.orientation.vertical","Verticale","ToolbarDialog.orientation.horizontal","Horizontale","ToolbarDialog.valid","Valider","ToolbarDialog.cancel","Annuler","UserInterface.results","Résultats","UserInterface.filters","Filtres","UserInterface.legend","Légende","UserInterface.buildMenu","menu","UserInterface.buildToolbar","barre d'outil","UserInterface.buildLayout","interface","UserInterface.buildMap","carte","UserInterface.buildMinimap","mini carte","UserInterface.Container.Map","carte","UserInterface.Container.Minimap","carte miniature","UserInterface.toggleTabView","Afficher / masquer les onglets","EditEngine.UnableToEditNonSelectedStyle.title","Impossible d'éditer","EditEngine.UnableToEditNonSelectedStyle.content","L'édition est impossible pour un style non défini par défaut","EditEngine.ie6.title","Avertissement !","EditEngine.ie6.content","Vous entrez dans l'édition avec un navigateur ancien.","EditEngine.ie6.content2","Aux vues de ses capacités, il est déconseillé d'utiliser l'édition avec celui-ci sous peine de ralentissements sévères.","WaitPanel.btnClose","Fermer","InfoPanel.btnClose","Fermer","ErrorPanel.btnClose","Fermer","YesNoPanel.btnYes","Valider","YesNoPanel.btnNo","Annuler","ServerAuth.connectionError","Erreur de connexion au serveur.","ServerAuth.accessRefused","Accès refusé. Mauvais login ou mot de passe.","ServerAuth.disconnected","Vous êtes correctement déconnecté du serveur.","ServerAuth.autoConnect","Vous pouvez essayer de vous reconnecter automatiquement : ","ServerAuth.autoConnectLink","Connexion automatique","ServerAuth.reConnect","Ou entrer à nouveau vos identifiants : ","ServerAuth.reConnectLink","Afficher la boite de connexion","ServerAuth.connectionErrorTitle","Erreur de connexion","ServerAuth.sessionOccupied","Session occupée, veuillez retenter votre action dans quelques instants","ServerAuth.refresh","Vous pouvez recharger la page : ","ServerAuth.refreshLink","Rechargement","ServerAuth.reconnectNow","La session a été perdue, le site va se recharger...","EditToolbar.magnet","Magnétisme","EditToolbar.grid","Grille magnétique","EditToolbar.startEngine","Editer","EditToolbar.stopEngine","Stop édition","EditToolbar.exitEngine","Quitter l'édition","EditToolbar.resizeNonEdit","Redimensionnement (hors édition)","EditToolbar.applyChanges","Sauvegarder","EditToolbar.title","Edition du site web","EditToolbar.editFieldset","Edition","EditToolbar.configFieldset","Configuration","EditToolbar.contentPanel","Elements de contenu","EditToolbar.contentPanelTooltip","Cliquer pour afficher / masquer les éléments de contenu","EditToolbar.loadOldParameters","Chargement d'un web.ini","EditToolbar.loadStyleParameters","Gestion des styles","EditToolbar.controlsFieldset","Contrôle de l'édition","EditToolbar.advanceEditFieldset","Edition avancée","EditToolbar.backgroundImages","Images","Types.banner","Bannière","Types.menu","Menu","Types.copyright","Copyright","Types.map","Carte","Types.minimap","Mini carte","Types.toolbar","Barre d'outils","Types.tabview","Tab view","Types.horizontalSpacer","Spacer horizontal","Types.verticalSpacer","Spacer vertical","Communication.error","Erreur de communication","ContentPanel.freeElements","Elements libres","ContentPanel.usedElements","Elements utilisés","ColorPicker.title","Couleur","ColorPicker.btnCancel","Annuler","ColorPicker.btnOk","Valider","ColorPicker.transparent"," transparent","ColorPicker.transparency","Opacité : ","ColorPicker.personalColor","Couleurs personnelles :","FontPicker.title","Police","FontPicker.btnCancel","Annuler","FontPicker.btnOk","Valider","FontPicker.fontFamily","Police : ","FontPicker.fontFamilyServer","Police du serveur : ","FontPicker.defaultFont","-- Polices du serveur --","FontPicker.fontSize","Taille : ","FontPicker.fontColor","Couleur : ","FontPicker.italic","Italique : ","FontPicker.underline","Souligné : ","FontPicker.bold","Gras : ","FontPicker.strike","Barré : ","FontPicker.view","Aperçu","MarginPicker.title","Marges","MarginPicker.btnCancel","Annuler","MarginPicker.btnOk","Valider","MarginPicker.topMargin","Haut : ","MarginPicker.leftMargin","Gauche : ","MarginPicker.rightMargin","Droite : ","MarginPicker.bottomMargin","Bas : ","MarginPicker.view","Aperçu","SaveDialog.title","Sauvegarde","SaveDialog.ok","Sauvegarde effectuée.","SaveDialog.bad","Erreur lors de la sauvegarde !","Map.information","Information","Map.noObject","Pas d'objet cartographique","PropertyDialog.btnClose","Valider","PropertyDialog.btnCancel","Annuler","PropertyDialog.Border.legend","Configuration des bordures","PropertyDialog.Border.color","Couleur de la bordure : ","PropertyDialog.Border.width","Epaisseur de la bordure : ","PropertyDialog.Border.type","Type de bordure : ","PropertyDialog.Rectangle.legend","Rectangle de zoom","PropertyDialog.Rectangle.bgcolor","Couleur de fond : ","PropertyDialog.Rectangle.bordercolor","Couleur de bordure : ","PropertyDialog.Rectangle.borderwidth","Epaisseur de la bordure : ","PropertyDialog.Rectangle.bordertype","Type de bordure : ","PropertyDialog.Background.legend","Fond","PropertyDialog.Background.color","Couleur du fond : ","EditToolbar.commonParameters","Paramètres globaux","EditToolbar.infoSheetParameters","Fiches d'information","EditToolbar.dialogParameters","Fenêtres","EditToolbar.statParameters","Statistiques","Edit.error","Erreur d'édition","Printmap.Ok","Imprimer","Printmap.Cancel","Annuler","Printmap.Orientation","Orientation: ","Printmap.Portait","Portrait","Printmap.Landscape","Paysage","Printmap.Showlegend","Afficher la légende: ","Printmap.Title","Imprimer la carte","Printmap.Scale","Echelle: ","PropertyDialog.Buttons.normal","Standard","PropertyDialog.Buttons.normalLegend","Bouton standard","PropertyDialog.Buttons.normalBorderColor","Couleur de bordure","PropertyDialog.Buttons.normalBorderWidth","Epaisseur de bordure","PropertyDialog.Buttons.normalBorderType","Type de bordure : ","PropertyDialog.Buttons.normalFontColor","Couleur de police : ","PropertyDialog.Buttons.normalBackColor","Couleur de fond : ","PropertyDialog.Buttons.normalType","Effet 3d : ","PropertyDialog.Buttons.over","Survolé","PropertyDialog.Buttons.overLegend","Bouton survolé","PropertyDialog.Buttons.overBorderColor","Couleur de bordure : ","PropertyDialog.Buttons.overBorderWidth","Epaisseur de bordure : ","PropertyDialog.Buttons.overBorderType","Type de bordure : ","PropertyDialog.Buttons.overFontColor","Couleur de police : ","PropertyDialog.Buttons.overBackColor","Couleur de fond : ","PropertyDialog.Buttons.overType","Effet 3d : ","PropertyDialog.Buttons.disable","Désactivé","PropertyDialog.Buttons.disableLegend","Bouton désactivé","PropertyDialog.Buttons.disableBorderColor","Couleur de bordure : ","PropertyDialog.Buttons.disableBorderWidth","Epaisseur de bordure : ","PropertyDialog.Buttons.disableBorderType","Type de bordure : ","PropertyDialog.Buttons.disableFontColor","Couleur de police : ","PropertyDialog.Buttons.disableBackColor","Couleur de fond : ","PropertyDialog.Buttons.disableType","Effet 3d : ","PropertyDialog.Label.legend","Label désactivé","PropertyDialog.Buttons.labelDisableColor","Couleur de police : ","PropertyDialog.Common.legend","Paramètres communs","PropertyDialog.Common.fontColor","Couleur de police : ","PropertyDialog.Common.fontFamily","Famille de police : ","PropertyDialog.Common.fontSize","Taille de police : ","PropertyDialog.Common.bgPict","Image de fond : ","PropertyDialog.Common.bgPictTooltip","Saisir l'adresse <b>relative</b> de l'image à partir du répertoire de style du thème placé dans<br/> <tt>bg/config/{votre thème}/styles</tt>","PropertyDialog.Common.font","Police : ","PropertyDialog.Common.bgPictPosition","Position de l'image : ","PropertyDialog.Common.bgPictRepeat","Répétition du fond : ","PropertyDialog.Repeat.repeat","horizontale et verticale","PropertyDialog.Repeat.repeatX","horizontale","PropertyDialog.Repeat.repeatY","verticale","PropertyDialog.Repeat.noRepeat","aucune","PropertyDialog.OverBorder.legend","Survol des items","PropertyDialog.OverBorder.borderColor","Couleur du cadre :","PropertyDialog.Menu.legend","Menu","PropertyDialog.Menu.menuOver","Couleur au survol d'un élément : ","PropertyDialog.Menu.menuItem","Couleur d'un élément : ","PropertyDialog.Menu.menuColor","Couleur de police : ","PropertyDialog.Menu.menuOpenOnClick","Mode d'ouverture du menu : ","PropertyDialog.Menu.openOnClick","Ouverture sur click","PropertyDialog.Menu.notOpenOnClick","Ouverture au survol","PropertyDialog.Menu.menuOverColor","Couleur de police au survol :","PropertyDialog.Type.legend","Type d'effet","PropertyDialog.Type.type","Effet 3d : ","PropertyDialog.Tabs.legend","Onglets","PropertyDialog.Tabs.selected","Couleur d'onglet sélectionné","PropertyDialog.Tabs.over","Couleur d'onglet survolé","PropertyDialog.Tabs.unselected","Couleur d'onglet non sélectionné","PropertyDialog.Tabs.color","Couleur de police : ","PropertyDialog.Legend.legend","Légende","PropertyDialog.Legend.fontColor","Couleur de police : ","PropertyDialog.Results.legend","Résultats","PropertyDialog.Results.itemBackColor","Couleur de fond : ","PropertyDialog.Results.itemAlternBackColor","Couleur de fond alterné : ","PropertyDialog.Results.itemLine1Color","Couleur de la première ligne : ","PropertyDialog.Results.itemLine2Color","Couleur de la deuxième ligne : ","PropertyDialog.Results.itemHighlightColor","Couleur de survol : ","PropertyDialog.Results.itemOverDisplay","Affichage des icones au survol uniquement : ","PropertyDialog.Results.zoomOnResults","Zoomer directement sur les résultats de recherches :","PropertyDialog.FontColor.legend","Couleur de police","PropertyDialog.FontColor.color","Couleur de police: ","PropertyDialog.Exports.legend","Exports","PropertyDialog.Exports.autoOpen","Ouverture automatique des fichiers : ","PropertyDialog.Exports.autoClose","Fermeture automatique des exports : ","PropertyDialog.Exports.showMap","Carte visible : ","PropertyDialog.Exports.wordExport","Export word : ","PropertyDialog.Exports.excelExport","Export excel : ","PropertyDialog.Exports.pdfExport","Export pdf : ","PropertyDialog.Exports.odtExport","Export odt : ","PropertyDialog.Exports.exportMapFormatsTooltip","Entrer les formats séparés par une virgule (ex : A3,A4,A5)","PropertyDialog.Exports.exportMapFormats","Formats d'export PDF de carte :","PropertyDialog.Exports.exportMapOrientation","Orientation de l'export par défaut :","PropertyDialog.Exports.exportUserScale","Permettre à l'utilisateur de saisir l'échelle : ","PropertyDialog.Banner.legend","Bannière et titre","PropertyDialog.Banner.bgPict","Fond de la bannière : ","PropertyDialog.Banner.bgPictTooltip","Saisir l'adresse <b>relative</b> de l'image à partir du répertoire du thème placé dans<br/> <tt>bg/config/{votre thème}</tt>","PropertyDialog.Banner.bannerRepeat","Répétition de la bannière : ","PropertyDialog.Banner.logo","Logo: ","PropertyDialog.Banner.logoTooltip","Saisir l'adresse <b>relative</b> de l'image à partir du répertoire du thème placé dans<br/> <tt>bg/config/{votre thème}</tt>","PropertyDialog.Banner.title","Titre: ","PropertyDialog.Banner.titleFont","Police: ","PropertyDialog.Copyright.legend","Copyright","PropertyDialog.Copyright.text","Texte: ","PropertyDialog.Copyright.font","Police: ","PropertyDialog.ColorTheme.legend","Thème de couleur","PropertyDialog.ColorTheme.colorTheme","Couleur des icones : ","PropertyDialog.ColorTheme.orange","Orange","PropertyDialog.ColorTheme.gray","Gris","PropertyDialog.ColorTheme.red","Rouge","PropertyDialog.ColorTheme.blue","Bleu","PropertyDialog.ColorTheme.green","Vert","PropertyDialog.ColorTheme.default","Thème par défaut","PropertyDialog.ColorTheme.newdefault","Thème avec effets","PropertyDialog.Dialogs.legend","Dialogues","PropertyDialog.Dialogs.background","Couleur de la barre de titre : ","PropertyDialog.Dialogs.fontColor","Couleur de la police du titre : ","PropertyDialog.Dialogs.titleType","Type de la barre de titre : ","PropertyDialog.Dialogs.titleFont","Police du titre: ","PropertyDialog.Dialogs.font","Police: ","PropertyDialog.InfoSheet.colorStatus","Couleur du status: ","PropertyDialog.InfoSheet.defaultSheet","Fiche par défaut","PropertyDialog.InfoSheet.logo","Chemin du logo: ","PropertyDialog.InfoSheet.map","Inclure la carte : ","PropertyDialog.InfoSheet.mapWidth","Largeur de la carte : ","PropertyDialog.InfoSheet.mapHeight","Hauteur de la carte : ","PropertyDialog.InfoSheet.export","Permettre l'export PDF : ","PropertyDialog.InfoSheet.status","Police du status : ","PropertyDialog.InfoSheet.mapBorderColor","Couleur de bordure de la carte : ","PropertyDialog.InfoSheet.mapBorderWidth","Taille de bordure de la carte : ","PropertyDialog.InfoSheet.mapBorderType","Type de bordure de la carte : ","PropertyDialog.InfoSheet.positionLogo","Position du logo : ","PropertyDialog.InfoSheet.right","Droite","PropertyDialog.InfoSheet.left","Gauche","PropertyDialog.InfoSheet.vertMarginLogo","Marge verticale pour le logo : ","PropertyDialog.InfoSheet.horizMarginLogo","Marge horizontale pour le logo : ","PropertyDialog.InfoSheet.Width","Largeur de la fiche d'info : ","PropertyDialog.InfoSheet.Height","Hauteur de la fiche d'info : ","PropertyDialog.InfoSheet.titleFont","Police du titre : ","PropertyDialog.InfoSheet.valueFont","Police des valeurs : ","PropertyDialog.InfoSheet.labelFont","Police des labels : ","PropertyDialog.InfoSheet.titleUnderline","Couleur du soulignement : ","PropertyDialog.InfoSheet.sheetAsDefault","Utiliser le paramètrage par défaut : ","PropertyDialog.InfoSheet.logoLegend","Logo","PropertyDialog.InfoSheet.mapLegend","Carte","PropertyDialog.InfoSheet.layoutLegend","Placement de la fiche","PropertyDialog.InfoSheet.outputLegend","Format d'affichage","PropertyDialog.InfoSheet.dimensionLegend","Dimensions","PropertyDialog.InfoSheet.miscLegend","Divers","PropertyDialog.InfoSheet.Dimension","Forcer la taille de la fiche :","PropertyDialog.InfoSheet.layout","Choix de la mise en page : ","PropertyDialog.InfoSheet.layoutTop","Carte en haut","PropertyDialog.InfoSheet.layoutTopLeft","Carte en haut à gauche","PropertyDialog.InfoSheet.layoutTopRight","Carte en haut à droit","PropertyDialog.InfoSheet.layoutLeft","Carte à gauche","PropertyDialog.InfoSheet.layoutRight","Carte à droite","PropertyDialog.InfoSheet.layoutBottom","Carte en bas","PropertyDialog.InfoSheet.tableLegend","Style des données","PropertyDialog.InfoSheet.table","Affichage des données :","PropertyDialog.InfoSheet.tableTable","Tableau","PropertyDialog.InfoSheet.tableList","Liste","PropertyDialog.InfoSheet.joinLegend","Style des données jointes","PropertyDialog.InfoSheet.join","Affichage des données jointes :","PropertyDialog.InfoSheet.joinHorizTable","Table horizontale","PropertyDialog.InfoSheet.joinVertTable","Table verticale","PropertyDialog.InfoSheet.joinList","Liste","PropertyDialog.InfoSheet.view","Aperçu :","PropertyDialog.Stats.defaultStat","Statistique par défaut","PropertyDialog.Stats.chartType","Type de graphique","PropertyDialog.Stats.hasExport","Permettre l'export","PropertyDialog.Stats.pictFromServer","Graphique du serveur","PropertyDialog.Stats.barChart","Graphique en barre (flash)","PropertyDialog.Stats.lineChart","Graphique en ligne (flash)","PropertyDialog.Stats.columnChart","Histogramme (flash)","PropertyDialog.Stats.pieChart","Diagramme circulaire (flash)","PropertyDialog.Stats.statAsDefault","Utiliser le paramètrage par défaut : ","PropertyDialog.Banner.bannerPosition","Position de la bannière","PropertyDialog.Banner.leftPosition","Gauche","PropertyDialog.Banner.centerPosition","Centré","PropertyDialog.Banner.rightPosition","Droite","PropertyDialog.Banner.leftAlign","Gauche","PropertyDialog.Banner.centerAlign","Centré","PropertyDialog.Banner.rightAlign","Droite","PropertyDialog.Banner.height","Hauteur de la bannière : ","PropertyDialog.Banner.logoPosition","Position du logo","PropertyDialog.Banner.titleAlign","Alignement du titre","PropertyDialog.Banner.titleHorizMargin","Marge horizontale","PropertyDialog.Banner.titleVertMargin","Marge verticale","PropertyDialog.Banner.titleFont","Police de la bannière : ","PropertyDialog.TabViewTitle.legend","Titre","PropertyDialog.TabViewTitle.titleFontColor","Couleur de la police","PropertyDialog.TabViewTitle.titleBorderColor","Couleur du soulignement","PropertyDialog.Auth.legend","Authentification","PropertyDialog.Auth.auth","Type","PropertyDialog.Auth.plain","Non crypté","PropertyDialog.Auth.md5","Hashage MD5","PropertyDialog.Auth.rsa","Echange de clés avec RSA","PropertyDialog.Auth.showLoginWindow","Afficher la fenêtre d'authentification","PropertyDialog.Auth.defaultUser","Utilisateur par défaut","PropertyDialog.Auth.defaultPassword","Mot de passe par défaut","PropertyDialog.InfoSheet.serverOutPut","Mode de création","PropertyDialog.InfoSheet.withoutXSL","Formatage par défaut","PropertyDialog.InfoSheet.withXSL","Formatage XSL","PropertyDialog.InfoSheet.xsl","Nom du fichier XSL pour la consultation","PropertyDialog.InfoSheet.xslUpdate","Nom du fichier XSL pour la mise à jour","PropertyDialog.Stats.showTable","Afficher le tableau des données","PropertyDialog.MapParams.minimized","Affichage initial","PropertyDialog.MiniMap.isMinimized","Masquer par défaut la mini map :","PropertyDialog.MapParams.legend","Paramètres de la carte","PropertyDialog.MapParams.mapType","Type de carte","PropertyDialog.MapParams.showScale","Inclure l'echelle","PropertyDialog.MapParams.isEditable","Activer l'outil de dessin (carte en flash)","PropertyDialog.MapParams.image","Image","PropertyDialog.MapParams.flash","Flash","PropertyDialog.MapParams.flashWarning","Attention, certaines modification ne seront visibles qu'après rechargement du site.","PropertyDialog.ResizeMode.legend","Mode d'agrandissement","PropertyDialog.ResizeMode.label","Agrandissement : ","ResizeMode.none","Aucun","ResizeMode.both","Horizontal et vertical","ResizeMode.horizontal","Horizontal","ResizeMode.vertical","Vertical","PropertyDialog.Tooltip.legend","Info-bulles","PropertyDialog.Tooltip.background","Couleur de fond : ","PropertyDialog.Tooltip.borderColor","Couleur de bordure : ","PropertyDialog.Tooltip.borderWidth","Taille de bordure : ","PropertyDialog.Tooltip.borderType","Type de bordure : ","PropertyDialog.Tooltip.font","Police : ","PropertyDialog.Margins.legend","Marges de l'élément","PropertyDialog.Margins.margins","Marges : ","PropertyDialog.Menu.menuFill","Remplissage de l'espace : ","PropertyDialog.Menu.menuFillNone","Taille minimum","PropertyDialog.Menu.menuFillAll","Etendre le menu","PropertyDialog.Web.ini.readErrorTitle","Erreur de lecture des anciens paramètres","PropertyDialog.Web.ini.readError","Une erreur s'est produite durant la lecture de l'ancien fichier de paramètrage. Assurez vous d'avoir copié un fichier de paramètrage correct.","PropertyDialog.OldParams.legend","Chargement d'un web.ini","PropertyDialog.OldParams.oldIni","Copiez ici le contenu de votre fichier 'web.ini'.","PropertyDialog.OldParams.waitTitle","Patientez...","PropertyDialog.OldParams.waitContent","Veuillez patienter durant la configuration...","PropertyDialog.OldParams.waitTitle_ie","Veuillez patienter durant la configuration...\nLe Système peut sembler inactif durant quelques instants...","PropertyDialog.Web.ini.messagesTitle","Détails concernant la configuration","PropertyDialog.Web.ini.menu","Certaines propriétés du menu ne seront visible qu'au rechargement de l'interface.","PropertyDialog.StyleParams.infoTitle","Mise à jour des styles","PropertyDialog.StyleParams.legend","Gestion des styles","PropertyDialog.StyleParams.defaultStyle","Style par défaut","PropertyDialog.StyleParams.warning","Attention, toutes les modifications effectuées jusqu'à présent seront perdues lors de la validation du style !","PropertyDialog.StyleParams.warningStyle","Si vous voulez sélectionner un style que vous venez de créer, assurez vous d'avoir préalablement sauvegardé l'action.","PropertyDialog.StyleParams.infoContent","Le site va être redémarré avec la nouvelle sélection de style.","PropertyDialog.StyleParams.followLink","La page va se recharger dans 5 secondes. Si cela n'est pas effectif, cliquez sur le lien ci-dessous.","PropertyDialog.StyleParams.link","Recharger avec le nouveau style","PropertyDialog.StyleParams.selectStyleLegend","Selection du style par défaut","PropertyDialog.StyleParams.copyStyleLegend","Création d'un nouveau style par copie","PropertDialog.StyleParams.copyFromStyle","Style de base","PropertyDialog.StyleParams.copyToStyle","Nom du nouveau style","PropertyDialog.StyleParams.renameStyleLegend","Renommer un style","PropertDialog.StyleParams.renameFromStyle","Style à renommer","PropertyDialog.StyleParams.renameToStyle","Nouveau nom","PropertyDialog.StyleParams.removeStyleLegend","Suppression de style","PropertDialog.StyleParams.removeFromStyle","Style à supprimer","PropertyDialog.StyleParams.noSpecialChars","Entrez le nom sans espaces, accents ou caractères spéciaux","PropertyDialog.StyleParams.errorTitle","Erreur de saisie","PropertyDialog.StyleParams.errorContent","Vous venez de saisir le nom d'un style existant. L'opération n'est pas permise.","PropertyDialog.FlashGeom.legend","Survol","PropertyDialog.FlashGeom.backColor","Couleur du fond","PropertyDialog.FlashGeom.alpha","Transparence du fond","PropertyDialog.FlashGeom.alphaTooltip","Entrez la valeur de transparence, entier compris entre 0 et 100","PropertyDialog.FlashGeom.borderColor","Couleur de la bordure","PropertyDialog.FlashGeom.borderAlpha","Transparence de la bordure (carte flash)","PropertyDialog.FlashGeom.borderWidth","Epaisseur de la bordure (carte flash)","PropertyDialog.RelPos.legend","Positionnement relatif","PropertyDialog.RelPos.linkedTo","Lié à l'élément :","PropertyDialog.RelPos.linkedOn","Lié au coin :","PropertyDialog.RelPos.topleft","haut gauche","PropertyDialog.RelPos.topright","haut droit","PropertyDialog.RelPos.bottomleft","bas gauche","PropertyDialog.RelPos.bottomright","bas droit","PropertyDialog.ToolbarItems.legend","Elements présents dans la barre d'outils","PropertyDialog.ToolbarItems.titleUsed","Elements présents","PropertyDialog.ToolbarItems.titleFree","Elements disponibles","PropertyDialog.BackgroundImages.top","Haut","PropertyDialog.BackgroundImages.top.url","Image","PropertyDialog.BackgroundImages.top.height","Hauteur","PropertyDialog.BackgroundImages.top.repeat","Repétition","PropertyDialog.BackgroundImages.right","Droite","PropertyDialog.BackgroundImages.right.url","Image","PropertyDialog.BackgroundImages.right.width","Largeur","PropertyDialog.BackgroundImages.right.repeat","Repétition","PropertyDialog.BackgroundImages.bottom","Bas","PropertyDialog.BackgroundImages.bottom.url","Image","PropertyDialog.BackgroundImages.bottom.height","Hauteur","PropertyDialog.BackgroundImages.bottom.repeat","Repétition","PropertyDialog.BackgroundImages.left","Gauche","PropertyDialog.BackgroundImages.left.url","Image","PropertyDialog.BackgroundImages.left.width","Largeur","PropertyDialog.BackgroundImages.left.repeat","Repétition","PropertyDialog.BackgroundImages.topleft","Haut gauche","PropertyDialog.BackgroundImages.topleft.url","Image","PropertyDialog.BackgroundImages.topleft.width","Largeur","PropertyDialog.BackgroundImages.topleft.height","Hauteur","PropertyDialog.BackgroundImages.topleft.repeat","Repétition","PropertyDialog.BackgroundImages.topright","Haut droite","PropertyDialog.BackgroundImages.topright.url","Image","PropertyDialog.BackgroundImages.topright.width","Largeur","PropertyDialog.BackgroundImages.topright.height","Hauteur","PropertyDialog.BackgroundImages.topright.repeat","Repétition","PropertyDialog.BackgroundImages.bottomright","Bas droite","PropertyDialog.BackgroundImages.bottomright.url","Image","PropertyDialog.BackgroundImages.bottomright.width","Largeur","PropertyDialog.BackgroundImages.bottomright.height","Hauteur","PropertyDialog.BackgroundImages.bottomright.repeat","Repétition","PropertyDialog.BackgroundImages.bottomleft","Bas gauche","PropertyDialog.BackgroundImages.bottomleft.url","Image","PropertyDialog.BackgroundImages.bottomleft.width","Largeur","PropertyDialog.BackgroundImages.bottomleft.height","Hauteur","PropertyDialog.BackgroundImages.bottomleft.repeat","Repétition","PropertyDialog.ExtraMenu.legend","Menu personnalisé","PropertyDialog.ExtraMenu.enable","Activer :","PropertyDialog.ExtraMenu.name","Nom du menu :","PropertyDialog.ExtraMenu.items","Sous menus :","PropertyDialog.ExtraMenu.btnAdd","Ajouter un sous menu","PropertyDialog.ExtraMenu.defaultLabel","Sous menu","PropertyDialog.ExtraMenu.defaultUrl","http://www.business-geografic.com","PropertyDialog.ExtraMenu.itemLabel","Libellé :","PropertyDialog.ExtraMenu.itemUrl","Url : ","PropertyDialog.ExtraMenu.warning","Attention, les changements effectués ici ne seront visibles qu'après rechargement du site !","PropertyDialog.ExtraMenu.move","\u21F5","PropertyDialog.ExtraMenu.delete","Supprimer","Tooltip.showMetadata","Afficher les méta-données","Tooltip.print","Imprimer","Tooltip.ExportPDF","Exporter en PDF","Tooltip.editableItem","Double-cliquez sur cette couche pour\nen éditer ses propriétées.","Warning.FlashPlayer","Flash player","Warning.FlashPlayerNOK","Flash player n'est pas installé ou sa version est trop ancienne, l'appication n'utilisera pas flash.","Warning.FlashPlayerVersion","La version minimum requise de flash est la %1.","Download.FlashPlayer","Cliquez ici pour télécharger flash player","Url.FlashPlayer","http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French","EditMenu.editProperties","Editer les propriétés","EditMenu.delete","Supprimer","EditMenu.relPos","Configurer le positionnement relatif","EditMenu.absPos","Passer en positionnement absolu","EditEngine.startTitle","Mode édition","EditEngine.startContent","Veuillez patienter durant le chargement de l'édition.","EditEngine.stopTitle","Mode édition","EditEngine.stopContent","Veuillez patienter durant la fermeture de l'édition.","EditEngine.saveTitle","Sauvegarde","EditEngine.saveContent","Veuillez patienter durant la sauvegarde des paramètres.","Validation.required","Le champ '%name%' est requis","Validation.notANumber","Le champ '%name%' doit être un numérique","Validation.notAnInteger","Le champ '%name%' doit être un entier","Validation.minNumber","Le champ '%name%' est inférieur au minimum requis '%min%'","Validation.maxNumber","le champ '%name%' est supérieur au maximum requis '%max%'","Validation.allRequiredOrEmpty","Les valeurs du champs '%name%' doivent être toutes saisies ou vides","Validation.notValidRegExp","Le champ '%name%' ne correspond pas au pattern souhaité : %pattern%","Validation.failed","Erreur, saisies non valides","Validation.compare","Le champ '%name%' n'est pas valide","Validation.notADate","Le champ '%name%' n'est pas une date valide (jj/mm/aaaa souhaité)","FileUpload.send","Envoyer !","FileUpload.label","Sélection du fichier","FileUpload.loading","Veuillez patienter, chargement en cours...","FileUpload.allowedExtensions","Formats autorisés : %ext%","FileUpload.zip","Archive","LayerStyle.title","Style","LayerStyle.valid","Valider","LayerStyle.close","Fermer","LineStylePicker.title","Style de ligne","LineStylePicker.firstLine","Première ligne","LineStylePicker.secondLine","Deuxième ligne","LineStylePicker.space","Espacement","LineStylePicker.btnOk","Valider","LineStylePicker.btnCancel","Annuler","GeoEdit.reportTitle","Modification géométrique","GeoEdit.reportPoint","%n point(s)","GeoEdit.reportLine","%n ligne(s)","GeoEdit.reportPoly","%n polygone(s)","GeoEdit.reportEllipse","%n ellipse(s)","GeoEdit.reportText","%n texte(s)","GeoEdit.reportAddTitle","Elément(s) ajouté(s) :","GeoEdit.reportEditTitle","Elément(s) modifié(s) :","GeoEdit.reportDelTitle","Elément(s) supprimé(s) :","GeoEdit.errorTitle","Erreur","GeoEdit.toomany","Trop de géométries dans l'emprise (%count), veuillez vous rapprocher de la zone à éditer","GeoEdit.notvisibleatscale","Couche non disponible au niveau de zoom %current (uniquement %min - %max)","ImageBrowser.title","Navigateur d'images","ImageBrowser.valid","Valider","ImageBrowser.cancel","Annuler","ImagesParams.name","Nom de l'image : ","ImagesParams.path","Chemin vers l'image : ","ImagesParams.weight","Poids de l'image : ","ImagesParams.dimensions","Dimensions de l'image : ","IconListDialog.valid","Valider","IconListDialog.noImage","Aucune icone","IconListDialog.cancel","Annuler","IconListDialog.title","Sélection d'icone","InternalServerError.title","Erreur interne au serveur","InternalServerError.msg","Une erreur s'est produite au niveau du serveur (500) !","InternalServerError.explanation","Ceci peut être causé par une erreur de connexion, un problème de paramètrage ou une surcharge du serveur.","InternalServerError.otherexplanation","Certaines fonctionnalités peuvent ne plus fonctionner correctement","InternalServerError.contact","Veuillez contacter votre l'administrateur pour de plus amples informations.","InfoSheet.externalInfoSheetLabel","Fiche jointe","InfoSheet.externalInfoSheet","Ouvrir","InfoSheet.addJoinedData","Ajouter des données","AddInfoDisplayer.addInfo","Ajout de données","AddInfoDisplayer.success","Enregistrement effectué","AddInfoDisplayer.successMessage","Les données ont bien été enregistrées, la fiche d'information va être rechargée.","AddInfoDisplayer.error","Erreur lors de l'enregistrement","AddInfoDisplayer.errorMessage","Une erreur s'est produite lors de l'enregistrement.","DatePicker.btnOk","Valider","DatePicker.btnCancel","Annuler","DatePicker.month","Mois","DatePicker.year","Année","DatePicker.fieldDelimiter","/","DatePicker.mdyDayPosition",1,"DatePicker.mdyMonthPosition",2,"DatePicker.mdyYearPosition",3,"DatePicker.mdDayPosition",1,"DatePicker.mdMonthPosition",2,"DatePicker.monthsShort",["Jan","Fév","Mars","Avr","Mai","Juin","Juil","Aout","Sept","Oct","Nov","Dec"],"DatePicker.monthsLong",["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],"DatePicker.weekDays1",["D","L","M","M","J","V","S"],"DatePicker.weekDaysS",["Di","Lu","Ma","Me","Je","Ve","Sa"],"DatePicker.weekDaysM",["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],"DatePicker.weekDays",["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],"DatePicker.invalidYear","L'année entrée est invalide."];
BG.language.French.initialize();var _=BG.util.Util.bind(BG.language.French.getString,BG.language.French);var $=BG.util.Util.bind(BG.language.French.addString,BG.language.French);var $$=BG.util.Util.bind(BG.language.French.hasString,BG.language.French);BG.ext.Language.updateString=BG.util.Util.bind(BG.language.French.updateString,BG.language.French);
BG.application.Cache=function(){this.init()};BG.application.Cache.useCache=true;BG.application.Cache.prototype={init:function(){var C=null;var G=null;var A=null;var D=null;var F=null;var B=null;var E=null;this.replace=function(I){var J=C;var H;if(!BG.util.Util.isValidVariable(J)){return }for(H=0;H<J.length;H++){if(J[H].model.getName()==I.model.getName()){J[H]=I}}};this.add=function(M,H,J){var L;var I;if(H=="result"){if(!BG.util.Util.isValidVariable(G)){G=[]}L=G}else{if(H=="filter"){I=this.find(M.getName(),H);if(I!==null){I.model.updateIds(M);this.replace(I);return false}if(!BG.util.Util.isValidVariable(C)){C=[]}L=C}else{return false}}var K=BG.application.Application.getInstance().getParameters();if(L.length>=K.getCacheSize()){L.reverse();L.pop();L.reverse()}L.push({model:M,filteredFunctionType:J});return true};this.emptyBuffer=function(H){if(H=="result"){G=null}else{if(H=="filter"){C=null}else{return false}}return true};this.find=function(H,J){var K=C;var I;if(BG.util.Util.isValidVariable(K)){for(I=0;I<K.length;I++){if(K[I].model.getName()==H){return K[I]}}}if(J==1){K=G}else{return null}if(BG.util.Util.isValidVariable(K)){for(I=0;I<K.length;I++){if(K[I].model.getName()==H){return K[I]}}}return null};this.contains=function(H,I){return this.find(H,I)!==null};this.restore=function(L,N){var I=BG.application.Application.getInstance().getParameters();var K=this.find(L,N);var J;var H;var P;var O;var M;if(K!==null){if(K.model instanceof BG.model.FilterModel){J=[];H=K.model;J.push({filters:H});P=new BG.view.displayer.FilterDisplayer();P.load("onFilterReady",J);O=I.getTarget("filters",H.getName());P.render(O)}else{switch(parseInt(N,10)){case BG.action.ActionFactory.TYPE_SEARCH:J=[];J.push({results:K.model});M=new BG.view.displayer.ResultDisplayer("onResultReady",J);break;case BG.action.ActionFactory.TYPE_ANALYSIS:break;default:return false}}return true}return false}}};
BG.application.MapManager=function(){this.init()};BG.application.MapManager.OldExtent=function(){};BG.application.MapManager.OldExtent.prototype={extents:{},idx:{},disableNext:{},pushExtent:function(A,B){if(!(A in this.extents)){this.extents[A]=[];this.idx[A]=-1;this.disableNext[A]=false}if(this.disableNext[A]){this.disableNext[A]=false;return }this.idx[A]+=1;this.extents[A].length=this.idx[A]+1;this.extents[A][this.idx[A]]=B},undoExtent:function(B){if(!(B in this.idx)){return null}if(this.idx[B]===0){return null}this.disableNext[B]=true;this.idx[B]-=1;var A=this.extents[B][this.idx[B]];return A},serialize:function(B){var C=[];for(var A=0;A<this.extents[B].length;A++){C.push(this.extents[B][A].serialize())}return C.join("\n")},redoExtent:function(A){if(!(A in this.idx)){return null}if(this.idx[A]==this.extents[A].length-1){return null}this.disableNext[A]=true;this.idx[A]+=1;return this.extents[A][this.idx[A]]}};BG.application.MapManager.NO_STATE=-1;BG.application.MapManager.STATE_ZOOM_IN=0;BG.application.MapManager.STATE_ZOOM_OUT=1;BG.application.MapManager.STATE_PAN=2;BG.application.MapManager.STATE_CLICK_MAP=3;BG.application.MapManager.DEFAULT_STATE=BG.application.MapManager.STATE_PAN;BG.application.MapManager.prototype={init:function(){var C=null;var E=null;var B=null;var N=null;var L=new BG.application.MapManager.OldExtent();var D=[0,1,2,3];var J={};var K=function(P){var O=I(P);if(O==BG.application.MapManager.STATE_PAN){this.pan(P)}else{if(O==BG.application.MapManager.STATE_ZOOM_IN){this.zoomIn(P)}else{if(O==BG.application.MapManager.STATE_ZOOM_OUT){this.zoomOut(P)}else{if(isset(O)){if(O in extendedMethods){extendedMethods[O](P)}}}}}};var M=function(R,O){if(E===null){E=[];E.push({idMap:R,state:O});return O}var P,Q;for(P=0;P<E.length;P++){Q=E[P];if(Q.idMap==R){Q.state=O;return O}}E.push({idMap:R,state:O});return O};this.setCurrentState=M;var I=function(Q){if(E===null){return BG.application.MapManager.DEFAULT_STATE}var O,P;for(O=0;O<E.length;O++){P=E[O];if(P.idMap==Q){return P.state}}return BG.application.MapManager.DEFAULT_STATE};this.getCurrentState=I;this.createState=function(P){var O=D.length;D[O]=O;BG.application.MapManager[P]=O;return O};this.extentMap=function(Q,O,P){J[Q]=P;this[O]=BG.util.Util.bind(P,this)};var F=function(P,O){if(N===null){N=[]}N.push({idMap:P,dd:O})};var H=function(Q){if(N===null){return false}var O,P;for(O=0;O<N.length;O++){P=N[O];if(P.idMap==Q){P.dd.unreg();N.slice(0,O).concat(N.slice(O+1,N.length));return true}}return false};var A=function(P){H(P);var O=document.getElementById(P);O.onmousemouve="";O.onmouseup="";O.onmousedown="";O.onclick="";O.ondblclick="";O.onmousepress="";O.onmouseover="";O.onmouseout="";YAHOO.util.Event.purgeElement(P,false)};var G=function(P){A(P);var O=document.getElementById("moveableDiv_"+P);if(O){O.parentNode.removeChild(O)}};this.clean=G;this.getMaps=function(){return C};this.getMap=function(Q){var P,O;if(C!==null){P=null;for(O=0;O<C.length;O++){P=C[O];if(P.getName()==Q){return P}}return null}return null};this.isFlashMap=function(P){var O=this.getMap(P);if(O===null){return false}return O.getType()==BG.model.MapModel.TYPE_FLASH};this.undoExtent=function(T){var S=this.getMap(T);if(S===null){return }if(S.getType()==BG.model.MapModel.TYPE_FLASH){S.getFlashObject().prevExtent();return }var R=L.undoExtent(T);if(R===null){return }var O=BG.application.Application.getInstance();var P=BG.action.MapAction.PREFIX+T;var Q=O.getAction(BG.action.ActionFactory.TYPE_MAP,P);if(Q===null){Q=new BG.action.MapAction(P,P,T)}Q.execute(R)};this.redoExtent=function(T){var S=this.getMap(T);if(S===null){return }if(S.getType()==BG.model.MapModel.TYPE_FLASH){S.getFlashObject().nextExtent();return }var R=L.redoExtent(T);if(R===null){return }var O=BG.application.Application.getInstance();var P=BG.action.MapAction.PREFIX+T;var Q=O.getAction(BG.action.ActionFactory.TYPE_MAP,P);if(Q===null){Q=new BG.action.MapAction(P,P,T)}Q.execute(R)};this.addMap=function(U,W){log.info("add map "+U.getId());if(!BG.util.Util.isValidVariable(W)){W=false}var O=U.getId();var T;if(!W){T=U.getBounds();if(!isset(T)){T=new BG.util.Bounds()}else{T=T.clone()}L.pushExtent(O,T)}var S,R;if(C===null){C=[]}else{for(R=0;R<C.length;R++){S=C[R];if(S.getId()==O){C[R]=U;if(W){return true}if(U.getType()!=BG.model.MapModel.TYPE_FLASH){K.call(this,U.getName())}else{this.fireMapChangeEvent(U)}return true}}}C.push(U);if(W){return true}var P=function(b,a){var Z=a[0].map;var Y=document.getElementById(BG.model.FeatureModel.SCALE_FIELD_PREFIX+Z.getId());if(Y){Y.value=Z.getScale()}};var X=function(d,a){var Z=a[0].map;var c=document.getElementById(BG.model.FeatureModel.CENTER_X_PREFIX+Z.getId());if(!c){return }var b=Z.getBounds();if(!isset(b)){return }var Y=b.getRealCenter();c.value=BG.util.Util.formatCoord(Y.getX())};var V=function(d,a){var Z=a[0].map;var b=document.getElementById(BG.model.FeatureModel.CENTER_Y_PREFIX+Z.getId());if(!b){return }var c=Z.getBounds();if(!isset(c)){return }var Y=c.getRealCenter();b.value=BG.util.Util.formatCoord(Y.getY())
};if(U.getType()!=BG.model.MapModel.TYPE_FLASH){K.call(this,U.getName())}if(!isset(B)){B=[]}var Q=new YAHOO.util.CustomEvent("onMapChanged_"+U.getId());B.push({id:U.getId(),event:Q});this.subscribeToMapChangeEvent(U.getId(),P);this.subscribeToMapChangeEvent(U.getId(),X);this.subscribeToMapChangeEvent(U.getId(),V);P(null,[{map:U}]);X(null,[{map:U}]);V(null,[{map:U}]);return true};this.zoomIn=function(X){var h=this.getMap(X);var T,S,e,Q,R,f,Z,i;var V,W,O,b,U,a;if(h.getType()==BG.model.MapModel.TYPE_FLASH){h.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_ZOOM_IN);return }T=BG.application.Application.getInstance().getParameters().getTarget("maps",X).ident;G(T);S=document.getElementById(T);if(YAHOO.env.ua.gecko>0){S.style.cursor="-moz-zoom-in"}else{if(YAHOO.env.ua.ie>0){S.style.cursor="crosshair"}else{S.style.cursor="default"}}M(X,BG.application.MapManager.STATE_ZOOM_IN);R=this.getMap(X);f=document.getElementById(T);Z=false;var P=function(j,l){var k;h.setInDragMode(true);Q=document.createElement("div");Q.className="zoomRectangle";e=[j,l];if(YAHOO.util.Dom.getStyle(f,"position")=="absolute"){k=YAHOO.util.Dom.getXY(f);e[0]-=k[0];e[1]-=k[1]}Q.style.left=e[0]+"px";Q.style.top=e[1]+"px";document.getElementById(T).appendChild(Q);W=document.getElementById(T+"_bck");O=document.getElementById(i.id);b=document.getElementById(O.useMap.replace(/^#/,""));U=document.getElementById(T+"_canvas");a=document.getElementById(T+"_div");if(isset(O)){if(YAHOO.env.ua.ie>0){O.style.filter="Alpha(opacity=100)"}else{O.style.opacity="1"}}if(isset(b)){b.style.display="none"}if(isset(U)){U.style.display="none"}if(isset(a)){a.style.display="none"}if(isset(W)){W.style.display="none"}};var Y=function(n){var k=YAHOO.util.Event.getXY(n);var o;if(YAHOO.util.Dom.getStyle(f,"position")=="absolute"){o=YAHOO.util.Dom.getXY(f);k[0]-=o[0];k[1]-=o[1]}var m;if(k[0]>e[0]){m=e[0]}else{m=k[0]}var l;if(k[1]>e[1]){l=e[1]}else{l=k[1]}var p=Math.abs(k[0]-e[0]);var j=Math.abs(k[1]-e[1]);Q.style.left=m+"px";Q.style.top=l+"px";Q.style.width=p+"px";Q.style.height=j+"px"};var d=function(AF){var AH;h.setInDragMode(false);var u=parseFloat(Q.style.left);var t=parseFloat(Q.style.top);if(YAHOO.util.Dom.getStyle(f,"position")!="absolute"){AH=YAHOO.util.Dom.getXY(f);u-=AH[0];t-=AH[1]}var AC=parseFloat(Q.style.width);var AA=parseFloat(Q.style.height);document.getElementById(T).removeChild(Q);if(isNaN(AC)||isNaN(AA)||AC<=1||AA<=1){return false}var r=new BG.util.Bounds(new BG.util.Point(u,t),new BG.util.Dimension(AC,AA));var AG=BG.application.Application.getInstance();var AD=BG.action.ZoomInAction.PREFIX+X;var w=AG.getAction(BG.action.ActionFactory.TYPE_MAP,AD);if(w===null){w=new BG.action.ZoomInAction(AD,AD,X);AG.addAction(BG.action.ActionFactory.TYPE_MAP,w)}if(isset(O)){if(YAHOO.env.ua.ie>0){O.style.filter="Alpha(opacity=100)"}else{O.style.opacity="1"}}if(isset(b)){b.style.display="none"}if(isset(U)){U.style.display="none"}if(isset(a)){a.style.display="none"}if(isset(W)){W.style.display="none"}var s=parseFloat(f.style.height);var z=parseFloat(f.style.width);var q=z/AC;var p=s/AA;var AB;if(q<p){AB=q}else{AB=p}var k=u+AC/2;var j=t+AA/2;var v=z*AB;var AE=s*AB;var o=k*AB;var n=j*AB;var m=(z/2)-o;var l=(s/2)-n;O.style.position="absolute";O.style.top=l+"px";O.style.left=m+"px";O.style.height=AE+"px";O.style.width=v+"px";w.execute(r);return true};i=R.getImage();V=document.createElement("div");V.id="moveableDiv_"+T;V.style.position="absolute";V.style.background="white";V.style.top=0;V.style.left=0;V.style.opacity=0;V.style.filter="alpha(opacity=0)";V.style.width="100%";V.style.height="100%";V.style.display="";O=document.getElementById(i.id);var c=document.getElementById(T);c.insertBefore(V,O);b=document.getElementById(O.useMap.replace(/^#/,""));BG.util.Util.bubbleMouseDownEvent(b,V);BG.util.Util.bubbleMouseUpEvent(b,V);BG.util.Util.bubbleMouseUpEvent(b,V);BG.util.Util.bubbleMouseDownEvent(O,V);BG.util.Util.bubbleMouseUpEvent(O,V);BG.util.Util.bubbleMouseUpEvent(O,V);var g=new YAHOO.util.DD(V.id);g.endDrag=d;g.onDrag=Y;g.startDrag=P;F(T,g)};this.zoomOut=function(X){var O=this.getMap(X);if(O.getType()==BG.model.MapModel.TYPE_FLASH){O.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_ZOOM_OUT);return }var U=BG.application.Application.getInstance().getParameters().getTarget("maps",X).ident;U=BG.application.Application.getInstance().getParameters().getTarget("maps",X).ident;G(U);var P=document.getElementById(U);M(X,BG.application.MapManager.STATE_ZOOM_OUT);if(YAHOO.env.ua.gecko>0){P.style.cursor="-moz-zoom-out"}else{if(YAHOO.env.ua.ie>0){P.style.cursor="crosshair"}else{P.style.cursor="default"}}var Q=this.getMap(X);var W=document.getElementById(U);var R=Q.getImage();var Y=document.createElement("div");Y.id="moveableDiv_"+U;Y.style.position="absolute";Y.style.background="white";Y.style.top=0;Y.style.left=0;Y.style.opacity=0;Y.style.filter="alpha(opacity=0)";Y.style.width="100%";Y.style.height="100%";Y.style.display="";var T=document.getElementById(R.id);var V=document.getElementById(U);
V.insertBefore(Y,T);var S=document.getElementById(T.useMap.replace(/^#/,""));BG.util.Util.bubbleMouseDownEvent(S,Y);BG.util.Util.bubbleMouseUpEvent(S,Y);BG.util.Util.bubbleMouseUpEvent(S,Y);BG.util.Util.bubbleMouseDownEvent(T,Y);BG.util.Util.bubbleMouseUpEvent(T,Y);BG.util.Util.bubbleMouseUpEvent(T,Y);YAHOO.util.Event.addListener(U,"click",function(){var Z=BG.application.Application.getInstance();var a=BG.action.ZoomOutAction.PREFIX+X;var b=Z.getAction(BG.action.ActionFactory.TYPE_MAP,a);if(b===null){b=new BG.action.ZoomOutAction(a,a,X);Z.addAction(BG.action.ActionFactory.TYPE_MAP,b)}b.execute()})};this.refresh=function(T,Q){var R=this.getMap(T);if(R.getType()==BG.model.MapModel.TYPE_FLASH){R.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_FIT);return true}var O=BG.application.Application.getInstance();var S=BG.action.MapAction.PREFIX+T;var P=O.getAction(BG.action.ActionFactory.TYPE_MAP,S);if(P===null){P=new BG.action.MapAction(S,S,T);O.addAction(BG.action.ActionFactory.TYPE_MAP,P)}if(!!Q){P.execute(R.getBounds())}else{P.execute()}return true};this.refreshAt=function(U,R,Q){var S=this.getMap(U);var O=BG.application.Application.getInstance();var T=BG.action.MapAndLegendAction.PREFIX+U;var P=O.getAction(BG.action.ActionFactory.TYPE_MAP,T);if(P===null){P=new BG.action.MapAction(T,T,U);O.addAction(BG.action.ActionFactory.TYPE_MAP,P)}P.execute(R,null,Q);return true};this.refreshMapAndLegend=function(U,P){var S=this.getMap(U);if(S.getType()==BG.model.MapModel.TYPE_FLASH){S.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_REFRESH);return true}var O=BG.application.Application.getInstance();var T=BG.action.MapAndLegendAction.PREFIX+U;var Q=O.getAction(BG.action.ActionFactory.TYPE_MAP,T);if(Q===null){Q=new BG.action.MapAndLegendAction(T,T,U);O.addAction(BG.action.ActionFactory.TYPE_MAP,Q)}var R=S.getBounds();Q.execute(R);return true};this.refreshDefaultMapAndLegend=function(){var U=BG.application.Application.getInstance().getParameters();var T=U.getMaps();if(!isarray(T)){return false}if(T.length===0){return false}var Q=T[0].ident;var S=this.getMap(Q);if(S.getType()==BG.model.MapModel.TYPE_FLASH){S.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_REFRESH);return true}var O=BG.application.Application.getInstance();var V=BG.action.MapAndLegendAction.PREFIX+Q;var P=O.getAction(BG.action.ActionFactory.TYPE_MAP,V);if(P===null){P=new BG.action.MapAndLegendAction(V,V,Q);O.addAction(BG.action.ActionFactory.TYPE_MAP,P)}var R=S.getBounds();P.execute(R);return true};this.updateScale=function(V,Q){var U=parseFloat(Q);if(U=="NaN"){return false}if(U<1){return false}var O=BG.application.Application.getInstance();var T=BG.action.MapAction.PREFIX+V;var P=O.getAction(BG.action.ActionFactory.TYPE_MAP,T);if(P===null){T=BG.action.MapAction.PREFIX+V;P=new BG.action.MapAction(T,T,V);O.addAction(BG.action.ActionFactory.TYPE_MAP,P)}var S=this.getMap(V);var R=S.getBoundsForNewScale(U);P.execute(R);return true};this.updateXY=function(c){var V=document.getElementById(BG.model.FeatureModel.CENTER_X_PREFIX+c);var X=document.getElementById(BG.model.FeatureModel.CENTER_Y_PREFIX+c);var a=new BG.util.Validate();a.addValidationFor(BG.model.FeatureModel.CENTER_X_PREFIX+c,_("Toolbar.xCoord"),"double");a.addValidationFor(BG.model.FeatureModel.CENTER_Y_PREFIX+c,_("Toolbar.yCoord"),"double");var Y=a.validate();if(!Y.isValid){a.showLast();return false}var b=BG.util.Util.formatCoord(BG.util.Util.getValue(V));var Z=BG.util.Util.formatCoord(BG.util.Util.getValue(X));if(!isset(b)||!isset(Z)){return false}var S=this.getMap(c);var R=S.getBounds();var Q=R.getRealCenter();var W=b-Q.getX();var U=Z-Q.getY();R.translate(W,U);var T=BG.application.Application.getInstance();var P=BG.action.MapAction.PREFIX+c;var O=T.getAction(BG.action.ActionFactory.TYPE_MAP,P);if(O===null){P=BG.action.MapAction.PREFIX+c;O=new BG.action.MapAction(P,P,c);T.addAction(BG.action.ActionFactory.TYPE_MAP,O)}O.execute(R);return true};this.move=function(T,P){var R=this.getMap(T);var O=BG.application.Application.getInstance();var S=BG.action.MapAction.PREFIX+T;var Q=O.getAction(BG.action.ActionFactory.TYPE_MAP,S);if(Q===null){Q=new BG.action.MapAction(S,S,T);O.addAction(BG.action.ActionFactory.TYPE_MAP,Q)}Q.execute(null,null,null,null,null,P);return true};this.exportPdf=function(O){BG.view.PdfExportDialog.getInstance().show(this.getMap(O))};this.exportHtml=function(O){BG.view.HtmlExportDialog.getInstance().show(this.getMap(O))};this.clear=function(T){var S=this.getMap(T);if(S.getType()==BG.model.MapModel.TYPE_FLASH){S.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_CLEAR);return }var Q=BG.application.Application.getInstance().getParameters().getTarget("maps",T).ident;var O=BG.application.Application.getInstance();var P=BG.action.ClearMapAction.PREFIX+T;var R=O.getAction(BG.action.ActionFactory.TYPE_MAP,P);if(R===null){R=new BG.action.ClearMapAction(P,P,T);O.addAction(BG.action.ActionFactory.TYPE_MAP,R)}R.execute()};this.pan=function(e){var Q=this.getMap(e);
if(!BG.util.Util.isValidVariable(Q)){return false}if(Q.getType()==BG.model.MapModel.TYPE_FLASH){Q.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_PAN);return true}var V=BG.application.Application.getInstance().getParameters();var d=V.getTarget("maps",e).ident;G(d);M(e,BG.application.MapManager.STATE_PAN);var T=document.getElementById(d);T.style.cursor="move";var W=Q.getImage();var O;var c;var a;var S;var P;var R=new BG.util.Point();var Z=new BG.util.Point();var X=YAHOO.util.Dom.getXY(d);var Y=function(f,g){Q.setInDragMode(true);R.setXY(f-X[0],g-X[1]);O=document.getElementById(d+"_bck");c=document.getElementById(W.id);a=document.getElementById(c.useMap.replace(/^#/,""));S=document.getElementById(d+"_canvas");P=document.getElementById(d+"_div");if(isset(c)){if(YAHOO.env.ua.ie>0){c.style.filter="Alpha(opacity=100)"}else{c.style.opacity="1"}}if(isset(a)){a.style.display="none"}if(isset(S)){S.style.display="none"}if(isset(P)){P.style.display="none"}if(isset(O)){O.style.display="none"}};var U=function(j){var i=YAHOO.util.Event.getXY(j);Z.setXY(i[0]-X[0],i[1]-X[1]);b.unreg();var f=BG.application.Application.getInstance();var g=BG.action.PanAction.PREFIX+e;var h=f.getAction(BG.action.ActionFactory.TYPE_MAP,g);if(h===null){h=new BG.action.PanAction(g,g,e);f.addAction(BG.action.ActionFactory.TYPE_MAP,h)}h.execute(R,Z)};var b=new YAHOO.util.DD(W.id);b.endDrag=U;b.startDrag=Y;c=document.getElementById(W.id);a=document.getElementById(c.useMap.replace(/^#/,""));BG.util.Util.bubbleMouseDownEvent(a,c);BG.util.Util.bubbleMouseMoveEvent(a,c);BG.util.Util.bubbleMouseUpEvent(a,c);BG.util.Util.bubbleClickEvent(a,c);F(d,b);return true};this.clickMap=function(V){var U=this.getMap(V);if(U.getType()==BG.model.MapModel.TYPE_FLASH){U.getFlashObject().setCurrentTool(BG.model.FlashMapModel.TOOL_CLICK);return }var P=BG.application.Application.getInstance().getParameters().getTarget("maps",V).ident;G(P);M(V,BG.application.MapManager.STATE_CLICK_MAP);var Q=document.getElementById(P);Q.style.cursor="help";var O=this;var R=function(Y){var X=YAHOO.util.Event.getXY(Y);var Z=YAHOO.util.Dom.getXY(P);var W=new BG.util.Point(X[0]-Z[0],X[1]-Z[1]);O.executeClickMap(W,V,true)};YAHOO.util.Event.addListener(P,"click",R);var T=document.getElementById(U.getImage().id);var S=document.getElementById(T.useMap.replace(/^#/,""));BG.util.Util.bubbleClickEvent(S,Q)};this.executeClickMap=function(S,T,R){var O=BG.application.Application.getInstance();var Q=BG.action.ClickMapAction.PREFIX+T;var P=O.getAction(BG.action.ActionFactory.TYPE_MAP,Q);if(P===null){P=new BG.action.ClickMapAction(Q,Q,T);O.addAction(BG.action.ActionFactory.TYPE_MAP,P)}P.execute(S,R)};this.showLocation=function(S,Q){var O=BG.application.Application.getInstance();var P=BG.action.LocateAction.PREFIX+S;var R=O.getAction(BG.action.ActionFactory.TYPE_MAP,P);if(R===null){R=new BG.action.LocateAction(P,P,S);O.addAction(BG.action.ActionFactory.TYPE_MAP,R)}R.execute(Q)};this.hideLocation=function(R){var O=BG.application.Application.getInstance().getParameters().getTarget("maps",R).ident;var P=BG.application.Application.getInstance().getDisplayerFactory();var Q=P.getDisplayerFor("location",O);Q.hide()};this.updateUserDetails=function(){var R;var P=BG.application.Application.getInstance().getUser();var Q=[P.getName(),P.getId()];var O;for(O=0;O<C.length;O++){R=C[O];if(R.getType()==BG.model.MapModel.TYPE_FLASH){R.getFlashObject().updateUser(Q)}}};this.setMapProperties=function(T){var R=this.getMap(T);var P,S,O,Q;if(R.getType()!=BG.model.MapModel.TYPE_FLASH){return }P=BG.application.Application.getInstance();S=P.getParameters();O=P.getUser();Q=[];Q.push(S.getHost());Q.push(S.getCgi());Q.push("?"+BG.communication.formatter.FormatterFactoryV0.WMTVER_VALUE);Q.push("/");Q.push(S.getPort());Q.push(S.getWebDirectory());Q.push(O.getUserName());Q.push(O.getUserId());Q.push(true);R.getFlashObject().setMapProperty(Q)};this.zoomObject=function(U,S,R,T){var P=BG.application.Application.getInstance();var Q=BG.action.LocateAction.PREFIX+U+S;var O=P.getAction(BG.action.ActionFactory.TYPE_MAP,Q);if(O===null){O=new BG.action.ZoomObjectAction(Q,Q,U,S);P.addAction(BG.action.ActionFactory.TYPE_MAP,O)}O.execute(R,T)};this.getLink=function(W){var U=BG.application.Application.getInstance().getParameters();var b=BG.communication.formatter.FormatterFactoryV0;var S=U.getWebPath()+"bg/config/"+U.getConfigName()+"/?";var Z=[];var d=this.getMap(W);var V=null;var Y;if(d.getType()==BG.model.MapModel.TYPE_FLASH){Y=d.getFlashObject().getMapParameters();V=new BG.util.Bounds(new BG.util.Point(parseInt(Y[1],10),parseInt(Y[0],10)),new BG.util.Dimension(parseInt(parseFloat(Y[3])-parseFloat(Y[1]),10),parseInt(parseFloat(Y[0])-parseFloat(Y[2]),10)))}else{V=d.getBounds()}if(V!==null){Z.push("extent="+b.replaceSpecialChars(V.toCleanString()))}var X=BG.application.DisplayerFactory.getInstance();var c=U.getLegends();var T,O,a,f;if(isset(c)){if(isarray(c)){if(c.length>0){T=c[0].ident;O=X.getDisplayerFor("legends",T);a=O.getTreeStatusForUrl();
for(f in a){Z.push(b.replaceSpecialChars(f)+"="+(a[f]?"1":"0"))}}}}S=S+Z.join("&");var R=BG.util.Util.getOnTheFlyId();var e=[["para",{text:_("Map.linkBounds.content")}],["textbox",{name:R,value:S,cssStyle:{width:"320px"}}]];var P=function(){var g=this.textLength;this.selectionStart=0;this.selectionEnd=g};YAHOO.util.Event.addListener(R,"focus",P);var Q=BG.view.InfoPanel.getInstance();Q.show(_("Map.linkBounds.title"),e,true);Q.setWidth("400px")};this.subscribeToMapChangeEvent=function(T,S,Q,R){if(!isset(B)){B=[]}var O,P;for(O=0;O<B.length;O++){P=B[O];if(P.id==T){P.event.subscribe(S,Q,R);break}}};this.unsubscribeToMapChangeEvent=function(R,Q){if(!isset(B)){return }var O,P;for(O=0;O<B.length;O++){P=B[O];if(P.id==R){P.event.unsubscribe(Q);break}}};this.fireMapChangeEvent=function(P){var S=P;var R=P;if(typeof S!="string"){S=P.getId()}else{R=this.getMap(S)}if(!isset(B)){return }var O;var Q;for(O=0;O<B.length;O++){Q=B[O];if(Q.id==S){Q.event.fire({map:R})}}};this.switchToEditMode=function(O){var P=this.getMap(O);P.getFlashObject().toggleDrawingToolBar()};this.onFlexReady=function(R){var Q=BG.application.Application.getInstance().getParameters();var P=this.getMap(R);var O=function(){var c=null;var T=null;var S=null;var Y=BG.util.Util.getVarsFromUrl();if("extent" in Y){c=BG.util.Bounds.parse(Y.extent)}if("search" in Y){T=Y.search}if("alphaj" in Y){S=Y.alphaj}var W=false;var U={};var b;var Z;for(var a in Y){Z=a.toLowerCase();if(Z=="extent"||Z=="showloginwindow"||Z=="search"||Z=="alphaj"){continue}W=true;U[a]=typeof (Y[a])=="boolean"?U[a]:Y[a]=="1"}var X=document.getElementById(Q.getTarget("maps",R).ident);var V=[];if(X.style.width!==""&&X.style.height!==""){V.push(parseInt(X.style.width,10));V.push(parseInt(X.style.height,10))}else{V.push(parseInt(X.clientWidth,10));V.push(parseInt(X.clientHeight,10))}if(c!==null){P.getFlashObject().setInitialExtent(c.toExtentString())}if(T!==null&&S!==null){P.getFlashObject().setInitialSearch(T,S)}if(W){P.getFlashObject().setInitialLegendStatus(U)}if(V.length>0){P.getFlashObject().setNewDimension(V)}BG.application.ApplicationBuilder.ON_UI_RESIZED.unsubscribe(O);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.unsubscribe(O)};if(Q.getAutoResize()&&BG.view.UserInterfaceBuilder.getInstance().getFirstResize()===false){BG.application.ApplicationBuilder.ON_UI_RESIZED.subscribe(O);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.subscribe(O)}else{O()}};this.onFlexMapLoaded=function(T){var P=this.getMap(T);var R=P.getFlashObject().getMapParameters();var Q=new BG.util.Bounds(new BG.util.Point(parseFloat(R[1]),parseFloat(R[0])),new BG.util.Dimension(parseFloat(R[3])-parseFloat(R[1]),parseFloat(R[0])-parseFloat(R[2])));var O=new BG.util.Dimension(parseInt(R[4],10),parseInt(R[5],10));var S=parseInt(R[6],10);P.setBounds(Q);P.setOutPutDimension(O);P.setScale(S);if(!BG.view.UserInterfaceBuilder.getInstance().isBuild()){BG.view.UserInterfaceBuilder.getInstance().checkBuildComplete(_("UserInterface.buildMap"),true)}this.fireMapChangeEvent(P)};this.onFlexClickMap=function(O,R,Q){var P=this.getMap(Q);this.executeClickMap(new BG.util.Point(O,R),P.getId(),false)};this.onFlexLegendReady=function(T,P){var S=BG.application.Application.getInstance().getParameters();var R=S.getLegendIdFromMap(T);if(R===null){return true}var O=new BG.model.xmlload.XMLLegendLoader(R,T);var Q=P.indexOf("UTF");if(Q>-1){P=P.substring(0,Q)+".xml"}O.load(P);return true};this.onCompleteGeometricModification=function(P){if(!isset(P)){return }var Q={POINT:0,LINE:1,POLY:2,ELLIPSE:3,TEXT:5};var S=[["title",{text:_("GeoEdit.reportTitle"),cssStyle:{textDecoration:"underline"}}],["linebreak"],["linebreak"]];var R={listStyleType:"disc",listStylePosition:"inside"};var U=[];if(P.add[Q.POINT]>0){U.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoint").replace("%n",P.add[Q.POINT])}])}if(P.add[Q.LINE]>0){U.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportLine").replace("%n",P.add[Q.LINE])}])}if(P.add[Q.POLY]>0){U.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoly").replace("%n",P.add[Q.POLY])}])}if(P.add[Q.ELLIPSE]>0){U.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportEllipse").replace("%n",P.add[Q.ELLIPSE])}])}if(P.add[Q.TEXT]>0){U.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportText").replace("%n",P.add[Q.TEXT])}])}if(U.length>0){S.push(["title",{titleSize:4,text:_("GeoEdit.reportAddTitle")}]);S.push(["list",{children:U}]);S.push(["linebreak"])}var T=[];if(P.edit[Q.POINT]>0){T.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoint").replace("%n",P.edit[Q.POINT])}])}if(P.edit[Q.LINE]>0){T.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportLine").replace("%n",P.edit[Q.LINE])}])}if(P.edit[Q.POLY]>0){T.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoly").replace("%n",P.edit[Q.POLY])}])}if(P.edit[Q.ELLIPSE]>0){T.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportEllipse").replace("%n",P.edit[Q.ELLIPSE])}])}if(P.edit[Q.TEXT]>0){T.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportText").replace("%n",P.edit[Q.TEXT])}])
}if(T.length>0){S.push(["title",{titleSize:4,text:_("GeoEdit.reportEditTitle")}]);S.push(["list",{children:T}]);S.push(["linebreak"])}var O=[];if(P.del[Q.POINT]>0){O.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoint").replace("%n",P.del[Q.POINT])}])}if(P.del[Q.LINE]>0){O.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportLine").replace("%n",P.del[Q.LINE])}])}if(P.del[Q.POLY]>0){O.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportPoly").replace("%n",P.del[Q.POLY])}])}if(P.del[Q.ELLIPSE]>0){O.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportEllipse").replace("%n",P.del[Q.ELLIPSE])}])}if(P.del[Q.TEXT]>0){O.push(["listitem",{cssStyle:R,content:_("GeoEdit.reportText").replace("%n",P.del[Q.TEXT])}])}if(O.length>0){S.push(["title",{titleSize:4,text:_("GeoEdit.reportDelTitle")}]);S.push(["list",{children:O}]);S.push(["linebreak"])}BG.view.InfoPanel.getInstance().show(_("GeoEdit.reportTitle"),S,true)}}};function flexLoaded(F){var B=BG.application.Application.getInstance();var E=B.getParameters();var D=B.getMapManager();var A=null;var C=D.getMap(F);C.getFlashObject().parentNode.style.height=(parseInt(C.getFlashObject().parentNode.style.height,10)+1)+"px";C.getFlashObject().setJsLogger();C.getFlashObject().setCallbacks({flexReady:"BG.application.Application.getInstance().getMapManager().onFlexReady",onMapLoaded:"BG.application.Application.getInstance().getMapManager().onFlexMapLoaded",onClickMap:"BG.application.Application.getInstance().getMapManager().onFlexClickMap",onLegendReady:"BG.application.Application.getInstance().getMapManager().onFlexLegendReady",onCompleteGeometricModification:"BG.application.Application.getInstance().getMapManager().onCompleteGeometricModification"});D.setMapProperties(F)}function flexParams(){var C=BG.application.Application.getInstance();var D=C.getParameters();var B=C.getUser();var A={serverAddressEI:D.getHost(),folderEI:D.getWebDirectory(),cgiAddressEI:D.getCgi(),serverPortEI:D.getPort(),usernameEI:B.getUserName(),idEI:B.getUserId()};return A};
BG.ext.Map={};BG.ext.Map.__validateMapId=function(D,F,A){var B=F[1].getController();if(B.getName()!=A.mapId){return }var E;var C;if(is.set(A.scope)){E=A.scope}else{E=window}if(is.set(A.arg)){C=[B,A.arg]}else{C=[B]}A.callback.apply(E,C)};BG.ext.Map.onRefresh=function(A,B){BG.controller.Map.REFRESH_EVENT.subscribe(BG.ext.Map.__validateMapId,{mapId:A,callback:B})};BG.ext.Map.onRefreshWithParam=function(B,D,A,C){BG.controller.Map.REFRESH_EVENT.subscribe(BG.ext.Map.__validateMapId,{mapId:B,callback:D,arg:A,scope:(is.set(C)?A:null)})};
(function(){var A=null;BG.application.ApplicationBuilder=function(){if(BG.application.ApplicationBuilder.caller!=BG.application.ApplicationBuilder.getInstance){throw new Error("Cannot create BG.application.ApplicationBuilder, use getInstance instead")}this.init()};BG.application.ApplicationBuilder.APPLICATION_LOADED=new YAHOO.util.CustomEvent("onApplicationLoaded");BG.application.ApplicationBuilder.BUILD_COMPLETE=new YAHOO.util.CustomEvent("onBuildComplete");BG.application.ApplicationBuilder.USER_CONNECTED=new YAHOO.util.CustomEvent("onUserConnected");BG.application.ApplicationBuilder.LOST_SESSION=new YAHOO.util.CustomEvent("onLostSession");BG.application.ApplicationBuilder.ON_BEFORE_RESIZED=new YAHOO.util.CustomEvent("onBeforeResized");BG.application.ApplicationBuilder.ON_UI_RESIZED=new YAHOO.util.CustomEvent("onUiResized");BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR=new YAHOO.util.CustomEvent("onUiResizedErr");BG.application.ApplicationBuilder.ON_EDIT_ENGINE_CREATED=new YAHOO.util.CustomEvent("onEditEngineCreated");BG.application.ApplicationBuilder.stateFlashPlugin=-1;BG.application.ApplicationBuilder.STATE_FLASH={NOT_INITIALIZED:-1,GOOD_VERSION:0,NO_PLAYER:1,TOO_OLD_PLAYER:2};BG.application.ApplicationBuilder.neededFlashVersion=new com.deconcept.PlayerVersion([9,0,45]);BG.application.ApplicationBuilder.testFlashVersion=function(){if(BG.application.ApplicationBuilder.stateFlashPlugin!=BG.application.ApplicationBuilder.STATE_FLASH.NOT_INITIALIZED){return BG.application.ApplicationBuilder.stateFlashPlugin}var C=function(){var E=_("Warning.FlashPlayerNOK");var D=[["text",{text:E}],["linebreak"],["text",{text:_("Warning.FlashPlayerVersion").replace(/%1/,BG.application.ApplicationBuilder.neededFlashVersion)}],["linebreak"],["link",{text:_("Download.FlashPlayer"),href:_("Url.FlashPlayer"),target:"_blank"}]];BG.view.InfoPanel.getInstance().show(_("Warning.FlashPlayer"),D,true)};var B=com.deconcept.FlashObjectUtil.getPlayerVersion();if(YAHOO.env.ua.gecko>0&&BG.util.Util.underLinux()){BG.application.ApplicationBuilder.neededFlashVersion=new com.deconcept.PlayerVersion([10,0,0])}if(!B.versionIsValid(BG.application.ApplicationBuilder.neededFlashVersion)){BG.application.ApplicationBuilder.stateFlashPlugin=BG.application.ApplicationBuilder.STATE_FLASH.TOO_OLD_PLAYER;BG.application.ApplicationBuilder.BUILD_COMPLETE.subscribe(function(){window.setTimeout(C,1500)})}else{BG.application.ApplicationBuilder.stateFlashPlugin=BG.application.ApplicationBuilder.STATE_FLASH.GOOD_VERSION}return BG.application.ApplicationBuilder.stateFlashPlugin};BG.application.ApplicationBuilder.getInstance=function(){if(!A){A=new BG.application.ApplicationBuilder()}return A};BG.application.ApplicationBuilder.prototype={initialized:false,init:function(){log.debug("initialization of BG.application.ApplicationBuilder");if(this.initialized){return }var H=BG.application.Application.getInstance();log.debug("-> BG.application.Application");var C=H.getParameters();window.setTimeout(function(){document.body.style.display=""},500);log.debug("-> BG.model.ParameterModel");log.debug("-> start BG.view.UserInterfaceBuilder");var F=BG.view.UserInterfaceBuilder.getInstance();log.debug("-> BG.view.UserInterfaceBuilder");var B=document.getElementsByTagName("script");var G=false;for(var D=0;D<B.length;D++){if(B[D].src.match(/coreConcat/i)!==null){G=true;BG.view.UserInterfaceBuilder.EDIT_DEPS="BG.edit";if(B[D].src.match(/coreConcat-min/i)!==null){BG.view.UserInterfaceBuilder.LOAD_MIN=true}break}}var E=this;if(G){Loader.getInstance().loadDeps("BG.All",function(){E.loadConfigScript(C,F)})}else{this.loadConfigScript(C,F)}},loadConfigScript:function(J,I){var C=J.getConfigName();var H=this;if(YAHOO.env.ua.gecko>=1.9){Loader.getInstance()._loadDeps([{type:"css",path:"../common/styles/include_ff3.css",name:"firefox 3 css fix"}],null,null,false)}else{if(YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7){Loader.getInstance()._loadDeps([{type:"css",path:"../common/styles/include_ie6.css",name:"ie6 css fix"}],null,null,false)}else{if(YAHOO.env.ua.ie>=7){Loader.getInstance()._loadDeps([{type:"css",path:"../common/styles/include_ie7.css",name:"ie7 css fix"}],null,null,false)}else{if(YAHOO.env.ua.webkit>0){Loader.getInstance()._loadDeps([{type:"css",path:"../common/styles/include_webkit.css",name:"webkitcssfix"}],null,null,false)}}}}var E=[];E.push({type:"js",path:"bg/config/"+C+"/script/extension.js",name:"User script"});var B=function(K){if(BG.view.UserInterfaceBuilder.LOAD_MIN){return K.replace(/\.js$/,"-min.js")}else{return K}};var D=J.getPlugins();var G;for(var F=0;F<D.length;F++){G=D[F];if(!G.enabled){continue}if(!G.hasWebPart){continue}E.push({type:"js",path:B(G.path),name:G.name+" plugin"})}Loader.getInstance()._loadDeps(E,function(){H.loadPlugins(J,I)},null,false)},loadPlugins:function(B,D){var C=this;var E=function(){C.executeApplication(B,D)};BG.plugin.Manager.getInstance().load(E)},executeApplication:function(B,E){BG.application.ApplicationBuilder.APPLICATION_LOADED.fire("loaded");
var F;var G;BG.application.ApplicationBuilder.BUILD_COMPLETE.subscribe(function(){BG.application.Application.getInstance().getParameters().setFontList()});var D;var C;if(B.getShowLoginWindow()){log.debug("-> ask to draw login panel");E.showLoginPanel()}else{BG.view.LoginPanel.getInstance().showLoginDialog();log.debug("-> directly connect");D=new BG.model.Authentication();C=new BG.controller.AuthenticationController("authentication",D);C.connect()}},reconnect:function(){var E=BG.application.Application.getInstance().getParameters();var F=E.getShowLoginWindow();var D=E.getRealShowLoginWindow();var C;var B=BG.controller.ControllerManager.getInstance().get("authentication").getModel();if(F!=D){C=false}else{C=true}var G;if(C){BG.view.LoginPanel.getInstance().showLoginDialog();G=new BG.communication.ServerAuthentification(B.getUserName(),B.getPassword())}else{BG.view.UserInterfaceBuilder.getInstance().showLoginPanel()}}}})();
BG.ext.Application={};BG.ext.Application.onBuild=function(A){BG.application.ApplicationBuilder.BUILD_COMPLETE.subscribe(A)};BG.ext.events={};BG.ext.events.Application={};BG.ext.events.Application.onBuild=BG.ext.Application.onBuild;
(function(){var A=null;BG.plugin.Manager=function(){if(BG.plugin.Manager.caller!=BG.plugin.Manager.getInstance){throw new Error("Unable to create the plugin manager, use getInstance instead")}this.init()};BG.plugin.Manager.getInstance=function(){if(A===null){A=new BG.plugin.Manager()}return A};BG.plugin.Manager.prototype={pluginMap:null,pluginArray:null,idxPlugin:null,loadCallback:null,init:function(){this.pluginMap={}},register:function(D,B,C,E){assertTypeOf(D,"string","Plugin name must be a string");assertNotStrictEqual(D,"","Plugin name can't be an empty string");assertTypeOf(B,"object","Plugin instance must be an object");assertNotNull(B,"Plugin instance can't be null");if(D in this.pluginMap){throw new Error("Can't add more than one plugin with the same name : "+D)}this.pluginMap[D]={pluginName:D,instance:B,callback:E,filesToLoad:C}},load:function(D){var B;this.loadCallback=D;this.pluginArray=[];this.idxPlugin=0;for(var C in this.pluginMap){B=this.pluginMap[C];this.pluginArray.push(B)}this.loadNext()},loadNext:function(){if(this.idxPlugin>=this.pluginArray.length){if(isset(this.loadCallback)){this.loadCallback()}return }var C=this.pluginArray[this.idxPlugin];var B=this;var E=function(){C.callback();B.loadNext()};var D=C.pluginName;this.idxPlugin+=1;if(!isset(C.filesToLoad)){E()}else{if(!isarray(C.filesToLoad)){E()}else{if(C.filesToLoad.length===0){E()}else{Loader.getInstance().loadDepsForPlugin(C.filesToLoad,D,E,null,BG.view.UserInterfaceBuilder.LOAD_MIN)}}}},isPluginLoaded:function(B){assertTypeOf(B,"string","can't test a plugin without his name...");assertNotStrictEqual(B,"","The name of the plugin can't be an empty string");if(B in this.pluginMap){if(isset(this.pluginMap[B].instance)){return true}}return false},getPluginInstance:function(B){assertTypeOf(B,"string","can't get the instance of a plugin without the name...");assertNotStrictEqual(B,"","The name of the plugin can't be an empty string");if(B in this.pluginMap){return this.pluginMap[B].instance}return null},getApplicationBuilder:function(){return BG.application.Application.getInstance()},getUserInterfaceBuilder:function(){return BG.view.UserInterfaceBuilder.getInstance()},getEditEngine:function(){return BG.edit.Engine.getInstance()},getResizeManager:function(){return BG.view.ResizeManager.getInstance()},getParameters:function(){return BG.application.Application.getParameters()},getEditManager:function(){return BG.edit.EditManager.getInstance()},getEditFormatter:function(){return BG.communication.formatter.EditFormatter},getStyleSheetUtility:function(){return BG.view.StyleSheetUtility.getInstance()},getMapManager:function(){return BG.application.Application.getInstance().getMapManager()},getPluginPath:function(C){var B="plugins";var E=BG.application.Application.getInstance().getParameters().getPlugin(C);if(E!==null){if(E.isExt){B="extensions"}}var D=BG.application.Application.getInstance().getParameters().getWebPath()+B+"/"+C;return D}}})();
BG.plugin.Instance=function(){this.init()};BG.plugin.Instance.prototype={pluginManager:null,hasParameters:false,parameters:null,deps:null,languageStr:null,typeName:null,pluginName:null,buildUi:null,deleteUi:null,resizeFunction:null,editDeps:null,addUiFunction:null,propertyDialog:null,extendPropertyDialog:null,elementTarget:null,onReadyCallback:null,hasManyInstances:false,init:function(A){if(isset(A)){this.onReadyCallback=A}else{if(!isset(this.onReadyCallback)){this.onReadyCallback=function(){}}}this.pluginManager=BG.plugin.Manager.getInstance();var B=BG.util.Util.bind(this._onLoadCallback,this);this.pluginManager.register(this.pluginName,this,this.deps,B);this._initParameters()},_onLoadCallback:function(){this._initLanguage();BG.view.Types.addType(this.typeName);this._initCallbacks();if(this.onReadyCallback!==null){this.onReadyCallback()}},_initParameters:function(){if(!this.hasParameters){return }var A=new BG.model.xmlload.XMLPluginParameterLoader(this.pluginName);this.parameters=A.load()},_initLanguage:function(){if(this.languageStr===null){return }var B;var A;for(A in this.languageStr){B=this.languageStr[A];$(A,B)}},_initCallbacks:function(){if(this.buildUi!==null){this.pluginManager.getUserInterfaceBuilder().registerPluginBuilder(BG.view.Types[this.typeName],this.buildUi)}if(this.deleteUi!==null){this.pluginManager.getUserInterfaceBuilder().registerPluginDeleter(BG.view.Types[this.typeName],this.deleteUi)}if(this.resizeFunction!==null){BG.view.Resize._executionMap[BG.view.Types[this.typeName]]=this.resizeFunction}BG.application.ApplicationBuilder.ON_EDIT_ENGINE_CREATED.subscribe(this._initEditCallbacks,this,true)},_initEditCallbacks:function(){if(this.editDeps!==null){Loader.getInstance().loadDepsForPlugin(this.editDeps,this.pluginName,null,null,BG.view.UserInterfaceBuilder.LOAD_MIN)}if(this.propertyDialog!==null){BG.edit.EditContainer.PROPERTY_DIALOGS[BG.view.Types[this.typeName]]=this.propertyDialog}if(this.extendPropertyDialog!==null){BG.edit.EditContainer.PROPERTY_DIALOGS[this.extendPropertyDialog.type]=this.extendPropertyDialog.dialogs}if(this.hasManyInstances){BG.edit.ContentPanel.getInstance().setHasManyInstances(BG.view.Types[this.typeName])}if(this.addUiFunction!==null){if(this.elementTarget===null){BG.edit.ContentPanel.getInstance().addFreeElement(BG.view.Types[this.typeName],this.addUiFunction)}else{BG.edit.ContentPanel.getInstance().addUsedElement(BG.view.Types[this.typeName],this.pluginName,this.addUiFunction)}}},savePluginProperty:function(B,A){if(this.parameters.update(B,A)){this.pluginManager.getEditManager().addChange(this.pluginManager.getEditFormatter().setPluginProperty(this.typeName,B,A))}else{this.parameters.add(B,A);this.pluginManager.getEditManager().addChange(this.pluginManager.getEditFormatter().addPluginProperty(this.typeName,B,A))}},executeAction:function(H,D,C,F,J,B){var G=BG.communication.formatter.FormatterFactoryV0;var E=new BG.communication.RequestManager("POST");var I=function(K){var L=new BG.util.XmlParser(K);if(!L.status().hasError()){if(is.set(C)){C(L)}}else{if(is.set(F)){F(L)}else{L.status().raise()}}};var A=G.createExtPluginCommand(this.pluginName+"."+H,D,J,B);E.sendRequest(I,A.serialize(),this)}};
BG.model.IModel=__create_class__(Object,{},{init:function(){},getController:function(){},addChange:function(A){},notifyChanges:function(){},update:function(A){}});
BG.model.BaseModel=__create_class__(BG.model.IModel,{},{controller:null,changes:null,init:function(){this.changes=[]},getController:function(){return this.controller},setController:function(A){Assert.notNull(A,"Controller linked to a model can't be null");Assert.instanceOf(A,BG.controller.IController,"Controller must implement BG.controller.IController");this.controller=A},addChange:function(B,A){this.changes.push({id:B,change:A})},notifyChanges:function(){Assert.notNull(this.controller,"Can't notify changes on a null controller");var A=[];var C,B;if(this.changes.length===0){this.controller.update()}else{B=this.changes.length;for(C=0;C<B;C++){A.push(this.changes[C])}this.changes=[];this.controller.updateOn(A)}},update:function(A){}});
BG.model.Authentication=__create_class__(BG.model.BaseModel,{TYPE:{RSA:"rsa",MD5:"md5",PLAIN:"plain",SSO:"sso"},STATUS:{UNDEFINED:1,AUTHENTICATED:2,CONNECTION_REFUSED:3,REFUSED:4},USER_TYPE:{ANONYMOUS:1,AUTHENTIFIED:3}},{type:null,status:null,userType:null,username:null,password:null,id:null,root:false,init:function(){this.status=BG.model.Authentication.STATUS.UNDEFINED;this.root=false;this._config()},_setRoot:function(){this.root=true},isRoot:function(){return this.root},setAuthenticated:function(){this.status=BG.model.Authentication.STATUS.AUTHENTICATED;this.controller.authenticate()},setRefused:function(){this.status=BG.model.Authentication.STATUS.REFUSED;this.controller.refuse()},setConnectionRefused:function(){this.status=BG.model.Authentication.STATUS.CONNECTION_REFUSED;this.controller.connectionRefused()},_config:function(){var D=BG.application.Application.getInstance().getParameters();var B=D.getCurrentAuthentType().type;if(B=="rsa"){this.type=BG.model.Authentication.TYPE.RSA}else{if(B=="md5"){this.type=BG.model.Authentication.TYPE.MD5}else{this.type=BG.model.Authentication.TYPE.PLAIN}}var A=BG.util.Util.getVarsFromUrl();if("user" in A){if(/^([^!]+)!(.+)$/.test(A.user)){this.userType=BG.model.Authentication.TYPE.SSO;this._setUser(RegExp.$1);this._setPassword(RegExp.$2);return }}var C=D.getDefaultLoginUserAndPass();this._setUser(C.user);this._setPassword(C.password);this.userType=BG.model.Authentication.USER_TYPE.ANONYMOUS},getType:function(){return this.type},getStatus:function(){return this.status},getUserType:function(){return this.userType},_setUserType:function(A){this.userType=A},_setId:function(A){Assert.notNull(A,"Id of a user can't be null");Assert.typeOf(A,"string","Id of a user must be a valid string");Assert.notStrictEqual(A,"","Id of a user can't be an empty string");this.id=A},getId:function(){return this.id},_setUser:function(A){Assert.notNull(A,"Name of a user can't be null");Assert.typeOf(A,"string","Name of a user must be a string");this.username=A},getUserName:function(){return this.username},_setPassword:function(A){Assert.notNull(A,"Password of the user can't be null");Assert.typeOf(A,"string","Password of the user must be a string");this.password=A},getPassword:function(){return this.password}});
BG.model.ObjectModel=function(C,A,B,D){this.init(C,A,B,D)};BG.model.ObjectModel.Types={LEGEND_ITEM:0,GROUP:1,LAYER:2,ANALYSIS:3,ANALYSIS_ITEM:4,IMAGE:5,IMAGE_GROUP:6,WS:7};BG.model.ObjectModel.prototype={init:function(H,I,E,B){var G=null;var K=null;var F=H||null;var D=I||null;var A=B||-1;var J=E||null;var L=[];var C="";this.getId=function(){return F};this.setId=function(M){F=M};this.getName=function(){return D};this.setName=function(M){D=M};this.getActionId=function(){return A};this.setActionId=function(M){A=M};this.getHtmlString=function(){return D};this.setHtmlString=function(M){J=M};this.getChildObjects=function(){return L};this.setChildObjects=function(M){L=M};this.addChildObject=function(M){L.push(M)};this.addObserver=function(M){if(!observer.update){throw"Wrong parameter"}this.observers.add(M)};this.removeObserver=function(M){if(!observer.update){throw"Wrong parameter"}this.observers.removeAt(this.observers.indexOf(M,0))};this.notify=function(O){var M=this.observers.count();for(var N=0;N<M;N++){this.observers.getAt(N).update(O)}};this.getObjectType=function(){return C};this.setObjectType=function(M){C=M};this.getZoomMin=function(){return G};this.setZoomMin=function(M){G=M};this.getZoomMax=function(){return K};this.setZoomMax=function(M){K=M}},readXml:function(C){var B;try{B=function(){}}catch(A){}},toString:function(){return"ObjectModel[ Name: "+name+", ID: "+id+" ]"}};
BG.model.MapModel=function(D,C,B,A,E){this.init(D,C,B,A,E)};BG.model.MapModel.TYPE_FLASH="flash";BG.model.MapModel.TYPE_IMAGE="image";BG.extend(BG.model.MapModel,BG.model.ObjectModel,{init:function(E,C,J,F,D){BG.model.MapModel.superclass.init.call(this,E,E);var B=J||null;var I=F||null;var G=C||null;var H=D||0;var A=false;this.isInDragMode=function(){return A};this.setInDragMode=function(K){A=K};this.getType=function(){return G};this.setType=function(K){G=K};this.getBounds=function(){return B};this.setBounds=function(K){B=K};this.getOutPutDimension=function(){var L;var K;if(!isset(I)){L=BG.application.Application.getInstance().getParameters();K=L.getMap(this.getName());I=K.dimension}return I};this.setOutPutDimension=function(K){I=K};this.getScale=function(){return H};this.setScale=function(K){H=K};this.convertViewToSys=function(W){var Q,V,P,O,R;var M,K,L,U,T,S,N;if(BG.util.Util.isValidVariable(W.topLeftPoint)){Q=W;V=this.convertViewToSys(Q.topLeftPoint());P=this.convertViewToSys(Q.getAllPoints().bottomRight);O=P.x()-V.x();R=V.y()-P.y();M=new BG.util.Dimension(O,R);K=new BG.util.Bounds(V,M);return K}else{if(BG.util.Util.isValidVariable(W.x)){L=W;U=I.width()/B.dimension().width();T=L.x()/U+B.topLeftPoint().x();S=B.topLeftPoint().y()-L.y()/U;N=new BG.util.Point(T,S);return N}}return null};this.convertSysToView=function(X,K){if(!BG.util.Util.isValidVariable(X)){X=B}if(!BG.util.Util.isValidVariable(K)){K=new BG.util.Point(0,0)}var R,W,Q,P,S,N,L;var M,V,U,T,O;if(BG.util.Util.isValidVariable(X.topLeftPoint)){R=X;W=this.convertSysToView(R.topLeftPoint(),K);Q=this.convertSysToView(R.getAllPoints().bottomRight,K);P=Q.x()-W.x();S=W.y()-Q.y();N=new BG.util.Dimension(P,S);L=new BG.util.Bounds(W,N);return L}else{if(BG.util.Util.isValidVariable(X.x)){M=X;V=I.width()/B.dimension().width();U=(M.x()-B.topLeftPoint().x())*V+K.x();T=-(M.y()-B.topLeftPoint().y())*V+K.y();O=new BG.util.Point(U,T);return O}}return null};this.getZoomOutBounds=function(){return this.getBoundsForNewScaleFactor(2)};this.getBoundsForNewScale=function(K){var L=K/H;return this.getBoundsForNewScaleFactor(L)};this.getBoundsForNewScaleFactor=function(P){var Q=B.getAllPoints();var K=B.dimension().width()*P;var S=B.dimension().height()*P;var O=Q.topLeft.y()-B.dimension().height()/2+S/2;var M=(Q.topRight.x()+Q.topLeft.x())/2-K/2;var R=new BG.util.Point(M,O);var N=new BG.util.Dimension(K,S);var L=new BG.util.Bounds(R,N);return L}}});
BG.model.ImageMapModel=function(G,E,I,H,C,B,D,F,A){this.init(G,E,I,H,C,B,D,F,A)};BG.extend(BG.model.ImageMapModel,BG.model.MapModel,{init:function(J,F,N,K,C,B,E,H,A){BG.model.ImageMapModel.superclass.init.call(this,J,BG.model.MapModel.TYPE_IMAGE,N,K,H);var D=F||null;var I=C||null;var G=B||-1;var M=E||-1;var L=A||null;this.getImage=function(){return D};this.setImage=function(O){D=O};this.getMode=function(){return I};this.setMode=function(O){I=O};this.getZoomMin=function(){return G};this.setZoomMin=function(O){G=O};this.getZoomMax=function(){return M};this.setZoomMax=function(O){M=O};this.getImageMap=function(){return L}},toString:function(){return"ImageMapModel[ Id: "+this.getId()+", Image: "+this.getImage().toString()+", Type: "+this.getType()+", Bounds: "+this.getBounds().toString()+", Mode: "+this.getMode()+", ZoomMin: "+this.getZoomMin()+", ZoomMax: "+this.getZoomMax()+", Scale: "+this.getScale()+" ]"}});
BG.model.FlashMapModel=function(B,A){this.init(B,A)};BG.model.FlashMapModel.TOOL_FIT=1;BG.model.FlashMapModel.TOOL_ZOOM_IN=2;BG.model.FlashMapModel.TOOL_ZOOM_OUT=3;BG.model.FlashMapModel.TOOL_PAN=5;BG.model.FlashMapModel.TOOL_CLEAR=6;BG.model.FlashMapModel.TOOL_CLICK=7;BG.model.FlashMapModel.TOOL_INIT=8;BG.model.FlashMapModel.TOOL_REFRESH=11;BG.extend(BG.model.FlashMapModel,BG.model.MapModel,{init:function(C,B){BG.model.FlashMapModel.superclass.init.call(this,C,BG.model.MapModel.TYPE_FLASH,null,null,null);var D=B||null;var A=false;this.getFlashObject=function(){return D.swf};this.setFlashObject=function(E){D=E;A=true};this.isInitialized=function(){return A}},toString:function(){return"FlashMapModel[ Id: "+this.getId()+", Type: "+this.getType()+" ]"}});
BG.model.FeatureModel=function(){};BG.model.FeatureModel.addAction=function(A,B){assertTypeOf(A,"string","The name of the action to add must be a string");assertNotStrictEqual(A,"","The name of the action to add can't be an empty string");assertStrictEqual(A in BG.model.FeatureModel.ACTIONS,false,"The name of an action to add must not be used before !");assert(isarray(B),"The action to add must be an array");BG.model.FeatureModel.ACTIONS[A]=B};BG.model.FeatureModel.MAP_MANAGER="BG.application.Application.getInstance().getMapManager()";BG.model.FeatureModel.MAP_CONTROLLER="BG.controller.Map";BG.model.FeatureModel.SCALE_FIELD_PREFIX="BG_INPUT_SCALE_";BG.model.FeatureModel.CENTER_X_PREFIX="BG_INPUT_X_";BG.model.FeatureModel.CENTER_Y_PREFIX="BG_INPUT_Y_";BG.model.FeatureModel.ACTIONS={fake:[{type:"button",event:[],action:"fake"}],refresh:[{type:"button",event:["click"],action:"refresh",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:1,tooltip:"Toolbar.recenterMap"}],undoExtent:[{type:"button",event:["click"],action:"undoExtent",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:13,tooltip:"Toolbar.undoExtent"}],redoExtent:[{type:"button",event:["click"],action:"redoExtent",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:14,tooltip:"Toolbar.redoExtent"}],zoomIn:[{type:"button",event:["click"],action:"zoomIn",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:2,tooltip:"Toolbar.zoomIn",selectable:true}],zoomOut:[{type:"button",event:["click"],action:"zoomOut",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:3,tooltip:"Toolbar.zoomOut",selectable:true}],pan:[{type:"button",event:["click"],action:"pan",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:4,tooltip:"Toolbar.pan",selectable:true}],clean:[{type:"button",event:["click"],action:"clear",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:5,tooltip:"Toolbar.clear"}],info:[{type:"button",event:["click"],action:"clickMap",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:6,tooltip:"Toolbar.clickMap",selectable:true}],print:[{type:"button",event:["click"],action:"exportHtml",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:7,tooltip:"Toolbar.print"}],pdfExport:[{type:"button",event:["click"],action:"pdfExport",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:8,tooltip:"Toolbar.pdf"}],draw:[{type:"button",event:["click"],action:"showDrawToolbar",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:9,tooltip:"Toolbar.draw",selectable:true}],scale:[{type:"label",label:"Toolbar.scale",tooltip:"Toolbar.updateScale",forId:BG.model.FeatureModel.SCALE_FIELD_PREFIX},{type:"textbox",event:["change","keydown"],action:"updateScale",forId:true,value:"",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,tooltip:"Toolbar.updateScale"}],getLink:[{type:"button",event:["click"],action:"getLink",object:BG.model.FeatureModel.MAP_CONTROLLER,needMap:true,idxIcon:11,tooltip:"Toolbar.getlink"}],toggleTabView:[{type:"button",event:["click"],action:"toggleTabView",object:"BG.view.UserInterfaceBuilder.getInstance()",idxIcon:10,tooltip:"Toolbar.fullscreenMap"}],toggleTabViewNoResize:[{type:"button",event:["click"],action:"toggleTabViewNoResize",object:"BG.view.UserInterfaceBuilder.getInstance()",idxIcon:10,tooltip:"Toolbar.fullscreenMap"}],disconnect:[{type:"button",event:["click"],action:"disconnect",object:"BG.application.Application.getInstance()",needMap:false,idxIcon:12,tooltip:"Toolbar.disconnect"}],separator:[{type:"separator"}]};
BG.model.ParameterModel=function(){this.init()};BG.model.ParameterModel.prototype={init:function(){var f="";var s="";var k=1200;var F="";var o="";var T;var r;var B;var x=50;var N=20;var W=true;var j=true;var D=3;var I=true;var u=null;var V=null;var h=null;var X=null;var t=null;var J=null;var n=null;var b=null;var e=null;var m=null;var g=null;var G=null;var Z=null;var A=null;var U=null;var AA=false;var a=false;var Q="";var p="";var P=null;var R=null;var w=null;var y=null;var Y=null;var C=4;var H=[];var d=[];var z=[];var S=false;var q="";var c=[];var v=[];var M=false;var K=true;var O=false;this.setServerVersion=function(AC){var AB=parseFloat(AC);if(AB!="NaN"){C=AB}};this.getServerVersion=function(){return C};this.getTitle=function(){return f};this.setTitle=function(AB){f=AB||""};this.getPort=function(){return k};this.setPort=function(AB){k=AB};this.getHost=function(){return F};this.setHost=function(){var AB=/.*\/\/[^\/]+/.exec(window.location);F=AB[0]};this.getCgi=function(){return o};this.setCgi=function(AB){o=AB};this.getListCgi=function(){var AB=o.replace(/\/[^\/]+\.pl$/,"/list.pl");return AB};this.getUploadCgi=function(){var AB=o.replace(/\/[^\/]+\.pl$/,"/upload.pl");return AB};this.getUploadStatusCgi=function(){var AB=o.replace(/\/[^\/]+\.pl$/,"/uploadStatus.pl");return AB};this.getHttpWebLocation=function(){return F+T};this.setHttpWebLocation=function(AB){T=AB;var AC=window.location;if(/https?:\/\/[^\/]+(\/|\/.*\/)bg\/config\/.*/i.test(AC)){r=RegExp.$1}if(!isset(T)||T===""){T=r}};this.getWebDirectory=function(){return T};this.getWebPath=function(){return F+r};this.setDiskLocation=function(AB){B=AB;if(/[^\\\/]$/.test(B)){if(B.indexOf("/")>=0){B+="/"}else{B+="\\"}}};this.getDiskLocation=function(){return B};this.concatDiskLocation=function(AC){var AB;if(/\\$/.test(B)){AB="\\"}else{AB="/"}return B+AC.join(AB)};this.setUploadTempDir=function(AC){var AD=function(AF){var AE=AF.responseText;if(/temp_dir value=['"](.+)['"]/.test(AE)){q=RegExp.$1;if(/[^\\\/]$/.test(q)){if(q.indexOf("/")>=0){q+="/"}else{if(q.indexOf("\\")>=0){q+="\\"}}}if(isset(AC)){AC(q)}}};var AB=new BG.communication.RequestManager().sendRequest(AD,"",null,null,this.getUploadCgi())};this.getUploadTempDir=function(){return q};this.setConfigName=function(AB){s=AB};this.getConfigName=function(){return s};this.getNbMaxResult=function(){return x};this.setNbMaxResult=function(AB){x=AB};this.getNbResultPerPage=function(){return N};this.setNbResultPerPage=function(AB){N=AB};this.getAutoOpenExportFile=function(){return W};this.setAutoOpenExportFile=function(AB){W=AB};this.getAutoCloseExportWindow=function(){return j};this.setAutoCloseExportWindow=function(AB){j=AB};this.setMapFormatExports=function(AB){d=AB};this.getMapFormatExports=function(){return d};this.setMapExportOrientation=function(AB){z=AB};this.getMapExportOrientation=function(){return z};this.setMapExportUserScale=function(AB){S=AB};this.getMapExportUserScale=function(){return S};this.setZoomOnResults=function(AB){K=AB};this.zoomOnResults=function(){return K};this.getCacheSize=function(){return D};this.setCacheSize=function(AB){D=AB};this.setAutoResize=function(AB){I=AB};this.getAutoResize=function(){return I};this.addConfigDirectory=function(AB,AD,AC){if(u===null){u=[]}if(!BG.util.Util.isValidVariable(AC)){AC=false}u.push({url:AB,label:AD,isCurrent:AC})};this.getCurrentConfigDirectory=function(){if(u===null){return null}var AB;var AC;for(AB=0;AB<u.length;AB++){AC=u[AB];if(AC.isCurrent){return AC}}return null};this.getConfigDirectories=function(){if(u===null){u=[]}return u};this.addLanguage=function(AB,AD,AC){if(V===null){V=[]}if(!BG.util.Util.isValidVariable(AC)){AC=false}V.push({name:AB,label:AD,isCurrent:AC})};this.getCurrentLanguage=function(){if(V===null){return null}var AC;var AB;for(AC=0;AC<V.length;AC++){AB=V[AC];if(AB.isCurrent){return AB}}return null};this.addMenu=function(AC,AE,AD,AB){if(h===null){h=[]}if(!BG.util.Util.isValidVariable(AB)){AB=false}h.push({ident:AC,openOnClick:AE,iframeFix:AD,isDefault:AB,entries:[]})};this.getMenus=function(){return h};this.getMenu=function(AB){if(h===null){return null}var AD;var AC;for(AD=0;AD<h.length;AD++){AC=h[AD];if(AC.ident===AB){return AC}}return null};this.addMenuEntry=function(AB,AE,AC){var AD=this.getMenu(AB);if(AD===null){return false}AD.entries.push({label:AC,ident:AE,items:[]});return true};this.getMenuEntry=function(AB,AG){var AE=this.getMenu(AB);if(AE===null){return null}var AF=AE.entries;var AD;var AC;for(AD=0;AD<AF.length;AD++){AC=AF[AD];if(AC.ident===AG){return AC}}return null};this.addMenuEntryItem=function(AB,AG,AE,AF,AD){var AC=this.getMenuEntry(AB,AG);if(AC===null){return false}AC.items.push({featureIdent:AE,label:AF,deleteFromDefaultMenu:AD});return true};this.addFeatureLink=function(AC,AD,AB){if(X===null){X=[]}X.push({parent:AC,label:AD,url:AB})};this.getFeatureLinks=function(){if(BG.util.Util.isValidVariable(X)){if(BG.util.Util.isArray(X)){return X}}return[]};this.addFeature=function(AM,AG,AH,AE,AD,AJ,AF,AK,AL,AI,AB,AC){var AN=AH.split(" ");
if(!(AM in BG.model.FeatureModel.ACTIONS)){BG.model.FeatureModel.ACTIONS[AM]=[]}BG.model.FeatureModel.ACTIONS[AM].push({type:AG,event:AN,object:AE,action:AD,param:AJ,needMap:AF,image:AK,idxIcon:AL,tooltip:AI,label:AB,selectable:AC})};this.addTab=function(AC,AD,AB){BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[AC]={label:AB,id:AD}};this.addMap=function(AD,AG,AB,AF,AH,AE){if(t===null){t=[]}if(BG.application.ApplicationBuilder.testFlashVersion()!==0){AG=BG.model.MapModel.TYPE_IMAGE}var AC=new BG.util.Dimension(parseInt(AB,10),parseInt(AF,10));t.push({ident:AD,type:AG,dimension:AC,showScale:AH,isEditable:AE})};this.getMap=function(AB){if(t===null){return null}var AD;var AC;for(AD=0;AD<t.length;AD++){AC=t[AD];if(AC.ident==AB){return AC}}return null};this.getMaps=function(){if(t===null){t=[]}return t};this.hasFlashMap=function(){var AB=false;if(t===null){return AB}var AD,AC=t.length;for(AD=0;AD<AC;AD++){if(t[AD].type==BG.model.MapModel.TYPE_FLASH){AB=true;break}}return AB};this.addMiniMap=function(AC,AG,AB,AD,AH,AE){if(J===null){J=[]}var AF=new BG.util.Dimension(parseInt(AB,10),parseInt(AD,10));J.push({ident:AC,map:AG,dimension:AF,integratedInMap:AH,isMinimized:AE})};this.getMiniMap=function(AB){if(J===null){return null}var AD;var AC;for(AD=0;AD<J.length;AD++){AC=J[AD];if(AC.ident==AB){return AC}}return null};this.getMiniMaps=function(){if(!BG.util.Util.isArray(J)){J=[]}return J};this.addLegend=function(AB,AC){if(n===null){n=[]}n.push({ident:AB,map:AC})};this.getLegends=function(){return n};this.getLegendIdFromMap=function(AD){var AC;var AB;for(AB=0;AB<n.length;AB++){AC=n[AB];if(AC.map==AD){return AC.ident}}return null};this.getLegend=function(AD){var AC;var AB;for(AB=0;AB<n.length;AB++){AC=n[AB];if(AC.ident==AD){return AC}}return null};this.addToolBar=function(AD,AC){if(b===null){b=[]}var AB=AC;if(BG.util.Util.isValidVariable(AC)){if(AC.indexOf(".gif")==-1&&AC.indexOf(".png")==-1&&AC.indexOf(".jpg")==-1&&AC.indexOf(".jpeg")==-1){if(YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7){AC+="IE6.jpg"}else{AC+=".png"}}else{if(YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7){AC=AC.replace(/\.png/i,".gif")}}}b.push({ident:AD,items:[],image:AC,horiz:true})};this.getToolBar=function(AC){if(b===null){return null}var AD;var AB;for(AD=0;AD<b.length;AD++){AB=b[AD];if(AB.ident==AC){return AB}}return null};this.getToolBars=function(){if(b===null){b=[]}return b};this.addToolBarItem=function(AE,AF,AB,AK,AH,AJ,AG,AD){var AI=this.getToolBar(AE);if(!BG.util.Util.isValidVariable(AG)){AG=null}if(!BG.util.Util.isValidVariable(AJ)){AJ=null}var AC=false;if(AB=="draw"){if(AJ!==null){if(BG.application.ApplicationBuilder.testFlashVersion()===0&&this.getMap(AJ).type==BG.model.MapModel.TYPE_FLASH){AC=true}}}else{AC=true}AI.items.push({action:AB,map:AJ,linkIdent:AG,enable:AC})};this.addExportResult=function(AB,AD,AC){if(e===null){e=[]}e.push({ident:AB,isUsed:AD,type:AC})};this.getExportResultByType=function(AB){if(e===null){return null}var AD;var AC;for(AD=0;AD<e.length;AD++){AC=e[AD];if(AC.type==AB){return AC}}return null};this.setExportResultByType=function(AC,AD){if(e===null){return false}var AB=null;var AF;var AE;for(AE=0;AE<e.length;AE++){AF=e[AE];if(AF.type==AC){AB=AF;break}}if(AB===null){return false}AB.isUsed=AD;return true};this.addExportMap=function(AB,AD,AE,AC){if(m===null){m=[]}m.push({ident:AB,isUsed:AD,map:AE,type:AC})};this.addAnalysis=function(AD,AC,AB){if(P===null){P=[]}P.push({ident:AD,map:AC,isDefault:AB})};this.addStatistic=function(AE,AD,AC,AH,AG,AF){if(R===null){R=[]}if(BG.application.ApplicationBuilder.testFlashVersion()!==0){AD="Picture";AG=false}var AB=false;if(isset(AF)){AB=AF}R.push({ident:AE,chart:AD,isDefault:AC,hasExport:AH,showTable:AG,newStat:AB})};this.getStatistic=function(AB){if(R===null){return null}var AE;var AD=R.length;var AC=null;for(AE=0;AE<AD;AE++){if(R[AE].ident==AB){AC=R[AE];break}else{if(R[AE].isDefault){AC=R[AE]}}}return AC};this.getStatisticsClone=function(){var AB=[];for(var AC=0;AC<R.length;AC++){AB.push(new BG.util.Util.cloneObject(R[AC]))}return AB};this.removeStatistic=function(AB){if(R===null){return false}var AE;var AD=R.length;var AC=null;for(AE=0;AE<AD;AE++){if(R[AE].ident!=AB){continue}R.splice(AE,1);return true}return false};this.getStatisticIdents=function(){var AB=[];var AC;if(R!==null){for(AC=0;AC<R.length;AC++){AB.push(R[AC].ident)}}return AB};this.addFilter=function(AC,AD,AB){if(y===null){y=[]}y.push({ident:AC,map:AD,isDefault:AB})};this.getFilter=function(AC){if(y===null){y=[]}var AE;var AB=null;var AF=false;var AD;for(AD=0;AD<y.length;AD++){AE=y[AD];if(AE.ident==AC){AF=true;break}if(AE.isDefault){AB=AE}}if(AF){return AE}return AB};this.getFilters=function(){if(y===null){y=[]}return y};this.addResult=function(AC,AD,AB){if(w===null){w=[]}w.push({ident:AC,map:AD,isDefault:AB})};this.getResult=function(AC){if(w===null){w=[]}var AB;var AF=null;var AE=false;var AD;for(AD=0;AD<w.length;AD++){AB=w[AD];if(AB.ident==AC){AE=true;break}if(AB.isDefault){AF=AB}}if(AE){return AB}return AF};this.getResults=function(){if(w===null){w=[]
}return w};this.getMapForResult=function(AC){if(w===null){return null}var AE=null;var AB;var AD;for(AB=0;AB<w.length;AB++){AD=w[AB];if(AD.ident==AC){return AD.map}else{if(AD.isDefault){AE=AD.map}}}return AE};this.getMapForGeoEdit=function(){if(t===null){return null}var AB=t.length;var AC;var AD;if(AB==1){AC=t[0];if(AC.type==BG.model.MapModel.TYPE_FLASH){return AC.ident}}else{for(AD=0;AD<AB;AD++){AC=t[AD];if(AC.isEditable&&AC.type==BG.model.MapModel.TYPE_FLASH){return AC.ident}}}return null};this.getMapForAnalysis=function(AE){if(P===null){return null}var AB=null;var AD;var AC;for(AD=0;AD<P.length;AD++){AC=P[AD];if(AC.ident==AE){return AC.map}else{if(AC.isDefault){AB=AC.map}}}return AB};this.getChartForStatistic=function(AC){if(R===null){return null}var AB=null;var AE;var AD;for(AE=0;AE<R.length;AE++){AD=R[AE];if(AD.ident==AC){return AD.chart}else{if(AD.isDefault){AB=AD.chart}}}return AB};this.setChartForStatistic=function(AC,AB){if(R===null){return }var AD;var AE;for(AE=0;AE<R.length;AE++){AD=R[AE];if(AD.ident==AC){AD.chart=AB}}};this.setDefaultChartForStatistic=function(AB){if(R===null){return }var AC;var AD;for(AD=0;AD<R.length;AD++){AC=R[AD];if(AC.isDefault){AC.chart=AB;return }}};this.addInfo=function(AV,AQ,AD,AH,AN,AM,AO,AC,AG,AB,AR,AJ,AL,AI,AE,AU,AP,AT,AK,AF){if(g===null){g=[]}var AS=false;if(isset(AP)){AS=AP}g.push({ident:AV,isDefault:AQ,hasPrint:AD,showMap:AH,hasLogo:AN,urlLogo:AM,positionLogo:AO,marginLogo:AC,hasExportPDF:AG,exportPDFLabel:AB,mapDimension:AR,serverOutPut:AJ,xsl:AL,xslUpdate:AI,infoSheetDimension:AE,closeAfterEdit:AU,newSheet:AS,mapLayout:AT||1,dataTableStyle:AK||1,dataJoinStyle:AF||1})};var L=function(){return{ident:"Ajout",isDefault:false,hasPrint:false,showMap:false,hasLogo:false,urlLogo:"",positionLogo:null,marginLogo:null,hasExportPDF:null,exportPDFLabel:null,mapDimension:new BG.util.Dimension(),serverOutPut:"xml",xsl:"",xslUpdate:"",infoSheetDimension:new BG.util.Dimension(0,0),closeAfterEdit:true,newSheet:false,mapLayout:BG.model.InfoModel.MAP_LAYOUT.top,dataTableStyle:BG.model.InfoModel.DATA_TABLE.table,dataJoinStyle:BG.model.InfoModel.DATA_JOIN.vertTable}};this.getConfigInfo=function(AC){if(AC=="Ajout"){return L()}if(g===null){return null}var AB=null;var AE;var AD;for(AE=0;AE<g.length;AE++){AD=g[AE];if(AD.ident==AC){if(!!AD.newSheet){continue}else{return AD}}else{if(AD.isDefault){AB=AD}}}return AB};this.getInfo=function(AC){if(g===null){return null}var AB=null;var AE;var AD;for(AE=0;AE<g.length;AE++){AD=g[AE];if(AD.ident==AC){return AD}else{if(AD.isDefault){AB=AD}}}return AB};this.removeInfo=function(AB){if(g===null){return false}var AD;var AC;for(AD=0;AD<g.length;AD++){AC=g[AD];if(AC.ident!=AB){continue}g.splice(AD,1);return true}return false};this.getDefaultInfo=function(){if(g===null){return null}var AB=null;var AC;for(AC=0;AC<g.length;AC++){if(g[AC].isDefault){AB=g[AC];break}}return AB};this.getInfoIdents=function(){var AB=[];var AC;if(g!==null){for(AC=0;AC<g.length;AC++){AB.push(g[AC].ident)}}return AB};this.setCopyRight=function(AB,AD,AC){G={ident:AB,text:AD,isUsed:AC,getText:function(){var AE=this.text;AE=AE.replace(/\$version\$/g,_("Aigle.version").replace(/\$version\$/,Loader.VERSION));AE=AE.replace(/\$user\$/g,_("Aigle.user").replace(/\$user\$/,BG.application.Application.getInstance().getUser().getUserName()));return AE}}};this.getCopyRight=function(){return G};this.setHelp=function(AC,AB,AD,AE){Z={ident:AC,isused:AB,type:AD,text:AE}};this.getHelp=function(){return Z};var i=function(AC,AB,AL,AM,AI,AN,AH,AK,AJ,AE,AD){if(!isset(AH)){AH=true}if(A===null){A=[]}var AG;var AF;if(!(AC in A)){A[AC]={defaultId:null,items:[],resizeMode:AN,fill:AH}}else{if(!isset(A[AC])){A[AC]={defaultId:null,items:[],resizeMode:AN,fill:AH}}}if(AI){A[AC].defaultId=AB;A[AC].resizeMode=AN;A[AC].fill=AH}else{AG=A[AC].items;for(AF=0;AF<AG.length;AF++){if(AG[AF].featureIdent==AL){AG[AF]={ident:AB,featureIdent:AL,className:AM,resizeMode:AN,fill:AH,onTopLayer:AK,linkedTo:AJ,linkedOn:AE,asPopup:AD};return }}A[AC].items.push({ident:AB,featureIdent:AL,className:AM,resizeMode:AN,fill:AH,onTopLayer:AK,linkedTo:AJ,linkedOn:AE,asPopup:AD})}};this.getTarget=function(AD,AC){if(!(AD in A)){return null}var AB=A[AD].items;var AE;for(AE=0;AE<AB.length;AE++){if(AB[AE].featureIdent==AC){return AB[AE]}}if(isset(A[AD].defaultId)){return{ident:A[AD].defaultId}}else{return null}};this.getTargets=function(AB){if(!(AB in A)){return[]}return A[AB].items};this.removeTarget=function(AD,AC){if(!(AD in A)){return }var AB=A[AD].items;var AE;for(AE=0;AE<AB.length;AE++){if(AB[AE].featureIdent==AC){AB.splice(AE,1);return }}};this.getCssFromTarget=function(AD){var AF;var AC;var AE;var AB;for(AF in A){AC=A[AF].items;AB=AC.length;for(AE=0;AE<AB;AE++){if(AC[AE].featureIdent==AD){if(isset(tarfets[AE].className)){return AC[AE].className}else{return""}}}}return""};this.setDefaultTabViewTarget=function(AB){i("tabs",AB,null,null,true)};this.addTabViewTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("tabs",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultMenuTarget=function(AB){i("menus",AB,null,null,true)
};this.addMenuTarget=function(AE,AF,AI,AB,AJ,AH,AG,AD,AC){i("menus",AF,AE,AI,false,AB,AJ,AH,AG,AD,AC)};this.addFeatureTarget=function(AC,AD,AB,AE){i("features",AD,AC,AB,false,AE)};this.addMapTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("maps",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.addMiniMapTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("minimaps",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.addLegendTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("legends",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.addToolbarTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("toolbars",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultFilterTarget=function(AB){i("filters",AB,null,null,true)};this.addFilterTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("filters",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultResultTarget=function(AB){i("results",AB,null,null,true)};this.addResultTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("results",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultStatTarget=function(AB){i("stats",AB,null,null,true)};this.addStatTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("stats",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultTableTarget=function(AB){i("tables",AB,null,null,true)};this.addTableTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("tables",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultInfoTarget=function(AB){i("infos",AB,null,null,true)};this.addInfoTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("infos",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.addExportInfoTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("exportInfos",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.setDefaultInfoExportTarget=function(AB){i("exportInfos",AB,null,null,true)};this.setDefaultCopyRightTarget=function(AB,AC){i("copyright",AB,null,null,true,AC)};this.getCopyRightTarget=function(){return A.copyright.defaultId};this.getFullCopyRightTarget=function(){return A.copyright};this.setDefaultTitleTarget=function(AC,AD,AB){i("title",AC,null,null,true,AD);A.title.visible=AB};this.getTitleTarget=function(){return A.title.defaultId};this.getFullTitleTarget=function(){return A.title};this.setDefaultHelpTarget=function(AB){i("help",AB,null,null,true)};this.addHorizontalSpacerTarget=function(AC,AD,AB,AE){i("horizTargets",AD,AC,AB,false,AE)};this.getHorizontalSpacerTarget=function(){if("horizTargets" in A){return A.horizTargets}else{return{items:[]}}};this.addVerticalSpacerTarget=function(AC,AD,AB){i("vertTargets",AD,AC,AB,false)};this.getVerticalSpacerTarget=function(){if("vertTargets" in A){return A.vertTargets}else{return{items:[]}}};this.addPluginTarget=function(AG,AH,AE,AI,AF,AB,AD,AC){i("plugins",AH,AG,AE,false,AI,null,AF,AB,AD,AC)};this.getPluginTargets=function(){if("plugins" in A){return A.plugins}else{return{item:[]}}};this.setShowLoginWindow=function(AE){var AD=BG.util.Util.getVarsFromUrl();var AC=false;var AB;for(AB in AD){if(AB.toLowerCase()=="showloginwindow"){AA=true;AC=true;break}}if(!AC){AA=AE}a=AE};this.getShowLoginWindow=function(){return AA};this.getRealShowLoginWindow=function(){return a};this.setDefaultLoginUserAndPass=function(AB,AC){Q=AB||"";p=AC||""};this.getDefaultLoginUserAndPass=function(){return{user:Q,password:p}};this.addAuthentType=function(AB,AD,AC){if(U===null){U=[]}U.push({type:AB,label:AD,selected:AC})};this.getCurrentAuthentType=function(){if(U===null){return null}var AC;var AB;for(AC=0;AC<U.length;AC++){AB=U[AC];if(AB.selected){return AB}}return null};this.getAuthentTypes=function(){return U};this.addPlugin=function(AB,AD,AC){assertTypeOf(AB,"string","Name of the plugin must be a string");assertNotStrictEqual(AB,"","Name of the plugin can't be an empty string");assertTypeOf(AD,"boolean","Enable status of the plugin must be a boolean");assertTypeOf(AC,"boolean","Web part status of the plugin must be a boolean");if(Y===null){Y=[]}Y.push({name:AB,path:"plugins/"+AB+"/"+AB+".js",enabled:AD,hasWebPart:AC,isExt:false})};this.addExtension=function(AB,AC){assertTypeOf(AB,"string","Name of the plugin must be a string");assertNotStrictEqual(AB,"","Name of the plugin can't be an empty string");assertTypeOf(AC,"boolean","Enable status of the plugin must be a boolean");if(Y===null){Y=[]}Y.push({name:AB,path:"extensions/"+AB+"/"+AB+".js",enabled:AC,hasWebPart:true,isExt:true})};this.getPlugins=function(){if(Y===null){Y=[]}return Y};this.getPlugin=function(AC){assertTypeOf(AC,"string","Name of the search plugin must be a string");assertNotStrictEqual(AC,"","Name of the search plugin can't be an empty string");if(Y===null){Y=[]}for(var AB=0;AB<Y.length;AB++){if(Y[AB].name==AC){return Y[AB]}}return null};this.addPersonalColor=function(AB){if(!isarray(H)){H=[]}if(H.length<10){H.push(AB)}else{H[0]=AB}};this.getPersonalColors=function(){if(!isarray(H)){H=[]}return H};this.savePersonalColors=function(AC){H=AC;if(!BG.edit.Engine.getInstance().isRunning){return }var AE=BG.edit.EditManager.getInstance();var AB=BG.communication.formatter.EditFormatter;AE.addChange(AB.removeParam("//web-parameter-list/personal-colors/color"));for(var AD=0;AD<H.length;AD++){AE.addChange(AB.createNode("//web-parameter-list/personal-colors","color",H[AD]))
}};var l=function(){var AB=BG.action.GetFontAction.PREFIX;var AC=new BG.action.GetFontAction(AB,AB);AC.execute()};this.setFontList=function(){l()};this.handleSetFontList=function(AB){c=AB};this.getFontList=function(){return c};var E=function(){var AB=BG.action.GetIconListAction.PREFIX;var AC=new BG.action.GetIconListAction(AB,AB);AC.execute()};this.setIconList=function(){E()};this.handleSetIconList=function(AB){v=AB};this.getIconList=function(){return v};this.activatePersonalSymbology=function(){M=true};this.isPersonalSymbologyActivated=function(){return M};this.setOpenClickMap=function(AB){O=AB};this.canOpenClickMap=function(){return O}}};
BG.model.PluginParameter=function(){BG.model.PluginParameter.superclass.init.call(this)};BG.extend(BG.model.PluginParameter,BG.util.Dictionnary,{});
BG.controller={};BG.controller.IController=__create_class__(Object,{},{init:function(B,A){},getModel:function(){},attachView:function(A){},update:function(){},updateOn:function(A){},getName:function(){}});
BG.controller.BaseController=__create_class__(BG.controller.IController,{},{model:null,views:null,name:null,updateEvent:null,init:function(B,A){this.views=[];this._setName(B);this._setModel(A);this.model.setController(this);this.updateEvent=new YAHOO.util.CustomEvent("update",this);BG.controller.ControllerManager.getInstance().set(B,this)},getModel:function(){return this.model},attachView:function(A){Assert.notNull(A,"Can't attach a null view on controller '"+this.name+"'");Assert.instanceOf(A,BG.view.IView,"Only BG.view.IView instances can be added to the controller '"+this.name+"'");A.setController(this);A.setModel(this.model);this.views.push(A);this.updateEvent.subscribe(A.update,A,true);A.onAttachToController()},getName:function(){return this.name},update:function(){log.debug("Updating all views from '"+this.name+"' controller");this.updateEvent.fire()},updateOn:function(A){Assert.assert(is.isArray(A),"Modified elements to update a view must be a valid array, from '"+this.name+"' controller");log.debug("Updating all views from '"+this.name+"' controller");this.updateEvent.fire(A)},sendToModel:function(B,A){if(B in this.model){this.model[B].apply(this.model,A)}else{log.warn("Unable to call '"+B+"' on the model of '"+this.getName()+"' : function doesn't exists")}},_setName:function(A){Assert.notNull(A,"Name of a controller can't be null");Assert.typeOf(A,"string","Name of a controller musr be a valid string");Assert.notStrictEqual(A,"","Name of a controller can't be an empty string");this.name=A},_setModel:function(A){Assert.notNull(A,"Model of a controller can't be null");Assert.instanceOf(A,BG.model.IModel,"The model of a controller must implements BG.model.IModel");this.model=A}});
(function(){var A=null;BG.controller.ControllerManager=__create_class__(Object,{getInstance:function(){if(A===null){A=new BG.controller.ControllerManager()}return A}},{controllers:{},init:function(){},get:function(B){if(B in this.controllers){return this.controllers[B]}else{return null}},getByType:function(D){var C;var B;var E=[];for(C in this.controllers){B=this.controllers[C];if(B instanceof D){E.push(B)}}return E},set:function(C,B){this.controllers[C]=B},remove:function(B){if(B in this.controller){delete this.controllers[B]}}})})();
BG.controller.AuthenticationController=__create_class__(BG.controller.BaseController,{},{init:function(B,A){BG.controller.AuthenticationController.superclass.init.call(this,B,A)},connect:function(C,H){if(is.set(C)&&is.set(H)){this.model._setUser(C);this.model._setPassword(H);this.model._setUserType(BG.model.Authentication.USER_TYPE.AUTHENTIFIED)}var F=this.model.getType();var A;var G,D,I;var E=this;var B=new BG.communication.RequestManager("POST");if(F==BG.model.Authentication.TYPE.SSO){A=BG.communication.formatter.FormatterFactoryV0.createSSOAuthCommand(RegExp.$1,RegExp.$2);B.sendRequest(this._parseAuth,A,this)}else{if(F==BG.model.Authentication.TYPE.RSA){A=BG.communication.formatter.FormatterFactoryV0.createRSACommand();G=this.model.getUserName();D=this.model.getPassword();I=function(J){E._parseRSA(J,G,D)};B.sendRequest(I,A,this)}else{if(F==BG.model.Authentication.TYPE.MD5){A=BG.communication.formatter.FormatterFactoryV0.createAuthCommand(this.model.getUserName(),BG.util.Md5.hex(this.model.getPassword()));B.sendRequest(this._parseAuth,A,this)}else{A=BG.communication.formatter.FormatterFactoryV0.createAuthCommand(this.model.getUserName(),this.model.getPassword());B.sendRequest(this._parseAuth,A,this)}}}},authenticate:function(){var B=BG.view.UserInterfaceBuilder.getInstance();var A=new BG.model.UserModel(this.model.getId(),this.model.getUserName(),this.model.getUserName(),this.model.getId(),this.model.isRoot());BG.application.Application.getInstance().setUser(A);BG.application.ApplicationBuilder.USER_CONNECTED.fire("userConnected");if(B.buildComplete){BG.application.Application.getInstance().getMapManager().updateUserDetails();B.buildComplete=false;B.buildInterfaceElements(null,true)}else{B.buildInterfaceElements()}},refuse:function(){var A=BG.view.UserInterfaceBuilder.getInstance();A.showLoginPanel("error","ServerAuth.accessRefused",true)},connectionRefused:function(){var A=BG.view.UserInterfaceBuilder.getInstance();A.showLoginPanel("error","ServerAuth.connectionError",false)},_parseRSA:function(C,A,L){var J=C.responseText;var N=J.split("MODULUS");var G=N[1].substring(1,N[1].length-2);var F=J.split("EXPONENT");var M=F[1].substring(1,F[1].length-2);var I=J.split("IDRSA");var D=I[1].substring(1,I[1].length-2);var H=new BG.util.RSAKey();H.setPublic(G,M);var K=H.encrypt(L);var B=BG.communication.formatter.FormatterFactoryV0.createAuthCommand(A,K,true,D);var E=new BG.communication.RequestManager("POST");E.sendRequest(this._parseAuth,B,this)},_parseAuth:function(C){var A=new JKL.ParseXML();var B=A.parseXML(C);this._validate(B)},_validate:function(E){var C=E.LOGIN;if(!is.set(C)){this.model.setConnectionRefused();return }E=C.USER;var B=null;var D,F,A;if(is.set(E)){D=E.name||"";if(D!=this.model.getUserName()){D=this.model.getUserName()}F=E.id||"";A=("isroot" in E?E.isroot=="1":false);this.model._setUser(D);this.model._setId(F);if(A){this.model._setRoot()}this.model.setAuthenticated()}else{this.model.setRefused()}}});
BG.view.IView=__create_class__(Object,{},{init:function(){},update:function(){},getModel:function(){},getController:function(){},onAttachToController:function(){}});
BG.view.BaseView=__create_class__(BG.view.IView,{},{model:null,controller:null,init:function(){},getModel:function(){return this.model},setModel:function(A){Assert.notNull(A,"Model of a view can't be null");Assert.instanceOf(A,BG.model.IModel,"Model of a view must be a valid BG.model.IModel instance");this.model=A},getController:function(){return this.controller},setController:function(A){Assert.notNull(A,"Controller of a view can't be null");Assert.instanceOf(A,BG.controller.IController,"Controller of a view must be a valid BG.controller.IController instance");this.controller=A},update:function(){},sendToModel:function(B,A){Assert.notNull(this.controller,"Controller must be set before access it");this.controller.sendToModel(B,A)}});
BG.view.Types={OTHER:-1,MAP:0,LEGEND:1,RESULT:2,FILTER:3,TABVIEW:4,MINIMAP:5,TOOLBAR:6,MENU:7,BANNER:8,LOGO:9,TITLE:10,COPYRIGHT:11,INTEGRATED_MINIMAP:12,HORIZONTAL_SPACER:13,VERTICAL_SPACER:14};BG.view.Types.addType=function(B){var C=-1;for(var A in BG.view.Types){if(typeof BG.view.Types[A]!="number"){continue}if(BG.view.Types[A]>C){C=BG.view.Types[A]}}BG.view.Types[B]=C+1};BG.view.Types.getName=function(C){var B=BG.view.Types;switch(C){case B.MAP:return _("Types.map");case B.LEGEND:return _("Types.legend");case B.RESULT:return _("Types.result");case B.FILTER:return _("Types.filter");case B.TABVIEW:return _("Types.tabview");case B.MINIMAP:case B.INTEGRATED_MINIMAP:return _("Types.minimap");case B.TOOLBAR:return _("Types.toolbar");case B.MENU:return _("Types.menu");case B.BANNER:return _("Types.banner");case B.LOGO:return _("Types.logo");case B.TITLE:return _("Types.title");case B.COPYRIGHT:return _("Types.copyright");case B.HORIZONTAL_SPACER:return _("Types.horizontalSpacer");case B.VERTICAL_SPACER:return _("Types.verticalSpacer");default:for(var A in B){if(B[A]==C){return A}}return""}};BG.view.ResizeMode={NONE:0,HORIZONTAL:1,VERTICAL:2,BOTH:3};BG.view.ResizeMode.getString=function(B){var A=BG.view.ResizeMode;switch(B){case A.NONE:return"none";case A.HORIZONTAL:return"horizontal";case A.VERTICAL:return"vertical";case A.BOTH:return"both";default:return"none"}};BG.view.ResizeMode.getName=function(B){var A=BG.view.ResizeMode;switch(B){case A.NONE:return _("ResizeMode.none");case A.HORIZONTAL:return _("ResizeMode.horizontal");case A.VERTICAL:return _("ResizeMode.vertical");case A.BOTH:return _("ResizeMode.both");default:return _("ResizeMode.none")}};BG.view.ResizeMode.fromString=function(A){var B=BG.view.ResizeMode;if(A=="none"){return B.NONE}else{if(A=="horizontal"){return B.HORIZONTAL}else{if(A=="vertical"){return B.VERTICAL}else{return B.BOTH}}}};
(function(){var _instance=null;BG.view.UserInterfaceBuilder=function(){if(BG.view.UserInterfaceBuilder.caller!=BG.view.UserInterfaceBuilder.getInstance){throw new Error("Unable to instanciate BG.view.UserInterfaceBuilder, use getInstance")}this.init()};BG.view.UserInterfaceBuilder.getInstance=function(){if(!_instance){_instance=new BG.view.UserInterfaceBuilder()}return _instance};BG.view.UserInterfaceBuilder.TAB_VIEW_DATA={};BG.view.UserInterfaceBuilder.MAIN_CONTENT_ID="main";BG.view.UserInterfaceBuilder.EDIT_DEPS="BG.edit.*";BG.view.UserInterfaceBuilder.LOAD_MIN=false;BG.view.UserInterfaceBuilder.prototype={hasLoginPanel:false,buildCompleteCallback:null,buildCallback:null,nbElementsToBuild:0,nbMapsToBuild:0,buildComplete:false,resizeHandler:null,_tabView:null,_menu:null,_toolbars:null,_application:null,_parameters:null,editEngine:null,_tmpEditRegister:null,_firstResize:null,_pluginBuilders:null,_pluginDeleters:null,_buildYetComplete:null,_firstBuild:null,_hiddenElements:null,_disableReconnectionPanel:null,unloadDisabled:false,_toggleUsesResize:null,init:function(){this._tmpEditRegister=[];this._pluginBuilders={};this._pluginDeleters={};this._application=BG.application.Application.getInstance();this._parameters=this._application.getParameters();this._firstResize=false;this.buildYetComplete=false;this._firstBuild=true;this._hiddenElements=[];this._disableReconnectionPanel=false;this.resizeHandler=BG.view.ResizeManager.getInstance();YAHOO.util.Event.addListener(window,"beforeunload",this.handleClose,null,this);var me=this;var i;if(!isset(BG.edit.Engine)){BG.edit.Engine=function(){};BG.edit.Engine.getInstance=function(){return new BG.edit.Engine()};BG.edit.Engine.prototype.register=function(pId,pTarget,pType,pResize,pUpdate,pOnTopLayer){me._tmpEditRegister.push({id:pId,target:pTarget,type:pType,resize:pResize,update:pUpdate,onTopLayer:pOnTopLayer})};BG.edit.Engine.prototype.unregister=function(pId){for(i=0;i<me._tmpEditRegister.length;i++){if(me._tmpEditRegister[i].id==pId){me._tmpEditRegister.splice(i,1);break}}};BG.edit.Engine.prototype.unregisterFromTarget=function(pTarget){for(i=0;i<me._tmpEditRegister.length;i++){if(me._tmpEditRegister[i].target==pTarget){me._tmpEditRegister.splice(i,1);break}}};BG.edit.Engine.prototype.unregisterAll=function(){};BG.edit.Engine.prototype.initialize=function(){};BG.edit.Engine.prototype.isRunning=false;BG.edit.Engine.prototype.isInit=false}this.editEngine=BG.edit.Engine.getInstance();this.buildInterface()},registerPluginBuilder:function(type,builder){this._pluginBuilders[type]=builder},registerPluginDeleter:function(type,callback){this._pluginDeleters[type]=callback},buildPluginPart:function(type,el){if(type in this._pluginBuilders){this._pluginBuilders[type](el)}},deletePluginPart:function(type,id,targetId){if(type in this._pluginDeleters){this._pluginDeleters[type](id,targetId)}},setFirstResize:function(){this._firstResize=true},getFirstResize:function(){return this._firstResize},buildInterface:function(callback){this.buildCommonInterface()},getToolbars:function(){return this._toolbars},showWait:function(){var el=document.createElement("div");el.id="waiting";el.className="yui-panel";el.appendChild(document.createTextNode(_("Wait.initial")));document.body.appendChild(el)},hideWait:function(){var el=document.getElementById("waiting");if(is.set(el)){if(is.set(el.parentNode)){el.parentNode.removeChild(el)}}},buildCommonInterface:function(pOnlyDynamicElement){if(!BG.util.Util.isValidVariable(pOnlyDynamicElement)||!pOnlyDynamicElement){this.showWait()}this.buildTitle()},buildInterfaceElements:function(callback,pOnlyDynamicElement){YAHOO.widget.Overlay.VIEWPORT_OFFSET=0;if(!BG.util.Util.isValidVariable(pOnlyDynamicElement)){pOnlyDynamicElement=false}if(pOnlyDynamicElement){this.buildYetComplete=false;this.buildCommonInterface(true)}else{this.hideWait()}var main=document.getElementById(BG.view.UserInterfaceBuilder.MAIN_CONTENT_ID);if(main){main.style.visibility="hidden";main.style.display=""}this.buildCopyright();this.hideCopyright();this.hideMenus();this._hiddenElements=[];this.buildCompleteCallback=callback;this.nbElementsToBuild=this._parameters.getMenus().length;this.nbElementsToBuild+=this._parameters.getMaps().length;this.nbElementsToBuild+=this._parameters.getMiniMaps().length;this.nbMapsToBuild=this._parameters.getMaps().length;if(!pOnlyDynamicElement){this.nbMapsToBuild+=this._parameters.getMiniMaps().length}if(BG.view.LoginPanel){this.nbElementsToBuild+=this._parameters.getToolBars().length}this.nbElementsToBuild+=1;this.nbElementsToBuild+=this._parameters.getResults().length;this.nbElementsToBuild+=this._parameters.getFilters().length;this.buildMenu();if(BG.util.Util.isValidVariable(BG.view.LoginPanel)){this.buildToolbar()}this.buildResults(pOnlyDynamicElement);this.buildFilters(pOnlyDynamicElement);this.buildMapsAndLegends(pOnlyDynamicElement);this.buildMiniMap();this.buildSpacers();this.buildTabView(null,pOnlyDynamicElement);this.buildPluginsPart()},remove:function(id,targetId,type){switch(type){case BG.view.Types.MAP:this.deleteMap(id,targetId);
break;case BG.view.Types.LEGEND:case BG.view.Types.FILTER:case BG.view.Types.TABVIEW:this.deleteTabView(id,targetId);break;case BG.view.Types.MINIMAP:case BG.view.Types.INTEGRATED_MINIMAP:this.deleteMiniMap(id,targetId);break;case BG.view.Types.TOOLBAR:this.deleteToolbar(id,targetId);break;case BG.view.Types.MENU:this.deleteMenu(id,targetId);break;case BG.view.Types.BANNER:case BG.view.Types.LOGO:case BG.view.Types.TITLE:this.deleteTitle(id,targetId);break;case BG.view.Types.COPYRIGHT:this.deleteCopyright(id,targetId);break;case BG.view.Types.HORIZONTAL_SPACER:this.deleteSpacer(id,targetId,true);break;case BG.view.Types.VERTICAL_SPACER:this.deleteSpacer(id,targetId,false);break;default:this.deletePluginPart(type,id,targetId);break}},_delete:function(id,targetId){this.resizeHandler.unregister(targetId);this.editEngine.unregister(id);var el=document.getElementById(targetId);if(!isset(el)){log.error("unable to delete : id="+id+", targetId="+targetId);return }log.info("delete : id="+id+", targetId="+targetId);BG.util.Util.cleanNode(el);el.parentNode.removeChild(el)},buildTitle:function(){var title=this._parameters.getTitle();var titleTarget=this._parameters.getTitleTarget();var fullTarget=this._parameters.getFullTitleTarget();if(!fullTarget.visible){return }var titleEl=document.getElementById(titleTarget);document.getElementsByTagName("title")[0].text=title.replace(/<[^>]+>/g," ");var bannerEl,logoEl;if(!isset(titleEl)){bannerEl=document.getElementById("banner");if(!isset(bannerEl)){bannerEl=document.createElement("div");bannerEl.id="banner";bannerEl.className="banner";document.body.insertBefore(bannerEl,document.body.childNodes[0]);logoEl=document.createElement("div");logoEl.id="logo";bannerEl.appendChild(logoEl)}else{bannerEl.className="banner"}titleEl=document.createElement("div");titleEl.id=titleTarget;bannerEl.appendChild(titleEl)}BG.util.Util.cleanNode(titleEl);titleEl.innerHTML=title;this.resizeHandler.register("banner","banner",BG.view.Types.BANNER,fullTarget.resizeMode,BG.view.ResizeManager.PositionMode.FIXED,false);this.editEngine.register("banner","banner",BG.view.Types.BANNER,BG.view.ResizeMode.BOTH)},deleteTitle:function(id,targetId){this._delete("banner","banner");var _removeBanner=BG.communication.formatter.EditFormatter.removeHtmlElement("banner","div");var _updateTarget=BG.communication.formatter.EditFormatter.updateParam("//web-parameter-list/html-target-id/title-target","false","visible");BG.edit.EditManager.getInstance().addChange(_removeBanner);BG.edit.EditManager.getInstance().addChange(_updateTarget)},buildCopyright:function(withUpdate){var copyright=this._parameters.getCopyRight();var copyrightTarget=this._parameters.getCopyRightTarget();var copyrightel=document.getElementById(copyrightTarget);if(!copyright.isUsed){if(isset(copyrightel)){copyrightel.style.display="none"}return }if(!isset(copyrightel)){copyrightel=document.createElement("div");copyrightel.id=copyrightTarget;if(isset(document.body)){document.body.appendChild(copyrightel)}}copyrightel.style.display="";copyrightel.className="copyright";BG.util.Util.cleanNode(copyrightel);BG.util.Util.cleanElementDim(copyrightel);copyrightel.innerHTML=copyright.getText();var fullTarget=this._parameters.getFullCopyRightTarget();this.resizeHandler.register(copyrightTarget,copyrightTarget,BG.view.Types.COPYRIGHT,fullTarget.resizeMode,BG.view.ResizeManager.PositionMode.FIXED);this.editEngine.register(copyrightTarget,copyrightTarget,BG.view.Types.COPYRIGHT,BG.view.ResizeMode.BOTH,!!withUpdate)},hideCopyright:function(){var copyright=this._parameters.getCopyRight();var copyrightTarget=this._parameters.getCopyRightTarget();var copyrightel=document.getElementById(copyrightTarget);if(!copyright.isUsed){return }if(isset(copyrightel)){copyrightel.style.visibility="hidden"}},showCopyright:function(){var copyright=this._parameters.getCopyRight();var copyrightTarget=this._parameters.getCopyRightTarget();var copyrightel=document.getElementById(copyrightTarget);if(!copyright.isUsed){return }if(isset(copyrightel)){copyrightel.style.visibility="visible"}},deleteCopyright:function(id,targetId,type){this._delete(id,targetId);var copyright=this._parameters.getCopyRight();copyright.isUsed=false;var editFormatter=BG.communication.formatter.EditFormatter;var editManager=BG.edit.EditManager.getInstance();editManager.addChange(editFormatter.updateParam("//web-parameter-list/copyright",false,"use"));var _removeCopyright=editFormatter.removeHtmlElement(targetId,"div");editManager.addChange(_removeCopyright)},buildPluginsPart:function(){var targets=this._parameters.getPluginTargets().items;if(!isset(targets)){return }var target;for(var i=0;i<targets.length;i++){target=targets[i];this.buildPluginPart(BG.view.Types[target.featureIdent],target)}},buildMenu:function(){var postMenuData=BG.communication.formatter.FormatterFactoryV0.createMenuCommand();var menus=this._parameters.getMenus();var menu;for(var i=0;i<menus.length;i++){menu=menus[i];this._buildMenu(menu,postMenuData,false)
}},_buildMenu:function(menu,postMenuData,withUpdate){var createMenu=function(o){var tmpMenu=new BG.model.xmlload.XMLMenuLoader(menu.ident);tmpMenu.load(o);var target=this._parameters.getTarget("menus",menu.ident);if(target.onTopLayer){this.resizeHandler.registerOnTopLayer(target.ident,menu.ident,BG.view.Types.MENU,target.linkedTo,target.linkedOn)}else{if(target.asPopup){this.generatePopupFor(target.ident)}else{this.resizeHandler.register(target.ident,menu.ident,BG.view.Types.MENU,target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true)}}this.editEngine.register(menu.ident,target.ident,BG.view.Types.MENU,BG.view.ResizeMode.HORIZONTAL,withUpdate,target.onTopLayer);this._hiddenElements.push(menu.ident);if(this.isBuild()){this.checkCallback()}else{this.checkBuildComplete(_("UserInterface.buildMenu"))}};var target=this._parameters.getTarget("menus",menu.ident);if(!isset(target)){this.checkBuildComplete("");return }var divMenu=document.getElementById(target.ident);var main;if(!isset(divMenu)){divMenu=document.createElement("div");divMenu.id=target.ident;main=document.getElementById("main");main.appendChild(divMenu)}if(isset(target.className)){divMenu.className=target.className}BG.util.Util.cleanElementDim(divMenu);var menuController;var menuModel;var menuView;menuController=BG.controller.ControllerManager.getInstance().get("menu");if(menuController===null){menuModel=new BG.model.Menu();menuController=new BG.controller.Menu("menu",menuModel);menuView=new BG.view.Menu(menu.ident);menuController.attachView(menuView)}menuController.get()},deleteMenu:function(id,targetId,type){this._delete(id,targetId)},buildResults:function(onlyDynamic){var lstResults=this._parameters.getResults();var result;for(var i=0;i<lstResults.length;i++){result=lstResults[i];this._buildResult(result,false,onlyDynamic)}},_buildResult:function(result,withUpdate,onlyDynamic){var _target=this._parameters.getTarget("results",result.ident);if(!isset(_target)){this.checkBuildComplete("");return }var resultEl;var main;if(!onlyDynamic){resultEl=document.getElementById(_target.ident);if(!isset(resultEl)){resultEl=document.createElement("div");resultEl.id=_target.ident;main=document.getElementById("main");main.appendChild(resultEl)}if(isset(_target.className)){resultEl.className=_target.className}resultEl.style.display="";resultEl.style.position="absolute";BG.util.Util.cleanElementDim(resultEl)}if(_target.onTopLayer){this.resizeHandler.registerOnTopLayer(_target.ident,result.ident,BG.view.Types.RESULT,_target.linkedTo,_target.linkedOn)}else{if(_target.asPopup){this.generatePopupFor(_target.ident)}else{this.resizeHandler.register(_target.ident,result.ident,BG.view.Types.RESULT,_target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true)}}this.editEngine.register(result.ident,_target.ident,BG.view.Types.RESULT,BG.view.ResizeMode.BOTH,withUpdate,_target.onTopLayer);this.checkBuildComplete("results")},buildFilters:function(onlyDynamic){var lstFilters=this._parameters.getFilters();var filter;var i;var l=lstFilters.length;for(i=0;i<l;i++){filter=lstFilters[i];this._buildFilter(filter,false,onlyDynamic)}},_buildFilter:function(filter,withUpdate,onlyDynamic){var _target=this._parameters.getTarget("filters",filter.ident);if(!isset(_target)){this.checkBuildComplete("");return }var filterEl,main;if(!onlyDynamic){filterEl=document.getElementById(_target.ident);if(!isset(filterEl)){filterEl=document.createElement("div");filterEl.id=_target.ident;main=document.getElementById("main");main.appendChild(filterEl)}if(isset(_target.className)){filterEl.className=_target.className}filterEl.style.display="";filterEl.style.position="absolute";BG.util.Util.cleanElementDim(filterEl)}if(_target.onTopLayer){this.resizeHandler.registerOnTopLayer(_target.ident,filter.ident,BG.view.Types.FILTER,_target.linkedTo,_target.linkedOn)}else{if(_target.asPopup){this.generatePopupFor(_target.ident)}else{this.resizeHandler.register(_target.ident,filter.ident,BG.view.Types.FILTER,_target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true)}}this.editEngine.register(filter.ident,_target.ident,BG.view.Types.FILTER,BG.view.ResizeMode.BOTH,withUpdate,_target.onTopLayer);this.checkBuildComplete("filters")},buildToolbar:function(){var lstToolbars=this._parameters.getToolBars();this._toolbars=new BG.view.Toolbar();var tb;var i;var l=lstToolbars.length;for(i=0;i<l;i++){tb=lstToolbars[i];this._buildToolbar(tb,false)}},_buildToolbar:function(tb,withUpdate){var _target=this._parameters.getTarget("toolbars",tb.ident);if(!isset(_target)){this.checkBuildComplete("");return }var tbTarget=_target.ident;var htmlToolbar=document.getElementById(tbTarget);var onlyRefresh=false;var main;if(isset(htmlToolbar)&&htmlToolbar.childNodes.length>0){onlyRefresh=true;BG.util.Util.cleanNode(htmlToolbar);this.resizeHandler.unregister(tbTarget)}else{if(!isset(htmlToolbar)){htmlToolbar=document.createElement("div");htmlToolbar.id=tbTarget;main=document.getElementById("main");assertNotNull(main,"main element must never be null !!");
main.appendChild(htmlToolbar)}}BG.util.Util.cleanElementDim(htmlToolbar);if(isset(_target.className)){htmlToolbar.className=_target.className}var onBuildComplete=function(){this.checkBuildComplete(_("UserInterface.buildToolbar"))};if(_target.className.match(/vertToolbar/)!==null){tb.horiz=false}this._toolbars.build(tb,tbTarget,this._parameters.getCurrentConfigDirectory(),BG.util.Util.bind(onBuildComplete,this));if(_target.onTopLayer){this.resizeHandler.registerOnTopLayer(tbTarget,tb.ident,BG.view.Types.TOOLBAR,_target.linkedTo,_target.linkedOn)}else{if(_target.asPopup){this.generatePopupFor(tbTarget)}else{this.resizeHandler.register(tbTarget,tb.ident,BG.view.Types.TOOLBAR,_target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true)}}if(onlyRefresh&&this.editEngine.refreshElement){log.debug("-> refresh it");this.editEngine.refreshElement(tb.ident)}else{this.editEngine.register(tb.ident,tbTarget,BG.view.Types.TOOLBAR,tb.horiz?BG.view.ResizeMode.HORIZONTAL:BG.view.ResizeMode.VERTICAL,withUpdate,_target.onTopLayer)}},deleteToolbar:function(id,targetId,type){this._delete(id,targetId)},buildMapsAndLegends:function(withUpdate){var lstMaps=this._parameters.getMaps();var map;var i;var l=lstMaps.length;for(i=0;i<l;i++){map=lstMaps[i];this._buildMapAndLegend(map,withUpdate)}},_buildMapAndLegend:function(map,withUpdate){var controller;var mapIdent=map.ident;if(withUpdate){controller=BG.controller.ControllerManager.getInstance().get(mapIdent);controller.refreshAfterReload();return }var legendId=this._parameters.getLegendIdFromMap(mapIdent);var model=new BG.model.Map(mapIdent);controller=new BG.controller.Map(mapIdent,model);var legendview;if(is.set(legendId)){legendview=new BG.view.Legend(legendId,map.ident);controller.attachView(legendview)}var mapview=new BG.view.Map(map.ident);controller.attachView(mapview)},buildMiniMap:function(){var lstMiniMaps=this._parameters.getMiniMaps();var miniMap;var i;var l=lstMiniMaps.length;for(i=0;i<l;i++){miniMap=lstMiniMaps[i];this._buildMiniMap(miniMap,false)}},_buildMiniMap:function(miniMap,withUpdate,buildNow){var _target=this._parameters.getTarget("minimaps",miniMap.ident);if(!isset(_target)){this.checkBuildComplete("");this.checkBuildComplete("",true);return }var tmpActionName=BG.action.MiniMapAction.PREFIX+miniMap.ident;var actionType=BG.action.ActionFactory.TYPE_MAP;var buildMiniMapSubscribe;var tmpAction=this._application.getAction(actionType,tmpActionName);if(tmpAction===null){tmpAction=new BG.action.MiniMapAction(tmpActionName,tmpActionName,miniMap.ident,miniMap.map)}this._application.addAction(actionType,tmpAction);if(this._parameters.getAutoResize()&&(!isset(buildNow)||(isset(buildNow)&&!buildNow))){buildMiniMapSubscribe=function(){try{tmpAction.execute()}catch(e){log.error(e)}BG.application.ApplicationBuilder.ON_UI_RESIZED.unsubscribe(buildMiniMapSubscribe);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.unsubscribe(buildMiniMapSubscribe)};BG.application.ApplicationBuilder.ON_UI_RESIZED.subscribe(buildMiniMapSubscribe);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.subscribe(buildMiniMapSubscribe)}else{tmpAction.execute()}this.checkBuildComplete(_("UserInterface.Container.Minimap"));var _miniMap=this._parameters.getMiniMap(miniMap.ident);var targId,targ;if(_miniMap!==null){if(isset(_target.className)){targId=_miniMap.integratedInMap?"divMiniMapEffect":"divMiniMap";targ=document.getElementById(targId).getElementsByTagName("div")[0];YAHOO.util.Dom.addClass(targ,_target.className)}BG.util.Util.cleanElementDim(targId);if(!_miniMap.integratedInMap){if(_target.onTopLayer){this.resizeHandler.registerOnTopLayer("divMiniMap",miniMap.ident,BG.view.Types.MINIMAP,_target.linkedTo,_target.linkedOn)}else{if(_target.asPopup){this.generatePopupFor("divMiniMap")}else{this.resizeHandler.register("divMiniMap",miniMap.ident,BG.view.Types.MINIMAP,_target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true)}}}this.editEngine.register(miniMap.ident,_miniMap.integratedInMap?"divMiniMapEffect":"divMiniMap",_miniMap.integratedInMap?BG.view.Types.INTEGRATED_MINIMAP:BG.view.Types.MINIMAP,BG.view.ResizeMode.BOTH,withUpdate,!_miniMap.integratedInMap&&_target.onTopLayer)}},deleteMiniMap:function(id,targetId,type){var editManager=BG.edit.EditManager.getInstance();var editFormatter=BG.communication.formatter.EditFormatter;editManager.addChange(editFormatter.removeHtmlElement(targetId,"div"));this._delete(id,targetId);var tmpActionName=BG.action.MiniMapAction.PREFIX+id;var actionType=BG.action.ActionFactory.TYPE_MAP;this._application.removeAction(actionType,tmpActionName);BG.application.Application.getInstance().getDisplayerFactory().removeDisplayerFor("minimaps",id);this._parameters.removeTarget("minimaps",id)},buildTabView:function(withUpdate,pOnlyDynamic){if(!BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){return }var onlyDynamic=pOnlyDynamic;if(!isset(onlyDynamic)){onlyDynamic=false}var parent,firstEl,key,hasEl;var tabCont,ul,cont;var tab;var li;var divCont;var a;var em;var i=0;var lastKey;
var _target;var divs;if(!onlyDynamic){hasEl=false;for(key in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){hasEl=true;break}if(!hasEl){BG.view.UserInterfaceBuilder.TAB_VIEW_DATA={results:{id:"BG_RESULT",label:"UserInterface.results"},filters:{id:"BG_FILTER",label:"UserInterface.filters"},legend:{id:"BG_TARGET_LEGEND_1",label:"UserInterface.legend"}}}for(key in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){firstEl=document.getElementById(BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[key].id);break}if(isset(firstEl)){parent=firstEl.parentNode}else{parent=document.getElementById("main");assertNotNull("main div must not be null !!")}tabCont=document.createElement("div");tabCont.id="tab";tabCont.className="yui-navset";BG.util.Util.cleanElementDim(tabCont);parent.insertBefore(tabCont,firstEl);ul=document.createElement("ul");ul.className="yui-nav";cont=document.createElement("div");cont.className="yui-content";tabCont.appendChild(ul);tabCont.appendChild(cont);i=0;for(key in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){tab=BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[key];li=document.createElement("li");if(i===0){li.className="selected"}a=document.createElement("a");em=document.createElement("em");em.appendChild(document.createTextNode(_(tab.label)));a.appendChild(em);a.href="#tab"+(i+1);li.appendChild(a);ul.appendChild(li);divCont=document.getElementById(tab.id);if(!isset(divCont)){divCont=document.createElement("div");divCont.id=tab.id;divCont.className=this._parameters.getCssFromTarget(tab.id)}divCont.style.display="";divCont.style.position="";divCont.style.width="";cont.appendChild(divCont);this.editEngine.unregisterFromTarget(tab.id);this.resizeHandler.unregister(tab.id);++i;lastKey=key}this._tabView=new YAHOO.widget.TabView("tab");i=0;for(key in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[key].tab=this._tabView.getTab(i);++i}this._tabView.bgtabs=BG.view.UserInterfaceBuilder.TAB_VIEW_DATA;this._tabView.bgtabs[lastKey].active=true}else{for(key in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){tab=BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[key];divCont=document.getElementById(tab.id);if(isset(divCont)){divCont.style.position="";divCont.style.width=""}this.editEngine.unregisterFromTarget(tab.id);this.resizeHandler.unregister(tab.id)}BG.util.Util.cleanElementDim("tab");divs=document.getElementById("tab").getElementsByTagName("div");for(i=0;i<divs.length;i++){if(divs[i].className=="yui-content"){BG.util.Util.cleanElementDim(divs[i]);break}}}_target=this._parameters.getTarget("tabs","tab");if(_target.onTopLayer){this.resizeHandler.registerOnTopLayer("tab","tab",BG.view.Types.TABVIEW,_target.linkedTo,_target.linkedOn)}else{if(_target.asPopup){this.generatePopupFor("tab")}else{this.resizeHandler.register("tab","tab",BG.view.Types.TABVIEW,_target.resizeMode,BG.view.ResizeManager.PositionMode.FLOAT,true,2)}}this.editEngine.register("tab","tab",BG.view.Types.TABVIEW,BG.view.ResizeMode.BOTH,withUpdate,_target.onTopLayer);if(!this.isBuild()){this.checkBuildComplete(_("UserInterface.buildLayout"))}else{this.checkCallback()}},deleteTabView:function(id,targetId){this.resizeHandler.unregister("tab");this.editEngine.unregisterFromTarget("tab");var element=document.getElementById("tab");BG.util.Util.cleanNode(element);element.parentNode.removeChild(element);this._tabView=null},addTab:function(pTab,pLabel,id){this._tabView.addTab(pTab);var unikTabId=isset(id)?id:BG.util.Util.getOnTheFlyId("TAB");var tabs=(new YAHOO.util.Element("tab")).getElementsByClassName("yui-content","div")[0];var arrDivs=tabs.getElementsByTagName("div");var curDiv,i;for(i=0;i<arrDivs.length;i++){curDiv=arrDivs[i];if(curDiv.parentNode.parentNode.id=="tab"){if(curDiv.id===""||!BG.util.Util.isValidVariable(curDiv.id)){curDiv.id=unikTabId;break}}}BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[unikTabId]={label:pLabel,id:unikTabId};var idx=-1;var elt;for(elt in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA){idx++}var tmpTab=this._tabView.getTab(idx);BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[unikTabId].tab=tmpTab;return unikTabId},buildSpacers:function(widthUpdate){this._buildSpacers(this._parameters.getHorizontalSpacerTarget(),true,widthUpdate);this._buildSpacers(this._parameters.getVerticalSpacerTarget(),false,widthUpdate)},_buildSpacers:function(spacers,horiz,withUpdate){var i;var l=spacers.items.length;var spacer;for(i=0;i<l;i++){spacer=spacers.items[i];this._buildSpacer(spacer,horiz,withUpdate)}},_buildSpacer:function(spacer,horiz,withUpdate){var div;var ident;var target;var className;target=spacer.ident;ident=spacer.featureIdent;className=spacer.className;div=document.getElementById(target);if(!isset(div)){div=document.createElement("div");div.id=target;document.body.appendChild(div)}BG.util.Util.cleanElementDim(div);if(isset(className)){div.className=className}this.resizeHandler.register(target,ident,horiz?BG.view.Types.HORIZONTAL_SPACER:BG.view.Types.VERTICAL_SPACER,horiz?BG.view.ResizeMode.HORIZONTAL:BG.view.ResizeMode.VERTICAL,BG.view.ResizeManager.PositionMode.FLOAT,false);
this.editEngine.register(ident,target,horiz?BG.view.Types.HORIZONTAL_SPACER:BG.view.Types.VERTICAL_SPACER,horiz?BG.view.ResizeMode.HORIZONTAL:BG.view.ResizeMode.VERTICAL,withUpdate)},deleteSpacer:function(id,targetId,horiz){this._delete(id,targetId)},showHiddenMenus:function(){var i,l=this._hiddenElements.length;var el;var divs;var bd;var j,k;for(i=0;i<l;i++){el=document.getElementById(this._hiddenElements[i]);if(!isset(el)){continue}el.style.display="";divs=el.getElementsByTagName("div");k=divs.length;for(j=0;j<k;j++){bd=divs[j];if(/bd/.test(bd.className)){log.debug("-- fix menu style");log.debug(bd);bd.style.height=""}}}},hideMenus:function(){var i,l=this._hiddenElements.length;var el;for(i=0;i<l;i++){el=document.getElementById(this._hiddenElements[i]);if(!isset(el)){continue}el.style.display="none";el.parentNode.style.height="24px"}},setActivePanel:function(panel){if(!isset(this._tabView)){return }if(!(panel in BG.view.UserInterfaceBuilder.TAB_VIEW_DATA)){return }this.showTabView();this._tabView.set("activeTab",BG.view.UserInterfaceBuilder.TAB_VIEW_DATA[panel].tab,true)},checkBuildComplete:function(pElementLoaded,pIsMap){log.info("/!\\ "+pElementLoaded);if(BG.util.Util.isValidVariable(pIsMap)&&pIsMap){--this.nbMapsToBuild}else{--this.nbElementsToBuild}var buildEventFired=false;if(this.nbElementsToBuild<=0&&this.nbMapsToBuild<=0){this.buildComplete=true;if(this.hasLoginPanel){BG.view.LoginPanel.getInstance().fadeAndDelete()}else{if(BG.view.LoginPanel.hasInstance()){BG.view.LoginPanel.getInstance().hideLoginDialog()}}this.fixOldCssProperties();buildEventFired=true;BG.application.ApplicationBuilder.BUILD_COMPLETE.fire("complete");BG.application.ApplicationBuilder.BUILD_COMPLETE.unsubscribeAll()}else{if(this.nbElementsToBuild===0){this.onBuildComplete()}}if(this.nbElementsToBuild>0||this.nbMapsToBuild>0){BG.view.LoginPanel.getInstance().load(pElementLoaded)}if(this.hasLoginPanel&&this.buildComplete&&!buildEventFired){BG.view.LoginPanel.getInstance().fadeAndDelete();BG.application.ApplicationBuilder.BUILD_COMPLETE.fire("complete");BG.application.ApplicationBuilder.BUILD_COMPLETE.unsubscribeAll()}},checkCallback:function(){if(this.buildCallback){this.buildCallback()}},onBuildComplete:function(){if(this.buildYetComplete){return }this.buildYetComplete=true;if(this.buildCompleteCallback){this.buildCompleteCallback()}var me=this;this.hideMenus();var needToRead=this._firstBuild;if(YAHOO.env.ua.ie===0||YAHOO.env.ua.ie>=7){if(this._firstBuild){BG.view.StyleSheetUtility.getInstance().saveLayout();this._firstBuild=false}else{BG.view.StyleSheetUtility.getInstance().applyLayout()}}else{if(this._firstBuild){this._firstBuild=false}}var autoResize=this._parameters.getAutoResize();var autoResizeFunc;var main=document.getElementById(BG.view.UserInterfaceBuilder.MAIN_CONTENT_ID);var showContent;if(autoResize){showContent=function(){main.style.visibility="visible";me.showHiddenMenus();me.showCopyright();BG.application.ApplicationBuilder.ON_UI_RESIZED.unsubscribe(showContent);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.unsubscribe(showContent)};BG.application.ApplicationBuilder.ON_UI_RESIZED.subscribe(showContent);BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.subscribe(showContent);autoResizeFunc=function(){if(needToRead){me.resizeHandler.readLayout()}me.resizeHandler.clearLastDim();me.resizeHandler.enable();me.resizeHandler.handleResize();BG.edit.Engine.getInstance().initialize()};window.setTimeout(autoResizeFunc,200)}else{this.resizeHandler.handleFakeResize();this.showHiddenMenus();this.showCopyright();main.style.visibility="visible";BG.edit.Engine.getInstance().initialize()}},fixOldCssProperties:function(){var selector="body";var ssu=BG.view.StyleSheetUtility.getInstance();var fontColor=ssu.getValue(selector,"color","config");if(!isset(fontColor)||fontColor===""){fontColor=ssu.getValue(selector,"color","config")}var fontSize=ssu.getValue(selector,"fontSize","config");if(!isset(fontSize)||fontSize===""){fontSize=ssu.getValue("body","fontSize","config")}var fontFamily=ssu.getValue(selector,"fontFamily","config");if(!isset(fontFamily)||fontFamily===""){fontFamily=ssu.getValue("body","fontFamily","config")}var fontTextDecoration=ssu.getValue(selector,"textDecoration","config");var fontWeight=ssu.getValue(selector,"fontWeight","config");var fontStyle=ssu.getValue(selector,"fontStyle","config");var font={color:fontColor,size:fontSize,family:fontFamily,underline:fontTextDecoration.match(/underline/i)!==null,strike:fontTextDecoration.match(/line-through/i)!==null,bold:fontWeight.match(/bold/i)!==null,italic:fontStyle.match(/italic/i)!==null};var css=BG.view.FontPickerDialog.formatCss(font);ssu.updateRule("pre",css,"config",false)},toggleTabView:function(){var tab=document.getElementById("tab");var ul=tab.childNodes[0];var content=tab.childNodes[1];this.toggleUsesResize=true;if(ul.style.display=="none"){this._showTabView(tab,ul,content,true)}else{this._hideTabView(tab,ul,content,true)}},showTabView:function(){var tab=document.getElementById("tab");
var ul=tab.childNodes[0];var content=tab.childNodes[1];if(ul.style.display=="none"){this._showTabView(tab,ul,content,this.toggleUsesResize)}},toggleTabViewNoResize:function(){var tab=document.getElementById("tab");var ul=tab.childNodes[0];var content=tab.childNodes[1];this.toggleUsesResize=true;if(ul.style.display=="none"){this._showTabView(tab,ul,content,false)}else{this._hideTabView(tab,ul,content,false)}},_hideTabView:function(tab,ul,content,resize){ul.style.display="none";content.style.display="none";var oldWidth=tab.style.width;tab.oldWidth=oldWidth;tab.style.width="5px";if(resize){this.resizeHandler.updateElement("tab");this.resizeHandler.updateBoundingBoxes();this.resizeHandler.cleanLastDim();this.resizeHandler.handleResize()}},_showTabView:function(tab,ul,content,resize){ul.style.display="";content.style.display="";tab.style.width=tab.oldWidth;if(resize){this.resizeHandler.updateElement("tab");this.resizeHandler.updateBoundingBoxes();this.resizeHandler.cleanLastDim();this.resizeHandler.handleResize()}},isBuild:function(){return this.buildComplete},getTabView:function(){return this._tabView},generatePopupFor:function(target){var initialEl=document.getElementById(target);var ssu=BG.view.StyleSheetUtility.getInstance();var x=ssu.getValue("#"+target,"left","layout");var y=ssu.getValue("#"+target,"top","layout");var popup=new BG.view.Dialog(target+"Popup",{modal:false,fixedcenter:false,close:false,resize:false,minimize:true,maximize:false,zIndex:50});popup.element.style.top=y;popup.element.style.left=x;popup.show();initialEl.style.position="inherit";initialEl.style.top="0px";initialEl.style.left="0px";initialEl.style.margin="0px";popup.setBody(initialEl);popup.cfg.setProperty("draggable",false);popup.element.style.background="transparent";popup.header.style.background="transparent";document.getElementById(target+"Popup").style.background="transparent"},toggleEditMode:function(){Loader.getInstance().useMinJsCss=BG.view.UserInterfaceBuilder.LOAD_MIN;var _start=function(o){var strJson=o.responseText;var res;var userInterface;var resizeManager;var me=this;var data;try{res=eval("("+o.responseText+")")}catch(e){data=o.responseText;if(data.match(/<ERROR/)!==null){if(data.match(/message="Session ended"/)!==null){userInterface=BG.view.UserInterfaceBuilder.getInstance();resizeManager=BG.view.ResizeManager.getInstance();resizeManager.disable();resizeManager.unregisterAll();BG.edit.Engine.getInstance().unregisterAll();BG.application.Application.getInstance().resetActions();userInterface.showLoginPanel("error","ServerAuth.connectionError");return }}log.error(e);return }if(res.rc===0){if(this.editEngine.isInit){BG.edit.Engine.getInstance().toggle()}else{delete BG.edit.Engine;Loader.getInstance().loadDeps(BG.view.UserInterfaceBuilder.EDIT_DEPS,function(){BG.edit.Engine.getInstance().initialize();me.editEngine=BG.edit.Engine.getInstance()})}}else{BG.view.ErrorPanel.getInstance().show(_("Error.UnableToGetEdition.title"),[["title",{text:_("Error.UnableToGetEdition.msg")}],["para",{text:"ErrorCode : "+res.rc}],["para",{text:"ErrorMessage : "+res.status}]],true)}};var name=BG.action.PluginAction.PREFIX+"GET_RELEASE_TOKEN";var pa;if(!this.editEngine.isInit||!this.editEngine.isVisible){pa=new BG.action.PluginAction(name,name,"UiWebEditor.getToken",null,_start,this)}else{if(this.editEngine.isVisible){pa=new BG.action.PluginAction(name,name,"UiWebEditor.releaseToken",null,_start,this)}}pa.execute()},showLoginPanel:function(pType,msgKey,showInputs){var loc;if(pType=="error"){BG.view.LoginPanel.getInstance().error(_(msgKey),showInputs)}else{BG.view.LoginPanel.getInstance()}this.hasLoginPanel=true;BG.view.LoginPanel.getInstance().enableDialog()},disconnect:function(){var main=document.getElementById(BG.view.UserInterfaceBuilder.MAIN_CONTENT_ID);if(main){main.style.visibility="hidden";main.style.display=""}this.hideMenus();BG.application.ApplicationBuilder.LOST_SESSION.fire("lostSession");this.showLoginPanel();BG.view.Flash.getInstance().show("ServerAuth.disconnected")},showReconnectionPanel:function(force){if(this._disableReconnectionPanel){return }BG.application.ApplicationBuilder.LOST_SESSION.fire("lostSession");var parameters=BG.application.Application.getInstance().getParameters();var _showLoginWindow=parameters.getShowLoginWindow();var _showLoginWindowFromParam=parameters.getRealShowLoginWindow();var canReconnect;if(_showLoginWindow&&!_showLoginWindowFromParam){canReconnect=false}else{canReconnect=true}var user=BG.application.Application.getInstance().getUser();var paramUser=parameters.getDefaultLoginUserAndPass();var anonymousConnection=false;if(user===null){canReconnect=false}else{if(user.getUserName()==paramUser.user){canReconnect=canReconnect&&true;anonymousConnection=true}}canReconnect=canReconnect||!!force;var isIe6=YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7;var updateLocationIE6=function(showloginwindow){var loc=window.location.href;loc=loc.replace(/#.*/,"");if(showloginwindow){if(window.location.search!==""){loc=loc+"&"}else{loc=loc+"?"
}loc=loc.replace(/showloginwindow&?/i,"");loc=loc+"showloginwindow"}window.location=loc};var applicationBuilder=BG.application.ApplicationBuilder.getInstance();var panel;if(canReconnect&&anonymousConnection){panel=BG.view.InfoPanel.getInstance();panel.show(_("ServerAuth.connectionError"),[["para",{text:_("ServerAuth.reconnectNow")}]],false);window.setTimeout(function(){if(YAHOO.env.ua.ie>0&&YAHOO.env.ua.ie<7){updateLocationIE6(false)}else{applicationBuilder.reconnect();panel.handleClose()}},1500);return }if(!canReconnect){this.showLoginPanel("error","ServerAuth.connectionError",false);return }var autoConnectId=BG.util.Util.getOnTheFlyId();var reconnectId=BG.util.Util.getOnTheFlyId();var template;if(isIe6){template=[["para",{cssClass:"error",text:_("ServerAuth.connectionError")}],["para",{cssClass:"warning",children:[["text",{text:_("ServerAuth.refresh")}],["link",{name:autoConnectId,href:"#",text:_("ServerAuth.refreshLink")}]]}]]}else{template=[["para",{cssClass:"error",text:_("ServerAuth.connectionError")}],["para",{cssClass:"warning",children:[["text",{text:_("ServerAuth.autoConnect")}],["link",{name:autoConnectId,href:"#",text:_("ServerAuth.autoConnectLink")}]]}],["para",{cssClass:"warning",children:[["text",{text:_("ServerAuth.reConnect")}],["link",{name:reconnectId,href:"#",text:_("ServerAuth.reConnectLink")}]]}]]}panel=BG.view.ErrorPanel.getInstance();panel.show(_("ServerAuth.connectionErrorTitle"),template,false);if(isIe6){YAHOO.util.Event.addListener(autoConnectId,"click",function(){updateLocationIE6(false)})}else{YAHOO.util.Event.addListener(autoConnectId,"click",function(){panel.handleClose();applicationBuilder.reconnect()});YAHOO.util.Event.addListener(reconnectId,"click",function(){panel.handleClose();BG.view.UserInterfaceBuilder.getInstance().showLoginPanel()})}},disableTemporaryUnload:function(){this.unloadDisabled=true},handleClose:function(){if(this.unloadDisabled){this.unloadDisabled=false;return }var mUser=BG.application.Application.getInstance().getUser();if(isset(mUser)){this._disableReconnectionPanel=true;BG.application.Application.getInstance().disconnect()}}}})();
BG.ext.Dialogs={};BG.ext.Dialogs.showLoginPanel=function(){BG.view.UserInterfaceBuilder.getInstance().showLoginPanel()};BG.ext.Dialogs.TabView={};BG.ext.Dialogs.TabView.addTab=function(N,A,H,F,C){var G=document.getElementById("main");if(!isset(G)){return null}var L=BG.view.UserInterfaceBuilder.getInstance();var E={label:N};if(H=="HTML"){E.content=A}var B=new YAHOO.widget.Tab(E);var D=isset(C)?C:null;var K=L.addTab(B,N,D);var J=document.getElementById(K);var M;var I;if(H=="URL"){M={success:function(P){var O=/<body[^>]*>(.*)<\/body/gim;O.exec(P.responseText.replace(/[\n\r]/g,""));BG.util.Util.toHtmlEntity(J.innerHTML=RegExp.$1);if(F){YAHOO.util.Event.onContentReady(K,F,J)}},failure:function(O){}};I=YAHOO.util.Connect._default_post_header;YAHOO.util.Connect.asyncRequest("POST",A,M,null)}else{if(F){YAHOO.util.Event.onContentReady(K,F,J)}}return K};BG.ext.Dialogs.TabView.addTabFromHtml=function(C,A,B,D){BG.ext.Dialogs.TabView.addTab(C,A,"HTML",B,D)};BG.ext.Dialogs.TabView.addTabFromUrl=function(C,A,B,D){BG.ext.Dialogs.TabView.addTab(C,A,"URL",B,D)};BG.ext.Dialogs.TabView.setFocusOn=function(A){BG.view.UserInterfaceBuilder.getInstance().setActivePanel(A)};
(function(){var A=null;BG.view.ResizeManager=function(){if(BG.view.ResizeManager.caller!==BG.view.ResizeManager.getInstance){throw new Error("Unable to create ResizeManager, use getInstance instead")}this.init()};BG.view.ResizeManager.getInstance=function(){if(A===null){A=new BG.view.ResizeManager()}return A};BG.view.ResizeManager.FindElts=0;BG.view.ResizeManager.EXIT_LOOP=50;BG.view.ResizeManager.PositionMode={FIXED:0,FLOAT:1};BG.view.ResizeManager.Maximization={NONE:0,HORIZONTAL:1,VERTICAL:2,BOTH:3};BG.view.ResizeManager.MARGIN=0;BG.view.ResizeManager.prototype={elements:[],linkedElements:{},layoutInitialized:false,initialViewportDimensions:{height:0,width:0},lastViewportDimensions:{height:0,width:0},columns:null,rows:null,tol:10,layout:null,timer:null,isEnabled:false,init:function(){YAHOO.util.Event.addListener(window,"resize",BG.util.Util.bind(this.handleResize,this))},unregister:function(D){var E=[];var C;var B=this.elements.length;for(C=0;C<B;C++){if(this.elements[C].id==D){this.elements.splice(C,1);break}}},unregisterAll:function(){var C;var B=this.elements.length;for(C=0;C<B;C++){delete this.elements[C]}this.elements=[];this.linkedElements={}},register:function(E,B,C,F,G,I,H,D){this.elements.push({id:E,ident:B,type:C,resizeMode:F,positionMode:G,maximized:BG.view.ResizeManager.Maximization.NONE,top:0,left:0,bottom:0,right:0,width:0,height:0,fromTopLeftCorner:0,topAlign:[],leftAlign:[],bottomAlign:[],rightAlign:[],hasMargins:BG.util.Util.isValidVariable(I)?I:true,scaleFactor:BG.util.Util.isValidVariable(H)?H:1,resizeCallback:is.set(D)?D:null})},showConflicts:function(){var G,F;var E=this.elements.length;var I;var H;var C;var K;var J;var L;var D=[];for(G=0;G<E;G++){I=this.elements[G];for(F=1;F<E;F++){H=this.elements[F];if(H.id==I.id){continue}C=H.top>I.top&&H.top<I.bottom;K=H.bottom>I.top&&H.bottom<I.bottom;J=H.left>I.left&&H.left<I.right;L=H.right>I.left&&H.right<I.right;if((C&&(J||L))||(K&&(J||L))){D.push({element1:I,element2:H,topIn:C,bottomIn:K,leftIn:J,rightIn:L})}}}var B=[];log.info("-------------> CONFLICTS");for(G=0;G<D.length;G++){B.push(D[G].element1.ident+" <=> "+D[G].element2.ident);log.info(D[G])}log.info(B.join(" - "));log.info("<------------- END CONFLICTS")},registerOnTopLayer:function(E,C,D,B,F){if(!(B in this.linkedElements)){this.linkedElements[B]=[]}this.linkedElements[B].push({id:E,ident:C,type:D,linkedCorner:F})},getRegistredElements:function(B){if(!(B in this.linkedElements)){this.linkedElements[B]=[]}return this.linkedElements[B]},updateElement:function(E){var D=null;for(var C=0;C<this.elements.length;C++){if(this.elements[C].id==E){D=this.elements[C];break}}if(D===null){return }var B=BG.util.Layout.getOutterBoundingBox(D.container,true);D.left=B.left;D.top=B.top;D.width=B.width;D.height=B.height;D.right=B.right;D.bottom=B.bottom},updateBoundingBoxes:function(){if(this.layout===null){return }this.layout.forceUpdateBoundingBox()},updateResizeMode:function(B,D){for(var C=0;C<this.elements.length;C++){if(this.elements[C].ident==B){this.elements[C].resizeMode=D;break}}},compareWithTol:function(D,C){var B=D-C;B=B>0?B:-B;return B<=this.tol},isVerticalyInWithTol:function(C,B){return(B.top>C.top-this.tol)&&(B.bottom<C.bottom+this.tol)},isHorizontalyInWithTol:function(C,B){return(B.left>C.left-this.tol)&&(B.right<C.right+this.tol)},findElementByIdInArray:function(D,E){var C;var B=D.length;for(C=0;C<B;C++){if(D[C].id===E){return D[C]}}return null},findElementsInRectWithTol:function(J,B){var K=[];var G;var E=B.length;var H;var C={};for(G=0;G<E;G++){H=B[G];if(H.top>=J.top-this.tol&&H.left>=J.left-this.tol&&H.right<=J.right+this.tol&&H.bottom<=J.bottom+this.tol){K.push(H);C[H.id]=1}}E=K.length;var F;var I;var D;for(G=0;G<E;G++){H=K[G];D=[];for(F=0;F<H.topAlign.length;F++){I=H.topAlign[F];if(I.id in C){D.push(I)}}H.topAlign=D;D=[];for(F=0;F<H.leftAlign.length;F++){I=H.leftAlign[F];if(I.id in C){D.push(I)}}H.leftAlign=D;D=[];for(F=0;F<H.rightAlign.length;F++){I=H.rightAlign[F];if(I.id in C){D.push(I)}}H.rightAlign=D;D=[];for(F=0;F<H.bottomAlign.length;F++){I=H.bottomAlign[F];if(I.id in C){D.push(I)}}H.bottomAlign=D}return K},enable:function(){log.info("/!\\ Resize Manager Enabled");this.isEnabled=true},disable:function(){this.lastViewportDimensions.height=0;this.lastViewportDimensions.width=0;this.isEnabled=false;log.info("/!\\ Resize manager Disabled")},clearLastDim:function(){this.lastViewportDimensions.height=0;this.lastViewportDimensions.width=0},handleFakeResize:function(){log.info("--> HandleFakeResize <--");if(this.elements.length===0){return }var D;var B=this.elements.length;var C;var E;for(D=0;D<B;D++){C=this.elements[D];C.container=document.getElementById(C.id);E=BG.util.Layout.getOutterBoundingBox(C.id);BG.view.Resize.execute(C,{top:E.top,left:E.left,width:E.width,height:E.height},true)}},handleResize:function(){log.info("--> HandleResize <--");if(!this.isEnabled){return }if(this.elements.length===0){return }if(this.layout===null){return }if(this.timer!==null){clearTimeout(this.timer)
}this.timer=setTimeout(BG.util.Util.bind(this.doHandleResize,this),200)},doHandleResize:function(){log.info("--> doHandleResize <--");this.timer=null;var C=YAHOO.util.Dom.getViewportHeight();var B=YAHOO.util.Dom.getViewportWidth();if(this.lastViewportDimensions.height==C&&this.lastViewportDimensions.width==B){return }BG.application.ApplicationBuilder.ON_BEFORE_RESIZED.fire("beforeResized");this.lastViewportDimensions.height=C;this.lastViewportDimensions.width=B;var D=C;var E=B;log.info("height: "+C+" - width: "+B);this.layout.setDimensions(C,B);BG.application.ApplicationBuilder.ON_UI_RESIZED.fire("resized");log.info("FIRE resize event");BG.view.UserInterfaceBuilder.getInstance().setFirstResize()},cleanLastDim:function(){this.lastViewportDimensions={height:0,width:0}},readLayout:function(){var a;var E;var T;var N;var U=this.elements.length;var V=0;var F=0;var Z;var Y;var S;var M;var D;var b;var H;var I;var J;for(a=0;a<U;a++){E=this.elements[a];T=E.id;N=document.getElementById(T);if(!N){throw new Error("There is not element with the id "+T+" in the DOM. There may be a problem with your parameter.xml and index.html files.")}E.container=N;J=BG.util.Layout.getOutterBoundingBox(E.container);Z=J.left;Y=J.top;S=J.width;M=J.height;b=J.right;H=J.bottom;log.info(T+" X:"+Z+" Y:"+Y+" width:"+S+" height:"+M+" right:"+b+" bottom:"+H);V=b>V?b:V;F=H>F?H:F;I=Y*Y+Z*Z;E.top=Y;E.left=Z;E.bottom=H;E.right=b;E.width=S;E.height=M;E.fromTopLeftCorner=I}this.initialViewportDimensions={height:F,width:V};log.info("viewport : {height: "+this.initialViewportDimensions.height+"px, width: "+this.initialViewportDimensions.width+"px}");var K;var f;var X;for(a=0;a<U;a++){E=this.elements[a];K=BG.view.ResizeManager.Maximization.NONE;N=E.container;if(E.width>0.98*V||(E.container.style.width=="100%"&&E.width>0.98*document.body.offsetWidth)){K+=BG.view.ResizeManager.Maximization.HORIZONTAL}if(E.height>0.98*F||(E.container.style.width=="100%"&&E.height>0.98*document.body.offsetHeight)){K+=BG.view.ResizeManager.Maximization.VERTICAL}E.maximized=K;for(X=a+1;X<U;X++){f=this.elements[X];if(this.compareWithTol(E.top,f.top)){E.topAlign.push(f);f.topAlign.push(E)}if(this.compareWithTol(E.left,f.left)){E.leftAlign.push(f);f.leftAlign.push(E)}if(this.compareWithTol(E.bottom,f.bottom)){E.bottomAlign.push(f);f.bottomAlign.push(E)}if(this.compareWithTol(E.right,f.right)){E.rightAlign.push(f);f.rightAlign.push(E)}}}var d=function(i,h){if(i.left==h.left){return 0}if(i.left>h.left){return 1}return -1};var g=function(i,h){if(i.top==h.top){return 0}if(i.top>h.top){return 1}return -1};var P=function(i,h){if(i.right==h.right){return 0}if(i.right<h.right){return 1}return -1};var B=function(i,h){if(i.bottom==h.bottom){return 0}if(i.bottom<h.bottom){return 1}return -1};var Q=[];for(a=0;a<U;a++){E=this.elements[a];E.topAlign.sort(P);E.rightAlign.sort(B);E.bottomAlign.sort(d);E.leftAlign.sort(g)}var G=function(h,k,q,s){if(BG.view.ResizeManager.FindElts>=BG.view.ResizeManager.EXIT_LOOP){return null}BG.view.ResizeManager.FindElts+=1;log.info("findRowElts");log.debug("elements :");log.debug(h);log.debug("baseRowItem :");log.debug(k);log.debug("skipIdx :");log.debug(q);log.debug("baseRowIds :");log.debug(s);var t=[k];var n={};n[k.id]=1;var p;var m=h.length;var o;var j,r;for(p=q||0;p<m;p++){o=h[p];if(o.id in n){continue}if(o.top>=k.top&&o.top<k.bottom){j=G(h,o,p+1,n);if(j===null){return null}t=t.concat(j.elements);for(r in j.ids){n[r]=1}}else{break}}return{elements:t,ids:n}};var e=function(h,k,r,m){if(BG.view.ResizeManager.FindElts>=BG.view.ResizeManager.EXIT_LOOP){return null}BG.view.ResizeManager.FindElts+=1;log.info("findColElts");log.debug("elements :");log.debug(h);log.debug("baseColItem :");log.debug(k);log.debug("skipIdx :");log.debug(r);log.debug("baseColIds :");log.debug(m);var n=[k];var s={};s[k.id]=1;var q;var o=h.length;var p;var j,t;for(q=r||0;q<o;q++){p=h[q];if(p.id in s){continue}if(p.left>=k.left&&p.left<k.right){j=e(h,p,q+1,s);if(j===null){return null}n=n.concat(j.elements);for(t in j.ids){s[t]=1}}else{break}}return{elements:n,ids:s}};var R=function(x){if(BG.view.ResizeManager.FindElts>=BG.view.ResizeManager.EXIT_LOOP){return null}log.info("inside findColumns");log.debug(x);var h=x;var q;var n=[];var o=h.length;if(o==1){n.push(x);return n}var r;var u=h[0].top;var j=h[0].bottom;for(r=1;r<o;r++){q=h[r];if(q.top<u){u=q.top}if(q.bottom>j){j=q.bottom}}var w=j-u;h.sort(d);var t={};var m;var s=[];var k,v,p;log.info("findColumns");for(r=0;r<o;r++){q=h[r];if(q.id in t){continue}if(q.maximized==BG.view.ResizeManager.Maximization.VERTICAL||q.height>0.98*w){m=[q];t[q.id]=1}else{k={};k[q.id]=1;v=e(h,q,r+1,k);if(v===null){return null}m=v.elements;p=v.ids;for(T in p){t[T]=1}}m=C(m);if(m===null){return null}s.push(m)}return s};var C=function(h,s){if(BG.view.ResizeManager.FindElts>=BG.view.ResizeManager.EXIT_LOOP){return null}var j;var n=h.length;if(n===0){return[]}var m,t,p;if(!BG.util.Util.isValidVariable(s)){m=h[0].left;t=h[0].right;for(p=1;p<n;p++){E=h[p];if(E.left<m){m=E.left
}if(E.right>t){t=E.right}}j=t-m}else{j=s}var r={};var v;var q=[];var u,k,o;h.sort(g);log.info("findRows : ");for(p=0;p<n;p++){E=h[p];if(E.id in r){continue}if(E.maximized==BG.view.ResizeManager.Maximization.HORIZONTAL||E.width>0.98*j){v=[E];r[E.id]=1}else{u={};u[E.id]=1;k=G(h,E,p+1,u);if(k===null){return null}v=k.elements;o=k.ids;for(T in o){r[T]=1}}v=R(v);if(v===null){return null}q.push(v)}return q};var L={width:V,height:F};var O=this.elements;var c;BG.view.ResizeManager.FindElts=0;c=C(O,L.width);if(BG.view.ResizeManager.FindElts>=BG.view.ResizeManager.EXIT_LOOP){if(BG.edit.Engine.getInstance().isInit){BG.view.InfoPanel.getInstance().show(_("Error.UnableToReadLayout.title"),[["title",{text:_("Error.UnableToReadLayout.msg")}],["para",{text:_("Error.UnableToReadLayout.content")}],["para",{text:_("Error.UnableToReadLayout.show")}]],true)}this.layout=null;BG.view.UserInterfaceBuilder.getInstance().setFirstResize();log.error("Resize fails");BG.application.ApplicationBuilder.ON_UI_RESIZED_ERR.fire("resize_error");return }var W=new BG.view.GridLayout();W.addRows(c);log.info(W);this.layout=W}}})();
BG.model.xmlload.XMLStructure=function(){BG.model.xmlload.XMLStructure.LOOP_LIMIT=1000;BG.model.xmlload.XMLStructure.S_STATISTIC_ROOT_NODE="statistique";BG.model.xmlload.XMLStructure.S_IMAGE_ROOT_NODE="carte";BG.model.xmlload.XMLStructure.S_IMAGE=1;BG.model.xmlload.XMLStructure.S_WIDTH=2;BG.model.xmlload.XMLStructure.S_HEIGHT=3;BG.model.xmlload.XMLStructure.S_VALUES_ROOT_NODE="valeurs";BG.model.xmlload.XMLStructure.S_LINE_ROOT_NODE="line";BG.model.xmlload.XMLStructure.S_LINE_LABEL_ATT="label";BG.model.xmlload.XMLStructure.S_LINE_VALUE=1;BG.model.xmlload.XMLStructure.LEGENDE_ROOT_NODE="LEGENDE";BG.model.xmlload.XMLStructure.L_TYPE=1;BG.model.xmlload.XMLStructure.L_STYLE=2;BG.model.xmlload.XMLStructure.L_ITEMANALYSE=3;BG.model.xmlload.XMLStructure.L_ITEM_ROOT_NODE="ITEM";BG.model.xmlload.XMLStructure.L_ITEMANALYSE_ROOT_NODE="ITEMANALYSE";BG.model.xmlload.XMLStructure.L_STYLEANALYSE=0;BG.model.xmlload.XMLStructure.L_STYLE_ATT_ICON_PATH="pathIcon";BG.model.xmlload.XMLStructure.L_STYLE_ATT_VISIBLE="iVisible";BG.model.xmlload.XMLStructure.L_STYLE_ATT_VISIBLE_AT_SCALE="iVisibleAtScale";BG.model.xmlload.XMLStructure.L_STYLE_ATT_VISIBLE_LEGEND="iVisibleLegende";BG.model.xmlload.XMLStructure.L_STYLE_ATT_VISIBLE_DETAIL="iDetailVisibleLegende";BG.model.xmlload.XMLStructure.L_STYLE_ZOOM_MIN="dblZoomMin";BG.model.xmlload.XMLStructure.L_STYLE_ZOOM_MAX="dblZoomMax";BG.model.xmlload.XMLStructure.L_GROUP_ROOT_NODE="GROUPE";BG.model.xmlload.XMLStructure.L_GIF="gif";BG.model.xmlload.XMLStructure.L_IMAGE_NODE="IMAGE";BG.model.xmlload.XMLStructure.F_FILTRES_ROOT_NODE="FILTRES";BG.model.xmlload.XMLStructure.F_FUNCTION=1;BG.model.xmlload.XMLStructure.F_USER=2;BG.model.xmlload.XMLStructure.F_GROUP=3;BG.model.xmlload.XMLStructure.F_USER_ID=4;BG.model.xmlload.XMLStructure.F_ITEM_ROOT_NODE="FILTER";BG.model.xmlload.XMLStructure.F_NAME=1;BG.model.xmlload.XMLStructure.F_OPERATOR=2;BG.model.xmlload.XMLStructure.F_TOLERANCE=3;BG.model.xmlload.XMLStructure.F_ASKTOL=4;BG.model.xmlload.XMLStructure.F_CHOIX=5;BG.model.xmlload.XMLStructure.F_VALEUR_ROOT_NODE="VALEUR";BG.model.xmlload.XMLStructure.F_CURRENTVALUE_NODE="CURRENTVALUE";BG.model.xmlload.XMLStructure.F_NINTERFILTER_NODE="NINTERFILTER";BG.model.xmlload.XMLStructure.F_INTERACTIVE_NODE="INTERACTIVE";BG.model.xmlload.XMLStructure.F_PREVFILTER_NODE="PREVFILTER";BG.model.xmlload.XMLStructure.F_USE_SELECTION_NODE="USE_SELECTION";BG.model.xmlload.XMLStructure.M_MENU_ROOT_NODE="MENU";BG.model.xmlload.XMLStructure.M_TITRE=1;BG.model.xmlload.XMLStructure.M_IMAGE=2;BG.model.xmlload.XMLStructure.M_ISPLUGIN=3;BG.model.xmlload.XMLStructure.M_ITEM_ROOT_NODE="ITEM";BG.model.xmlload.XMLStructure.M_INTERACTIVE_NODE="INTERACTIVE";BG.model.xmlload.XMLStructure.M_NAME_NODE="NAME";BG.model.xmlload.XMLStructure.M_PARAMETRE1_NODE="PARAMETRE1";BG.model.xmlload.XMLStructure.M_PARAMETRE2_NODE="PARAMETRE2";BG.model.xmlload.XMLStructure.M_CHAMP1_NODE="";BG.model.xmlload.XMLStructure.M_CHAMP2_NODE="CHAMP2";BG.model.xmlload.XMLStructure.M_TYPE_NODE="TYPE";BG.model.xmlload.XMLStructure.M_TYPEFONCTION_NODE="TYPEFONCTION";BG.model.xmlload.XMLStructure.M_HELP_NODE="HELP";BG.model.xmlload.XMLStructure.MAP_ROOT_NODE="CARTE";BG.model.xmlload.XMLStructure.MAP_SRC=1;BG.model.xmlload.XMLStructure.MAP_HEIGHT=2;BG.model.xmlload.XMLStructure.MAP_WIDTH=3;BG.model.xmlload.XMLStructure.MAP_TOP=4;BG.model.xmlload.XMLStructure.MAP_LEFT=5;BG.model.xmlload.XMLStructure.MAP_BOTTOM=6;BG.model.xmlload.XMLStructure.MAP_RIGHT=7;BG.model.xmlload.XMLStructure.MAP_ECHELLE=8;BG.model.xmlload.XMLStructure.MAP_ECHELLE_TEXT=9;BG.model.xmlload.XMLStructure.MAP_ECHELLE_IMAGE=10;BG.model.xmlload.XMLStructure.MAP_ECHELLE_WIDTH=11;BG.model.xmlload.XMLStructure.MAP_ECHELLE_SCALEVALUE=12;BG.model.xmlload.XMLStructure.T_TABLE_ROOT_NODE="TABLEAU";BG.model.xmlload.XMLStructure.T_TITLE=1;BG.model.xmlload.XMLStructure.T_TITLE_LINE_ROOT_NODE="LISTELIGNE";BG.model.xmlload.XMLStructure.T_TITLE_LINE_VALUE_ROOT_NODE="VALEUR";BG.model.xmlload.XMLStructure.T_TITLE_LINE_VALUE_ATT="name";BG.model.xmlload.XMLStructure.T_TITLE_COLUMN_ROOT_NODE="LISTECOLONNE";BG.model.xmlload.XMLStructure.T_TITLE_COLUMN_VALUE_ROOT_NODE="VALEUR";BG.model.xmlload.XMLStructure.T_TITLE_COLUMN_VALUE_ATT="name";BG.model.xmlload.XMLStructure.T_TITLE_DATA_ROOT_NODE="DATA";BG.model.xmlload.XMLStructure.T_TITLE_DATA_LINE_ROOT_NODE="LIGNE";BG.model.xmlload.XMLStructure.T_TITLE_DATA_LINE_COLUMNS_ROOT_NODE="COLONNE";BG.model.xmlload.XMLStructure.T_TITLE_DATA_LINE_COLUMNS_VALUE_ROOT_NODE="VAL";BG.model.xmlload.XMLStructure.T_FILE_ROOT_NODE="FICHIER";BG.model.xmlload.XMLStructure.T_FILE_LINK=1;BG.model.xmlload.XMLStructure.T_FILE_LINK_ATT="src";BG.model.xmlload.XMLStructure.I_INFO_ROOT_NODE="INFO_SHEET";BG.model.xmlload.XMLStructure.I_TITLE=1;BG.model.xmlload.XMLStructure.I_MAP_NODE=2;BG.model.xmlload.XMLStructure.I_SRC=3;BG.model.xmlload.XMLStructure.I_STATUS_ROOT_NODE="STATUS_LAST_UPDATE";BG.model.xmlload.XMLStructure.I_DATA_NODE_OR_STATUS=4;BG.model.xmlload.XMLStructure.I_CAN_UPDATE=5;BG.model.xmlload.XMLStructure.I_ALPHAJ=6;
BG.model.xmlload.XMLStructure.I_EXPORT_OR_IDENT=7;BG.model.xmlload.XMLStructure.I_INDENT_IF_EXPORT=8;BG.model.xmlload.XMLStructure.I_EXPORT_NODE="MS_WORD_EXPORT";BG.model.xmlload.XMLStructure.I_ITEM_ROOT_NODE="ITEM";BG.model.xmlload.XMLStructure.I_LABEL_ITEM=1;BG.model.xmlload.XMLStructure.I_TABLE_FROM=2;BG.model.xmlload.XMLStructure.I_ITEM_VALUES_NODE=3;BG.model.xmlload.XMLStructure.I_ITEM_VAL_NODE="VAL";BG.model.xmlload.XMLStructure.STATUS_ROOT_NODE="STATUS";BG.model.xmlload.XMLStructure.STATUS_CODE=1;BG.model.xmlload.XMLStructure.STATUS_TEXT=2};
BG.model.xmlload.XMLDataLoader=function(){this.init()};BG.model.xmlload.XMLDataLoader.prototype={data:null,init:function(){},load:function(G,H,B){var C,A;if(typeof (G)=="string"){C=new JKL.ParseXML(G);A=C.parse()}else{C=new JKL.ParseXML();A=C.parseXML(G)}var I=false;var D=BG.view.UserInterfaceBuilder.getInstance();var F=BG.view.ResizeManager.getInstance();var E=isset(B)?!B:true;if(!BG.util.Util.isValidVariable(A)){if(E){BG.view.ErrorPanel.getInstance().show(_("DataParseError.title"),[["title",{text:_("DataParseError.msg")}]],true)}I=true}else{if("parsererror" in A){if(E){BG.view.ErrorPanel.getInstance().show(_("DataParseError.title"),[["title",{text:_("DataParseError.msg")}],["para",{text:A.parsererror["#text"]}],["para",{text:A.parsererror.sourcetext}]],true)}I=true}else{if("ERROR" in A){if(parseInt(A.ERROR.code,10)==66){F.disable();F.unregisterAll();BG.edit.Engine.getInstance().unregisterAll();BG.application.Application.getInstance().resetActions();D.showReconnectionPanel()}else{if(parseInt(A.ERROR.code,10)=="67"){BG.view.Flash.getInstance().show("ServerAuth.sessionOccupied")}else{if(E){BG.view.ErrorPanel.getInstance().show(_("ServerError.title"),[["title",{text:_("ServerError.msg")}],["para",{text:A.ERROR.code}],["para",{text:A.ERROR.message}]],true)}}}I=true}}}if(I){return false}this.data=A;if(!BG.util.Util.isValidVariable(H)){H=true}if(H){this.buildObject(this.data,I)}return true},buildObject:function(C,B,A){},compareNode:function(B,A){if(B===undefined||B===""){return false}return(B.toString().substring(B.length-(A.length+1))=="/"+A)}};
BG.model.XMLParameterLoader=function(A){this.init(A)};BG.model.XMLParameterLoader.prototype={init:function(B){var A=B;this.load=function(){var BF;var h;var A2;var Ah;var A8;var BE;var N;var v;var AR;var Au;var c;var k;var Ak;var BI;var BA;var BJ;var AP;var As;var AY;var d;var AV;var Y;var AS;var y;var a;var C;var j;var AE;var AM;var AW;var BD;var Ar;var AA;var Ax;var Al;var AO;var AK;var A1;var Aa;BF=new JKL.ParseXML("../../../"+A+"?"+BG.util.Util.getGuid());h=BF.parse();if("parsererror" in h){Ax=["Parse error !",h.parsererror["#text"],h.parsererror.sourcetext];Al=Ax.join("\n");alert(Al)}A2=new BG.model.ParameterModel();Ah=h["web-parameter-list"];A8=null;A8=Ah.general;A2.setServerVersion(A8.serverVersion);A2.setPort(A8.port);A2.setHost();A2.setCgi(A8.cgi);if("web-location" in A8){A2.setHttpWebLocation(A8["web-location"])}else{A2.setHttpWebLocation("")}if("disk-location" in A8){A2.setDiskLocation(A8["disk-location"])}A8=Ah["config-directory-list"].item;BE=isset(A8)?(isarray(A8)?A8.length:1):0;var f,S,AJ;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];f=v["#text"];S=v.label;AJ=v.selected=="true";A2.addConfigDirectory(f,S,AJ)}if("plugins" in Ah){A8=Ah.plugins.plugin;BE=isset(A8)?(isarray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AO=v["#text"];AK=v.active=="true";A1=v.hasWeb=="true";A2.addPlugin(AO,AK,A1)}}if("extensions" in Ah){A8=Ah.extensions.extension;BE=isset(A8)?(isarray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AO=v["#text"];AK=v.active=="true";A2.addExtension(AO,AK,true)}}BF=new JKL.ParseXML("./"+A+"?"+BG.util.Util.getGuid());h=BF.parse();if("parsererror" in h){Ax=["Parse error !"];Ax.push(h.parsererror["#text"]);Ax.push(h.parsererror.sourcetext);Al=Ax.join("\n");alert(Al)}Ah=h["web-parameter-list"];A8=Ah.general;A2.setConfigName(A8["config-name"]);A2.setTitle(A8.title);A2.setNbMaxResult(A8["nb-max-result"]);A2.setNbResultPerPage(A8["max-result-per-page"]);A2.setAutoOpenExportFile(A8["auto-open-export-file"]=="true");A2.setAutoCloseExportWindow(A8["auto-close-export-window"]=="true");A2.setCacheSize(parseInt(A8["cache-size"],10));A2.setAutoResize(A8["auto-resize"]=="true");A2.setZoomOnResults("zoom-on-results" in A8?A8["zoom-on-results"]=="true":true);A2.setOpenClickMap("open-click-map" in A8?A8["open-click-map"]=="true":false);var At="map-export-format" in A8?A8["map-export-format"].replace(/[^a-z0-9,]/gi,"").split(","):["A4","A3"];A2.setMapFormatExports(At);var Az="map-export-orientation" in A8?A8["map-export-orientation"].replace(/[^a-z0-9,]/gi,"").split(","):["portrait","landscape"];A2.setMapExportOrientation(Az);var e="map-export-user-scale" in A8?A8["map-export-user-scale"]=="true":true;A2.setMapExportUserScale(e);var AT;A8=Ah["language-list.item"];BE=isset(A8)?(isarray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AT=v["#text"];S=v.label;AJ=v.selected=="true";A2.addLanguage(AT,S,AJ)}var I,BB,O,z,W,An,AF,BC,X,AQ,Ab,H,A6;A8=Ah["menu-list"].menu;BE=isset(A8)?(isarray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];I=v.ident;C=v["default"]=="true";H=v.openOnClick=="true";A6="iframeFix" in v?v.iframeFix=="true":true;A2.addMenu(I,H,A6,C);if(!C){BB=v.entry;O=isset(BB)?(isarray(BB)?BB.length:1):0;for(z=0;z<O;z++){W=O==1?BB:BB[z];An=W.label;A2.addMenuEntry(I,z,An);AF=BB.item;BC=isset(AF)?(isarray(AF)?AF.length:1):0;for(j=0;j<BC;j++){AE=BC==1?AF:AF[j];X=AE["#text"];AQ=AE.label;Ab=AE.deleteFromDefaultMenu=="true";A2.addMenuEntryItem(I,z,X,AQ,Ab)}}}}var AZ,Av;if("feature-link-list" in Ah){A8=Ah["feature-link-list"];if(isset(A8)){if(typeof A8=="object"){if("feature-link" in A8){A8=A8["feature-link"];BE=isset(A8)?(BG.util.Util.isArray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.parentName;AQ=v.name;Av=v["#text"];A2.addFeatureLink(AZ,AQ,Av)}}}}}var A5,AG,Aq,AX,AN,A3,Ao,w,P,R,AD;if("feature-list" in Ah){A8=Ah["feature-list"];if("feature" in A8){A8=A8.feature;BE=BG.util.Util.isArray(A8)?A8.length:1;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];X=v.ident;A5=v.type;AG=v.event;Aq=v.object;AX=v.action;AN=v.param;A3=v.needmap=="true";Ao=v.image;w=v.idxIcon;P=v.tooltip;R=v.label;AD="selectable" in v?v.selectable=="true":false;A2.addFeature(X,A5,AG,Aq,AX,AN,A3,Ao,w,P,R,AD)}}}var l,BH,Ag;A8=Ah["map-list"].map;BE=isset(A8)?(BG.util.Util.isArray(A8)?A8.length:1):0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;l=v.type;BH=v.showScale=="true";Ag=v.isEditable=="true";AR=v.dimension;Au=AR.width;c=AR.height;A2.addMap(AZ,l,Au,c,BH,Ag)}A8=Ah["minimap-list"].minimap;BE=BG.util.Util.isArray(A8)?A8.length:BG.util.Util.isValidVariable(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;k=v.map;AR=v.dimension;Au=AR.width;c=AR.height;Ak=v.integratedInMap=="true";Aa="isMinimized" in v?v.isMinimized=="true":false;A2.addMiniMap(AZ,k,Au,c,Ak,Aa)}A8=Ah["legend-list"].legend;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;k=v.map;A2.addLegend(AZ,k)}var p,x,Ac,AI,AB,Q,A0,A4;A8=Ah["toolbar-list"].toolbar;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;
N++){v=BE==1?A8:A8[N];p=v.ident;x=v.image;A2.addToolBar(p,x);BB=v.item;O=isset(BB)?(isarray(BB)?BB.length:1):0;for(z=0;z<O;z++){W=O==1?BB:BB[z];Ac=W.action;AI=W.map;AB="";Q="";A0="";An="";A4=W.featureLinkIdent;A2.addToolBarItem(p,An,Ac,AB,A0,AI,A4,Q)}}A8=Ah["export-result-list"]["export-result"];BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;BI=v.use=="true";AM=v["#text"];A2.addExportResult(AZ,BI,AM)}A8=Ah["export-map-list"]["export-map"];BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;BI=v.use=="true";k=v.map;AM=v["#text"];A2.addExportMap(AZ,BI,k,AM)}var Af;A8=Ah["analysis-list"].analysis;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];C=v["default"]=="true";k=v.map;BA=v.chart;Af=v["#text"];A2.addAnalysis(Af,k,C)}var M,D,Ai;A8=Ah["statistic-list"].statistic;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];C=v["default"]=="true";BA=v.chart;M=v["#text"];D=v.hasExport=="true";Ai=v.showTable=="true";A2.addStatistic(M,BA,C,D,Ai)}A8=Ah["results-list"].result;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];C=v["default"]=="true";k=v.map;BJ=v["#text"];A2.addResult(BJ,k,C)}if("filters-list" in Ah){A8=Ah["filters-list"];if("filter" in A8){A8=A8.filter;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];C=v["default"]=="true";k=v.map;AP=v["#text"];A2.addFilter(AP,k,C)}}}A8=Ah["info-list"].info;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;var A9,Ae,Aw,Ap,Ay,m,Z,n,G,E,AL,q,V,s,t,U;var F,J,T;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AZ=v.ident;C=v["default"]=="true";m=v.print=="true";Z=v.showMap=="true";n=v.logo.use=="true";G=v.logo["#text"]||null;Ap="left";Ay="0 0 0 0";if("position" in v.logo){Ap=v.logo.position}if("margin" in v.logo){Ay=v.logo.margin}E=v.serverOutPut;AL=v.xsl||null;q=v.xslUpdate||null;U=v.closeAfterEdit=="true";V=null;if(Z){Au=v["map-width"];c=v["map-height"];if(BG.util.Util.isValidVariable(Au)&&BG.util.Util.isValidVariable(c)){V=new BG.util.Dimension(parseInt(Au,10),parseInt(c,10))}}A9=null;if("sheet-width" in v&&"sheet-height" in v){Aw=v["sheet-width"];Ae=v["sheet-height"];A9=new BG.util.Dimension(parseInt(Aw,10),parseInt(Ae,10))}s=v["export-pdf"].use=="true";t=v["export-pdf"]["#text"];F="map-layout" in v?parseInt(v["map-layout"],10):1;J="data-table" in v?parseInt(v["data-table"],10):1;T="data-join" in v?parseInt(v["data-join"],10):1;A2.addInfo(AZ,C,m,Z,n,G,Ap,Ay,s,t,V,E,AL,q,A9,U,false,F,J,T)}A8=Ah["authentication-list"];A2.setShowLoginWindow(A8.showLoginWindow=="true");var Aj=A8.defaultUser;var A7=A8.defaultPassword;A2.setDefaultLoginUserAndPass(Aj,A7);A8=Ah["authentication-list"].authentication;BE=BG.util.Util.isArray(A8)?A8.length:isset(A8)?1:0;for(N=0;N<BE;N++){v=BE==1?A8:A8[N];AM=v.type;AJ=v.selected=="true";S=v["#text"];A2.addAuthentType(AM,S,AJ)}A8=Ah.copyright;AZ=A8.ident;var AC=A8.use=="true";var K=A8["#text"];A2.setCopyRight(AZ,K,AC);A8=Ah.help;AZ=A8.ident;var Ad=A8.use=="true";AM=A8.type;var b=A8["#text"];A2.setHelp(AZ,Ad,AM,b);var AH;var L;var Am;var r;var u;var AU;if("tab-view-list" in Ah){A8=Ah["tab-view-list"];if("tab-view" in A8){v=A8["tab-view"];AU=isarray(v)?v.length:1;for(AH=0;AH<AU;AH++){L=AU==1?v:v[AH];if(!("tab" in L)){continue}As=L.tab;AY=isarray(As)?As.length:1;for(N=0;N<AY;N++){d=AY==1?As:As[N];Am=d.target;r=d.label;u=d["#text"];A2.addTab(u,Am,r)}}}}if("personal-colors" in Ah){A8=Ah["personal-colors"];if(typeof A8!="string"){if("color" in A8){As=A8.color;if(isset(As)){AY=isarray(As)?As.length:1;for(N=0;N<As.length;N++){d=AY==1?As:As[N];A2.addPersonalColor(d)}}}}}A8=Ah["html-target-id"];var o;v=A8["menu-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;if(BG.util.Util.isValidVariable(As)){AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.HORIZONTAL;o="fill" in d?d.fill=="true":true;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addMenuTarget(Y,AS,AV,y,o,AW,BD,Ar,AA)}}}v=A8["feature-link-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;if(BG.util.Util.isValidVariable(As)){AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;A2.addFeatureTarget(Y,AS,AV,y)}}}v=A8["map-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;
BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addMapTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["minimap-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.NONE;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addMiniMapTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["legend-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addLegendTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["toolbar-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.HORIZONTAL;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addToolbarTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["filter-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];A2.setDefaultFilterTarget(a);As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addFilterTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["result-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];A2.setDefaultResultTarget(a);As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addResultTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["statistic-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];As=v.item;A2.setDefaultStatTarget(a);AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addStatTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["table-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];A2.setDefaultTableTarget(a);As=v.item;AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addTableTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["info-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];As=v.item;A2.setDefaultInfoTarget(a);AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addInfoTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["info-export-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];As=v.item;A2.setDefaultInfoExportTarget(a);AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addExportInfoTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["tab-view-target"];
if(BG.util.Util.isValidVariable(v)){a=v["default"];As=v.item;A2.setDefaultTabViewTarget(a);AY=BG.util.Util.isArray(As)?As.length:isset(As)?1:0;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.VERTICAL;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addTabViewTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}v=A8["copyright-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];y="resizeMode" in v?BG.view.ResizeMode.fromString(v.resizeMode):BG.view.ResizeMode.HORIZONTAL;A2.setDefaultCopyRightTarget(a,y)}var g;v=A8["title-target"];if(BG.util.Util.isValidVariable(v)){a=v["default"];y="resizeMode" in v?BG.view.ResizeMode.fromString(v.resizeMode):BG.view.ResizeMode.HORIZONTAL;g=("visible" in v)?(v.visible=="true"):true;A2.setDefaultTitleTarget(a,y,g)}v=A8["horiz-spacer-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;if(BG.util.Util.isValidVariable(As)){AY=BG.util.Util.isArray(As)?As.length:1;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];A2.addHorizontalSpacerTarget(Y,AS,AV)}}}v=A8["vert-spacer-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;if(BG.util.Util.isValidVariable(As)){AY=BG.util.Util.isArray(As)?As.length:1;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];A2.addVerticalSpacerTarget(Y,AS,AV)}}}v=A8["plugins-target"];if(BG.util.Util.isValidVariable(v)){As=v.item;if(BG.util.Util.isValidVariable(As)){AY=BG.util.Util.isArray(As)?As.length:1;for(N=0;N<AY;N++){d=AY==1?As:As[N];AV=d["class"];Y=d.ident;AS=d["#text"];y="resizeMode" in d?BG.view.ResizeMode.fromString(d.resizeMode):BG.view.ResizeMode.BOTH;AW="onTopLayer" in d?d.onTopLayer=="true":false;BD=AW?("linkedTo" in d?d.linkedTo:null):null;Ar=AW?("linkedOn" in d?d.linkedOn:null):null;AA="asPopup" in d?d.asPopup=="true":false;A2.addPluginTarget(Y,AS,AV,y,AW,BD,Ar,AA)}}}return A2}}};
BG.model.xmlload.XMLPluginParameterLoader=function(A){this.init(A)};BG.model.xmlload.XMLPluginParameterLoader.prototype={pluginName:null,init:function(A){assertTypeOf(A,"string","Plugin name must be a string");assertNotStrictEqual(A,"","Plugin name can't be an empty string");this.load=function(){var L=new BG.model.PluginParameter(A);var E=BG.application.Application.getInstance().getParameters().getPlugin(A);var M="plugins";if(E!==null){if(E.isExt){M="extensions"}}var C="../../../"+M+"/"+A+"/parameter.xml?"+BG.util.Util.getOnTheFlyId();var H=new JKL.ParseXML(C);var G=H.parse();if("parsererror" in G){return L}var I=G.properties.property;var D=isset(I)?(isarray(I)?I.length:1):0;var B;var J;var K;var F;for(F=0;F<D;F++){K=D==1?I:I[F];B=K.name;J=K.value;L.add(B,J)}return L}}};
(function(){var A=function(){var I=(new BG.model.XMLParameterLoader("parameter.xml")).load();var F=new BG.model.xmlload.XMLStructure();var E=null;var C=null;var G=new BG.application.MapManager();var H=null;var J=null;var D={};var B=new BG.application.Cache();this.getInstance=function(){return BG.application.Application};this.createAndAddDefaultAction=function(K,M,N){assertNotNull(K,"Can't add an action without his type");assertNotNull(M,"Can't add an action without his name");var L=this.getAction(K,M);if(!isset(L)){L=new N(M,M);this.addAction(K,L)}return L};this.addAction=function(L,K){if(isset(this.getAction(L,K))){return true}if(!(L in D)){D[L]=[]}else{if(!isarray(D[L])){D[L]=[]}}D[L].push(K);return true};this.resetActions=function(){D={}};this.resetActionsByType=function(K){D[K]=null};this.getAction=function(M,K){var O=null;if(M in D){O=D[M]}var L;var N;if(O!==null){for(L=0;L<O.length;L++){N=O[L];if(N.getName()==K){return N}}}return null};this.removeAction=function(M,K){var O=null;if(M in D){O=D[M]}var L;var N;if(O!==null){for(L=0;L<O.length;L++){N=O[L];if(N.getName()==K){O.splice(L,1);break}}}};this.getParameters=function(){return I};this.reloadParameters=function(){I=(new BG.model.XMLParameterLoader("parameter.xml")).load()};this.getDisplayerFactory=function(){return BG.application.DisplayerFactory.getInstance()};this.getUser=function(){return E};this.setUser=function(K){E=K};this.getMenu=function(){return C};this.setMenu=function(K){C=K};this.getMapManager=function(){return G};this.setMapManager=function(K){G=K};this.getLegend=function(){return H};this.setLegend=function(K){H=K};this.getCache=function(){return B};this.disconnect=function(){var K=BG.action.DisconnectAction.PREFIX;var L=new BG.action.DisconnectAction(K,K);L.execute()};return this};BG.application.Application=A()})();
BG.communication.RequestManager=function(D,B,C,A,E){this.init(D,B,C,A,E)};BG.communication.RequestManager.lastSendTime=0;BG.communication.RequestManager.sendDelay=500;BG.communication.RequestManager.nCurrentRequest=0;BG.communication.RequestManager.LOADER_ID="requestLoader";BG.communication.RequestManager.showRequestLoader=function(){if(!BG.view.UserInterfaceBuilder.getInstance().buildComplete){return }BG.communication.RequestManager.nCurrentRequest+=1;var A;if(BG.communication.RequestManager.nCurrentRequest>0){A=document.getElementById(BG.communication.RequestManager.LOADER_ID);if(A){A.style.display=""}}};BG.communication.RequestManager.hideRequestLoader=function(){BG.communication.RequestManager.nCurrentRequest-=1;if(BG.communication.RequestManager.nCurrentRequest<0){BG.communication.RequestManager.nCurrentRequest=0}var A;if(BG.communication.RequestManager.nCurrentRequest===0){A=document.getElementById(BG.communication.RequestManager.LOADER_ID);if(A){A.style.display="none"}}};BG.communication.RequestManager.prototype={method:"POST",init:function(A){this.method=A||"POST"},sendRequest:function(E,F,K,J,M){var H=this.method;var I=E;var O=K||window;var C=F;var A=J;var D=BG.application.Application.getInstance().getParameters().getCgi();var B;if(isset(M)){B=M}else{B=D}var N={handleSuccess:function(S){BG.communication.RequestManager.hideRequestLoader();var R=S.responseText;var P;if(R.indexOf("logon.html")>-1){G()}else{if(R.indexOf("<?")===0){I.call(O,S,A)}else{try{P=YAHOO.lang.JSON.parse(S.responseText);if(P.rc==1){G()}}catch(Q){I.call(O,S,A)}}}},handleFailure:function(P){BG.communication.RequestManager.hideRequestLoader();G(P.status)},startRequest:function(){BG.communication.RequestManager.showRequestLoader();YAHOO.util.Connect.asyncRequest(H,B,L,C)}};var L={success:N.handleSuccess,failure:N.handleFailure,scope:this};var G=function(Q){if(parseInt(Q,10)==500&&B!=D){BG.view.ErrorPanel.getInstance().show(_("InternalServerError.title"),[["title",{text:_("InternalServerError.msg")}],["linebreak"],["para",{text:_("InternalServerError.explanation")}],["para",{text:_("InternalServerError.otherexplanation")}],["para",{text:_("InternalServerError.contact")}]],true);return }var P=BG.view.UserInterfaceBuilder.getInstance();var R=BG.view.ResizeManager.getInstance();R.disable();R.unregisterAll();BG.edit.Engine.getInstance().unregisterAll();BG.application.Application.getInstance().resetActions();P.showReconnectionPanel()};N.startRequest()},delay:function(){var B;var A;do{B=new Date().getTime();A=B-BG.communication.RequestManager.lastSendTime}while(A<BG.communication.RequestManager.sendDelay);BG.communication.RequestManager.lastSendTime=B}};
BG.communication.StackedRequestManager=__create_class__(Object,{STATE:{FREE:0,SENT:1},LOAD_STATE:{WORKING:0,WAITING:1}},{_requests:null,_requestManager:null,_state:null,_loadState:null,_cancelNext:null,init:function(){this._requests=[];this._requestManager=new BG.communication.RequestManager("POST");this._state=BG.communication.StackedRequestManager.STATE.FREE;this._loadState=BG.communication.StackedRequestManager.LOAD_STATE.WAITING;this._cancelNext=false},pushRequest:function(A,C){var B={postData:A,callback:C};if(this._state==BG.communication.StackedRequestManager.STATE.SENT){this._cancelNext=true;if(this._requests.length===0){this._requests.push(B)}else{this._requests[1]=B}}else{this._requests.push(B)}this._loadNext()},_handleCallback:function(B){if(this._requests.length<=0){return }if(this._state!=BG.communication.StackedRequestManager.STATE.SENT){return }var A=this._requests[0];this._requests=this._requests.slice(1);this._state=BG.communication.StackedRequestManager.STATE.FREE;if(!this._cancelNext){A.callback(B)}else{this._cancelNext=false}this._loadNext()},_loadNext:function(){if(this._loadState==BG.communication.StackedRequestManager.LOAD_STATE.WORKING){return }this._doLoadNext()},_doLoadNext:function(){var A=this._requests.length;if(this._state!=BG.communication.StackedRequestManager.STATE.FREE){window.setTimeout(__bind__(this._doLoadNext,this),200);return }if(A>0){this._state=BG.communication.StackedRequestManager.STATE.SENT;this._requestManager.sendRequest(this._handleCallback,this._requests[0].postData,this)}else{this._loadState=BG.communication.StackedRequestManager.LOAD_STATE.WAITING}}});
BG.communication.formatter.RequestFormatter=function(){this.init()};BG.communication.formatter.RequestFormatter.prototype={dict:null,init:function(){this.dict=new BG.util.Dictionnary()},push:function(A,B){assertTypeOf(A,"string","key to push in the RequestFormatter must be a string : "+A);assertNotStrictEqual(A,"","key to push in the RequestFormatter can't be an empty string");this.dict.add(A,B)},pushSingle:function(A){assertTypeOf(A,"string","key to push in the RequestFormatter must be a string : "+A);assertNotStrictEqual(A,"","key to push in the RequestFormatter can't be an empty string");this.dict.add(A,null)},pushObject:function(B){assertTypeOf(B,"object","Values to push must be an object");for(var A in B){this.push(A,B[A])}},pushArrayOfObject:function(A){var C;for(var B=0;B<A.length;B++){C=A[B];this.pushObject(C)}},serialize:function(){var A=BG.communication.formatter.FormatterFactoryV0;var C=[];var B;this.dict.foreach(function(D,E){B=A.replaceSpecialChars(D);if(E!==null){B+="="+A.replaceSpecialChars(E)}C.push(B)});return C.join("&")}};BG.communication.formatter.FormatterFactoryV0=function(){};BG.communication.formatter.FormatterFactoryV0.WMTVER_VALUE="SERVLET_GEOMATIQUE_1.4.0";BG.communication.formatter.FormatterFactoryV0.getEmprise=function(A){return A.serialize()};BG.communication.formatter.FormatterFactoryV0.getUserPrefix=function(){var A=BG.application.Application.getInstance().getUser();return{WMTVER:BG.communication.formatter.FormatterFactoryV0.WMTVER_VALUE,USER:A.getUserName()+"!"+A.getUserId()}};BG.communication.formatter.FormatterFactoryV0.getDefaultData=function(){var A=BG.application.Application.getInstance().getParameters();return{_:BG.util.Util.getOnTheFlyId(),LOCATION:A.getHttpWebLocation(),PORT:A.getPort(),RESPONSE_TYPE:"xml"}};BG.communication.formatter.FormatterFactoryV0.getClientConfiguration=function(){var B=BG.util.Util.getClientConfiguration();var A={NAVIGATOR_FAMILY:B.navigator.family,NAVIGATOR:B.navigator.detail,SYSTEM_FAMILY:B.system.family,SYSTEM:B.system.detail,LANGUAGE:B.language,SCREEN:B.screen.width+"x"+B.screen.height+"x"+B.screen.depth,ARCHI:B.archi,REFERRER:B.referrer};return A};BG.communication.formatter.FormatterFactoryV0.createRSACommand=function(){var D=BG.application.Application.getInstance().getParameters();var A=D.getHttpWebLocation();var B=BG.communication.formatter.FormatterFactoryV0;var C=new BG.communication.formatter.RequestFormatter();C.push("ACTION","GetConnectionPageRSA");C.pushObject(BG.communication.formatter.FormatterFactoryV0.getClientConfiguration());C.push("XSL","formlogin.xsl");C.pushObject(B.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createDecodeBase64Command=function(F,E){var B=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var A=D.getHttpWebLocation();var C=new BG.communication.formatter.RequestFormatter();C.push("ACTION","DecodeBase64");C.push("LOCATION",A);C.push("base64String",F);C.push("outputFormat",E);C.pushObject(B.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createAuthCommand=function(A,H,F,E){var D=BG.application.Application.getInstance().getParameters();var B=BG.application.Application.getInstance().getUser();var G="ConnectXML";var I=new BG.communication.formatter.RequestFormatter();I.pushObject(BG.communication.formatter.FormatterFactoryV0.getClientConfiguration());var C=[];if(!!F){C.push("ConnectRSAXML");C.push("IDRSA="+E);C.push("PASSWORD="+H)}else{C.push("ConnectXML");C.push("PASSWORD="+H)}C.push("USERNAME="+A);I.push("ACTION",C.join("!"));I.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return I.serialize()};BG.communication.formatter.FormatterFactoryV0.createSSOAuthCommand=function(A,D){var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.push("ACTION","VerifyUser");B.push("USER",A+"!"+D);B.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createStatisticCommand=function(B,F,E){var A="null";if(E.interactive==1){A="filterAdapter.xsl"}if(BG.util.Util.isValidVariable(E.interFilterState)){if(E.interFilterState<100){A="filterAdapter.xsl"}else{A="null"}}var C=BG.communication.formatter.FormatterFactoryV0;var H=BG.application.Application.getInstance().getParameters();var D=new BG.communication.formatter.RequestFormatter();D.pushObject(C.getUserPrefix());var G=[];G.push("BuildStatistique");G.push("NAME="+B);G.push("OUTPUTSIZE="+F.serialize());G.push("INTERACTIVE="+E.interactive);G.push("EXPORT_EXCEL=1");if(E.useSelection){G.push("USE_SELECTION=1")}D.push("ACTION",G.join("!"));D.pushArrayOfObject(C.createFilterObject(E));D.push("XSL",A);D.pushObject(C.getDefaultData());return D.serialize()};BG.communication.formatter.FormatterFactoryV0.createAnalysisCommand=function(G,F,A,N,D,H,L,M,J){var E=BG.communication.formatter.FormatterFactoryV0;
var B=BG.application.Application.getInstance().getParameters();var I="mapAndLegendAdapter.xsl";if(H.interactive==1){I="filterAdapter.xsl"}if(BG.util.Util.isValidVariable(H.interFilterState)){if(H.interFilterState<100){I="filterAdapter.xsl"}else{if(!L){I="null"}}}else{if(!L){I="null"}}var K=new BG.communication.formatter.RequestFormatter();K.pushObject(E.getUserPrefix());var C=[];C.push("BuildAnalyse");C.push("NAME="+G);C.push("CLEARANALYSE="+D);C.push("INTERACTIVE="+H.interactive);C.push("EMPRISE="+E.getEmprise(A));C.push("OUTPUTSIZE="+N.serialize());C.push("SHOWECHELLE=0");C.push("TYPE="+F);C.push("FORMAT="+E.v4MapTypeToV0MapFormat(J));if(H.useSelection){C.push("USE_SELECTION=1")}K.push("ACTION",C.join("!"));K.pushArrayOfObject(E.createFilterObject(H));K.push("XSL",I);K.pushObject(E.getDefaultData());return K.serialize()};BG.communication.formatter.FormatterFactoryV0.createFilterObject=function(C){var B=[];if(!C.isValid()){return B}var A=BG.application.Application.getInstance().getUser();var D={};if(isset(C.interFilterState)){D.NINTERFILTER=C.interFilterState}if(isset(C.x)&&isset(C.y)){D.XCOORD=C.x;D.YCOORD=C.y}if(isset(C.filterValues)){B=C.filterValues;B.unshift(D)}else{B.push(D)}return B};BG.communication.formatter.FormatterFactoryV0.createInformationGeoCommand=function(B,D,G){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(A.getUserPrefix());var E=[];E.push("GetGeocodeInfo");E.push("IDGEO="+B);E.push("MODIFNAME="+D);C.push("ACTION",E.join("!"));C.push("XSL","geoAdapter.xsl");C.pushObject(A.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createEmptyInfoAddRecordCommand=function(C,G,B){var A=BG.communication.formatter.FormatterFactoryV0;var E=new BG.communication.formatter.RequestFormatter();E.pushObject(A.getUserPrefix());var F=[];F.push("GetInfoAddRecordForm");F.push("INFONAME="+C);F.push("JOINFIELD="+G);E.push("ACTION",F.join("!"));E.push("XSL","infoAdapter.xsl");for(var D in B){E.push(D,B[D])}E.pushObject(A.getDefaultData());return E.serialize()};BG.communication.formatter.FormatterFactoryV0.createAddRecordAlphaCommand=function(E,F){var A=BG.communication.formatter.FormatterFactoryV0;var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());var D=[];D.push("AddRecordAlpha");D.push("INFONAME="+E);B.push("ACTION",D.join("!"));var C=new RegExp(BG.model.InfoModel.SRC_TABLE+".","i");F.foreach(function(G,H){B.push(G.replace(C,""),H)});B.push("XSL","infoAdapter.xsl");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createGetFontCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.push("WMTVER",BG.communication.formatter.FormatterFactoryV0.WMTVER_VALUE);B.push("ACTION","GetFontList");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createInformationAlphaCommand=function(H,P,K,D,B,G,E,I,M){var O=BG.communication.formatter.FormatterFactoryV0;var A=BG.application.Application.getInstance().getParameters();var L;var J=A.getConfigInfo(P);if(J.serverOutPut=="xml"){L="infoAdapter.xsl"}else{if(/html/i.test(J.serverOutPut)){if(E){L=J.xslUpdate}else{L=J.xsl}}else{L="infoAdapter.xsl"}}var F=J.serverOutPut||"xml";var N=new BG.communication.formatter.RequestFormatter();N.pushObject(O.getUserPrefix());var C=[];C.push("GetInfo");C.push("EMPRISE=ALL");if(isset(G)){C.push("OUTPUTSIZE="+G.serialize())}if(isset(H)){C.push("SELECT="+H+"@1");C.push("ALPHAJ="+K)}else{C.push("INFONAME="+P);C.push("IDENT="+K)}if(isset(D)){C.push("CHAMPS1="+D)}if(isset(B)){C.push("CHAMPS2="+B)}if(E){C.push("MAJ=yes")}if(I){C.push("GIVE_STATUS=yes")}N.push("ACTION",C.join("!"));N.push("_",BG.util.Util.getOnTheFlyId());N.push("LOCATION",A.getHttpWebLocation());N.push("PORT",A.getPort());N.push("XSL",L);N.push("FORMAT",BG.communication.formatter.FormatterFactoryV0.v4MapTypeToV0MapFormat(M));N.push("RESPONSE_TYPE",F);return N.serialize()};BG.communication.formatter.FormatterFactoryV0.createMenuCommand=function(C){var A=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","GetFonction");B.push("XSL","null");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createGetServicesCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","GetServices");B.pushObject(A.getDefaultData());return B};BG.communication.formatter.FormatterFactoryV0.createCartoCommand=function(P,F,A,N,O,J,H,G,D,E){var M=BG.communication.formatter.FormatterFactoryV0;
var B=BG.application.Application.getInstance().getParameters();var L;var C;var I;var K;if(!BG.util.Util.isValidVariable(A)){A="mapAdapter.xsl"}if(!BG.util.Util.isValidVariable(J)){J=BG.model.MapModel.TYPE_IMAGE}L=new BG.communication.formatter.RequestFormatter();L.pushObject(M.getUserPrefix());C=[];C.push("BuildMap");C.push("EMPRISE="+BG.communication.formatter.FormatterFactoryV0.getEmprise(P));C.push("OUTPUTSIZE="+F.serialize());C.push("SHOWECHELLE=0");C.push("SHOWLEGENDE="+(!!E?"1":"0"));C.push("SHOWCOPYRIGHTS=1");if(isset(G)&&isset(D)){C.push("SELECT="+G);C.push("ALPHAJ="+D)}if(BG.util.Util.isValidVariable(N)){if(N===true){C.push("MINIMAP=1");J=BG.model.MapModel.TYPE_IMAGE}}if(isset(H)){I=[];for(K in H){I.push(K+"="+(H[K]?"1":"0"))}if(I.length>0){C.push("LEGEND="+I.join("@"))}}L.push("ACTION",C.join("!"));L.push("TRANSPARENT","TRUE");L.push("XSL",A);L.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return L.serialize()};BG.communication.formatter.FormatterFactoryV0.createRemoveAnalysisCommand=function(K,D,J,H,F,E){var I=BG.communication.formatter.FormatterFactoryV0;var B=BG.application.Application.getInstance().getParameters();var G;var C;var A=H?"mapAndLegendAdapter.xsl":"null";if(!BG.util.Util.isValidVariable(F)){F=BG.model.MapModel.TYPE_IMAGE}G=new BG.communication.formatter.RequestFormatter();G.pushObject(I.getUserPrefix());C=[];C.push("RemoveAnalyse");C.push("ANALYSES="+E);C.push("EMPRISE="+BG.communication.formatter.FormatterFactoryV0.getEmprise(K));C.push("OUTPUTSIZE="+D.serialize());C.push("SHOWECHELLE=0");G.push("ACTION",C.join("!"));G.push("FORMAT",BG.communication.formatter.FormatterFactoryV0.v4MapTypeToV0MapFormat(F));G.push("XSL",A);G.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return G.serialize()};BG.communication.formatter.FormatterFactoryV0.createZoomObjectCommand=function(F,C,D,J,L,H,E){var K=BG.communication.formatter.FormatterFactoryV0;var A=BG.application.Application.getInstance().getParameters();var G=J?(!!E?"mapAndLegendAdapter.xsl":"mapAdapter.xsl"):"null";var I=new BG.communication.formatter.RequestFormatter();I.pushObject(K.getUserPrefix());var B=[];B.push("BuildMap");B.push("EMPRISE=ALL");B.push("SELECT="+F+"!ALPHAJ="+C.join("@"));B.push("OUTPUTSIZE="+D.serialize());B.push("LOCATION="+A.getHttpWebLocation());B.push("SHOWECHELLE=0");I.push("ACTION",B.join("!"));I.push("FORMAT",BG.communication.formatter.FormatterFactoryV0.v4MapTypeToV0MapFormat(H));I.push("XSL",G);I.push("_",BG.util.Util.getOnTheFlyId());I.push("PORT",A.getPort());I.push("RESPONSE_TYPE","xml");return I.serialize()};BG.communication.formatter.FormatterFactoryV0.createMapCommand=function(B,I,H,G,F,E,D,C){var A=G?"mapAdapter.xsl":"null";return BG.communication.formatter.FormatterFactoryV0.createCartoCommand(B,I,A,false,H,F,E,D,C,false)};BG.communication.formatter.FormatterFactoryV0.createMiniMapCommand=function(B,A){return BG.communication.formatter.FormatterFactoryV0.createCartoCommand(B,A,"mapAdapter.xsl",true,false)};BG.communication.formatter.FormatterFactoryV0.createMapAndLegendCommand=function(B,I,H,G,F,E,D,C){var A=G?"mapAndLegendAdapter.xsl":"null";return BG.communication.formatter.FormatterFactoryV0.createCartoCommand(B,I,A,false,H,F,E,D,C,true)};BG.communication.formatter.FormatterFactoryV0.createLegendeCommand=function(B){var A=new BG.util.Dimension(1,1);return BG.communication.formatter.FormatterFactoryV0.createCartoCommand(B,A,"legendAdapter.xsl",false,false)};BG.communication.formatter.FormatterFactoryV0.createSearchCommand=function(D,C){var B=BG.communication.formatter.FormatterFactoryV0;var G=BG.application.Application.getInstance().getParameters();var A="null";if(C.interactive!="0"){A="filterAdapter.xsl"}if(BG.util.Util.isValidVariable(C.interFilterState)){if(C.interFilterState<100){A="filterAdapter.xsl"}else{A="null"}}var E=new BG.communication.formatter.RequestFormatter();E.pushObject(B.getUserPrefix());var F=[];F.push("Recherche");F.push("NAME="+D);F.push("INTERACTIVE="+(C.interactive==1?"1":"0"));F.push("ALLFILTERS=1");if(C.useSelection){F.push("USE_SELECTION=1")}E.push("ACTION",F.join("!"));E.pushArrayOfObject(B.createFilterObject(C));E.push("XSL",A);E.pushObject(B.getDefaultData());return E.serialize()};BG.communication.formatter.FormatterFactoryV0.createSuggestCommand=function(B,H,F){var K=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var C=new BG.model.FilterParameter(true);C.formatAndSetFilterValues(F);var J=F.getName();var G=J.replace(/#![0-9]$/,"");var A=parseInt(J.replace(/^.*#!/,""),10);var I=new BG.communication.formatter.RequestFormatter();I.pushObject(K.getUserPrefix());var E=[];E.push("SuggestContent");E.push("TYPE="+A);E.push("NAME="+G);E.push("FILTERNAME="+B.getName());I.push("ACTION",E.join("!"));I.pushArrayOfObject(K.createFilterObject(C));I.pushObject(K.getDefaultData());return I.serialize()};BG.communication.formatter.FormatterFactoryV0.createTableCommand=function(B,D){var C=BG.communication.formatter.FormatterFactoryV0;
var H=BG.application.Application.getInstance().getParameters();var E;var F;var G;var A="null";if(D.interactive!="0"){A="filterAdapter.xsl"}if(BG.util.Util.isValidVariable(D.interFilterState)){G=parseInt(D.interFilterState,10);if(G<100){A="filterAdapter.xsl"}else{A="null"}}E=new BG.communication.formatter.RequestFormatter();E.pushObject(C.getUserPrefix());F=[];F.push("BuildTableauBord");F.push("NAME="+B);F.push("INTERACTIVE="+D.interactive);if(D.useSelection){F.push("USE_SELECTION=1")}E.push("ACTION",F.join("!"));E.pushArrayOfObject(C.createFilterObject(D));E.push("XSL",A);E.pushObject(C.getDefaultData());return E.serialize()};BG.communication.formatter.FormatterFactoryV0.createLegendCommand=function(C,A,E){var B=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();return B.createMapCommand(C,A,E)};BG.communication.formatter.FormatterFactoryV0.createOpacityLegendCommand=function(C,B,F,D){var A=BG.communication.formatter.FormatterFactoryV0;var H=BG.application.Application.getInstance().getParameters();var E=new BG.communication.formatter.RequestFormatter();E.pushObject(A.getUserPrefix());var G=[];G.push("UpdateLegende");G.push("EMPRISE="+BG.communication.formatter.FormatterFactoryV0.getEmprise(C));G.push("OUTPUTSIZE="+B.serialize());G.push("SHOWECHELLE=0");G.push("SHOWLEGENDE=0");G.push("LEGEND="+F+"[__opacity__]="+D);G.push("ACTION=0");E.push("ACTION",G.join("!"));E.push("XSL","null");E.push("RESPONSE_TYPE","xml");E.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return E};BG.communication.formatter.FormatterFactoryV0.createUpdateLegendCommand=function(M,C,H,G,L,D){var K=BG.communication.formatter.FormatterFactoryV0;var E=BG.application.Application.getInstance().getParameters();var B="";var A=[];A.push("");for(key in H){A.push(key+"="+(H[key].checked?"1":"0"));if("opacity" in H[key]){A.push(key+"[__opacity__]="+H[key].opacity)}}A.push("");B=A.join("@");G=G||false;var I=G?"mapAdapter.xsl":"null";var J=new BG.communication.formatter.RequestFormatter();J.pushObject(K.getUserPrefix());var F=[];F.push("UpdateLegende");F.push("EMPRISE="+BG.communication.formatter.FormatterFactoryV0.getEmprise(M));F.push("OUTPUTSIZE="+C.serialize());F.push("SHOWECHELLE=0");F.push("SHOWLEGENDE=1");F.push("LEGEND="+B);J.push("ACTION",F.join("!"));J.push("FORMAT",BG.communication.formatter.FormatterFactoryV0.v4MapTypeToV0MapFormat(D));J.push("XSL",I);J.push("RESPONSE_TYPE","xml");J.pushObject(BG.communication.formatter.FormatterFactoryV0.getDefaultData());return J.serialize()};BG.communication.formatter.FormatterFactoryV0.createObjectClickCommand=function(D,C){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());var E=[];E.push("ClickMap");E.push("POSITION="+D.x()+"@"+D.y()+"@"+C);B.push("ACTION",E.join("!"));B.push("XSL","null");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createGeoCodeCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());var C=[];C.push("GetGeometryModification");B.push("ACTION",C.join("!"));B.push("XSL","editionStatusToResult.xsl");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportCommand=function(C,H,D,E,I){var G=BG.communication.formatter.FormatterFactoryV0;var A=BG.application.Application.getInstance().getParameters();var F=new BG.communication.formatter.RequestFormatter();F.pushObject(G.getUserPrefix());F.push("XSL",C);var B=[];B.push("GetInfo");B.push("EMPRISE=ALL");B.push("OUTPUTSIZE="+I.serialize());B.push("SELECT="+H);B.push("ALPHAJ="+D);B.push("OFFICE="+E);F.push("ACTION",B.join("!"));F.push("LOCATION",A.getHttpWebLocation());F.push("_",BG.util.Util.getOnTheFlyId());F.push("PORT",A.getPort());F.push("RESPONSE_TYPE","html");return F.serialize()};BG.communication.formatter.FormatterFactoryV0.createPrintCommand=function(D,A,G){var B=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(B.getUserPrefix());C.push("XSL","imprimer.xsl");var E=[];E.push("BuildMap");E.push("EMPRISE="+B.getEmprise(D));E.push("OUTPUTSIZE="+A.serialize());E.push("SHOWECHELLE="+(G?"1":"0"));C.push("ACTION",E.join("!"));C.push("LOCATION",F.getHttpWebLocation());C.push("_",BG.util.Util.getOnTheFlyId());C.push("PORT",F.getPort());C.push("RESPONSE_TYPE","html");return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createClearMapCommand=function(D,A,G){var B=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();
C.pushObject(B.getUserPrefix());var E=[];E.push("ClearSelection");E.push("EMPRISE="+B.getEmprise(D));E.push("OUTPUTSIZE="+A.serialize());E.push("SHOWECHELLE=0");E.push("SHOWLEGENDE=0");E.push("LOCATION="+F.getHttpWebLocation());C.push("ACTION",E.join("!"));C.push("XSL","null");C.pushObject(B.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createInfoSheetUpdateCommand=function(E,C,A){var B=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var D=new BG.communication.formatter.RequestFormatter();D.pushObject(B.getUserPrefix());D.push("ACTION","Update");D.push("INFONAME",E);D.push("IDFIELD",C);A.foreach(function(G,H){D.push(G,H)});D.push("XSL","updateInfoAdapter.xsl");D.pushObject(B.getDefaultData());return D.serialize()};BG.communication.formatter.FormatterFactoryV0.createGeoUpdateCommand=function(E,G,A){var B=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(B.getUserPrefix());var D=[];D.push("Geocode");D.push("IDGEO="+G);D.push("MODIFNAME="+E);C.push("ACTION",D.join("!"));A.foreach(function(H,I){C.push(H,I)});C.push("UPDATEINFO","0");C.push("XSL","geoAdapter.xsl");C.push("_",BG.util.Util.getOnTheFlyId());C.push("PORT",F.getPort());C.push("RESPONSE_TYPE","xml");return C.serialize()};BG.communication.formatter.FormatterFactoryV0.replaceSpecialChars=function(A){if(typeof (A)!="string"){return A}return BG.util.Util.encodeString(A)};BG.communication.formatter.FormatterFactoryV0.formatFilterValues=function(B,F){if(!BG.util.Util.isValidVariable(B)||!BG.util.Util.isValidVariable(F)){return{}}var A=B.length;var D=[];var C;for(var E=0;E<A;E++){C={};C[B[E]]=F[E];D.push(C)}return D};BG.communication.formatter.FormatterFactoryV0.createExportPDFMapCommand=function(K,A,E,F,H,D,J){var I=BG.communication.formatter.FormatterFactoryV0;var B=BG.application.Application.getInstance().getParameters();var G=new BG.communication.formatter.RequestFormatter();G.pushObject(I.getUserPrefix());var C=[];C.push("BuildMap");C.push("EMPRISE="+I.getEmprise(K));C.push("SHOWECHELLE="+(J?"1":"0"));C.push("OUTPUTSIZE="+A.serialize());C.push("PRESERVEECHELLE="+E);C.push("EXPORTMODEL="+F);C.push("SHOWLEGENDE="+(D?"1":"0"));C.push("TITLE="+H);C.push("FORMAT=1");G.push("ACTION",C.join("!"));G.push("LOCATION",B.getHttpWebLocation());G.push("_",BG.util.Util.getOnTheFlyId());G.push("PORT",B.getPort());G.push("RESPONSE_TYPE","html");return G.serialize()};BG.communication.formatter.FormatterFactoryV0.createPrintMapCommand=function(J,D,B,I){var H=BG.communication.formatter.FormatterFactoryV0;var A=BG.application.Application.getInstance().getParameters();var F="";var E="100@100";switch(B){case 0:F="imprimer.xsl";E="500@550";break;case 1:F="imprimersanslegende.xsl";E="800@550";break;case 2:F="imprimerpaysage.xsl";E="900@450";break;case 3:F="imprimerpaysagesanslegende.xsl";E="1200@450";break;default:break}var G=new BG.communication.formatter.RequestFormatter();G.pushObject(H.getUserPrefix());var C=[];C.push("BuildMap");C.push("EMPRISE="+H.getEmprise(J));C.push("OUTPUTSIZE="+E);C.push("PRESERVEECHELLE="+D);C.push("SHOWECHELLE="+(I?"1":"0"));C.push("SHOWLEGENDE=1");C.push("PAINT_SERVICES=1");G.push("ACTION",C.join("!"));G.push("LOCATION",A.getHttpWebLocation());G.push("XSL",F);G.push("_",BG.util.Util.getOnTheFlyId());G.push("PORT",A.getPort());G.push("RESPONSE_TYPE","html");return G.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportInfoPdfCommand=function(E,C,H,B){var A=BG.communication.formatter.FormatterFactoryV0;var G=BG.application.Application.getInstance().getParameters();var D=new BG.communication.formatter.RequestFormatter();D.pushObject(A.getUserPrefix());var F=[];F.push("GetInfo");F.push("EMPRISE=ALL");F.push("OUTPUTSIZE="+H.serialize());if(!!B){F.push("SELECT="+E);F.push("ALPHAJ="+C.join("@")+"@")}else{F.push("INFONAME="+E);F.push("IDENT="+C.join("@"))}F.push("USE_XSL=0");F.push("OFFICE=PDF");D.push("ACTION",F.join("!"));D.push("LOCATION",G.getHttpWebLocation());D.push("XSL","infopdf.xsl");D.push("_",BG.util.Util.getOnTheFlyId());D.push("PORT",G.getPort());D.push("RESPONSE_TYPE","html");return D.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportInfoOdtCommand=function(D,B,G){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(A.getUserPrefix());var E=[];E.push("GetInfo");E.push("EMPRISE=ALL");E.push("OUTPUTSIZE="+G.serialize());E.push("SELECT="+D);E.push("ALPHAJ="+B.join("@")+"@");E.push("OFFICE=ODT");C.push("ACTION",E.join("!"));C.pushObject(A.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportInfoWordCommand=function(D,B,G){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();
var C=new BG.communication.formatter.RequestFormatter();C.pushObject(A.getUserPrefix());var E=[];E.push("GetInfo");E.push("EMPRISE=ALL");E.push("OUTPUTSIZE="+G.serialize());E.push("SELECT="+D);E.push("ALPHAJ="+B.join("@")+"@");E.push("OFFICE=DOC");C.push("ACTION",E.join("!"));C.push("LOCATION",F.getHttpWebLocation());C.push("XSL","infoword.xsl");C.push("_",BG.util.Util.getOnTheFlyId());C.push("PORT",F.getPort());C.push("RESPONSE_TYPE","html");return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportInfoExcelCommand=function(E,B,D){var A=BG.communication.formatter.FormatterFactoryV0;var G=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(A.getUserPrefix());var F=[];F.push("GetInfo");F.push("EMPRISE=ALL");F.push("OFFICE=XLS");F.push("OFFICEBUILDER="+(D?"1":"0"));F.push("SELECT="+E);F.push("ALPHAJ="+B.join("@")+"@");C.push("ACTION",F.join("!"));C.push("LOCATION",G.getHttpWebLocation());C.push("XSL","infoexcel.xsl");C.push("_",BG.util.Util.getOnTheFlyId());C.push("PORT",G.getPort());C.push("RESPONSE_TYPE","html");return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createExportInfoPDFCommand=function(A,H,I,D,B,J,G,E){var L=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var K=new BG.communication.formatter.RequestFormatter();K.pushObject(L.getUserPrefix());var F=[];F.push("GetInfo");F.push("EMPRISE=ALL");if(is.set(A)){F.push("OUTPUTSIZE="+A.serialize())}if(!!E){F.push("SELECT="+H);F.push("ALPHAJ="+I)}else{F.push("INFONAME="+H);F.push("IDENT="+I)}F.push("USE_XSL=0");F.push("OFFICE=PDF");if(isset(D)){F.push("CHAMPS1="+D)}if(isset(B)){F.push("CHAMPS2="+B)}K.push("ACTION",F.join("!"));K.push("LOCATION",C.getHttpWebLocation());K.push("XSL","infopdf.xsl");K.push("_",BG.util.Util.getOnTheFlyId());K.push("PORT",C.getPort());K.push("RESPONSE_TYPE","html");return K.serialize()};BG.communication.formatter.FormatterFactoryV0.createReloadLayerCommand=function(C){var A=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","ReloadLayer!LAYERNAME="+C);B.push("_",BG.util.Util.getOnTheFlyId());B.push("PORT",D.getPort());B.push("RESPONSE_TYPE","xml");return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createEditLayerCommand=function(D,I,A,E,B){var H=BG.communication.formatter.FormatterFactoryV0;var G=new BG.communication.formatter.RequestFormatter();G.pushObject(H.getUserPrefix());var C=[];C.push("EditLayer");C.push("NAME="+E);C.push("EMPRISE="+I.serialize());C.push("OUTPUTSIZE="+A.serialize());C.push("LAYER_EDITION=1");C.push("LAYER_EDITION_XML=1");C.push("INTERACTIVE="+D);G.push("ACTION",C.join("!"));var F="null";if(is.set(B)){G.pushArrayOfObject(H.createFilterObject(B));if(BG.util.Util.isValidVariable(B.interFilterState)){if(B.interFilterState<100){F="filterAdapter.xsl"}}}else{if(D!="0"){F="filterAdapter.xsl"}}G.push("XSL",F);G.pushObject(H.getDefaultData());return G};BG.communication.formatter.FormatterFactoryV0.createOrderLegendCommand=function(D,F,A){var B=BG.communication.formatter.FormatterFactoryV0;var E=BG.application.Application.getInstance().getParameters();var C=new BG.communication.formatter.RequestFormatter();C.pushObject(B.getUserPrefix());C.push("ACTION","OrderLegend");C.push("SRC_NODE",D);C.push("DEST_NODE",F);C.push("POSITION",A);C.pushObject(B.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createGetLayerStyleCommand=function(C){var A=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","GetLayerStyle!LOCATION="+D.getHttpWebLocation());B.push("BASIC","true");B.push("LAYER",C);B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createUpdateLayerStyleCommand=function(E,B){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var D=new BG.communication.formatter.RequestFormatter();D.pushObject(A.getUserPrefix());D.push("ACTION","UpdateLayerStyle!LOCATION="+F.getHttpWebLocation());D.push("LAYER",E);for(var C in B){D.push("Style."+C,B[C])}D.pushObject(A.getDefaultData());return D.serialize()};BG.communication.formatter.FormatterFactoryV0.createGetIconListCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","GetIconList!LOCATION="+C.getHttpWebLocation());B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createDisconnectCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;
var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","Disconnect");B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createPluginCommand=function(A,D,E,H){var J=BG.communication.formatter.FormatterFactoryV0;var B=BG.application.Application.getInstance().getParameters();var G="";var I=new BG.communication.formatter.RequestFormatter();I.pushObject(J.getUserPrefix());var C=[];C.push("Plugin");C.push("NAME="+A);I.push("ACTION",C.join("!"));if(isset(D)){for(var F in D){I.push(F,D[F])}}if(isset(E)){I.pushArrayOfObject(J.createFilterObject(E))}I.push("LOCATION",B.getHttpWebLocation());I.push("_",BG.util.Util.getOnTheFlyId());I.push("PORT",B.getPort());if(!!H){I.push("RESPONSE_TYPE","xml")}return I.serialize()};BG.communication.formatter.FormatterFactoryV0.createExtPluginCommand=function(E,D,G,A){var I=BG.communication.formatter.FormatterFactoryV0;var B=BG.application.Application.getInstance().getParameters();var H=new BG.communication.formatter.RequestFormatter();H.pushObject(I.getUserPrefix());var C=[];C.push("Plugin");C.push("NAME="+E);H.push("ACTION",C.join("!"));H.push("PLUGIN_ACTION",D);if(isset(G)){for(var F in G){H.push(F,G[F])}}if(isset(A)){H.pushArrayOfObject(I.createFilterObject(A))}H.pushObject(I.getDefaultData());return H};BG.communication.formatter.FormatterFactoryV0.createPluginCommandFromFlex=function(F,H){var J=BG.communication.formatter.FormatterFactoryV0;var I=new BG.communication.formatter.RequestFormatter();I.pushObject(J.getUserPrefix());var D=[];D.push("Plugin");D.push("NAME="+F);I.push("ACTION",D.join("!"));var E;var C;var A;var G;var B;if(isset(H)){C=H.length;for(E=0;E<C;E++){A=H[E];for(G in A){B=A[G];I.push(G,B)}}}I.pushObject(J.getDefaultData());return I.serialize()};BG.communication.formatter.FormatterFactoryV0.createListPresonalResourcesCommand=function(D){var A=BG.communication.formatter.FormatterFactoryV0;var F=BG.application.Application.getInstance().getParameters();var E=[];if(isarray(D)){E=D}else{if(isstring(D)){E=[D]}}var C=new BG.communication.formatter.RequestFormatter();C.pushObject(A.getUserPrefix());C.push("ACTION","ManagePersonalResources");C.push("manageAction","listResources");for(var B=0;B<E.length;B++){C.push("resourceType",E[B])}C.pushObject(A.getDefaultData());return C.serialize()};BG.communication.formatter.FormatterFactoryV0.createSavePersonalResourceCommand=function(A,F,B,D,E,G){var I=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var H=new BG.communication.formatter.RequestFormatter();H.pushObject(I.getUserPrefix());H.push("ACTION","ManagePersonalResources");H.push("manageAction","saveResource");H.push("resourceName",A);H.push("resourceType",F);H.push("sharing",B?"1":"0");H.push("fileName",D);H.push("uploadName",E);H.push("description",G);H.push("overwrite","0");H.pushObject(I.getDefaultData());return H.serialize()};BG.communication.formatter.FormatterFactoryV0.createEditPersonalResourceCommand=function(B,A,C,E,F,G){var I=BG.communication.formatter.FormatterFactoryV0;var D=BG.application.Application.getInstance().getParameters();var H=new BG.communication.formatter.RequestFormatter();H.pushObject(I.getUserPrefix());H.push("ACTION","ManagePersonalResources");H.push("manageAction","saveResource");if(isset(C)){H.push("sharing",C?"1":"0")}if(isset(E)&&isset(F)){H.push("fileName",E);H.push("uploadName",F)}if(isset(G)){H.push("description",G)}H.push("resourceID",B);if(isset(A)){H.push("resourceNewName",A)}H.push("overwrite","1");H.pushObject(I.getDefaultData());return H.serialize()};BG.communication.formatter.FormatterFactoryV0.createDropPersonalResourceCommand=function(D){var A=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","ManagePersonalResources");B.push("manageAction","dropResource");B.push("resourceID",D);B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createLoadPersonalResourceCommand=function(D){var A=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","ManagePersonalResources");B.push("manageAction","loadResource");B.push("resourceID",D);B.pushObject(A.getDefaultData());return B.serialize()};BG.communication.formatter.FormatterFactoryV0.createEditionToolCommand=function(E,G,F,B,A){var I=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var H=new BG.communication.formatter.RequestFormatter();H.pushObject(I.getUserPrefix());var D=[];D.push("EditionTool");D.push("MODIFNAME="+E);D.push("ADDED="+G);D.push("EDITED="+F);D.push("DELETED="+B);D.push("SELECTION");D.push("EMPRISE="+A.serialize());
H.push("ACTION",D.join("!"));H.pushObject(I.getDefaultData());return H};BG.communication.formatter.FormatterFactoryV0.createGetExportModelsCommand=function(){var A=BG.communication.formatter.FormatterFactoryV0;var C=BG.application.Application.getInstance().getParameters();var B=new BG.communication.formatter.RequestFormatter();B.pushObject(A.getUserPrefix());B.push("ACTION","GetExportModelList");B.pushObject(A.getDefaultData());return B};BG.communication.formatter.FormatterFactoryV0.createExportPDFModelMapCommand=function(A,E,F,C,G){var I=BG.communication.formatter.FormatterFactoryV0;var B=BG.application.Application.getInstance().getParameters();var H=new BG.communication.formatter.RequestFormatter();H.pushObject(I.getUserPrefix());var D=[];D.push("BuildMap");D.push("EMPRISE="+A.serialize());D.push("OUTPUTSIZE="+E.serialize());D.push("EXPORTMODEL="+F);if(C!==""){D.push("PRESERVEECHELLE="+C)}D.push("FORMAT=1");H.push("ACTION",D.join("!"));if(isset(G)){H.pushObject(G)}H.pushObject(I.getDefaultData());return H};BG.communication.formatter.FormatterFactoryV0.createSelectToolCommand=function(A,D,F){var B=BG.communication.formatter.FormatterFactoryV0;var C=new BG.communication.formatter.RequestFormatter();C.pushObject(B.getUserPrefix());var E=[];E.push("SelectTool");E.push("SHAPES="+A);E.push("EMPRISE="+D.serialize());E.push("OUTPUTSIZE="+F.serialize());E.push("SHOWLEGENDE=0");E.push("CLEAR_DRAWING=1");C.push("ACTION",E.join("!"));C.pushObject(B.getDefaultData());return C};BG.communication.formatter.FormatterFactoryV0.v4MapTypeToV0MapFormat=function(A){if(A==BG.model.MapModel.TYPE_FLASH){return 4}if(A==BG.model.MapModel.TYPE_IMAGE){return 4}return 0};

