// ----------------------------------------------- // // EXTIMATE.JS - Редакция: 04.11.2003 - 18.08.2007 // // ----------------------------------------------- var _i,_n,_d=document,_w=window,_td=top.document,_Src_List,_Sp_List,_Pr_List; var _HTML_Str,_Prm_Str="",_EXTM_HRef,_EXTM_Src,_SCROLL_DX,_PAGE_WIDTH="100%"; var _PAGE_ALIGN="LEFT",_PAGE_BACKGROUND="",_LOAD_MESSAGE=""; function _Set_StatusStr(Status_Str) { _w.status=_w.defaultStatus=Status_Str; } function str_replace(Inp_Str,r1,r2) { var i; for (i=0;(i=Inp_Str.indexOf(r1,i))>=0;i++) Inp_Str=Inp_Str.substring(0,i)+(Inp_Str.substring(i)).replace(r1,r2); return Inp_Str; } function _Main_OnLoad() { var pb=_d.getElementById("_PAGE_BOX"); if (pb!=undefined) if (pb.clientHeight<100) pb.style.height="1500px"; } // ---------------------------------------------------------------------------- _Set_StatusStr("RealPRICE: загрузка страницы ..."); for (_i=0,_n=((_Src_List=_d.getElementsByTagName("script")).length), _EXTM_Src="";_i<_n;_i++) if ((_Src_List[_i].src).indexOf("realprice")>=0) { _EXTM_Src=_Src_List[_i].src; break; } _Sp_List=_EXTM_Src.split("?"); _EXTM_HRef=_Sp_List[0]; if (_Sp_List.length>1) { _Prm_Str+=_Sp_List[1]+"&"; _Sp_List=_Sp_List[1].split("&"); for (_i=0;_i<_Sp_List.length;_i++) { _Pr_List=_Sp_List[_i].split("="); switch (_Pr_List[0]) { case "LOAD_MESSAGE" : _LOAD_MESSAGE=_Pr_List[1]; break; case "PAGE_ALIGN" : _PAGE_ALIGN=_Pr_List[1]; break; case "PAGE_BACKGROUND": _PAGE_BACKGROUND=_Pr_List[1]; break; case "PAGE_WIDTH" : if (_Pr_List[1]>=parseInt(500)) _PAGE_WIDTH=_Pr_List[1]; } } } _SCROLL_DX=(_td.body.offsetWidth-_td.body.scrollWidth-4); if ((_SCROLL_DX<=0) || (_SCROLL_DX>100)) _SCROLL_DX=(_td.body.offsetWidth-_td.body.clientWidth-4); if ((_SCROLL_DX<=0) || (_SCROLL_DX>100)) _SCROLL_DX=20; _Prm_Str+= "PARENT_HEIGHT="+_d.body.clientHeight+"&USER_HOST="+str_replace(str_replace( _d.location.href,"?","-q-"),"&","-i-")+"&SCROLL_DX="+_SCROLL_DX+("&RND="+ Math.random()).replace("0.",""); _HTML_Str= ""; _d.write(_HTML_Str);