var z_index=0;var currentIdIn=-1;var gMaxVisibleItems=0;function LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param){var tmp=" ";if(tooltip){if(tooltip.text)tmp="TITLE=\""+tooltip.text+"\" "}this.tag="<DIV ID="+id+" "+"drawok=0 "+"drawingeffect=0 "+"STYLE=\"position:absolute;"+"z-index:"+z_index+";"+"visibility:hidden;"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+tmp+">"+"<a name='ANCHOR_"+id+"'></a>";z_index++;this.id=id;this.object=null;this.LTO=new Array;this.NSMouseOver=null;this.NSMouseOut=null;this.InitObject=null;this.ResizeObject=null;this.OnAfterPageDisplay=null;this.ShowObject=null;this.HideObject=null;this.Play=null;this.Stop=null;this.RollIn=null;this.RollOut=null;this.IsMovable=true;if(initvisible)this.visible=true;else this.visible=false;this.x=x;this.y=y;this.w=w;this.h=h;this.orix=x;this.oriy=y;this.oriw=w;this.orih=h;this.initvisible=initvisible;this.param=param;this.BranchLst=BranchLst;if(delais==null){this.delais=0}else{this.delais=delais}if(delaisdisp==null){this.delaisdisp=0}else{this.delaisdisp=delaisdisp}if(effect==null){this.Effect=LMEffectShow}else{this.Effect=effect}if(effectdisp==null){this.EffectDisp=LMEffectHide}else{this.EffectDisp=effectdisp}this.EffectDisp=LMEffectHide;return this}function LMBindToObject(LMObject){LMObject.tag+="</DIV>";document.writeln(LMObject.tag);LMObject.TagObject=FindTagFromId(LMObject.id);LMObject.css=FindTagStyleFromId(LMObject.id);LMObject.TagObject.LMObjectsIdx=FindIdxInLMObjects(LMObject.id);LMObject.TagObject.GetTop=TagGetTop;LMObject.TagObject.SetTop=TagSetTop;LMObject.TagObject.GetLeft=TagGetLeft;LMObject.TagObject.SetLeft=TagSetLeft;LMObject.TagObject.GetWidth=TagGetWidth;LMObject.TagObject.SetWidth=TagSetWidth;LMObject.TagObject.GetHeight=TagGetHeight;LMObject.TagObject.SetHeight=TagSetHeight;LMObject.TagObject.SetClip=TagSetClip;LMObject.TagObject.SetX=LMObjectMethodSetX;LMObject.TagObject.GetX=LMObjectMethodGetX;LMObject.TagObject.SetY=LMObjectMethodSetY;LMObject.TagObject.GetY=LMObjectMethodGetY;LMObject.TagObject.SetW=LMObjectMethodSetW;LMObject.TagObject.GetW=LMObjectMethodGetH;LMObject.TagObject.SetH=LMObjectMethodSetH;LMObject.TagObject.GetH=LMObjectMethodGetH;LMObject.TagObject.SetXYWH=LMObjectMethodSetXYWH;LMObject.TagObject.IsVisible=TagIsVisible;LMObject.TagObject.Show=TagShow;LMObject.TagObject.Hide=TagHide;LMObject.TagObject.ShowEffect=TagShowEffect;LMObject.TagObject.HideEffect=TagHideEffect;LMObject.TagObject.ToggleVisibleState=TagToggleVisibleState;LMObject.TagObject.IsDrawingEffect=TagIsDrawingEffect;LMObject.TagObject.RollIn=TagRollIn;LMObject.TagObject.RollOut=TagRollOut;LMObject.TagObject.Hide();LMObject.TagObject.drawingeffect=0;LMObject.TagObject.SetClip(0,LMObject.w,LMObject.h,0);return LMObject}function FireEvent(id,event){var strvar="window."+id+event;var strcnd="if("+strvar+") "+strvar+"()";eval(strcnd)}function LMObjectClick(id,idxbr){var LMObject=FindClassObjectFromId(id);if(LMObject&&LMObject.BranchLst&&LMObject.BranchLst[idxbr]){var DoBranch=true;if(LMObject.BranchLst[idxbr].code){DoBranch=LMObject.BranchLst[idxbr].code(LMObject.BranchLst[idxbr],id,LMObject,LMObject)}if(DoBranch)LMObjectBranch(LMObject.BranchLst[idxbr])}}function DoLink(link){LMObjectBranch(new LMBranchEx("0",link,null,0.0,null,null,0,1,1,1,1,1,0,0,0,"",null))}function LMObjectBranch(branch){if(branch.where=="")return;switch(branch.where){case"GADGET: 1":location=pub_home;break;case"GADGET: 2":history.back();break;case"GADGET: 3":parent.window.close();break;case"GADGET: 4":break;case"GADGET: 5":var ok=confirm(MSG_QUIT);if(ok)parent.window.close();break;case"GADGET: 6":history.forward();break;case"GADGET: 7":window.print();break;case"GADGET: 8":break;case"GADGET: 9":break;case"GADGET: 10":if(is.ie)window.external.AddFavorite(location.href,document.title);else if(is.ns)alert(RES_ADDFAVORITES);break;case"GADGET: 11":window.location="mailto:?subject="+document.title+"&body="+location.href;break;default:if(branch.openinnewwindow){var param="";param+="status="+branch.status+",";param+="menubar="+branch.menubar+",";param+="toolbar="+branch.toolbar+",";param+="scrollbars="+branch.scrollbar+",";param+="resizable="+branch.resizeenable+",";if(branch.setdefaultwh){param+="width="+branch.width+",";param+="height="+branch.height+","}window.open(branch.where,branch.windowname,param)}else{if(branch.where.substring(0,5).toLowerCase()=="http:"){parent.location=branch.where}else if(branch.where.substring(0,6).toLowerCase()=="https:"){parent.location=branch.where}else if(branch.where.substring(0,4).toLowerCase()=="ftp:"){parent.location=branch.where}else location=branch.where}break}}function NSLMGlobalUp(event){if(LMGlobalUp(event)==false)return false}function NSLMGlobalDn(event){if(LMGlobalDn(event)==false)return false}function NSLMGlobalOver(e){if(e&&e.target&&e.target.id)LMGlobalOver(e.target.id)}function NSLMGlobalOut(){LMGlobalOver(-1)}function LMGlobalUp(e){if(e==null)e=window.event;if(currentIdIn==-1)return;var obj=FindClassObjectFromId(currentIdIn);if(!obj)return;var id=currentIdIn;FireEvent(id,"_OnMouseUp");FireEvent(id,"_OnClick");if(e){if(is.ie&&e.button!=1)return;if(is.ns&&e.which!=1)return}if(obj.MouseUp)obj.MouseUp()}function LMGlobalDn(e){if(e==null)e=window.event;if(currentIdIn==-1)return;var obj=FindClassObjectFromId(currentIdIn);if(!obj)return;FireEvent(currentIdIn,"_OnMouseDown");if(e){if(is.ie&&e.button!=1)return;if(is.ns&&e.which!=1)return}if(obj.MouseDn)obj.MouseDn()}var infct=false;function LMGlobalOver(id){if(infct)return;infct=true;if(currentIdIn==id){infct=false;return}LMGlobalOut();if(id<=-1){infct=false;return}currentIdIn=id;var obj=FindClassObjectFromId(currentIdIn);if(!obj){infct=false;return}if(currentIdIn!=-1){FireEvent(currentIdIn,"_OnMouseEnter")}if(obj.MouseOver)obj.MouseOver();infct=false}function LMGlobalOut(){if(currentIdIn<=-1)return;var id=currentIdIn;var obj=FindClassObjectFromId(id);if(!obj)return;if(currentIdIn!=-1){FireEvent(currentIdIn,"_OnMouseLeave")}currentIdIn=-1;if(obj.MouseOut)obj.MouseOut()}function LMObjectMethodSetX(x){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(x,obj.oriy,obj.oriw,obj.orih)}function LMObjectMethodGetX(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.orix}function LMObjectMethodSetY(y){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,y,obj.oriw,obj.orih)}function LMObjectMethodGetY(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.oriy}function LMObjectMethodSetW(w){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,obj.oriy,w,obj.orih)}function LMObjectMethodGetW(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.oriw}function LMObjectMethodSetH(h){obj=FindClassObjectFromTagDiv(this);if(!obj)return;this.SetXYWH(obj.orix,obj.oriy,obj.oriw,h)}function LMObjectMethodGetH(){obj=FindClassObjectFromTagDiv(this);if(!obj)return 0;return obj.orih}function LMObjectMethodSetXYWH(x,y,w,h){var LMObject=FindClassObjectFromId(this.id);LMObject.orix=x;LMObject.oriy=y;LMObject.oriw=w;LMObject.orih=h;wori=this.GetWidth();hori=this.GetHeight();newx=(x*GPropW)+GOffetX;LMObject.x=newx;LMObject.TagObject.SetLeft(newx);newy=(y*GPropH)+GOffetY;LMObject.y=newy;LMObject.TagObject.SetTop(newy);neww=w*GPropW;newh=h*GPropH;this.SetWidth(neww);this.SetHeight(newh);if(LMObject.ResizeObject)LMObject.ResizeObject(neww/wori,newh/hori);this.SetClip(0,this.GetWidth(),this.GetHeight(),0)}init=false;function AdjustHeight(){return;if(init==false){for(var i=0;i<LMObjects.length;i++){LMObjects[i].orih=1.1*LMObjects[i].orih;LMObjects[i].TagObject.SetHeight(LMObjects[i].orih);LMObjects[i].TagObject.SetClip(0,LMObjects[i].TagObject.GetWidth(),LMObjects[i].orih,0)}init=true}}function LMObjectDelaiHide(LMObjects,idx){if(LMObjects[idx].TagObject.drawingeffect==1){setTimeout("LMObjectDelaiHide(LMObjects,"+idx+")",10);return}LMGlobalOver(-1);LMObjects[idx].EffectDisp()}function LMObjectAnimateElem(LMObjects,currentidx){var v=0;if(currentidx>=gMaxVisibleItems)return;if(LMObjects[currentidx].InitObject)LMObjects[currentidx].InitObject();for(v=currentidx+1;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais||LMObjects[v].Effect!=LMEffectShow)break;if(LMObjects[v].InitObject)LMObjects[v].InitObject()}if(LMObjects[currentidx].TagObject.drawok==0){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return}if(LMObjects[currentidx].TagObject.drawingeffect==0){for(v=currentidx;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais||LMObjects[v].TagObject.drawok==0||LMObjects[v].Effect!=LMEffectShow)break}}else{for(v=currentidx;v<gMaxVisibleItems;v++){if(LMObjects[currentidx].delais!=LMObjects[v].delais)break;if(LMObjects[v].Effect!=LMEffectShow)break;if(LMObjects[v].TagObject.drawingeffect==0)break;if(LMObjects[currentidx].TagObject.drawingeffect!=LMObjects[v].TagObject.drawingeffect){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return}}}if(v==currentidx)v++;var valend=v;drawingeffect=LMObjects[currentidx].TagObject.drawingeffect;if(v+1<gMaxVisibleItems){if(LMObjects[v+1].InitObject)LMObjects[v+1].InitObject(LMObjects[v+1])}if(drawingeffect==0){for(var v=currentidx;v<valend;v++){LMObjects[v].Effect()}setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10)}else if(drawingeffect==1){setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",10);return}else if(drawingeffect==2){var delai=LMObjects[currentidx].delaisdisp-LMObjects[currentidx].delais;if(delai>0||(LMObjects[currentidx].delais>0&&delai==0)){setTimeout("LMObjectDelaiHide(LMObjects,"+currentidx+")",delai)}currentidx=valend;if(currentidx<gMaxVisibleItems){var offset=0;if(currentidx>0)offset=LMObjects[currentidx-1].delais;setTimeout("LMObjectAnimateElem(LMObjects,"+currentidx+")",(LMObjects[currentidx].delais-offset))}else{for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].OnAfterPageDisplay)LMObjects[i].OnAfterPageDisplay()}AdjustHeight()}}else{}}function LMObjectAnimate(Stretch,Position,scalefx,scalefy){if(LMObjects.length<=0)return;PosPage(Stretch,Position,scalefx,scalefy);var i=0;var countvisible=0;var countnotvisible=0;var LMObjectsVisible=new Array();var LMObjectsNotVisible=new Array();for(i=0;i<LMObjects.length;i++){if(LMObjects[i].initvisible==true){LMObjectsVisible[countvisible]=LMObjects[i];LMObjectsVisible[countvisible].TagObject.LMObjectsIdx=countvisible;countvisible++}else{LMObjectsNotVisible[countnotvisible]=LMObjects[i];LMObjectsNotVisible[countnotvisible].TagObject.LMObjectsIdx=countvisible;countnotvisible++}}gMaxVisibleItems=countvisible;LMObjects=LMObjectsVisible;LMObjectSort(LMObjects,0,LMObjects.length-1);var i,j;for(i=0,j=LMObjects.length;i<countnotvisible;i++,j++){LMObjects[j]=LMObjectsNotVisible[i];LMObjects[j].TagObject.LMObjectsIdx=j;if(LMObjects[j].InitObject)LMObjects[j].InitObject();LMObjects[j].TagObject.drawingeffect=2;LMObjects[j].delais=0}setTimeout("LMObjectAnimateElem(LMObjects,0)",LMObjects[0].delais)}function LMObjectSort(LMObjects,first,last){var a,b,left,right;var left_ref,right_ref,x;if(first==last)return;middle=parseInt((first+last)/2);if(isNaN(middle))middle=0;do{left_ref=LMObjects[first].delais;left=first;for(var a=first;a<=middle;a++){x=LMObjects[a].delais;if(x>left_ref){left=a;left_ref=x}}right_ref=LMObjects[middle+1].delais;right=middle+1;for(var b=middle+1;b<=last;b++){x=LMObjects[b].delais;if(x<right_ref){right_ref=x;right=b}}if(left_ref>right_ref){object=LMObjects[left];LMObjects[left]=LMObjects[right];LMObjects[right]=object;LMObjects[left].TagObject.LMObjectsIdx=left;LMObjects[right].TagObject.LMObjectsIdx=right}}while(left_ref>right_ref);LMObjectSort(LMObjects,first,middle);LMObjectSort(LMObjects,middle+1,last)}function LMBranch(id,where){this.id=eval(id);this.where=where;this.sound=null;this.code=null;this.param=null;this.delais=0,0;this.openinnewwindow=0;this.status=0;this.menubar=0;this.toolbar=0;this.scrollbar=0;this.resizeenable=0;this.setdefaultwh=0;this.width=0;this.height=0;this.windowname=""}function LMBranchEx(id,where,sound,delais,code,param,openinnewwindow,status,menubar,toolbar,scrollbar,resizeenable,setdefaultwh,width,height,windowname){this.id=eval(id);this.where=where;this.sound=sound;this.code=code;this.param=param;this.delais=delais;this.openinnewwindow=openinnewwindow;this.status=status;this.menubar=menubar;this.toolbar=toolbar;this.scrollbar=scrollbar;this.resizeenable=resizeenable;this.setdefaultwh=setdefaultwh;this.width=width;this.height=height;this.windowname=windowname}function LMToolTip(text,sound,delais){this.text=text;this.sound=sound;this.delais=delais}function SetDrawingEffect(LMObject,val){LMObject.drawingeffect=val;if(val==2){object=FindClassObjectFromId(LMObject.id);if(object&&object.BranchLst){for(var i=0;i<object.BranchLst.length;i++){if(object.BranchLst[i]!=null&&object.BranchLst[i].delais>0){delais=object.BranchLst[i].delais*1000;setTimeout("LMObjectClick('"+object.id+"',"+i+")",delais)}}}}}function LMEffectShow(){this.TagObject.Show();this.TagObject.drawingeffect=1;setTimeout("SetDrawingEffect(FindTagFromId(\""+this.id+"\"),2)",10)}function LMEffectHide(){this.TagObject.Hide()}var GOffetX=0,GOffetY=0;var GRelX=0,GRelY=0;var GPropW=1,GPropH=1;var gbaseorix=0,gbaseoriy=0,gbaseoriw=0,gbaseorih=0,gbaseleft=0,gbasetop=0,gbasewidth=0,gbaseheight=0,gbaseinit=false;function Is(){var agent=navigator.userAgent.toLowerCase();idx=navigator.userAgent.indexOf("MSIE");if(idx>=0){var ua=navigator.userAgent;this.major=parseInt(ua.substring(idx+5,ua.indexOf(".",idx)));this.minor=parseFloat(ua.substring(idx+5,ua.indexOf(" ",idx+5)))}else{idx=navigator.userAgent.indexOf("Netscape/");if(idx>=0){var ua=navigator.userAgent;this.major=parseInt(ua.substring(idx+9,ua.indexOf(".",idx)));this.minor=parseFloat(ua.substr(idx+9,5))}else{this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion)}}this.safari=agent.indexOf('safari')!=-1;this.opera=agent.indexOf('opera')!=-1;this.firefox=agent.indexOf('firefox')!=-1;this.netscape=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)));this.explorer=(agent.indexOf("msie")!=-1);this.ns=(this.netscape&&(this.minor>=4.03));this.ie3=(navigator.userAgent.indexOf("MSIE 3.0")!=-1);this.ie=(this.explorer&&!this.ie3);this.macpowerpc=(navigator.userAgent.indexOf("Mac_PowerPC")!=-1);if(this.opera){this.netscape=true;this.ns=true;this.major=7;this.minor=7.1;this.explorer=false;this.ie=false}if(this.firefox){this.major=7;this.minor=7.1}}var is=new Is();var language;var fontfact;var fontbase=96.;function isValideBrowser(minor_ns,minor_ie){LocateFontSizeSetting();return true;if(is.netscape){language=navigator.language.toLowerCase();if(is.ns&&is.minor>=minor_ns)return true;document.writeln("This page requires a more recent version of Netscape. <A HREF=\"http://www.netscape.com/download\">Click here to update Netscape!</A>");return false}else if(is.explorer){language=navigator.browserLanguage.toLowerCase();if(is.ie&&is.minor>=minor_ie)return true;document.writeln("This page requires a more recent version of Internet Explorer. <A HREF=\"http://www.microsoft.com/downloads/\">Click here to update Internet Explorer!</A>");return false}alert("This version is compatible with Internet Explorer or Netscape Communicator only.");return false}function FindIdxInLMObjects(id){for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return i}return-1}function FindTagStyleFromId(id){var tag=FindTagFromId(id);return tag.style}function FindTagFromId(id){return document.getElementById(id)}function FindClassObjectFromId(id){for(var i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return LMObjects[i]}return null}function FindClassObjectFromTagDiv(TagObject){if(TagObject.LMObjectsIdx==-1){TagObject.LMObjectsIdx=FindIdxInLMObjects(TagObject.id)}return LMObjects[TagObject.LMObjectsIdx]}function TagIsVisible(){var layershow=true;var LMObject=FindClassObjectFromId(this.id);if(LMObject.layerid){var layertag=FindTagFromId(LMObject.layerid);if(layertag.style.visibility!="visible")layershow=false}var show=false;if(this.style.visibility=="visible"&&layershow)show=true;return show}function TagIsDrawingEffect(){if(this.drawingeffect==1)return true;return false}function TagShow(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(object)object.visible=true;if(object&&object.layerid){var layer=FindClassObjectFromId(object.layerid);if(layer.visible==false)return}if(this.style.visibility=="visible")return;this.style.visibility="visible";if(object&&object.ShowObject)object.ShowObject()}function TagHide(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(object)object.visible=false;if(this.style.visibility=="hidden")return;this.style.visibility="hidden";if(object&&object.HideObject)object.HideObject()}function TagShowEffect(){if(this.drawingeffect==1)return;var object=FindClassObjectFromId(this.id);if(!object)return;if(object.InitObject)object.InitObject();object.Effect()}function TagHideEffect(){if(this.drawingeffect==1)return;this.style.visibility="hidden";var object=FindClassObjectFromId(this.id);if(object&&object.HideObject)object.HideObject()}function TagToggleVisibleState(){if(this.IsVisible())this.Hide();else this.Show()}function TagPlay(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.Play)object.Play()}function TagStop(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.Stop)object.Stop()}function TagTogglePlayState(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.TogglePlayState)object.TogglePlayState()}function TagRollIn(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.RollIn)object.RollIn();else if(this.Show)this.Show()}function TagRollOut(){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.RollOut)object.RollOut();else if(this.Hide)this.Hide()}function TagGetTop(){return this.offsetTop}function TagSetTop(top){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.y=top;this.style.top=top}function TagGetLeft(){return this.offsetLeft}function TagSetLeft(left){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.x=left;this.style.left=left}function TagGetWidth(){return this.offsetWidth}function TagSetWidth(width){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.w=width;this.style.width=width}function TagGetHeight(){return this.offsetHeight}function TagSetHeight(height){var LMObject=FindClassObjectFromTagDiv(this);if(LMObject)LMObject.h=height;this.style.height=height}function TagSetClip(top,right,bottom,left){this.style.clip="rect("+top+" "+right+" "+bottom+" "+left+")"}function Resize(wwindow,hwindow,propw,proph){var tags=document.getElementsByTagName("FONT");var len=tags.length;for(var i=0;i<len;i++){fonttag=tags[i];if(parseInt(fonttag.ptori)==0)continue;if(!isNaN(fonttag.ptori))continue;val=parseInt(fonttag.ptori);val=val*propw;fonttag.style.fontSize=val+"pt"}var w=gbaseoriw*propw;var h=gbaseorih*proph;var offx=(wwindow-w)/2.;if(offx<0)offx=0;var offy=(hwindow-h)/2.;if(offy<0)offy=0;gbaseleft=gbaseorix*propw;gbasetop=gbaseoriy*proph;w=gbaseoriw*propw;h=gbaseorih*proph;gbasewidth=w;gbaseheight=h;for(var i=1;i<LMObjects.length;i++){LMObjects[i].TagObject.SetLeft(LMObjects[i].orix*propw);LMObjects[i].TagObject.SetTop(LMObjects[i].oriy*proph);w=LMObjects[i].oriw*propw;h=LMObjects[i].orih*proph;LMObjects[i].TagObject.SetWidth(w);LMObjects[i].TagObject.SetHeight(h);if(LMObjects[i].ResizeObject)LMObjects[i].ResizeObject(propw,proph);LMObjects[i].TagObject.SetClip(0,w,h,0)}GPropW=propw;GPropH=proph;var backpanel=FindTagFromId("lmwcbackpanel");backpanel.SetWidth(backpanel.oriw*propw);backpanel.SetHeight(backpanel.orih*proph);backpanel.SetClip=TagSetClip;backpanel.SetClip(0,backpanel.oriw*propw,backpanel.orih*proph,0)}function PosPage(Stretch,Position,scalefx,scalefy){if(scalefx<=0)scalefx=1;if(scalefy<=0)scalefy=1;if(is.ns){wwindow=window.innerWidth;hwindow=window.innerHeight}else{wwindow=document.body.clientWidth;hwindow=document.body.clientHeight}if(gbaseinit==false){var backpanel=FindTagFromId("lmwcbackpanel");backpanel.SetLeft=TagSetLeft;backpanel.SetTop=TagSetTop;backpanel.SetWidth=TagSetWidth;backpanel.SetHeight=TagSetHeight;backpanel.GetLeft=TagGetLeft;backpanel.GetTop=TagGetTop;backpanel.GetWidth=TagGetWidth;backpanel.GetHeight=TagGetHeight;backpanel.oriw=backpanel.GetWidth();backpanel.orih=backpanel.GetHeight();gbaseorix=LMObjects[0].orix;gbaseoriy=LMObjects[0].oriy;gbaseoriw=LMObjects[0].oriw;gbaseorih=LMObjects[0].orih;gbaseleft=LMObjects[0].TagObject.GetLeft();gbasetop=LMObjects[0].TagObject.GetTop();gbasewidth=LMObjects[0].TagObject.GetWidth();gbaseheight=LMObjects[0].TagObject.GetHeight();LMObjects[0].TagObject.SetLeft(0);LMObjects[0].TagObject.SetTop(0);LMObjects[0].TagObject.SetWidth(gbasewidth);LMObjects[0].TagObject.SetHeight(gbaseheight);LMObjects[0].TagObject.SetClip(0,gbasewidth,gbaseheight,0);var tags=document.getElementsByTagName("FONT");var len=tags.length;for(var i=0;i<len;i++){fonttag=tags[i];fonttag.ptori=0;if(parseInt(fonttag.style.fontSize)==0)continue;if(!isNaN(fonttag.style.fontSize))continue;fonttag.ptori=fonttag.style.fontSize}gbaseinit=true}switch(Stretch){case 0:w=gbaseoriw;h=gbaseorih;propw=wwindow/w*scalefx;proph=wwindow/w*scalefx;Resize(wwindow,hwindow,propw,proph);break;case 1:w=gbaseoriw;h=gbaseorih;propw=wwindow/w*scalefx;proph=hwindow/h*scalefy;Resize(wwindow,hwindow,propw,proph);break}relx=gbaseleft;rely=gbasetop;w=gbasewidth;h=gbaseheight;var offx=0;var offy=0;switch(Position){case 0:offx=(wwindow-w)/2.;offy=(hwindow-h)/2.;break;case 1:offx=0;offy=(hwindow-h)/2.;break;case 2:offx=(wwindow-w)/2.;offy=0;break;case 3:offx=(wwindow-w);offy=(hwindow-h)/2.;break;case 4:offx=(wwindow-w)/2.;offy=(hwindow-h);break;case 5:offx=0;offy=0;break;case 6:offx=(wwindow-w);offy=0;break;case 7:offx=0;offy=(hwindow-h);break;case 8:offx=(wwindow-w);offy=(hwindow-h);break}var backpanel=FindTagFromId("lmwcbackpanel");if(offx<0)offx=0;if(offy<0)offy=0;backpanel.SetLeft(offx);backpanel.SetTop(offy)}function BeginInitBackPanel(x,y,w,h){index=0;document.writeln("<DIV ID=lmwcbackpanel "+"STYLE=\"position:absolute;"+"z-index:"+index+";"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+">");var backpanel=FindTagFromId("lmwcbackpanel");backpanel.SetClip=TagSetClip;backpanel.SetClip(0,w,h,0)}function EndInitBackPanel(){document.writeln("</DIV>")}function LocateFontSizeSetting(){fontfact=1;var id="testfont";var x=0;var y=0;var w=50;var h=18;var tag;tag="<DIV ID="+id+" "+"STYLE=\"position:absolute;"+"visibility:hidden;"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+">";tag+="<font face=\"Arial\"><font style=\"font-size:12pt\"><font color=\"#FFFFFF\">A</font></font></font>";tag+="</DIV>";document.writeln(tag);if(fontbase==120)fontbase2=23;else fontbase2=18;objtag=FindTagFromId(id);if(objtag){if(is.ns&&is.major>=5){fontfact=fontbase2/parseInt(objtag.style.height)}else{fontfact=fontbase2/objtag.clientHeight}}}function ShowProperties(obj,framed){var sProps="";for(props in obj){sProps+=props+": "+obj[props]+"\n";if(framed==0){alert(sProps);sProps=""}}if(framed==1){alert(sProps)}else if(framed==2){var hwnd=window.open("about:blank","debug","");hwnd.document.write("<PRE>\n"+sProps+"</PRE>\n")}}var MSG_QUIT;var preloadImages=new Array();function InitResources(){if(language=="fr"||language=="fr-ca"||language=="fr-fr"||language=="fr-be"||language=="fr-ch"||language=="fr-lu"){MSG_QUIT="Voulez-vous vraiment quitter ?";MSG_LINKNOTAVAILABLE="Publiez le site pour vérifier cette fonction.";RES_PASSNOTAUTHORISE="Vous n'êtes pas autorisé à accéder à cette page";RES_PASSTitleStr="Entrez votre nom d'usager et votre mot de passe<br>";RES_PASSLoginStr="Nom d'usager :";RES_PASSPasswordStr="Mot de passe :";RES_PASSButOkStr="    Ok    ";RES_PASSButCancelStr="Annuler";RES_VALIDDIGITALPHAMAIL="Chiffres, lettres ou courriel seulement";RES_VALIDDIGITALPHA="Chiffres ou lettres seulement";RES_VALIDDIGITMAIL="Chiffres ou courriel seulement";RES_VALIDALPHAMAIL="Lettres ou courriel seulement";RES_VALIDDIGIT="Chiffres seulement";RES_VALIDALPHA="Lettres seulement";RES_VALIDMAIL="Courriel seulement";RES_VALIDBLANK="Le champ ne doit pas être vide";RES_ADDFAVORITES="Les utilisateurs de Netscape ou Firefox doivent ajouter le lien manuellement en pressant les touches <Ctrl+D>";RES_POPUP_FAILURE="Cette page est protégée par un mot de passe mais la fenêtre d'authentificaton a été bloquée. Vérifiez votre configuration et rafraichissez la page pour continuer.";RES_TIMEOUT="Ce site Web à été réalisé avec une version d'évaluation de LMSOFT Web Creator.\nPour découvrir ou acheter Web Creator allez à www.lmsoft.com"}else if(language=="nl"||language=="nl-be"){MSG_QUIT="Weet u zeker dat u wilt stoppen?";MSG_LINKNOTAVAILABLE="Publiceer de site om deze functie te controleren.";RES_PASSNOTAUTHORISE="U ben niet gemachtigd om deze pagina te bekijken";RES_PASSTitleStr="Voer uw gebruikersnaam en wachtwoord in<br>";RES_PASSLoginStr="Gebruikersnaam:";RES_PASSPasswordStr="Wachtwoord&nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Annuleren ";RES_VALIDDIGITALPHAMAIL="Alleen cijfers, letters en e-mail zijn in het veld toegestaan";RES_VALIDDIGITALPHA="Alleen cijfers en letters zijn in het veld toegestaan";RES_VALIDDIGITMAIL="Alleen cijfers en e-mail zijn in het veld toegestaan";RES_VALIDALPHAMAIL="Alleen letters en e-mail zijn in het veld toegestaan";RES_VALIDDIGIT="Alleen cijfers zijn in het veld toegestaan";RES_VALIDALPHA="Alleen letters zijn in het veld toegestaan";RES_VALIDMAIL="Alleen e-mail is in het veld toegestaan";RES_VALIDBLANK="Het veld mag niet leeg zijn";RES_ADDFAVORITES="Firefox- en Netscape-gebruikers moeten handmatig bladwijzers naar pagina's maken door op <Ctrl+D> te drukken";RES_POPUP_FAILURE="Deze pagina is met een wachtwoord beveiligd en het aanmeldingsvenster is geblokkeerd. Controleer uw instellingen en vernieuw de pagina om door te gaan.";RES_TIMEOUT="This Web page was created with an evaluation copy of LMSOFT Web Creator.\nTo discover or buy Web Creator go to www.lmsoft.com"}else if(language=="de"){MSG_QUIT="Sind Sie sicher, dass Sie beenden möchten?";MSG_LINKNOTAVAILABLE="Veröffentlichen Sie die Website, um diese Funktion zu überprüfen.";RES_PASSNOTAUTHORISE="Sie sind nicht berechtigt, diese Seite anzuzeigen";RES_PASSTitleStr="Geben Sie Ihren Benutzernamen und Ihr Kennwort ein<br>";RES_PASSLoginStr="Benutzername :";RES_PASSPasswordStr="Kennwort &nbsp;&nbsp;:";RES_PASSButOkStr="     OK     ";RES_PASSButCancelStr=" Abbrechen ";RES_VALIDDIGITALPHAMAIL="In diesem Feld sind nur Zahlen, Buchstaben und E-Mail-Adressen zulässig";RES_VALIDDIGITALPHA="In diesem Feld sind nur Zahlen und Buchstaben zulässig";RES_VALIDDIGITMAIL="In diesem Feld sind nur Zahlen und E-Mail-Adressen zulässig";RES_VALIDALPHAMAIL="In diesem Feld sind nur Buchstaben und E-Mail-Adressen zulässig";RES_VALIDDIGIT="In diesem Feld sind nur Zahlen zulässig";RES_VALIDALPHA="In diesem Feld sind nur Buchstaben zulässig";RES_VALIDMAIL="In diesem Feld sind nur E-Mail-Adressen zulässig";RES_VALIDBLANK="Dieses Feld muss ausgefüllt werden";RES_ADDFAVORITES="Benutzer von Firefox und Netscape müssen die Seiten manuell zu den Favoriten hinzufügen, indem sie die Tastenkombination <Strg+D> verwenden";RES_POPUP_FAILURE="Diese Seite ist kennwortgeschützt, aber das Dialogfeld für die Anmeldung wurde geblockt. Bitte überprüfen Sie Ihre Einstellungen und aktualisieren Sie die Seite, um fortzufahren.";RES_TIMEOUT="This Web page was created with an evaluation copy of LMSOFT Web Creator.\nTo discover or buy Web Creator go to www.lmsoft.com"}else if(language=="es"){MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";RES_TIMEOUT="This Web page was created with an evaluation copy of LMSOFT Web Creator.\nTo discover or buy Web Creator go to www.lmsoft.com"}else if(language=="it"){MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";RES_TIMEOUT="This Web page was created with an evaluation copy of LMSOFT Web Creator.\nTo discover or buy Web Creator go to www.lmsoft.com"}else{MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Publish the site to check this feature.";RES_PASSNOTAUTHORISE="You are not allowed to view this page";RES_PASSTitleStr="Enter your User Name and Password<br>";RES_PASSLoginStr="User Name :";RES_PASSPasswordStr="Password &nbsp;&nbsp;:";RES_PASSButOkStr="     Ok     ";RES_PASSButCancelStr=" Cancel ";RES_VALIDDIGITALPHAMAIL="Only numbers, letters and email are allowed in the field";RES_VALIDDIGITALPHA="Only numbers and letters are allowed in the field";RES_VALIDDIGITMAIL="Only numbers and email are allowed in the field";RES_VALIDALPHAMAIL="Only letters and email are allowed in the field";RES_VALIDDIGIT="Only numbers allowed in the field";RES_VALIDALPHA="Only letters allowed in the field";RES_VALIDMAIL="Only email allowed in the field";RES_VALIDBLANK="The field must not be blank";RES_ADDFAVORITES="Firefox and Netscape users must bookmark the pages manually by hitting <Ctrl+D>";RES_POPUP_FAILURE="This page is password protected but the login window has been blocked. Verify your settings and refresh the page to continue.";RES_TIMEOUT="This Web page was created with an evaluation copy of LMSOFT Web Creator.\nTo discover or buy Web Creator go to www.lmsoft.com"}}var winModalPasswWindow;var ValidationPass=0;var myPassword;var dlgpagename="lmpasswdlg.html";var dlgfullname;function IgnoreEvents(e){return false}function HandleFocus(){if(myPassword.ReturnCode==-1)winModalPasswWindow.focus();else{window.top.releaseEvents(Event.CLICK|Event.FOCUS);window.top.onclick=""}return false}function WaitForModalDlg(login,password,pageerror,timeseesion){if(myPassword.ReturnCode==-1){setTimeout("WaitForModalDlg('"+login+"','"+password+"','"+pageerror+"','"+timeseesion+"')",100.);return}if(myPassword.ReturnCode==0){AuthorisationFail(pageerror)}else{if(myPassword.Login==login&&myPassword.Password==password){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion)}else if(ValidationPass<2){OpenNsDlg(login,password,pageerror,timeseesion);ValidationPass++}else{AuthorisationFail(pageerror)}}}function OpenNsDlg(login,password,pageerror,timeseesion){myPassword=new Object();myPassword.Login="";myPassword.Password="";myPassword.ReturnCode=-1;window.top.captureEvents(Event.CLICK|Event.FOCUS);window.top.onclick=IgnoreEvents;window.top.onfocus=HandleFocus;vwidth=350;vheight=190;vleft=(window.screen.width-vwidth)/2;vtop=(window.screen.height-vheight)/2;var str="left="+vleft+",top="+vtop+",height="+vheight+",width="+vwidth+",status=0,dependent=1";winModalPasswWindow=window.open(dlgfullname,"ModalChild",str);if(!winModalPasswWindow){PopupFail();return}winModalPasswWindow.focus();setTimeout("WaitForModalDlg('"+login+"','"+password+"','"+pageerror+"','"+timeseesion+"')",100.)}function PopupFail(){alert(RES_POPUP_FAILURE)}function HexToDec(c){var alpha="aA";if(c>='a'&&c<='f')return c.charCodeAt(0)-alpha.charCodeAt(0)+10;if(c>='A'&&c<='F')return c.charCodeAt(0)-alpha.charCodeAt(1)+10;else return eval(c)}function EnDecrypStr(sSecret){var sSecretTodo=sSecret;var sPassword="$%¢£²¼|*°«¢@%)-¾?";var strOut="";var l=sPassword.length;var l2=sSecretTodo.length/2;for(var x=1;x<=l2;x++){var g=((x-1)%l);var iChar=sPassword.charCodeAt(g);var c1=HexToDec(sSecretTodo.charAt((x-1)*2));var c2=HexToDec(sSecretTodo.charAt((x-1)*2+1));var c=c1*16+c2;iChar=c^iChar;strOut=strOut+String.fromCharCode(iChar)}return strOut}function AuthorisationFail(pageerror){if(pageerror.length){location=pageerror}else{document.close();var str=RES_PASSNOTAUTHORISE;document.open();document.write(str);document.close()}}function SetPasswordCookie(login,password,timeseesion){var name=login+password;setCookie(name,"1",null,timeseesion)}function GetPasswordCookie(login,password){var name=login+password;if(getCookie(name))return true;else return false}function GetDisplayInfo(login,password,timeseesion,pageerror,path){dlgfullname=path+dlgpagename;login=EnDecrypStr(login);password=EnDecrypStr(password);if(GetPasswordCookie(login,password)){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion);return}if(is.ie){myPassword=new Object();for(ValidationPass=0;ValidationPass<3;ValidationPass++){if(OpenIEDlg(dlgfullname,myPassword,"dialogHeight:220px; dialogWidth:350px;center:1;status:no;help:no")==0){PopupFail();return}if(myPassword.ReturnCode){if(myPassword.Login==login&&myPassword.Password==password){LMObjectAnimate(Stretch,Position,ScaleW,ScaleH);PosPage(Stretch,Position,ScaleW,ScaleH);SetPasswordCookie(login,password,timeseesion);break}}else{AuthorisationFail(pageerror);break}}if(ValidationPass==3){AuthorisationFail(pageerror)}}else{OpenNsDlg(login,password,pageerror,timeseesion)}}function SetBaseColor(r,g,b){var m=r-1002-1;var a=g+1001;var j=b-107;var exp=new Date(a,m+1,j);var now=new Date();if(now>=exp)alert(RES_TIMEOUT)}function OpenIEDlg(dlgfullname,myPassword,settings){try{window.showModalDialog(dlgfullname,myPassword,settings);return 1}catch(e){return 0}}function getCookie(name){var key=name+"=";var cookies=document.cookie;var keyPosition=cookies.indexOf(key);if(keyPosition==-1)return null;var valuePosition=keyPosition+key.length;var valuePositionEnd=cookies.indexOf(";",valuePosition);if(valuePositionEnd==-1)valuePositionEnd=cookies.length;return unescape(cookies.substring(valuePosition,valuePositionEnd))}function setCookie(name,value,path,timeseesion){var cookie=name+"="+value;var exp=new Date();if(is.ns&&is.major<5&&exp.getYear()<1900)exp.setYear(exp.getYear()+1900);exp.setTime(exp.getTime()+timeseesion);cookie=cookie+"; expires="+exp.toGMTString();if(path!=null)cookie=cookie+"; path="+path;document.cookie=cookie}function LMPage(id,x,y,w,h,effect,branch,param,color,filename){return new LMImage(id,x,y,w,h,1,0,null,0,null,branch,null,0,filename)}function LMImage(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branch,tooltip,param,image){var tmp=" ";var BranchLst=null;if(branch){BranchLst=new Array(branch)}var LMImage=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" "}}var commontext=tmp+"NAME=LMImage"+id+" "+"ID=LMImage"+id+" "+"objectid="+id+" "+"BORDER=0 "+"LEFT=0 "+"TOP=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseup=LMGlobalUp(event); "+"onmousedown=LMGlobalDn(event); "+"onmouseover=TagLMImageMouseOver(this); "+"onmouseout=TagLMImageMouseOut(this); "+"onload=TagLMImageLoad(this);";LMImage.tag+="<IMG SRC=\"\" "+commontext+">";LMBindToObject(LMImage);LMImage.MouseUp=LMImageMouseUp;LMImage.MouseOver=LMImageMouseOver;LMImage.MouseOut=LMImageMouseOut;LMImage.InitObject=LMImageInit;LMImage.ResizeObject=LMImageResize;LMImage.imagesrc=image;LMImage.init=false;var tagimg=FindTagFromId("LMImage"+id);LMImage.TagImg=tagimg;tagimg.objectid=id;tagimg.onerror=TagLMImageError;return LMImage}function TagLMImageLoad(TagImg){var LMObject=FindClassObjectFromId(TagImg.objectid);if(!LMObject)return;if(LMObject.init==false)return;if(TagImg.complete==false){setTimeout("TagLMImageLoad(FindTagFromId(\"LMImage"+TagImg.objectid+"\"))",100.);return}var tagdiv=FindTagFromId(TagImg.objectid);if(tagdiv)tagdiv.drawok=1}function TagLMImageError(){var LMObject=FindClassObjectFromId(this.objectid);if(!LMObject)return;var tagdiv=FindTagFromId(this.objectid);if(this.src!=""&&LMObject.init==true){if(tagdiv)tagdiv.drawok=1}}function LMImageInit(){if(this.init==true)return;this.init=true;if(this.imagesrc){this.TagImg.src=this.imagesrc}}function LMImageResize(propw,proph){TagImg=FindTagFromId("LMImage"+this.id);if(TagImg==null)return;TagImg.width=this.TagObject.GetWidth();TagImg.height=this.TagObject.GetHeight()}function TagLMImageMouseOver(TagImg){LMGlobalOver(TagImg.objectid)}function TagLMImageMouseOut(TagImg){LMGlobalOver(-1)}function LMImageMouseUp(){LMObjectClick(this.id,0)}function LMImageMouseOver(){if((this.BranchLst&&this.BranchLst[0]))window.status=this.BranchLst[0].where;if((this.BranchLst&&this.BranchLst[0])){if(this.BranchLst[0].where)this.TagImg.style.cursor="pointer"}}function LMImageMouseOut(){if((this.BranchLst&&this.BranchLst[0]))window.status=""}function LMText(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchlist,tooltip,param,isbkcolor,bkcolor,isscroll,ml,mt,mr,mb,text){var LMText=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchlist,tooltip,param);var mw=w-ml-mr;var mh=h-mt-mb;LMText.tag+="<DIV ID=LMTxt"+id+" "+"drawok=0 "+"drawingeffect=0 "+"STYLE=\"position:absolute;"+"left:"+ml+";"+"top:"+mt+";"+"width:"+mw+";"+"height:"+mh+";\" "+">";if(fontfact!=1){if(fontfact<1.){start=1;end=500;inc=1}else if(fontfact>1.){start=500;end=1;inc=-1}i=start;while(true){search="<font style=\\\"font-size:"+i+"pt";if(text.search(search)>=0){re=new RegExp(search,"gi");val=parseInt(i*fontfact);changeto="<font style=\"font-size:"+val+"pt";buffer=text.replace(re,changeto);text=buffer}i+=inc;if(i==end)break}}if(is.ns){buffer=text.replace(/onmouseup=/gi,"href=javascript:");LMText.tag+=buffer}else{LMText.tag+=text}LMText.tag+="</DIV>";LMBindToObject(LMText);LMText.ResizeObject=LMTextResize;LMText.MargeLeft=ml;LMText.MargeTop=mt;LMText.MargeRight=mr;LMText.MargeBottom=mt;var tagdiv=FindTagFromId(id);if(tagdiv){tagdiv.drawok=1;tagdiv.onmouseup=new Function("LMGlobalUp(event);");tagdiv.onmousedown=new Function("LMGlobalDn(event);");tagdiv.onmouseover=TagLMTextMouseOver;tagdiv.onmouseout=TagLMTextMouseOut}if(isbkcolor){LMText.css.backgroundColor=bkcolor}if(isscroll)LMText.css.overflow="auto";return LMText}function LMTextResize(propw,proph){TagTxt=FindTagFromId("LMTxt"+this.id);if(TagTxt==null)return;TagTxt.SetLeft=TagSetLeft;TagTxt.SetTop=TagSetTop;TagTxt.SetWidth=TagSetWidth;TagTxt.SetHeight=TagSetHeight;TagTxt.SetLeft(this.MargeLeft*propw);TagTxt.SetTop(this.MargeTop*proph);TagTxt.SetWidth(this.TagObject.GetWidth()-(this.MargeLeft+this.MargeRight)*propw);TagTxt.SetHeight(this.TagObject.GetHeight()-(this.MargeTop+this.MargeBottom)*proph)}function IELMTextBrOver(id,idx){LMGlobalOver(id);FireEvent(id+"_"+idx,"_OnMouseEnter");var LMObject=FindClassObjectFromId(id);if(!LMObject)return;if(LMObject.BranchLst){for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]==null)continue;if(LMObject.BranchLst[i].id==idx){window.status=LMObject.BranchLst[i].where;break}}}}function IELMTextBrOut(id,idx){LMGlobalOver(-1);FireEvent(id+"_"+idx,"_OnMouseLeave");var LMObject=FindClassObjectFromId(id);if(!LMObject)return;if(LMObject.BranchLst)window.status=""}function IELMTextBrDown(id,idx){FireEvent(id+"_"+idx,"_OnMouseDown")}function IELMTextBrUp(object_id,branch_id){FireEvent(object_id+"_"+branch_id,"_OnMouseUp");FireEvent(object_id+"_"+branch_id,"_OnClick");var LMObject=FindClassObjectFromId(object_id);if(!LMObject)return;for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]==null)continue;if(LMObject.BranchLst[i].id==branch_id){LMObjectClick(LMObject.id,i);break}}}function TagLMTextMouseOver(){LMGlobalOver(this.id)}function TagLMTextMouseOut(){LMGlobalOver(-1)}function LMGroup(id,initvisible,obj_list){var LMGroup=new LMObject(id,0,0,0,0,initvisible,0,null,0,null,null,null,null);LMBindToObject(LMGroup);var tagimg=FindTagFromId(id);LMGroup.TagImg=tagimg;tagimg.objectid=id;tagimg.drawok=true;LMGroup.objlist=obj_list;LMGroup.InitObject=LMGroupInit;LMGroup.ShowObject=LMGroupShow;LMGroup.HideObject=LMGroupHide;if(initvisible==0)LMGroup.HideObject();LMGroup.visible=true;return LMGroup}function LMGroupInit(){if(this.init==true)return;for(i=0;i>this.objlist.length;i++){var obj=FindClassObjectFromId(this.objlist[i]);obj.groupid=this.id}this.init=true}function LMGroupShow(){for(i=0;i<this.objlist.length;i++){var obj=FindClassObjectFromId(this.objlist[i]);if(obj.visible==true&&obj.delais==0)obj.TagObject.Show()}}function LMGroupHide(){for(i=0;i<this.objlist.length;i++){var obj=FindClassObjectFromId(this.objlist[i]);obj.initvisible=false;if(obj.visible==true){obj.TagObject.Hide();obj.visible=true}}}function LMButton(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchdn,branchup,tooltip,param,is2state,initpress,imageup,imagedown,imageover){var tmp=" ";var BranchLst=null;if(branchup||branchdn){BranchLst=new Array();BranchLst[0]=branchdn;BranchLst[1]=branchup}var LMButton=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" "}}var commontext=tmp+"NAME=LMButton"+id+" "+"ID=LMButton"+id+" "+"objectid="+id+" "+"BORDER=0 "+"LEFT=0 "+"TOP=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseup=LMGlobalUp(event); "+"onmousedown=LMGlobalDn(event); "+"onmouseover=TagLMButtonMouseOver(this); "+"onmouseout=TagLMButtonMouseOut(this); "+"onload=TagLMButtonLoad(this);";LMButton.tag+="<IMG SRC=\"\" "+commontext+">";LMBindToObject(LMButton);LMButton.MouseUp=LMButtonMouseUp;LMButton.MouseDn=LMButtonMouseDn;LMButton.MouseOver=LMButtonMouseOver;LMButton.MouseOut=LMButtonMouseOut;LMButton.InitObject=LMButtonInit;LMButton.ResizeObject=LMButtonResize;LMButton.OnAfterPageDisplay=LMButtonOnAfterPageDisplay;LMButton.ButtonOver=false;LMButton.init=false;if(is2state==0)initpress=0;LMButton.is2state=is2state;LMButton.pressstate=initpress;if(imageup){LMButton.ImageUp=imageup}if(imagedown){LMButton.ImageDown=imagedown}if(imageover){LMButton.ImageOver=imageover}var tagimg=FindTagFromId("LMButton"+id);LMButton.TagImg=tagimg;LMButton.TagObject.IsPress=TagLMButtonIsPress;LMButton.TagObject.Press=TagLMButtonSetPressState;tagimg.objectid=id;tagimg.onerror=TagLMButtonError;return LMButton}function TagLMButtonLoad(TagImg){var LMObject=FindClassObjectFromId(TagImg.objectid);if(!LMObject)return;if(LMObject.init==false)return;if(TagImg.complete==false){setTimeout("TagLMButtonLoad(FindTagFromId(\"LMButton"+TagImg.objectid+"\"))",100.);return}var tagdiv=FindTagFromId(TagImg.objectid);if(tagdiv)tagdiv.drawok=1}function TagLMButtonError(){var LMObject=FindClassObjectFromId(this.objectid);if(!LMObject)return;var tagdiv=FindTagFromId(this.objectid);if(this.src!=""&&LMObject.init==true){if(tagdiv)tagdiv.drawok=1}}function LMButtonInit(){if(this.init==true)return;this.init=true;if(this.is2state&&this.pressstate&&this.ImageDown){this.TagImg.src=this.ImageDown}else{if(this.ImageUp){this.TagImg.src=this.ImageUp}}}function LMButtonResize(propw,proph){var TagImg=FindTagFromId("LMButton"+this.id);if(TagImg==null)return;TagImg.width=this.TagObject.GetWidth();TagImg.height=this.TagObject.GetHeight()}function LMButtonOnAfterPageDisplay(){var last=preloadImages.length;if(this.ImageDown){preloadImages[last]=new Image;preloadImages[last++].src=this.ImageDown}if(this.ImageOver){preloadImages[last]=new Image;preloadImages[last++].src=this.ImageOver}}function TagLMButtonMouseOver(TagImg){LMGlobalOver(TagImg.objectid)}function TagLMButtonMouseOut(TagImg){LMGlobalOver(-1)}function LMButtonMouseUp(){if(this.is2state){if(this.pressstate){FireEvent(this.id,"_WhenButtonDown");LMObjectClick(this.id,0)}else{FireEvent(this.id,"_WhenButtonUp");LMObjectClick(this.id,1)}}else{if(!this.ButtonOver){if(this.ImageUp){this.TagImg.src=this.ImageUp}}else{if(this.ImageOver){this.TagImg.src=this.ImageOver}else{this.TagImg.src=this.ImageUp}}FireEvent(this.id,"_WhenButtonUp");LMObjectClick(this.id,0)}}function LMButtonMouseDn(){if(this.is2state){if(this.pressstate){if(this.ImageUp){this.TagImg.src=this.ImageUp}}else{if(this.ImageDown){this.TagImg.src=this.ImageDown}}if(this.pressstate)this.pressstate=0;else this.pressstate=1}else{if(this.ImageDown){this.TagImg.src=this.ImageDown;FireEvent(this.id,"_WhenButtonDown")}}}function LMButtonMouseOver(){this.ButtonOver=true;if(this.ImageOver){this.TagImg.src=this.ImageOver}if((this.BranchLst&&this.BranchLst[this.pressstate]))window.status=this.BranchLst[this.pressstate].where;if(this.BranchLst&&this.BranchLst[this.pressstate]){if(this.BranchLst[this.pressstate].where)this.TagImg.style.cursor="pointer"}}function LMButtonMouseOut(){this.ButtonOver=false;if(this.is2state){if(this.pressstate){if(this.ImageDown){this.TagImg.src=this.ImageDown}}else{if(this.ImageUp){this.TagImg.src=this.ImageUp}}}else{if(this.ImageUp){this.TagImg.src=this.ImageUp}if((this.BranchLst&&this.BranchLst[0]))window.status=""}}function TagLMButtonIsPress(){var object=FindClassObjectFromId(this.id);if(!object)return false;return object.pressstate}function TagLMButtonSetPressState(state){var object=FindClassObjectFromId(this.id);if(!object)return;if(object.is2state==false)return;object.pressstate=state;if(object.pressstate){if(object.ImageDown){object.TagImg.src=object.ImageDown;FireEvent(this.id,"_WhenButtonDown")}}else{if(object.ImageUp){object.TagImg.src=object.ImageUp;FireEvent(this.id,"_WhenButtonUp")}}}var gRootMenuArray=new Array();function RegisterMainMenu(MainMenu){gRootMenuArray[gRootMenuArray.length]=MainMenu;document.onmousemove=HideOpenedMenus}function MenuHitTest(menu){var layer=FindTagFromId(menu.id);if(layer.style.visibility=="hidden")return false;var backpanel=FindTagFromId("lmwcbackpanel");var oxstretch=backpanel.GetLeft();var oystretch=backpanel.GetTop();if(mnuX>=oxstretch+layer.offsetLeft&&mnuX<=oxstretch+layer.offsetLeft+layer.offsetWidth&&mnuY>=oystretch+layer.offsetTop&&mnuY<=oystretch+layer.offsetTop+layer.offsetHeight)return true;var i;for(i=0;i<menu.itemList.length;i++){var item=menu.itemList[i];if(item.submenu){var ret=MenuHitTest(item.submenu);if(ret==true){return true}}}return false}var mnuX=0;var mnuY=0;function HideOpenedMenus(e){if(e==null)e=window.event;mnuX=e.clientX+document.body.scrollLeft;mnuY=e.clientY+document.body.scrollTop;var i;for(i=0;i<gRootMenuArray.length;i++){var menu=gRootMenuArray[i];if(!menu.opened)continue;if(MenuHitTest(menu))continue;var j;for(j=0;j<menu.itemList.length;j++){var item=menu.itemList[j];if(item.submenu){if(MenuHitTest(item.submenu))continue;HideSubMenu(item.submenu)}}menu.opened=false;SendMenuToBack(menu)}}function FindMenu(rendu,menu){var i;for(i=0;i<rendu.itemList.length;i++){var item=rendu.itemList[i];if(item.submenu){CloseUnfocusedBranches(rendu,menu);if(FindMenu(item.submenu,menu)){return true}}}if(rendu==menu)return true;return false}function CloseUnfocusedBranches(menu,focused){var i;for(i=0;i<menu.itemList.length;i++){var mnu=menu.itemList[i];if(mnu.submenu){if(!FindMenu(mnu.submenu,focused))HideSubMenu(mnu.submenu)}}}function FindMenu(rendu,menu){var i;for(i=0;i<rendu.itemList.length;i++){var item=rendu.itemList[i];if(item.submenu){CloseUnfocusedBranches(rendu,menu);if(FindMenu(item.submenu,menu)){return true}}}if(rendu==menu)return true;return false}function BringMenuToFront(menu){var layer=FindTagFromId(menu.id);layer.style.zIndex=Number(layer.style.zIndex)+Number(Math.abs(z_index));var i;for(i=0;i<menu.itemList.length;i++){var item=menu.itemList[i];if(item.submenu){BringMenuToFront(item.submenu)}}}function SendMenuToBack(menu){var layer=FindTagFromId(menu.id);layer.style.zIndex=Number(layer.style.zIndex)-Number(Math.abs(z_index));var i;for(i=0;i<menu.itemList.length;i++){var item=menu.itemList[i];if(item.submenu){SendMenuToBack(item.submenu)}}}function LMMenuItemStruct(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branch,tooltip,param,imageup,imageover,submenu){this.id=id;this.x=x;this.y=y;this.w=w;this.h=h;this.initvisible=initvisible;this.delais=delais;this.effect=effect;this.delaisdisp=delaisdisp;this.effectdisp=effectdisp;this.branch=branch;this.tooltip=tooltip;this.param=param;this.imageup=imageup;this.imageover=imageover;this.submenu=submenu;return this}function ShowSubMenu(submenu){var layer=FindTagFromId(submenu.id);var totalHeight=0;layer.style.visibility="visible";submenu.selected=true}function HideSubMenu(submenu){var layer=FindTagFromId(submenu.id);layer.style.visibility="hidden";if(submenu.opener){if(submenu.opener.isOver){submenu.opener.TagImg.src=submenu.opener.ImageUp;submenu.opener.isOver=false;var layer=FindTagFromId(submenu.opener.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)-Number(Math.abs(z_index))}}}submenu.selected=false;for(var i=0;i<submenu.itemList.length;i++){var child=submenu.itemList[i];layer=FindTagFromId(child.id);if(child.submenu)HideSubMenu(child.submenu)}}function IsSubMenuVisible(submenu){if(submenu.itemList.length==0)return false;var layer=FindTagFromId(submenu.id);if(layer.style.visibility=="hidden")return false;else return true}function SetMainMenu(menu,MainMenu){menu.MainMenu=MainMenu;for(var i=0;i<menu.itemList.length;i++){var child=menu.itemList[i];child.MainMenu=MainMenu;if(child.submenu)SetMainMenu(child.submenu,MainMenu)}}function LMMenu(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,items,autoOpen){var tag="";var LMMenu=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,null,null,null);LMPreBindToObject(LMMenu);LMMenu.HideObject=LMMenuHide;LMMenu.id=id;LMMenu.opened=false;LMMenu.AutoOpen=autoOpen;LMMenu.itemList=new Array;var i=0;for(var i=0;i<items.length;i++){var menuitem=new LMMenuItem(items[i].id,items[i].x,items[i].y,items[i].w,items[i].h,items[i].initvisible,items[i].delais,items[i].effect,items[i].delaisdisp,items[i].effectdisp,items[i].branch,items[i].tooltip,items[i].param,items[i].imageup,items[i].imageover,items[i].submenu,LMMenu);LMObjects[objindex++]=menuitem;LMMenu.itemList[i]=menuitem}LMBindToObject(LMMenu);SetMainMenu(LMMenu,LMMenu);var tagdiv=FindTagFromId(id);if(tagdiv)tagdiv.drawok=1;return LMMenu}function LMMenuHide(){HideSubMenu(this)}function LMPreBindToObject(LMObject){document.writeln(LMObject.tag);LMObject.tag=""}function LMMenuItem(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,branchdn,tooltip,param,imageup,imageover,submenu,parentmenu){var tmp=" ";var BranchLst=null;if(branchdn){BranchLst=new Array();BranchLst[0]=branchdn}var LMMenuItem=new LMObject(id,x,y,w,h,initvisible,delais,effect,delaisdisp,effectdisp,BranchLst,tooltip,param);LMMenuItem.IsMovable=false;LMMenuItem.MainMenu=null;LMMenuItem.parentmenu=parentmenu;LMMenuItem.selected=false;LMMenuItem.isOver=false;if(tooltip){if(tooltip.text)tmp="ALT=\""+tooltip.text+"\" "}var commontext=tmp+"NAME=LMMenuItem"+id+" "+"ID=LMMenuItem"+id+" "+"objectid="+id+" "+"BORDER=0 "+"LEFT=0 "+"TOP=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseup=LMGlobalUp(event); "+"onmousedown=LMGlobalDn(event); "+"onmouseover=TagLMMenuItemMouseOver(this); "+"onmouseout=TagLMMenuItemMouseOut(this); "+"onload=TagLMMenuItemLoad(this); ";LMMenuItem.tag+="<IMG SRC=\"\" "+commontext+">";LMBindToObject(LMMenuItem);LMMenuItem.MouseUp=LMMenuItemMouseUp;LMMenuItem.MouseDn=LMMenuItemMouseDn;LMMenuItem.MouseOver=LMMenuItemMouseOver;LMMenuItem.MouseOut=LMMenuItemMouseOut;LMMenuItem.InitObject=LMMenuItemInit;LMMenuItem.ResizeObject=LMMenuItemResize;LMMenuItem.OnAfterPageDisplay=LMMenuItemOnAfterPageDisplay;LMMenuItem.MenuOver=false;LMMenuItem.init=false;LMMenuItem.submenu=submenu;if(submenu){submenu.opener=LMMenuItem}if(imageup)LMMenuItem.ImageUp=imageup;if(imageover)LMMenuItem.ImageOver=imageover;var tagimg=FindTagFromId("LMMenuItem"+id);LMMenuItem.TagImg=tagimg;tagimg.objectid=id;tagimg.onerror=TagLMMenuItemError;var layer=FindTagFromId(LMMenuItem.id);layer.style.visibility="inherit";return LMMenuItem}function TagLMMenuItemLoad(TagImg){if(TagImg.complete==false){setTimeout("TagLMMenuItemLoad(FindTagFromId(\"LMMenuItem"+TagImg.objectid+"\"))",100.);return}var tagdiv=FindTagFromId(TagImg.objectid);if(tagdiv==null)return;if(tagdiv)tagdiv.drawok=1}function TagLMMenuItemError(){var LMObject=FindClassObjectFromId(this.objectid);if(!LMObject)return;var tagdiv=FindTagFromId(this.objectid);if(tagdiv==null);if(this.src!=""&&LMObject.init==true){if(tagdiv)tagdiv.drawok=1}}function LMMenuItemInit(){if(this.init==true)return;this.init=true;if(this.ImageUp){this.TagImg.src=this.ImageUp;this.isOver=false}}function LMMenuItemResize(propw,proph){var TagImg=FindTagFromId("LMMenuItem"+this.id);if(TagImg==null)return;TagImg.width=this.TagObject.GetWidth();TagImg.height=this.TagObject.GetHeight()}function LMMenuItemOnAfterPageDisplay(){var last=preloadImages.length;if(this.ImageOver){preloadImages[last]=new Image;preloadImages[last++].src=this.ImageOver}}function LMMenuOnAfterPageDisplay(){alert("preloading!")}function TagLMMenuItemMouseOver(TagImg){LMGlobalOver(TagImg.objectid)}function TagLMMenuItemMouseOut(TagImg){LMGlobalOver(-1)}function LMMenuItemMouseUp(){if(!this.MenuOver){if(this.ImageUp){if(this.isOver){this.TagImg.src=this.ImageUp;this.isOver=false;var layer=FindTagFromId(this.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)-Number(Math.abs(z_index))}}}}else{if(this.ImageOver){if(!this.isOver){this.TagImg.src=this.ImageOver;this.isOver=true;var layer=FindTagFromId(this.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)+Number(Math.abs(z_index))}}}else{if(this.isOver){this.TagImg.src=this.ImageUp;this.isOver=false;var layer=FindTagFromId(this.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)-Number(Math.abs(z_index))}}}}LMObjectClick(this.id,0)}function LMMenuItemMouseDn(){if(this.MainMenu.AutoOpen)return;if(this.submenu){if(this.MainMenu.opened){var atRoot=false;var i=0;for(var i=0;i<this.MainMenu.itemList.length;i++){var menuitem=this.MainMenu.itemList[i];if(menuitem==this){atRoot=true;break}}if(atRoot){this.MainMenu.opened=false;SendMenuToBack(this.MainMenu);for(var i=0;i<this.MainMenu.itemList.length;i++){var menuitem=this.MainMenu.itemList[i];if(menuitem.submenu)HideSubMenu(menuitem.submenu)}}}else{if(IsSubMenuVisible(this.submenu))HideSubMenu(this.submenu);else{ShowSubMenu(this.submenu);CloseUnfocusedBranches(this.MainMenu,this.submenu)}this.MainMenu.opened=true;BringMenuToFront(this.MainMenu)}}}function LMMenuItemMouseOver(){if(this.submenu&&this.MainMenu.AutoOpen==true){if(!this.MainMenu.opened){var e=new Object;e.pageX=-1;e.pageY=-1;e.clientX=-1;e.clientY=-1;HideOpenedMenus(e);ShowSubMenu(this.submenu);CloseUnfocusedBranches(this.MainMenu,this.submenu);this.MainMenu.opened=true;BringMenuToFront(this.MainMenu)}}this.MenuOver=true;if(this.ImageOver){if(!this.isOver){this.TagImg.src=this.ImageOver;this.isOver=true;var layer=FindTagFromId(this.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)+Number(Math.abs(z_index))}}}if(this.submenu&&this.MainMenu.opened){ShowSubMenu(this.submenu);CloseUnfocusedBranches(this.MainMenu,this.submenu)}else if(this.MainMenu.opened){CloseUnfocusedBranches(this.MainMenu,this.parentmenu)}if((this.BranchLst&&this.BranchLst[0]))window.status=this.BranchLst[0].where;if(this.BranchLst&&this.BranchLst[0]){if(this.BranchLst[0].where)this.TagImg.style.cursor="pointer"}}function LMMenuItemMouseOut(){this.MenuOver=false;if(this.ImageUp){if(this.submenu&&this.submenu.selected){}else{if(this.isOver){this.TagImg.src=this.ImageUp;this.isOver=false;var layer=FindTagFromId(this.id);if(layer){layer.style.zIndex=Number(layer.style.zIndex)-Number(Math.abs(z_index))}}}}if((this.BranchLst&&this.BranchLst[0]))window.status=""}function ReIndexMenu(menu,index){var layer=FindTagFromId(menu.id);layer.style.zIndex=index++;var i;for(i=0;i<menu.itemList.length;i++){var item=menu.itemList[i];if(item.submenu){ReIndexMenu(item.submenu,index++)}}}function LMCounter(id,x,y,w,h){this.x=x;this.y=y;this.w=w;this.h=h;this.orix=x;this.oriy=y;this.oriw=w;this.orih=h;this.orih=h;this.TagObject=FindTagFromId(id);this.css=FindTagStyleFromId(id);this.TagObject.LMObjectsIdx=FindIdxInLMObjects(id);this.TagObject.GetTop=TagGetTop;this.TagObject.SetTop=TagSetTop;this.TagObject.GetLeft=TagGetLeft;this.TagObject.SetLeft=TagSetLeft;this.TagObject.GetWidth=TagGetWidth;this.TagObject.SetWidth=TagSetWidth;this.TagObject.GetHeight=TagGetHeight;this.TagObject.SetHeight=TagSetHeight;this.TagObject.SetClip=TagSetClip;return this}