////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   This computer program is protected by copyright law and international treaties.                                                      //
//   Unauthorized reproduction or distribution of the program, or any portion of it, may result in severe civil and criminal penalties,   //
//   and will be prosecuted to the maximum extent possible under law.                                                                     //
//   Copyright(c) Digitomi Corp. All Right Reserved.                                                                                      //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   Last Update 2005_02_21 09:45:13 by tews                                                                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 function MinMax2(){this.id="oMinMax2";try{this.oParentFrame=oBookDiv;}catch(e){}this.FileNameReStore="MinMax_WndRestore.gif";this.FileNameClose="MinMax_WndClose.gif";this.left=0;this.top=0;this.width=0;this.height=0;this.bRestore=false;this.oHHCtrl_Minimize=null;this.oMinMaxArea=null;this.oMinBtn=null;this.oCloseBtn=null;this.dmmDoMaximize=dmmDoMaximize;this.dmmDoRestore=dmmDoRestore;this.dmmDoMinimize=dmmDoMinimize;this.dmnIsRestore=dmnIsRestore;this.dmmInitial=dmmInitial;this.dmmInitial();}function dmmInitial(){var tmpHHCtrl=document.createElement("OBJECT");document.body.appendChild(tmpHHCtrl);tmpHHCtrl.outerHTML="<object id=\"oHHCtrl_Minimize\" type=\"application/x-oleobject\"classid=\"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11\"> "+"\n"+"<param name=\"Command\" Value=\"Minimize\">"+"\n</object>";this.oHHCtrl_Minimize=oHHCtrl_Minimize;var tmpMinMaxArea=document.createElement("DIV");oBook.oBookBaseDiv.appendChild(tmpMinMaxArea);tmpMinMaxArea.outerHTML="<div id=\"oMinMaxArea\"><img src=\""+gsProtocol+gsSrv_Cache+gsPort+gsSlash+gsDecoSkinDir+gsSlash+this.FileNameReStore+"\" border=\"0\" align=\"absmiddle\" style=\"cursor:hand\" id=\"oMinBtn\" onclick=\"oController2.cOnRestore()\" alt=\"return\">"+"<img src=\""+gsProtocol+gsSrv_Cache+gsPort+gsSlash+gsDecoSkinDir+gsSlash+this.FileNameClose+"\" border=\"0\" align=\"absmiddle\" style=\"cursor:hand\" id=\"oCloseBtn\" onclick=\"oController2.cOnClose()\" alt=\"close\"></div>";delete tmpMinMaxArea;this.oMinMaxArea=oMinMaxArea;this.oMinBtn=oMinBtn;this.oCloseBtn=oCloseBtn;with(this.oMinMaxArea.style){position="absolute";visibility="hidden";top=3;right=3;zIndex=600;}this.left=parseInt(window.screenLeft);this.top=parseInt(window.screenTop);this.width=parseInt(parseInt(document.body.clientWidth)+10);this.height=parseInt(parseInt(document.body.clientHeight)+25+5);}function dmnIsRestore(){return this.bRestore;}function dmmDoMaximize(){var aWndName=window.name.split("_");var Margin_Width=screen.availWidth-screen.width;var Margin_Height=screen.availHeight-screen.height;var iWidth=0;var iHeight=0;if(aWndName[0]=="eBookFull"){iWidth=screen.width+giBorderLeft*2;iHeight=screen.height+giBorderTop+giBorderLeft;}else{if(Margin_Height==0){Margin_Height=5;}else{Margin_Height=0;}if(Margin_Width==0){Margin_Width=5;}else{Margin_Width=0;}iWidth=screen.availWidth+giBorderLeft*2+Margin_Width;iHeight=screen.availHeight+giBorderTop+Margin_Height;}window.moveTo(-giBorderLeft,-giBorderTop);window.resizeTo(iWidth,iHeight);with(this.oParentFrame.style){position="absolute";top=0;left=0;width=document.body.clientWidth;height=document.body.clientHeight;}this.oMinBtn.style.visibility="visible";this.oCloseBtn.style.visibility="visible";this.bRestore=true;}function dmmDoRestore(){var aWndName=window.name.split("_");var Margin_Left=0;var Margin_Top=0;if(aWndName[0]=="eBookFull"){if(IsWinXP()){Margin_Left=-8;Margin_Top=-60;}else{Margin_Left=-7;Margin_Top=-46;}}window.moveTo(parseInt(this.left+Margin_Left),parseInt(this.top+Margin_Top));window.resizeTo(this.width,this.height);with(this.oParentFrame.style){position="relative";left=0;top=0;width="100%";height="100%";}this.oMinBtn.style.visibility="hidden";this.oCloseBtn.style.visibility="hidden";this.bRestore=false;}function dmmDoMinimize(){this.oHHCtrl_Minimize.Click();}
