function lp_get_data(i,name){ for( ii=0;iiхочу найти "+(lp_get_data(idgirl,'DEF2')||lp_get_data(idgirl,'SEARCH')||lp_get_data(idgirl,'DEF1')), lp_get_data(idgirl,'NAME') + ', ' + lp_get_data(idgirl,'AGE') + ' ' + 'Фото: 1' + lp_get_data(idgirl,'FOTOCOUNT') || lp_get_data(idgirl,'FOTOINTIMCOUNT'), lp_get_data(idgirl,'LINK')] ], style: { msg_popup: "font:normal 11px Tahoma;color:#333;width: 200px; background: #fff url(http://195.68.160.173/3/img/lpnew/bg_bookmarks.gif) no-repeat right top;display:none;z-index:1000;", header: "font-weight:bold;background: url(http://195.68.160.173/3/img/lpnew/bg_bookmarks.gif) no-repeat left top; padding:7px 10px 7px 15px; color:#0879b1; margin-right: 5px;text-decoration:none;", close: "float: right; margin-top: 4px; margin-right: -5px;cursor:pointer;border: 0px none;", box: "border: 1px solid #d0d0d0; padding: 6px;color:#888888;", photo: "width: 66px; height: 90px; float: left; margin-right: 6px;" }, calcPosition: function(){ if(this.isIE){ return({ left: document.documentElement.clientWidth + document.documentElement.scrollLeft - this.offset.left, top: document.documentElement.clientHeight + document.documentElement.scrollTop }); }else{ return({ left: window.innerWidth - this.el.offsetWidth - 20, top: window.innerHeight }); } }, setWasShowed: function() { var date = new Date(), now = parseInt(date.getTime()/1000); date.setTime((now+this.interval*60)*1000); document.cookie = "lp_banner="+now+"; expires="+date.toUTCString()+"; path=/"; }, getWasShowed: function() { var cookie=null, cookies = document.cookie.split("; "), length = cookies.length; for (var i = 0; i < length; i++){ cookie = cookies[i].split("="); if (cookie[0]=="lp_banner") return true; } return false; }, init: function(){ if(this.getWasShowed()){ return true; } else{ var date = new Date(); this.setWasShowed(); } var template = '
%title%
%text%
', msg = this.messages[Math.floor(Math.random()*this.messages.length)]; document.write(template.replace("%src%", msg[0]).replace("%text%", msg[1]).replace("%title%", msg[2]).replace("%link%", msg[3])); this.el = document.getElementById("lp_banner_"+this.rid); this.el.style.position = (this.isIElt7)?"absolute":"fixed"; this.offset = {left: this.el.offsetWidth, top: 0}; this.position = this.calcPosition(); this.el.style.left = this.position.left+"px"; this.el.style.top = this.position.top+"px"; this.posHdlr = window.setInterval (function(){ LP_banner.position = LP_banner.calcPosition(); if(LP_banner.position.left != parseInt(LP_banner.el.style.left) || LP_banner.position.top - LP_banner.offset.top != parseInt(LP_banner.el.style.top)){ LP_banner.el.style.left = (LP_banner.position.left) + "px"; LP_banner.el.style.top = (LP_banner.position.top - LP_banner.offset.top) + "px"; } }, 50); window.setTimeout(this.open, this.timeout); }, open: function(){ LP_banner.el.style.display = "block"; LP_banner.animHdlr = window.setInterval(function(){ LP_banner.offset.top+=LP_banner.step; if (LP_banner.offset.top > LP_banner.el.offsetHeight){ LP_banner.offset.top = LP_banner.el.offsetHeight; window.clearInterval(LP_banner.animHdlr); } LP_banner.el.style.top=LP_banner.position.top - LP_banner.offset.top + "px"; }, 25) }, close: function(){ LP_banner.animHdlr = window.setInterval(function(){ LP_banner.offset.top-=LP_banner.step; if (LP_banner.offset.top < 0){ LP_banner.offset.top = 0; window.clearInterval(LP_banner.animHdlr); window.clearInterval(this.posHdlr); LP_banner.el.style.display = "none"; try {document.getElementsByTagName("body")[0].removeChild(LP_banner.el);} catch(e) {alert(e);} } LP_banner.el.style.top=LP_banner.position.top - LP_banner.offset.top + "px"; }, 25) } } LP_banner.init();