//поменяй названия переменных, особенно DN_popup //избався от lnum //required from lib.js MM_findObj(n, d), isDOM, isIE4, isNS4 var BasketEngine = '/cgi-bin/basket/client.pl'; var DN_initialised=false;; var DN_popups = new Array(); var DN_delay = 1500; var DN_speed = 1; var DN_step = 5; var DN_WinWidth; var DN_ScrollerWidth; var isNS5; DN_CheckBrowser(); function DN_CheckBrowser() { var app=navigator.appName; var appVer=parseFloat(navigator.appVersion); if(app.indexOf('Netscape')!=-1) if (appVer>=5) isNS5=1; } function DN_ConstructObject(l, t, w, h, level, text){ var obj="DN_popup"+DN_popups.length; DN_DrowPopup(obj,l, t, w, h, level, text); this.el=isDOM?document.getElementById(obj):isIE4?document.all[obj]:isNS4?eval('document.'+obj):0; this.css=isDOM?document.getElementById(obj).style:isIE4?document.all[obj].style:isNS4?eval('document.'+obj):0; this.scrollHeight=isNS4?this.css.document.height:this.el.offsetHeight this.scrollWidth=isNS4?this.css.document.width:this.el.offsetWidth this.clipHeight=isNS4?this.css.clip.height:this.el.offsetHeight this.clipWidth=isNS4?this.css.clip.width:this.el.offsetWidth this.css.clip="rect(0 0 0 0)"; this.disappear=DN_DisappearObjectt;this.appear=DN_DisappearObject; this.DN_MoveObject=DN_MoveObject; this.ArrayId=DN_popups.length; this.dx=0; this.dy=0; this.startdx=l; this.startdy=t; this.timer=null; this.inaction=false; DN_popups.push(this); return this } function DN_DrowPopup(name, l, t, w, h, level, text){ var str="
"; str=str+text+"
"; if (isDOM) { var newDiv = document.createElement('div'); document.getElementsByTagName('body').item(0).appendChild(newDiv); newDiv.innerHTML = str; ref = newDiv.style; ref.position = 'absolute'; ref.top=t; ref.visibility = 'hidden'; } if (isIE4) { document.body.insertAdjacentHTML('beforeEnd',str); } if (isNS4) { ref = new Layer(0); ref.document.write(str); ref.document.close(); } } function DN_MoveObject(x,y){ this.css.left=x this.css.top=y } function DN_DisappearObject(){ if(this.dx+DN_step < this.scrollWidth){ this.dx+=DN_step; this.css.left=DN_WinWidth - this.dx - this.startdx; this.css.top = DN_ScrollTop () + this.startdy; this.css.clip="rect(0 "+this.dx+" 100% 0)"; this.timer = setTimeout("DN_popups["+this.ArrayId+"].appear()",DN_speed) } else {this.timer = setTimeout("DN_popups["+this.ArrayId+"].disappear()",DN_delay)} } function DN_DisappearObjectt(){ if(this.dx> 0){ this.dx-=DN_step; this.css.left=DN_WinWidth - this.dx - this.startdx; this.timer = setTimeout("DN_popups["+this.ArrayId+"].disappear()",DN_speed) } else { this.inaction=false; this.css.visibility='hidden'; this.DN_MoveObject(0,0); } } function DN_ShowHide(number) { if(DN_initialised && number
Вариант отложен
" + "

Перейти в отложенные варианты\"Перейти\"
"+ "
"); } function DN_resizeWin() { DN_WinWidth = WinWidth () - DN_ScrollerWidth; return true; } function WinWidth () { return (window.innerWidth)?window.innerWidth:((document.all)?document.body.offsetWidth:null) } function DN_ScrollTop () { if (isNS5) return self.pageYOffset; else return document.body.scrollTop; } function DN_loadWin() { DN_ScrollerWidth = WinWidth() - (isNS4?document.mainContainer.document.width:isDOM?document.getElementById('mainContainer').offsetWidth:isIE4?document.all['mainContainer'].offsetWidth:0); DN_resizeWin(); DN_logon_popups(); DN_initialised = true; return true; } /////////////////////////////////////////////////////////////////////////// function DN_loadSource(url) { if (document.layers) { var lyr = document.layers["content"]; lyr.load(url,lyr.clip.width); } else if (document.getElementById) { document.getElementById('HiddenFrame').src = url; } else if (document.all) { parent.HiddenFrame.document.location = url; } } ///////////////////////////////////////////////////////////////////////////