
with(__settings__){trySet("nxScroll","height",200);trySet("nxScroll","width",400);trySet("nxScroll","scrollBarSize",18);trySet("nxScroll","scrollStep",12);trySet("nxScroll","contentPadding","3px 5px 3px 3px");trySet("nxScroll","scrollButtonBorderColor","#F4F3F0 #A79F8B #A79F8B #F4F3F0");trySet("nxScroll","scrollButtonBorderSize",2);trySet("nxScroll","scrollButtonBorderMode","outset");trySet("nxScroll","scrollAreaBackground","#F4F3F0");trySet("nxScroll","contentAreaBackground","#FFFFFF");trySet("nxScroll","scrollButtonBackground","#E9E7E2");trySet("nxScroll","scrollButtonColor","#000000");};function nxScroll(){};nxScroll.prototype=new nxNode;nxScroll.superClass=nxNode.prototype;nxAddProperty({"constructor":nxScroll.prototype,"name":"scrollY","type":"number","evalModify":false});nxAddProperty({"constructor":nxScroll.prototype,"name":"content","type":"string","evalModify":false});nxScroll.prototype.preInit=function(data){nxScroll.superClass.preInit.call(this,data);this.create();};nxScroll.prototype.objectInit=function(data){nxScroll.superClass.objectInit.call(this,data);this.createStyles();this.setContent(this.initHTML);this.addEvents();};nxScroll.prototype.addEvents=function(){var myid=this.getId();__node__.addEvent(this.scrollYCellTop,"click",new Function("e","__registry__.get('"+myid+"').scrollYUp(e)"));__node__.addEvent(this.scrollYCellBottom,"click",new Function("e","__registry__.get('"+myid+"').scrollYDown(e)"));this.slideYStatus=false;this.status.set("scrollYNorm",0);__node__.addEvent(this.sliderY,"mousedown",new Function("e","__registry__.get('"+myid+"').slideYStart(e)"));__node__.addEvent(document,"mouseup",new Function("e","__registry__.get('"+myid+"').slideYStop(e)"));__node__.addEvent(document,"mousemove",new Function("e","__registry__.get('"+myid+"').slideYMove(e)"));if(__client__.getEngine()=="mshtml")
__node__.addEvent(this.getNode(),"mousewheel",new Function("e","__registry__.get('"+myid+"').scrollYWheel(e)"));};nxScroll.prototype.create=function(){var c=new Function("e","return document.createElement(e)");this.mainTable=c("table");this.mainBody=c("tbody");this.mainRow=c("tr");this.mainCell=c("td");this.mainScrollY=c("td");this.mainTable.appendChild(this.mainBody);this.mainBody.appendChild(this.mainRow);this.mainRow.appendChild(this.mainCell);this.mainRow.appendChild(this.mainScrollY);this.scrollYTable=c("table");this.scrollYBody=c("tbody");this.scrollYRowTop=c("tr");this.scrollYRowCenter=c("tr");this.scrollYRowBottom=c("tr");this.scrollYCellTop=c("td");this.scrollYCellMiddle=c("td");this.scrollYCellBottom=c("td");this.scrollYButtonTop=c("div");this.scrollYButtonTopText=document.createTextNode(__client__.getEngine()=="mshtml"?String.fromCharCode(53):String.fromCharCode(9652));this.scrollYButtonBottom=c("div");this.scrollYButtonBottomText=document.createTextNode(__client__.getEngine()=="mshtml"?String.fromCharCode(54):String.fromCharCode(9662));this.scrollYTable.appendChild(this.scrollYBody);this.scrollYBody.appendChild(this.scrollYRowTop);this.scrollYBody.appendChild(this.scrollYRowCenter);this.scrollYBody.appendChild(this.scrollYRowBottom);this.scrollYRowTop.appendChild(this.scrollYCellTop);this.scrollYRowCenter.appendChild(this.scrollYCellMiddle);this.scrollYRowBottom.appendChild(this.scrollYCellBottom);this.scrollYCellTop.appendChild(this.scrollYButtonTop);this.scrollYCellBottom.appendChild(this.scrollYButtonBottom);this.scrollYButtonTop.appendChild(this.scrollYButtonTopText);this.scrollYButtonBottom.appendChild(this.scrollYButtonBottomText);this.sliderY=c("div");this.scrollYCellMiddle.appendChild(this.sliderY);this.mainScrollY.appendChild(this.scrollYTable);this.mainTable.cellPadding="0";this.mainTable.cellSpacing="0";this.scrollYTable.cellPadding="0";this.scrollYTable.cellSpacing="0";this.innerContentFrame=c("div");this.outerContentFrame=c("div");this.initHTML=this.getNode().innerHTML;this.getNode().innerHTML="";this.outerContentFrame.appendChild(this.innerContentFrame);this.mainCell.appendChild(this.outerContentFrame);this.fixBoxsizing();this.getNode().appendChild(this.mainTable);};nxScroll.prototype.createStyles=function(){var scrollButtonHeight=this.config.get("scrollBarSize")-(2*this.config.get("scrollButtonBorderSize"));with(this.mainRow.style){verticalAlign="top";};with(this.mainScrollY.style){width=this.config.get("scrollBarSize")+"px";border="0 none";background=this.config.get("scrollAreaBackground");};with(this.outerContentFrame.style){overflow="hidden";border="1px solid "+this.config.get("contentAreaBackground");background=this.config.get("contentAreaBackground");};with(this.innerContentFrame.style){padding=this.config.get("contentPadding");border="1px solid "+this.config.get("contentAreaBackground");};with(this.scrollYCellTop.style){height=this.config.get("scrollBarSize")+"px";};with(this.scrollYCellMiddle.style){verticalAlign="top";};with(this.scrollYCellBottom.style){height=this.config.get("scrollBarSize")+"px";};__node__.setHandCursor(this.scrollYButtonTop);with(this.scrollYButtonTop.style){width=(this.config.get("scrollBarSize")-(2*this.config.get("scrollButtonBorderSize")))+"px";background=this.config.get("scrollButtonBackground");border=this.config.get("scrollButtonBorderSize")+"px "+this.config.get("scrollButtonBorderMode");borderColor=this.config.get("scrollButtonBorderColor");overflow="hidden";color=this.config.get("scrollButtonColor");height=scrollButtonHeight+"px";if(__client__.getEngine()=="mshtml"){fontFamily="Marlett";lineHeight="110%";fontSize="12px";textAlign="center";}
else {fontSize="18px";lineHeight=(scrollButtonHeight*5.5)+"%";textAlign="center";};};with(this.sliderY.style){width=(this.config.get("scrollBarSize")-(2*this.config.get("scrollButtonBorderSize")))+"px";background=this.config.get("scrollButtonBackground");border=this.config.get("scrollButtonBorderSize")+"px "+this.config.get("scrollButtonBorderMode");borderColor=this.config.get("scrollButtonBorderColor");lineHeight="0";fontSize="0";};__node__.setHandCursor(this.scrollYButtonBottom);with(this.scrollYButtonBottom.style){width=(this.config.get("scrollBarSize")-(2*this.config.get("scrollButtonBorderSize")))+"px";background=this.config.get("scrollButtonBackground");border=this.config.get("scrollButtonBorderSize")+"px "+this.config.get("scrollButtonBorderMode");borderColor=this.config.get("scrollButtonBorderColor");overflow="hidden";color=this.config.get("scrollButtonColor");height=scrollButtonHeight+"px";if(__client__.getEngine()=="mshtml"){fontFamily="Marlett";lineHeight="110%";fontSize="12px";textAlign="center";}
else {fontSize="18px";lineHeight=(scrollButtonHeight*5.5)+"%";textAlign="center";};};__node__.prohibitSelect(this.scrollYButtonTop);__node__.prohibitSelect(this.sliderY);__node__.prohibitSelect(this.scrollYButtonBottom);};nxScroll.prototype.updateStyles=function(){with(this.mainTable.style){width=this.config.get("width")+"px";};this.slideYHeight=this.innerContentFrame.offsetHeight;this.slideYRatio=this.slideYHeight/this.config.get("height");this.slideYMax=this.slideYHeight-this.config.get("height");this.slideYThumbArea=this.config.get("height")-(2*this.config.get("scrollBarSize"));this.slideYThumbHeight=this.slideYThumbArea/this.slideYRatio;this.slideYThumbRatio=this.slideYRatio/(this.slideYThumbArea/this.config.get("height"));if(this.slideYRatio<=1){with(this.sliderY.style){height="";};with(this.mainScrollY.style){display="none";height="";};with(this.outerContentFrame.style){height="";width=(this.config.get("width")-2)+"px";};with(this.mainCell.style){width=this.config.get("width")+"px";height="";};with(this.mainTable.style){height="";};}
else {with(this.mainTable.style){height=this.config.get("height")+"px";};with(this.mainScrollY.style){display="";};with(this.mainCell.style){width=(this.config.get("width")-this.config.get("scrollBarSize"))+"px";height=this.config.get("height")+"px";};with(this.outerContentFrame.style){height=(this.config.get("height")-2)+"px";width=(this.config.get("width")-this.config.get("scrollBarSize")-2)+"px";};with(this.sliderY.style){height=Math.ceil(this.slideYThumbHeight-(2*this.config.get("scrollButtonBorderSize")))+"px";};with(this.scrollYCellMiddle.style){height=Math.ceil(this.slideYThumbArea)+"px";};};};nxScroll.prototype.modifyScrollY=function(value){value=Math.floor(value/this.config.get("scrollStep"))*this.config.get("scrollStep");if(value<0)value=0;if(value>this.slideYMax)value=this.slideYMax;this.status.set("scrollYNorm",value);this.innerContentFrame.style.marginTop=(value>0?-value:0)+"px";if(nxValid(this.slideYThumbRatio))
this.sliderY.style.marginTop=parseInt(value/this.slideYThumbRatio)+"px";return true;};nxScroll.prototype.evalScrollY=function(value){var v=this.innerContentFrame.style.marginTop;return nxValid(v)&&v!=""?v:0;};nxScroll.prototype.scrollYUp=function(){this.setScrollY(this.status.get("scrollYNorm")-(this.config.get("scrollStep")*3));};nxScroll.prototype.scrollYDown=function(){return this.setScrollY(this.status.get("scrollYNorm")+(this.config.get("scrollStep")*3));};nxScroll.prototype.scrollYWheel=function(){return this.setScrollY(this.status.get("scrollYNorm")-event.wheelDelta/4);};nxScroll.prototype.slideYStart=function(e){this.slideYStatus=true;e=nxEvent(e);this.slideYMouseStart=e.y;this.slideYThumbStart=this.status.get("scrollYNorm");};nxScroll.prototype.slideYStop=function(e){if(!this.slideYStatus)return;this.slideYStatus=false;};nxScroll.prototype.slideYMove=function(e){if(!this.slideYStatus)return;if(__client__.getEngine()=="mshtml")
document.selection.empty();e=nxEvent(e);return this.setScrollY(this.slideYThumbStart+((e.y-this.slideYMouseStart)*this.slideYRatio));};nxScroll.prototype.modifyWidth=function(value){return __core__.error("Scroll:modifyWidth needs implementation!");};nxScroll.prototype.modifyHeight=function(value){return __core__.error("Scroll:modifyHeight needs implementation!");};nxScroll.prototype.modifyContent=function(data){this.setScrollY(0);this.innerContentFrame.innerHTML=data;this.updateStyles();return true;};nxScroll.prototype.evalContent=function(){return this.innerContentFrame.innerHTML;};
with(__settings__){trySet("nxWindow","height",200);trySet("nxWindow","width",400);trySet("nxWindow","title","My Window");trySet("nxWindow","iconCellWidth",20);trySet("nxWindow","cmdCellWidth",20);trySet("nxWindow","borderColor","#0A328C");trySet("nxWindow","borderSizeTop",1);trySet("nxWindow","borderSizeRight",1);trySet("nxWindow","borderSizeBottom",3);trySet("nxWindow","borderSizeLeft",1);trySet("nxWindow","headerBackground","#0A328C");trySet("nxWindow","headerColor","#ffffff");trySet("nxWindow","headerHeight",20);trySet("nxWindow","headerFontWeight","bold");trySet("nxWindow","headerIconMargin",2);trySet("nxWindow","headerCmdMargin",2);trySet("nxWindow","contentBackground","#ffffff");};function nxWindow(){};nxWindow.prototype=new nxLayer;nxWindow.superClass=nxLayer.prototype;nxAddProperty({"constructor":nxWindow.prototype,"name":"content","type":"string"});nxWindow.prototype.preInit=function(data){nxWindow.superClass.preInit.call(this,data);};nxWindow.prototype.objectInit=function(data){this.create();nxWindow.superClass.objectInit.call(this,data);this.createStyles();this.updateStyles();this.addEvents();};nxWindow.prototype.create=function(){var c=new Function("e","return document.createElement(e)");this.mainTable=c("table");this.mainBody=c("tbody");this.headRow=c("tr");this.headIconCell=c("td");this.headTitleCell=c("td");this.headCmdCell=c("td");this.mainRow=c("tr");this.mainCell=c("td");this.mainArea=c("div");this.mainTable.appendChild(this.mainBody);this.mainBody.appendChild(this.headRow);this.headRow.appendChild(this.headIconCell);this.headRow.appendChild(this.headTitleCell);this.headRow.appendChild(this.headCmdCell);this.mainBody.appendChild(this.mainRow);this.mainRow.appendChild(this.mainCell);this.mainCell.appendChild(this.mainArea);this.headTitleCell.appendChild(document.createTextNode(this.config.get("title")));this.mainArea.innerHTML=this.getNode().innerHTML;this.getNode().innerHTML="";this.getNode().appendChild(this.mainTable);this.mainAreaConfig=new nxHash();this.mainAreaConfig.set("width",this.config.get("width")-this.config.get("borderSizeRight")-this.config.get("borderSizeLeft"));this.mainAreaConfig.set("height",this.config.get("height")-this.config.get("borderSizeTop")-this.config.get("borderSizeBottom")-this.config.get("headerHeight"));this.mainAreaData={"node":this.mainArea,"type":"scroll","id":this.getId()+"Area","config":this.mainAreaConfig};this.mainScroll=__registry__.add(this.mainAreaData);this.mainCell.colSpan="3";this.mainTable.cellSpacing="0";this.mainTable.cellPadding="0";var icon=this.config.get("iconImage");if(nxValid(icon)){this.headIcon=document.createElement("img");this.headIcon.src=this.config.get("iconImage");with(this.headIcon.style){marginTop=this.config.get("headerIconMargin")+"px";marginLeft=this.config.get("headerIconMargin")+"px";};this.headIconCell.appendChild(this.headIcon);};var close=this.config.get("closeImage");if(nxValid(close)){this.headClose=document.createElement("img");this.headClose.src=this.config.get("closeImage");var myid=this.getId();__node__.addEvent(this.headClose,"click",new Function("__registry__.get('"+myid+"').setDisplay('none')"));__node__.setHandCursor(this.headClose);with(this.headClose.style){marginTop=this.config.get("headerCmdMargin")+"px";marginLeft=this.config.get("headerCmdMargin")+"px";};var closehint=this.config.get("closeHint");if(nxValid(closehint)){this.headClose.alt=this.headClose.title=closehint;};this.headCmdCell.appendChild(this.headClose);};this.fixBoxsizing();};nxWindow.prototype.createStyles=function(){with(this.mainTable.style){border="1px solid "+this.config.get("borderColor");borderWidth=this.config.get("borderSizeTop")+"px "+this.config.get("borderSizeRight")+"px "+this.config.get("borderSizeBottom")+"px "+this.config.get("borderSizeLeft")+"px";height=(this.config.get("height")-this.config.get("borderSizeTop")-this.config.get("borderSizeBottom"))+"px";};with(this.headIconCell.style){width=this.config.get("iconCellWidth")+"px";height=this.config.get("headerHeight")+"px";background=this.config.get("headerBackground");};__node__.setHandCursor(this.headTitleCell);with(this.headTitleCell.style){height=this.config.get("headerHeight")+"px";background=this.config.get("headerBackground");fontWeight=this.config.get("headerFontWeight");color=this.config.get("headerColor");verticalAlign="middle";};with(this.headCmdCell.style){width=this.config.get("cmdCellWidth")+"px";height=this.config.get("headerHeight")+"px";background=this.config.get("headerBackground");};with(this.mainCell.style){height=(this.config.get("height")-this.config.get("headerHeight")-this.config.get("borderSizeTop")-this.config.get("borderSizeBottom"))+"px";background=this.config.get("contentBackground");verticalAlign="top";};__node__.prohibitSelect(this.headIconCell);__node__.prohibitSelect(this.headTitleCell);__node__.prohibitSelect(this.headCmdCell);};nxWindow.prototype.updateStyles=function(){with(this.headTitleCell.style){width=(this.config.get("width")-this.config.get("cmdCellWidth")-this.config.get("iconCellWidth")-this.config.get("borderSizeRight")-this.config.get("borderSizeLeft"))+"px";};};nxWindow.prototype.addEvents=function(){var myid=this.getId();__node__.addEvent(this.headTitleCell,"mousedown",new Function("e","__registry__.get('"+myid+"').slideStart(e)"));__node__.addEvent(document,"mouseup",new Function("e","__registry__.get('"+myid+"').slideStop(e)"));__node__.addEvent(document,"mousemove",new Function("e","__registry__.get('"+myid+"').slideMove(e)"));};nxWindow.prototype.slideStart=function(e){e=nxEvent(e);this.slideXRelStart=e.x-__node__.getOffsetX(this.mainTable);this.slideYRelStart=e.y-__node__.getOffsetY(this.mainTable);this.slideStatus=true;};nxWindow.prototype.slideStop=function(e){if(!this.slideStatus)return;this.slideStatus=false;};nxWindow.prototype.slideMove=function(e){if(!this.slideStatus)return;e=nxEvent(e);if(__client__.getEngine()=="mshtml")
document.selection.empty();this.setX(e.x-this.slideXRelStart);this.setY(e.y-this.slideYRelStart);};nxWindow.prototype.modifyHeight=function(){return false;};nxWindow.prototype.modifyWidth=function(){return false;};nxWindow.prototype.modifyContent=function(data){return this.mainScroll.setContent(data);};nxWindow.prototype.evalContent=function(){return this.mainScroll.getContent();};
with(__settings__){trySet("nxHelp","title","On-topic Help");trySet("nxHelp","iconImage","icon.gif");trySet("nxHelp","closeImage","close.gif");trySet("nxHelp","closeHint","");trySet("nxHelp","height",150);trySet("nxHelp","width",220);trySet("nxHelp","hideSource",true);};var nxHelp={cache:[],lastId:null,init:function(){this.windowNode=document.createElement("div");document.body.appendChild(this.windowNode);this.config=new nxHash();this.config.set("type","window");this.config.set("id","nxHelpWindow");this.config.set("defaultStatus","display=none");__settings__.tryInit("nxHelp",this.config);this.window=__registry__.add({"node":this.windowNode,"config":this.config,"type":"window"});},add:function(config,node){var t=config.get("src");var p=this.cache.length;__node__.addEvent(node,"click",new Function("e","return nxHelp.click(e);"));this.cache[p]=t;node.helpid=p;node.className="nxHelpParent";node.style.cursor="help";if(this.config.get("hideSource")){var s=document.getElementById(t);if(nxValid(s))
s.style.display="none";};return true;},click:function(e){e=nxEvent(e);var t=e.target;if(__client__.getEngine()!="mshtml")
while(nxValid(t)&&(typeof t.getAttribute!="function"||!nxValid(t.getAttribute("nx"))&&typeof t.helpid!="number"))
t=t.parentNode;if(this.lastId!=t.helpid||this.window.getDisplay()=="none"){var s=this.window.getDisplay();try{if(s=="none")
this.window.setDisplay("block");this.window.setContent(document.getElementById(this.cache[t.helpid]).innerHTML);if(s=="none")
this.window.setDisplay("none");}
catch(e){__core__.error("Help:Failed to get Source Node. Please define 'src':"+e);return;};var v=parseInt(window.getViewportWidth()*0.66);var dx=(e.x<v&&(e.x+this.config.get("width"))<(window.getViewportWidth()-40))?e.x+20:e.x-this.config.get("width")-4;var dy=e.y+12;this.window.setX(dx);this.window.setY(dy);this.window.setDisplay("block");this.lastId=t.helpid;}
else {this.window.setDisplay("none");this.lastId=null;};}
};nxHelp.init();

