//**************************************************************************//
// ModuleName : OpenEBook.js //
// //
// Last Update : 2012.08.10 by tews //
//**************************************************************************//
// History //
// 2004_06_11 : IE Browser Opend Redirection //
// 2004_06_11 : IE 5.0 Open Bug Fixed //
// 2004_07_08 : Window 2003 //
// 2004_07_22 : TaskBar //
// 2004_08_14 : GotoPage //
// 2010.11.11 : Add function GetWndStyleType for AllInOne //
// -> GetWinStyle simular but find optimized size for OS, browser //
// 2010.11.11 : Add function GetMargins for AllInOne //
// -> find adjusted margin size for OS, browser //
// 2010.11.11 : Change function name SetLaunchHTMLForSelf //
// -> from SetLaunchHTML to SetLaunchHTMLForSelf for SelfOpen //
// 2010.11.11 : Add Object BrowserDetect Obj //
// -> Detact OS, Browser for AllInOne //
// 2010.11.11 : Modify function OpenBook for AllInOne //
// -> Branch host for two (old, new) services //
// ( BookCode : 100000 ) //
// 2010.11.11 : Modify function GetQuery for AllInOne //
// -> added detect code for lagnuage //
// 2010.11.11 : Modify function SelfOpen //
// -> call function SetLaunchHTMLForSelf for oldtype SelfOpen //
// 2012.08.10 : 1. Delete SetLanuchURL //
// 2. Https Call support for Authentication //
//**************************************************************************//
var iDetectCnt = 0 ;
function eBookOpener() {
this.sNoteEnvURL = "http://ebook.webcatalog.jp/skin/deco/7net/errorhtml/fortrueebook.html" ;
switch (BrowserDetect.browser ) {
case "Opera" : ; //
this.sNoteEnvStyle = "top=" + parseInt((innerHeight - 380 ) / 2 ) + ", left=" + parseInt(( innerWidth - 426 ) / 2 ) + ", width=426, height=380, directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no" ;
break;
default :
this.sNoteEnvStyle = "top=" + parseInt((screen.availHeight - 380 ) / 2 ) + ", left=" + parseInt((screen.availWidth - 426 ) / 2 ) + ", width=426, height=380, directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no" ;
break;
}
this.winLimitWidth = 1024;
this.winLimitHeight = 768 ;
this.winWidth = 0;
this.winHeight = 0;
this.winInnerWidth = 0;
this.winInnerHeight = 0;
this.winStyle = null;
this.OpenStyle = null;
this.winStyleName = null;
this.TitleBar = 0 ;
this.UrlBar = 0 ;
this.Border = 0 ;
this.StatusBar = 0 ;
this.Port="80";
this.eBookHost = "http://ebook2.webcatalog.jp"
this.eBookUrl = this.eBookHost + ":" + this.Port + "/engine/isapi/frame.dll?";
this.ParameterList = new Array("bc", "co", "gp", "sbp", "sep", "ui", "ct");
this.ViewerStyleList = new Array("eBookFull", "eBookCustomer", "eBookDefault", "FullScreen");
this.SetLaunchHTML = SetLaunchHTML;
this.GetWinStyle = GetWinStyle ;
this.GetBorderSize = GetBorderSize;
this.IsWinXP = IsWinXP;
this.SelfOpen = SelfOpen;
//
this.OpenBook = OpenBook; //
this.GetQuery = GetQuery; //
this.aParam = null ;
//
this.GetWndStyleType = GetWndStyleType;
this.GetMargins = GetMargins;
// this.SetLaunchHTMLForSelf = SetLaunchHTMLForSelf;
// this.SetLaunchURL = SetLaunchURL;
// BrowserDetect Obj
}
function SetLaunchHTML(arg_URL, arg_self) { // open window in HTML
var sPostUrl = "" ;
switch ( BrowserDetect.OS ) {
case "iPhone/iPod" : ; // iPod
case "iPad" : ; // iPad
case "Android" : ; // Android
this.eBookUrl = this.eBookHost + ":" + this.Port + "/engine/php/mobile/index.php?";
sPostUrl = "/engine/php/viewer2.php" ;
break;
default : ;
this.eBookUrl = this.eBookHost + ":" + this.Port + "/engine/isapi/frame.dll?";
switch ( arg_self ) {
case 1 :
sPostUrl = "/engine/php/viewer2.php" ;
break;
default :
sPostUrl = "/engine/php/viewer.php" ;
break;
}
}
var OpenHTML = "" + "\n"
+ " " + "\n"
+ " " + "\n"
+ " " + "\n"
+ "