/*
** by Sitsanlis Ilias
*/

var isVisibleHelpText=!1,helpContainer=new createjs.Container,helpSh=new createjs.Shape,helpText=new createjs.Text;function createRegister(e){helpSh.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),helpSh.set({x:iH,y:hcInitial-2*iH}),self.addChild(helpSh);var i=new createjs.Text("?","18px Trebuchet MS","#000000");i.set({x:iH,y:hcInitial-2*iH-9,textAlign:"center"}),self.addChild(i);var t=new createjs.Shape;t.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),t.set({x:wcInitial-iH,y:hcInitial-2*iH}),self.addChild(t);i=new createjs.Text("i","18px Trebuchet MS","#000000");i.set({x:wcInitial-iH,y:hcInitial-2*iH-9,textAlign:"center"}),self.addChild(i),helpSh.on("mousedown",helpClickFun),helpSh.on("pressup",helpPressUpFun),helpContainer.on("click",function(){helpContainer.removeAllChildren(),isVisibleHelpText=!isVisibleHelpText,helpSh.graphics.clear(),helpSh.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),stage.update()}),helpSh.addEventListener("mouseover",function(){helpSh.graphics.clear(),helpSh.graphics.s("#000000").ss(1.2).beginFill("#eeeeee").dc(0,0,12.5),stage.update()}),helpSh.addEventListener("mouseout",function(){helpSh.graphics.clear(),helpSh.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),stage.update()}),t.on("click",iClickFun),t.addEventListener("mouseover",function(){t.graphics.clear(),t.graphics.s("#000000").ss(1.2).beginFill("#eeeeee").dc(0,0,12.5),stage.update()}),t.addEventListener("mouseout",function(){t.graphics.clear(),t.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),stage.update()});i=new createjs.Shape;i.graphics.s("#9C9898").ss(1).r(0,hcInitial-iH,wcInitial,iH),self.addChild(i);e=new createjs.Text(e,"16px Trebuchet MS","#000000");e.set({x:wcInitial/2,y:hcInitial-5,textAlign:"center",textBaseline:"alphabetic",name:"cTxt"}),self.addChild(e),self.addChild(helpContainer)}function iClickFun(e){window.open("files/copyright/cc.html")}function helpClickFun(e){var i,t;isVisibleHelpText?helpContainer.removeAllChildren():(helpText.set({textBaseline:"top",textAlign:"left",font:"12px Trebuchet MS",lineWidth:wcInitial-45,lineHeight:16,x:5,y:5}),i=helpText.getBounds().height+8,(t=new createjs.Shape).graphics.s("#666666").ss(1).beginFill("#ffffcc").r(0,0,wcInitial-40,i),helpContainer.addChild(t,helpText),helpContainer.x=20,helpContainer.y=hcInitial-i-3*iH,helpContainer.name="helpContainer"),isVisibleHelpText=!isVisibleHelpText,stage.update()}function helpPressUpFun(e){e.target.graphics.clear(),e.target.graphics.s("#000000").ss(1.2).beginFill("#ffffff").dc(0,0,12.5),stage.update()}