home *** CD-ROM | disk | FTP | other *** search
- var objCurrent = null;
-
- function mouseover(obj)
- {
- if (obj != null)
- {
- obj.style.color = "#FF9900";
- }
- }
-
- function mouseout(obj)
- {
- if (obj != null)
- {
- obj.style.color = "";
- obj.style.fontWeight = "";
- }
- }
-
- function MouseOverCat(obj, type)
- {
- if (obj != null)
- {
- if (type == 0)
- {
- MouseOverArrow(obj.all.plusminus, obj.getAttribute("state"));
- }
- else if (type == 1)
- {
- MouseOverText(obj.all.CatName, obj.getAttribute("state"));
- }
- }
- }
-
- function MouseOutCat(obj, type)
- {
- if (obj != null)
- {
- if (type == 0)
- {
- MouseOutArrow(obj.all.plusminus, obj.getAttribute("state"));
- }
- else if (type == 1)
- {
- MouseOutText(obj.all.CatName, obj.getAttribute("state"));
- }
- }
- }
-
- function MouseOverArrow(obj, state)
- {
- if (obj != null && state == 1)
- {
- obj.src = "images/over.gif";
- }
- }
-
- function MouseOutArrow(obj, state)
- {
- if (obj != null)
- {
- if (state == 1)
- {
- obj.src = "images/plus.gif";
- }
- else
- {
- obj.src = "images/minus.gif";
- }
- }
- }
-
- function MouseOverText(obj, state)
- {
- if (obj != null)
- {
- obj.style.color = "#FF9900";
- }
- }
-
- function MouseOutText(obj, state)
- {
- if (obj != null)
- {
- obj.style.color = "";
- }
- }
-
- function ImgOver(obj, img)
- {
- if (obj != null)
- {
- obj.src = "images/" + img + "ovr.gif";
- }
- }
-
- function ImgOut(obj, img)
- {
- if (obj != null)
- {
- obj.src = "images/" + img + ".gif";
- }
- }
-
- function ImgDn(obj, img)
- {
- if (obj != null)
- {
- obj.src = "images/" + img + "dn.gif";
- }
- }
-
- function Link(id, keyword)
- {
- top.location = "rd/asp/" + id + "," + keyword;
- }
-
- function seekeyword(obj)
- {
- if (obj != null)
- {
- window.open("3vseekw:" + obj.getAttribute("kw"), "_self");
- }
- }
-
- function seekeywordlist(obj)
- {
- if (obj != null)
- {
- window.open("3vseekwlist:" + obj.getAttribute("kw"), "_self");
- }
- }
-
- function GotoCreateGroup()
- {
- window.open("3vgotocreategroup:", "_self");
- }
-
- function ExpandTree(Cat, bToggle)
- {
- if (Cat != null)
- {
- var obj = Cat.parentElement;
- var plusminus = Cat.all.plusminus;
- if (obj != null && plusminus != null)
- {
- var child = GetInfoSrcList(obj);
- if (child != null)
- {
- if ((bToggle == true && Cat.getAttribute("state") == 1) || bToggle == false)
- {
- Cat.setAttribute("state", 0);
- plusminus.src = "images/minus.gif";
- child.style.display = "inline";
- }
- else if (bToggle == true)
- {
- Cat.setAttribute("state", 1);
- plusminus.src = "images/over.gif";
- child.style.display = "none";
- }
- }
- }
- }
- }
-
- function GetInfoSrcList(obj)
- {
- var child = null;
- if (obj != null)
- {
- var length = obj.children.length;
- for (var i = 0; i < length; i++)
- {
- if (obj.children[i].className == "InfoSrcList")
- {
- child = obj.children[i];
- break;
- }
- }
- }
- return child;
- }
-
- function GotoLink(obj)
- {
- if (obj.getAttribute("oneoff") != null && obj.getAttribute("oneoff") == 1)
- {
- window.open("3vgotooneoff:" + obj.getAttribute("iid"), "_self");
- }
- else
- {
- window.open("3vgoto:" + obj.getAttribute("iid"), "_self");
- }
- }
-
- function GotoGroup(obj)
- {
- window.open("3vgroup:" + obj.getAttribute("gid") + "=" + obj.all.groupname.innerHTML, "_self");
- }
-
- function ShowLinks(id)
- {
- var obj = document.all[id];
- if (obj != null)
- {
- var plusminus = obj.all["plusminus"];
- if (plusminus)
- {
- ExpandTree(obj, plusminus, false);
- HighlightParent(obj);
- }
- }
- }
-
- function HighlightParent(obj)
- {
- var parent = obj.parentElement;
- if (parent.className == "Cat1")
- {
- if (objCurrent != null && objCurrent != parent)
- {
- objCurrent.style.backgroundColor = "";
- }
- parent.scrollIntoView(true);
- parent.style.backgroundColor = "#ffcc66";
- objCurrent = parent;
- }
- }
-
- function GoTop()
- {
- window.open("3vgotop:", "_self");
- }
-
- function GoBack()
- {
- window.open("3vgoback:", "_self");
- }
-
- function GoLogo()
- {
- window.open("3vgologo:", "_self");
- }
-
- function ShowElement(id, bShow)
- {
- var obj = document.all[id];
- if (obj)
- {
- if (bShow == true)
- {
- obj.style.display = "inline";
- var content = id + "content";
- obj = document.all[content];
- if (obj)
- {
- obj.style.display = "inline";
- }
- }
- else
- {
- obj.style.display = "none";
- }
- }
- }
-
- function msieversion()
- {
- var ua = window.navigator.userAgent;
- var msie = ua.indexOf("MSIE ");
-
- if (msie > 0) // If Internet Explorer, return version number
- return parseInt(ua.substring(msie+5, ua.indexOf (".", msie)));
- else // If another browser, return 0
- return 0;
- }
-
- function mousedown(obj)
- {
- if (obj)
- {
- obj.style.fontWeight = "bold";
- }
- }
-
- function mouseup(obj)
- {
- if (obj)
- {
- obj.style.fontWeight = "";
- }
- }