var atalaWebThumbnailViewerLoaded=true;var atalaWebThumbnailViewerVersion="9.0";var atalaThumbnailViewers=new Array();var atalaThumbnailCaptions=new Array();Atalasoft.Controls.WebThumbnailViewer=atalaWebThumbnailViewer;function atalaWebThumbnailViewer(aC,aA,W){this.typeOf="atalaWebThumbnailViewer";var bp=this;var ar=aC;var A=document.getElementById(W);if(A==null){A=document.forms[0]}var aI=aA;var L=null;var O=null;var bz=null;var bi=null;var be=null;var aZ=null;var az;function aB(bD){if(az==null){az=window.open("","atalaTraceLog")}az.document.writeln(ar+": "+bD+"
")}var aa=aB;this.BackColorChanged=function(){};this.BorderColorChanged=function(){};this.BorderStyleChanged=function(){};this.BorderWidthChanged=function(){};this.CaptionChanged=function(){};this.CenteredChanged=function(){};this.CountChanged=function(){};this.FontChanged=function(){};this.ForeColorChanged=function(){};this.MouseToolChanged=function(){};this.ScrollPositionChanged=function(){};this.SizeChanged=function(){}; this.TitleBarChanged=function(){};this.UrlChanged=function(){};this.VisibilityChanged=function(){};this.ZoomChanged=function(){};this.OnLoad=function(){};this.OnError=function(){};this.SelectedIndexChanged=function(){};this.ThumbnailClicked=function(){};this.ThumbnailDoubleClicked=function(){};this.ThumbnailMouseDown=function(){};this.ThumbnailMouseDownLeft=function(){};this.ThumbnailMouseDownRight=function(){};this.ThumbnailMouseMove=function(){};this.ThumbnailMouseOut=function(){};this.ThumbnailMouseOver=function(){};this.ThumbnailMouseUp=function(){};this.ThumbnailRightClicked=function(){};this.ThumbnailLoaded=function(){};this.ThumbnailDrop=function(){};this.ThumbnailDropServer=function(){};this.Clicked=function(){};this.DoubleClicked=function(){};this.MouseDown=function(){};this.MouseDownLeft=function(){};this.MouseDownRight=function(){};this.MouseMove=function(){};this.MouseOut=function(){};this.MouseOver=function(){};this.MouseUp=function(){};this.RightClicked=function(){};this.KeyDown=function(){}; this.KeyUp=function(){};this.KeyPress=function(){};this.FireEvent=aq;function aq(bD,bE){Atalasoft.Event.Fire(bp,bD,bE)}this.ThrowError=c;function c(bI,bE,bH,bG,bD){var bF=Atalasoft.Event.Throw(bI,bE,bH,bG,bD);aq("OnError",bF)}function aE(bD){return Atalasoft.DOM.getObject(bD)}function R(bD){return Atalasoft.Forms.getValue(A,bD)}function bu(bD){return Atalasoft.Forms.getValueInt(A,bD)}function H(bD){return Atalasoft.Forms.getValueFloat(A,bD)}function bo(bE,bD){Atalasoft.Forms.setValue(A,bE,bD)}atalaThumbnailViewers.push(this);aD();function aD(){O=document.getElementById(ar+"_om");if(O!=null){bz=aE(ar+"_ol");L=document.getElementById(ar);if(L==null){L=O.parentNode}bi=document.getElementById(ar+"_ot");be=document.getElementById(ar+"_oc");aZ=aE(ar+"_ov");if(a1()==0){P(64)}if(aQ()==0){ac(64)}if(y()){ak("visible")}else{ak("hidden")}}}this.AtlasReload=bm;function bm(){aD();bA()}this.Load=bA;function bA(){am();var bE=bb();if(bE!=""){ao("setBackColor",bE)}var bD=false;if(a4()==""&&e()>0){bD=true }z(bD);ab();aq("OnLoad",null)}this.Dispose=f;function f(){bp=null;ar=null;A=null;aI=null;L=null;O=null;bz=null;bi=null;be=null;aZ=null;this.BackColorChanged=null;this.BorderColorChanged=null;this.BorderStyleChanged=null;this.BorderWidthChanged=null;this.CaptionChanged=null;this.CenteredChanged=null;this.CountChanged=null;this.FontChanged=null;this.ForeColorChanged=null;this.ScrollPositionChanged=null;this.SizeChanged=null;this.TitleBarChanged=null;this.UrlChanged=null;this.VisibilityChanged=null;this.ZoomChanged=null;this.OnLoad=null;this.OnError=null;this.SelectedIndexChanged=null;this.ThumbnailClicked=null;this.ThumbnailDoubleClicked=null;this.ThumbnailMouseDown=null;this.ThumbnailMouseDownLeft=null;this.ThumbnailMouseDownRight=null;this.ThumbnailMouseMove=null;this.ThumbnailMouseOut=null;this.ThumbnailMouseOver=null;this.ThumbnailMouseUp=null;this.ThumbnailRightClicked=null;this.ThumbnailLoaded=null;this.ThumbnailDrop=null;this.ThumbnailDropServer=null;this.KeyDown=null;this.KeyUp=null; this.KeyPress=null}function ao(bF){if(aZ!=null){var bD=new Array();for(var bE=1;bE=0){bo(ar+"_cs",bD);ao("Repaint")}else{c("setColumns",3,bD,"Valid values are greater than or equal to 0.")}}this.setFont=k;function k(bE){try{bo(ar+"_f",bE);w();aq("FontChanged")}catch(bD){c("setFont",6,bE,bD.message,bD)}}this.setForeColor=au;function au(bE){try{bo(ar+"_fc",bE);w();aq("ForeColorChanged")}catch(bD){c("setForeColor",6,bE,bD.message,bD)}}this.setHeight=ac;function ac(bD){bo(ar+"_h",bD);bn();aq("SizeChanged")}this.setMouseTool=K;function K(bE,bD,bF){bD=(bD==null)?0:bD;bF=(bF==null)?0:bF;if(0<=bE<=7&&0<=bD<=7&&0<=bF<=8){bo(ar+"_mtl",bE);bo(ar+"_mtr",bD);bo(ar+"_mtc",bF);ao("MouseTool"); aq("MouseToolChanged")}else{c("setMouseTool",3,bE+", "+bD+", "+bF,"Valid values are 0-7, 0:None 1:Center 2:Selection 3:ZoomIn 4:ZoomOut 5:ZoomArea 6:Pan 7:PassThrough.")}}this.setMouseToolCursor=aL;function aL(bD){if(0<=bD<=8){bo(ar+"_mtc",bD);ao("MouseTool");aq("MouseToolChanged")}else{c("setMouseToolCursor",3,bD,"Valid values are 0-8, 0:Auto 1:Arrow 2:Crosshair 3:Grab 4:Hand 5:Move 6:ZoomIn 7:ZoomOut 8:Custom.")}}this.setMouseToolCustomCursor=I;function I(bE){try{bo(ar+"_mtcc",bE);ao("MouseTool");aq("MouseToolChanged")}catch(bD){c("setMouseToolCustomCursor",6,bE,"String representing css value for style.cursor expected.\n"+bD.message,bD)}}this.setRows=bv;function bv(bD){if(bD>=0){bo(ar+"_rs",bD);ao("Repaint")}else{c("setRows",3,bD,"Valid values are greater than or equal to 0.")}}this.setScrollBarVisibility=an;function an(bD){if(bD>=0&&bD<=2){bo(ar+"_sv",bD);ao("resetScrollBars")}}this.setScrollPosition=ag;function ag(bD,bF){if(bD.typeOf=="atalaPoint"||(isFinite(bD)&&isFinite(bF))){var bE=B(); if(bF){bD=new atalaPoint(bD,bF)}if(bD.X!=bE.X||bD.Y!=bE.Y){aU(bD,true)}}else{c("setScrollPosition",4,bD.typeOf||typeof(bD),"atalaPoint expected.")}}function aU(bH,bD){try{var bF=bx();var bJ=D();var bI=-(bF.Width-bJ.Width);var bG=-(bF.Height-bJ.Height);if(bH.X0){bH.X=0}if(bH.Y0){bH.Y=0}bo(ar+"_spx",-bH.X);bo(ar+"_spy",-bH.Y);if(bD==true){ao("ScrollTo",-bH.X,-bH.Y)}aq("ScrollPositionChanged")}catch(bE){c("setScrollPosition",6,bH.X+"x"+bH.Y,bE.message,bE)}}this.setTitleBar=aT;function aT(bE){try{bo(ar+"_t",bE);if(bi!=null){if(bE.length!=0){bi.innerHTML=bE}else{O.deleteRow(0);bi=null}}else{if(bE.length!=0){test=O.insertRow(0);bi=test.insertCell(0);bi.id=ar+"_ot";bi.innerHTML=bE}}w();aq("TitleBarChanged")}catch(bD){c("setTitleBar",6,bE,bD.message,bD)}}this.setSearchPattern=ah;function ah(bE,bD){a6(bE);if(!bD){a8(a4(),bE)}}this.setVisibility=ak;function ak(bE){try{if(bE=="visible"||bE=="inherit"){bo(ar+"_v","true")}else{bo(ar+"_v","false")}L.style.visibility=bE; O.style.visibility="inherit";aZ.style.visibility="inherit";if(bE=="visible"||bE=="inherit"){bn()}aq("VisibilityChanged")}catch(bD){c("setVisibility",6,bE,bD.message,bD)}}this.setWidth=P;function P(bD){bo(ar+"_w",bD);bn();aq("SizeChanged")}this.setZoom=aw;function aw(bD){if(bD>0){ao("setZoom",bD)}else{c("setZoom",3,bD,"Valid values are greater than 0.")}}this.setZoomDelay=af;function af(bD){ao("setZoomDelay",bD)}this.ClearThumbs=j;function j(){a0(0);aN("");a6("");ad()}this.Focus=bj;function bj(){ao("Focus")}this.OpenUrl=aO;function aO(bD,bE){if(bE==null){bE=""}if(J()!=-1){i(-1)}a6(bE);a8(bD,bE);aN(bD)}this.Update=bB;function bB(){ad(true)}this.PauseRefresh=g;function g(){ao("PauseRefresh")}this.ResumeRefresh=a;function a(){ao("ResumeRefresh")}this.ScrollBy=aX;function aX(bD,bE){if(isFinite(bD)&&isFinite(bE)){ao("ScrollBy",bD,bE)}}this.ScrollTo=bc;function bc(bD,bE){if(isFinite(bD)&&isFinite(bE)){ao("ScrollTo",bD,bE)}}this.ScrollToThumb=m;function m(bD){ao("ScrollToThumb",bD)}this.SelectThumb=i; function i(bD){ao("SelectThumb",bD)}this.UpdateThumb=aP;function aP(bD){ao("UpdateThumb",bD)}this.OpenSelected=bd;function bd(bF){if(bF>=0&&bF=255){aW=-aW}Y+=aW;O.style.border="3px solid rgb("+255+", "+Y+", "+Y+")";setTimeout(l,50)}}function aG(){var bD=a7();bD=(bD=="")?"?atalaimg=":bD;var bE=document.createElement("img");bE.src=bD+"spacer.gif";bE.style.position="absolute";bE.style.left="0px";bE.style.top="0px";bE.style.width="100%";bE.style.height="100%";bE.style.overflow="hidden";Atalasoft.DOM.DisableEvents(bE);document.body.appendChild(bE);document._atalaDrag=bE}function by(bF){try{if(!document._atalaDrag){aG()}var bG=bF;var bD=Atalasoft.Utils.getBrowserType();if((bF.ownerDocument!=L.ownerDocument)&&(bD==0||bD==2||bD==4)){if(navigator.userAgent.indexOf("MSIE 8")<0){bG=Atalasoft.DOM.CopyObject(bF)}}document._atalaDrag.onmousemove=bG.onmousemove;document._atalaDrag.onmouseup=bG.onmouseup;L.appendChild(bG);return bG}catch(bE){c("DragObjectToParent",4,bF,bE.message,bE)}}function aH(){return R(ar+"_isu") }this.getPagePath=u;function u(){return aI}function aY(){return bu(ar+"_sbh")}function ay(){return bu(ar+"_sbw")}this.getThumbDomObjects=h;function h(){return ao("getThumbDomObjects")}this.setCount=a0;function a0(bD){bo(ar+"_tc",bD);aq("CountChanged")}function a6(bD){bo(ar+"_dsp",bD)}function v(bD){bo(ar+"_cin",bD)}this.setThumbCaptions=X;function X(bD){bo(ar+"_tcj",bD)}this.setUrl=aN;function aN(bD){bo(ar+"_uri",bD)}function bn(){var bD=a1();var bE=aQ();L.style.width=bD;L.style.height=bE;if(bD.indexOf("%")>0){O.style.width="100%";bz.style.width="100%";aZ.style.width="100%"}else{O.style.width=bD;bz.style.width=bD;aZ.style.width=bD}if(bE.indexOf("%")>0){L.style.display="block";O.style.height="100%";bz.style.height="100%";aZ.style.height="100%"}else{O.style.height=bE;bz.style.height=bE;aZ.style.height=bE}}this.clearThumbCaptions=q;function q(){atalaThumbnailCaptions=new Array()}this.DoCallBack=aS;function aS(bD){var bE=aE(ar+"_of");bE.src=bD}this.LinkViewer=ab;function ab(){var bD=d();if(bD!=""){var bE=window[bD]; if(bE!=undefined&&bE.typeOf){if(bE.setParentControl){bE.setParentControl(bp)}}else{setTimeout(ar+".LinkViewer();",50)}bE=null}}this.DoServerDragDrop=aF;function aF(bF){var bD=aI+"?ataladragdrop=true&atala_id="+ar+"&atala_si="+Atalasoft.Utils.UrlEncode(a4())+"&atala_cin="+bF.index+"&atala_dgi="+bF.dragIndex+"&atala_dpi="+bF.dropIndex+"&atala_rnd="+Math.round(Math.random()*100000000);var bE=ae();if(bE!=""){bD+="&atala_dsp="+bE}aS(bD)}this.ServerDragDropCallback=aR;function aR(bG,bE,bD,bH){ao("ServerDragDropCallback");var bF=new Object();bF.dragIndex=bG;bF.dropIndex=bE;bF.success=bD;bF.error=bH;aq("ThumbnailDropServer",bF)}function a8(bE,bF){var bD=aI+"?atalagetcount=true&atala_id="+ar+"&atala_si="+Atalasoft.Utils.UrlEncode(bE)+"&atala_rnd="+Math.round(Math.random()*100000000);if(bF!=""){bD+="&atala_dsp="+bF}aS(bD)}function w(){var bE=bb();var bG=bh();var bH=al();var bD=aM();var bF=C();if(bi!=null){bi.parentNode.style.background=bE;bi.style.color=bD;bi.style.fontFamily=bF;bi.style.fontWeight="bold" }if(be!=null){be.parentNode.style.background=bE;be.style.color=bD;be.style.fontFamily=bF}O.cellSpacing=parseInt(bH);O.style.background=bG;O.style.color=bD;O.style.fontFamily=bF}}if(typeof(Sys)!=="undefined"&&Sys.Application){Sys.Application.notifyScriptLoaded()};