var ad=window.dialogArguments||window.opener||window.parent||window.top;String.empty="";String.prototype.padLeft=function(length,character){var C=this;try{while(C.length<length){C=character+C;}return C;}finally{C=null;}};String.prototype.padRight=function(length,character){var C=this;try{while(C.length<length){C=C+character;}return C;}finally{C=null;}};String.prototype.trim=function(){var C=this;try{return C.replace(/^\s+|\s+$/g,"");}finally{C=null;}};String.prototype.urlEncode=function(){var C=this,G8=null;try{G8=C.replace(new RegExp("&amp;","g"),"&");G8=escape(G8);return G8.replace(new RegExp("[+]","g"),"%2B");}finally{C=null;G8=null;}};String.prototype.urlDecode=function(){var C=this;try{unescape(C.replace(new RegExp("%2B","g"),"+"));}finally{C=null;}};Array.prototype.indexOf=function(o){var C=this;try{for(var B=0;B<C.length;B++){if(C[B]==o){return B;}}return-1;}finally{C=null;}};Date.prototype.toString=function(format){var C=this;try{var UE=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),UG=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"),BX=new String(C.getFullYear()),UH=new String(Math.floor((C.getFullYear()/100-Math.floor(C.getFullYear()/100))*100)),A$=new String(C.getMonth()+1),B1=new String(C.getDay()),Cj=new String(C.getDate()),C3=new String(C.getHours()),T4=parseInt(C3)>12?new String(parseInt(C3)%12):C3,GT=new String(C.getMinutes()),GS=new String(C.getSeconds()),Jt=new String(C.getMilliseconds()),z="";if(typeof format=="undefined"){format="dd/MM/yyyy HH:mm:ss.fff";}z=new String(format);z=z.replace(/fff/g,"$01");z=z.replace(/ff/g,"$02");z=z.replace(/f/g,"$03");z=z.replace(/ss/g,"$04");z=z.replace(/s/g,"$05");z=z.replace(/mm/g,"$06");z=z.replace(/m/g,"$07");z=z.replace(/hh/g,"$08");z=z.replace(/h/g,"$09");z=z.replace(/HH/g,"$10");z=z.replace(/H/g,"$11");z=z.replace(/dddd/g,"$12");z=z.replace(/ddd/g,"$13");z=z.replace(/dd/g,"$14");z=z.replace(/d/g,"$15");z=z.replace(/MMMM/g,"$16");z=z.replace(/MMM/g,"$17");z=z.replace(/MM/g,"$18");z=z.replace(/M/g,"$19");z=z.replace(/yyyy/g,"$20");z=z.replace(/yyy/g,"$21");z=z.replace(/yy/g,"$22");z=z.replace(/y/g,"$23");z=z.replace(/\$01/g,Math.floor(parseInt(Jt)));z=z.replace(/\$02/g,Math.floor(parseInt(Jt)/10));z=z.replace(/\$03/g,Math.floor(parseInt(Jt)/100));z=z.replace(/\$04/g,GS.padLeft(2,"0"));z=z.replace(/\$05/g,GS);z=z.replace(/\$06/g,GT.padLeft(2,"0"));z=z.replace(/\$07/g,GT);z=z.replace(/\$08/g,T4.padLeft(2,"0"));z=z.replace(/\$09/g,T4);z=z.replace(/\$10/g,C3.padLeft(2,"0"));z=z.replace(/\$11/g,C3);z=z.replace(/\$12/g,UG[parseInt(B1)]);z=z.replace(/\$13/g,UG[parseInt(B1)].substr(0,3));z=z.replace(/\$14/g,Cj.padLeft(2,"0"));z=z.replace(/\$15/g,Cj);z=z.replace(/\$16/g,UE[parseInt(A$)-1]);z=z.replace(/\$17/g,UE[parseInt(A$)-1].substr(0,3));z=z.replace(/\$18/g,A$.padLeft(2,"0"));z=z.replace(/\$19/g,A$);z=z.replace(/\$20/g,BX);z=z.replace(/\$21/g,BX);z=z.replace(/\$22/g,UH);z=z.replace(/\$23/g,UH.padLeft(2,"0"));return z;}finally{C=null;}};Date.fromBritishDateString=function(dateString){var GJ=(new String(dateString)).trim();try{var Cj="",A5="",BX=0,A$=0,B1=1,C3=0,GT=0,GS=0,Jt=0;if(GJ.indexOf(" ")>-1){Cj=GJ.split(" ")[0];A5=GJ.split(" ")[1];}else{Cj=GJ;}if(Cj!=""){BX=new Number(Cj.split("/")[2]);A$=new Number(Cj.split("/")[1])-1;B1=new Number(Cj.split("/")[0]);}if(A5!=""){if(A5.indexOf(".")>-1){Jt=parseInt(A5.split(".")[1]);A5=A5.split(".")[0];}C3=A5.split(":")[0];GT=A5.split(":")[1];GS=A5.split(":")[2];}var SN=new Date(BX,A$,B1,C3,GT,GS);SN.setMilliseconds(Jt);return SN;}catch($){throw $;}return null;};Date.fromXMLDateString=function(dateString){var GJ=(new String(dateString)).trim();try{var Cj="",A5="",BX=0,A$=0,B1=1,C3=0,GT=0,GS=0;if(GJ.indexOf("T")>-1){Cj=GJ.split("T")[0];A5=GJ.split("T")[1];}else{Cj=GJ;}if(Cj!=""){BX=new Number(Cj.split("-")[0]);A$=new Number(Cj.split("-")[1])-1;B1=new Number(Cj.split("-")[2]);}if(A5!=""){if(A5.indexOf("+")>-1){A5=A5.split("+")[0];}C3=A5.split(":")[0];GT=A5.split(":")[1];GS=A5.split(":")[2];}return new Date(BX,A$,B1,C3,GT,GS);}catch($){throw $;}return null;};Function.prototype.AC=function(baseClass){var EK=null;try{if(this==baseClass){throw"Cannot derive from self";}for(EK in baseClass.prototype){if(typeof baseClass.prototype[EK]=="function"&&!this.prototype[EK]&&EK!="base"){this.prototype[EK]=baseClass.prototype[EK];}}if(!this.prototype.base){this.prototype.base=new Array;}this.prototype.base[this.prototype.base.length]=baseClass;}catch($){throw $;}finally{EK=null;}};Function.prototype.AG=function(){if(this.prototype&&this.prototype.base){for(var B=0;B<this.prototype.base.length;B++){if(this.prototype.base[B]){if(arguments.length>=B+1&&typeof arguments[B+1]!="undefined"&&arguments[B+1]!=null){this.prototype.base[B].apply(arguments[0],arguments[B+1]);}else{this.prototype.base[B].apply(arguments[0]);}}}}};Function.prototype.Bd=function(objectContext,functionName){var Dt=new Array,Mm=arguments.callee.caller,B;try{if(this.prototype&&this.prototype.base){if(!functionName){var EK=null;try{for(EK in this.prototype){if(this.prototype[EK]==Mm){functionName=EK;for(B=0;B<Mm.arguments.length;B++){Dt[B]=Mm.arguments[B];}break;}}}finally{EK=null;}}if(functionName){if(!Dt){for(B=2;B<arguments.length;B++){Dt[B-2]=arguments[B];}}for(B=this.prototype.base.length-1;B>=0;B--){if(this.prototype.base[B]&&this.prototype.base[B].prototype&&this.prototype.base[B].prototype[functionName]){return this.prototype.base[B].prototype[functionName].apply(objectContext,Dt);}}}}}finally{Dt=null;Mm=null;}};var indigo={};indigo.F_=function(){var HF="indigo";function objectName(name){return"["+HF+"."+name+"]";}function Cp(){var C=this;C.disposed=false;C.Tc=function(){if(document.detachEvent){document.detachEvent("onunload",function(){C.dispose();});}else if(document.removeEventListener){document.removeEventListener("unload",function(){C.dispose();},false);}delete C;};}Cp.prototype.dispose=function(){if(!this.disposed){this.disposed=true;}};Cp.prototype.toString=function(){return objectName("object");};this.object=Cp;function p(ev){var C=this;try{C.originalEvent=ev;C.keyCode=ev.which?ev.which:ev.keyCode;C.clientX=ev.clientX;C.clientY=ev.clientY;C.sourceElement=ev.srcElement?ev.srcElement:ev.target;}catch($){throw $;}finally{C=null;}}p.AC(Cp);p.prototype.cancelBubble=function(){this.originalEvent.cancelBubble=true;if(this.originalEvent.stopPropagation){this.originalEvent.stopPropagation();}};this.event=p;function CB(){CB.AG(this);this.count=0;this.items=new Object;}CB.AC(Cp);CB.prototype.add=function(o){this.addAt(this.count,o);return o;};CB.prototype.addAt=function(index,o){for(var B=this.count;B>index;B--){this.items[B]=this.items[B-1];}this.items[index]=o;this.count++;return o;};CB.prototype.clear=function(){while(this.count>0){this.removeAt(0);}};CB.prototype.contains=function(o){return this.indexOf(o)>-1;};CB.prototype.dispose=function(){if(!this.disposed){this.clear();CB.Bd(this);}};CB.prototype.each=function(fn){for(var B=0;B<this.count;B++){fn.call(this.items[B],B);}};CB.prototype.indexOf=function(o){for(var B=0;B<this.count;B++){if(this.items[B]==o){return B;}}return-1;};CB.prototype.remove=function(o){for(var B=0;B<this.count;B++){if(this.items[B]==o){this.removeAt(B);break;}}};CB.prototype.removeAt=function(index){if(this.items[index].dispose){this.items[index].dispose();}this.items[index]=null;for(var B=index;B<this.count-1;B++){this.items[B]=this.items[B+1];}this.items[this.count-1]=null;this.count--;};CB.prototype.toString=function(){return objectName("collection");};this.collection=CB;function Mn(f){Mn.AG(this);this.f=f;}Mn.AC(Cp);Mn.prototype.toString=function(){return objectName("objectEventFunction");};function Mk(){Mk.AG(this);}Mk.AC(CB);Mk.prototype.toString=function(){return objectName("objectEventFunctionCollection");};function Mf(eventName){Mf.AG(this);this.eventName=eventName;this.objectEventFunctions=new Mk;}Mf.AC(Cp);Mf.prototype.toString=function(){return objectName("objectEvent");};function MV(){MV.AG(this);}MV.AC(CB);MV.prototype.toString=function(){return objectName("objectEventCollection");};function Gb(J8,J$){Gb.AG(this);this.events=new MV;this.J8=J8;this.J$=J$;}Gb.AC(Cp);Gb.prototype.attach=function(eventName,f){var C=this,Er=false,IH=false;try{for(var B=0;B<C.events.count;B++){if(C.events.items[B].eventName==eventName){Er=true;for(var L=0;L<C.events.items[B].objectEventFunctions.count;L++){if(C.events.items[B].objectEventFunctions.items[L].f==f){IH=true;break;}}if(!IH){C.events.items[B].objectEventFunctions.add(new Mn(f));if(C.J8){C.J8(eventName,f);}}break;}}if(!Er){throw"Event \""+eventName+"\" not registered for object \""+C.toString()+"\"";}}catch($){throw $;}finally{C=null;Er=null;IH=null;}};Gb.prototype.call=function(sender,eventName,args){var C=this;try{for(var B=0;B<C.events.count;B++){if(C.events.items[B].eventName==eventName){for(var L=0;L<C.events.items[B].objectEventFunctions.count;L++){C.events.items[B].objectEventFunctions.items[L].f(sender,args);}break;}}}catch($){throw $;}finally{C=null;}};Gb.prototype.register=function(eventName){var C=this,Er=false;try{for(var B=0;B<C.events.count;B++){if(C.events.items[B].eventName==eventName){Er=true;break;}}if(!Er){C.events.add(new Mf(eventName));}}catch($){throw $;}finally{C=null;Er=null;}};Gb.prototype.detach=function(eventName,f){var C=this;try{for(var B=0;B<C.events.count;B++){if(C.events.items[B].eventName==eventName){for(var L=0;L<C.events.items[B].objectEventFunctions.count;L++){if(C.events.items[B].objectEventFunctions.items[L].f==f){C.events.items[B].objectEventFunctions.removeAt(L);}}if(C.J$){C.J$(eventName,f);}break;}}}catch($){throw $;}finally{C=null;}};Gb.prototype.toString=function(){return objectName("objectEventHandler");};this.objectEventHandler=Gb;function Km(f){Km.AG(this);this.f=f;}Km.AC(Cp);Km.prototype.toString=function(){return objectName("elementEventFunction");};function Jz(){Jz.AG(this);}Jz.AC(CB);Jz.prototype.create=function(f){var Tg=new Km(f);Jz.prototype.add.call(this,Tg);return Tg;};Jz.prototype.toString=function(){return objectName("elementEventFunctionCollection");};function J0(el,eventName){J0.AG(this);var C=this;C.el=el;C.eventName=eventName;C.functions=new Jz;function Yj($){var AK=true,OZ=true;for(var i=0;i<C.functions.count;i++){OZ=C.functions.items[i].f($);if(typeof OZ!="undefined"&&OZ==false){AK=false;}}return AK;}function OP($){var ev=$?$:event;return Yj(new p(ev));}function YX(){if(el.attachEvent){el.attachEvent("on"+C.eventName,OP);}else if(el.addEventListener){el.addEventListener(C.eventName,OP,false);}}YX();function Oh(){if(el.detachEvent){el.detachEvent("on"+C.eventName,OP);}else if(el.removeEventListener){el.removeEventListener(C.eventName,OP,false);}}C.Oh=Oh;}J0.AC(Cp);J0.prototype.dispose=function(){if(!this.disposed){this.Oh();this.el=null;this.functions.dispose();this.functions=null;J0.Bd(this);}};J0.prototype.toString=function(){return objectName("elementEvent");};function J2(){J2.AG(this);}J2.AC(CB);J2.prototype.create=function(el,eventName){var Tj=new J0(el,eventName);J2.prototype.add.call(this,Tj);return Tj;};J2.prototype.toString=function(){return objectName("elementEventCollection");};function J3(el){J3.AG(this);this.el=el;this.events=new J2;}J3.AC(CB);J3.prototype.dispose=function(){if(!this.disposed){this.el=null;this.events.dispose();this.events=null;J3.Bd(this);}};J3.prototype.toString=function(){return objectName("elementEventHandlerElement");};function Je(){Je.AG(this);}Je.AC(CB);Je.prototype.create=function(el){var Th=new J3(el);Je.prototype.add.call(this,Th);return Th;};Je.prototype.toString=function(){return objectName("elementEventCollectionElementCollection");};function GY(){GY.AG(this);this.elements=new Je;}GY.AC(Cp);GY.prototype.dispose=function(){if(!this.disposed){this.elements.dispose();this.elements=null;GY.Bd(this);}};GY.prototype.attach=function(el,eventName,f){var C=this,O5=false,Er=false,IH=false;try{if(el!=null){for(var B=0;B<C.elements.count;B++){if(C.elements.items[B].el==el){O5=true;for(var L=0;L<C.elements.items[B].events.count;L++){if(C.elements.items[B].events.items[L].eventName==eventName){Er=true;for(var Bw=0;Bw<C.elements.items[B].events.items[L].functions.count;Bw++){if(C.elements.items[B].events.items[L].functions.items[Bw].f==f){IH=true;break;}}if(!IH){C.elements.items[B].events.items[L].functions.add(new Km(f));}break;}}if(!Er){C.elements.items[B].events.create(el,eventName).functions.create(f);}break;}}if(!O5){C.elements.create(el).events.create(el,eventName).functions.create(f);}}}catch($){throw $;}finally{C=null;O5=null;Er=null;IH=null;}};GY.prototype.detach=function(el,eventName,f){var C=this;try{if(el!=null){for(var B=0;B<C.elements.count;B++){if(C.elements.items[B].el==el){for(var L=0;L<C.elements.items[B].events.count;L++){if(C.elements.items[B].events.items[L].eventName==eventName){for(var Bw=0;Bw<C.elements.items[B].events.items[L].functions.count;Bw++){if(C.elements.items[B].events.items[L].functions.items[Bw].f==f){C.elements.items[B].events.items[L].functions.removeAt(Bw);break;}}break;}}break;}}}}catch($){throw $;}finally{C=null;}};GY.prototype.toString=function(){return objectName("elementEventHandler");};this.elementEventHandler=GY;function Kn(){Kn.AG(this);var C=this;C.head=null;}Kn.AC(CB);Kn.prototype.include=function(nameSpaceName){var C=this,EF=document.getElementsByTagName("head"),Gf=null,Jc=false;try{if(EF&&EF[0]){C.head=EF[0];for(var B=0;B<C.head.childNodes.length;B++){Gf=C.head.childNodes[B];if(Gf.nodeName.toUpperCase()=="SCRIPT"){var YY=Gf.getAttribute("src");if(YY.toLowerCase()=="javascript/"+nameSpaceName.toLowerCase()+".js"){Jc=true;}}}if(!Jc){Gf=document.createElement("script");Gf.setAttribute("type","text/javascript");Gf.setAttribute("src","javascript/"+nameSpaceName.toLowerCase()+".js");C.head.appendChild(Gf);}}}catch($){throw $;}finally{EF=null;Gf=null;}};Kn.prototype.toString=function(){return objectName("namespaceManager");};this.nameSpaceManager=new Kn;function JB(M){this.M=M;this.Ms=this.M.style.position;this.TT=this.M.style.visibility;this.TU=this.M.style.display;this.Oi=false;}JB.AC(Cp);JB.prototype.showElement=function(){if(this.M.offsetWidth==0||this.M.offsetHeight==0){this.M.style.position="absolute";this.M.style.visibility="hidden";this.M.style.display="block";this.Oi=true;}};JB.prototype.resetElement=function(){if(this.Oi){this.M.style.position=this.Ms;this.M.style.visibility=this.TT;this.M.style.display=this.TU;this.Oi=false;}};JB.prototype.dispose=function(){if(!this.disposed){this.M=null;this.Ms=null;this.TT=null;this.TU=null;this.ae=null;}};JB.prototype.toString=function(){return objectName("styleSetting");};function Gi(){Gi.AG(this);}Gi.AC(CB);Gi.prototype.fillFromElement=function(M){var T=M;while(T&&T.style){this.add(new JB(T));T=T.parentNode;}T=null;};Gi.prototype.showElements=function(){for(var B=this.count-1;B>=0;B--){this.items[B].showElement();}};Gi.prototype.resetElements=function(){for(var B=0;B<this.count;B++){this.items[B].resetElement();}};Gi.prototype.toString=function(){return objectName("styleSettingCollection");};function EW(){EW.AG(this);}EW.AC(indigo.object);EW.prototype.left=function(element){if(!element){return 0;}var Fc=0;if(element.offsetParent){while(true){Fc+=element.offsetLeft;if(!element.offsetParent){break;}element=element.offsetParent;}}else if(element.x){Fc+=element.x;}return Fc;};EW.prototype.height=function(element){var E6=new Gi,B6=0;try{E6.fillFromElement(element);E6.showElements();B6=element.offsetHeight;E6.resetElements();}finally{E6.dispose();E6=null;}return B6;};EW.prototype.relativeLeft=function(element){if(!element){return 0;}var Fc=0;if(element.offsetParent){Fc+=element.offsetLeft;}return Fc;};EW.prototype.top=function(element){if(!element){return 0;}var IB=0;if(element.offsetParent){while(true){IB+=element.offsetTop;if(!element.offsetParent){break;}element=element.offsetParent;}}else if(element.y){IB+=element.y;}return IB;};EW.prototype.toString=function(){return objectName("elementHelper");};EW.prototype.width=function(element){var E6=new Gi,BH=0;try{E6.fillFromElement(element);E6.showElements();BH=element.offsetWidth;E6.resetElements();}finally{E6.dispose();E6=null;}return BH;};EW.prototype.isChildOf=function(parentElement,childElement){var AF=childElement;while(AF&&AF.parentElement){AF=AF.parentElement;if(AF==parentElement){return true;}}return false;};EW.prototype.preventSelect=function(element){if(element.style.MozUserSelect!==undefined){element.style.MozUserSelect="none";}else if(element.style.webkitUserSelect!==undefined){element.style.webkitUserSelect="none";}element.setAttribute("unselectable","on");};EW.prototype.getStyle=function(element,style){return element.currentStyle?element.currentStyle[style]:window.getComputedStyle(element,null).getPropertyValue(style);};this.elementHelper=new EW;function Hw(){Hw.AG(this);}Hw.AC(indigo.object);Hw.prototype.getLeft=function(){var AK=0,DH=window,Fv=null,E7=null,PB=null,B;try{while(DH.parent&&DH.parent!=DH){Fv=DH.parent;E7=Fv.document.getElementsByTagName("iframe");for(B=0;B<E7.length;B++){if(E7[B].contentWindow==DH){AK+=indigo.elementHelper.left(E7[B]);break;}}DH=Fv;}}finally{DH=null;Fv=null;E7=null;PB=null;}return AK;};Hw.prototype.getTop=function(){var AK=0,DH=window,Fv=null,E7=null,PB=null,B;try{while(DH.parent&&DH.parent!=DH){Fv=DH.parent;E7=Fv.document.getElementsByTagName("iframe");for(B=0;B<E7.length;B++){if(E7[B].contentWindow==DH){AK+=indigo.elementHelper.top(E7[B]);break;}}DH=Fv;}}finally{DH=null;Fv=null;E7=null;PB=null;}return AK;};Hw.prototype.getScrollXY=function(){var scrOfX=0,scrOfY=0;if(typeof window.pageYOffset=="number"){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}return{x:scrOfX,y:scrOfY};};Hw.prototype.toString=function(){return objectName("windowHelper");};this.windowHelper=new Hw;};indigo.F_();
