////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//   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_07_12 09:49:15 by tews                                                                                              //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var gaEventHandlerNames = new Array("click", "load", "mouseover", "mouseout", "mouseup", "mousedown", "keypress", "focus"); function Linker2() { this.id = "oLinker2 "; this.Links = gaLinkObjs; this.LeftLinks; this.RightLinks; this.LeftLinkObjs = new Array(); this.RightLinkObjs = new Array(); this.CreatePageLinkObj = CreatePageLinkObj; this.DestroyPageLinkObj = DestroyPageLinkObj; this.ResizeLinks = ResizeLinks; this.getStaticTableWidth = getStaticTableWidth; this.getCoreWidth = getCoreWidth; this.SetPageLink = SetPageLink; this.dlInitial = dlInitial; this.dlInitial(); } function dlInitial() { this.oFrmaTDWidth = this.getCoreWidth(); var LeftPageNo = oBook.iCurrPageNo - (0.5 * giLeafDirect); this.CreatePageLinkObj(oBook.oBasicLevelDiv, LeftPageNo, MgrLevel.ItemIndex); var RightPageNo = oBook.iCurrPageNo + (0.5 * giLeafDirect); this.CreatePageLinkObj(oBook.oBasicLevelDiv, RightPageNo, MgrLevel.ItemIndex); } function ResizeLinks(arg_ParentDiv, arg_Page, arg_LevelIdx) { this.ItemIndex = arg_LevelIdx; var iLR = ChkLR(arg_Page) * giLeafDirect; var arg_Obj = null; switch (iLR) { case -1: for (iIdx = 0; iIdx < this.LeftLinkObjs.length; iIdx++) { arg_ParentDiv.appendChild(this.LeftLinkObjs[iIdx].tag); arg_Obj = this.LeftLinkObjs[iIdx]; switch (arg_Obj.tag.tagName) { case "IFRAME": ; case "OBJECT": break; default: eval(gaLinkButton[0][1]); eval(gaLinkButton[0][2]); break; } this.LeftLinkObjs[iIdx].ItemIndex = arg_LevelIdx; this.LeftLinkObjs[iIdx].Resize(-1); this.LeftLinkObjs[iIdx].tag.style.visibility = "visible"; } for (iIdx = 0; iIdx < this.RightLinkObjs.length; iIdx++) { if (this.RightLinkObjs[iIdx].tag.tagName == "OBJECT") { if (arg_LevelIdx == 0) { this.RightLinkObjs[iIdx].tag.filename = this.RightLinkObjs[iIdx].FileName; this.RightLinkObjs[iIdx].tag.ShowControls = this.ShowControls; this.RightLinkObjs[iIdx].tag.style.visibility = "visible"; } else { this.RightLinkObjs[iIdx].tag.filename = ""; this.RightLinkObjs[iIdx].tag.style.visibility = "hidden"; } } else { if (arg_LevelIdx == 0) { this.RightLinkObjs[iIdx].tag.style.visibility = "visible"; } else { this.RightLinkObjs[iIdx].tag.style.visibility = "hidden"; } } } break; case 1: for (iIdx = 0; iIdx < this.RightLinkObjs.length; iIdx++) { arg_ParentDiv.appendChild(this.RightLinkObjs[iIdx].tag); this.RightLinkObjs[iIdx].ItemIndex = arg_LevelIdx; arg_Obj = this.RightLinkObjs[iIdx]; switch (arg_Obj.tag.tagName) { case "IFRAME": ; case "OBJECT": break; default: eval(gaLinkButton[0][1]); eval(gaLinkButton[0][2]); break; } this.RightLinkObjs[iIdx].ItemIndex = arg_LevelIdx; this.RightLinkObjs[iIdx].Resize(1); this.RightLinkObjs[iIdx].tag.style.visibility = "visible"; } for (iIdx = 0; iIdx < this.LeftLinkObjs.length; iIdx++) { if (this.LeftLinkObjs[iIdx].tag.tagName == "OBJECT") { if (arg_LevelIdx == 0) { this.LeftLinkObjs[iIdx].tag.filename = this.LeftLinkObjs[iIdx].FileName; this.LeftLinkObjs[iIdx].tag.ShowControls = this.ShowControls; this.LeftLinkObjs[iIdx].tag.style.visibility = "visible"; } else { this.LeftLinkObjs[iIdx].tag.filename = ""; this.LeftLinkObjs[iIdx].tag.style.visibility = "hidden"; } } else { if (arg_LevelIdx == 0) { this.LeftLinkObjs[iIdx].tag.style.visibility = "visible"; } else { this.LeftLinkObjs[iIdx].tag.style.visibility = "hidden"; } } } break; default: for (iIdx = 0; iIdx < this.LeftLinkObjs.length; iIdx++) { arg_ParentDiv.appendChild(this.LeftLinkObjs[iIdx].tag); arg_Obj = this.LeftLinkObjs[iIdx]; switch (arg_Obj.tag.tagName) { case "IFRAME": ; case "OBJECT": break; default: eval(gaLinkButton[0][1]); eval(gaLinkButton[0][2]); break; } this.LeftLinkObjs[iIdx].ItemIndex = arg_LevelIdx; this.LeftLinkObjs[iIdx].Resize(-1); this.LeftLinkObjs[iIdx].tag.style.visibility = "visible"; } for (iIdx = 0; iIdx < this.RightLinkObjs.length; iIdx++) { arg_ParentDiv.appendChild(this.RightLinkObjs[iIdx].tag); arg_Obj = this.RightLinkObjs[iIdx]; switch (arg_Obj.tag.tagName) { case "IFRAME": ; case "OBJECT": break; default: eval(gaLinkButton[0][1]); eval(gaLinkButton[0][2]); break; } this.RightLinkObjs[iIdx].ItemIndex = arg_LevelIdx; this.RightLinkObjs[iIdx].Resize(1); this.RightLinkObjs[iIdx].tag.style.visibility = "visible"; } break; } } function SetPageLink(arg_Page) { return this.Links[arg_Page]; } function CreatePageLinkObj(arg_Parent, arg_Page, arg_LevelIdx) { var iLR = ChkLR(arg_Page) * giLeafDirect; this.ItemIndex = arg_LevelIdx; switch (iLR) { case -1: this.LeftLinks = this.SetPageLink(arg_Page); if (this.LeftLinks != null) { for (iIdx = 0; iIdx < this.LeftLinks.length; iIdx++) { eval("oLink_L_" + GetClassStr(this.LeftLinks[iIdx][0]) + "_" + iIdx + "=new oLink" + GetClassStr(this.LeftLinks[iIdx][0]) + "(" + arg_Parent.id + "," + iLR + "," + "this.LeftLinks[" + iIdx + "][0],\"" + "Link_L_" + GetClassStr(this.LeftLinks[iIdx][0]) + "_" + iIdx + "\",this.LeftLinks[" + iIdx + "][1],this.LeftLinks[" + iIdx + "][2]," + arg_LevelIdx + ");"); eval("var tmpObj=" + "oLink_L_" + GetClassStr(this.LeftLinks[iIdx][0]) + "_" + iIdx); tmpObj.Page = arg_Page; this.LeftLinkObjs[iIdx] = tmpObj; delete tmpObj; } } break; case 1: this.RightLinks = this.SetPageLink(arg_Page); if (this.RightLinks != null) { for (iIdx = 0; iIdx < this.RightLinks.length; iIdx++) { eval("oLink_R_" + GetClassStr(this.RightLinks[iIdx][0]) + "_" + iIdx + "=new oLink" + GetClassStr(this.RightLinks[iIdx][0]) + "(" + arg_Parent.id + "," + iLR + "," + "this.RightLinks[" + iIdx + "][0],\"" + "Link_R_" + GetClassStr(this.RightLinks[iIdx][0]) + "_" + iIdx + "\",this.RightLinks[" + iIdx + "][1],this.RightLinks[" + iIdx + "][2]," + arg_LevelIdx + ");"); eval("var tmpObj=" + "oLink_R_" + GetClassStr(this.RightLinks[iIdx][0]) + "_" + iIdx); tmpObj.Page = arg_Page; this.RightLinkObjs[iIdx] = tmpObj; delete tmpObj; } } break; } } function DestroyPageLinkObj(arg_ParentDiv) { var SDate = new Date(); for (iIdx = arg_ParentDiv.childNodes.length - 1; iIdx >= 0; iIdx--) { if (arg_ParentDiv.children(iIdx) == null) { continue; } var oChild = arg_ParentDiv.children(iIdx); if (oChild.style.zIndex == 20) { if (oChild.tagName == "OBJECT") { oChild.stop(); oChild.filename = ""; } arg_ParentDiv.removeChild(oChild); } } var iLinkCount = this.LeftLinkObjs.length + this.RightLinkObjs.length; if (this.LeftLinkObjs != null) { this.LeftLinkObjs.length = 0; } if (this.RightLinkObjs != null) { this.RightLinkObjs.length = 0; } } function oLink(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) {
var tmpTag; var tmpEvent = ""; var iIdx; var tmpStyle = ""; var tmpTagName = ""; var tmpOther = ""; var tmpInnerHTML = ""; this.Page = -1; this.LR = arg_LR; this.id = "o" + arg_id; this.type = arg_type; this.ItemIndex = arg_LevelIdx; this.LevelInfo = oBookInfo.aLevelInfo; this.Rect = new Array(4); this.Rect = arg_property[1].split(","); this.Resize = Resize; for (iIdx = 0; iIdx < arg_events.length; iIdx++) { if (arg_events[iIdx] != "") { tmpEvent += "on" + gaEventHandlerNames[iIdx] + "=\"" + arg_events[iIdx] + "(" + this.id + ")\" "; } else { tmpEvent += "on" + gaEventHandlerNames[iIdx] + "=\"" + "on" + gaEventHandlerNames[iIdx] + GetClassStr(this.type) + "(" + this.id + ")\" "; } } switch (this.type) { case "ltGoto": tmpTagName = "DIV"; tmpStyle = arg_property[0] + " " + gaLinkButton[0][0] + gaLinkColor[0]; break; case "ltOpen": tmpTagName = "DIV"; tmpStyle = arg_property[0] + " " + gaLinkButton[0][0] + gaLinkColor[1]; break; case "ltPurchase": tmpTagName = "DIV"; tmpStyle = arg_property[0] + " " + gaLinkButton[0][0] + gaLinkColor[2]; break; case "ltBasket": tmpTagName = "DIV"; tmpStyle = arg_property[0] + " " + gaLinkButton[0][0] + gaLinkColor[3]; break; case "ltMedia": tmpTagName = "OBJECT"; tmpOther = " classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" "; tmpStyle = arg_property[0] + " "; break; case "ltAudio": tmpTagName = "DIV"; tmpStyle = arg_property[0] + " " + gsDefaultButton + "filter:" + gaLinkButtonEvent[4] + gaLinkColor[5]; break; case "ltFrame": tmpTagName = "IFRAME"; tmpStyle = arg_property[0]; tmpOther = " frameborder=0 "; break; } tmpTag = document.createElement(tmpTagName); arg_oParent.appendChild(tmpTag); tmpTag.outerHTML = "<" + tmpTagName + " class=\"tg" + this.type + "\"" + " id=\"tg" + arg_id + "\"" + " style=\"" + tmpStyle + "\"" + tmpEvent + tmpOther + ">" + "</" + tmpTagName + ">"; delete tmpTag; if (tmpTagName == "IFRAME") { eval(" this.tag=document.all.tg" + arg_id + ";"); } else { eval(" this.tag=tg" + arg_id + ";"); } this.tag.allowTransparency = "true"; delete tmpTag; this.OldLeft = 0; this.OldTop = 0;
} function Resize(arg_LR) { var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if ((arg_LR == 1) && ((this.ItemIndex == 0) || (oBook.iDouble == 0))) { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2]; } else { left = parseInt(this.Rect[0] * Scale); } top = parseInt(this.Rect[1] * Scale); width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); if (this.ItemIndex == 0) { left = parseInt(left) + iBorder_L_Bg_Width; top = parseInt(top) + iBorder_T_Bg_Height; } visibility = "visible"; } } function oLinkOpen(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.URL = arg_property[2]; this.Name = arg_property[3]; this.Features = arg_property[4]; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkPurchase(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.ItemCode = arg_property[2]; this.Name = arg_property[3]; this.Features = arg_property[4]; this.SoldOutStatus = arg_property[5]; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkBasket(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.URL = arg_property[2]; this.Name = arg_property[3]; this.Features = arg_property[4]; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkGoto(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.TargetPage = arg_property[2]; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkMedia(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.FileName = arg_property[4]; this.ShowControls = arg_property[3]; this.tag.AutoStart = arg_property[2]; this.tag.ShowControls = arg_property[3]; this.tag.filename = arg_property[4]; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkAudio(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; this.FileName = arg_property[2]; var tmpTag2 = document.createElement("BGSOUND"); this.tag.appendChild(tmpTag2); tmpTag2.outerHTML = "<" + "bgsound" + " style=\"z-index:20;\"" + "> "; this.tag2 = tmpTag2; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; var tmpTag3 = document.createElement("BGSOUND"); this.tag.appendChild(tmpTag3); tmpTag3.outerHTML = "<" + "Img" + " style=\"z-index:20;text-align:center;height" + this.Rect[3] * Scale + ";\" " + " src=\"" + gsSkinDir + "Audio.gif" + "\"" + "> "; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } } function oLinkFrame(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx) { this.tmp = oLink; this.tmp(arg_oParent, arg_LR, arg_type, arg_id, arg_property, arg_events, arg_LevelIdx); delete this.tmp; var Scale = this.LevelInfo[this.ItemIndex][3] / this.LevelInfo[this.LevelInfo.length - 1][3]; with (this.tag.style) { if (arg_LR == -1) { left = parseInt(this.Rect[0] * Scale) + iBorder_L_Bg_Width; } else { left = parseInt(this.Rect[0] * Scale) + this.LevelInfo[this.ItemIndex][2] + iBorder_L_Bg_Width; } top = parseInt(this.Rect[1] * Scale) + iBorder_T_Bg_Height; width = parseInt(this.Rect[2] * Scale); height = parseInt(this.Rect[3] * Scale); } this.tag.src = arg_property[2]; } function onclickGoto(arg_Obj) { oBook.GotoPage(arg_Obj.TargetPage); with (MgrSkin.oToolTipDiv) { tgTable.style.visibility = "hidden"; } } function onloadGoto(arg_Obj) { } function onmouseoverGoto(arg_Obj) { arg_Obj.tag.style.cursor = "hand"; eval(gaLinkButton[0][1]); with (MgrSkin.oToolTipDiv) { SetAppendix("Goto"); SetSkinObjDefault(); tgTable.style.left = parseInt(arg_Obj.tag.style.left) + parseInt(oBook.oCurrLevelDiv.style.left); tgTable.style.top = parseInt(arg_Obj.tag.style.top) - MgrSkin.oToolTipDiv.tgImg.height + parseInt(oBook.oCurrLevelDiv.style.top); tgTable.style.visibility = "visible"; var Tleft = parseInt(arg_Obj.tag.style.left); var T1left = parseInt(oBook.oCurrLevelDiv.style.left); var TTleft_total_width = parseInt(oBook.oCurrLevelDiv.style.width); var Ttop = parseInt(arg_Obj.tag.style.top); var T1top = parseInt(oBook.oCurrLevelDiv.style.top); var imageheight = MgrSkin.oToolTipDiv.tgImg.height; var imagewidth = MgrSkin.oToolTipDiv.tgImg.width; var Tleft_height = parseInt(arg_Obj.tag.style.height); var Tleft_width = parseInt(arg_Obj.tag.style.width); var DevTotal = ((Tleft + imagewidth) - TTleft_total_width); var Position = parseInt(arg_Obj.tag.style.left) + parseInt(oBook.oCurrLevelDiv.style.left); if (oMinMax2.bRestore == true) { oLinker2.oFrmaTDWidth = 0; } if (document.body.clientWidth - oLinker2.oFrmaTDWidth < (Tleft + T1left) + imagewidth) { var OffsetWidth = document.body.clientWidth - oLinker2.oFrmaTDWidth; } else { var OffsetWidth = document.body.clientWidth; } var DevTotal2 = parseInt(arg_Obj.tag.style.left) + parseInt(oBook.oCurrLevelDiv.style.left) + imagewidth - OffsetWidth; if ((Ttop + T1top) < imageheight) { tgTable.style.top = parseInt(T1top + Ttop + Tleft_height); } if (TTleft_total_width > document.body.clientWidth) { if (Tleft + T1left + imagewidth >= OffsetWidth) { if (Tleft + T1left + imagewidth >= OffsetWidth) { tgTable.style.left = Position - DevTotal2; } else { tgTable.style.left = Position - DevTotal2; } } else { tgTable.style.left = Position; } } else if (TTleft_total_width + (T1left * 2) < (Tleft + T1left) + imagewidth) { tgTable.style.left = parseInt(Tleft + (T1left * 2) - DevTotal); } if (Position < 0) { tgTable.style.left = 0; } } } function onmouseoutGoto(arg_Obj) { arg_Obj.tag.style.cursor = "default"; eval(gaLinkButton[0][2]); with (MgrSkin.oToolTipDiv) { tgTable.style.visibility = "hidden"; } } function onmousedownGoto(arg_Obj) { arg_Obj.tag.setCapture(); arg_Obj.OldLeft = parseInt(arg_Obj.tag.style.left); arg_Obj.OldTop = parseInt(arg_Obj.tag.style.top); eval(gaLinkButton[0][3]); } function onmouseupGoto(arg_Obj) { arg_Obj.tag.releaseCapture(); arg_Obj.tag.style.left = arg_Obj.OldLeft; arg_Obj.tag.style.top = arg_Obj.OldTop; eval(gaLinkButton[0][4]); with (MgrSkin.oToolTipDiv) { tgTable.style.visibility = "hidden"; } } function onkeypressGoto(arg_Obj) { } function onfocusGoto(arg_Obj) { }

function onclickOpen(arg_Obj){
var WndOpen=window.open(arg_Obj.URL,arg_Obj.Name,arg_Obj.Features);
WndOpen.focus();
with(MgrSkin.oToolTipDiv){
tgTable.style.visibility="hidden";
}
if(oController2 !=null){
var iTargetPage=oBook.iCurrPageNo+(0.5 * arg_Obj.LR * giLeafDirect);
oController2.ccoDoLinkClick(iTargetPage,arg_Obj.URL,MgrLevel.ItemIndex);
}
try{
if(linkCrmResultVale == true) linkCRM(iTargetPage,arg_Obj.URL);
}catch(e){}
}
function onloadOpen(arg_Obj){}function onmouseoverOpen(arg_Obj){arg_Obj.tag.style.cursor="hand";eval(gaLinkButton[0][1]);with(MgrSkin.oToolTipDiv){SetAppendix("Open");SetSkinObjDefault();tgTable.style.left=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left);tgTable.style.top=parseInt(arg_Obj.tag.style.top)-MgrSkin.oToolTipDiv.tgImg.height+parseInt(oBook.oCurrLevelDiv.style.top);tgTable.style.visibility="visible";var Tleft=parseInt(arg_Obj.tag.style.left);var T1left=parseInt(oBook.oCurrLevelDiv.style.left);var TTleft_total_width=parseInt(oBook.oCurrLevelDiv.style.width);var Ttop=parseInt(arg_Obj.tag.style.top);var T1top=parseInt(oBook.oCurrLevelDiv.style.top);var imageheight=MgrSkin.oToolTipDiv.tgImg.height;var imagewidth=MgrSkin.oToolTipDiv.tgImg.width;var Tleft_height=parseInt(arg_Obj.tag.style.height);var Tleft_width=parseInt(arg_Obj.tag.style.width);var DevTotal=((Tleft+imagewidth)-TTleft_total_width);var Position=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left);if(oMinMax2.bRestore==true){	oLinker2.oFrmaTDWidth=0;}if(document.body.clientWidth-oLinker2.oFrmaTDWidth <(Tleft+T1left)+imagewidth)	{	 var OffsetWidth=document.body.clientWidth-oLinker2.oFrmaTDWidth;	 		}else 	{			var OffsetWidth=document.body.clientWidth;	}		 			var DevTotal2=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left)+imagewidth-OffsetWidth;	 	 if((Ttop+T1top)<imageheight){tgTable.style.top=parseInt(T1top+Ttop+Tleft_height);}	 if(TTleft_total_width > document.body.clientWidth)	{		 if(Tleft+T1left+imagewidth >=OffsetWidth)		{			if(Tleft+T1left+imagewidth >=OffsetWidth)			{				tgTable.style.left=Position-DevTotal2;	 						}									else			{				tgTable.style.left=Position-DevTotal2;							}		}		 	 		 else 		{				tgTable.style.left=Position;					 				}	}	 else if(TTleft_total_width+(T1left*2)<(Tleft+T1left)+imagewidth)	{	 tgTable.style.left=parseInt(Tleft+(T1left*2)-DevTotal);	 		}	 if(Position < 0)	{		 tgTable.style.left=0;}}}function onmouseoutOpen(arg_Obj){arg_Obj.tag.style.cursor="default";eval(gaLinkButton[0][2]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onmousedownOpen(arg_Obj){arg_Obj.tag.setCapture();arg_Obj.OldLeft=parseInt(arg_Obj.tag.style.left);arg_Obj.OldTop=parseInt(arg_Obj.tag.style.top);eval(gaLinkButton[0][3]);}function onmouseupOpen(arg_Obj){arg_Obj.tag.releaseCapture();arg_Obj.tag.style.left=arg_Obj.OldLeft;arg_Obj.tag.style.top=arg_Obj.OldTop;eval(gaLinkButton[0][4]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onkeypressOpen(arg_Obj){}function onfocusOpen(arg_Obj){}function onloadOpen(arg_Obj){}function onclickPurchase(arg_Obj){var re1=/#IC/g;var re2=/#PUN/g;var tmpPurchaseBaseUrl=gsPurchaseBaseURL;var sRealURL=String(arg_Obj.ItemCode).substring(0,4);if(sRealURL=="http"){tmpPurchaseBaseUrl=String(arg_Obj.ItemCode);}sPurchaseURL=tmpPurchaseBaseUrl.replace(re1,String(arg_Obj.ItemCode));sPurchaseURL=sPurchaseURL.replace(re2,gsPurchaseID);window.open(sPurchaseURL,arg_Obj.Name,arg_Obj.Features);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}if(oController2 !=null){oController2.ccoDoLinkClick(arg_Obj.Page,sPurchaseURL,MgrLevel.ItemIndex);}}function onloadPurchase(arg_Obj){}function onmouseoverPurchase(arg_Obj){arg_Obj.tag.style.cursor="hand";eval(gaLinkButton[0][1]);with(MgrSkin.oToolTipDiv){SetAppendix("Purchase");SetSkinObjDefault();tgTable.style.left=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left);tgTable.style.top=parseInt(arg_Obj.tag.style.top)-MgrSkin.oToolTipDiv.tgImg.height+parseInt(oBook.oCurrLevelDiv.style.top);tgTable.style.visibility="visible";var Tleft=parseInt(arg_Obj.tag.style.left);var T1left=parseInt(oBook.oCurrLevelDiv.style.left);var TTleft_total_width=parseInt(oBook.oCurrLevelDiv.style.width);var Ttop=parseInt(arg_Obj.tag.style.top);var T1top=parseInt(oBook.oCurrLevelDiv.style.top);var imageheight=MgrSkin.oToolTipDiv.tgImg.height;var imagewidth=MgrSkin.oToolTipDiv.tgImg.width;var Tleft_height=parseInt(arg_Obj.tag.style.height);var Tleft_width=parseInt(arg_Obj.tag.style.width);var DevTotal=((Tleft+imagewidth)-TTleft_total_width);var Position=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left);if(oMinMax2.bRestore==true){	oLinker2.oFrmaTDWidth=0;}if(document.body.clientWidth-oLinker2.oFrmaTDWidth <(Tleft+T1left)+imagewidth)	{	 var OffsetWidth=document.body.clientWidth-oLinker2.oFrmaTDWidth;	 		}else 	{			var OffsetWidth=document.body.clientWidth;	}		 			var DevTotal2=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left)+imagewidth-OffsetWidth;	 	 if((Ttop+T1top)<imageheight){tgTable.style.top=parseInt(T1top+Ttop+Tleft_height);}	 if(TTleft_total_width > document.body.clientWidth)	{		 if(Tleft+T1left+imagewidth >=OffsetWidth)		{			if(Tleft+T1left+imagewidth >=OffsetWidth)			{				tgTable.style.left=Position-DevTotal2;	 						}									else			{				tgTable.style.left=Position-DevTotal2;							}		}		 	 		 else 		{				tgTable.style.left=Position;					 				}	}	 else if(TTleft_total_width+(T1left*2)<(Tleft+T1left)+imagewidth)	{	 tgTable.style.left=parseInt(Tleft+(T1left*2)-DevTotal);	 		}	 if(Position < 0)	{		 tgTable.style.left=0;}}}function onmouseoutPurchase(arg_Obj){arg_Obj.tag.style.cursor="default";eval(gaLinkButton[0][2]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onmousedownPurchase(arg_Obj){arg_Obj.tag.setCapture();arg_Obj.OldLeft=parseInt(arg_Obj.tag.style.left);arg_Obj.OldTop=parseInt(arg_Obj.tag.style.top);eval(gaLinkButton[0][3]);}function onmouseupPurchase(arg_Obj){arg_Obj.tag.releaseCapture();arg_Obj.tag.style.left=arg_Obj.OldLeft;arg_Obj.tag.style.top=arg_Obj.OldTop;eval(gaLinkButton[0][4]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onkeypressPurchase(arg_Obj){}function onfocusPurchase(arg_Obj){}function onloadPurchase(arg_Obj){}function onclickBasket(arg_Obj){with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}if(oController2 !=null){oController2.ccoDoLinkClick(oBook.iCurrPageNo,arg_Obj.URL,MgrLevel.ItemIndex);}}function onmouseoverBasket(arg_Obj){arg_Obj.tag.style.cursor="hand";eval(gaLinkButton[0][1]);with(MgrSkin.oToolTipDiv){SetAppendix("Basket");SetSkinObjDefault();tgTable.style.left=parseInt(arg_Obj.tag.style.left)+parseInt(oBook.oCurrLevelDiv.style.left);tgTable.style.top=parseInt(arg_Obj.tag.style.top)-MgrSkin.oToolTipDiv.tgImg.height+parseInt(oBook.oCurrLevelDiv.style.top);tgTable.style.visibility="visible";}}function onmouseoutBasket(arg_Obj){arg_Obj.tag.style.cursor="default";eval(gaLinkButton[0][2]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onmousedownBasket(arg_Obj){arg_Obj.tag.setCapture();arg_Obj.OldLeft=parseInt(arg_Obj.tag.style.left);arg_Obj.OldTop=parseInt(arg_Obj.tag.style.top);eval(gaLinkButton[0][3]);}function onmouseupBasket(arg_Obj){arg_Obj.tag.releaseCapture();arg_Obj.tag.style.left=arg_Obj.OldLeft;arg_Obj.tag.style.top=arg_Obj.OldTop;eval(gaLinkButton[0][4]);with(MgrSkin.oToolTipDiv){tgTable.style.visibility="hidden";}}function onkeypressBasket(arg_Obj){}function onfocusBasket(arg_Obj){}function onclickMedia(arg_Obj){window.Media(arg_Obj.URL,arg_Obj.Name,arg_Obj.Features);if(oController2 !=null){oController2.ccoDoLinkClick(oBook.iCurrPageNo,arg_Obj.URL,MgrLevel.ItemIndex);}}function onloadMedia(arg_Obj){}function onmouseoverMedia(arg_Obj){}function onmouseoutMedia(arg_Obj){}function onmouseupMedia(arg_Obj){}function onmousedownMedia(arg_Obj){}function onkeypressMedia(arg_Obj){}function onfocusMedia(arg_Obj){}function onclickAudio(arg_Obj){arg_Obj.tag2.src=arg_Obj.FileName;}function onloadAudio(arg_Obj){}function onmouseoverAudio(arg_Obj){}function onmouseoutAudio(arg_Obj){}function onmouseupAudio(arg_Obj){}function onmousedownAudio(arg_Obj){}function onkeypressAudio(arg_Obj){}function onfocusAudio(arg_Obj){}function onclickFrame(arg_Obj){}function onloadFrame(arg_Obj){}function onmouseoverFrame(arg_Obj){}function onmouseoutFrame(arg_Obj){}function onmouseupFrame(arg_Obj){}function onmousedownFrame(arg_Obj){}function onkeypressFrame(arg_Obj){}function onfocusFrame(arg_Obj){}function getStaticTableWidth(argObj){if(argObj.tagName=="TR"){var tdCount=argObj.cells.length;var iWidth=0;for(var i=0;i<tdCount;i++){if(argObj.cells(i).width==parseInt(argObj.cells(i).width)&& argObj.cells(i).width > 0){iWidth+=parseInt(argObj.cells(i).width);}}return iWidth;}return 0}function getCoreWidth(){var oTmp=oFrameTD.parentElement;var iWidth=0;while(true){if(oTmp.tagName=="BODY"){break;}iWidth+=getStaticTableWidth(oTmp);oTmp=oTmp.parentElement;}return iWidth;}
