var GoVietNews = { ajaxQueue: [] };if(typeof GoViet=="undefined"||!GoViet){var GoViet={}}GoViet.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=F[I].split(".");G=GoViet;for(J=(H[0]=="GoViet")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]]}}return G};GoViet.log=function(F,E,G){var H=GoViet.widget.Logger;if(H&&H.log){return H.log(F,E,G)}else{return false}};GoViet.register=function(M,R,J){var N=GoViet.env.modules;if(!N[M]){N[M]={versions:[],builds:[]}}var L=N[M],O=J.version,P=J.build,Q=GoViet.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{GoViet.log("mainClass is undefined for module "+M,"warn")}};GoViet.env=GoViet.env||{modules:[],listeners:[]};GoViet.env.getVersion=function(B){return GoViet.env.modules[B]||null};GoViet.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(){GoViet.namespace("util","widget","example");if("undefined"!==typeof GoViet_config){var H=GoViet_config.listener,E=GoViet.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)}}}})();GoViet.lang=GoViet.lang||{};(function(){var D=GoViet.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:(GoViet.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);GoViet.util.Lang=D;D.augment=D.augmentProto;GoViet.augment=D.augmentProto;GoViet.extend=D.extend})();GoViet.register("GoViet",GoViet,{version:"2.5.2",build:"1076"});GoViet.util.Get=function(){var X={},Y=0,T=0,f=false,W=GoViet.env.ua,S=GoViet.lang;var a=function(B,E,A){var D=A||window,G=D.document,F=G.createElement(B);for(var C in E){if(E[C]&&GoViet.lang.hasOwnProperty(E,C)){F.setAttribute(C,E[C])}}return F};var c=function(D,C,A){var B=A||"utf-8";return a("link",{"id":"yui__dyn_"+(T++),"type":"text/css","charset":B,"rel":"stylesheet","href":D},C)};var V=function(D,C,A){var B=A||"utf-8";return a("script",{"id":"yui__dyn_"+(T++),"type":"text/javascript","charset":B,"src":D},C)};var k=function(B,A){return{tId:B.tId,win:B.win,data:B.data,nodes:B.nodes,msg:A,purge:function(){g(this.tId)}}};var j=function(D,A){var C=X[A],B=(S.isString(D))?C.win.document.getElementById(D):D;if(!B){U(A,"target node not found: "+D)}return B};var U=function(A,B){var D=X[A];if(D.onFailure){var C=D.scope||D.win;D.onFailure.call(C,k(D,B))}};var h=function(A){var D=X[A];D.finished=true;if(D.aborted){var B="transaction "+A+" was aborted";U(A,B);return }if(D.onSuccess){var C=D.scope||D.win;D.onSuccess.call(C,k(D))}};var d=function(F,B){var G=X[F];if(G.aborted){var D="transaction "+F+" was aborted";U(F,D);return }if(B){G.url.shift();if(G.varName){G.varName.shift()}}else{G.url=(S.isString(G.url))?[G.url]:G.url;if(G.varName){G.varName=(S.isString(G.varName))?[G.varName]:G.varName}}var J=G.win,K=J.document,A=K.getElementsByTagName("head")[0],E;if(G.url.length===0){if(G.type==="script"&&W.webkit&&W.webkit<420&&!G.finalpass&&!G.varName){var C=V(null,G.win,G.charset);C.innerHTML='GoViet.util.Get._finalize("'+F+'");';G.nodes.push(C);A.appendChild(C)}else{h(F)}return }var H=G.url[0];if(G.type==="script"){E=V(H,J,G.charset)}else{E=c(H,J,G.charset)}e(G.type,E,F,H,J,G.url.length);G.nodes.push(E);if(G.insertBefore){var I=j(G.insertBefore,F);if(I){I.parentNode.insertBefore(E,I)}}else{A.appendChild(E)}if((W.webkit||W.gecko)&&G.type==="css"){d(F,H)}};var Z=function(){if(f){return }f=true;for(var B in X){var A=X[B];if(A.autopurge&&A.finished){g(A.tId);delete X[B]}}f=false};var g=function(F){var A=X[F];if(A){var G=A.nodes,E=G.length,H=A.win.document,B=H.getElementsByTagName("head")[0];if(A.insertBefore){var C=j(A.insertBefore,F);if(C){B=C.parentNode}}for(var D=0;D<E;D=D+1){B.removeChild(G[D])}}A.nodes=[]};var b=function(D,E,C){var A="q"+(Y++);C=C||{};if(Y%GoViet.util.Get.PURGE_THRESH===0){Z()}X[A]=S.merge(C,{tId:A,type:D,url:E,finished:false,nodes:[]});var B=X[A];B.win=B.win||window;B.scope=B.scope||B.win;B.autopurge=("autopurge" in B)?B.autopurge:(D==="script")?true:false;S.later(0,B,d,A);return{tId:A}};var e=function(I,D,E,G,C,B,J){var A=J||d;if(W.ie){D.onreadystatechange=function(){var K=this.readyState;if("loaded"===K||"complete"===K){A(E,G)}}}else{if(W.webkit){if(I==="script"){if(W.webkit>=420){D.addEventListener("load",function(){A(E,G)})}else{var H=X[E];if(H.varName){var F=GoViet.util.Get.POLL_FREQ;H.maxattempts=GoViet.util.Get.TIMEOUT/F;H.attempts=0;H._cache=H.varName[0].split(".");H.timer=S.later(F,H,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";H.timer.cancel();U(E,L)}else{}return }}H.timer.cancel();A(E,G)},null,true)}else{S.later(GoViet.util.Get.POLL_FREQ,null,A,[E,G])}}}}else{D.onload=function(){A(E,G)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(A){S.later(0,null,h,A)},abort:function(B){var A=(S.isString(B))?B:B.tId;var C=X[A];if(C){C.aborted=true}},script:function(B,A){return b("script",B,A)},css:function(B,A){return b("css",B,A)}}}();GoViet.register("get",GoViet.util.Get,{version:"2.5.2",build:"1076"});(function(){var Y=GoViet,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{"GoViet":true,"get":true},info:{"base":"http://yui.GoVietapis.com/2.5.2/build/","skin":{"defaultSkin":"sam","base":"assets/skins/","path":"skin.css","after":["reset","fonts","grids","base"],"rollup":3},dupsAllowed:["GoViet","get"],"moduleInfo":{"animation":{"type":"js","path":"animation/animation-min.js","requires":["dom","event"]},"autocomplete":{"type":"js","path":"autocomplete/autocomplete-min.js","requires":["dom","event"],"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},"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-beta-min.js","requires":["GoViet"]},"datasource":{"type":"js","path":"datasource/datasource-beta-min.js","requires":["event"],"optional":["connection"]},"datatable":{"type":"js","path":"datatable/datatable-beta-min.js","requires":["element","datasource"],"optional":["calendar","dragdrop"],"skinnable":true},"dom":{"type":"js","path":"dom/dom-min.js","requires":["GoViet"]},"dragdrop":{"type":"js","path":"dragdrop/dragdrop-min.js","requires":["dom","event"]},"editor":{"type":"js","path":"editor/editor-beta-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":["GoViet"]},"fonts":{"type":"css","path":"fonts/fonts-min.css"},"get":{"type":"js","path":"get/get-min.js","requires":["GoViet"]},"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":["GoViet"]},"layout":{"type":"js","path":"layout/layout-beta-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},"profiler":{"type":"js","path":"profiler/profiler-beta-min.js","requires":["GoViet"]},"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-beta-min.js","requires":["dom","event","dragdrop","element"],"optional":["animation"],"skinnable":true},"selector":{"type":"js","path":"selector/selector-beta-min.js","requires":["GoViet","dom"]},"simpleeditor":{"type":"js","path":"editor/simpleeditor-beta-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"]},"tabview":{"type":"js","path":"tabview/tabview-min.js","requires":["element"],"optional":["connection"],"skinnable":true},"treeview":{"type":"js","path":"treeview/treeview-min.js","requires":["event"],"skinnable":true},"uploader":{"type":"js","path":"uploader/uploader-experimental.js","requires":["element"]},"utilities":{"type":"js","path":"utilities/utilities.js","supersedes":["GoViet","event","dragdrop","animation","dom","connection","element","GoViet-dom-event","get","yuiloader","yuiloader-dom-event"],"rollup":8},"GoViet":{"type":"js","path":"GoViet/GoViet-min.js"},"GoViet-dom-event":{"type":"js","path":"GoViet-dom-event/GoViet-dom-event.js","supersedes":["GoViet","event","dom"],"rollup":3},"yuiloader":{"type":"js","path":"yuiloader/yuiloader-beta-min.js","supersedes":["GoViet","get"]},"yuiloader-dom-event":{"type":"js","path":"yuiloader-dom-event/yuiloader-dom-event.js","supersedes":["GoViet","dom","event","get","yuiloader","GoViet-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))}}};GoViet.util.YUILoader=function(o){this._internalCallback=null;this._useGoVietListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;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._useGoVietListener){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(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){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){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;if(this.dirty||!this.rollups){for(i in this.moduleInfo){m=this.moduleInfo[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=this.moduleInfo[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(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){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]]}}}}}}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){if(loaded[bb]){return false}var ii,mm=info[aa],rr=mm&&mm.expanded,after=mm&&mm.after,other=info[bb],optional=mm&&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)){return true}return false};for(var i in this.required){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)},insert:function(o,type){this.calculate(o);if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js")};this.insert(null,"css");return }this._loading=true;this.loadType=type;this.loadNext()},sandbox:function(o,type){if(o){}else{}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 GoViet.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.call(this.scope,{msg:"undefined module "+m,data:this.data});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||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||"GoViet";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.scope,{msg:this.varName+" reference failure",data:this.data})}}},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||this._url(m.path),self=this,c=function(o){self.loadNext(o.data)};if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useGoVietListener=true}fn(url,{data:s[i],onSuccess:c,insertBefore:this.insertBefore,charset:this.charset,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||GoViet;if(r.util&&r.util.Event){r.util.Event._load()}},_url:function(path){var u=this.base||"",f=this.filter;u=u+path;if(f){u=u.replace(new RegExp(f.searchExp),f.replaceStr)}return u}}})();(function(){var R=GoViet.util,X,Z,Y={},c={},V=window.document;GoViet.env._id_counter=GoViet.env._id_counter||0;var Q=GoViet.env.ua.opera,W=GoViet.env.ua.webkit,S=GoViet.env.ua.gecko,b=GoViet.env.ua.ie;var d={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var U=function(B){if(!d.HYPHEN.test(B)){return B}if(Y[B]){return Y[B]}var A=B;while(d.HYPHEN.exec(A)){A=A.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}Y[B]=A;return A};var T=function(A){var B=c[A];if(!B){B=new RegExp("(?:^|\\s+)"+A+"(?:\\s+|$)");c[A]=B}return B};if(V.defaultView&&V.defaultView.getComputedStyle){X=function(D,A){var B=null;if(A=="float"){A="cssFloat"}var C=D.ownerDocument.defaultView.getComputedStyle(D,"");if(C){B=C[U(A)]}return D.style[A]||B}}else{if(V.documentElement.currentStyle&&b){X=function(E,C){switch(U(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{X=function(B,A){return B.style[A]}}}if(b){Z=function(C,B,A){switch(B){case"opacity":if(GoViet.lang.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{Z=function(C,B,A){if(B=="float"){B="cssFloat"}C.style[B]=A}}var P=function(B,A){return B&&B.nodeType==1&&(!A||A(B))};GoViet.util.Dom={get:function(B){if(B&&(B.nodeType||B.item)){return B}if(GoViet.lang.isString(B)||!B){return V.getElementById(B)}if(B.length!==undefined){var A=[];for(var C=0,D=B.length;C<D;++C){A[A.length]=R.Dom.get(B[C])}return A}return B},getStyle:function(C,A){A=U(A);var B=function(D){return X(D,A)};return R.Dom.batch(C,B,R.Dom,true)},setStyle:function(D,B,A){B=U(B);var C=function(E){Z(E,B,A)};R.Dom.batch(D,C,R.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 a(C)};return R.Dom.batch(B,A,R.Dom,true)},getX:function(B){var A=function(C){return R.Dom.getXY(C)[0]};return R.Dom.batch(B,A,R.Dom,true)},getY:function(B){var A=function(C){return R.Dom.getXY(C)[1]};return R.Dom.batch(B,A,R.Dom,true)},setXY:function(D,A,B){var C=function(F){var G=this.getStyle(F,"position");if(G=="static"){this.setStyle(F,"position","relative");G="relative"}var I=this.getXY(F);if(I===false){return false}var E=[parseInt(this.getStyle(F,"left"),10),parseInt(this.getStyle(F,"top"),10)];if(isNaN(E[0])){E[0]=(G=="relative")?0:F.offsetLeft}if(isNaN(E[1])){E[1]=(G=="relative")?0:F.offsetTop}if(A[0]!==null){F.style.left=A[0]-I[0]+E[0]+"px"}if(A[1]!==null){F.style.top=A[1]-I[1]+E[1]+"px"}if(!B){var H=this.getXY(F);if((A[0]!==null&&H[0]!=A[0])||(A[1]!==null&&H[1]!=A[1])){this.setXY(F,A,true)}}};R.Dom.batch(D,C,R.Dom,true)},setX:function(A,B){R.Dom.setXY(A,[B,null])},setY:function(B,A){R.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=R.Region.getRegion(D);return C};return R.Dom.batch(B,A,R.Dom,true)},getClientWidth:function(){return R.Dom.getViewportWidth()},getClientHeight:function(){return R.Dom.getViewportHeight()},getElementsByClassName:function(E,A,D,C){A=A||"*";D=(D)?R.Dom.get(D):null||V;if(!D){return[]}var H=[],I=D.getElementsByTagName(A),B=T(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=T(C);var A=function(E){return D.test(E.className)};return R.Dom.batch(B,A,R.Dom,true)},addClass:function(B,C){var A=function(D){if(this.hasClass(D,C)){return false}D.className=GoViet.lang.trim([D.className,C].join(" "));return true};return R.Dom.batch(B,A,R.Dom,true)},removeClass:function(B,C){var D=T(C);var A=function(F){if(!C||!this.hasClass(F,C)){return false}var E=F.className;F.className=E.replace(D," ");if(this.hasClass(F,C)){this.removeClass(F,C)}F.className=GoViet.lang.trim(F.className);return true};return R.Dom.batch(B,A,R.Dom,true)},replaceClass:function(B,D,E){if(!E||D===E){return false}var C=T(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.replaceClass(F,D,E)}F.className=GoViet.lang.trim(F.className);return true};return R.Dom.batch(B,A,R.Dom,true)},generateId:function(C,A){A=A||"yui-gen";var B=function(E){if(E&&E.id){return E.id}var D=A+GoViet.env._id_counter++;if(E){E.id=D}return D};return R.Dom.batch(C,B,R.Dom,true)||B.apply(R.Dom,arguments)},isAncestor:function(B,A){B=R.Dom.get(B);A=R.Dom.get(A);if(!B||!A){return false}if(B.contains&&A.nodeType&&!W){return B.contains(A)}else{if(B.compareDocumentPosition&&A.nodeType){return !!(B.compareDocumentPosition(A)&16)}else{if(A.nodeType){return !!this.getAncestorBy(A,function(C){return C==B})}}}return false},inDocument:function(A){return this.isAncestor(V.documentElement,A)},getElementsBy:function(A,G,F,D){G=G||"*";F=(F)?R.Dom.get(F):null||V;if(!F){return[]}var E=[],B=F.getElementsByTagName(G);for(var C=0,H=B.length;C<H;++C){if(A(B[C])){E[E.length]=B[C];if(D){D(B[C])}}}return E},batch:function(D,A,B,F){D=(D&&(D.tagName||D.item))?D:R.Dom.get(D);if(!D||!A){return false}var E=(F)?B:window;if(D.tagName||D.length===undefined){return A.call(E,D,B)}var C=[];for(var G=0,H=D.length;G<H;++G){C[C.length]=A.call(E,D[G],B)}return C},getDocumentHeight:function(){var A=(V.compatMode!="CSS1Compat")?V.body.scrollHeight:V.documentElement.scrollHeight;var B=Math.max(A,R.Dom.getViewportHeight());return B},getDocumentWidth:function(){var A=(V.compatMode!="CSS1Compat")?V.body.scrollWidth:V.documentElement.scrollWidth;var B=Math.max(A,R.Dom.getViewportWidth());return B},getViewportHeight:function(){var B=self.innerHeight;var A=V.compatMode;if((A||b)&&!Q){B=(A=="CSS1Compat")?V.documentElement.clientHeight:V.body.clientHeight}return B},getViewportWidth:function(){var B=self.innerWidth;var A=V.compatMode;if(A||b){B=(A=="CSS1Compat")?V.documentElement.clientWidth:V.body.clientWidth}return B},getAncestorBy:function(B,A){while(B=B.parentNode){if(P(B,A)){return B}}return null},getAncestorByClassName:function(B,C){B=R.Dom.get(B);if(!B){return null}var A=function(D){return R.Dom.hasClass(D,C)};return R.Dom.getAncestorBy(B,A)},getAncestorByTagName:function(B,C){B=R.Dom.get(B);if(!B){return null}var A=function(D){return D.tagName&&D.tagName.toUpperCase()==C.toUpperCase()};return R.Dom.getAncestorBy(B,A)},getPreviousSiblingBy:function(B,A){while(B){B=B.previousSibling;if(P(B,A)){return B}}return null},getPreviousSibling:function(A){A=R.Dom.get(A);if(!A){return null}return R.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(B,A){while(B){B=B.nextSibling;if(P(B,A)){return B}}return null},getNextSibling:function(A){A=R.Dom.get(A);if(!A){return null}return R.Dom.getNextSiblingBy(A)},getFirstChildBy:function(C,A){var B=(P(C.firstChild,A))?C.firstChild:null;return B||R.Dom.getNextSiblingBy(C.firstChild,A)},getFirstChild:function(B,A){B=R.Dom.get(B);if(!B){return null}return R.Dom.getFirstChildBy(B)},getLastChildBy:function(C,A){if(!C){return null}var B=(P(C.lastChild,A))?C.lastChild:null;return B||R.Dom.getPreviousSiblingBy(C.lastChild,A)},getLastChild:function(A){A=R.Dom.get(A);return R.Dom.getLastChildBy(A)},getChildrenBy:function(C,A){var B=R.Dom.getFirstChildBy(C,A);var D=B?[B]:[];R.Dom.getNextSiblingBy(B,function(E){if(!A||A(E)){D[D.length]=E}return false});return D},getChildren:function(A){A=R.Dom.get(A);if(!A){}return R.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||V;return Math.max(A.documentElement.scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||V;return Math.max(A.documentElement.scrollTop,A.body.scrollTop)},insertBefore:function(A,B){A=R.Dom.get(A);B=R.Dom.get(B);if(!A||!B||!B.parentNode){return null}return B.parentNode.insertBefore(A,B)},insertAfter:function(A,B){A=R.Dom.get(A);B=R.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=R.Dom.getDocumentScrollTop(),C=R.Dom.getDocumentScrollLeft(),A=R.Dom.getViewportWidth()+C,D=R.Dom.getViewportHeight()+B;return new R.Region(B,A,D,C)}};var a=function(){if(V.documentElement.getBoundingClientRect){return function(B){var A=B.getBoundingClientRect();var C=B.ownerDocument;return[A.left+R.Dom.getDocumentScrollLeft(C),A.top+R.Dom.getDocumentScrollTop(C)]}}else{return function(B){var A=[B.offsetLeft,B.offsetTop];var C=B.offsetParent;var D=(W&&R.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&&W&&R.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&&!d.ROOT_TAG.test(C.tagName)){if(C.scrollTop||C.scrollLeft){if(!d.OP_SCROLL.test(R.Dom.getStyle(C,"display"))){if(!Q||R.Dom.getStyle(C,"overflow")!=="visible"){A[0]-=C.scrollLeft;A[1]-=C.scrollTop}}}C=C.parentNode}return A}}}()})();GoViet.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};GoViet.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};GoViet.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};GoViet.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 GoViet.util.Region(I,H,F,J)}else{return null}};GoViet.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 GoViet.util.Region(I,H,F,J)};GoViet.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}")};GoViet.util.Region.getRegion=function(J){var H=GoViet.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 GoViet.util.Region(K,I,G,L)};GoViet.util.Point=function(C,D){if(GoViet.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};GoViet.util.Point.prototype=new GoViet.util.Region();GoViet.register("dom",GoViet.util.Dom,{version:"2.5.2",build:"1076"});GoViet.util.CustomEvent=function(H,J,I,F){this.type=H;this.scope=J||window;this.silent=I;this.signature=F||GoViet.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var G="_YUICEOnSubscribe";if(H!==G){this.subscribeEvent=new GoViet.util.CustomEvent(G,this,true)}this.lastError=null};GoViet.util.CustomEvent.LIST=0;GoViet.util.CustomEvent.FLAT=1;GoViet.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 GoViet.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=GoViet.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==GoViet.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}};GoViet.util.Subscriber=function(F,E,D){this.fn=F;this.obj=GoViet.lang.isUndefined(E)?null:E;this.override=D};GoViet.util.Subscriber.prototype.getScope=function(B){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return B};GoViet.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};GoViet.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!GoViet.util.Event){GoViet.util.Event=function(){var Q=false;var P=[];var O=[];var R=[];var T=[];var L=0;var S=[];var M=[];var N=0;var K={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};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,lastError:null,isSafari:GoViet.env.ua.webkit,webkit:GoViet.env.ua.webkit,isIE:GoViet.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(D,G,C,E,F){var B=(GoViet.lang.isString(D))?[D]:D;for(var A=0;A<B.length;A=A+1){S.push({id:B[A],fn:G,obj:C,override:E,checkReady:F})}L=this.POLL_RETRYS;this.startInterval()},onContentReady:function(D,B,C,A){this.onAvailable(D,B,C,A,true)},onDOMReady:function(B,C,A){if(this.DOMReady){setTimeout(function(){var D=window;if(A){if(A===true){D=C}else{D=A}}B.call(D,"DOMReady",[],C)},0)}else{this.DOMReadyEvent.subscribe(B,C,A)}},addListener:function(b,d,D,I,c){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var H=0,F=b.length;H<F;++H){C=this.on(b[H],d,D,I,c)&&C}return C}else{if(GoViet.lang.isString(b)){var J=this.getEl(b);if(J){b=J}else{this.onAvailable(b,function(){GoViet.util.Event.on(b,d,D,I,c)});return true}}}if(!b){return false}if("unload"==d&&I!==this){O[O.length]=[b,d,D,I,c];return true}var A=b;if(c){if(c===true){A=I}else{A=c}}var a=function(U){return D.call(A,GoViet.util.Event.getEvent(U,b),I)};var B=[b,d,D,a,A,I,c];var G=P.length;P[G]=B;if(this.useLegacyEvent(b,d)){var Z=this.getLegacyIndex(b,d);if(Z==-1||b!=R[Z][0]){Z=R.length;M[b.id+d]=Z;R[Z]=[b,d,b["on"+d]];T[Z]=[];b["on"+d]=function(U){GoViet.util.Event.fireLegacyEvent(GoViet.util.Event.getEvent(U),Z)}}T[Z].push(B)}else{try{this._simpleAdd(b,d,a,false)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}}return true},fireLegacyEvent:function(F,H){var D=true,J,B,C,A,E;B=T[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=R[H];if(J&&J[2]){J[2](F)}return D},getLegacyIndex:function(A,C){var B=this.generateId(A)+C;if(typeof M[B]=="undefined"){return -1}else{return M[B]}},useLegacyEvent:function(A,C){if(this.webkit&&("click"==C||"dblclick"==C)){var B=parseInt(this.webkit,10);if(!isNaN(B)&&B<418){return true}}return false},removeListener:function(W,X,C){var H,E,A;if(typeof W=="string"){W=this.getEl(W)}else{if(this._isValidCollection(W)){var B=true;for(H=W.length-1;H>-1;H--){B=(this.removeListener(W[H],X,C)&&B)}return B}}if(!C||!C.call){return this.purgeElement(W,false,X)}if("unload"==X){for(H=O.length-1;H>-1;H--){A=O[H];if(A&&A[0]==W&&A[1]==X&&A[2]==C){O.splice(H,1);return true}}return false}var G=null;var F=arguments[3];if("undefined"===typeof F){F=this._getCacheIndex(W,X,C)}if(F>=0){G=P[F]}if(!W||!G){return false}if(this.useLegacyEvent(W,X)){var I=this.getLegacyIndex(W,X);var J=T[I];if(J){for(H=0,E=J.length;H<E;++H){A=J[H];if(A&&A[this.EL]==W&&A[this.TYPE]==X&&A[this.FN]==C){J.splice(H,1);break}}}}else{try{this._simpleRemove(W,X,G[this.WFN],false)}catch(D){this.lastError=D;return false}}delete P[F][this.WFN];delete P[F][this.FN];P.splice(F,1);return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},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(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.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(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(GoViet.env.ua.webkit&&(B in K)){B=K[B]}return B},_getCacheIndex:function(D,C,E){for(var F=0,A=P.length;F<A;F=F+1){var B=P[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+N;++N;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 GoViet.util.CustomEvent("DOMReady",this),_load:function(A){if(!Q){Q=true;var B=GoViet.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=GoViet.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(S.length===0){L=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 D=!Q;if(!D){D=(L>0&&S.length>0)}var E=[];var C=function(J,I){var V=J;if(I.override){if(I.override===true){V=I.obj}else{V=I.override}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=S.length;A<B;A=A+1){F=S[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(Q||G.nextSibling||!D){H.push(F);S[A]=null}}else{C(G,F);S[A]=null}}else{E.push(F)}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F)}L--;if(D){for(A=S.length-1;A>-1;A--){F=S[A];if(!F||!F.id){S.splice(A,1)}}this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false},purgeElement:function(F,E,C){var H=(GoViet.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[P,O]}else{if(J==="unload"){I=[O]}else{I=[P]}}var C=(GoViet.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],index:D})}}}}return(E.length)?E:null},_unload:function(C){var I=GoViet.util.Event,F,G,H,D,E,B=O.slice();for(F=0,D=O.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}}O=null;if(P){for(G=P.length-1;G>-1;G--){H=P[G];if(H){I.removeListener(H[I.EL],H[I.TYPE],H[I.FN],G)}}H=null}R=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(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=GoViet.util.Event;A.on=A.addListener;if(A.isIE){GoViet.util.Event.onDOMReady(GoViet.util.Event._tryPreloadAttach,GoViet.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()})()}GoViet.util.EventProvider=function(){};GoViet.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(GoViet.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 GoViet.util.CustomEvent(P,O,R,GoViet.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}};GoViet.util.KeyListener=function(G,H,L,K){if(!G){}else{if(!H){}else{if(!L){}}}if(!K){K=GoViet.util.KeyListener.KEYDOWN}var J=new GoViet.util.CustomEvent("keyPressed");this.enabledEvent=new GoViet.util.CustomEvent("enabled");this.disabledEvent=new GoViet.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){GoViet.util.Event.addListener(G,K,I);this.enabledEvent.fire(H)}this.enabled=true};this.disable=function(){if(this.enabled){GoViet.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+"]":"")}};GoViet.util.KeyListener.KEYDOWN="keydown";GoViet.util.KeyListener.KEYUP="keyup";GoViet.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};GoViet.register("event",GoViet.util.Event,{version:"2.5.2",build:"1076"});GoViet.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(GoViet.util.Event){GoViet.util.Event.addListener(document,"click",function(D){var C=GoViet.util.Event.getTarget(D);if(C.nodeName.toLowerCase()=="input"&&(C.type&&C.type.toLowerCase()=="submit")){GoViet.util.Connect._submitElementValue=encodeURIComponent(C.name)+"="+encodeURIComponent(C.value)}});return true}return false})(),startEvent:new GoViet.util.CustomEvent("start"),completeEvent:new GoViet.util.CustomEvent("complete"),successEvent:new GoViet.util.CustomEvent("success"),failureEvent:new GoViet.util.CustomEvent("failure"),uploadEvent:new GoViet.util.CustomEvent("upload"),abortEvent:new GoViet.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);GoViet.log("ActiveX Program Id "+B+" added to _msxml_progid.","info","Connection")},setDefaultPostHeader:function(B){if(typeof B=="string"){this._default_post_header=B;GoViet.log("Default POST header set to "+B,"info","Connection")}else{if(typeof B=="boolean"){this._use_default_post_header=B}}},setDefaultXhrHeader:function(B){if(typeof B=="string"){this._default_xhr_header=B;GoViet.log("Default XHR header set to "+B,"info","Connection")}else{this._use_default_xhr_header=B}},setPollingInterval:function(B){if(typeof B=="number"&&isFinite(B)){this._polling_interval=B;GoViet.log("Default polling interval set to "+B+"ms","info","Connection")}},createXhrObject:function(G){var H,F;try{F=new XMLHttpRequest();H={conn:F,tId:G};GoViet.log("XHR object created for transaction "+G,"info","Connection")}catch(I){for(var J=0;J<this._msxml_progid.length;++J){try{F=new ActiveXObject(this._msxml_progid[J]);H={conn:F,tId:G};GoViet.log("ActiveX XHR object created for transaction "+G,"info","Connection");break}catch(I){}}}finally{return H}},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){GoViet.log("Unable to create connection object.","error","Connection");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);GoViet.log("Initialize transaction header X-Request-Header to XMLHttpRequest.","info","Connection")}}if((H.toUpperCase()=="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);GoViet.log("Initialize header Content-Type to application/x-www-form-urlencoded; UTF-8 for POST transaction.","info","Connection")}if(this._has_default_headers||this._has_http_headers){this.setHeader(J)}this.handleReadyState(J,I);J.conn.send(G||"");GoViet.log("Transaction "+J.tId+" sent.","info","Connection");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){for(var F in E.customevents){if(this._customEvents[F][0]){D[this._customEvents[F][0]]=new GoViet.util.CustomEvent(this._customEvents[F][1],(E.scope)?E.scope:null);GoViet.log("Transaction-specific Custom Event "+D[this._customEvents[F][1]]+" created.","info","Connection");D[this._customEvents[F][0]].subscribe(E.customevents[F]);GoViet.log("Transaction-specific Custom Event "+D[this._customEvents[F][1]]+" subscribed.","info","Connection")}}},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);GoViet.log("Success callback. HTTP code is "+L,"info","Connection")}else{I.success.apply(I.scope,[M]);GoViet.log("Success callback with scope. HTTP code is "+L,"info","Connection")}}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);GoViet.log("Failure callback. Exception detected. Status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);GoViet.log("Failure callback with scope. Exception detected. Status code is "+L,"warn","Connection")}}break;default:M=this.createResponseObject(J,N);if(I&&I.failure){if(!I.scope){I.failure(M);GoViet.log("Failure callback. HTTP status code is "+L,"warn","Connection")}else{I.failure.apply(I.scope,[M]);GoViet.log("Failure callback with scope. HTTP status code is "+L,"warn","Connection")}}}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){if(this._has_default_headers){for(var D in this._default_headers){if(GoViet.lang.hasOwnProperty(this._default_headers,D)){C.conn.setRequestHeader(D,this._default_headers[D]);GoViet.log("Default HTTP header "+D+" set with value of "+this._default_headers[D],"info","Connection")}}}if(this._has_http_headers){for(var D in this._http_headers){if(GoViet.lang.hasOwnProperty(this._http_headers,D)){C.conn.setRequestHeader(D,this._http_headers[D]);GoViet.log("HTTP header "+D+" set with value of "+this._http_headers[D],"info","Connection")}}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(R,X,O){this.resetFormState();var S;if(typeof R=="string"){S=(document.getElementById(R)||document.forms[R])}else{if(typeof R=="object"){S=R}else{GoViet.log("Unable to create form object "+R,"warn","Connection");return }}if(X){var W=this.createFrame((window.location.href.toLowerCase().indexOf("https")===0||O)?true:false);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=S;return }var P,T,V,Q;var U=false;for(var M=0;M<S.elements.length;M++){P=S.elements[M];Q=P.disabled;T=P.name;V=P.value;if(!Q&&T){switch(P.type){case"select-one":case"select-multiple":for(var N=0;N<P.options.length;N++){if(P.options[N].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(T)+"="+encodeURIComponent(P.options[N].attributes["value"].specified?P.options[N].value:P.options[N].text)+"&"}else{this._sFormData+=encodeURIComponent(T)+"="+encodeURIComponent(P.options[N].hasAttribute("value")?P.options[N].value:P.options[N].text)+"&"}}}break;case"radio":case"checkbox":if(P.checked){this._sFormData+=encodeURIComponent(T)+"="+encodeURIComponent(V)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(U===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+"&"}else{this._sFormData+=encodeURIComponent(T)+"="+encodeURIComponent(V)+"&"}U=true}break;default:this._sFormData+=encodeURIComponent(T)+"="+encodeURIComponent(V)+"&"}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);GoViet.log("Form initialized for transaction. HTML form POST message is: "+this._sFormData,"info","Connection");this.initHeader("Content-Type",this._default_form_header);GoViet.log("Initialize header Content-Type to application/x-www-form-urlencoded for setForm() transaction.","info","Connection");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(window.ActiveXObject){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);GoViet.log("File upload iframe created. Id is:"+F,"info","Connection")},appendPostData:function(F){var H=[];var J=F.split("&");for(var I=0;I<J.length;I++){var G=J[I].indexOf("=");if(G!=-1){H[I]=document.createElement("input");H[I].type="hidden";H[I].name=J[I].substring(0,G);H[I].value=J[I].substring(G+1);this._formNode.appendChild(H[I])}}return H},uploadFile:function(O,T,b,P){var S=this;var Y="yuiIO"+O.tId;var X="multipart/form-data";var V=document.getElementById(Y);var W=(T&&T.argument)?T.argument:null;var Q={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",b);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",Y);if(GoViet.env.ua.ie){this._formNode.setAttribute("encoding",X)}else{this._formNode.setAttribute("enctype",X)}if(P){var U=this.appendPostData(P)}this._formNode.submit();this.startEvent.fire(O,W);if(O.startEvent){O.startEvent.fire(O,W)}if(T&&T.timeout){this._timeOut[O.tId]=window.setTimeout(function(){S.abort(O,T,true)},T.timeout)}if(U&&U.length>0){for(var Z=0;Z<U.length;Z++){this._formNode.removeChild(U[Z])}}for(var R in Q){if(GoViet.lang.hasOwnProperty(Q,R)){if(Q[R]){this._formNode.setAttribute(R,Q[R])}else{this._formNode.removeAttribute(R)}}}this.resetFormState();var a=function(){if(T&&T.timeout){window.clearTimeout(S._timeOut[O.tId]);delete S._timeOut[O.tId]}S.completeEvent.fire(O,W);if(O.completeEvent){O.completeEvent.fire(O,W)}var A={};A.tId=O.tId;A.argument=T.argument;try{A.responseText=V.contentWindow.document.body?V.contentWindow.document.body.innerHTML:V.contentWindow.document.documentElement.textContent;A.responseXML=V.contentWindow.document.XMLDocument?V.contentWindow.document.XMLDocument:V.contentWindow.document}catch(B){}if(T&&T.upload){if(!T.scope){T.upload(A);GoViet.log("Upload callback.","info","Connection")}else{T.upload.apply(T.scope,[A]);GoViet.log("Upload callback with scope.","info","Connection")}}S.uploadEvent.fire(A);if(O.uploadEvent){O.uploadEvent.fire(A)}GoViet.util.Event.removeListener(V,"load",a);setTimeout(function(){document.body.removeChild(V);S.releaseObject(O);GoViet.log("File upload iframe destroyed. Id is:"+Y,"info","Connection")},100)};GoViet.util.Event.addListener(V,"load",a)},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){GoViet.util.Event.removeListener(J,"load");document.body.removeChild(J);GoViet.log("File upload iframe destroyed. Id is:"+M,"info","Connection");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);GoViet.log("Transaction "+K.tId+" aborted.","info","Connection")}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;GoViet.log("Connection object for transaction "+B.tId+" destroyed.","info","Connection");B=null}}};GoViet.register("connection",GoViet.util.Connect,{version:"2.5.2",build:"1076"});(function(){var D=GoViet.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=!GoViet.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})();GoViet.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{GoViet.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}}};GoViet.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";var G=GoViet.util;GoViet.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(D){var B=this.getEl();if(this.patterns.color.test(D)){var A=GoViet.util.Dom.getStyle(B,D);if(this.patterns.transparent.test(A)){var C=B.parentNode;A=G.Dom.getStyle(C,D);while(C&&this.patterns.transparent.test(A)){C=C.parentNode;A=G.Dom.getStyle(C,D);if(C.tagName.toUpperCase()=="HTML"){A="#fff"}}}}else{A=F.getAttribute.call(this,D)}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})();GoViet.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-GoViet.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 GoViet.util.Easing.bounceIn(H*2,0,F,G)*0.5+E}return GoViet.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=GoViet.util;GoViet.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=GoViet.util;GoViet.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})();GoViet.register("animation",GoViet.util.Anim,{version:"2.5.2",build:"1076"});if(!GoViet.util.DragDropMgr){GoViet.util.DragDropMgr=function(){var B=GoViet.util.Event;return{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 G in this.ids){for(var J in this.ids[G]){var A=this.ids[G][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();B.on(document,"mouseup",this.handleMouseUp,this,true);B.on(document,"mousemove",this.handleMouseMove,this,true);B.on(window,"unload",this._onUnload,this,true);B.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,D){if(!this.initialized){this.init()}if(!this.ids[D]){this.ids[D]={}}this.ids[D][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var E=this.ids[F];if(E&&E[A.id]){delete E[A.id]}},_remove:function(A){for(var D in A.groups){if(D&&this.ids[D][A.id]){delete this.ids[D][A.id]}}delete this.handleIds[A.id]},regHandle:function(A,D){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][D]=D},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var H=[];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){H[H.length]=L}}}return H},isLegalTarget:function(A,G){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==G.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,D){return(this.handleIds[A]&&this.handleIds[A][D])},getDDById:function(A){for(var D in this.ids){if(this.ids[D][A]){return this.ids[D][A]}}return null},handleMouseDown:function(A,E){this.currentTarget=GoViet.util.Event.getTarget(A);this.dragCurrent=E;var F=E.getEl();this.startX=GoViet.util.Event.getPageX(A);this.startY=GoViet.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var C=GoViet.util.DDM;C.startDrag(C.startX,C.startY);C.fromTimeout=true},this.clickTimeThresh)},startDrag:function(F,A){clearTimeout(this.clickTimeout);var E=this.dragCurrent;if(E&&E.events.b4StartDrag){E.b4StartDrag(F,A);E.fireEvent("b4StartDragEvent",{x:F,y:A})}if(E&&E.events.startDrag){E.startDrag(F,A);E.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){GoViet.util.Event.stopPropagation(A)}if(this.preventDefault){GoViet.util.Event.preventDefault(A)}},stopDrag:function(A,E){var F=this.dragCurrent;if(F&&!E){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})}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(GoViet.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}else{if(A.clientX<0||A.clientY<0){}}if(!this.dragThreshMet){var F=Math.abs(this.startX-GoViet.util.Event.getPageX(A));var G=Math.abs(this.startY-GoViet.util.Event.getPageY(A));if(F>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(g,r){var A=this.dragCurrent;if(!A||A.isLocked()||A.dragOnly){return }var p=GoViet.util.Event.getPageX(g),q=GoViet.util.Event.getPageY(g),n=new GoViet.util.Point(p,q),s=A.getTargetCoord(n.x,n.y),x=A.getDragEl(),y=["out","over","drop","enter"],h=new GoViet.util.Region(s.y,s.x+x.offsetWidth,s.y+x.offsetHeight,s.x),u=[],z={},m=[],AC={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var k in this.dragOvers){var AB=this.dragOvers[k];if(!this.isTypeOfDD(AB)){continue}if(!this.isOverTarget(n,AB,this.mode,h)){AC.outEvts.push(AB)}u[k]=true;delete this.dragOvers[k]}for(var l in A.groups){if("string"!=typeof l){continue}for(k in this.ids[l]){var w=this.ids[l][k];if(!this.isTypeOfDD(w)){continue}if(w.isTarget&&!w.isLocked()&&w!=A){if(this.isOverTarget(n,w,this.mode,h)){z[l]=true;if(r){AC.dropEvts.push(w)}else{if(!u[w.id]){AC.enterEvts.push(w)}else{AC.overEvts.push(w)}this.dragOvers[w.id]=w}}}}}this.interactionInfo={out:AC.outEvts,enter:AC.enterEvts,over:AC.overEvts,drop:AC.dropEvts,point:n,draggedRegion:h,sourceRegion:this.locationCache[A.id],validDrop:r};for(var AA in z){m.push(AA)}if(r&&!AC.dropEvts.length){this.interactionInfo.validDrop=false;if(A.events.invalidDrop){A.onInvalidDrop(g);A.fireEvent("invalidDropEvent",{e:g})}}for(k=0;k<y.length;k++){var d=null;if(AC[y[k]+"Evts"]){d=AC[y[k]+"Evts"]}if(d&&d.length){var v=y[k].charAt(0).toUpperCase()+y[k].substr(1),e="onDrag"+v,t="b4Drag"+v,o="drag"+v+"Event",f="drag"+v;if(this.mode){if(A.events[t]){A[t](g,d,m);A.fireEvent(t+"Event",{event:g,info:d,group:m})}if(A.events[f]){A[e](g,d,m);A.fireEvent(o,{event:g,info:d,group:m})}}else{for(var b=0,j=d.length;b<j;++b){if(A.events[t]){A[t](g,d[b].id,m[0]);A.fireEvent(t+"Event",{event:g,info:d[b].id,group:m[0]})}if(A.events[f]){A[e](g,d[b].id,m[0]);A.fireEvent(o,{event:g,info:d[b].id,group:m[0]})}}}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var G=0;G<I;++G){var J=H[G];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 H=this.ids[L][J];if(this.isTypeOfDD(H)){var A=this.getLocation(H);if(A){this.locationCache[H.id]=A}else{delete this.locationCache[H.id]}}}}},verifyEl:function(E){try{if(E){var F=E.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(V){if(!this.isTypeOfDD(V)){return null}var X=V.getEl(),S,A,N,Q,R,P,O,T,W;try{S=GoViet.util.Dom.getXY(X)}catch(U){}if(!S){return null}A=S[0];N=A+X.offsetWidth;Q=S[1];R=Q+X.offsetHeight;P=Q-V.padding[0];O=N+V.padding[1];T=R+V.padding[2];W=A-V.padding[3];return new GoViet.util.Region(P,O,T,W)},isOverTarget:function(M,L,A,R){var Q=this.locationCache[L.id];if(!Q||!this.useCache){Q=this.getLocation(L);this.locationCache[L.id]=Q}if(!Q){return false}L.cursorIsOver=Q.contains(M);var N=this.dragCurrent;if(!N||(!A&&!N.constrainX&&!N.constrainY)){return L.cursorIsOver}L.overlap=null;if(!R){var P=N.getTargetCoord(M.x,M.y);var K=N.getDragEl();R=new GoViet.util.Region(P.y,P.x+K.offsetWidth,P.y+K.offsetHeight,P.x)}var O=R.intersect(Q);if(O){L.overlap=O;return(A)?true:L.cursorIsOver}else{return false}},_onUnload:function(A,D){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var D=this.elementCache[A];if(!D||!D.el){D=this.elementCache[A]=new this.ElementWrapper(GoViet.util.Dom.get(A))}return D},getElement:function(A){return GoViet.util.Dom.get(A)},getCss:function(A){var D=GoViet.util.Dom.get(A);return(D)?D.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 GoViet.util.Dom.getX(A)},getPosY:function(A){return GoViet.util.Dom.getY(A)},swapNode:function(F,H){if(F.swapNode){F.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==F){A.insertBefore(F,H)}else{if(H==F.nextSibling){A.insertBefore(H,F)}else{F.parentNode.replaceChild(H,F);A.insertBefore(F,G)}}}},getScroll:function(){var F,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){F=A.scrollTop;H=A.scrollLeft}else{if(G){F=G.scrollTop;H=G.scrollLeft}else{}}return{top:F,left:H}},getStyle:function(A,D){return GoViet.util.Dom.getStyle(A,D)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var E=GoViet.util.Dom.getXY(A);GoViet.util.Dom.setXY(F,E)},getClientHeight:function(){return GoViet.util.Dom.getViewportHeight()},getClientWidth:function(){return GoViet.util.Dom.getViewportWidth()},numericSort:function(A,D){return(A-D)},_timeoutCount:0,_addListeners:function(){var A=GoViet.util.DDM;if(GoViet.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 E=F.parentNode;while(E){if(this.isHandle(A,E.id)){return true}else{E=E.parentNode}}}return false}}}();GoViet.util.DDM=GoViet.util.DragDropMgr;GoViet.util.DDM._addListeners()}(function(){var C=GoViet.util.Event;var D=GoViet.util.Dom;GoViet.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};GoViet.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,_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=GoViet.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)},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 K=A.which||A.button;if(this.primaryButtonOnly&&K>1){return }if(this.isLocked()){return }var L=this.b4MouseDown(A);if(this.events.b4MouseDown){L=this.fireEvent("b4MouseDownEvent",A)}var J=this.onMouseDown(A);if(this.events.mouseDown){J=this.fireEvent("mouseDownEvent",A)}if((L===false)||(J===false)){return }this.DDM.refreshCache(this.groups);var I=new GoViet.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(I,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=GoViet.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)}};GoViet.augment(GoViet.util.DragDrop,GoViet.util.EventProvider)})();GoViet.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};GoViet.extend(GoViet.util.DD,GoViet.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];GoViet.util.Dom.setXY(O,J);var N=parseInt(GoViet.util.Dom.getStyle(O,"left"),10);var P=parseInt(GoViet.util.Dom.getStyle(O,"top"),10);this.deltaSetXY=[N-M.x,P-M.y]}else{GoViet.util.Dom.setStyle(O,"left",(M.x+this.deltaSetXY[0])+"px");GoViet.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=GoViet.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(){GoViet.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(GoViet.util.Event.getPageX(B),GoViet.util.Event.getPageY(B))},b4Drag:function(B){this.setDragElPos(GoViet.util.Event.getPageX(B),GoViet.util.Event.getPageY(B))},toString:function(){return("DD "+this.id)}});GoViet.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};GoViet.util.DDProxy.dragElId="ygddfdiv";GoViet.extend(GoViet.util.DDProxy,GoViet.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=GoViet.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(GoViet.env.ua.ie){var J=document.createElement("iframe");J.setAttribute("src","javascript:");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(){GoViet.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||GoViet.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);GoViet.util.Dom.setStyle(F,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var O=GoViet.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=GoViet.util.Event.getPageX(F);var E=GoViet.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){GoViet.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(F){var G=GoViet.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");GoViet.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","")},toString:function(){return("DDProxy "+this.id)}});GoViet.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};GoViet.extend(GoViet.util.DDTarget,GoViet.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});GoViet.register("dragdrop",GoViet.util.DragDropMgr,{version:"2.5.2",build:"1076"});GoViet.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true)}};GoViet.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(D&&GoViet.lang.hasOwnProperty(F,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=GoViet.util.Lang;GoViet.util.AttributeProvider=function(){};GoViet.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D){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(A,G){this._configs=this._configs;A=((B.isString(A))?[A]:A)||this.getAttributeKeys();for(var F=0,H=A.length;F<H;++F){if(this._configs[A[F]]&&!B.isUndefined(this._configs[A[F]].value)&&!B.isNull(this._configs[A[F]].value)){this._configs[A[F]].refresh(G)}}},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)}GoViet.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 GoViet.util.Attribute(A,this)}};GoViet.augment(GoViet.util.AttributeProvider,GoViet.util.EventProvider)})();(function(){var J=GoViet.util.Dom,H=GoViet.util.AttributeProvider;GoViet.util.Element=function(B,A){if(arguments.length){this.init(B,A)}};GoViet.util.Element.prototype={DOM_EVENTS:null,appendChild:function(A){A=A.get?A.get("element"):A;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;this.get("element").insertBefore(B,A)},removeChild:function(A){A=A.get?A.get("element"):A;this.get("element").removeChild(A);return true},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");D=D||this;E=this.get("id")||E;var F=this;if(!this._events[B]){if(this.DOM_EVENTS[B]){GoViet.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)}GoViet.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.addListener.apply(this,arguments)},subscribe:function(){this.addListener.apply(this,arguments)},removeListener:function(A,B){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})},get:function(C){var A=this._configs||{};var B=A.element;if(B&&!A[C]&&!GoViet.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]&&!GoViet.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]&&!GoViet.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]&&!GoViet.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(GoViet.lang.isString(B)){K.call(this,"id",{value:C.element})}if(J.get(B)){A=true;I.call(this,C);L.call(this,C)}GoViet.util.Event.onAvailable(C.element,function(){if(!A){I.call(this,C)}this.fireEvent("available",{type:"available",target:C.element})},this,true);GoViet.util.Event.onContentReady(C.element,function(){if(!A){L.call(this,C)}this.fireEvent("contentReady",{type:"contentReady",target: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){B[C]=D};A.value=A.value||B[C];this._configs[C]=new GoViet.util.Attribute(A,this)};GoViet.augment(GoViet.util.Element,H)})();GoViet.register("element",GoViet.util.Element,{version:"2.5.2",build:"1076"});GoViet.register("utilities",GoViet,{version:"2.5.2",build:"1076"});(function(){GoViet.util.Config=function(A){if(A){this.init(A)}};var F=GoViet.lang,E=GoViet.util.CustomEvent,D=GoViet.util.Config;D.CONFIG_CHANGED_EVENT="configChanged";D.BOOLEAN_TYPE="boolean";D.prototype={owner:null,queueInProgress:false,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(A){this.owner=A;this.configChangedEvent=this.createEvent(D.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=E.LIST;this.queueInProgress=false;this.config={};this.initialConfig={};this.eventQueue=[]},checkBoolean:function(A){return(typeof A==D.BOOLEAN_TYPE)},checkNumber:function(A){return(!isNaN(A))},fireEvent:function(C,A){var B=this.config[C];if(B&&B.event){B.event.fire(A)}},addProperty:function(A,B){A=A.toLowerCase();this.config[A]=B;B.event=this.createEvent(A,{scope:this.owner});B.event.signature=E.LIST;B.key=A;if(B.handler){B.event.subscribe(B.handler,this.owner)}this.setProperty(A,B.value,true);if(!B.suppressEvent){this.queueProperty(A,B.value)}},getConfig:function(){var C={},A,B;for(A in this.config){B=this.config[A];if(B&&B.event){C[A]=B.value}}return C},getProperty:function(B){var A=this.config[B.toLowerCase()];if(A&&A.event){return A.value}else{return undefined}},resetProperty:function(B){B=B.toLowerCase();var A=this.config[B];if(A&&A.event){if(this.initialConfig[B]&&!F.isUndefined(this.initialConfig[B])){this.setProperty(B,this.initialConfig[B]);return true}}else{return false}},setProperty:function(C,A,H){var B;C=C.toLowerCase();if(this.queueInProgress&&!H){this.queueProperty(C,A);return true}else{B=this.config[C];if(B&&B.event){if(B.validator&&!B.validator(A)){return false}else{B.value=A;if(!H){this.fireEvent(C,A);this.configChangedEvent.fire([C,A])}return true}}else{return false}}},queueProperty:function(C,W){C=C.toLowerCase();var U=this.config[C],b=false,c,f,e,d,X,V,g,Z,Y,A,a,B,h;if(U&&U.event){if(!F.isUndefined(W)&&U.validator&&!U.validator(W)){return false}else{if(!F.isUndefined(W)){U.value=W}else{W=U.value}b=false;c=this.eventQueue.length;for(a=0;a<c;a++){f=this.eventQueue[a];if(f){e=f[0];d=f[1];if(e==C){this.eventQueue[a]=null;this.eventQueue.push([C,(!F.isUndefined(W)?W:d)]);b=true;break}}}if(!b&&!F.isUndefined(W)){this.eventQueue.push([C,W])}}if(U.supercedes){X=U.supercedes.length;for(B=0;B<X;B++){V=U.supercedes[B];g=this.eventQueue.length;for(h=0;h<g;h++){Z=this.eventQueue[h];if(Z){Y=Z[0];A=Z[1];if(Y==V.toLowerCase()){this.eventQueue.push([Y,A]);this.eventQueue[h]=null;break}}}}}return true}else{return false}},refireEvent:function(B){B=B.toLowerCase();var A=this.config[B];if(A&&A.event&&!F.isUndefined(A.value)){if(this.queueInProgress){this.queueProperty(B)}else{this.fireEvent(B,A.value)}}},applyConfig:function(H,A){var B,C;if(A){C={};for(B in H){if(F.hasOwnProperty(H,B)){C[B.toLowerCase()]=H[B]}}this.initialConfig=C}for(B in H){if(F.hasOwnProperty(H,B)){this.queueProperty(B,H[B])}}},refresh:function(){var A;for(A in this.config){this.refireEvent(A)}},fireQueue:function(){var I,A,J,B,C;this.queueInProgress=true;for(I=0;I<this.eventQueue.length;I++){A=this.eventQueue[I];if(A){J=A[0];B=A[1];C=this.config[J];C.value=B;this.fireEvent(J,B)}}this.queueInProgress=false;this.eventQueue=[]},subscribeToConfigEvent:function(I,C,A,J){var B=this.config[I.toLowerCase()];if(B&&B.event){if(!D.alreadySubscribed(B.event,C,A)){B.event.subscribe(C,A,J)}return true}else{return false}},unsubscribeFromConfigEvent:function(H,C,A){var B=this.config[H.toLowerCase()];if(B&&B.event){return B.event.unsubscribe(C,A)}else{return false}},toString:function(){var A="Config";if(this.owner){A+=" ["+this.owner.toString()+"]"}return A},outputEventQueue:function(){var H="",A,C,B=this.eventQueue.length;for(C=0;C<B;C++){A=this.eventQueue[C];if(A){H+=A[0]+"="+A[1]+", "}}return H},destroy:function(){var B=this.config,C,A;for(C in B){if(F.hasOwnProperty(B,C)){A=B[C];A.event.unsubscribeAll();A.event=null}}this.configChangedEvent.unsubscribeAll();this.configChangedEvent=null;this.owner=null;this.config=null;this.initialConfig=null;this.eventQueue=null}};D.alreadySubscribed=function(K,B,A){var J=K.subscribers.length,L,C;if(J>0){C=J-1;do{L=K.subscribers[C];if(L&&L.obj==A&&L.fn==B){return true}}while(C--)}return false};GoViet.lang.augmentProto(D,GoViet.util.EventProvider)}());(function(){GoViet.widget.Module=function(A,B){if(A){this.init(A,B)}else{}};var c=GoViet.util.Dom,P=GoViet.util.Config,V=GoViet.util.Event,W=GoViet.util.CustomEvent,b=GoViet.widget.Module,a,T,U,d,S={"BEFORE_INIT":"beforeInit","INIT":"init","APPEND":"append","BEFORE_RENDER":"beforeRender","RENDER":"render","CHANGE_HEADER":"changeHeader","CHANGE_BODY":"changeBody","CHANGE_FOOTER":"changeFooter","CHANGE_CONTENT":"changeContent","DESTORY":"destroy","BEFORE_SHOW":"beforeShow","SHOW":"show","BEFORE_HIDE":"beforeHide","HIDE":"hide"},Z={"VISIBLE":{key:"visible",value:true,validator:GoViet.lang.isBoolean},"EFFECT":{key:"effect",suppressEvent:true,supercedes:["visible"]},"MONITOR_RESIZE":{key:"monitorresize",value:true},"APPEND_TO_DOCUMENT_BODY":{key:"appendtodocumentbody",value:false}};b.IMG_ROOT=null;b.IMG_ROOT_SSL=null;b.CSS_MODULE="yui-module";b.CSS_HEADER="hd";b.CSS_BODY="bd";b.CSS_FOOTER="ft";b.RESIZE_MONITOR_SECURE_URL="javascript:false;";b.textResizeEvent=new W("textResize");function X(){if(!a){a=document.createElement("div");a.innerHTML=('<div class="'+b.CSS_HEADER+'"></div><div class="'+b.CSS_BODY+'"></div><div class="'+b.CSS_FOOTER+'"></div>');T=a.firstChild;U=T.nextSibling;d=U.nextSibling}return a}function Y(){if(!T){X()}return(T.cloneNode(false))}function R(){if(!U){X()}return(U.cloneNode(false))}function Q(){if(!d){X()}return(d.cloneNode(false))}b.prototype={constructor:b,element:null,header:null,body:null,footer:null,id:null,imageRoot:b.IMG_ROOT,initEvents:function(){var A=W.LIST;this.beforeInitEvent=this.createEvent(S.BEFORE_INIT);this.beforeInitEvent.signature=A;this.initEvent=this.createEvent(S.INIT);this.initEvent.signature=A;this.appendEvent=this.createEvent(S.APPEND);this.appendEvent.signature=A;this.beforeRenderEvent=this.createEvent(S.BEFORE_RENDER);this.beforeRenderEvent.signature=A;this.renderEvent=this.createEvent(S.RENDER);this.renderEvent.signature=A;this.changeHeaderEvent=this.createEvent(S.CHANGE_HEADER);this.changeHeaderEvent.signature=A;this.changeBodyEvent=this.createEvent(S.CHANGE_BODY);this.changeBodyEvent.signature=A;this.changeFooterEvent=this.createEvent(S.CHANGE_FOOTER);this.changeFooterEvent.signature=A;this.changeContentEvent=this.createEvent(S.CHANGE_CONTENT);this.changeContentEvent.signature=A;this.destroyEvent=this.createEvent(S.DESTORY);this.destroyEvent.signature=A;this.beforeShowEvent=this.createEvent(S.BEFORE_SHOW);this.beforeShowEvent.signature=A;this.showEvent=this.createEvent(S.SHOW);this.showEvent.signature=A;this.beforeHideEvent=this.createEvent(S.BEFORE_HIDE);this.beforeHideEvent.signature=A;this.hideEvent=this.createEvent(S.HIDE);this.hideEvent.signature=A},platform:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("windows")!=-1||A.indexOf("win32")!=-1){return"windows"}else{if(A.indexOf("macintosh")!=-1){return"mac"}else{return false}}}(),browser:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("opera")!=-1){return"opera"}else{if(A.indexOf("msie 7")!=-1){return"ie7"}else{if(A.indexOf("msie")!=-1){return"ie"}else{if(A.indexOf("safari")!=-1){return"safari"}else{if(A.indexOf("gecko")!=-1){return"gecko"}else{return false}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true}else{return false}}(),initDefaultConfig:function(){this.cfg.addProperty(Z.VISIBLE.key,{handler:this.configVisible,value:Z.VISIBLE.value,validator:Z.VISIBLE.validator});this.cfg.addProperty(Z.EFFECT.key,{suppressEvent:Z.EFFECT.suppressEvent,supercedes:Z.EFFECT.supercedes});this.cfg.addProperty(Z.MONITOR_RESIZE.key,{handler:this.configMonitorResize,value:Z.MONITOR_RESIZE.value});this.cfg.addProperty(Z.APPEND_TO_DOCUMENT_BODY.key,{value:Z.APPEND_TO_DOCUMENT_BODY.value})},init:function(B,C){var E,A;this.initEvents();this.beforeInitEvent.fire(b);this.cfg=new P(this);if(this.isSecure){this.imageRoot=b.IMG_ROOT_SSL}if(typeof B=="string"){E=B;B=document.getElementById(B);if(!B){B=(X()).cloneNode(false);B.id=E}}this.element=B;if(B.id){this.id=B.id}A=this.element.firstChild;if(A){var F=false,G=false,D=false;do{if(1==A.nodeType){if(!F&&c.hasClass(A,b.CSS_HEADER)){this.header=A;F=true}else{if(!G&&c.hasClass(A,b.CSS_BODY)){this.body=A;G=true}else{if(!D&&c.hasClass(A,b.CSS_FOOTER)){this.footer=A;D=true}}}}}while((A=A.nextSibling))}this.initDefaultConfig();c.addClass(this.element,b.CSS_MODULE);if(C){this.cfg.applyConfig(C,true)}if(!P.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true)}this.initEvent.fire(b)},initResizeMonitor:function(){var A=(GoViet.env.ua.gecko&&this.platform=="windows");if(A){var B=this;setTimeout(function(){B._initResizeMonitor()},0)}else{this._initResizeMonitor()}},_initResizeMonitor:function(){var G,E,C;function A(){b.textResizeEvent.fire()}if(!GoViet.env.ua.opera){E=c.get("_yuiResizeMonitor");var B=this._supportsCWResize();if(!E){E=document.createElement("iframe");if(this.isSecure&&b.RESIZE_MONITOR_SECURE_URL&&GoViet.env.ua.ie){E.src=b.RESIZE_MONITOR_SECURE_URL}if(!B){C=["<html><head><script ",'type="text/javascript">',"window.onresize=function(){window.parent.","GoViet.widget.Module.textResizeEvent.","fire();};<","/script></head>","<body></body></html>"].join("");E.src="data:text/html;charset=utf-8,"+encodeURIComponent(C)}E.id="_yuiResizeMonitor";E.style.position="absolute";E.style.visibility="hidden";var F=document.body,D=F.firstChild;if(D){F.insertBefore(E,D)}else{F.appendChild(E)}E.style.width="10em";E.style.height="10em";E.style.top=(-1*E.offsetHeight)+"px";E.style.left=(-1*E.offsetWidth)+"px";E.style.borderWidth="0";E.style.visibility="visible";if(GoViet.env.ua.webkit){G=E.contentWindow.document;G.open();G.close()}}if(E&&E.contentWindow){b.textResizeEvent.subscribe(this.onDomResize,this,true);if(!b.textResizeInitialized){if(B){if(!V.on(E.contentWindow,"resize",A)){V.on(E,"resize",A)}}b.textResizeInitialized=true}this.resizeMonitor=E}}},_supportsCWResize:function(){var A=true;if(GoViet.env.ua.gecko&&GoViet.env.ua.gecko<=1.8){A=false}return A},onDomResize:function(A,B){var C=-1*this.resizeMonitor.offsetWidth,D=-1*this.resizeMonitor.offsetHeight;this.resizeMonitor.style.top=D+"px";this.resizeMonitor.style.left=C+"px"},setHeader:function(A){var B=this.header||(this.header=Y());if(A.nodeName){B.innerHTML="";B.appendChild(A)}else{B.innerHTML=A}this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},appendToHeader:function(A){var B=this.header||(this.header=Y());B.appendChild(A);this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},setBody:function(A){var B=this.body||(this.body=R());if(A.nodeName){B.innerHTML="";B.appendChild(A)}else{B.innerHTML=A}this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},appendToBody:function(A){var B=this.body||(this.body=R());B.appendChild(A);this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},setFooter:function(A){var B=this.footer||(this.footer=Q());if(A.nodeName){B.innerHTML="";B.appendChild(A)}else{B.innerHTML=A}this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},appendToFooter:function(A){var B=this.footer||(this.footer=Q());B.appendChild(A);this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},render:function(C,E){var B=this,A;function D(F){if(typeof F=="string"){F=document.getElementById(F)}if(F){B._addToParent(F,B.element);B.appendEvent.fire()}}this.beforeRenderEvent.fire();if(!E){E=this.element}if(C){D(C)}else{if(!c.inDocument(this.element)){return false}}if(this.header&&!c.inDocument(this.header)){A=E.firstChild;if(A){E.insertBefore(this.header,A)}else{E.appendChild(this.header)}}if(this.body&&!c.inDocument(this.body)){if(this.footer&&c.isAncestor(this.moduleElement,this.footer)){E.insertBefore(this.body,this.footer)}else{E.appendChild(this.body)}}if(this.footer&&!c.inDocument(this.footer)){E.appendChild(this.footer)}this.renderEvent.fire();return true},destroy:function(){var B,A;if(this.element){V.purgeElement(this.element,true);B=this.element.parentNode}if(B){B.removeChild(this.element)}this.element=null;this.header=null;this.body=null;this.footer=null;b.textResizeEvent.unsubscribe(this.onDomResize,this);this.cfg.destroy();this.cfg=null;this.destroyEvent.fire();for(A in this){if(A instanceof W){A.unsubscribeAll()}}},show:function(){this.cfg.setProperty("visible",true)},hide:function(){this.cfg.setProperty("visible",false)},configVisible:function(C,D,B){var A=D[0];if(A){this.beforeShowEvent.fire();c.setStyle(this.element,"display","block");this.showEvent.fire()}else{this.beforeHideEvent.fire();c.setStyle(this.element,"display","none");this.hideEvent.fire()}},configMonitorResize:function(B,C,A){var D=C[0];if(D){this.initResizeMonitor()}else{b.textResizeEvent.unsubscribe(this.onDomResize,this,true);this.resizeMonitor=null}},_addToParent:function(B,A){if(!this.cfg.getProperty("appendtodocumentbody")&&B===document.body&&B.firstChild){B.insertBefore(A,B.firstChild)}else{B.appendChild(A)}},toString:function(){return"Module "+this.id}};GoViet.lang.augmentProto(b,GoViet.util.EventProvider)}());(function(){GoViet.widget.Overlay=function(A,B){GoViet.widget.Overlay.superclass.constructor.call(this,A,B)};var S=GoViet.lang,P=GoViet.util.CustomEvent,T=GoViet.widget.Module,O=GoViet.util.Event,K=GoViet.util.Dom,L=GoViet.util.Config,M=GoViet.widget.Overlay,R,N={"BEFORE_MOVE":"beforeMove","MOVE":"move"},Q={"X":{key:"x",validator:S.isNumber,suppressEvent:true,supercedes:["iframe"]},"Y":{key:"y",validator:S.isNumber,suppressEvent:true,supercedes:["iframe"]},"XY":{key:"xy",suppressEvent:true,supercedes:["iframe"]},"CONTEXT":{key:"context",suppressEvent:true,supercedes:["iframe"]},"FIXED_CENTER":{key:"fixedcenter",value:false,validator:S.isBoolean,supercedes:["iframe","visible"]},"WIDTH":{key:"width",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"HEIGHT":{key:"height",suppressEvent:true,supercedes:["context","fixedcenter","iframe"]},"ZINDEX":{key:"zindex",value:null},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:false,validator:S.isBoolean,supercedes:["iframe","x","y","xy"]},"IFRAME":{key:"iframe",value:(GoViet.env.ua.ie==6?true:false),validator:S.isBoolean,supercedes:["zindex"]}};M.IFRAME_SRC="javascript:false;";M.IFRAME_OFFSET=3;M.VIEWPORT_OFFSET=10;M.TOP_LEFT="tl";M.TOP_RIGHT="tr";M.BOTTOM_LEFT="bl";M.BOTTOM_RIGHT="br";M.CSS_OVERLAY="yui-overlay";M.windowScrollEvent=new P("windowScroll");M.windowResizeEvent=new P("windowResize");M.windowScrollHandler=function(A){if(GoViet.env.ua.ie){if(!window.scrollEnd){window.scrollEnd=-1}clearTimeout(window.scrollEnd);window.scrollEnd=setTimeout(function(){M.windowScrollEvent.fire()},1)}else{M.windowScrollEvent.fire()}};M.windowResizeHandler=function(A){if(GoViet.env.ua.ie){if(!window.resizeEnd){window.resizeEnd=-1}clearTimeout(window.resizeEnd);window.resizeEnd=setTimeout(function(){M.windowResizeEvent.fire()},100)}else{M.windowResizeEvent.fire()}};M._initialized=null;if(M._initialized===null){O.on(window,"scroll",M.windowScrollHandler);O.on(window,"resize",M.windowResizeHandler);M._initialized=true}GoViet.extend(M,T,{init:function(A,B){M.superclass.init.call(this,A);this.beforeInitEvent.fire(M);K.addClass(this.element,M.CSS_OVERLAY);if(B){this.cfg.applyConfig(B,true)}if(this.platform=="mac"&&GoViet.env.ua.gecko){if(!L.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true)}if(!L.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true)}}this.initEvent.fire(M)},initEvents:function(){M.superclass.initEvents.call(this);var A=P.LIST;this.beforeMoveEvent=this.createEvent(N.BEFORE_MOVE);this.beforeMoveEvent.signature=A;this.moveEvent=this.createEvent(N.MOVE);this.moveEvent.signature=A},initDefaultConfig:function(){M.superclass.initDefaultConfig.call(this);this.cfg.addProperty(Q.X.key,{handler:this.configX,validator:Q.X.validator,suppressEvent:Q.X.suppressEvent,supercedes:Q.X.supercedes});this.cfg.addProperty(Q.Y.key,{handler:this.configY,validator:Q.Y.validator,suppressEvent:Q.Y.suppressEvent,supercedes:Q.Y.supercedes});this.cfg.addProperty(Q.XY.key,{handler:this.configXY,suppressEvent:Q.XY.suppressEvent,supercedes:Q.XY.supercedes});this.cfg.addProperty(Q.CONTEXT.key,{handler:this.configContext,suppressEvent:Q.CONTEXT.suppressEvent,supercedes:Q.CONTEXT.supercedes});this.cfg.addProperty(Q.FIXED_CENTER.key,{handler:this.configFixedCenter,value:Q.FIXED_CENTER.value,validator:Q.FIXED_CENTER.validator,supercedes:Q.FIXED_CENTER.supercedes});this.cfg.addProperty(Q.WIDTH.key,{handler:this.configWidth,suppressEvent:Q.WIDTH.suppressEvent,supercedes:Q.WIDTH.supercedes});this.cfg.addProperty(Q.HEIGHT.key,{handler:this.configHeight,suppressEvent:Q.HEIGHT.suppressEvent,supercedes:Q.HEIGHT.supercedes});this.cfg.addProperty(Q.ZINDEX.key,{handler:this.configzIndex,value:Q.ZINDEX.value});this.cfg.addProperty(Q.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:Q.CONSTRAIN_TO_VIEWPORT.value,validator:Q.CONSTRAIN_TO_VIEWPORT.validator,supercedes:Q.CONSTRAIN_TO_VIEWPORT.supercedes});this.cfg.addProperty(Q.IFRAME.key,{handler:this.configIframe,value:Q.IFRAME.value,validator:Q.IFRAME.validator,supercedes:Q.IFRAME.supercedes})},moveTo:function(B,A){this.cfg.setProperty("xy",[B,A])},hideMacGeckoScrollbars:function(){K.removeClass(this.element,"show-scrollbars");K.addClass(this.element,"hide-scrollbars")},showMacGeckoScrollbars:function(){K.removeClass(this.element,"hide-scrollbars");K.addClass(this.element,"show-scrollbars")},configVisible:function(e,h,G){var f=h[0],d=K.getStyle(this.element,"visibility"),F=this.cfg.getProperty("effect"),I=[],J=(this.platform=="mac"&&GoViet.env.ua.gecko),j=L.alreadySubscribed,H,g,k,B,C,D,A,E,c;if(d=="inherit"){k=this.element.parentNode;while(k.nodeType!=9&&k.nodeType!=11){d=K.getStyle(k,"visibility");if(d!="inherit"){break}k=k.parentNode}if(d=="inherit"){d="visible"}}if(F){if(F instanceof Array){E=F.length;for(B=0;B<E;B++){H=F[B];I[I.length]=H.effect(this,H.duration)}}else{I[I.length]=F.effect(this,F.duration)}}if(f){if(J){this.showMacGeckoScrollbars()}if(F){if(f){if(d!="visible"||d===""){this.beforeShowEvent.fire();c=I.length;for(C=0;C<c;C++){g=I[C];if(C===0&&!j(g.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){g.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true)}g.animateIn()}}}}else{if(d!="visible"||d===""){this.beforeShowEvent.fire();K.setStyle(this.element,"visibility","visible");this.cfg.refireEvent("iframe");this.showEvent.fire()}}}else{if(J){this.hideMacGeckoScrollbars()}if(F){if(d=="visible"){this.beforeHideEvent.fire();c=I.length;for(D=0;D<c;D++){A=I[D];if(D===0&&!j(A.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){A.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true)}A.animateOut()}}else{if(d===""){K.setStyle(this.element,"visibility","hidden")}}}else{if(d=="visible"||d===""){this.beforeHideEvent.fire();K.setStyle(this.element,"visibility","hidden");this.hideEvent.fire()}}}},doCenterOnDOMEvent:function(){if(this.cfg.getProperty("visible")){this.center()}},configFixedCenter:function(E,G,D){var C=G[0],A=L.alreadySubscribed,F=M.windowResizeEvent,B=M.windowScrollEvent;if(C){this.center();if(!A(this.beforeShowEvent,this.center,this)){this.beforeShowEvent.subscribe(this.center)}if(!A(F,this.doCenterOnDOMEvent,this)){F.subscribe(this.doCenterOnDOMEvent,this,true)}if(!A(B,this.doCenterOnDOMEvent,this)){B.subscribe(this.doCenterOnDOMEvent,this,true)}}else{this.beforeShowEvent.unsubscribe(this.center);F.unsubscribe(this.doCenterOnDOMEvent,this);B.unsubscribe(this.doCenterOnDOMEvent,this)}},configHeight:function(D,A,C){var B=A[0],E=this.element;K.setStyle(E,"height",B);this.cfg.refireEvent("iframe")},configWidth:function(D,B,C){var E=B[0],A=this.element;K.setStyle(A,"width",E);this.cfg.refireEvent("iframe")},configzIndex:function(E,B,D){var C=B[0],A=this.element;if(!C){C=K.getStyle(A,"zIndex");if(!C||isNaN(C)){C=0}}if(this.iframe||this.cfg.getProperty("iframe")===true){if(C<=0){C=1}}K.setStyle(A,"zIndex",C);this.cfg.setProperty("zIndex",C,true);if(this.iframe){this.stackIframe()}},configXY:function(F,A,E){var C=A[0],B=C[0],D=C[1];this.cfg.setProperty("x",B);this.cfg.setProperty("y",D);this.beforeMoveEvent.fire([B,D]);B=this.cfg.getProperty("x");D=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([B,D])},configX:function(E,A,D){var B=A[0],C=this.cfg.getProperty("y");this.cfg.setProperty("x",B,true);this.cfg.setProperty("y",C,true);this.beforeMoveEvent.fire([B,C]);B=this.cfg.getProperty("x");C=this.cfg.getProperty("y");K.setX(this.element,B,true);this.cfg.setProperty("xy",[B,C],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([B,C])},configY:function(E,A,D){var B=this.cfg.getProperty("x"),C=A[0];this.cfg.setProperty("x",B,true);this.cfg.setProperty("y",C,true);this.beforeMoveEvent.fire([B,C]);B=this.cfg.getProperty("x");C=this.cfg.getProperty("y");K.setY(this.element,C,true);this.cfg.setProperty("xy",[B,C],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([B,C])},showIframe:function(){var A=this.iframe,B;if(A){B=this.element.parentNode;if(B!=A.parentNode){this._addToParent(B,A)}A.style.display="block"}},hideIframe:function(){if(this.iframe){this.iframe.style.display="none"}},syncIframe:function(){var B=this.iframe,E=this.element,C=M.IFRAME_OFFSET,A=(C*2),D;if(B){B.style.width=(E.offsetWidth+A+"px");B.style.height=(E.offsetHeight+A+"px");D=this.cfg.getProperty("xy");if(!S.isArray(D)||(isNaN(D[0])||isNaN(D[1]))){this.syncPosition();D=this.cfg.getProperty("xy")}K.setXY(B,[(D[0]-C),(D[1]-C)])}},stackIframe:function(){if(this.iframe){var A=K.getStyle(this.element,"zIndex");if(!GoViet.lang.isUndefined(A)&&!isNaN(A)){K.setStyle(this.iframe,"zIndex",(A-1))}}},configIframe:function(E,F,D){var B=F[0];function C(){var I=this.iframe,H=this.element,G;if(!I){if(!R){R=document.createElement("iframe");if(this.isSecure){R.src=M.IFRAME_SRC}if(GoViet.env.ua.ie){R.style.filter="alpha(opacity=0)";R.frameBorder=0}else{R.style.opacity="0"}R.style.position="absolute";R.style.border="none";R.style.margin="0";R.style.padding="0";R.style.display="none"}I=R.cloneNode(false);G=H.parentNode;var J=G||document.body;this._addToParent(J,I);this.iframe=I}this.showIframe();this.syncIframe();this.stackIframe();if(!this._hasIframeEventListeners){this.showEvent.subscribe(this.showIframe);this.hideEvent.subscribe(this.hideIframe);this.changeContentEvent.subscribe(this.syncIframe);this._hasIframeEventListeners=true}}function A(){C.call(this);this.beforeShowEvent.unsubscribe(A);this._iframeDeferred=false}if(B){if(this.cfg.getProperty("visible")){C.call(this)}else{if(!this._iframeDeferred){this.beforeShowEvent.subscribe(A);this._iframeDeferred=true}}}else{this.hideIframe();if(this._hasIframeEventListeners){this.showEvent.unsubscribe(this.showIframe);this.hideEvent.unsubscribe(this.hideIframe);this.changeContentEvent.unsubscribe(this.syncIframe);this._hasIframeEventListeners=false}}},_primeXYFromDOM:function(){if(GoViet.lang.isUndefined(this.cfg.getProperty("xy"))){this.syncPosition();this.cfg.refireEvent("xy");this.beforeShowEvent.unsubscribe(this._primeXYFromDOM)}},configConstrainToViewport:function(A,B,D){var C=B[0];if(C){if(!L.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true)}if(!L.alreadySubscribed(this.beforeShowEvent,this._primeXYFromDOM)){this.beforeShowEvent.subscribe(this._primeXYFromDOM)}}else{this.beforeShowEvent.unsubscribe(this._primeXYFromDOM);this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this)}},configContext:function(G,A,E){var C=A[0],F,D,B;if(C){F=C[0];D=C[1];B=C[2];if(F){if(typeof F=="string"){this.cfg.setProperty("context",[document.getElementById(F),D,B],true)}if(D&&B){this.align(D,B)}}}},align:function(A,B){var D=this.cfg.getProperty("context"),E=this,F,G,C;function H(J,I){switch(A){case M.TOP_LEFT:E.moveTo(I,J);break;case M.TOP_RIGHT:E.moveTo((I-G.offsetWidth),J);break;case M.BOTTOM_LEFT:E.moveTo(I,(J-G.offsetHeight));break;case M.BOTTOM_RIGHT:E.moveTo((I-G.offsetWidth),(J-G.offsetHeight));break}}if(D){F=D[0];G=this.element;E=this;if(!A){A=D[1]}if(!B){B=D[2]}if(G&&F){C=K.getRegion(F);switch(B){case M.TOP_LEFT:H(C.top,C.left);break;case M.TOP_RIGHT:H(C.top,C.right);break;case M.BOTTOM_LEFT:H(C.bottom,C.left);break;case M.BOTTOM_RIGHT:H(C.bottom,C.right);break}}}},enforceConstraints:function(A,B,E){var C=B[0];var D=this.getConstrainedXY(C[0],C[1]);this.cfg.setProperty("x",D[0],true);this.cfg.setProperty("y",D[1],true);this.cfg.setProperty("xy",D,true)},getConstrainedXY:function(D,F){var a=M.VIEWPORT_OFFSET,E=K.getViewportWidth(),I=K.getViewportHeight(),b=this.element.offsetHeight,G=this.element.offsetWidth,A=K.getDocumentScrollLeft(),C=K.getDocumentScrollTop();var J=D;var c=F;if(G+a<E){var H=A+a;var B=A+E-G-a;if(D<H){J=H}else{if(D>B){J=B}}}else{J=a+A}if(b+a<I){var Z=C+a;var d=C+I-b-a;if(F<Z){c=Z}else{if(F>d){c=d}}}else{c=a+C}return[J,c]},center:function(){var F=M.VIEWPORT_OFFSET,E=this.element.offsetWidth,G=this.element.offsetHeight,A=K.getViewportWidth(),D=K.getViewportHeight(),B,C;if(E<A){B=(A/2)-(E/2)+K.getDocumentScrollLeft()}else{B=F+K.getDocumentScrollLeft()}if(G<D){C=(D/2)-(G/2)+K.getDocumentScrollTop()}else{C=F+K.getDocumentScrollTop()}this.cfg.setProperty("xy",[parseInt(B,10),parseInt(C,10)]);this.cfg.refireEvent("iframe")},syncPosition:function(){var A=K.getXY(this.element);this.cfg.setProperty("x",A[0],true);this.cfg.setProperty("y",A[1],true);this.cfg.setProperty("xy",A,true)},onDomResize:function(C,A){var B=this;M.superclass.onDomResize.call(this,C,A);setTimeout(function(){B.syncPosition();B.cfg.refireEvent("iframe");B.cfg.refireEvent("context")},0)},bringToTop:function(){var F=[],G=this.element;function C(J,Y){var b=K.getStyle(J,"zIndex"),I=K.getStyle(Y,"zIndex"),Z=(!b||isNaN(b))?0:parseInt(b,10),a=(!I||isNaN(I))?0:parseInt(I,10);if(Z>a){return -1}else{if(Z<a){return 1}else{return 0}}}function H(I){var V=K.hasClass(I,M.CSS_OVERLAY),J=GoViet.widget.Panel;if(V&&!K.isAncestor(G,V)){if(J&&K.hasClass(I,J.CSS_PANEL)){F[F.length]=I.parentNode}else{F[F.length]=I}}}K.getElementsBy(H,"DIV",document.body);F.sort(C);var B=F[0],D;if(B){D=K.getStyle(B,"zIndex");if(!isNaN(D)){var E=false;if(B!=G){E=true}else{if(F.length>1){var A=K.getStyle(F[1],"zIndex");if(!isNaN(A)&&(D==A)){E=true}}}if(E){this.cfg.setProperty("zindex",(parseInt(D,10)+2))}}}},destroy:function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe)}this.iframe=null;M.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);M.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this);M.superclass.destroy.call(this)},toString:function(){return"Overlay "+this.id}})}());(function(){GoViet.widget.OverlayManager=function(A){this.init(A)};var J=GoViet.widget.Overlay,K=GoViet.util.Event,I=GoViet.util.Dom,L=GoViet.util.Config,H=GoViet.util.CustomEvent,G=GoViet.widget.OverlayManager;G.CSS_FOCUSED="focused";G.prototype={constructor:G,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"})},init:function(A){this.cfg=new L(this);this.initDefaultConfig();if(A){this.cfg.applyConfig(A,true)}this.cfg.fireQueue();var B=null;this.getActive=function(){return B};this.focus=function(E){var D=this.find(E);if(D){if(B!=D){if(B){B.blur()}this.bringToTop(D);B=D;I.addClass(B.element,G.CSS_FOCUSED);D.focusEvent.fire()}}};this.remove=function(E){var N=this.find(E),F;if(N){if(B==N){B=null}var D=(N.element===null&&N.cfg===null)?true:false;if(!D){F=I.getStyle(N.element,"zIndex");N.cfg.setProperty("zIndex",-1000,true)}this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,(this.overlays.length-1));N.hideEvent.unsubscribe(N.blur);N.destroyEvent.unsubscribe(this._onOverlayDestroy,N);if(!D){K.removeListener(N.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus);N.cfg.setProperty("zIndex",F,true);N.cfg.setProperty("manager",null)}N.focusEvent.unsubscribeAll();N.blurEvent.unsubscribeAll();N.focusEvent=null;N.blurEvent=null;N.focus=null;N.blur=null}};this.blurAll=function(){var D=this.overlays.length,E;if(D>0){E=D-1;do{this.overlays[E].blur()}while(E--)}};this._onOverlayBlur=function(D,E){B=null};var C=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[]}if(C){this.register(C);this.overlays.sort(this.compareZIndexDesc)}},_onOverlayElementFocus:function(A){var C=K.getTarget(A),B=this.close;if(B&&(C==B||I.isAncestor(B,C))){this.blur()}else{this.focus()}},_onOverlayDestroy:function(B,C,A){this.remove(A)},register:function(F){var B=this,A,D,E,C;if(F instanceof J){F.cfg.addProperty("manager",{value:this});F.focusEvent=F.createEvent("focus");F.focusEvent.signature=H.LIST;F.blurEvent=F.createEvent("blur");F.blurEvent.signature=H.LIST;F.focus=function(){B.focus(this)};F.blur=function(){if(B.getActive()==this){I.removeClass(this.element,G.CSS_FOCUSED);this.blurEvent.fire()}};F.blurEvent.subscribe(B._onOverlayBlur);F.hideEvent.subscribe(F.blur);F.destroyEvent.subscribe(this._onOverlayDestroy,F,this);K.on(F.element,this.cfg.getProperty("focusevent"),this._onOverlayElementFocus,null,F);A=I.getStyle(F.element,"zIndex");if(!isNaN(A)){F.cfg.setProperty("zIndex",parseInt(A,10))}else{F.cfg.setProperty("zIndex",0)}this.overlays.push(F);this.bringToTop(F);return true}else{if(F instanceof Array){D=0;C=F.length;for(E=0;E<C;E++){if(this.register(F[E])){D++}}if(D>0){return true}}else{return false}}},bringToTop:function(N){var D=this.find(N),A,F,C;if(D){C=this.overlays;C.sort(this.compareZIndexDesc);F=C[0];if(F){A=I.getStyle(F.element,"zIndex");if(!isNaN(A)){var B=false;if(F!==D){B=true}else{if(C.length>1){var E=I.getStyle(C[1].element,"zIndex");if(!isNaN(E)&&(A==E)){B=true}}}if(B){D.cfg.setProperty("zindex",(parseInt(A,10)+2))}}C.sort(this.compareZIndexDesc)}}},find:function(D){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;if(D instanceof J){do{if(B[C]==D){return B[C]}}while(C--)}else{if(typeof D=="string"){do{if(B[C].id==D){return B[C]}}while(C--)}}return null}},compareZIndexDesc:function(A,B){var C=(A.cfg)?A.cfg.getProperty("zIndex"):null,D=(B.cfg)?B.cfg.getProperty("zIndex"):null;if(C===null&&D===null){return 0}else{if(C===null){return 1}else{if(D===null){return -1}else{if(C>D){return -1}else{if(C<D){return 1}else{return 0}}}}}},showAll:function(){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;do{B[C].show()}while(C--)}},hideAll:function(){var B=this.overlays,A=B.length,C;if(A>0){C=A-1;do{B[C].hide()}while(C--)}},toString:function(){return"OverlayManager"}}}());(function(){GoViet.widget.ContainerEffect=function(D,A,B,J,C){if(!C){C=GoViet.util.Anim}this.overlay=D;this.attrIn=A;this.attrOut=B;this.targetElement=J||D.element;this.animClass=C};var H=GoViet.util.Dom,F=GoViet.util.CustomEvent,G=GoViet.util.Easing,E=GoViet.widget.ContainerEffect;E.FADE=function(J,C){var A={attributes:{opacity:{from:0,to:1}},duration:C,method:G.easeIn};var D={attributes:{opacity:{to:0}},duration:C,method:G.easeOut};var B=new E(J,A,D,J.element);B.handleUnderlayStart=function(){var I=this.overlay.underlay;if(I&&GoViet.env.ua.ie){var L=(I.filters&&I.filters.length>0);if(L){H.addClass(J.element,"yui-effect-fade")}}};B.handleUnderlayComplete=function(){var I=this.overlay.underlay;if(I&&GoViet.env.ua.ie){H.removeClass(J.element,"yui-effect-fade")}};B.handleStartAnimateIn=function(M,N,I){H.addClass(I.overlay.element,"hide-select");if(!I.overlay.underlay){I.overlay.cfg.refireEvent("underlay")}I.handleUnderlayStart();H.setStyle(I.overlay.element,"visibility","visible");H.setStyle(I.overlay.element,"opacity",0)};B.handleCompleteAnimateIn=function(M,N,I){H.removeClass(I.overlay.element,"hide-select");if(I.overlay.element.style.filter){I.overlay.element.style.filter=null}I.handleUnderlayComplete();I.overlay.cfg.refireEvent("iframe");I.animateInCompleteEvent.fire()};B.handleStartAnimateOut=function(M,N,I){H.addClass(I.overlay.element,"hide-select");I.handleUnderlayStart()};B.handleCompleteAnimateOut=function(M,N,I){H.removeClass(I.overlay.element,"hide-select");if(I.overlay.element.style.filter){I.overlay.element.style.filter=null}H.setStyle(I.overlay.element,"visibility","hidden");H.setStyle(I.overlay.element,"opacity",1);I.handleUnderlayComplete();I.overlay.cfg.refireEvent("iframe");I.animateOutCompleteEvent.fire()};B.init();return B};E.SLIDE=function(L,C){var M=L.cfg.getProperty("x")||H.getX(L.element),A=L.cfg.getProperty("y")||H.getY(L.element),B=H.getClientWidth(),D=L.element.offsetWidth,N=new E(L,{attributes:{points:{to:[M,A]}},duration:C,method:G.easeIn},{attributes:{points:{to:[(B+25),A]}},duration:C,method:G.easeOut},L.element,GoViet.util.Motion);N.handleStartAnimateIn=function(K,I,J){J.overlay.element.style.left=((-25)-D)+"px";J.overlay.element.style.top=A+"px"};N.handleTweenAnimateIn=function(R,S,K){var J=H.getXY(K.overlay.element),T=J[0],I=J[1];if(H.getStyle(K.overlay.element,"visibility")=="hidden"&&T<M){H.setStyle(K.overlay.element,"visibility","visible")}K.overlay.cfg.setProperty("xy",[T,I],true);K.overlay.cfg.refireEvent("iframe")};N.handleCompleteAnimateIn=function(K,I,J){J.overlay.cfg.setProperty("xy",[M,A],true);J.startX=M;J.startY=A;J.overlay.cfg.refireEvent("iframe");J.animateInCompleteEvent.fire()};N.handleStartAnimateOut=function(T,I,K){var S=H.getViewportWidth(),J=H.getXY(K.overlay.element),R=J[1];K.animOut.attributes.points.to=[(S+25),R]};N.handleTweenAnimateOut=function(S,T,R){var J=H.getXY(R.overlay.element),I=J[0],K=J[1];R.overlay.cfg.setProperty("xy",[I,K],true);R.overlay.cfg.refireEvent("iframe")};N.handleCompleteAnimateOut=function(K,I,J){H.setStyle(J.overlay.element,"visibility","hidden");J.overlay.cfg.setProperty("xy",[M,A]);J.animateOutCompleteEvent.fire()};N.init();return N};E.prototype={init:function(){this.beforeAnimateInEvent=this.createEvent("beforeAnimateIn");this.beforeAnimateInEvent.signature=F.LIST;this.beforeAnimateOutEvent=this.createEvent("beforeAnimateOut");this.beforeAnimateOutEvent.signature=F.LIST;this.animateInCompleteEvent=this.createEvent("animateInComplete");this.animateInCompleteEvent.signature=F.LIST;this.animateOutCompleteEvent=this.createEvent("animateOutComplete");this.animateOutCompleteEvent.signature=F.LIST;this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this)},animateIn:function(){this.beforeAnimateInEvent.fire();this.animIn.animate()},animateOut:function(){this.beforeAnimateOutEvent.fire();this.animOut.animate()},handleStartAnimateIn:function(B,C,A){},handleTweenAnimateIn:function(B,C,A){},handleCompleteAnimateIn:function(B,C,A){},handleStartAnimateOut:function(B,C,A){},handleTweenAnimateOut:function(B,C,A){},handleCompleteAnimateOut:function(B,C,A){},toString:function(){var A="ContainerEffect";if(this.overlay){A+=" ["+this.overlay.toString()+"]"}return A}};GoViet.lang.augmentProto(E,GoViet.util.EventProvider)})();GoViet.register("containercore",GoViet.widget.Module,{version:"2.5.2",build:"1076"});GoViet.namespace("GoViet.util.EU");GoViet.namespace("GoViet.EU");GoViet.util.EU.convertPxToEm=function(C,B){var A=(GoViet.util.Dom.getStyle(C,"fontSize"));if(A.indexOf("%")!=-1){A=parseFloat(GoViet.util.Dom.getStyle(C,"lineHeight"))+1}else{if(isNaN(A)){if(A=="small"){A=parseFloat(GoViet.util.Dom.getStyle(C,"lineHeight"))+1.5}else{if(A=="x-small"){A=parseFloat(GoViet.util.Dom.getStyle(C,"lineHeight"))}}}}return parseFloat(B)/parseFloat(A)};GoViet.namespace("util.EU");GoViet.namespace("EU.News");GoViet.EU.ModuleTabs=function(A,B){this.elContainer=null;this.bDoHilite=false;this.oHiliteArgs=null;this.oActiveTab=null;this.bFirstRun=true;this.aTabs=[];this.aEvents=[];this.oConfig=null;if(A){this.init(A,B)}};GoViet.EU.ModuleTabs.prototype={init:function(A,F){this.oConfig=F;this.elContainer=GoViet.util.Dom.get(A);for(var C in F){if(this[C]!==F[C]){this[C]=F[C]}}if(this.elContainer){this.aEvents.TabActivated=new GoViet.util.CustomEvent("onTabActivated",this);this.aEvents.TabDeactivated=new GoViet.util.CustomEvent("onTabDeactivated",this);this.aEvents.TabAdded=new GoViet.util.CustomEvent("onTabAdded",this);this.aEvents.TabRemoved=new GoViet.util.CustomEvent("onTabRemoved",this);var G=this.elContainer.getElementsByTagName("li");var I=this.elContainer.getElementsByTagName("ul")[0];for(var E=0,D;G[E];E++){D=G[E];if(D.parentNode===I){D.id=this.elContainer.id+"-item"+(this.aTabs.length+1);this.addTab(D)}}var B=null,H=null;G=null;this.activateTab((this.oActiveTab!==null)?this.oActiveTab:this.aTabs[0]);GoViet.util.Event.addListener(this.elContainer,"click",this.selectTab,this,true);GoViet.util.Dom.addClass(I,GoViet.EU.ModuleTabs.JS_IS_ACTIVE)}},addTab:function(B){var A=this.oConfig;A.elTab=B;var C=new GoViet.EU.Tab(A);this.aTabs.push(C);if((this.oActiveTab===null)&&(C.getPane())){this.activateTab(C);this.oActiveTab=C}if(window.location.hash.substring(1).toLowerCase()===C.toString().toLowerCase()){this.bFirstRun=true;this.activateTab(C);this.oActiveTab=C}if(this.aEvents.TabAdded){this.aEvents.TabAdded.fire(this.aTabs.length)}return C},removeTab:function(E){var C=-1;for(var A=0,B;this.aTabs[A];A++){B=this.aTabs[A];if(E.id===B.id){C=A;break}}if(C!==-1){var D=this.aTabs[C].elTab;D.parentNode.removeChild(D);E=this.aTabs.splice(C,1);if(this.aTabs.length>0){E=this.aTabs[Math.min(C,(this.aTabs.length===0)?0:this.aTabs.length-1)];this.activateTab(E)}}if(this.aEvents.TabRemoved){this.aEvents.TabRemoved.fire()}return false},deactivateTab:function(){if(this.oActiveTab){this.oActiveTab.deactivate();this.oActiveTab=null;if(this.aEvents.TabDeactivated){this.aEvents.TabDeactivated.fire()}}return false},activateTab:function(A){if(A&&(this.oActiveTab!==A)){this.deactivateTab();this.oActiveTab=A;A.activate();if((this.bFirstRun===false)&&this.bDoHilite){this.hilite()}this.bFirstRun=false;this.manageHeight();if(this.aEvents.TabActivated){this.aEvents.TabActivated.fire()}}},manageHeight:function(){var C=this.oActiveTab.elPane;var B=C.lastChild;while(B.nodeType!==1){B=B.previousSibling}var A=(GoViet.util.Dom.getXY(C)[1]+C.offsetHeight)-(GoViet.util.Dom.getXY(B)[1]+B.offsetHeight);var D=GoViet.util.EU.convertPxToEm(C,parseInt(C.offsetHeight,10)-(A));GoViet.util.Dom.setStyle(this.elContainer,"height",D+"em")},hilite:function(){if(!GoViet.util.ColorAnim){return }if(this.oConfig.oHiliteArgs.bTransparent&&this.hiliteAnim!==null&&this.hiliteAnim!==undefined){this.hiliteAnim.stop(true);GoViet.util.Dom.setStyle(this.hiliteAnim.getEl(),"backgroundColor","")}this.hiliteAnim=new GoViet.util.ColorAnim([this.oActiveTab.elTabLnk,this.oActiveTab.elPane],{backgroundColor:{from:this.oHiliteArgs.from,to:this.oHiliteArgs.to}},this.oHiliteArgs.duration,this.oHiliteArgs.fEase||GoViet.util.Easing.easeOut);this.hiliteAnim.animate()},addListener:function(C,D,A,B){if(this.aEvents[C]){this.aEvents[C].subscribe(D,A||window,B||false)}},selectTab:function(B){var A=GoViet.util.Event.getTarget(B);if(GoViet.util.Dom.hasClass(A,GoViet.EU.ModuleTabs.CSS_TAB_HOOK)){var C=this.identifyTab(A.parentNode);if(C){this.activateTab(C)}GoViet.util.Event.stopEvent(B)}},identifyTab:function(B){for(var A=0,C;this.aTabs[A];A++){C=this.aTabs[A];if(B===C.getTab()){return C}}return false}};GoViet.EU.ModuleTabs.CSS_TAB_HOOK="tab";GoViet.EU.ModuleTabs.CSS_PANE_HOOK="pane";GoViet.EU.ModuleTabs.SHOW_PANE_CLASS_NAME="paneShow";GoViet.EU.ModuleTabs.HIDE_PANE_CLASS_NAME="paneHide";GoViet.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME="on";GoViet.EU.ModuleTabs.JS_IS_ACTIVE="js";GoViet.EU.Tab=function(A){this.initTab(A)};GoViet.EU.Tab.prototype.initTab=function(A){this.elTab=A.elTab;this.elPane=this.elTab.getElementsByTagName("div")[0];this.elTabLnk=this.elTab.getElementsByTagName("a")[0];this.id=this.elTab.id};GoViet.EU.Tab.prototype.deactivate=function(){if(GoViet.util.Dom.hasClass(this.elPane,GoViet.EU.ModuleTabs.SHOW_PANE_CLASS_NAME)){GoViet.util.Dom.replaceClass(this.elPane,GoViet.EU.ModuleTabs.SHOW_PANE_CLASS_NAME,GoViet.EU.ModuleTabs.HIDE_PANE_CLASS_NAME)}else{GoViet.util.Dom.addClass(this.elPane,GoViet.EU.ModuleTabs.HIDE_PANE_CLASS_NAME)}GoViet.util.Dom.removeClass(this.elTab,GoViet.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME);this.elTabLnk.setAttribute("title","");this.bActive=false;return this.bActive};GoViet.EU.Tab.prototype.activate=function(){if(GoViet.util.Dom.hasClass(this.elPane,GoViet.EU.ModuleTabs.HIDE_PANE_CLASS_NAME)){GoViet.util.Dom.replaceClass(this.elPane,GoViet.EU.ModuleTabs.HIDE_PANE_CLASS_NAME,GoViet.EU.ModuleTabs.SHOW_PANE_CLASS_NAME)}else{GoViet.util.Dom.addClass(this.elPane,GoViet.EU.ModuleTabs.SHOW_PANE_CLASS_NAME)}GoViet.util.Dom.addClass(this.elTab,GoViet.EU.ModuleTabs.ACTIVE_TAB_CLASS_NAME);this.elTabLnk.setAttribute("title",GoViet.EU.Tab.ACTIVE_TITLE_TEXT);this.bActive=true;return this.bActive};GoViet.EU.Tab.prototype.getTab=function(){return this.elTab};GoViet.EU.Tab.prototype.getPane=function(){return this.elPane};GoViet.EU.Tab.prototype.toString=function(){var A=this.elTabLnk.firstChild;while(A.nodeType!==3){A=A.firstChild}return A.nodeValue};GoViet.EU.Tab.ACTIVE_TITLE_TEXT="active";GoViet.namespace("GoViet.EU.widget.Carousel");GoViet.EU.widget.Carousel=function(){return this};GoViet.EU.widget.Carousel.prototype={init:function(A,B){this.oConfig=B;this.nVisiblePanes=B.visiblePanes||1;this.nPanesToMove=B.panesToMove||this.nVisiblePanes;this.bHorizontal=!B.isVertical;this.bLoop=B.loop||0;this.oCont=GoViet.util.Dom.get(A);this.oClip=GoViet.util.Dom.getElementsByClassName("clip","div",this.oCont)[0];this.oPanel=this.oCont.getElementsByTagName("ul")[0];this.oButtonCont=B.buttonCont||this.oCont;GoViet.util.Dom.addClass(this.oCont,"js");this.assignElements();this.nCurrentPane=0;GoViet.util.Dom.setStyle(this.oClip,"overflow","hidden");if(this.nPanes>1){this.createNav()}this.createEvents();this.onAnimStart.fire();return this},assignElements:function(){var A=this;this.aPanels=GoViet.util.Dom.getElementsBy(function(B){if(B.parentNode===A.oPanel){return true}return false},"li",this.oPanel);this.nPanes=this.aPanels.length;this.nMoveInc=(this.bHorizontal)?this.aPanels[0].offsetWidth+(parseInt(GoViet.util.Dom.getStyle(this.aPanels[0],"marginRight"),10)*2):this.aPanels[0].offsetHeight},createNav:function(){this.oButtonCont=GoViet.util.Dom.get(this.oButtonCont);var A=document.createElement("a");GoViet.util.Dom.addClass(A,"btnprev");A.setAttribute("href","#");A.appendChild(document.createTextNode(GoViet.EU.widget.Carousel.LOCALISATION.PREV_BUTTON_ALT||""));this.oButtonCont.appendChild(A);this.oBtnPrev=GoViet.util.Dom.get(A);A=document.createElement("a");GoViet.util.Dom.addClass(A,"btnnext");A.setAttribute("href","#");A.appendChild(document.createTextNode(GoViet.EU.widget.Carousel.LOCALISATION.NEXT_BUTTON_ALT||""));this.oButtonCont.appendChild(A);this.oBtnNext=GoViet.util.Dom.get(A)},createEvents:function(){this.onAnimStart=new GoViet.util.CustomEvent("onAnimStart");this.onAnimEnd=new GoViet.util.CustomEvent("onAnimEnd");this.onNavigate=new GoViet.util.CustomEvent("onNavigate");this.onCarouselEnd=new GoViet.util.CustomEvent("onCarouselEnd");this.onAnimStart.subscribe(this.enableButtons,this,true);this.onAnimEnd.subscribe(this.enableButtons,this,true);if(this.nPanes>1){GoViet.util.Event.on(this.oBtnPrev,"click",function(A){this.moveBy(A,-1);if(this.pause){this.pause()}},this,true);GoViet.util.Event.on(this.oBtnNext,"click",function(A){this.moveBy(A,1);if(this.pause){this.pause()}},this,true)}},enableButtons:function(){if(this.nPanes>1){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgUrl;if(!this.nCurrentPane&&!this.bLoop){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgDisabledUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgUrl}if(this.nCurrentPane>=Math.ceil(this.nPanes/this.nVisiblePanes)&&!this.bLoop){this.oBtnPrev.firstChild.src=this.oConfig.btnPrev.imgUrl;this.oBtnNext.firstChild.src=this.oConfig.btnNext.imgDisabledUrl}}},moveBy:function(B,A){if(B){GoViet.util.Event.preventDefault(B);this.onNavigate.fire()}this.nCurrentPane+=A*this.nPanesToMove;if(this.nCurrentPane+this.nVisiblePanes-this.nPanesToMove>=this.nPanes){if(this.bLoop){this.nCurrentPane=0}this.onCarouselEnd.fire()}else{if(this.nCurrentPane<=-this.nPanesToMove){if(this.bLoop){this.nCurrentPane=this.nPanes+(A*this.nPanesToMove)}this.onCarouselEnd.fire()}}this.gotoPane(this.nCurrentPane)},gotoPane:function(B){if(B<0){B=0}if(B>this.nPanes-this.nVisiblePanes){B=this.nPanes-this.nVisiblePanes}this.nCurrentPane=B;var C=new GoViet.util.Anim(this.oPanel,(this.bHorizontal)?{left:{to:-this.nMoveInc*B}}:{top:{to:-this.nMoveInc*B}},this.oConfig.animDuration||0.5,this.oConfig.easing||GoViet.util.Easing.easeOut);var A=function(E,D){this.onAnimEnd.fire()};C.onComplete.subscribe(A,this,true);this.onAnimStart.fire();C.animate()}};GoViet.EU.widget.Carousel.prototype.autoPlay=function(B){var A=this;if(B){this.oAutoConfig=B;if(B.btnPause){oA=document.createElement("a");GoViet.util.Dom.addClass(oA,"btnpause");oA.setAttribute("href","#");oI=document.createElement("img");oI.setAttribute("src",B.btnPause.imgUrl);oI.setAttribute("alt",GoViet.EU.widget.Carousel.LOCALISATION.PLAY_BUTTON_ALT||"");oI.setAttribute("title",B.btnPause.toolTip||"");oA.appendChild(oI);this.oButtonCont.appendChild(oA);this.oBtnPause=GoViet.util.Dom.get(oA);GoViet.util.Event.on(this.oBtnPause,"click",this.pause,this,true);this.onNavigate.subscribe(function(){this.pause(true)},this,true)}}this.bPaused=0;if(this.oBtnPause){this.oBtnPause.firstChild.src=this.oAutoConfig.btnPause.imgUrl}this.oTimer=window.setInterval(function(){A.moveBy(null,1)},this.oAutoConfig.autoPlayDelay||5000);return this};GoViet.EU.widget.Carousel.prototype.pause=function(A){if(A&&A!==true){GoViet.util.Event.preventDefault(A);if(this.bPaused){this.moveBy(null,1);return this.autoPlay()}}this.bPaused=1;if(this.oBtnPause){this.oBtnPause.firstChild.src=this.oAutoConfig.btnPause.imgPlayUrl}clearTimeout(this.oTimer)};GoViet.EU.widget.Carousel.prototype.enableCheckForUpdates=function(B){var A=this;this.oLoadConfig=B;this.oLoadTimer=window.setInterval(function(){A.checkForUpdates()},this.oLoadConfig.checkDelay||10000);return this};GoViet.EU.widget.Carousel.prototype.checkForUpdates=function(){GoViet.util.Connect.asyncRequest("GET",this.oLoadConfig.url+"?n="+(this.nPanes+1),{success:this.checkedForUpdates,scope:this})};GoViet.EU.widget.Carousel.prototype.checkedForUpdates=function(A){this.oPanel.innerHTML+=A.responseText;this.assignElements();this.enableButtons()};GoViet.EU.widget.Carousel.prototype.paginate=function(D){D=D||"default";var B=this;if(D==="default"){var A,C;A=document.createElement("ul");GoViet.util.Dom.addClass(A,"pagination");updatePagination=function(){var F=GoViet.util.Dom.getElementsBy(function(G){if(G.parentNode===A){return true}return false},"li",A);var E=F.length;for(i=0;i<E;i+=1){if(i===Math.ceil(B.nCurrentPane/B.nPanesToMove)){GoViet.util.Dom.addClass(F[i],"current");F[i].getElementsByTagName("button")[0].disabled=true}else{GoViet.util.Dom.removeClass(F[i],"current");F[i].getElementsByTagName("button")[0].disabled=false}}};for(i=1;i<Math.ceil((this.nPanes-this.nVisiblePanes)/this.nPanesToMove)+2;i+=1){C=document.createElement("li");oB=document.createElement("button");oSp=document.createElement("span");oB.appendChild(oSp);oB.appendChild(document.createTextNode(i));C.appendChild(oB);A.appendChild(C)}GoViet.util.Event.on(A,"click",function(E){this.gotoPane((GoViet.util.Event.getTarget(E).lastChild.nodeValue-1)*this.nPanesToMove);if(this.pause){this.pause()}GoViet.util.Event.preventDefault(E)},this,true);this.oButtonCont.appendChild(A)}else{oP=document.createElement("p");GoViet.util.Dom.addClass(oP,"pagination");this.oButtonCont.appendChild(oP);this.oButtonCont.appendChild(oP);updatePagination=function(){oP.innerHTML=B.nCurrentPane+1+" / "+B.nPanes}}updatePagination();this.onAnimStart.subscribe(updatePagination,this,true);return this};GoViet.EU.widget.Carousel.LOCALISATION={"NEXT_BUTTON_ALT":"Next","PREV_BUTTON_ALT":"Previous","PLAY_BUTTON_ALT":"Play/Pause","DIRECT_BUTTON_ALT":"Go to %s"};GoViet.util.ListToSelect=function(A){this.init(A)};GoViet.util.ListToSelect.prototype={init:function(E){this.oEl=GoViet.util.Dom.get(E.sID);var K=document.createElement("form");this.oSelect=document.createElement("select");GoViet.util.Dom.generateId(this.oSelect);if(E.sLabel){var F=document.createElement("label");F.setAttribute("for",this.oSelect.id);F.appendChild(document.createTextNode(E.sLabel));K.appendChild(F)}K.appendChild(this.oSelect);if(E.sFirstOption){I=document.createElement("option");I.appendChild(document.createTextNode(E.sFirstOption));this.oSelect.appendChild(I)}var B,G,I;if(E.aOptgroups){var A=E.aOptgroups;for(var D=0;D<A.length;D++){B=A[D].parentNode.getElementsByTagName("a");G=document.createElement("optgroup");G.setAttribute("label",A[D].firstChild.nodeValue);for(var C=0;C<B.length;C++){I=document.createElement("option");I.appendChild(document.createTextNode(B[C].firstChild.nodeValue));I.setAttribute("value",B[C].getAttribute("href"));G.appendChild(I)}this.oSelect.appendChild(G)}}else{B=E.aOptions;for(var C=0;C<B.length;C++){I=document.createElement("option");I.appendChild(document.createTextNode(B[C].firstChild.nodeValue));I.setAttribute("value",B[C].getAttribute("href"));this.oSelect.appendChild(I)}}var H=document.createElement("input");H.type="submit";H.value=E.sSubmitText;GoViet.util.Dom.addClass(H,"sub");GoViet.util.Event.addListener(H,"click",function(L){this.submitItem(L)},this,true);K.appendChild(H);var J=this.oEl.getElementsByTagName("div")[0];J.parentNode.removeChild(J);this.oEl.insertBefore(K,this.oEl.firstChild)},submitItem:function(A){GoViet.util.Event.stopEvent(A);if(this.oSelect.selectedIndex){self.location=this.oSelect[this.oSelect.selectedIndex].value}}};GoViet.EU.LinkPopper={init:function(){GoViet.util.Event.addListener(document.getElementsByTagName("a"),"click",function(B){if(B.button===2){return }var A=GoViet.util.Event.getTarget(B);while(A&&A.nodeName!="A"){A=A.parentNode}if(A&&A.href&&A.getAttribute("rel")!="popless"&&(A.href.match(/\/photos\/slideshow/)||A.href.match(/\/fotos\/diapositivas/)||A.href.match(/\/fotos\/diashow/)||A.href.match(/\/foto\/galleria/)||A.href.match(/\/photos\/diaporama/)||A.href.match(/photos\/photo_ss_single/))&&!window.opener){GoViet.util.Event.stopEvent(B);var C=window.open(A.href,"SlideshowPopupWindow","height=650,width=760,scrollbars=no");C.opener=window;return false}})},popdownInit:function(){popdownFunction=function(D){var C=GoViet.util.Event.getTarget(D);while(C&&C.nodeName!="A"){C=C.parentNode}if(!C){return true}if(C.href&&window.opener){window.opener.location=C.href;GoViet.util.Event.stopEvent(D);window.close()}};var B=GoViet.util.Dom.getElementsByClassName("popdown-ss","a");GoViet.util.Event.addListener(B,"click",popdownFunction);popdownFormFunction=function(J){var H=this;var E=H.getAttribute("action");if(window.opener&&E.match(/http:\/\/\w+\.search\.GoViet\.com/)){var I="";for(var F=0,C=H.elements.length;F<C;F++){var G=encodeURIComponent(H.elements[F].name);var D=encodeURIComponent(H.elements[F].value);if(G){I+=G+"="+D+"&"}}I=I.substr(0,I.length-1);E+="?"+I;window.opener.location=E;GoViet.util.Event.stopEvent(J);window.close()}return true};var A=document.getElementsByTagName("form");GoViet.util.Event.addListener(A,"submit",popdownFormFunction)}};GoViet.EU.LinkPopper.init();GoViet.util.Event.onContentReady("bd",GoViet.EU.LinkPopper.popdownInit);var stupendously_ugly_utf8_to_latin1_hack=function(str){var is_latin1=function(){var metaTags=document.getElementsByTagName("meta");for(var i=0;i<metaTags.length;i++){if(metaTags[i].getAttribute("content").match(/8859/)){return true}}return false};if(is_latin1()){eval("str = str.replace(/Á/,''); str = str.replace(/Ã/,''); str = str.replace(/Ä/,''); str = str.replace(/Å/,''); str = str.replace(/Æ/,''); str = str.replace(/Ç/,''); str = str.replace(/È/,''); str = str.replace(/É/,''); str = str.replace(/Ê/,''); str = str.replace(/Ë/,''); str = str.replace(/Ì/,''); str = str.replace(/Í/,''); str = str.replace(/Î/,''); str = str.replace(/Ï/,''); str = str.replace(/Ñ/,''); str = str.replace(/Ò/,''); str = str.replace(/Ó/,''); str = str.replace(/Ô/,''); str = str.replace(/Õ/,''); str = str.replace(/Ö/,''); str = str.replace(/Ù/,''); str = str.replace(/Ú/,''); str = str.replace(/Û/,''); str = str.replace(/Ü/,''); str = str.replace(/ß/,''); str = str.replace(/ /,''); str = str.replace(/á/,''); str = str.replace(/â/,''); str = str.replace(/ã/,''); str = str.replace(/ä/,''); str = str.replace(/ç/,''); str = str.replace(/è/,''); str = str.replace(/é/,''); str = str.replace(/ê/,''); str = str.replace(/ë/,''); str = str.replace(/ì/,''); str = str.replace(/í/,''); str = str.replace(/î/,''); str = str.replace(/ï/,''); str = str.replace(/ñ/,''); str = str.replace(/ò/,''); str = str.replace(/ó/,''); str = str.replace(/ô/,''); str = str.replace(/õ/,''); str = str.replace(/ö/,''); str = str.replace(/ù/,''); str = str.replace(/ú/,''); str = str.replace(/û/,''); str = str.replace(/ü/,''); /* this is a comment that will hopefully suck up more characters. */")}return str};var stupendously_ugly_latin1_to_utf8_hack=function(str){var is_latin1=function(){var metaTags=document.getElementsByTagName("meta");for(var i=0;i<metaTags.length;i++){if(metaTags[i].getAttribute("content").match(/8859/)){return true}}return false};if(is_latin1()){eval("str = str.replace(//,'Á'); str = str.replace(//,'Ã'); str = str.replace(//,'Ä'); str = str.replace(//,'Å'); str = str.replace(//,'Æ'); str = str.replace(//,'Ç'); str = str.replace(//,'È'); str = str.replace(//,'É'); str = str.replace(//,'Ê'); str = str.replace(//,'Ë'); str = str.replace(//,'Ì'); str = str.replace(//,'Í'); str = str.replace(//,'Î'); str = str.replace(//,'Ï'); str = str.replace(//,'Ñ'); str = str.replace(//,'Ò'); str = str.replace(//,'Ó'); str = str.replace(//,'Ô'); str = str.replace(//,'Õ'); str = str.replace(//,'Ö'); str = str.replace(//,'Ù'); str = str.replace(//,'Ú'); str = str.replace(//,'Û'); str = str.replace(//,'Ü'); str = str.replace(//,'ß'); str = str.replace(//,' '); str = str.replace(//,'á'); str = str.replace(//,'â'); str = str.replace(//,'ã'); str = str.replace(//,'ä'); str = str.replace(//,'ç'); str = str.replace(//,'è'); str = str.replace(//,'é'); str = str.replace(//,'ê'); str = str.replace(//,'ë'); str = str.replace(//,'ì'); str = str.replace(//,'í'); str = str.replace(//,'î'); str = str.replace(//,'ï'); str = str.replace(//,'ñ'); str = str.replace(//,'ò'); str = str.replace(//,'ó'); str = str.replace(//,'ô'); str = str.replace(//,'õ'); str = str.replace(//,'ö'); str = str.replace(//,'ù'); str = str.replace(//,'ú'); str = str.replace(//,'û'); str = str.replace(//,'ü'); /* this is a comment that will hopefully suck up more characters. */")}return str};GoViet.namespace("ulm");GoViet.ulm=new function(){var D=document;var Y=GoViet;var YUTI=Y.util;var YDOM=YUTI.Dom;var YEVT=YUTI.Event;var YCON=YUTI.Connect;var YANI=YUTI.Anim;var YWID=Y.widget;var oULM=null;var sULM="yulm";var setup={};var oLOCS={};var oDATA={};var oBODY=null;var aTIPS=[];var uMSGS={};var oBIN={};var uCRMB="";var ptb=null;var wtb=null;this.messagesset=0;this.builtinregd=0;var cACT=null;var cACTROW=null;var cSET=null;var cVIS="hidden";var cLOC=null;var cSTAT=null;var cDEF="r-0";var cROW=null;var cLOCKED=false;var oUSERKEY=false;var oCONSTANTS={"picklist":"picklist","recent":"recent","saved":"saved","ULD":"368","ULL":"370","ULR":"371","ULT":"436","ULW":"369","ULB":"372","ULS":"373","SWC":"516"};function debug(args){if(oBIN.debug==1){try{}catch(err){try{GoViet.log(args)}catch(err){alert(err)}}}else{return }}this.uACTS={};function trim(str){var regex;if(arguments[1]!=undefined&&arguments[1]=="saved"){regex=/^\s*|\s*$|/g}else{regex=/^\s*|\s*$|[^a-zA-Z0-9_]/g}return str.replace(regex,"")}function handletextbox(){if(wtb&&ptb){wtb.value=ptb.value}}function initform(){if(wtb){wtb.value="";if(oUSERKEY===false){if(oBIN.prefill[cSET.locationtype]&&oBIN.prefill[cSET.locationtype]!==""){wtb.value=oBIN.prefill[cSET.locationtype]}}}if(ptb){ptb.value=wtb.value}handletextbox()}function purge(d){var a=d.attributes,i,l,n;if(a){l=a.length;for(i=0;i<l;i+=1){n=a[i].name;if(typeof d[n]==="function"){d[n]=null}}}a=d.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1){purge(d.childNodes[i])}}}function processresponsetext(rt){var data=null;var reg=new RegExp("<!--.+-->","g");var clean=rt.replace(reg,"");eval("var data = "+clean);return data}function setcookie(c){var PL_t=new Date();var plvalue;if(c!==undefined&&c.PL&&c.PL.value){plvalue=c.PL.value;PL_t.setTime(PL_t.getTime()+(525600*60000));D.cookie="PL="+plvalue+";expires="+PL_t.toGMTString()+";domain=.GoViet.com;path=/"}if(c==undefined){plvalue="";PL_t.setTime(PL_t.getTime()-(525600*60000));D.cookie="PL="+plvalue+";expires="+PL_t.toGMTString()+";domain=.GoViet.com;path=/"}}function showerror(){purge(oULM);oULM.setBody(oBODY);oULM.render();clearcontextmsg();setevents();handleform();if(oLOCS.picklist.length>0){debug("fixing picklist");applyerrorstyles()}showit()}function applyerrorstyles(){var hreg=YDOM.getRegion("yulmerrormsg");var hwid=(hreg.right-hreg.left)-40+"px";YDOM.setStyle("yulmpicklistwrapper","width",hwid);YDOM.setStyle("yulmpicklistwrapper","position","relative");YDOM.setStyle("yulmpicklist","width",hwid)}function editlocation(el){var msg;if(el==="new"){msg=uMSGS.ACTconfirmaddnew}else{msg=uMSGS.ACTconfirmedit;locationdata=getlocationdata(el);var action="edit";var locationname=locationdata.data.name}var ok=confirm(msg);if(ok&&el=="new"){window.location.href=oBIN.editpageurl+"?locale="+oBIN.locale+"&a=add&done="+oBIN.dotdone}else{if(ok&&el!=="new"){var url=oBIN.editpageurl+"?locale="+oBIN.locale+"&a="+action+"&ln="+encodeURIComponent(locationname)+"&cr="+uCRMB+"&r="+Math.random()+"&done="+oBIN.dotdone;window.location.href=url}else{}}}function savelocation(e,el){cLOCKED=true;if(arguments[2]){cACTROW=arguments[2]}var elLocName=el.childNodes[0].innerHTML;YEVT.stopEvent(e);setcontextmsg(uMSGS.ACTsaving,el);var responseSuccess=function(o){var data=processresponsetext(o.responseText);oDATA=data.data;oBODY=data.html;oLOCS=data.locations;cLOC=oLOCS.currentloc;var stat=(oDATA.req_status===0||oDATA.req_status["371"]===0)?0:-1;switch(stat){case 0:var savedlist=YDOM.get("yulmsavedlist");newsaved='<li class="yulmnewsaved">Saved. Sorting... '+elLocName+"</li>";savedlist.innerHTML=newsaved+savedlist.innerHTML;if(el.id.indexOf("def")==-1&&oDATA.jscookie!==null){setcookie(oDATA.jscookie);var attributes={opacity:{to:0.1}};fade(el,attributes,0.4)}if(cACTROW!==null){clearlocation(null,YDOM.get(cACTROW),"nomsg")}var to=setTimeout(function(){clearcontextmsg();getdata(elLocName)},1000);cACT=null;break;default:cACTROW=cROW;showerror();break}};var responseFailure=function(o){setcontextmsg(uMSGS.ERRsaving)};var saveCallback={success:responseSuccess,failure:responseFailure,argument:{"el":el}};var loc=getlocationdata(el);var locdata=loc.data;var locindex=loc.pickindex;var isdefault=locdata.isdefault;var props="&la="+trim(encodeURIComponent(locdata.address),"saved")+"&lc="+trim(encodeURIComponent(locdata.city),"saved")+"&ls="+trim(encodeURIComponent(locdata.state),"saved")+"&lz="+trim(encodeURIComponent(locdata.zip),"saved")+"&lco="+trim(encodeURIComponent(locdata.country),"saved")+"&u="+trim(encodeURIComponent(locdata.uniquezip),"saved");if(loc.data.id&&(loc.data.language&&loc.data.language!=="")){props+="&lang="+loc.data.language+"&id="+loc.data.id+"&li=def"}else{props+="&li="+locindex}var anchor=cSET.triggers[0];var elAnchor=YDOM.get(anchor);var elAtype=elAnchor.nodeName.toLowerCase();debug("hs5 setting inp and usserloc");var userloc;if(elAtype=="input"){userloc=elAnchor;inp="h"}else{userloc=YDOM.get("yulmlocation");inp="s"}var saveurl=oBIN.dataurl+"?locale="+oBIN.locale+"&a=s"+props+"&p="+cROW+"&inp="+inp+"&cr="+uCRMB+"&r="+Math.random();var cObj=YCON.asyncRequest("GET",saveurl,saveCallback,null);cLOCKED=false}function setdefaultlocation(e,el){cLOCKED=true;YEVT.stopEvent(e);var msg=uMSGS.ACTsettingdefault;setcontextmsg(msg,el);var responseSuccess=function(o){var data=processresponsetext(o.responseText);oDATA=data.data;oBODY=data.html;oLOCS=data.locations;cLOC=oLOCS.currentloc;switch(oDATA.req_status){case 0:if(oDATA.isdefault==1){oBIN.prefill.isdefault=1;oBIN.prefill[oCONSTANTS.ULD]=formatlocation(cLOC,"cszc")}setcookie(oDATA.jscookie);purge(oULM);getdata();setposition();oULM.render();break;default:showerror();break}};var responseFailure=function(o){setcontextmsg(uMSGS.ERRsaving)};var setDefaultCallback={success:responseSuccess,failure:responseFailure,argument:{"e":e,"el":el}};var action="sd";var locationdata,locationname,locationaddress,locationcsz,locationcountry,locationid;var pick=el.id.split("-");var picktype=oCONSTANTS.recent;var pickindex=pick[1];locationdata=oLOCS[picktype][pickindex];action="sd";locationaddress=locationdata.address;locationcity=locationdata.city;locationstate=locationdata.state;locationzip=locationdata.zip;locationcountry=locationdata.country;if(locationcountry.toLowerCase()=="usa"){locationcountry="US"}locationid=locationdata.id;loc=formatlocation(locationdata,"cszc2_commadelim");var setdefaulturl=oBIN.dataurl+"?locale="+oBIN.locale+"&a="+action+"&l="+encodeURI(loc)+"&la="+encodeURI(locationaddress)+"&lc="+encodeURI(locationcity)+"&ls="+encodeURI(locationstate)+"&lz="+encodeURI(locationzip)+"&lco="+encodeURI(locationcountry)+"&d=1&r="+Math.random()+"&cr="+uCRMB;var cObj=GoViet.util.Connect.asyncRequest("GET",setdefaulturl,setDefaultCallback,null);cLOCKED=false}function clearlocation(e,el){cLOCKED=true;if(e){YEVT.stopEvent(e)}var ok;if(!arguments[2]){var msg=uMSGS.ACTconfirmclear;ok=confirm(msg)}else{ok=true}if(ok){msg=uMSGS.ACTclearone;setcontextmsg(msg,el);var responseSuccess=function(o){var data=processresponsetext(o.responseText);oDATA=data.data;oBODY=data.html;if(typeof (oDATA.req_status)=="object"){stat=oDATA.req_status["371"]}else{stat=oDATA.req_status}switch(stat){case 0:if(o.argument.locationtype!=="s"){setcookie(oDATA.jscookie)}var attributes={opacity:{to:0.1}};fade(el,attributes,0.4);var to=setTimeout(function(){purge(oULM);el.parentNode.removeChild(el);getdata();setposition()},400);break;default:showerror();break}};var responseFailure=function(o){setcontextmsg(uMSGS.ERRclearing)};var eltoclear=el.id.split("-");var action,locvalue;switch(eltoclear[0]){case"r":if(eltoclear[1]!=="def"){action="rco";locvalue="&l="+trim(eltoclear[1],"saved")}else{action="rcd";oBIN.prefill.isdefault=0;locvalue=""}break;case"s":action="sco";isdefault="&d=0";locvalue="&ln="+trim(encodeURIComponent(oLOCS.saved[eltoclear[1]].name),"saved");break}var args={"locationtype":eltoclear[0]};var clearCallback={success:responseSuccess,failure:responseFailure,argument:args};var clearurl=oBIN.dataurl+"?locale="+oBIN.locale+"&a="+action+locvalue+"&cr="+uCRMB+"&r="+Math.random();var cObj=GoViet.util.Connect.asyncRequest("GET",clearurl,clearCallback,null)}cLOCKED=false}function clearalllocations(e){if(cLOCKED===true){YEVT.stopEvent(e);return false}cLOCKED=true;YEVT.stopEvent(e);var msg=uMSGS.ACTconfirmclearall;var ok=confirm(msg);if(ok){msg=uMSGS.ACTclearall;setcontextmsg(msg);var elRecent=YDOM.get("yulmrecent");setcookie();oBIN.prefill[cSET.locationtype]="";oBIN.prefill[oCONSTANTS.ULD]="";oBIN.prefill.isdefault=0;var attributes={opacity:{to:0.1}};fade("yulmrecent",attributes,0.4);var wait=function(){elRecent.innerHTML="";var oERR=YDOM.get("yulmerror");if(oERR){oERR.innerHTML=""}var attributes={opacity:{to:0.95}};fade("yulmrecent",attributes,0.4);clearTimeout(to);purge(oULM);getdata();setposition();cLOCKED=false};var to=setTimeout(wait,500);clearcontextmsg()}else{cLOCKED=false}}function showlocationcontrols(li){if(cLOCKED===false){cLOCKED=true;cROW=li.id;var controls=li.getElementsByTagName("SPAN");var controlLinks=controls[0];if(controlLinks&&li.id.indexOf("p")==-1){li.childNodes[0].style.textDecoration="underline";controlLinks.className="yulmcontrolon";var actionLinks=controlLinks.getElementsByTagName("A");var aLLen=actionLinks.length;for(var i=0;i<aLLen;i++){}}cLOCKED=false}}function hidelocationcontrols(li){if(cLOCKED===false){li.childNodes[0].style.textDecoration="none";var controls=li.getElementsByTagName("SPAN");if(controls[0]&&li.id.indexOf("p")==-1){controls[0].className="yulmcontroloff"}}}function getlocationdata(el){var pick=el.id.split("-");var picktype;var pickindex;var ret=[];pickindex=pick[1];switch(pick[0]){case"p":picktype=oCONSTANTS.picklist;break;case"s":picktype=oCONSTANTS.saved;break;case"r":picktype=oCONSTANTS.recent;break}ret.picktype=picktype;ret.pickindex=pickindex;ret.data=oLOCS[picktype][pickindex];return ret}function formatlocation(locdata,type){var fmt="";var fmtaddress="";var fmtcity="";var fmtstate="";var fmtzip="";var fmtcountry="";var fmtcountry2="";var space_ac="";var comma_ac="";var space_cs="";var comma_cs="";var space_sz="";var comma_sz="";var space_zc="";var comma_zc="";var space_zc2="";var comma_zc2="";fmtaddress=(cSET.showaddress===true&&locdata.address!=="")?locdata.address:"";fmtcity=(locdata.city!=="")?locdata.city:"";fmtstate=(locdata.state!=="")?locdata.state:"";if((trim(locdata.country.toLowerCase())=="us")||(trim(locdata.country.toLowerCase())=="usa")){fmtzip=((locdata.zip!=="")&&(locdata.uniquezip==1))?locdata.zip:"";fmtzip=((locdata.zip!=="")&&(locdata.uniquezip==1))?locdata.zip:""}else{fmtzip=locdata.zip}fmtcountry=((trim(locdata.country.toLowerCase())!=="us")&&(trim(locdata.country.toLowerCase())!=="usa"))?locdata.country:"";fmtcountry2=((trim(locdata.country.toLowerCase())=="us")&&(trim(locdata.country.toLowerCase())=="usa"))?"US":locdata.country;if(fmtaddress!==""&&(fmtcity!==""||fmtstate!==""||fmtzip!==""||fmtcountry!=="")){space_ac=" ";comma_ac=", "}if(fmtcity!==""&&(fmtstate!==""||fmtzip!=="")){space_cs=" ";comma_cs=", "}if(fmtstate!==""&&fmtzip!==""){space_sz=" ";comma_sz=", "}if(fmtcountry!==""&&(fmtcity!==""||fmtstate!==""||fmtzip!==""||fmtcountry!=="")){space_zc=" ";comma_zc=", "}if(fmtcountry2!==""&&(fmtcity!==""||fmtstate!==""||fmtzip!==""||fmtcountry!=="")){space_zc2=" ";comma_zc2=", "}switch(type){case"cszc":fmt=fmtcity+space_cs+fmtstate+space_sz+fmtzip+space_zc+fmtcountry;break;case"acszc":fmt=fmtaddress+space_ac+fmtcity+space_cs+fmtstate+space_sz+fmtzip+space_zc+fmtcountry;break;case"cszc2":fmt=fmtcity+space_cs+fmtstate+space_sz+fmtzip+space_zc2+fmtcountry2;break;case"csz":fmt=fmtcity+space_cs+fmtstate+space_sz;break;case"acsz":fmt=fmtaddress+space_ac+fmtcity+space_cs+fmtstate+space_sz;break;case"csc":fmt=fmtaddress+comma_ac+fmtcity+space_cs+fmtstate+space_zc+fmtcountry;break;case"cszc_commadelim":fmt=fmtcity+comma_cs+fmtstate+comma_sz+fmtzip+comma_zc+fmtcountry;break;case"cszc2_commadelim":fmt=fmtcity+comma_cs+fmtstate+comma_sz+fmtzip+comma_zc2+fmtcountry2;break;case"acszc2_commadelim":fmt=fmtaddress+comma_ac+fmtcity+comma_cs+fmtstate+comma_sz+fmtzip+comma_zc2+fmtcountry2;break;default:fmt=fmtcity+comma_ac+fmtcity;break}return trim(fmt,"saved")}function picklocation(e,el){YEVT.stopEvent(e);var thisloc=getlocationdata(el);var filler;var thisdata=thisloc.data;var thisformat=(cSET.showaddress===true)?"acszc2_commadelim":"cszc2_commadelim";switch(thisloc.picktype){case"saved":filler=thisdata.citystatezip+", "+thisdata.country;break;case"recent":filler=formatlocation(thisdata,thisformat);break;case"picklist":filler=formatlocation(thisdata,thisformat);break}var form=cSET.formname||"yulmform";var txtbox=cSET.forminput||"yulmlocation";var theform=D.forms[form];theform[txtbox].value=filler;handletextbox(filler.toString());if(cACT!=="save"){handlesubmit(function(){theform.submit()},el,thisloc.picktype)}else{savelocation(e,el,cACTROW)}}function setcontextmsg(msg,el){var msgbox;if(el){msgbox=YDOM.get(el);msg='<strong class="yulmstatusmsg row">'+msg+"</strong>";msgbox.innerHTML=msg;msgbox.style.display="block"}else{var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";var inp;var inp_region;var mod_r=-18;var mod_t=3;if(elAtype=="input"){inp=YDOM.get(elAnchor)}else{inp=YDOM.get("yulmlocation");var issafari=(navigator.userAgent.indexOf("Safari")>-1)?true:false;if(issafari){mod_r=-28;mod_t=-15}}inp_region=YDOM.getRegion(inp);inp_right=inp_region.right+mod_r;inp_top=inp_region.top+mod_t;var box=(YDOM.get("yulm"))?(YDOM.get("yulm")):null;var msgs=(YDOM.get("yulmmessages"))?YDOM.get("yulmmessages"):null;if(box!==null){if(msgs!==null){msgbox=msgs}else{msgbox=document.createElement("DIV");msgbox.id="yulmmessages";box.appendChild(msgbox)}}msg='<strong class="yulmstatusmsg txtbox"></strong>';msgbox.innerHTML=msg;msgbox.style.display="block";YDOM.setXY(msgbox,[inp_right,inp_top])}}function clearcontextmsg(){var msgbox=YDOM.get("yulmmessages");if(msgbox){msgbox.style.display="none"}var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";var inp;var inp_region;if(elAtype=="input"){inp=YDOM.get(elAnchor)}else{inp=YDOM.get("yulmlocation")}inp.style.backgroundImage="none"}function handlesubmit(e,el,p){debug("=== starting handlesubmit ===");debug("hs1 el.id = "+el.id);debug("hs2 p = "+p);if(cLOCKED===true){return false}cLOCKED=true;YEVT.stopEvent(e);if(arguments[3]){debug("hs3 arg3 = "+arguments[3]);cSET=setup[arguments[3]]}if(!oULM){createulm();getdata()}debug("hs4 setting context msg");if(p===null){setcontextmsg(uMSGS.ACTsubmitting)}else{setcontextmsg(uMSGS.ACTsubmitting,el)}var anchor=cSET.triggers[0];var elAnchor=YDOM.get(anchor);var elAtype=elAnchor.nodeName.toLowerCase();debug("hs5 setting inp and usserloc");var userloc;if(elAtype=="input"){userloc=elAnchor;inp="h"}else{userloc=YDOM.get("yulmlocation");inp="s"}debug("hs6 clearing context msg");if(userloc===""){clearcontextmsg();return false}var encodedloc=encodeURIComponent(userloc.value);var locationtype=cSET.locationtype;var wcb=YDOM.get("yulmdefault");var makedefault=(!wcb||(wcb&&wcb.checked))?1:0;if(p!==null){var thisloc=getlocationdata(el);var qsaddr=(thisloc.data.address!=="")?"&la="+encodeURIComponent(thisloc.data.address+" "):"";var qscity=(thisloc.data.city!=="")?"&lc="+encodeURIComponent(thisloc.data.city+" "):"";var qsstate=(thisloc.data.state!=="")?"&ls="+encodeURIComponent(thisloc.data.state+" "):"";var qszip=(thisloc.data.uniquezip==1&&thisloc.data.zip!=="")?"&lz="+encodeURIComponent(thisloc.data.zip):""}var qs;var qsaction="sl";switch(p){case"recent":debug("hs7 recent -> encodedloc = "+encodedloc);qs="?a="+qsaction+"&l="+encodedloc+qsaddr+qscity+qsstate+qszip;break;case"saved":debug("hs7 saved -> encodedloc = "+encodedloc);qs="?a="+qsaction+qsaddr+"&l="+encodedloc;break;case"picklist":debug("hs7 pick -> encodedloc = "+encodedloc);thisloc=getlocationdata(el);qsaction="sfp";qs="?a="+qsaction+"&lang="+thisloc.data.language+"&id="+thisloc.data.id;break;default:debug("hs7 default -> encodedloc = "+encodedloc);qs="?a="+qsaction+"&l="+encodedloc;break}var dataurl=oBIN.dataurl+qs+"&inp="+inp+"&locale="+oBIN.locale+"&t="+locationtype+"&d="+makedefault+"&cr="+uCRMB+"&r="+Math.random();var responseSuccess=function(o){debug("hs9 call succeeded, processing response text");var data=processresponsetext(o.responseText);debug("hs10 setting up data");oDATA=data.data;oBODY=data.html;oLOCS=data.locations;cLOC=oLOCS.currentloc;switch(oDATA.req_status){case 0:debug("hs11 status ok, continuing...");if(p!==oCONSTANTS.saved){debug("hs12a set cookie fired");setcookie(oDATA.jscookie)}debug("hs13 SET LOCATION SETTING COOKIE -- DONE");debug("hs14 SET LOCATION SETTING PREFILL ");var thisformat;if(cLOC.country.toLowerCase()=="us"||cLOC.country.toLowerCase()=="usa"){thisformat=(cSET.showaddress===true)?"acsz":"csz"}else{thisformat=(cSET.showaddress===true)?"acszc":"cszc"}filler=formatlocation(cLOC,thisformat);oBIN.prefill[cSET.locationtype]=filler;var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";if(elAtype=="input"){elAnchor.value=filler}debug("hs15 SET LOCATION SETTING PREFILL -- DONE");debug("hs16 SET LOCATION FIRE USER FUNCTION/CALLBACK");if(cSET.callback){cSET.callback(cLOC)}debug("hs17 --last -- SET LOCATION HIDING PANEL");setTimeout(function(){cACT=null;purge(oULM);hideit();oUSERKEY=false;cLOCKED=false},1000);break;default:debug("hs11 status not ok... showing error...");showerror();cLOCKED=false;break}clearcontextmsg()};var responseFailure=function(o){debug("hs9 call failed");purge(oULM);var msg=uMSGS.ERRgetdata;oULM.setBody(msg);oULM.render();showit()};var callback={success:responseSuccess,failure:responseFailure,argument:null};debug("hs8 making call... xhr...");var cObj=GoViet.util.Connect.asyncRequest("GET",dataurl,callback,null);cLOCKED=false}function handleform(){var hideform=function(){var el=YDOM.get(formcontrols);if(el){YEVT.onAvailable(cSET.forminput,function(){this.focus()},this);YEVT.addListener(cSET.forminput,"mouseover",function(){this.focus();this.select()})}else{YEVT.onAvailable(formcontrols,hideform)}};var showform=function(){var el=YDOM.get(formcontrols);if(el){YEVT.addListener("yulmform","submit",function(e){cACT="set";handlesubmit(e,this,null);YEVT.stopEvent(e)});YEVT.onAvailable("yulmlocation",function(){this.focus();this.select();var tmp=YDOM.get("yulmlocation");tmp.value=stupendously_ugly_utf8_to_latin1_hack(oBIN.prefill[cSET.locationtype])},this);YEVT.addListener("yulmlocation","mouseover",function(){this.focus();this.select()});timerenddate=new Date();timerend=timerenddate.getTime()}else{YEVT.onAvailable(formcontrols,hideform)}};var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";var formcontrols="yulmformcontrols";if(elAtype=="input"){hideform();YEVT.onAvailable("yulmdefault",function(){YEVT.addListener("yulmdefault","mouseup",function(){var tmp=YDOM.get(cSET.forminput);tmp.focus()});hideform()})}else{showform()}}function closer(e){if(cVIS==="hidden"){return }var tgt=YEVT.getTarget(e);var isclosed=YDOM.isAncestor("yulm",tgt);var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";if(elAtype=="input"&&(tgt.id===cSET.formgobutton)){isclosed=true}if(!isclosed){hideit();isclosed=null}}function setevents(){purge(oULM);tmpptb=cSET.forminput||"yulmlocation";tmpwtb="yulmlocation";ptb=YDOM.get(tmpptb);wtb=YDOM.get(tmpwtb);YEVT.addListener(D,"mousedown",function(e){closer(e)});var el="yulmcloser";YEVT.addListener(el,"mousedown",function(e){cACT=null;hideit();YEVT.stopEvent(e)});el="yulmhelp";el="yulmclearall";YEVT.addListener(el,"mousedown",function(e){cACT=null;clearalllocations(e);YEVT.stopEvent(e)});if(YDOM.get("yulmsavedaddnew")){el="yulmsavedaddnew";YEVT.addListener(el,"mousedown",function(e){cACT=null;editlocation("new");YEVT.stopEvent(e)})}var aLIs=[];var oPickList=YDOM.get("yulmpicklist");if(oPickList){var liPickCollection=oPickList.getElementsByTagName("LI");var liPickCollectionLen=liPickCollection.length;var aPickLIs=[];var pickcounter=0;for(i=0;i<liPickCollectionLen;i++){if(liPickCollection[i].id&&liPickCollection[i].id.indexOf("p")>-1){aPickLIs[pickcounter]=liPickCollection[i];pickcounter++}}aLIs=aLIs.concat(aPickLIs)}var oRecentList=YDOM.get("yulmrecentlist");if(oRecentList){var liRecentCollection=oRecentList.getElementsByTagName("LI");var liRecentCollectionLen=liRecentCollection.length;var aRecentLIs=[];for(i=0;i<liRecentCollectionLen;i++){if(liRecentCollection[i].className!=="yulmcalltoaction"){aRecentLIs[i]=liRecentCollection[i]}}aLIs=aLIs.concat(aRecentLIs)}var oSavedList=YDOM.get("yulmsavedlist");if(oSavedList){var liSavedCollection=oSavedList.getElementsByTagName("LI");var liSavedCollectionLen=liSavedCollection.length;var aSavedLIs=[];for(var i=0;i<liSavedCollectionLen;i++){if(liSavedCollection[i].className!=="yulmcalltoaction"){aSavedLIs[i]=liSavedCollection[i]}}aLIs=aLIs.concat(aSavedLIs)}YEVT.addListener(aLIs,"mouseover",function(){showlocationcontrols(this)},this);YEVT.addListener(aLIs,"mouseout",function(){hidelocationcontrols(this)},this);var aLIsLen=aLIs.length;for(var i=0;i<aLIsLen;i++){var eleye=aLIs[i];var elA=eleye.childNodes[0];YEVT.addListener(elA,"mousedown",function(e){picklocation(e,this.parentNode)},this)}var ctlsRecentMakeDefault=YDOM.getElementsByClassName("yulmmakedefault");var ctlRMD=ctlsRecentMakeDefault.length;var aRMD=[];for(i=0;i<ctlRMD;i++){aRMD[i]=ctlsRecentMakeDefault[i];YEVT.addListener(aRMD[i],"mousedown",function(e){cACT=null;setdefaultlocation(e,this.parentNode.parentNode);YEVT.stopEvent(e)},this)}var ctlsSave=YDOM.getElementsByClassName("yulmsave");var ctlS=ctlsSave.length;var aS=[];for(i=0;i<ctlS;i++){aS[i]=ctlsSave[i];YEVT.addListener(aS[i],"mousedown",function(e){cACT="save";savelocation(e,this.parentNode.parentNode);YEVT.stopEvent(e)})}var ctlsEdit=YDOM.getElementsByClassName("yulmedit");var ctlE=ctlsEdit.length;var aE=[];for(i=0;i<ctlE;i++){aE[i]=ctlsEdit[i];YEVT.addListener(aE[i],"mousedown",function(e){cACT=null;editlocation(this.parentNode.parentNode);YEVT.stopEvent(e)})}var ctlsClear=YDOM.getElementsByClassName("yulmclear");var ctlC=ctlsClear.length;var aC=[];for(i=0;i<ctlC;i++){aC[i]=ctlsClear[i];YEVT.addListener(aC[i],"mousedown",function(e){cACT=null;clearlocation(e,this.parentNode.parentNode);YEVT.stopEvent(e)})}}function scrolltorow(elLocName){var newsavedlist=YDOM.get("yulmsavedlist");var lis=newsavedlist.getElementsByTagName("LI");var lislen=lis.length;var thisnode=null;for(var i=0;i<lislen;i++){if(lis[i].childNodes[0].nodeName=="A"&&(lis[i].childNodes[0].innerHTML==elLocName)){thisnode=lis[i];break}}if(thisnode!=null){var elSavedBox=YDOM.get("yulmsaved");var regSavedBox=GoViet.util.Region.getRegion(elSavedBox);var elTopRow=YDOM.get("s-0");var regTopRow=GoViet.util.Region.getRegion(elTopRow);var regThisRow=GoViet.util.Region.getRegion(thisnode);thisnode.className="yulmnewsaved";var boxcontainsrow=regSavedBox.contains(regThisRow);if(!boxcontainsrow){var attributes={scroll:{to:[regSavedBox.left,regThisRow.bottom-regTopRow.bottom]}};sc=new GoViet.util.Scroll("yulmsavedlist",attributes);sc.animate()}var onscrollcomplete=new YUTI.CustomEvent("scrollcomplete");var onscrollcompletesubscriber=function(){setTimeout(function(){var dofadeO=new YUTI.ColorAnim(thisnode,{backgroundColor:{to:"#FFFFFF"}},2,YUTI.Easing.easeOut);dofadeO.animate()},2000)};onscrollcomplete.subscribe(onscrollcompletesubscriber);onscrollcomplete.fire()}}function getdata(){purge(oULM);var msg=uMSGS.ACTloading;var msgbox=YDOM.get("yulmmessages");var el;if(!msgbox){msgbox='<div id="yulmmessages"></div>';oULM.setBody(msgbox);oULM.render();el=YDOM.get("yulmmessages");YDOM.addClass(el,"init");setcontextmsg(msg,el)}var responseSuccess=function(o){var data=processresponsetext(o.responseText);oLOCS=data.locations;cLOC=oLOCS.currentloc;cDEF="";if(data.locations.recent){var aREC=data.locations.recent;var aREClen=aREC.length;for(var r=0;r<aREClen;r++){if(aREC[r].isdefault==1){cDEF="r-"+r;break}}}var body=data.html;oULM.setBody(body);oULM.render();clearcontextmsg();YEVT.onAvailable("yulmrecent",function(){handleform();setevents()});if(o.argument!=null){YEVT.onAvailable("yulmsavedlist",function(){scrolltorow(o.argument)})}};var responseFailure=function(o){purge(oULM);var msg=uMSGS.ERRgetdata;oULM.setBody(msg);oULM.render()};var callback={success:responseSuccess,failure:responseFailure,argument:arguments[0]};var elAnchor=YDOM.get(cSET.triggers[0]);var elAtype=(elAnchor&&elAnchor.nodeName.toLowerCase()=="input")?"input":"notinput";var inp;if(elAtype=="input"){inp="h"}else{inp="s"}debug("input = "+inp);debug(oBIN);var dataurl=oBIN.dataurl+"?inp="+inp+"&locale="+oBIN.locale+"&cr="+uCRMB+"&done="+oBIN.dotdone+"&r="+Math.random();var cObj=GoViet.util.Connect.asyncRequest("GET",dataurl,callback,null)}function createulm(){if(!oULM){debug("creating ulm");oULM=new YWID.Overlay("yulm");oULM.render(D.body)}}function toggle(key){timerstartdate=new Date();timerstart=timerstartdate.getTime();debug("toggling key = "+key);if(!oULM){createulm()}var nSET=setup[key];if(YDOM.getStyle(sULM,"visibility")){cVIS=YDOM.getStyle(sULM,"visibility")}else{cVIS="hidden"}if(cVIS==="hidden"||cSET===null||nSET.triggers[0]!==cSET.triggers[0]){if(YDOM.get("yulmcont")){var box=YDOM.get("yulmcont");box.innerHTML=""}if(cSET&&cSET.forminputwrap){var el=YDOM.get(cSET.forminputwrap);if(YDOM.hasClass(el,"ulmopened")){YDOM.replaceClass(el,"ulmopened","ulmclosed")}}cSET=setup[key];getdata();showit()}else{purge(oULM);cSET=setup[key];hideit()}}function setposition(){var anchor=cSET.triggers[0];var anchorregion=YDOM.getRegion(YDOM.get(anchor));var alignX=(cSET.alignX)?cSET.alignX:"left";var moveX=(cSET.adjustX)?cSET.adjustX:0;var moveY=(cSET.adjustY)?cSET.adjustY:0;var setnewX=null;var setnewY=null;var elULM=YDOM.get("yulm");var regULM=YDOM.getRegion(elULM);var widULM=regULM.right-regULM.left;widULM=(widULM<300)?300:widULM;if(alignX=="right"){setnewX=anchorregion.right-widULM+5+moveX}else{setnewX=anchorregion.left-5+moveX}setnewY=anchorregion.bottom+moveY;oULM.cfg.setProperty("xy",[setnewX,setnewY]);var zidx=(cSET["zindex"])?cSET["zindex"]:"9999999";oULM.cfg.setProperty("zIndex",zidx);oULM.render()}function showit(){setposition();var el=YDOM.get(cSET.forminputwrap);if(el&&YDOM.hasClass(el,"ulmclosed")){YDOM.replaceClass(el,"ulmclosed","ulmopened")}oULM.show();oULM.render();cVIS="visible";pubvisibility.fire(cVIS)}function hideit(){purge(oULM);if(YDOM.get("yulmcont")){var box=YDOM.get("yulmcont");box.innerHTML=""}var el=YDOM.get(cSET.forminputwrap);if(el&&YDOM.hasClass(el,"ulmopened")){YDOM.replaceClass(el,"ulmopened","ulmclosed")}oULM.hide();oULM.render();cVIS="hidden";pubvisibility.fire(cVIS)}function fade(el,attrs){var anim=new YANI(el,attrs,0.2);anim.animate()}this.register=function(props){if(D.getElementById&&D.createElement){var key=props.module;setup[key]=props.props;if(key!=="builtin"){var triggers=setup[key].triggers;var tlen=triggers.length;for(var t=0;t<tlen;t++){var el=triggers[t];var oEl=YDOM.get(el);YEVT.addListener(el,"mousedown",function(e){debug("trigger toggle "+el);toggle(key);YEVT.stopEvent(e)});if(oEl.nodeName.toLowerCase()=="input"){YEVT.addListener(oEl,"mouseover",function(){this.select();this.focus()},this);YEVT.addListener(oEl,"keyup",function(){oUSERKEY=true});YEVT.addListener(oEl,"keydown",function(){oUSERKEY=true;if(!oULM){createulm()}var checkvis=YDOM.getStyle(sULM,"visibility");if(checkvis=="hidden"){cSET=setup[key];getdata();showit()}});YEVT.addListener(setup[key].formname,"submit",function(e){cACT="set";handlesubmit(e,this,null,key);YEVT.stopEvent(e)});if(oBIN&&oBIN.prefill){oEl.value=oBIN.prefill[props.props.locationtype]}else{oEl.value=""}}else{YEVT.onAvailable("yulmlocation",function(){var txtbox=YDOM.get("yulmlocation");txtbox.value=oBIN.prefill[props.props.locationtype]})}YEVT.addListener(setup[key].triggers[0],"keydown",function(e){if(cVIS==="hidden"){toggle(key)}})}}else{oBIN=setup[key];this.builtinregd=1}}};this.cVIS=cVIS;this.setmessages=function(msgs){uMSGS=msgs;this.messagesset=1};this.setcrumb=function(cr){uCRMB=cr};pubvisibility=new GoViet.util.CustomEvent("my event");this.pubvisibilitymonitor=pubvisibility;this.pubtoggle=function(e,key){toggle(key);YEVT.stopEvent(e)}}();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;GoViet.EU.VideoPlayer=function(){var C=GoViet.util.Dom.generateId();var A,B;return{init:function(D){this.oConfig=D;if(D.videolinkCont&&(typeof this.oConfig.samePlayer==="undefined"||this.oConfig.samePlayer==1)){GoViet.util.Event.on(D.videolinkCont,"click",function(F){var E=GoViet.util.Event.getTarget(F);if(E.nodeName.toLowerCase()=="a"){GoViet.util.Event.stopEvent(F);B.playID(this.videoIdFromLink(E))}},this,true)}this.initPlayer()},getAllIDs:function(){if(this.oConfig.videolinkCont){var H=GoViet.util.Dom.get(this.oConfig.videolinkCont).getElementsByTagName("a");var G=[];for(var F=0,D=H.length;F<D;F++){var E=this.videoIdFromLink(H[F]);if(E){G.push(E)}}return G.join(",")}},addParam:function(F,E,D){F.addParam(E,D)},addVariable:function(F,D,E){F.addVariable(D,E)},initPlayer:function(){var E=new SWFObject(this.oConfig.swfUri,C,this.oConfig.width,this.oConfig.height,"9","#ffffff");var D="";if(typeof this.oConfig.cosmosid!=="undefined"){D=this.oConfig.cosmosid}if(typeof this.oConfig.videolinkCont){if(D){D+=","+this.getAllIDs()}else{D=this.getAllIDs()}}this.addParam(E,"allowScriptAccess","always");this.addParam(E,"allowFullScreen","true");this.addVariable(E,"enableFullScreen","1");this.addVariable(E,"lang",this.oConfig.lang);this.addParam(E,"wmode","opaque");if(this.oConfig.vycPlaylistID){this.addVariable(E,"playlistId",this.oConfig.vycPlaylistID);this.addVariable(E,"isCarouselEnabled",(typeof this.oConfig.carouselEnabled!=="undefined")?this.oConfig.carouselEnabled:0);this.addVariable(E,"intl",(typeof this.oConfig.intl!=="undefined")?this.oConfig.intl:"fr")}else{this.addVariable(E,"id",D);this.addVariable(E,"autoStart",(typeof this.oConfig.autoStart!=="undefined")?this.oConfig.autoStart:0);this.addVariable(E,"infoEnable",(typeof this.oConfig.infoEnable!=="undefined")?this.oConfig.infoEnable:0);this.addVariable(E,"nowplayingEnable","0");this.addVariable(E,"prepanelEnable","1");this.addVariable(E,"postpanelEnable","1");this.addVariable(E,"showSkip","0");if((D+"").split(",").length>1){this.addVariable(E,"epGalleryType",(typeof this.oConfig.epGalleryType!=="undefined")?this.oConfig.epGalleryType:"current");this.addVariable(E,"epCountdownDuration","10")}this.addVariable(E,"shareEnable",(typeof this.oConfig.shareEnable!=="undefined")?this.oConfig.shareEnable:0)}E.write(GoViet.util.Dom.get(this.oConfig.videoCont).id);B=GoViet.util.Dom.get(C);GoVietNews.embeddedVideoObj=B},videoIdFromLink:function(D){var E=parseInt(D.href.split("cl=")[1]);if(!E){E=parseInt(D.id.split("-")[1])}return E}}}();if(GoVietNews.embeddedVideo){GoViet.EU.VideoPlayer.init(GoVietNews.embeddedVideo)}(function(){var G=GoViet.namespace("eu.news.trends");G.containers=[];function D(K,I){var J=document.createElement("div");J.className="tagCloudContainer nav";var S=document.createElement("h2");var N=document.createTextNode(K.cloud_title);S.appendChild(N);J.appendChild(S);var M=document.createElement("ul");M.className="tagCloud";var T=K.tags;for(var L=0,R;R=T[L];L++){var Q=document.createElement("li");var P=document.createElement("a");P.className=R.popularity;P.href=I.base_url+I.category+"/"+R.url_fragment+"/";var O=(R.count>1)?"stories":"story";P.title=""+R.count+" "+O+" tagged with "+R.display_name;var H=R.display_name.replace(" ","\u00A0")+" ";P.innerHTML=H;Q.appendChild(P);M.appendChild(Q)}J.appendChild(M);return{dom:J}}function B(L){var N=[];if(L.cloud_order){for(var J=0;J<L.cloud_order.length;J++){N.push(D(L.clouds[L.cloud_order[J]],L))}}else{for(var I in L.clouds){N.push(D(L.clouds[I],L))}}var K;if(N.length>1){var M=document.createElement("ul");for(var J=0;J<N.length;J++){var H=document.createElement("li");H.className="cloud";H.appendChild(N[J].dom);M.appendChild(H)}K=M}else{K=N[0].dom}return K}function E(H,I){while(H.hasChildNodes()){H.removeChild(H.firstChild)}H.appendChild(I)}function A(K,I){var H=GoViet.eu.news.trends.containers[I.element_reference];var J=B(K);E(H,J)}function C(I){if(I===undefined){return }if(I.constructor===Array){for(var M=0;M<I.length;M++){C(I[M])}return }if(I.constructor===String){I=document.getElementById(I);if(!I){return }}if(!I.nodeType||I.nodeType!=1){return }var O=I.getElementsByTagName("a");var K=O[0];if(!K){return }var J=G.containers.push(I)-1;var N={elementReference:J};var H=F(K.href,N);if(!H){return }var L=document.createElement("script");L.type="text/javascript";L.src=H;document.body.appendChild(L)}function F(H,J){if(!H){return false}var I="http://{prop}.trends.news.GoViet.com/api_v1.php?country={country}&product={product}&site={category}&outputType=json&outputEncoding=ISO-8859-1&callbackFunction={callback}";I=GoViet.lang.substitute(I,{"prop":"uk","country":"ukie","product":"news","category":"world","callback":"GoViet.eu.news.trends.generateTagCloudFromDataAndReplaceContentOfContainer"});return I}G.replaceContainerContentWithTagCloudFromLink=C;G.generateTagCloudFromDataAndReplaceContentOfContainer=A}());if(GoVietNews.tagCloud){GoViet.eu.news.trends.replaceContainerContentWithTagCloudFromLink(GoVietNews.tagCloud)}GoViet.util.Event.addListener(window,"load",function(){for(var A=0,C=GoVietNews.ajaxQueue.length;A<C;A++){var B=document.createElement("script");B.setAttribute("src",GoVietNews.ajaxQueue[A]);document.body.appendChild(B)}})
