//*******************************************************************
// (C) 2003 Corel Corporation. All rights reserved.
// Build Date: Wed Jun 25 2003 16:16:15 EDT
//*******************************************************************
var Mm=new Object();function dsvgAttributeToolTip(J5Im){var id=yuD(J5Im,'toolTip',dsvgNS);new AttributeToolTip(J5Im,id);};function dsvgAttributeTipDelay(){};function dsvgAttributeTipTrack(){};function dsvgAttributeTitle(){};function AttributeToolTip(J5Im,id){this.J5Im=J5Im;this.shY=0;this.delay=500;this.FsK=0;this.vlDD=-13;this.active=false;if(!GnO(J5Im)){this.control=null;}else{var Sx=yuD(this.J5Im,'id');this.control=_B[Sx];};if(!Mm[id]||!Mm[id].defGroup){Mm[id]=this;this.Ep(id,'finishTip');}else{this.finishTip(Mm[id].defGroup);}};AttributeToolTip.prototype.Ep=function(Gsz,Mn){var ofrx=Gsz.split('#')[0];var p3=Gsz.split('#')[1];var _cL11dsvgAttributeTooltip="087101100032074117110032050053032050048048051049054058049054058049053032069068084";if(ofrx!=''){getURL(ofrx,new tooltipCallbackHandler(Gsz,ofrx,p3,Mn));}else{if(p3){var defGroup=doc.getElementById(p3);this[Mn](defGroup);};}};function tooltipCallbackHandler(X6,ofrx,p3,Mn){this.SI=Mm[X6];this.p3=p3;this.GBla=ofrx;this.Mn=Mn;};tooltipCallbackHandler.prototype.operationComplete=function(status){if(status.success){var RtS=parseXML(status.content,doc);var defGroup=getChildById(RtS.firstChild,this.p3,true);if(defGroup!=null){this.SI[this.Mn].call(this.SI,defGroup);}else{alert('fragment['+this.p3+']does not exist');}}else{alert('Problem with remote file: '+this.ofrx);}};AttributeToolTip.prototype.finishTip=function(defGroup){;this.BB=defGroup.cloneNode(true);BB.appendChild(this.BB);BB.removeChild(this.BB);D(this.BB,'display','none');this.active=false;this.defGroup=defGroup;this.background=getChildById(this.BB,'background',true);this.gY=getChildById(this.BB,'label',true);this.fontSize=yuD(this.gY,'font-size');if(this.fontSize==''){this.fontSize=jx(this.gY,'font-size');};this.fontSize=parseFloat(this.fontSize);this.vlDD=-this.fontSize;if(!this.control){tH(this.J5Im,'mousemove',this.LU,false);tH(this.J5Im,'mouseout',this.U6kp,false);tH(this.J5Im,'mousedown',this.U6kp,false);}else{tH(this.control.BB,'mousemove',this.LU,false);tH(this.control.BB,'mouseout',this.U6kp,false);tH(this.control.BB,'mousedown',this.U6kp,false);}};AttributeToolTip.prototype.LU=function(evt){if(this.AAZ!=dsvgGetClientX(evt)&& this.JK!=dsvgGetClientY(evt)){var el;var control;if(typeof BaseUI!='undefined'){control=BaseUI.RzG(evt);};if(control){el=control.BB;}else{el=evt.target;};var text=yuD(el,'title',dsvgNS);if(text!=""){var id=yuD(el,'toolTip',dsvgNS);var delay=yuD(el,'tipDelay',dsvgNS);var tc_=yuD(el,'tipTrack',dsvgNS);while(!text ||!id){el=el.parentNode;if(!text)text=yuD(el,'title',dsvgNS);if(!id)id=yuD(el,'toolTip',dsvgNS);if(!delay)delay=yuD(el,'tipDelay',dsvgNS);if(!tc_)tc_=yuD(el,'tipTrack',dsvgNS);if(el==BB)break;};if(!delay){delay=Mm[id].delay;};if(!tc_){Mm[id].tc_=false;}else{Mm[id].tc_=true;}
if(jw=="Corel"){delay=0;};Mm[id].J5Im=evt.target;if(!Mm[id].active){var dx=dsvgGetClientX(evt);var h=dsvgGetClientY(evt);this.AAZ=dx;this.JK=h;if(Mm[id].HpRE && jw!="Corel"){clearTimeout(Mm[id].HpRE);};if(delay!=0){Mm[id].HpRE=setTimeout("AttributeToolTip.TipTimer('"+id+"','"+text+"','"+dx+"','"+h+"','"+tc_+"');",delay);}else{AttributeToolTip.TipTimer(id,text,dx,h,tc_);}};}};};AttributeToolTip.TipTimer=function(id,text,dx,h,tc_){Mm[id].TE2(id,text,dx,h,tc_);};AttributeToolTip.prototype.U6kp=function(evt){var id=AttributeToolTip.sf6(evt);if(id){if(Mm[id].HpRE && jw!="Adobe"){clearTimeout(Mm[id].HpRE);};D(Mm[id].BB,'display','none');Mm[id].active=false;}};AttributeToolTip.prototype.U=function(x,y){var cgY=BB;var MsP=cgY.currentTranslate;var scale=cgY.currentScale;x=parseFloat(x);y=parseFloat(y);; x=x*scale;y=y*scale;var mx=cgY.getAttribute("viewBox");var Bl=null;if(mx){var Kus=yuD(cgY,'width');var ZM=yuD(cgY,'height');if((Kus!="")&&(ZM!="")){var iEJ=false;if(Kus.indexOf('px')>-1){Bl=true;iEJ=true;Kus=parseFloat(Kus);};if(ZM.indexOf('px')>-1){Bl=true;iEJ=true;ZM=parseFloat(ZM);};if(!iEJ){if(Kus.indexOf('in')>-1){Bl=true;Kus=parseFloat(Kus)*100;};if(ZM.indexOf('in')>-1){Bl=true;ZM=parseFloat(ZM)*100;}};}; var ku=mx.split(/\s+/);var n2f=ku[2]/ Kus;var T6=ku[3]/ ZM;x=x*n2f;y=y*T6;if(Bl){Bl=n2f;}else{Bl=1;}};if(!Bl)var Bl=1;EBG=1/scale;var FbG=new function(){this.x=x;this.y=y;this.scale=EBG;};return FbG;};AttributeToolTip.prototype.TE2=function(id,text,x,y,tc_){if(id){var mS=Mm[id];BB.appendChild(mS.BB);var l=mS.gY;l.firstChild.data='';;var KD=l.firstChild;while(KD!=null){var L=KD.nextSibling;if(KD.nodeName=='tspan'){l.removeChild(KD);};KD=L;};var Fc=0;var hwxT=0;var XP=0;var bgAf;if(jw=="Corel"){bgAf=text.split("\\n");}else{bgAf=text.split("\n");};for(J1rt=0;J1rt<bgAf.length;J1rt++){var Y=doc.createElement('tspan');var yr=mS.gY.getAttribute('x');var Kp=(parseFloat(mS.fontSize)+((J1rt)*parseFloat(mS.fontSize)));D(Y,'x',yr);D(Y,'y',Kp);Y.appendChild(doc.createTextNode(bgAf[J1rt]));l.appendChild(Y);hwxT=l.getBBox().width;if(hwxT>Fc){Fc=hwxT;};XP=l.getComputedTextLength();};mS.height=bgAf.length;var t=parseFloat(yuD(mS.gY,'x'))-parseFloat(yuD(mS.background,'x'));var sB=parseFloat(Fc)+parseFloat(t)*2;var yzLk=parseFloat(mS.fontSize/4)+parseFloat(mS.height*mS.fontSize);D(mS.background,'width',sB);D(mS.background,'height',yzLk);var JaG=this.U(x,y);var jU=JaG.x+mS.FsK;var AX=JaG.y+mS.vlDD*mS.height;var scale=JaG.scale;setTransform(mS.BB,new xH(jU,AX),true,'translate');setTransform(mS.BB,new xH(scale,scale),false,'scale');;;D(mS.BB,'display','all');mS.active=true;if(mS.tc_){tH(mS.J5Im,'mousemove',mS.uR,false);};}};AttributeToolTip.prototype.uR=function(evt){var id=AttributeToolTip.sf6(evt);if(id){var mS=Mm[id];if(mS.active){var JaG=mS.U(dsvgGetClientX(evt),dsvgGetClientY(evt));setTransform(mS.BB,new xH(JaG.x+mS.FsK,JaG.y+mS.vlDD*mS.height),true,'translate');setTransform(mS.BB,new xH(JaG.scale,JaG.scale),false,'scale');};}};AttributeToolTip.sf6=function(evt){var el=evt.target;var id=yuD(el,'toolTip',dsvgNS);while(!id){el=el.parentNode;id=yuD(el,'toolTip',dsvgNS);if(el==BB)break;};return id;};