var isIe = !!window.attachEvent; function MM_swapImgRestore() { var t, e, i = document.MM_sr; for (t = 0; i && t < i.length && (e = i[t]) && e.oSrc; t++) e.src = e.oSrc } function MM_preloadImages() { var t = document; if (t.images) { t.MM_p || (t.MM_p = new Array); var e, i = t.MM_p.length, s = MM_preloadImages.arguments; for (e = 0; e < s.length; e++) 0 != s[e].indexOf("#") && (t.MM_p[i] = new Image, t.MM_p[i++].src = s[e]) } } function MM_findObj(t, e) { var i, s, n; for (e || (e = document), (i = t.indexOf("?")) > 0 && parent.frames.length && (e = parent.frames[t.substring(i + 1)].document, t = t.substring(0, i)), !(n = e[t]) && e.all && (n = e.all[t]), s = 0; !n && s < e.forms.length; s++) n = e.forms[s][t]; for (s = 0; !n && e.layers && s < e.layers.length; s++) n = MM_findObj(t, e.layers[s].document); return !n && e.getElementById && (n = e.getElementById(t)), n } function MM_swapImage() { var t, e, i = 0, s = MM_swapImage.arguments; for (document.MM_sr = new Array, t = 0; t < s.length - 2; t += 3) null != (e = MM_findObj(s[t])) && (document.MM_sr[i++] = e, e.oSrc || (e.oSrc = e.src), e.src = s[t + 2]) } function setCategoryEnsureVisible(t, e, i) { "In" == e ? (1 != i && (document.images.IMG_TOP_CATEGORY_MENU.src = "http://image.babosarang.co.kr/v2/topmenu/navvy/navi_r.gif"), document.getElementById("IDS_TOP_CATEGORY_MENU").style.display = "block") : (1 != i && (document.images.IMG_TOP_CATEGORY_MENU.src = "http://image.babosarang.co.kr/v2/topmenu/navvy/navi.gif"), document.getElementById("IDS_TOP_CATEGORY_MENU").style.display = "none") } function swapLayer(t, e) { var i = document.getElementById(t), s = document.getElementById(e); null != i && null != s && ("none" == i.style.display ? (i.style.display = "block", s.style.display = "none") : (i.style.display = "none", s.style.display = "block")) } function swapImageLayerTrans(t, e, i) { var s = document.getElementById(i); if (null != window.pickImg || null != window.pickLayer) { if (window.pickImg == t || s == window.pickLayer) return; null != pickImg && null != pickImg.getAttribute("xwzAlreadySrc") && (pickImg.src = pickImg.getAttribute("xwzAlreadySrc")), null != pickLayer && (pickLayer.style.display = "none") } null == t.getAttribute("xwzAlreadySrc") && t.setAttribute("xwzAlreadySrc", t.src), t.src = e, s.style.display = "", pickLayer = s, pickImg = t } function xwzImgOverTrans(t, e) { "string" == typeof e ? (null == t.getAttribute("xwzAlreadySrc") && t.setAttribute("xwzAlreadySrc", t.src), t.src = e) : null != t.getAttribute("xwzAlreadySrc") && (t.src = t.getAttribute("xwzAlreadySrc")) } function xwzImgRollOver(t, e, i) { 1 == e ? (null == t.getAttribute("xwzAlreadySrc") && t.setAttribute("xwzAlreadySrc", t.src), t.src = i) : null != t.getAttribute("xwzAlreadySrc") && (t.src = t.getAttribute("xwzAlreadySrc")) } function subMenuVisable(t, e) { t.getElementsByTagName("TABLE")[0].style.display = !0 === e ? "" : "none" } function xwzRollingImageTrans(t, e, i, s) { this.Index = 0, this.ListItem = new Array(0), this.Name = t, this.Thumbnail = e, this.tmRotate = null, this.nInterval = 4500, this.eventName = i, this.winTarget = s, null == window.xwzRollObject && (window.xwzRollObject = new Array(0)), window.xwzRollObject[this.Name] = this, this.install = function() { if (window.document.images[this.Name].onclick = this.goLink, 0 != this.ListItem.length) { this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval); for (var t = document.getElementsByName(this.Thumbnail), e = 0; e < t.length; e++) "over" == this.eventName ? t[e].onmouseover = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") : t[e].onclick = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") } }, this.addItem = function(t, e, i, s) { var n = { Link: "", ImgSrc: "", DefIcon: "", OvrIcon: "" }; n.Link = t, n.ImgSrc = e, n.DefIcon = i, n.OvrIcon = s, this.ListItem[this.ListItem.length] = n }, this.alterImage = function(t) { var e = document.getElementsByName(this.Thumbnail); this.Index != t && ("" != this.ListItem[this.Index].DefIcon && (e[this.Index].src = this.ListItem[this.Index].DefIcon), this.Index = t, this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval)) }, this.goLink = function() { var t = this.getAttribute("name"), e = window.xwzRollObject[t]; clearTimeout(e.tmRotate), e.tmRotate = null, "" == e.winTarget || null == e.winTarget ? window.location.href = e.ListItem[e.Index].Link : 0 == e.winTarget.toLowerCase().indexOf("javascript") ? alert(winTarget.replace(/javascript:/gi, "")) : window.open(e.ListItem[e.Index].Link, e.winTarget) }, this.rotateTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; "" != e.DefIcon && (t[this.Index].src = e.DefIcon), this.Index += 1, this.Index >= this.ListItem.length && (this.Index = 0), this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval) }, this.imgTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; null != e.OvrIcon && "" != e.OvrIcon && (t[this.Index].src = e.OvrIcon); try { document.images[this.Name].filters[0].apply(), document.images[this.Name].src = e.ImgSrc, document.images[this.Name].filters[0].play() } catch (t) { document.images[this.Name].src = e.ImgSrc } } } function xwzRollingImageTransLow(t, e, i, s) { this.Index = 0, this.ListItem = new Array(0), this.Name = t, this.Thumbnail = e, this.tmRotate = null, this.nInterval = 7500, this.eventName = i, this.winTarget = s, null == window.xwzRollObject && (window.xwzRollObject = new Array(0)), window.xwzRollObject[this.Name] = this, this.install = function() { if (window.document.images[this.Name].onclick = this.goLink, 0 != this.ListItem.length) { this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval); for (var t = document.getElementsByName(this.Thumbnail), e = 0; e < t.length; e++) "over" == this.eventName ? t[e].onmouseover = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") : t[e].onclick = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") } }, this.addItem = function(t, e, i, s) { var n = { Link: "", ImgSrc: "", DefIcon: "", OvrIcon: "" }; n.Link = t, n.ImgSrc = e, n.DefIcon = i, n.OvrIcon = s, this.ListItem[this.ListItem.length] = n }, this.alterImage = function(t) { var e = document.getElementsByName(this.Thumbnail); this.Index != t && ("" != this.ListItem[this.Index].DefIcon && (e[this.Index].src = this.ListItem[this.Index].DefIcon), this.Index = t, this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval)) }, this.goLink = function() { var t = this.getAttribute("name"), e = window.xwzRollObject[t]; clearTimeout(e.tmRotate), e.tmRotate = null, "" == e.winTarget || null == e.winTarget ? window.location.href = e.ListItem[e.Index].Link : 0 == e.winTarget.toLowerCase().indexOf("javascript") ? alert(winTarget.replace(/javascript:/gi, "")) : window.open(e.ListItem[e.Index].Link, e.winTarget) }, this.rotateTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; "" != e.DefIcon && (t[this.Index].src = e.DefIcon), this.Index += 1, this.Index >= this.ListItem.length && (this.Index = 0), this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval) }, this.imgTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; null != e.OvrIcon && "" != e.OvrIcon && (t[this.Index].src = e.OvrIcon); try { document.images[this.Name].filters[0].apply(), document.images[this.Name].src = e.ImgSrc, document.images[this.Name].filters[0].play() } catch (t) { document.images[this.Name].src = e.ImgSrc } } } function xwzRollingImageTransMap(t, e, i, s, n) { this.Index = 0, this.ListItem = new Array(0), this.Name = t, this.Thumbnail = e, this.tmRotate = null, this.nInterval = 5500, this.eventName = i, this.winTarget = s, null == window.xwzRollObject && (window.xwzRollObject = new Array(0)), window.xwzRollObject[this.Name] = this, this.install = function() { if (0 != this.ListItem.length) { this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval); for (var t = document.getElementsByName(this.Thumbnail), e = 0; e < t.length; e++) "over" == this.eventName ? t[e].onmouseover = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") : t[e].onclick = new Function("window.xwzRollObject['" + this.Name + "'].alterImage(" + e + ")") } }, this.addItem = function(t, e, i, s) { var n = { Link: "", ImgSrc: "", DefIcon: "", OvrIcon: "" }; n.Link = t, n.ImgSrc = e, n.DefIcon = i, n.OvrIcon = s, this.ListItem[this.ListItem.length] = n }, this.alterImage = function(t) { var e = document.getElementsByName(this.Thumbnail); this.Index != t && ("" != this.ListItem[this.Index].DefIcon && (e[this.Index].src = this.ListItem[this.Index].DefIcon), this.Index = t, this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval)) }, this.goLink = function() { var t = this.getAttribute("name"), e = window.xwzRollObject[t]; clearTimeout(e.tmRotate), e.tmRotate = null, "" == e.winTarget || null == e.winTarget ? window.location.href = e.ListItem[e.Index].Link : 0 == e.winTarget.toLowerCase().indexOf("javascript") ? alert(winTarget.replace(/javascript:/gi, "")) : window.open(e.ListItem[e.Index].Link, e.winTarget) }, this.rotateTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; "" != e.DefIcon && (t[this.Index].src = e.DefIcon), this.Index += 1, this.Index >= this.ListItem.length && (this.Index = 0), this.imgTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()", this.nInterval) }, this.imgTrans = function() { var t = document.getElementsByName(this.Thumbnail), e = this.ListItem[this.Index]; null != e.OvrIcon && "" != e.OvrIcon && (t[this.Index].src = e.OvrIcon); try { document.images[this.Name].filters[0].apply(), document.images[this.Name].src = e.ImgSrc, document.images[this.Name].useMap = "#" + e.Link, document.images[this.Name].filters[0].play() } catch (t) { document.images[this.Name].src = e.ImgSrc, document.images[this.Name].useMap = "#" + e.Link } } } function xwzRollingMarqTrans(t, e) { this.Name = t, this.Index = 0, this.ListItem = new Array(0), this.tmRotate = null, this.nInterval = 4500, this.eventName = e, null == window.xwzMarqObject && (window.xwzMarqObject = new Array(0)), window.xwzMarqObject[this.Name] = this, this.install = function() { if (0 != this.ListItem.length) { this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()", this.nInterval); for (var t = 0; t < this.ListItem.length; t++) "over" == this.eventName ? this.ListItem[t].Img.onmouseover = new Function("window.xwzMarqObject['" + this.Name + "'].alterTrans(" + t + ")") : this.ListItem[t].Img.onclick = new Function("window.xwzMarqObject['" + this.Name + "'].alterTrans(" + t + ")") } }, this.addItem = function(t, e, i, s) { var n = { Objects: null, Imgs: null, DefaultSrc: "", OverSrc: "" }; n.Object = t, n.Img = e, n.DefaultSrc = i, n.OverSrc = s, this.ListItem[this.ListItem.length] = n }, this.alterTrans = function(t) { if (this.Index != t) { var e = this.ListItem[this.Index]; "" != e.DefaultSrc && (e.Img.src = e.DefaultSrc), this.Index = t, this.objTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()", this.nInterval) } }, this.rotateTrans = function() { var t = this.ListItem[this.Index]; "" != t.DefaultSrc && (t.Img.src = t.DefaultSrc), this.Index += 1, this.Index >= this.ListItem.length && (this.Index = 0), this.objTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()", this.nInterval) }, this.objTrans = function() { var t = this.ListItem[this.Index]; null != t.Img && "" != t.OverSrc && (t.Img.src = t.OverSrc); for (var e = 0; e < this.ListItem.length; e++) this.ListItem[e].Object.style.display = "none"; try { t.Object.filters[0].apply(), t.Object.style.display = "", t.Object.filters[0].play() } catch (e) { t.Object.style.display = "" } } } var xwzRollingMarqLayerTrans = function(t, e) { null == window.xwzRMLTS && (window.xwzRMLTS = new Array(0)), this.Index = xwzRMLTS.length, this.nNode = 0, xwzRMLTS[this.Index] = this, this.Nodes = [], this.tmRotate = null, this.eventName = t || "click", this.nInterval = e || 4500, this.Observers = [] }; function verticalWheel(t, e, i) { null == window.xwzWheelMarq && (window.xwzWheelMarq = new Array(0)), xwzWheelMarq[t] = { install: function(t, e, i) { if (this.id = t, this.div = document.getElementById("ID_DIV_KEYWORD"), this.table = document.getElementById("ID_TABLE_KEYWORD"), null != this.div) { this.div.style.cssText = "height:" + e + ";overflow:hidden;position:relative;cursor:pointer;clip:rect(0 auto " + this.height + " 0);left:0;top:0", this.div.parentNode.style.position = "relative", this.div.parentNode.onmouseover = function() { xwzWheelMarq[t].table.style.visibility = "visible", xwzWheelMarq[t].nPause = !0 }, this.div.parentNode.onmouseout = function() { xwzWheelMarq[t].table.style.visibility = "hidden", xwzWheelMarq[t].nPause = !1 }, this.index = 0, this.height = e, this.items = new Array(0), this.tmID = null, this.nPause = !1, this.nSec = i; for (var s = this.table.tBodies[0].rows, n = 0; n < s.length; n++) this.items[n] = document.createElement("DIV"), this.items[n].innerHTML = s[n].innerHTML, this.items[n].style.padding = "3", this.items[n].style.width = "100%", this.items[n].style.height = this.height, this.items[n].style.position = "absolute", this.items[n].style.top = this.height * n, this.div.appendChild(this.items[n]), s[n].cells[0].style.cssText = "padding-left:5px;border-bottom:#CACACA 1px dotted;", s[n].onmouseover = function() { this.style.backgroundColor = "#FDF1F0" }, s[n].onmouseout = function() { this.style.backgroundColor = "" }, n >= s.length - 1 && (s[n].cells[0].style.border = "") } }, doWheel: function() { var t = this.items[this.index], e = 50; this.index + 1 >= this.items.length || this.index; if (clearTimeout(this.tmID), this.tmID = null, 1 != this.nPause) { for (var i = 0; i < this.items.length; i++) this.items[i].style.top = parseInt(this.items[i].style.top) - 1; parseInt(t.style.top) <= -1 * this.height && (t.style.top = this.height * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1, e = this.nSec) } else { parseInt(t.style.top) < this.height / 2 * -1 && (t.style.top = this.height * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1); for (i = 0; i < this.items.length; i++) this.items[i].style.top = this.height * ((this.items.length - this.index + i) % this.items.length); e = 10 } this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", e) } }, xwzWheelMarq[t].install(t, e, i), xwzWheelMarq[t].tmID = setTimeout("xwzWheelMarq['" + t + "'].doWheel()", i) } function verticalWheel_event(t, e, i, s) { null == window.xwzWheelMarq && (window.xwzWheelMarq = new Array(0)), xwzWheelMarq[t] = { install: function(t, e, i) { if (this.id = t, this.div = document.getElementById("ID_DIV_" + t), this.table = document.getElementById("ID_TABLE_" + t), null != this.div) { this.wdth_height = null == s ? "width:215px;height:187px;" : s, this.div.style.cssText = "position:relative;cursor:pointer;" + this.wdth_height + "overflow:hidden;clip:rect(0 auto " + this.height + " 0);left:0;top:0;", this.div.parentNode.style.position = "relative", this.div.parentNode.onmouseover = function() { xwzWheelMarq[t].nPause = !0 }, this.div.parentNode.onmouseout = function() { xwzWheelMarq[t].nPause = !1 }, this.index = 0, this.height = e, this.items = new Array(0), this.tmID = null, this.nPause = !1, this.nSec = i; for (var n = this.table.tBodies[0].rows, h = 0; h < n.length; h++) this.items[h] = document.createElement("DIV"), this.items[h].innerHTML = n[h].innerHTML, this.items[h].style.padding = "3", this.items[h].style.height = this.height, this.items[h].style.position = "absolute", this.items[h].style.top = this.height * h, this.div.appendChild(this.items[h]), n[h].onmouseover = function() { this.style.backgroundColor = "#FDF1F0" }, n[h].onmouseout = function() { this.style.backgroundColor = "" } } }, doClick: function(t) { if (!t) { return this.nPause = !1, void(this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", 10)) } this.index = this.index + t; this.index + 1 >= this.items.length || this.index; this.index < 0 && (this.index = this.items.length - 1), this.index > this.items.length - 1 && (this.index = 0); var e = this.items[this.index]; clearTimeout(this.tmID), this.tmID = null, parseInt(e.style.top) < this.height / 2 * -1 && (e.style.top = this.height * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1); for (var i = 0; i < this.items.length; i++) this.items[i].style.top = this.height * ((this.items.length - this.index + i) % this.items.length) }, doWheel: function() { var t = this.items[this.index], e = 20; this.index + 1 >= this.items.length || this.index; if (clearTimeout(this.tmID), this.tmID = null, 1 != this.nPause) { for (var i = 0; i < this.items.length; i++) this.items[i].style.top = parseInt(this.items[i].style.top) - 1; parseInt(t.style.top) <= -1 * this.height && (t.style.top = this.height * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1, e = this.nSec) } else { parseInt(t.style.top) < this.height / 2 * -1 && (t.style.top = this.height * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1); for (i = 0; i < this.items.length; i++) this.items[i].style.top = this.height * ((this.items.length - this.index + i) % this.items.length); e = 10 } this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", e) } }, xwzWheelMarq[t].install(t, e, i), xwzWheelMarq[t].tmID = setTimeout("xwzWheelMarq['" + t + "'].doWheel()", i) } function horizontalWheel(t, e, i, s) { null == window.xwzWheelHoriz && (window.xwzWheelHoriz = new Array(0)), xwzWheelHoriz[t] = { install: function(t, e, i) { if (this.id = t, this.div = document.getElementById("DIV_ID_NEWGOODS"), this.table = document.getElementById("TBL_ID_NEWGOODS"), null != this.div) { this.wdth_height = null == s ? "width:690px;height:150px;" : s, this.div.style.cssText = "position:relative;cursor:pointer;" + this.wdth_height + "overflow:hidden;clip:rect(0 auto " + this.width + " 0);left:2;top:0;", this.div.parentNode.style.position = "relative", this.div.parentNode.onmouseover = function() { xwzWheelHoriz[t].nPause = !0 }, this.div.parentNode.onmouseout = function() { xwzWheelHoriz[t].nPause = !1 }, this.index = 0, this.width = e, this.items = new Array(0), this.tmID = null, this.nPause = !1, this.nSec = i; for (var n = this.table.tBodies[0].rows[0].cells, h = 0; h < n.length; h++) this.items[h] = document.createElement("DIV"), this.items[h].innerHTML = n[h].innerHTML, this.items[h].style.padding = "3", this.items[h].style.width = n[h].width, this.items[h].style.position = "absolute", this.items[h].style.left = 1 + n[h].width * h, this.div.appendChild(this.items[h]), n[h].onmouseover = function() { this.style.backgroundColor = "#FDF1F0" }, n[h].onmouseout = function() { this.style.backgroundColor = "" } } }, doClick: function(t) { if (!t) { return this.nPause = !1, void(this.tmID = setTimeout("xwzWheelHoriz['" + this.id + "'].doWheel()", 10)) } this.index = this.index + t; this.index + 1 >= this.items.length || this.index; this.index < 0 && (this.index = this.items.length - 1), this.index > this.items.length - 1 && (this.index = 0); var e = this.items[this.index]; clearTimeout(this.tmID), this.tmID = null, parseInt(e.style.left) < this.width / 2 * -1 && (e.style.left = this.width * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1); for (var i = 0; i < this.items.length; i++) this.items[i].style.left = this.width * ((this.items.length - this.index + i) % this.items.length) }, doWheel: function() { var t = this.items[this.index], e = 20; this.index + 1 >= this.items.length || this.index; if (clearTimeout(this.tmID), this.tmID = null, 1 != this.nPause) { for (var i = 0; i < this.items.length; i++) this.items[i].style.left = parseInt(this.items[i].style.left) - 1; parseInt(t.style.left) <= -1 * this.width && (t.style.left = this.width * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1, e = this.nSec) } else { parseInt(t.style.left) < this.width / 2 * -1 && (t.style.left = this.width * (this.items.length - 1), this.index = this.index + 1 >= this.items.length ? 0 : this.index + 1); for (i = 0; i < this.items.length; i++) this.items[i].style.left = this.width * ((this.items.length - this.index + i) % this.items.length); e = 10 } this.tmID = setTimeout("xwzWheelHoriz['" + this.id + "'].doWheel()", e) } }, xwzWheelHoriz[t].install(t, e, i), xwzWheelHoriz[t].tmID = setTimeout("xwzWheelHoriz['" + t + "'].doWheel()", i) } function showTooltop(t, e) { for (var i = t.getElementsByTagName("DIV"), s = null, n = 0; n < i.length; n++) if ("cssTooltip" == i[n].className) { s = i[n]; break } if (null != s) { document.body.getElementsByTagName("TABLE"); if (e) { var h = event.clientX + 15; event.clientY; s.style.display = "", s.style.zIndex = 1e4, s.style.left = h } else s.style.display = "none", s.style.zIndex = -1 } } function getOffsetPos(t) { for (var e = t.offsetLeft, i = t.offsetTop, s = t.offsetParent; "body" != s.tagName.toLowerCase(); s = s.offsetParent) "absolute" != s.style.position.toLowerCase() && "relative" != s.style.position.toLowerCase() && ("table" != s.tagName.toLowerCase() && (e += s.clientLeft, i += s.clientTop), parseInt(s.style.paddingLeft) > 0 && (e += parseInt(s.style.paddingLeft)), parseInt(s.style.paddingTop) > 0 && (i += parseInt(s.style.paddingTop)), parseInt(s.style.marginLeft) > 0 && (e += parseInt(s.style.marginLeft)), parseInt(s.style.marginTop) > 0 && (i += parseInt(s.style.marginTop)), e += s.offsetLeft, i += s.offsetTop); this.posX = e, this.posY = i } function na_restore_img_src(name, nsdoc) { var img = eval(-1 != navigator.appName.indexOf("Netscape", 0) ? nsdoc + "." + name : "document.all." + name); "" != name && img && img.altsrc && (img.src = img.altsrc, img.altsrc = null) } function na_preload_img() { var t = na_preload_img.arguments; null == document.preloadlist && (document.preloadlist = new Array); for (var e = document.preloadlist.length, i = 0; i < t.length - 1; i++) document.preloadlist[e + i] = new Image, document.preloadlist[e + i].src = t[i + 1] } function na_change_img_src(name, nsdoc, rpath, preload) { var img = eval(-1 != navigator.appName.indexOf("Netscape", 0) ? nsdoc + "." + name : "document.all." + name); "" != name && img && (img.altsrc = img.src, img.src = rpath) } function ToggleRoll(t, e, i, s) { this.index = 0, this.tempIndex = 0, this.items = new Array, this.nTime = s, this.nItem = document.getElementById(t), this.pause = !1, this.init = function() { this.items[this.items.length] = document.getElementById(e), this.items[this.items.length] = document.getElementById(i) }, this.setRolling = function(t) { this.index = t, this.index = ++this.index % 2, this.pause = !0, this.nItem.filters[0].Apply(), this.items[t].style.visibility = "visible", this.items[this.index].style.visibility = "hidden", this.nItem.filters[0].Play(duration = 2), this.tempIndex != t && (this.tempIndex = t, document.getElementById("IMGS_BEST_PRODUCT" + t).src = document.getElementById("IMGS_BEST_PRODUCT" + t).src.replace("best_", "best_r_"), document.getElementById("IMGS_BEST_PRODUCT" + this.index).src = document.getElementById("IMGS_BEST_PRODUCT" + this.index).src.replace("best_r_", "best_")) }, this.rolling = function() { if (!this.pause) { var t = this.index; this.index = ++this.index % 2, this.nItem.filters[0].Apply(), this.items[t].style.visibility = "visible", this.items[this.index].style.visibility = "hidden", this.nItem.filters[0].Play(duration = 2), document.getElementById("IMGS_BEST_PRODUCT" + t).src = document.getElementById("IMGS_BEST_PRODUCT" + t).src.replace("best_", "best_r_"), document.getElementById("IMGS_BEST_PRODUCT" + this.index).src = document.getElementById("IMGS_BEST_PRODUCT" + this.index).src.replace("best_r_", "best_") } setTimeout("tgRoll.rolling()", this.nTime) } } xwzRollingMarqLayerTrans.prototype = { Event: { add: function(t, e, i, s) { t.attachEvent ? t.attachEvent("on" + e, i) : t.addEventListener && t.addEventListener(e, i, s || !1) }, remove: function(t, e, i, s) { t.detachEvent ? t.detachEvent("on" + e, i) : t.removeEventListener && t.removeEventListener(e, i, s || !1) } }, play: function() { if (0 != this.Nodes.length) { this.objTrans(), this.tmRotate = setTimeout("xwzRMLTS[" + this.Index + "].rotateToggle()", this.nInterval); for (var t = 0; t < this.Nodes.length; t++) this.Observers[t] = new Function("xwzRMLTS[" + this.Index + "].setToggle(" + t + ")"), this.Event.add(this.Nodes[t].Icon, this.eventName, this.Observers[t]) } }, add: function(t, e, i, s) { return this.Nodes[this.Nodes.length] = { Node: t, Icon: e, Src1: i, Src2: s } }, setToggle: function(t) { if (this.nNode != t) { var e = null; "string" == typeof(e = this.Nodes[this.nNode]).Icon.src && "" != e.Src1 && (e.Icon.src = e.Src1), e.Node.style.display = "none", this.nNode = t, this.objTrans(), clearTimeout(this.tmRotate), this.tmRotate = null, this.tmRotate = setTimeout("xwzRMLTS[" + this.Index + "].rotateToggle()", this.nInterval) } }, rotateToggle: function() { if (clearTimeout(this.tmRotate), this.tmRotate = null, 0 != this.Nodes.length) { var t = this.Nodes[this.nNode]; t.Node.style.display = "none", "string" == typeof t.Icon.src && "" != t.Src1 && (t.Icon.src = t.Src1), this.nNode += 1, this.nNode >= this.Nodes.length && (this.nNode = 0), this.objTrans(), this.tmRotate = setTimeout("xwzRMLTS[" + this.Index + "].rotateToggle()", this.nInterval) } }, objTrans: function() { var t = this.Nodes[this.nNode]; "string" == typeof t.Icon.src && "" != t.Src2 && (t.Icon.src = t.Src2), t.Node.style.display = ""; try { t.Node.filters[0].apply(), t.Node.filters[0].play() } catch (t) {} } };