// JavaScript gfxMenu Light v0.85 (01-10-02), Copyright (c) 2002 Pirmin Schmid, all rights reserved.
// it bases on JavaScript Diagram Builder 2.4 (2002), Copyright (c) 2002 Lutz Tautenhahn, all rights reserved.
// this is a minified version of the gfx menu script, using the Google closure compiler
// full & documented version available at mailbox@pirmin-schmid.ch
var gfx_Left=1,gfx_Right=2,gfx_BaseH="b",gfx_ColorH="c",gfx_PosH="p",gfx_Pos1H="p",gfx_Pos2H="q",gfx_OuterH="o",gfx_TableH="t",gfx_InnerH="i",gfx_CyclingOnce=1,gfx_CyclingRepeat=2,gfx_CyclingReverse=3,gfx_InfoModeReturn=1,gfx_InfoModeWrite=2,gfx_InfoModeAlert=4,gfx_InfoModeVerbose=8,gfx_InfoVersion="v0.81 (01-10-02)",gfx_DebugOn=false,_N_Base=0,_N_Dia=0,_N_Bar=0,_N_Box=0,_N_Dot=0,_N_Pix=0,_N_Line=0,_N_Area=0,_N_MenuItem=0,_N_Txt=0,_zIndex=0,_opera=0,_dSize=navigator.appName=="Microsoft Internet Explorer"?
1:-1;if(navigator.userAgent.search("Opera")>=0){_dSize=-4;_opera=1}var _linux=navigator.platform.search("Linux")>=0?1:0,_nav4=document.layers?1:0,_DiagramTarget=window;function _gfx_calcWindowHandle(){this.WindowHandle=_nav4?this.myBase.myWindow.document.layers[this.ID]:document.all?eval("this.myBase.myWindow.document.all."+this.ID):this.myBase.myWindow.document.getElementById(this.ID)}function _gfx_getWindowHandle(a){return this.WindowHandle}
function _gfx_changeColor(a){var b=this.getWindowHandle(gfx_ColorH);b.style.color=this.myBase.Colors.getColorDef(a)}function _gfx_changeColorRGB(a,b,c){var d=this.getWindowHandle(gfx_ColorH);d.style.color=this.myBase.Colors.toHex(a,b,c)}function _gfx_changeColorBin(a){var b=this.getWindowHandle(gfx_ColorH);b.style.color=a}
function _gfx_info(a,b,c,d,e,f){c="Object "+c+" "+gfx_InfoVersion+": "+d;if((a&gfx_InfoModeVerbose)==gfx_InfoModeVerbose&&e!="")c+=" - "+e;c+=". Copyright (c) 2002 Pirmin Schmid, all rights reserved (http://www.schmid-space.ch - mailto:mailbox@schmid-space.ch)";if(f)c+=" scaling and drawing codes base in parts on JavaScript Diagram Builder v2.4, Copyright (c) 2002 Lutz Tautenhahn (http://www.tu-chemnitz.de/~luta/ - mailto:lutz.tautenhahn@wirtschaft.tu-chemnitz.de)";(a&gfx_InfoModeAlert)==gfx_InfoModeAlert&&
b.Alert(c);(a&gfx_InfoModeWrite)==gfx_InfoModeWrite&&b.document.write(c);if((a&gfx_InfoModeReturn)==gfx_InfoModeReturn)return c}function _gfx_nvl(a,b){if(a==null)return b;if(a=="")return b;return String(a)}function _gfx_setVisibility(a){var b=this.GetWindowHandle(gfx_BaseH);if(_nav4)with(b)visibility=a?"show":"hide";else with(b)style.visibility=a?"visible":"hidden"}
function _gfx_moveTo(a,b){if(a!="")this.X=a;if(b!="")this.Y=b;this.Xscreen=this.myBase.ScreenX(this.X);this.Yscreen=this.myBase.ScreenY(this.Y);selHandle=this.getWindowHandle(gfx_PosH);if(_nav4)with(selHandle){left=this.Xscreen;top=this.Yscreen;visibility="show"}else with(selHandle.style){left=this.Xscreen;top=this.Yscreen;visibility="visible"}}
function _gfx_remove(){var a=this.getWindowHandle(gfx_BaseH);if(_nav4)with(a){document.open();document.close()}else if(document.all)a.outerHTML="";else a.parentNode.removeChild(a)}
function ColorTable(){this.hex=new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");this.R=[];this.G=[];this.B=[];this.CSS=[];this.defineColor=_gfxc_defineColor;this.getColorDef=_gfxc_getColorDef;this.getColorCSS=_gfxc_getColorCSS;this.toHex=_gfxc_toHex;this.Num2Hex=_gfxc_Num2Hex;this.info=_gfxc_info;this.remove=_gfxc_remove;return this}function _gfxc_defineColor(a,b,c,d,e){with(this){R[a]=b;G[a]=c;B[a]=d;CSS[a]=e}}
function _gfxc_getColorDef(a){with(this)return toHex(R[a],G[a],B[a])}function _gfxc_getColorCSS(a){return this.CSS[a]}function _gfxc_toHex(a,b,c){return"#"+this.Num2Hex(a)+this.Num2Hex(b)+this.Num2Hex(c)}function _gfxc_Num2Hex(a){if(a<1)return"00";else if(a>254)return"ff";else{var b=Math.floor(a/16);a=a-b*16;return this.hex[b]+this.hex[a]}}
function _gfxc_info(a){return _gfx_info(a,window,"ColorTable()","helps managing Colors for drawing projects",".defineColor .getColorDef .getColorCSS .toHex .info .remove",false)}function _gfxc_remove(){}
function Fader(a){this.WaitNest=this.LockNest=0;this.FaderOn=false;this.MaxStep=this.Step=this.Bstep=this.Gstep=this.Rstep=this.B=this.G=this.R=this.Destination=0;this.CyclingOn=false;this.NextColor=this.ActColor=this.LastColor=this.FirstColor=0;this.myBase=a;this.start=_gfxf_start;this.stop=_gfxf_stop;this.lock=_gfxf_lock;this.unlock=_gfxf_unlock;this.isLocked=_gfxf_isLocked;this.wait=_gfxf_wait;this.cont=_gfxf_cont;this.isWaiting=_gfxf_isWaiting;this.fadeInto=_gfxf_fadeInto;this.fadeInto_intern=
_gfxf_fadeInto_intern;this.fadeIntoCyclingPath=_gfxf_fadeIntoCyclingPath;this.fadeIt=_gfxf_fadeIt;this.info=_gfxf_info;this.remove=_gfxf_remove;gfx_DebugOn&&this.myBase.D.writeln("Fader() initialized")}
function _gfxf_start(a,b,c,d,e){if(this.FaderOn){this.stop();for(this.lock();this.isWaiting(););}gfx_DebugOn&&this.myBase.D.writeln("Fader:1 ObjCount:"+this.myBase.objCount+" Object:"+c);this.Obj=c;gfx_DebugOn&&this.myBase.D.writeln("Fader:2 Object:"+this.Obj);this.Destination=d;this.R=this.myBase.Colors.R[d];this.G=this.myBase.Colors.G[d];this.B=this.myBase.Colors.B[d];this.Bstep=this.Gstep=this.Rstep=0;this.MaxStep=this.Step=e;this.Obj.changeColorRGB(Math.round(this.R),Math.round(this.G),Math.round(this.B));
gfx_DebugOn&&this.myBase.D.writeln("Fader:3");this.FaderHandle=this.myBase.myWindow.setInterval(b,a);gfx_DebugOn&&this.myBase.D.writeln("Fader:4");this.FaderOn=true;this.unlock();gfx_DebugOn&&this.myBase.D.writeln("Fader.start: color "+this.myBase.Colors.toHex(Math.round(this.R),Math.round(this.G),Math.round(this.B))+" step "+this.Rstep+"/"+this.Gstep+"/"+this.Bstep+" lock:"+this.isLocked()+" ("+this.LockNest+") wait:"+this.isWaiting()+" ("+this.WaitNest+")")}
function _gfxf_stop(){this.myBase.myWindow.clearInterval(this.faderHandle);this.FaderOn=false}function _gfxf_lock(){this.LockNest++}function _gfxf_unlock(){this.LockNest>0&&this.LockNest--}function _gfxf_isLocked(){return this.LockNest!=0}function _gfxf_wait(){this.WaitNest++}function _gfxf_cont(){this.WaitNest>0&&this.WaitNest--}function _gfxf_isWaiting(){return this.WaitNest!=0}
function _gfxf_fadeInto(a){if(a!=this.Destination){for(;this.isLocked(););for(this.lock();this.isWaiting(););this.CyclingOn=false;this.fadeInto_intern(a);this.unlock()}}
function _gfxf_fadeInto_intern(a){if(a!=this.Destination){this.Destination=a;this.Rstep=(this.myBase.Colors.R[a]-this.R)/this.MaxStep;this.Gstep=(this.myBase.Colors.G[a]-this.G)/this.MaxStep;this.Bstep=(this.myBase.Colors.B[a]-this.B)/this.MaxStep;this.Step=0;gfx_DebugOn&&this.myBase.D.writeln("Fader.fadeInto: old color "+this.myBase.Colors.toHex(Math.round(this.R),Math.round(this.G),Math.round(this.B))+"  destination "+this.myBase.Colors.getColorDef(this.Destination)+" step "+this.Rstep+"/"+this.Gstep+
"/"+this.Bstep+" lock:"+this.isLocked()+" ("+this.LockNest+") wait:"+this.isWaiting()+" ("+this.WaitNest+")")}}
function _gfxf_fadeIntoCyclingPath(a,b,c,d){for(;this.isLocked(););for(this.lock();this.isWaiting(););this.CyclingOn=true;this.ColorNArr=a;this.ActColor=b;if(c>b){this.FirstColor=b;this.LastColor=c;this.NextColor=1}else if(c<b){this.FirstColor=c;this.LastColor=b;this.NextColor=-1}else{this.FirstColor=b;this.LastColor=c;this.NextColor=0}this.CyclingMode=d;this.fadeInto_intern(this.ColorNArr[this.ActColor]);this.Step=0;this.unlock()}
function _gfxf_fadeIt(){if(this.Step<this.MaxStep)if(!this.isLocked())if(!this.isWaiting()){this.wait();if(this.Step<this.MaxStep){this.Step++;if(this.Step==this.MaxStep){this.R=this.myBase.Colors.R[this.Destination];this.G=this.myBase.Colors.G[this.Destination];this.B=this.myBase.Colors.B[this.Destination];if(this.CyclingOn){if(this.ActColor==this.FirstColor&&this.NextColor==-1)if(this.CyclingMode==gfx_CyclingRepeat)this.ActColor=this.LastColor;else{if(this.CyclingMode==gfx_CyclingReverse){this.ActColor=
this.FirstColor+1;this.NextColor=-this.NextColor}}else if(this.ActColor==this.LastColor&&this.NextColor==1)if(this.CyclingMode==gfx_CyclingRepeat)this.ActColor=this.FirstColor;else{if(this.CyclingMode==gfx_CyclingReverse){this.ActColor=this.LastColor-1;this.NextColor=-this.NextColor}}else this.ActColor+=this.NextColor;this.ActColor>=this.FirstColor&&this.ActColor<=this.LastColor&&this.fadeInto_intern(this.ColorNArr[this.ActColor])}}else{this.R+=this.Rstep;this.G+=this.Gstep;this.B+=this.Bstep}this.Obj.changeColorRGB(Math.round(this.R),
Math.round(this.G),Math.round(this.B))}this.cont()}}function _gfxf_info(a){return _gfx_info(a,this.myBase.myWindow,"Fader()","fades into colors and color cycling paths","uses gfxBase(), defines .start .stop **process-management-tools (.lock .unlock .isLocked / .wait .cont .isWaiting) .fadeInto .fadeIntoCyclingPath .fadeIt .info .remove",false)}function _gfxf_remove(){this.stop()}
function gfxBase(a){if(gfx_DebugOn){this.D=a;this.D.writeln("Hi, this is gfxBase.")}this.ID="Base"+_N_Base;_N_Base++;_zIndex++;this.zIndex=_zIndex;this.Colors=new ColorTable;this.myWindow=window;this.objHandle=[];this.objName=[];this.objType=[];this.objCount=0;this.defineScreenPos=_gfxb_defineScreenPos;this.defineCoords=_gfxb_defineCoords;this.addToObjectList=_gfxb_addToObjectList;this.getLastObjectListNum=_gfxb_getLastObjectListNum;this.getObjectByNum=_gfxb_getObjectByNum;this.getObjectByName=_gfxb_getObjectByName;
this.getObjectByID=_gfxb_getObjectByID;this.setOutputWindow=_gfxb_setOutputWindow;this.ScreenX=_gfxb_ScreenX;this.ScreenY=_gfxb_ScreenY;this.RealX=_gfxb_RealX;this.RealY=_gfxb_RealY;this.start=_gfxb_start;this.redraw=_gfxb_redraw;this.setVisibility=_gfxb_setVisibility;this.info=_gfxb_info;this.remove=_gfxb_remove;return this}function _gfxb_defineScreenPos(a,b,c,d){this.left=a;this.right=c;this.top=b;this.bottom=d}
function _gfxb_defineCoords(a,b,c,d){this.xmin=a;this.xmax=c;this.ymin=d;this.ymax=b}function _gfxb_addToObjectList(a,b,c){this.objHandle[this.objCount]=a;this.objName[this.objCount]=b;this.objType[this.objCount]=c;this.objLast=this.objCount;this.objCount++;return this.objLast}function _gfxb_getLastObjectListNum(){return this.objLast}function _gfxb_getObjectByNum(a){return a>=0&&a<this.objCount?this.objHandle[a]:0}
function _gfxb_getObjectByName(a){var b=0;if(this.objCount>0)for(b=0;b<this.objCount;b++){if(this.objName[b]==a)return this.getObjectByNum(b)}else return 0}function _gfxb_getObjectByID(a){var b=0;if(this.objCount>0)for(b=0;b<this.objCount;b++){if(this.objHandle[b].ID==a)return this.getObjectByNum(b)}else return 0}function _gfxb_setOutputWindow(a){this.myWindow=a}function _gfxb_resetOutputWindow(){this.myWindow=window}
function _gfxb_ScreenX(a){return Math.round((a-this.xmin)/(this.xmax-this.xmin)*(this.right-this.left)+this.left)}function _gfxb_ScreenY(a){return Math.round((this.ymax+a)/(this.ymax-this.ymin)*(this.bottom-this.top)+this.top)}function _gfxb_RealX(a){return this.xmin+(this.xmax-this.xmin)*(a-this.left)/(this.right-this.left)}function _gfxb_RealY(a){return-this.ymax+(this.ymax-this.ymin)*(a-this.top)/(this.bottom-this.top)}function _gfxb_start(){gfx_DebugOn&&this.D.writeln("gfxBase started.")}
function _gfxb_redraw(){if(this.objCount>0){var a=0;for(a=0;a<this.objCount;a++);}}function _gfxb_setVisibility(a){if(this.objCount>0){var b=0;for(b=0;b<this.objCount;b++)this.objHandle[b].setVisibility(a)}}
function _gfxb_info(a){var b=_gfx_info(a,this.myWindow,"gfxBase()","defines a virtual drawing system","may use: Debugger() by ps_debug.js; defines: public ColorTable() named Colors, public handle to window called myWindow; provides: .defineScreenPos .defineCoords .addToObjectList [added objects need .redraw .remove .getWindowHandle] .getLastObjectListNum .getObjectByNum .getObjectByName .getObjectByID .setOutputWindow .resetOutputWindow .ScreenX .ScreenY .RealX .RealY .start .redraw .setVisibility .info .remove",true);
if((a&gfx_InfoModeVerbose)==gfx_InfoModeVerbose){b+=this.Colors.info(a);if(this.objCount>=0){b+=" listed Objects:";var c=0;for(c=0;c<this.objCount;c++){b+=" "+c+this.objName[c]+" ["+this.objType[c]+"]";dummy=this.objHandle[c].info(a)}}}return b}function _gfxb_remove(){if(this.objCount>0){var a=0;for(a=0;a<this.objCount;a++)delete this.objHandle[a]}}
function MenuItem(a,b,c,d,e,f,i,g,h,j,k,l,m){this.ID="MenuItem"+_N_MenuItem;_N_MenuItem++;this.myBase=a;this.Y=this.X=b;this.TextPos=d>=0&&d<this.myBase.objCount?b<this.myBase.getObjectByNum(d).X?gfx_Left:gfx_Right:gfx_Right;this.Xscreen=this.myBase.ScreenX(b);this.Yscreen=this.myBase.ScreenY(c);this.Listed=m;gfx_DebugOn&&this.myBase.D.write("<br>Creating "+this.ID+" @ x:"+this.X+" ("+this.Xscreen+") y:"+this.Y+" ("+this.Yscreen+")");this.getWindowHandle=_gfxi_getWindowHandle;this.changeColor=_gfxi_changeColor;
this.changeColorRGB=_gfxi_changeColorRGB;this.changeColorBin=_gfxi_changeColorBin;this.setVisibility=_gfx_setVisibility;this.moveTo=_gfxi_moveTo;this.redraw=_gfxi_redraw;this.info=_gfxi_info;this.remove=_gfxi_remove;this.ColorN=e;this.BallSize=f;this.TextSize=i;this.Text=_gfx_nvl(g,"");this.TooltipText=_gfx_nvl(h,"");this.HoverS=_gfx_nvl(j,"");this.ActionS=_gfx_nvl(k,"");this.LinkS=_gfx_nvl(l,"");if(f>0){this.isBall=true;this.Ball=new Dot(a,b,c,e,0,f,h,j,k,l,false)}else this.isBall=false;if(g!=""){if(this.TextPos==
gfx_Left){this.dXt=-(2*this.Ball.dX);this.dYt=0;this.MTAlign=gfx_Right}else{this.dXt=2*this.Ball.dX;this.dYt=0;this.MTAlign=gfx_Left}this.MenuText=new Text(a,this.myBase.RealX(this.Xscreen+this.dXt),this.myBase.RealY(this.Yscreen+this.dYt),this.MTAlign,e,i,g,h,j,k,l,false);this.isText=true}else this.isText=false;if(this.Listed)this.ListNum=this.myBase.addToObjectList(this,g,"MenuItem");return this}
function _gfxi_getWindowHandle(a){if(this.isBall)return this.Ball.getWindowHandle(a);else if(this.isText)return this.MenuText.getWindowHandle(a)}function _gfxi_changeColor(a){this.isBall&&this.Ball.changeColor(a);this.isText&&this.MenuText.changeColor(a)}function _gfxi_changeColorRGB(a,b,c){this.isBall&&this.Ball.changeColorRGB(a,b,c);this.isText&&this.MenuText.changeColorRGB(a,b,c)}
function _gfxi_changeColorBin(a){this.isBall&&this.Ball.changeColorBin(a);this.isText&&this.MenuText.changeColorBin(a)}function _gfxi_moveTo(a,b,c){this.Y=this.X=a;this.Xscreen=this.myBase.ScreenX(a);this.Yscreen=this.myBase.ScreenY(b);this.Alignement=c}function _gfxi_redraw(){this.isBall&&this.Ball.redraw();this.isText&&this.MenuText.redraw()}
function _gfxi_info(a){return _gfx_info(a,this.myBase.myWindow,"menuItem()","draws a menu item using Dot() & Text()","uses: gfxBase() Dot() Text(); provides: .getWindowHandle .setVisibility .moveTo .changeColor .changeColorRGB .changeColorBin .redraw .info .remove",true)}function _gfxi_remove(){if(this.isBall){this.Ball.remove();delete this.Ball}if(this.isText){this.MenuText.remove();delete this.MenuText}}
function Dot(a,b,c,d,e,f,i,g,h,j,k){this.ID="Dot"+_N_Dot;_N_Dot++;_zIndex++;this.zIndex=_zIndex;this.myBase=a;this.X=b;this.Y=c;this.Xscreen=this.myBase.ScreenX(b);this.Yscreen=this.myBase.ScreenY(c);this.Listed=k;this.ColorN=d;this.Type=e%6;a=new Array("149","176","42","164","215","43");if(_linux&&(_opera||_nav4))a[0]="35";this.Symbol=a[this.Type];this.Size=f;if(_linux&&_nav4)this.Size=6;this.dX=1+this.Size-_opera-Math.floor(_linux*this.Size/4);if(this.Type<3)this.dX-=Math.floor(this.Size/4)+2;if(this.Type==
3)this.dX-=Math.floor(this.Size/4)+1;this.dY=this.Size-1-Math.floor(_opera*this.Size/4);if(this.Type!=1&&this.Type!=2)this.dY+=Math.floor(this.Size/2)+1;this.TooltipText=_gfx_nvl(i,"");this.HoverS=_gfx_nvl(g,"");this.ActionS=_gfx_nvl(h,"");this.LinkS=_gfx_nvl(j,"");this.calcWindowHandle=_gfx_calcWindowHandle;this.getWindowHandle=_gfx_getWindowHandle;this.changeColor=_gfx_changeColor;this.changeColorRGB=_gfx_changeColorRGB;this.changeColorBin=_gfx_changeColorBin;this.setVisibility=_gfx_setVisibility;
this.moveTo=_gfxd_moveTo;this.draw=_gfxd_draw;this.redraw=_gfxd_redraw;this.info=_gfxd_info;this.remove=_gfx_remove;this.draw();this.calcWindowHandle();if(this.Listed){this.ListNum=this.myBase.addToObjectList(this,_gfx_nvl(this.TooltipText,this.ID),"Dot");gfx_DebugOn&&this.myBase.D.writeln("Dot: listN:"+this.ListNum)}return this}function _gfxd_moveTo(a,a){}
function _gfxd_draw(){gfx_DebugOn&&this.myBase.D.write(" "+this.ID+" ([x "+this.X+" y "+this.Y+"]--\>[x "+this.Xscreen+" y "+this.Yscreen+"] dx "+this.dX+" dy "+this.dY+" size "+this.Size+" symbol["+this.Type+"]=&#"+this.Symbol+";)");if(this.LinkS!="")var a="<a href='"+this.LinkS+"' ",b="</a>";else{a="<div ";b="</div>"}var c=this.HoverS!=""?" onMouseover='"+this.HoverS+"'":"",d=this.ActionS!=""?" onClick='"+this.ActionS+"'":"";if(!_nav4){var e=" id='"+this.ID+"'",f=" style='position:absolute;left:"+
eval(this.Xscreen-this.dX)+";top:"+eval(this.Yscreen-this.dY)+";",i="width:"+eval(2*this.Size)+";height:"+eval(2*this.Size)+";float:right;",g="color:"+this.myBase.Colors.getColorDef(this.ColorN)+";font-size:"+eval(2*this.Size)+"pt;line-height:"+eval(2*this.Size)+"pt;font-family:Verdana;font-weight:normal;text-decoration:none;z-index:"+this.zIndex+"'",h=" title='"+this.TooltipText+"'";this.myBase.myWindow.document.write(a+e+c+d+f+i+g+h+">&#"+this.Symbol+";"+b);gfx_DebugOn&&this.myBase.D.write(" ok ")}}
function _gfxd_redraw(){}function _gfxd_info(a){return _gfx_info(a,this.myBase.myWindow,"Dot()","draws a symbol (dot)","uses: gfxBase(); provides: .getWindowHandle .setVisibility .moveTo .changeColor .changeColorRGB .changeColorBin .redraw .info .remove",true)}
function Text(a,b,c,d,e,f,i,g,h,j,k,l){this.ID="Txt"+_N_Txt;_N_Txt++;_zIndex++;this.zIndex=_zIndex;this.myBase=a;this.X=b;this.Y=c;this.Xscreen=this.myBase.ScreenX(b);this.Yscreen=this.myBase.ScreenY(c);this.Listed=l;this.ColorN=e;this.Text=_gfx_nvl(i,"");this.Alignement=d;this.Size=f;if(_linux&&_nav4)this.Size=6;this.dX=0;this.dY=this.Size-1-Math.floor(_opera*this.Size/4);this.TooltipText=_gfx_nvl(g,"");this.HoverS=_gfx_nvl(h,"");this.ActionS=_gfx_nvl(j,"");this.LinkS=_gfx_nvl(k,"");this.calcWindowHandle=
_gfxt_calcWindowHandles;this.getWindowHandle=_gfxt_getWindowHandle;this.changeColor=_gfx_changeColor;this.changeColorRGB=_gfx_changeColorRGB;this.changeColorBin=_gfx_changeColorBin;this.setVisibility=_gfx_setVisibility;this.moveTo=_gfxt_moveTo;this.redraw=_gfxt_redraw;this.info=_gfxt_info;this.remove=_gfx_remove;this.draw=_gfxt_draw;this.draw();this.calcWindowHandle();if(this.Listed)this.ListNum=this.myBase.addToObjectList(this,this.Text,"Text");return this}function _gfxt_moveTo(a,a,b){}
function _gfxt_draw(){gfx_DebugOn&&this.myBase.D.write(" "+this.ID+" ([x "+this.X+" y "+this.Y+"]--\>[x "+this.Xscreen+" y "+this.Yscreen+"] dx "+this.dX+" dy "+this.dY+" size "+this.Size+" '"+this.Text+"'");if(this.Alignement==gfx_Right)var a="right",b="1",c=this.Xscreen-this.dX,d="width="+c;else{a="left";b=this.Xscreen-this.dX;c="auto";d=""}var e="<div",f="</div>",i="<table border=0 cellspacing=0 cellpadding=0",g="</table>",h="<tr",j="</tr>";a="<td align='"+a+"'";var k="</td>";if(this.LinkS!="")var l=
"<a href='"+this.LinkS+"'",m="</a>";else{l="<div";m="</div>"}var o=this.HoverS!=""?" onMouseover='"+this.HoverS+"'":"",p=this.ActionS!=""?" onClick='"+this.ActionS+"'":"";if(!_nav4){var n=" id='"+this.ID;b="position:absolute;left:"+b+";top:"+eval(this.Yscreen-this.dY)+";";var q="width:"+c+";height:auto;";c="color:"+this.myBase.Colors.getColorDef(this.ColorN)+";font-size:"+eval(2*this.Size)+"pt;line-height:"+eval(2*this.Size)+"pt;font-family:Verdana;font-weight:normal;z-index:"+this.zIndex;var r=" title='"+
this.TooltipText+"'";e=e+n+"' style='"+b+q+"'>";e+=i+n+"t' "+d+">"+h+">"+a+">";e+=l+n+"i' style='"+c+"'"+r+o+p+">";e+=this.Text+m+k+j+g+f;this.myBase.myWindow.document.write(e);gfx_DebugOn&&this.myBase.D.write(" ok ");gfx_DebugOn&&this.myBase.D.write(" [width: "+eval("this.myBase.myWindow.document.all."+this.ID+".style.width")+"] ")}}function _gfxt_redraw(){}
function _gfxt_calcWindowHandles(){if(_nav4){this.WindowHandle=this.myBase.myWindow.document.layers[this.ID];this.WindowHandleT=this.myBase.myWindow.document.layers[this.ID+"t"];this.WindowHandleI=this.myBase.myWindow.document.layers[this.ID+"i"]}else if(document.all){this.WindowHandle=eval("this.myBase.myWindow.document.all."+this.ID);this.WindowHandleT=eval("this.myBase.myWindow.document.all."+this.ID+"t");this.WindowHandleI=eval("this.myBase.myWindow.document.all."+this.ID+"i")}else{this.WindowHandle=
this.myBase.myWindow.document.getElementById(this.ID);this.WindowHandleT=this.myBase.myWindow.document.getElementById(this.ID+"t");this.WindowHandleI=this.myBase.myWindow.document.getElementById(this.ID+"i")}}function _gfxt_getWindowHandle(a){a=_gfx_nvl(a,gfx_BaseH);if(a==gfx_ColorH||a==gfx_InnerH)return this.WindowHandleI;else if(a==gfx_Pos1H||a==gfx_OuterH||a==gfx_BaseH)return this.WindowHandle;else if(a==gfx_Pos2H||a==gfx_TableH)return this.WindowHandleT}
function _gfxt_info(a){return _gfx_info(a,this.myBase.myWindow,"Text()","draws a Text with possible alignement to the left or right","uses: gfxBase(); provides: .getWindowHandle .setVisibility .moveTo .changeColor .changeColorRGB .changeColorBin .redraw .info .remove",true)}
function Pixel(a,b,c,d,e,f){this.ID="Pix"+_N_Pix;_N_Pix++;_zIndex++;this.myBase=a;this.X=b;this.Y=c;this.Listed=f;this.Text=String(e);this.Xscreen=this.myBase.ScreenX(b);this.Yscreen=this.myBase.ScreenY(c);this.dX=2-_opera;this.dY=11-_opera;this.Color=d;this.SetVisibility=_gfx_setVisibility;this.moveTo=_gfxp_moveTo;this.calcWindowHandle=_gfx_calcWindowHandle;this.getWindowHandle=_gfx_getWindowHandle;this.changeColor=_gfx_changeColor;this.changeColorRGB=_gfx_changeColorRGB;this.changeColorBin=_gfx_changeColorBin;
this.redraw=_gfxp_redraw;this.info=_gfxp_info;this.remove=_gfx_remove;if(_nav4){this.myBase.myWindow.document.writeln("<layer id='"+this.ID+"' left="+eval(this.Xscreen-this.dX)+" top="+eval(this.Yscreen-this.dY)+"; z-Index="+_zIndex+">");this.myBase.myWindow.document.writeln("<div style='position:absolute;left:1;top:2;color:"+this.myBase.Colors.getColorDef(d)+";font-size:10pt;line-height:12pt;font-family:Verdana;font-weight:bold;'>.</div>");this.myBase.myWindow.document.writeln("</layer>")}else this.myBase.myWindow.document.writeln("<div id='"+
this.ID+"' style='position:absolute;left:"+eval(this.Xscreen-this.dX)+";top:"+eval(this.Yscreen-this.dY)+";color:"+this.myBase.Colors.getColorDef(d)+";font-size:10pt;line-height:12pt;font-family:Verdana;font-weight:normal;z-index:"+_zIndex+"' title='"+e+"'>.</div>");this.calcWindowHandle();if(this.Listed)this.ListNum=this.myBase.addToObjectList(this,this.Text,"Pixel");else return this}function _gfxp_moveTo(a,b){}function _gfxp_redraw(){}
function _gfxp_info(a){return _gfx_info(a,this.myBase.myWindow,"Pixel()","draws a point (pixel)","uses: gfxBase(); provides: .getWindowHandle .setVisibility .moveTo .changeColor .changeColorRGB .changeColorBin .redraw .info .remove",true)};