//You may use this library freely when part of a LMSOFT Presenter (TM) presentation.
//You may also use it for any other application, provided you obtain a licence from 2k75 inc,
//5584 Woodbury ave, Montreal, QC, Canada, H3T 1S7. Tel: 514 948-1000, or Email info@lmsoft.com.
//The price is 20$ US as of Nov 1st 1999, and may change without notice.
//Technical support is also available at support@lmsoft.com

var MSG_QUIT;var preloadImages=new Array();function InitResources(){if(language=="fr"||language=="fr-ca"){MSG_QUIT="Voulez-vous vraiment quitter ?";MSG_LINKNOTAVAILABLE="Visualisation limitée à la page en cours.";}else {MSG_QUIT="Are you sure you want to quit?";MSG_LINKNOTAVAILABLE="Current page viewing only.";}}function Is(){var agent=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion);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.61));this.ie3=(navigator.userAgent.indexOf("MSIE 3.0")!=-1);this.ie4=(navigator.userAgent.indexOf("MSIE 4.0")!=-1);this.ie5=(navigator.userAgent.indexOf("MSIE 5.0")!=-1);this.ie5_5=(navigator.userAgent.indexOf("MSIE 5.5")!=-1);this.ie=(this.explorer&&!this.ie3);this.nt4_0=(navigator.userAgent.indexOf("Windows NT 4.0")!=-1);}var is=new Is();var language;function isValideBrowser(){if(is.netscape){language=navigator.language;if(is.ns)return true;document.writeln("This page requires a more recent version of Netscape Communicator. <A HREF=\"http://www.netscape.com/download\">Click here to update Netscape Communicator!</A>");return false;}else if(is.explorer){language=navigator.browserLanguage;if(is.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(i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return i;}return -1;}function FindTagLyrFromId(id){if(is.ns){var object=eval("document."+id);}else if(is.ie){var object=eval(id);}return object;}function FindClassObjectFromId(id){for(i=0;i<LMObjects.length;i++){if(LMObjects[i].id==id)return LMObjects[i];}return null;}function FindClassObjectFromTagLyr(TagObject){if(TagObject.LMObjectsIdx==-1){TagObject.LMObjectsIdx=FindIdxInLMObjects(TagObject.id);}return LMObjects[TagObject.LMObjectsIdx];}function ShowProperties(obj,framed){var sProps="";for(props in obj){sProps+=props+": "+obj[props]+"\n";}if(!framed){alert(sProps);}else {var hwnd=window.open("about:blank","debug","");hwnd.document.write("<PRE>\n"+sProps+"</PRE>\n");}}function SetDrawingEffect(LMObject,val){LMObject.drawingeffect=val;if(val==2){objet=FindClassObjectFromId(LMObject.id);if(objet.BranchLst){for(i=0;i<objet.BranchLst.length;i++){if(objet.BranchLst[i]!=null&&objet.BranchLst[i].delais>0){delais=objet.BranchLst[i].delais*1000;setTimeout("LMObjectClick(FindTagLyrFromId(\""+objet.id+"\"),"+i+")",delais);}}}}}function LMEffectShow(){this.TagObject.drawingeffect=1;if(is.ns){this.css.visibility="show";setTimeout("SetDrawingEffect(document."+this.id+",2)",10);}else if(is.ie){this.css.visibility="visible";setTimeout("SetDrawingEffect("+this.id+",2)",10);}}function EffectTopDownCallBack(isend,TagObject,val){if(is.ns){if(isend){TagObject.top=val;TagObject.clip.top=0;}else {TagObject.top=TagObject.top+5;if(TagObject.top>val)TagObject.top=val;var offsetclip=val-TagObject.top;TagObject.clip.top=offsetclip;}}else if(is.ie){if(isend){TagObject.style.posTop=val;TagObject.style.clip="rect(0 "+" "+TagObject.style.posWidth+" "+TagObject.style.posHeight+" 0)";}else {TagObject.style.posTop=TagObject.style.posTop+5;if(TagObject.style.posTop>val)TagObject.style.posTop=val;var offsetclip=val-TagObject.style.posTop;TagObject.style.clip="rect("+offsetclip+" "+TagObject.style.posWidth+" "+TagObject.style.posHeight+" 0)";}}}function EffectTopDown(){var y=this.y;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;if(is.ns){timeslide=3.;this.TagObject.top=y-h;val=y-this.TagObject.top;this.TagObject.clip.top=val;this.css.visibility="show";for(i=0;i<h-1;i+=5){setTimeout("EffectTopDownCallBack(false, document."+this.id+","+y+")",timeslide*i);}setTimeout("EffectTopDownCallBack(true, document."+this.id+","+y+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=3.;this.css.posTop=y-h;val=y-this.css.posTop;this.css.clip="rect("+val+" "+w+" "+h+" "+"0)";this.css.visibility="visible";for(i=0;i<h-1;i+=5){setTimeout("EffectTopDownCallBack(false,"+this.id+","+y+")",timeslide*i);}setTimeout("EffectTopDownCallBack(true,"+this.id+","+y+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}function EffectBottomUpCallBack(isend,TagObject,valy,valh){if(is.ns){if(isend){TagObject.top=valy;TagObject.clip.bottom=valh;}else {TagObject.top=TagObject.top-5;if(TagObject.top<valy)TagObject.top=valy;var offsetclip=valy+valh-TagObject.top;TagObject.clip.bottom=offsetclip;}}else if(is.ie){if(isend){TagObject.style.posTop=valy;TagObject.style.clip="rect(0 "+" "+TagObject.style.posWidth+" "+valh+" 0)";}else {TagObject.style.posTop=TagObject.style.posTop-5;if(TagObject.style.posTop<valy)TagObject.style.posTop=valy;var offsetclip=valy+valh-TagObject.style.posTop;TagObject.style.clip="rect(0 "+TagObject.style.posWidth+" "+offsetclip+" 0)";}}}function EffectBottomUp(){var y=this.y;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;if(is.ns){timeslide=3.;this.TagObject.top=y+h;val=y+h-this.TagObject.top;this.TagObject.clip.bottom=val;this.css.visibility="show";for(i=0;i<h-1;i+=5){setTimeout("EffectBottomUpCallBack(false, document."+this.id+","+y+","+h+")",timeslide*i);}setTimeout("EffectBottomUpCallBack(true, document."+this.id+","+y+","+h+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=3.;this.css.posTop=y+h;val=y+h-this.css.posTop;this.css.clip="rect("+0+" "+w+" "+val+" "+"0)";this.css.visibility="visible";for(i=0;i<h-1;i+=5){setTimeout("EffectBottomUpCallBack(false,"+this.id+","+y+","+h+")",timeslide*i);}setTimeout("EffectBottomUpCallBack(true,"+this.id+","+y+","+h+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}function EffectLeftRightCallBack(isend,TagObject,val){if(is.ns){var w=TagObject.clip.width;var h=TagObject.clip.height;if(isend){TagObject.left=val;TagObject.clip.left=0;}else {TagObject.left=TagObject.left+5;if(TagObject.left>val)TagObject.left=val;var offsetclip=val-TagObject.left;TagObject.clip.left=offsetclip;}}else if(is.ie){if(isend){TagObject.style.posLeft=val;TagObject.style.clip="rect(0 "+" "+TagObject.style.posWidth+" "+TagObject.style.posHeight+" 0)";}else {TagObject.style.posLeft=TagObject.style.posLeft+5;if(TagObject.style.posLeft>val)TagObject.style.posLeft=val;var offsetclip=val-TagObject.style.posLeft;TagObject.style.clip="rect(0 "+TagObject.style.posWidth+" "+TagObject.style.posHeight+" "+offsetclip+")";}}}function EffectLeftRight(){var x=this.x;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;if(is.ns){timeslide=3.;this.TagObject.left=x-w;val=x-this.TagObject.left;this.TagObject.clip.left=val;this.css.visibility="show";for(i=0;i<w-1;i+=5){setTimeout("EffectLeftRightCallBack(false, document."+this.id+","+x+")",timeslide*i);}setTimeout("EffectLeftRightCallBack(true, document."+this.id+","+x+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=3.;this.css.posLeft=x-w;val=x-this.css.posLeft;this.css.clip="rect(0 "+w+" "+h+" "+val+")";this.css.visibility="visible";for(i=0;i<w-1;i+=5){setTimeout("EffectLeftRightCallBack(false,"+this.id+","+x+")",timeslide*i);}setTimeout("EffectLeftRightCallBack(true,"+this.id+","+x+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}function EffectRightLeftCallBack(isend,TagObject,valx,valw){if(is.ns){if(isend){TagObject.left=valx;TagObject.clip.right=valw;}else {TagObject.left=TagObject.left-5;if(TagObject.left<valx)TagObject.left=valx;var offsetclip=valx+valw-TagObject.left;TagObject.clip.right=offsetclip;}}else if(is.ie){if(isend){TagObject.style.posLeft=valx;TagObject.style.clip="rect(0 "+" "+valw+" "+TagObject.style.posHeight+" 0)";}else {TagObject.style.posLeft=TagObject.style.posLeft-5;if(TagObject.style.posLeft<valx)TagObject.style.posLeft=valx;var offsetclip=valx+valw-TagObject.style.posLeft;TagObject.style.clip="rect(0 "+offsetclip+" "+TagObject.style.posHeight+" 0)";}}}function EffectRightLeft(){var x=this.x;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;if(is.ns){timeslide=3.;this.TagObject.left=x+w;val=x+w-this.TagObject.left;this.TagObject.clip.right=val;this.css.visibility="show";for(i=0;i<w-1;i+=5){setTimeout("EffectRightLeftCallBack(false, document."+this.id+","+x+","+w+")",timeslide*i);}setTimeout("EffectRightLeftCallBack(true, document."+this.id+","+x+","+w+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=3.;this.css.posLeft=x+w;val=x+w-this.css.posLeft;this.css.clip="rect("+0+" "+val+" "+h+" "+"0)";this.css.visibility="visible";for(i=0;i<w-1;i+=5){setTimeout("EffectRightLeftCallBack(false,"+this.id+","+x+","+w+")",timeslide*i);}setTimeout("EffectRightLeftCallBack(true,"+this.id+","+x+","+w+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}function EffectHtoCenter(){this.Effect=LMEffectShow;this.Effect();}function EffectWtoCenter(){this.Effect=LMEffectShow;this.Effect();}function EffectRideauTopDownCallBack(isend,TagObject,val){if(is.ns){if(isend){TagObject.clip.bottom=val;}else {if(TagObject.clip.bottom+5>val)TagObject.clip.bottom=val;else TagObject.clip.bottom=TagObject.clip.bottom+5;}}}function EffectRideauTopDown(){if(is.ns){timeslide=3.;var h=this.h;this.TagObject.drawingeffect=1;this.TagObject.clip.bottom=0;this.css.visibility="show";for(i=0;i<h-1;i+=5){setTimeout("EffectRideauTopDownCallBack(false, document."+this.id+","+h+")",timeslide*i);}setTimeout("EffectRideauTopDownCallBack(true, document."+this.id+","+h+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timetot=this.w/500.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=5)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRideauBottomUpCallBack(isend,TagObject,val){if(is.ns){if(isend){TagObject.clip.top=0;}else {if(TagObject.clip.top-5<val)TagObject.clip.top=val;else TagObject.clip.top=TagObject.clip.top-5;}}}function EffectRideauBottomUp(){if(is.ns){timeslide=3.;var h=this.h;this.TagObject.drawingeffect=1;this.TagObject.clip.top=h;this.css.visibility="show";for(i=0;i<h-1;i+=5){setTimeout("EffectRideauBottomUpCallBack(false, document."+this.id+","+0+")",timeslide*i);}setTimeout("EffectRideauBottomUpCallBack(true, document."+this.id+","+0+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timetot=this.w/500.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=4)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRideauLeftRightCallBack(isend,TagObject,val){if(is.ns){if(isend){TagObject.clip.right=val;}else {if(TagObject.clip.right+5>val)TagObject.clip.right=val;else TagObject.clip.right=TagObject.clip.right+5;}}}function EffectRideauLeftRight(){if(is.ns){timeslide=3.;var w=this.w;this.TagObject.drawingeffect=1;this.TagObject.clip.right=0;this.css.visibility="show";for(i=0;i<w-1;i+=5){setTimeout("EffectRideauLeftRightCallBack(false, document."+this.id+","+w+")",timeslide*i);}setTimeout("EffectRideauLeftRightCallBack(true, document."+this.id+","+w+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timetot=this.w/800.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=6)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRideauRightLeftCallBack(isend,TagObject,val){if(is.ns){if(isend){TagObject.clip.left=0;}else {if(TagObject.clip.left-5<val)TagObject.clip.left=val;else TagObject.clip.left=TagObject.clip.left-5;}}}function EffectRideauRightLeft(){if(is.ns){timeslide=3.;var w=this.w;this.TagObject.drawingeffect=1;this.TagObject.clip.left=w;this.css.visibility="show";for(i=0;i<w-1;i+=5){setTimeout("EffectRideauRightLeftCallBack(false, document."+this.id+","+0+")",timeslide*i);}setTimeout("EffectRideauRightLeftCallBack(true, document."+this.id+","+0+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timetot=this.w/800.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=7)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectDissolve(){if(is.ns){this.Effect=LMEffectShow;this.Effect();}else if(is.ie){this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration=1.0,transition=12)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",1000);}}function EffectExplodeCallBack(isend,TagObject,valw,valh,upy,downy){if(is.ns){if(isend){TagObject.clip.left=0;TagObject.clip.right=valw;TagObject.clip.top=0;TagObject.clip.bottom=valh;}else {if(TagObject.clip.left-5<0)TagObject.clip.left=0;else TagObject.clip.left=TagObject.clip.left-5;if(TagObject.clip.right+5>valw)TagObject.clip.right=valw;else TagObject.clip.right=TagObject.clip.right+5;if(upy<0)TagObject.clip.top=0;else TagObject.clip.top=upy;if(downy>valh)TagObject.clip.bottom=valh;else TagObject.clip.bottom=downy;}}}function EffectExplode(){if(is.ns){timeslide=3.;var x=this.x;var y=this.y;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;mx=w/2.;my=h/2.;this.TagObject.clip.left=mx;this.TagObject.clip.right=mx;this.TagObject.clip.top=my;this.TagObject.clip.bottom=my;this.css.visibility="show";prop=h/w;for(i=0;i<w-1;i+=5){upy=my-i*prop;downy=my+i*prop;setTimeout("EffectExplodeCallBack(false, document."+this.id+","+w+","+h+","+upy+","+downy+")",timeslide*i);}setTimeout("EffectExplodeCallBack(true, document."+this.id+","+w+","+h+","+upy+","+downy+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timetot=this.w/1200.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=1)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectImplode(){if(is.ns){this.Effect=LMEffectShow;this.Effect();}else if(is.ie){timetot=this.w/1200.;if(timetot<0.5)timetot=0.5;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=0)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRoundExplode(){if(is.ns){this.Effect=LMEffectShow;this.Effect();}else if(is.ie){timetot=this.w/1000.;if(timetot<0.4)timetot=0.4;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=3)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRoundImplode(){if(is.ns){this.Effect=LMEffectShow;this.Effect();}else if(is.ie){timetot=this.w/1000.;if(timetot<0.4)timetot=0.4;this.TagObject.drawingeffect=1;this.css.filter="revealTrans(duration="+timetot+",transition=2)";this.TagObject.filters.revealTrans.Apply();this.css.visibility="visible";this.TagObject.filters.revealTrans.Play();setTimeout("SetDrawingEffect("+this.id+",2)",timetot*1000);}}function EffectRandomBloc(){this.Effect=LMEffectShow;this.Effect();}function EffectCrossV(){this.Effect=LMEffectShow;this.Effect();}function EffectCrossH(){this.Effect=LMEffectShow;this.Effect();}function EffectRandomCircle(){this.Effect=LMEffectShow;this.Effect();}function EffectOuvertureCirculaire(){this.Effect=LMEffectShow;this.Effect();}function EffectDemiCercle(){this.Effect=LMEffectShow;this.Effect();}function EffectPapillon(){this.Effect=LMEffectShow;this.Effect();}function EffectLigne(){this.Effect=LMEffectShow;this.Effect();}function EffectOuvertureCirculaireNoir(){this.Effect=LMEffectShow;this.Effect();}function EffectPapillonNoir(){this.Effect=LMEffectShow;this.Effect();}function PushTopDown(){this.Effect=LMEffectShow;this.Effect();}function PushBottomUp(){this.Effect=LMEffectShow;this.Effect();}function PushLeftRight(){this.Effect=LMEffectShow;this.Effect();}function PushRightLeft(){this.Effect=LMEffectShow;this.Effect();}function PushHtoCenter(){this.Effect=LMEffectShow;this.Effect();}function PushWtoCenter(){this.Effect=LMEffectShow;this.Effect();}function DoorOpenHCallBack(isend,TagObject,valw,valh,lefty,righty){if(is.ns){if(isend){TagObject.clip.top=0;TagObject.clip.bottom=valh;}else {if(lefty<0)TagObject.clip.top=0;else TagObject.clip.top=lefty;if(righty>valh)TagObject.clip.bottom=valh;else TagObject.clip.bottom=righty;}}else if(is.ie){if(isend){TagObject.style.clip="rect(0 "+" "+valw+" "+valh+" 0)";}else {if(lefty<0)lefty=0;if(righty>valh)righty=valh;TagObject.style.clip="rect("+lefty+" "+valw+" "+righty+" 0)";}}}function DoorOpenH(){var y=this.y;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;my=h/2.;lefty=my;righty=my;if(is.ns){timeslide=6.;this.TagObject.clip.top=my;this.TagObject.clip.bottom=my;this.css.visibility="show";for(i=0;i<h-1;i+=2){lefty=my-i*2;righty=my+i*2;setTimeout("DoorOpenHCallBack(false, document."+this.id+","+w+","+h+","+lefty+","+righty+")",timeslide*i);}setTimeout("DoorOpenHCallBack(true, document."+this.id+","+w+","+h+","+lefty+","+righty+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=6.;this.css.clip="rect("+my+" "+w+" "+my+" 0)";this.css.visibility="visible";for(i=0;i<h-1;i+=2){lefty=my-i*2;righty=my+i*2;setTimeout("DoorOpenHCallBack(false, "+this.id+","+w+","+h+","+lefty+","+righty+")",timeslide*i);}setTimeout("DoorOpenHCallBack(true, "+this.id+","+w+","+h+","+lefty+","+righty+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}function DoorOpenWCallBack(isend,TagObject,valw,valh,leftx,rightx){if(is.ns){if(isend){TagObject.clip.left=0;TagObject.clip.right=valw;}else {if(leftx<0)TagObject.clip.left=0;else TagObject.clip.left=leftx;if(rightx>valw)TagObject.clip.right=valw;else TagObject.clip.right=rightx;}}else if(is.ie){if(isend){TagObject.style.clip="rect(0 "+" "+valw+" "+valh+" 0)";}else {if(leftx<0)leftx=0;if(rightx>valw)rightx=valw;TagObject.style.clip="rect(0 "+" "+rightx+" "+valh+" "+leftx+")";}}}function DoorOpenW(){var x=this.x;var w=this.w;var h=this.h;this.TagObject.drawingeffect=1;mx=w/2.;leftx=mx;rightx=mx;if(is.ns){timeslide=6.;this.TagObject.clip.left=mx;this.TagObject.clip.right=mx;this.css.visibility="show";for(i=0;i<w-1;i+=2){leftx=mx-i*2;rightx=mx+i*2;setTimeout("DoorOpenWCallBack(false, document."+this.id+","+w+","+h+","+leftx+","+rightx+")",timeslide*i);}setTimeout("DoorOpenWCallBack(true, document."+this.id+","+w+","+h+","+leftx+","+rightx+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect(document."+this.id+",2)",time);}else if(is.ie){timeslide=6.;this.css.clip="rect(0 "+" "+mx+" "+h+" "+mx+")";this.css.visibility="visible";for(i=0;i<w-1;i+=2){leftx=mx-i*2;rightx=mx+i*2;setTimeout("DoorOpenWCallBack(false, "+this.id+","+w+","+h+","+leftx+","+rightx+")",timeslide*i);}setTimeout("DoorOpenWCallBack(true, "+this.id+","+w+","+h+","+leftx+","+rightx+")",timeslide*i);time=i*timeslide;setTimeout("SetDrawingEffect("+this.id+",2)",time);}}var z_index=0;function LMObject(id,x,y,w,h,delais,effect,BranchLst,tooltip,param){var tmp=" ";if(tooltip){if(tooltip.text)tmp="TITLE=\""+tooltip.text+"\" ";}if(is.ns){this.tag="<LAYER ID="+id+" "+"LEFT="+x+" "+"TOP="+y+" "+"WIDTH="+w+" "+"HEIGHT="+h+" "+tmp+"FRAMEBORDER=\"YES\" "+"SCROLLING=\"AUTO\" "+"drawok=0 "+"drawingeffect=0 "+"onmouseover=NSLMObjectMouseOver(this); "+"onmouseout=NSLMObjectMouseOut(this); "+">";}else if(is.ie){this.tag="<DIV ID="+id+" "+"drawok=0 "+"drawingeffect=0 "+"STYLE=\"position:absolute;"+"z-index:"+z_index+";"+"left:"+x+";"+"top:"+y+";"+"width:"+w+";"+"height:"+h+";\" "+tmp+">";}z_index++;this.id=id;this.objet=null;this.NetscapeMouseOver=null;this.NetscapeMouseOut=null;this.InitObject=null;this.OnAfterPageDisplay=null;this.x=x;this.y=y;this.w=w;this.h=h;this.param=param;this.BranchLst=BranchLst;if(delais==null){this.delais=0;}else {this.delais=delais;}if(effect==null){this.Effect=LMEffectShow;}else {this.Effect=effect;}return this;}function LMBindToObject(LMObject){if(is.ns){LMObject.tag+="</LAYER>";}else {LMObject.tag+="</DIV>";}document.writeln(LMObject.tag);if(is.ns){LMObject.TagObject=eval("document."+LMObject.id);LMObject.css=LMObject.TagObject;LMObject.css.visibility="hide";LMObject.TagObject.LMObjectsIdx=FindIdxInLMObjects(LMObject.id);}else if(is.ie){LMObject.TagObject=eval(LMObject.id);LMObject.css=eval(LMObject.id+".style");LMObject.css.visibility="hidden";LMObject.TagObject.LMObjectsIdx=FindIdxInLMObjects(LMObject.id);}if(is.ns){LMObject.css.clip.left=0;LMObject.css.clip.top=0;LMObject.css.clip.width=LMObject.w;LMObject.css.clip.height=LMObject.h;LMObject.css.drawingeffect=0;}else if(is.ie){LMObject.TagObject.style.clip="rect("+0+" "+LMObject.w+" "+LMObject.h+" "+0+")";LMObject.TagObject.drawingeffect=0;}return LMObject;}function LMObjectClick(TagLyr,id){LMObject=FindClassObjectFromTagLyr(TagLyr);if(LMObject.BranchLst&&LMObject.BranchLst[id]){var DoBranch=true;if(LMObject.BranchLst[id].code){DoBranch=LMObject.BranchLst[id].code(LMObject.BranchLst[id].param,LMObject.id,LMObject,LMObject.param);}if(DoBranch){LMObjectBranch(LMObject.BranchLst[id].where);}}}function LMObjectBranch(where){if(where=="")return;switch(where){case"GADGET: 1":location=pub_home;break;case"GADGET: 2":history.back();break;case"GADGET: 3":window.close();break;case"GADGET: 4":break;case"GADGET: 5":var ok=confirm(MSG_QUIT);if(ok)window.close();break;case"GADGET: 6":break;case"GADGET: 7":break;case"GADGET: 8":break;case"GADGET: 9":break;default:location=where;break;}}function NSButtonDown(e){if(e.target){if(e.target.onmousedown){e.target.onmousedown(e.target);return false;}else if(e.target.objectid==null){if(LMObjects.length>=1){if(LMObjects[0].TagObject.onmousedown){LMObjects[0].TagObject.onmousedown(LMObjects[0].TagObject);return false;}}}}return true;}function NSButtonUp(e){if(e.target){if(e.target.onmouseup){e.target.onmouseup(e.target);return false;}else if(e.target.objectid==null){if(LMObjects.length>=1){if(LMObjects[0].TagObject.onmouseup)LMObjects[0].TagObject.onmouseup(LMObjects[0].TagObject);}}}return true;}function NSLMObjectMouseOver(TagLyr){document.captureEvents(Event.MOUSEUP|Event.MOUSEDOWN);document.onmousedown=NSButtonDown;document.onmouseup=NSButtonUp;LMObject=FindClassObjectFromTagLyr(TagLyr);if(LMObject.NetscapeMouseOver){LMObject.NetscapeMouseOver(LMObject.objet);return false;}return true;}function NSLMObjectMouseOut(TagLyr){document.releaseEvents(Event.MOUSEUP|Event.MOUSEDOWN);LMObject=FindClassObjectFromTagLyr(TagLyr);if(LMObject.NetscapeMouseOut){LMObject.NetscapeMouseOut(LMObject.objet);return false;}return true;}function LMObjectAnimateElem(LMObjects,i){if(LMObjects[i].InitObject)LMObjects[i].InitObject(LMObjects[i].objet);if(LMObjects[i].TagObject.drawok==0){setTimeout("LMObjectAnimateElem(LMObjects,"+i+")",10);return;}if(i+1<LMObjects.length){if(LMObjects[i+1].InitObject)LMObjects[i+1].InitObject(LMObjects[i+1].objet);}if(LMObjects[i].TagObject.drawingeffect==0){LMObjects[i].Effect();setTimeout("LMObjectAnimateElem(LMObjects,"+i+")",10);}else if(LMObjects[i].TagObject.drawingeffect==1){setTimeout("LMObjectAnimateElem(LMObjects,"+i+")",10);return;}else if(LMObjects[i].TagObject.drawingeffect==2){i++;if(i<LMObjects.length){var offset=0;if(i>0)offset=LMObjects[i-1].delais;setTimeout("LMObjectAnimateElem(LMObjects,"+i+")",(LMObjects[i].delais-offset));}else {for(i=0;i<LMObjects.length;i++){if(LMObjects[i].OnAfterPageDisplay)LMObjects[i].OnAfterPageDisplay(LMObjects[i].objet);}}}else {alert("bug LMObjectAnimateElem");alert(LMObjects[i].TagObject.drawingeffect);}}function LMObjectAnimate(LMObjects){if(LMObjects.length<=0)return;LMObjectSort(LMObjects,0,LMObjects.length-1);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(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(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;}}while(left_ref>right_ref);LMObjectSort(LMObjects,first,middle);LMObjectSort(LMObjects,middle+1,last);}function LMBranch(id,where,sound,delais,code,param){this.id=id;this.where=where;this.sound=sound;this.code=code;this.param=param;this.delais=delais;}function LMToolTip(text,sound,delais){this.text=text;this.sound=sound;this.delais=delais;}function LMButton(id,x,y,w,h,delais,effect,branch,tooltip,param,imageup,imagedown,imageover){var tmp=" ";var BranchLst=null;if(branch){BranchLst=new Array(branch);}var LMButton=new LMObject(id,x,y,w,h,delais,effect,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" ";}}if(is.ns){if(branch)LMButton.tag+="<a href=\"javascript:LMButtonMouseUp(document.LMButton"+id+")\";>";else LMButton.tag+="<a>";LMButton.tag+="<IMG SRC=\""+imageup+"\" "+tmp+"NAME=LMButton"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onload=LMButtonLoad(this);"+"></a>";}else if(is.ie){LMButton.tag+="<IMG SRC=\"\" "+tmp+"NAME=LMButton"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onmouseover=LMButtonMouseOver(this); "+"onmouseout=LMButtonMouseOut(this); "+"onmousedown=LMButtonMouseDown(this); "+"onmouseup=LMButtonMouseUp(this); "+"onload=LMButtonLoad(this);"+">";}LMBindToObject(LMButton);LMButton.NetscapeMouseOver=LMButtonMouseOver;LMButton.NetscapeMouseOut=LMButtonMouseOut;LMButton.InitObject=LMButtonInit;LMButton.OnAfterPageDisplay=LMButtonOnAfterPageDisplay;var tagimg;if(is.ns){tagimg=eval("document."+"LMButton"+id);}else if(is.ie){tagimg=eval("LMButton"+id);}LMButton.objet=tagimg;tagimg.objectid=id;tagimg.ButtonOver=false;if(imageup){tagimg.ImageUp=imageup;}if(imagedown){tagimg.ImageDown=imagedown;}if(imageover){tagimg.ImageOver=imageover;}return LMButton;}function LMButtonLoad(TagImg){if(is.ie){taglyr=TagImg.parentElement;while(taglyr.tagName!="DIV")taglyr=taglyr.parentElement;}else taglyr=FindTagLyrFromId(TagImg.objectid);if(taglyr==null)alert("taglyr=null");taglyr.drawok=1;}function LMButtonInit(TagImg){if(TagImg.init==true)return;TagImg.init=true;if(TagImg.ImageUp){TagImg.src=TagImg.ImageUp;}}function LMButtonOnAfterPageDisplay(TagImg){var last=preloadImages.length;if(TagImg.ImageDown){preloadImages[last]=new Image;preloadImages[last++].src=TagImg.ImageDown;}if(TagImg.ImageOver){preloadImages[last]=new Image;preloadImages[last++].src=TagImg.ImageOver;}}function LMButtonMouseUp(TagImg){if(!TagImg.ButtonOver){if(TagImg.ImageUp){TagImg.src=TagImg.ImageUp;}}else {if(TagImg.ImageOver){TagImg.src=TagImg.ImageOver;}else {TagImg.src=TagImg.ImageUp;}}taglyr=FindTagLyrFromId(TagImg.objectid);LMObjectClick(taglyr,0);}function LMButtonMouseDown(TagImg){if(TagImg.ImageDown){TagImg.src=TagImg.ImageDown;}return true;}function LMButtonMouseOver(TagImg){TagImg.ButtonOver=true;if(TagImg.ImageOver){TagImg.src=TagImg.ImageOver;}taglyr=FindTagLyrFromId(TagImg.objectid);LMObject=FindClassObjectFromTagLyr(taglyr);if(LMObject.BranchLst&&LMObject.BranchLst[0]){if(is.ie){TagImg.style.cursor="hand";}}return true;}function LMButtonMouseOut(TagImg){TagImg.ButtonOver=false;if(TagImg.ImageUp){TagImg.src=TagImg.ImageUp;}return true;}function LMImage(id,x,y,w,h,delais,effect,branch,tooltip,param,image){var tmp=" ";var BranchLst=null;if(branch){BranchLst=new Array(branch);}var LMImage=new LMObject(id,x,y,w,h,delais,effect,BranchLst,tooltip,param);if(tooltip){if(tooltip.text){tmp="ALT=\""+tooltip.text+"\" ";}}if(branch){LMImage.tag+="<a href=\"javascript:LMImageMouseUp(document.LMImage"+id+")\";>";}if(is.ns){LMImage.tag+="<IMG SRC=\""+image+"\" "+tmp+"NAME=LMImage"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onload=LMImageLoad(this);"+">";}else {LMImage.tag+="<IMG SRC=\"\" "+tmp+"NAME=LMImage"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onload=LMImageLoad(this);"+">";}if(branch){LMImage.tag+="</a>";}LMBindToObject(LMImage);LMImage.InitObject=LMImageInit;var tagimg;if(is.ns){tagimg=eval("document."+"LMImage"+id);}else if(is.ie){tagimg=eval("LMImage"+id);}LMImage.objet=tagimg;tagimg.objectid=id;tagimg.imagesrc=image;tagimg.init=false;return LMImage;}function LMImageInit(TagImg){if(TagImg.init==true)return;TagImg.init=true;if(TagImg.imagesrc){TagImg.src=TagImg.imagesrc;}}function LMImageLoad(TagImg){if(TagImg.complete==false){if(is.ns){setTimeout("LMImageLoad(document."+"LMImage"+TagImg.objectid+")",100.);}else if(is.ie){setTimeout("LMImageLoad(LMImage"+TagImg.objectid+")",100.);}}if(is.ie){taglyr=TagImg.parentElement;while(taglyr.tagName!="DIV")taglyr=taglyr.parentElement;}else taglyr=FindTagLyrFromId(TagImg.objectid);if(taglyr==null)alert("taglyr=null");taglyr.drawok=1;}function LMImageMouseUp(TagImg){taglyr=FindTagLyrFromId(TagImg.objectid);LMObjectClick(taglyr,0);}function LMPage(id,x,y,w,h,effect,branch,param,color,title){var BranchLst=null;if(branch){BranchLst=new Array(branch);}var NewPage=new LMObject(id,x,y,w,h,0,effect,BranchLst,null,param);LMBindToObject(NewPage);NewPage.objectid=id;NewPage.objet=LMPage;if(is.ns){var tagdiv=eval("document."+id);tagdiv.bgColor=color;}else {var tagdiv=eval(id);NewPage.css.backgroundColor=color;}tagdiv.onmouseup=LMPageMouseUp;if(is.ie){tagdiv.onmouseover=LMPageMouseOver;}else {}tagdiv.drawok=1;return NewPage;}function LMPageClick(){}function LMPageMouseOver(){LMObject=FindClassObjectFromTagLyr(this);if(LMObject.BranchLst&&LMObject.BranchLst[0]){if(is.ie){this.style.cursor="hand";}}return true;}function LMPageMouseUp(){LMObjectClick(this,0);}function LMText(id,x,y,w,h,delais,effect,branchlist,tooltip,param,isbkcolor,bkcolor,text){var NewText=new LMObject(id,x,y,w,h,delais,effect,branchlist,tooltip,param);if(is.ns){buffertmp=text.replace(/<font style=\"font-size:/gi,"<font point-size=");buffertmp2=buffertmp.replace(/pt\"/gi,"");buffer=buffertmp2.replace(/onclick=/gi,"href=javascript:");NewText.tag+=buffer;}else {NewText.tag+=text;}LMBindToObject(NewText);if(is.ns){var tagdiv=eval("document."+id);}else {var tagdiv=eval(id);}tagdiv.drawok=1;if(isbkcolor){if(is.ns){var object=eval("document."+id);object.bgColor=bkcolor;}else {var object=eval(id);NewText.css.backgroundColor=bkcolor;}}return NewText;}function LMTextBranch(object_id,branch_id){LMObject=FindClassObjectFromId(object_id);for(var i=0;i<LMObject.BranchLst.length;i++){if(LMObject.BranchLst[i]!=null&&LMObject.BranchLst[i].id==branch_id){LMObjectClick(LMObject.TagObject,i);break;}}}function LMAnim(id,x,y,w,h,delais,effect,branchlist,tooltip,param,anim,loop,loop_count,auto_start,controls,fps){var LMAnim=new LMObject(id,x,y,w,h,delais,effect,branchlist,tooltip,param);LMAnim.tag+="<EMBED src='"+anim+"' "+"STANDBY=\"Loading Apple QuickTime Player components...\" "+"PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\" "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"name=\"LMAnim"+id+"\" "+"id=\"LMAnim"+id+"\" "+"type=\"video/quicktime\" "+"SCALE=tofit ";if(is.ns){LMAnim.tag+="HREF=\"javascript:LMObjectClick(document."+id+",0)\" ";LMAnim.tag+="QTNEXT1=\"javascript:LMObjectClick(document."+id+",1)\" ";}else if(is.ie){LMAnim.tag+="HREF=\"javascript:LMObjectClick("+id+",0)\" ";LMAnim.tag+="QTNEXT1=\"javascript:LMObjectClick("+id+",1)\" ";}LMAnim.tag+=" LOOP=";if(loop==true){LMAnim.tag+="true ";}else {LMAnim.tag+="false ";}LMAnim.tag+=" AUTOPLAY=";if(auto_start==true){LMAnim.tag+="true ";}else {LMAnim.tag+="false ";}if(!controls){LMAnim.tag+="CONTROLLER=FALSE";}LMAnim.tag+="></EMBED>";LMBindToObject(LMAnim);if(is.ns){var tagdiv=eval("document."+id);}else {var tagdiv=eval(id);}tagdiv.drawok=1;return LMAnim;}function LMIAnim(id,x,y,w,h,delais,effect,branchlist,tooltip,param,imagelist,islooping,loop_count,auto_start,controls,fps){var tmp=" ";if(imagelist.length<=0)return;var LMIAnim=new LMObject(id,x,y,w,h,delais,effect,branchlist,tooltip,param);flagbranch=false;if(branchlist){for(i=0;i<branchlist.length;i++){if(branchlist[i]){flagbranch=true;break;}}}if(flagbranch){LMIAnim.tag+="<a href=\"javascript:LMIAnimMouseUp(document.LMIAnim"+id+")\";>";}if(is.ns){LMIAnim.tag+="<IMG SRC=\""+imagelist[0]+"\" "+tmp+"NAME=LMIAnim"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onload=LMIAnimLoad(this);"+">";}else {LMIAnim.tag+="<IMG SRC=\"\" "+tmp+"NAME=LMIAnim"+id+" "+"objectid="+id+" "+"BORDER=0 "+"WIDTH="+w+" "+"HEIGHT="+h+" "+"onload=LMIAnimLoad(this);"+">";}if(flagbranch){LMIAnim.tag+="</a>";}LMBindToObject(LMIAnim);LMIAnim.InitObject=LMIAnimInit;var tagimg;if(is.ns){tagimg=eval("document."+"LMIAnim"+id);}else if(is.ie){tagimg=eval("LMIAnim"+id);}LMIAnim.objet=tagimg;tagimg.objectid=id;tagimg.ImageList=imagelist;tagimg.CurImageIndex=0;tagimg.islooping=islooping;tagimg.loop_count=loop_count;tagimg.auto_start=auto_start;tagimg.controls=controls;if(fps<=0)fps=5;tagimg.fps=fps;tagimg.init=false;if(tagimg.loop_count<1)tagimg.loop_count=1;return LMIAnim;}function LMIAnimInit(TagImg){if(TagImg.init==true)return;TagImg.init=true;if(TagImg.ImageList[0]){TagImg.src=TagImg.ImageList[0];}}function LMIAnimChangeImage(TagImg){TagImg.src=TagImg.ImageList[TagImg.CurImageIndex];}function LMIAnimLoad(TagImg){if(is.ie){taglyr=TagImg.parentElement;while(taglyr.tagName!="DIV")taglyr=taglyr.parentElement;}else taglyr=FindTagLyrFromId(TagImg.objectid);if(taglyr==null)alert("taglyr=null");taglyr.drawok=1;if(taglyr.drawingeffect!=2){if(is.ns){setTimeout("LMIAnimLoad(document."+"LMIAnim"+TagImg.objectid+")",1/TagImg.fps*1000.);}else if(is.ie){setTimeout("LMIAnimLoad(LMIAnim"+TagImg.objectid+")",1/TagImg.fps*1000.);}return;}TagImg.CurImageIndex++;if(TagImg.CurImageIndex<TagImg.ImageList.length){}else if(TagImg.islooping){TagImg.CurImageIndex=0;TagImg.loop_count--;if(TagImg.loop_count==0){object=FindClassObjectFromTagLyr(taglyr);if(object&&object.BranchLst.length>=2&&object.BranchLst[1]!=null){LMObjectClick(taglyr,1);}}}else return;if(is.ns){setTimeout("LMIAnimChangeImage(document."+"LMIAnim"+TagImg.objectid+")",1/TagImg.fps*1000.);}else if(is.ie){setTimeout("LMIAnimChangeImage(LMIAnim"+TagImg.objectid+")",1/TagImg.fps*1000.);}}function LMIAnimMouseUp(TagImg){taglyr=FindTagLyrFromId(TagImg.objectid);LMObjectClick(taglyr,0);}function LMSound(id,delais,branch,param,filename,loop,loop_count){var BranchLst=null;if(branch){BranchLst=new Array(branch);}var LMSound=new LMObject(id,0,0,0,0,delais,null,BranchLst,null,param);LMSound.tag+="<embed src=\""+filename+"\" "+"STANDBY=\"Loading Apple QuickTime Player components...\" "+"PLUGINSPAGE=\"http://www.apple.com/quicktime/download/\" "+"CONTROLLER=false "+"AUTOPLAY=true "+"loop=false ";if(is.ns){LMSound.tag+="QTNEXT1=\"javascript:LMObjectClick(document."+id+",0)\" ";}else if(is.ie){LMSound.tag+="QTNEXT1=\"javascript:LMObjectClick("+id+",0)\" ";}LMSound.tag+=" LOOP=";if(loop==true){LMSound.tag+="true ";}else {LMSound.tag+="false ";}LMSound.tag+=">";LMBindToObject(LMSound);if(is.ns){var tagdiv=eval("document."+id);}else {var tagdiv=eval(id);}tagdiv.drawok=1;return LMSound;}