var isIe = window.attachEvent ? true : false; function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 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 icons = document.getElementsByName(this.Thumbnail); var itmX = this.ListItem[this.Index]; if(itmX.OvrIcon !=null && itmX.OvrIcon !="") icons[this.Index].src = itmX.OvrIcon; try{ document.images[this.Name].filters[0].apply(); document.images[this.Name].src = itmX.ImgSrc; document.images[this.Name].filters[0].play(); }catch(e){ document.images[this.Name].src = itmX.ImgSrc; } } } /* ================================================ ·Ñ¸µ À̺¥Æ® LOW ================================================ */ function xwzRollingImageTransLow(imageName, thumbnailName, eventName, winName){ this.Index = 0; this.ListItem = new Array(0); this.Name = imageName; this.Thumbnail = thumbnailName; this.tmRotate = null; this.nInterval = 13590; this.eventName = eventName; this.winTarget = winName; if(window.xwzRollObject == null) window.xwzRollObject = new Array(0); window.xwzRollObject[this.Name] = this; //== ÃʱâÈ­ ÇÔ¼ö this.install = function(){ window.document.images[this.Name].onclick=this.goLink; if(this.ListItem.length == 0) return; this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval); var icons = document.getElementsByName(this.Thumbnail); for(var i = 0; i < icons.length; i++){ if(this.eventName == 'over') icons[i].onmouseover=new Function("window.xwzRollObject['"+this.Name+"'].alterImage(" + i + ")"); else icons[i].onclick=new Function("window.xwzRollObject['"+this.Name+"'].alterImage(" + i + ")"); } } //== ÇØ´ç ¾ÆÀÌÅÛ Ãß°¡ this.addItem = function(Link, ImgSrc, Icon1, Icon2 ){ var itmX = {Link : "", ImgSrc : "", DefIcon : "", OvrIcon : ""}; itmX.Link = Link; itmX.ImgSrc = ImgSrc; itmX.DefIcon = Icon1; itmX.OvrIcon = Icon2; this.ListItem[this.ListItem.length] = itmX; } //== ¼öµ¿ º¯°æ this.alterImage = function(index){ var icons = document.getElementsByName(this.Thumbnail); if(this.Index == index) return; if(this.ListItem[this.Index].DefIcon !="") icons[this.Index].src = this.ListItem[this.Index].DefIcon; this.Index = index; this.imgTrans(); clearTimeout(this.tmRotate); this.tmRotate = null; this.tmRotate = setTimeout("window.xwzRollObject['" + this.Name + "'].rotateTrans()" , this.nInterval); } //== ¸µÅ© Ŭ¸¯ this.goLink = function(){ var name = this.getAttribute('name'); var xwzRoll = window.xwzRollObject[name]; clearTimeout(xwzRoll.tmRotate); xwzRoll.tmRotate = null; if(xwzRoll.winTarget == '' || xwzRoll.winTarget == null){ window.location.href=xwzRoll.ListItem[xwzRoll.Index].Link; }else if(xwzRoll.winTarget.toLowerCase().indexOf("javascript") == 0){ alert( winTarget.replace(/javascript:/gi,'') ) }else{ window.open(xwzRoll.ListItem[xwzRoll.Index].Link, xwzRoll.winTarget); } } //== this.rotateTrans = function(){ var icons = document.getElementsByName(this.Thumbnail); var itmX = this.ListItem[this.Index]; if(itmX.DefIcon !="") icons[this.Index].src = itmX.DefIcon; this.Index +=1; if(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 icons = document.getElementsByName(this.Thumbnail); var itmX = this.ListItem[this.Index]; if(itmX.OvrIcon !=null && itmX.OvrIcon !="") icons[this.Index].src = itmX.OvrIcon; try{ document.images[this.Name].filters[0].apply(); document.images[this.Name].src = itmX.ImgSrc; document.images[this.Name].filters[0].play(); }catch(e){ document.images[this.Name].src = itmX.ImgSrc; } } } /* ================================================ ·Ñ¸µ À̺¥Æ® ================================================ */ function xwzRollingMarqTrans(Name, eventName){ this.Name = Name; this.Index = 0; this.ListItem = new Array(0); this.tmRotate = null; this.nInterval = 4500; this.eventName = eventName; if(window.xwzMarqObject == null) window.xwzMarqObject = new Array(0); window.xwzMarqObject[this.Name] = this; //== ÃʱâÈ­ ÇÔ¼ö this.install = function(){ if(this.ListItem.length == 0) return; this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()" , this.nInterval); for(var i = 0; i < this.ListItem.length; i++){ if(this.eventName == 'over') this.ListItem[i].Img.onmouseover=new Function("window.xwzMarqObject['"+this.Name+"'].alterTrans(" + i + ")"); else this.ListItem[i].Img.onclick=new Function("window.xwzMarqObject['"+this.Name+"'].alterTrans(" + i + ")"); } } //== ÇØ´ç ¾ÆÀÌÅÛ Ãß°¡ this.addItem = function(targetObj, targetImg, Icon1, Icon2 ){ var itmX = {Objects : null, Imgs : null, DefaultSrc : "",OverSrc : ""}; itmX.Object = targetObj; itmX.Img = targetImg; itmX.DefaultSrc = Icon1; itmX.OverSrc = Icon2; this.ListItem[this.ListItem.length] = itmX; } //== ¼öµ¿ º¯°æ this.alterTrans = function(index){ if(this.Index == index) return; var itmX = this.ListItem[this.Index]; if(itmX.DefaultSrc !="") itmX.Img.src = itmX.DefaultSrc; this.Index = index; this.objTrans(); clearTimeout(this.tmRotate); this.tmRotate = null; this.tmRotate = setTimeout("window.xwzMarqObject['" + this.Name + "'].rotateTrans()" , this.nInterval); } //== this.rotateTrans = function(){ var itmX = this.ListItem[this.Index]; if(itmX.DefaultSrc !="") itmX.Img.src = itmX.DefaultSrc; this.Index +=1; if(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 itmX = this.ListItem[this.Index]; if(itmX.Img !=null && itmX.OverSrc !="") itmX.Img.src = itmX.OverSrc; for(var i =0; i < this.ListItem.length; i++) this.ListItem[i].Object.style.display = 'none'; try{ itmX.Object.filters[0].apply(); itmX.Object.style.display=''; itmX.Object.filters[0].play(); }catch(e){ itmX.Object.style.display=''; } } } /* ================================================ ·Ñ¸µ À̺¥Æ®2 var xrml=new xwzRollingMarqLayerTrans('mouseover'); xrml.add(document.getElementById('IDS_MAIN_DIARY0'), document.images['IMGS_T_DIARY0'], 'http://image.babosarang.co.kr/v2/newmain2/diary/roll_05.gif', 'http://image.babosarang.co.kr/v2/newmain2/diary/diary_05.gif'); xrml.add(document.getElementById('IDS_MAIN_DIARY1'), document.images['IMGS_T_DIARY1'], 'http://image.babosarang.co.kr/v2/newmain2/diary/diary_06.gif', 'http://image.babosarang.co.kr/v2/newmain2/diary/roll_06.gif'); xrml.add(document.getElementById('IDS_MAIN_DIARY2'), document.images['IMGS_T_DIARY2'], 'http://image.babosarang.co.kr/v2/newmain2/diary/diary_07.gif', 'http://image.babosarang.co.kr/v2/newmain2/diary/roll_07.gif'); xrml.play(); ================================================ */ var xwzRollingMarqLayerTrans=function (eventName,nInterval){if(window.xwzRMLTS==null)window.xwzRMLTS=new Array(0);this.Index=xwzRMLTS.length;this.nNode=0;xwzRMLTS[this.Index] = this;this.Nodes=[];this.tmRotate=null;this.eventName = eventName||'click';this.nInterval=nInterval||4500;this.Observers=[];}; xwzRollingMarqLayerTrans.prototype={ Event:{add:function(element,name,fpnotify,useCapture){if(element.attachEvent)element.attachEvent('on'+name, fpnotify);else if(element.addEventListener)element.addEventListener(name,fpnotify,useCapture||false);},remove:function(element,name,fpnotify,useCapture){if(element.detachEvent) element.detachEvent('on'+name,fpnotify);else if(element.removeEventListener)element.removeEventListener(name,fpnotify,useCapture||false);}}, play:function(){if(this.Nodes.length==0) return;this.objTrans();this.tmRotate=setTimeout("xwzRMLTS["+this.Index+"].rotateToggle()",this.nInterval);for(var i=0;i=this.Nodes.length)this.nNode=0;this.objTrans();this.tmRotate=setTimeout("xwzRMLTS["+this.Index+"].rotateToggle()",this.nInterval);}, objTrans:function(){var oNode = this.Nodes[this.nNode];if(typeof oNode.Icon.src=='string'&&oNode.Src2!="")oNode.Icon.src=oNode.Src2;oNode.Node.style.display='';try{oNode.Node.filters[0].apply();oNode.Node.filters[0].play();}catch(e){};} }; function verticalWheel(id, height, nSec ){ if(window.xwzWheelMarq == null) window.xwzWheelMarq = new Array(0); xwzWheelMarq[id] = { install : function(id, height, nSec){ this.id = id; this.div = document.getElementById('ID_DIV_KEYWORD'); this.table = document.getElementById('ID_TABLE_KEYWORD'); if(this.div == null) return; //this.div.style.cssText = "height:"+height+";position:relative;cursor:pointer;"; this.div.style.cssText = "height:"+height+";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[id].table.style.visibility ='visible'; xwzWheelMarq[id].nPause=true;} this.div.parentNode.onmouseout= function(){xwzWheelMarq[id].table.style.visibility ='hidden';xwzWheelMarq[id].nPause=false;} this.index =0; this.height = height; this.items = new Array(0); this.tmID = null; this.nPause = false; this.nSec = nSec; var rows =this.table.tBodies[0].rows; for(var i = 0; i < rows.length; i++){ this.items[i] = document.createElement("DIV"); this.items[i].innerHTML=rows[i].innerHTML; this.items[i].style.padding="3"; this.items[i].style.width="100%"; this.items[i].style.height=this.height ; this.items[i].style.position="absolute"; this.items[i].style.top = this.height*i; this.div.appendChild(this.items[i]); rows[i].cells[0].style.cssText="padding-left:5px;border-bottom:#CACACA 1px dotted;"; rows[i].onmouseover=function(){this.style.backgroundColor="#FDF1F0";} rows[i].onmouseout=function(){this.style.backgroundColor="";} if(i >= rows.length -1){rows[i].cells[0].style.border="";} } }, doWheel : function(){ var itmN = this.items[this.index]; var nSleep= 50; var nIndex= this.index+1 >= this.items.length ? 0 : this.index+1; clearTimeout(this.tmID); this.tmID = null; if(this.nPause != true){ for(var i = 0; i < this.items.length; i++){ this.items[i].style.top = parseInt(this.items[i].style.top)-1; } if(parseInt(itmN.style.top) <= this.height*-1){ itmN.style.top = this.height*(this.items.length-1); this.index = this.index+1 >= this.items.length ? 0 : this.index+1; nSleep= this.nSec; } }else{ if(parseInt(itmN.style.top) < (this.height/2)*-1){ itmN.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 ); } nSleep = 10; } this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", nSleep); } } xwzWheelMarq[id].install(id, height, nSec); xwzWheelMarq[id].tmID = setTimeout("xwzWheelMarq['" +id + "'].doWheel()", nSec); // } function verticalWheel_event(id, Height, nSec,wdth_height){ if(window.xwzWheelMarq == null) window.xwzWheelMarq = new Array(0); xwzWheelMarq[id] = { install : function(id, Height, nSec){ this.id = id; this.div = document.getElementById('ID_DIV_' + id); this.table = document.getElementById('ID_TABLE_' + id); // alert(this.div.style.width) if(this.div == null) return; this.wdth_height = (wdth_height == null) ? "width:215px;height:187px;" : wdth_height; 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[id].nPause=true;} this.div.parentNode.onmouseout= function(){xwzWheelMarq[id].nPause=false;} this.index =0; this.height = Height; this.items = new Array(0); this.tmID = null; this.nPause = false; this.nSec = nSec; var rows =this.table.tBodies[0].rows; for(var i = 0; i < rows.length; i++){ this.items[i] = document.createElement("DIV"); this.items[i].innerHTML=rows[i].innerHTML; this.items[i].style.padding="3"; this.items[i].style.height=this.height; this.items[i].style.position="absolute"; this.items[i].style.top = this.height * i; this.div.appendChild(this.items[i]); // rows[i].cells[0].style.cssText="padding-left:5px;border-bottom:#CACACA 1px dotted;"; rows[i].onmouseover=function(){this.style.backgroundColor="#FDF1F0";} rows[i].onmouseout=function(){this.style.backgroundColor="";} // if(i >= rows.length -1){rows[i].cells[0].style.border="";} } }, doClick : function(n){ if(!n) { var nSleep = 10; this.nPause=false; this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", nSleep); return; } this.index = this.index+n; var nIndex = this.index+1 >= this.items.length ? 0 : this.index+1; if(this.index< 0 ) this.index = this.items.length-1; if(this.index > this.items.length-1) this.index=0; var itmN = this.items[this.index]; clearTimeout(this.tmID); this.tmID = null; if(parseInt(itmN.style.top) < (this.height/2)*-1){ itmN.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 itmN = this.items[this.index]; var nSleep= 20; var nIndex= this.index+1 >= this.items.length ? 0 : this.index+1; clearTimeout(this.tmID); this.tmID = null; if(this.nPause != true){ for(var i = 0; i < this.items.length; i++){ this.items[i].style.top = parseInt(this.items[i].style.top)-1; } if(parseInt(itmN.style.top) <= this.height*-1){ itmN.style.top = this.height*(this.items.length-1); this.index = this.index+1 >= this.items.length ? 0 : this.index+1; nSleep= this.nSec; } }else{ if(parseInt(itmN.style.top) < (this.height/2)*-1){ itmN.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 ); } nSleep = 10; } this.tmID = setTimeout("xwzWheelMarq['" + this.id + "'].doWheel()", nSleep); } } xwzWheelMarq[id].install(id, Height, nSec); xwzWheelMarq[id].tmID = setTimeout("xwzWheelMarq['" +id + "'].doWheel()", nSec); // } function horizontalWheel(id, width, nSec,wdth_height){ if(window.xwzWheelHoriz == null) window.xwzWheelHoriz = new Array(0); xwzWheelHoriz[id] = { install : function(id, width, nSec){ this.id = id; this.div = document.getElementById('DIV_ID_NEWGOODS'); this.table = document.getElementById('TBL_ID_NEWGOODS'); // alert(this.div.style.width) if(this.div == null) return; this.wdth_height = (wdth_height == null) ? "width:690px;height:150px;" : wdth_height; 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[id].nPause=true;} this.div.parentNode.onmouseout= function(){xwzWheelHoriz[id].nPause=false;} this.index =0; this.width = width; this.items = new Array(0); this.tmID = null; this.nPause = false; this.nSec = nSec; var cols =this.table.tBodies[0].rows[0].cells; for(var i = 0; i < cols.length; i++){ this.items[i] = document.createElement("DIV"); this.items[i].innerHTML=cols[i].innerHTML; this.items[i].style.padding="3"; this.items[i].style.width=cols[i].width ; this.items[i].style.position="absolute"; this.items[i].style.left = 1 + cols[i].width * i; this.div.appendChild(this.items[i]); // rows[i].cells[0].style.cssText="padding-left:5px;border-bottom:#CACACA 1px dotted;"; cols[i].onmouseover=function(){this.style.backgroundColor="#FDF1F0";} cols[i].onmouseout=function(){this.style.backgroundColor="";} // if(i >= rows.length -1){rows[i].cells[0].style.border="";} } }, doClick : function(n){ if(!n) { var nSleep = 10; this.nPause=false; this.tmID = setTimeout("xwzWheelHoriz['" + this.id + "'].doWheel()", nSleep); return; } this.index = this.index+n; var nIndex = this.index+1 >= this.items.length ? 0 : this.index+1; if(this.index< 0 ) this.index = this.items.length-1; if(this.index > this.items.length-1) this.index=0; var itmN = this.items[this.index]; clearTimeout(this.tmID); this.tmID = null; if(parseInt(itmN.style.left) < (this.width/2)*-1){ itmN.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 itmN = this.items[this.index]; var nSleep= 20; var nIndex= this.index+1 >= this.items.length ? 0 : this.index+1; clearTimeout(this.tmID); this.tmID = null; if(this.nPause != true){ for(var i = 0; i < this.items.length; i++){ this.items[i].style.left = parseInt(this.items[i].style.left)-1; } if(parseInt(itmN.style.left) <= this.width*-1){ itmN.style.left = this.width*(this.items.length-1); this.index = this.index+1 >= this.items.length ? 0 : this.index+1; nSleep= this.nSec; } }else{ if(parseInt(itmN.style.left) < (this.width/2)*-1){ itmN.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 ); } nSleep = 10; } this.tmID = setTimeout("xwzWheelHoriz['" + this.id + "'].doWheel()", nSleep); } } xwzWheelHoriz[id].install(id, width, nSec); xwzWheelHoriz[id].tmID = setTimeout("xwzWheelHoriz['" +id + "'].doWheel()", nSec); // } function showTooltop(obj, isDisp){ var elements = obj.getElementsByTagName("DIV"); var objTooltip=null; for(var i = 0; i < elements.length; i++){ if(elements[i].className !='cssTooltip') continue; objTooltip = elements[i];break; } if(objTooltip == null) return; var Tables = document.body.getElementsByTagName("TABLE"); if(isDisp){ var cX = event.clientX +15, cY = event.clientY +10; objTooltip.style.display=''; objTooltip.style.zIndex = 10000; objTooltip.style.left=cX; }else{ objTooltip.style.display='none'; objTooltip.style.zIndex = -1; } } function getOffsetPos(obj){ // º¸¿©Áú À§Ä¡ ÀÚ¸® Àâ±â var left = obj.offsetLeft; var top = obj.offsetTop; for (var pElement = obj.offsetParent; 'body' != pElement.tagName.toLowerCase(); pElement = pElement.offsetParent){ if(pElement.style.position.toLowerCase() == 'absolute' || pElement.style.position.toLowerCase() == 'relative') continue; if(pElement.tagName.toLowerCase() != 'table'){left += pElement.clientLeft;top += pElement.clientTop;} if(parseInt(pElement.style.paddingLeft) > 0 ) left += parseInt(pElement.style.paddingLeft); if(parseInt(pElement.style.paddingTop) > 0 ) top += parseInt(pElement.style.paddingTop); if(parseInt(pElement.style.marginLeft ) > 0 ) left += parseInt(pElement.style.marginLeft ); if(parseInt(pElement.style.marginTop ) > 0 ) top += parseInt(pElement.style.marginTop ); left += pElement.offsetLeft; top += pElement.offsetTop; } this.posX = left; this.posY = top; } /* ================================================ ·Ñ¸µ ÀÚ¹Ù½ºÅ©¸³Æ® 2007-01-02 -»ó´Ü Today HOT ºÎºÐ ================================================ */ function na_restore_img_src(name, nsdoc) { var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name); if (name == '') return; if (img && img.altsrc) { img.src = img.altsrc; img.altsrc = null; } } function na_preload_img() { var img_list = na_preload_img.arguments; if (document.preloadlist == null) document.preloadlist = new Array(); var top = document.preloadlist.length; for (var i=0; i < img_list.length-1; i++) { document.preloadlist[top+i] = new Image; document.preloadlist[top+i].src = img_list[i+1]; } } function na_change_img_src(name, nsdoc, rpath, preload) { var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name); if (name == '') return; if (img) { img.altsrc = img.src; img.src = rpath; } } function ToggleRoll(nItem , src, target,nTime) { this.index = 0; this.tempIndex= 0; this.items = new Array(); this.nTime = nTime; this.nItem = document.getElementById(nItem); this.pause = false; this.init = function() { this.items[this.items.length] = document.getElementById(src); this.items[this.items.length] = document.getElementById(target); } this.setRolling =function(index) { this.index =index; this.index = ++this.index % 2; this.pause=true; this.nItem.filters[0].Apply(); this.items[index].style.visibility="visible"; this.items[this.index].style.visibility="hidden"; this.nItem.filters[0].Play(duration=2); if(this.tempIndex != index) { this.tempIndex = index; document.getElementById('IMGS_BEST_PRODUCT'+index).src = document.getElementById('IMGS_BEST_PRODUCT'+index).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_'); } // window.title = 'index:'+ index + ';index2:'+this.index; } this.rolling=function() { if(! this.pause) { var index = this.index; this.index = ++this.index % 2; this.nItem.filters[0].Apply(); this.items[index].style.visibility="visible"; this.items[this.index].style.visibility="hidden"; this.nItem.filters[0].Play(duration=2); document.getElementById('IMGS_BEST_PRODUCT'+index).src = document.getElementById('IMGS_BEST_PRODUCT'+index).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_'); // window.title = 'index:'+ index + ';index2:'+this.index; } setTimeout("tgRoll.rolling()",this.nTime); } }