var opros_dp_ua_title_mas = new Array(); var opros_dp_ua_title_i = 0; function opros_dp_ua_title_parse() { x = document.getElementById('opros_dp_ua_info'); txt = x.innerHTML; pos = 0; pos2 = pos; def_txt = ''; whats1 = '0) { val = whats1; } else { pos = txt.indexOf(whats2,pos); if(pos>0) val = whats2; else { pos = txt.indexOf(whats3,pos); if(pos>0) val = whats3; } } pos3 = val.indexOf(' ',1); tag = val.substring(1,pos3); def_txt += txt.substring(pos2,pos); whats = ''; pos2 = txt.indexOf(whats,pos)+whats.length; span = txt.substring(pos,pos2); span_upd = opros_dp_ua_title_upd(span); def_txt += span_upd; i = 0; while(pos>0) { pos = txt.indexOf(val,pos2); if(pos==-1) { def_txt += txt.substring(pos2,txt.length); } else { tmp = txt.substring(pos2,pos); def_txt += tmp; pos2 = txt.indexOf(whats,pos)+whats.length; span = txt.substring(pos,pos2); span_upd = opros_dp_ua_title_upd(span); def_txt += span_upd; } } def_txt += '
'; x.innerHTML = def_txt; } function opros_dp_ua_title_upd(span) { ttxt = span; twhats = 'title='; tpos = ttxt.indexOf(twhats,0); tpos += twhats.length; tpos2 = ttxt.indexOf('>',tpos+1); tpos2--; titl = ttxt.substring(tpos+1,tpos2); titl = opros_dp_ua_title_upd_repl(titl); twhats = '<'; tpos = ttxt.indexOf(twhats,tpos2); tpos += twhats.length; tttxt = ttxt.substring(tpos-1,tpos2+2); opros_dp_ua_title_mas[opros_dp_ua_title_i] = titl; ret = '<'+tag+' class=opros_dp_ua_title onmouseover=opros_dp_ua_titler('+opros_dp_ua_title_i+',event) >'+tttxt+''; opros_dp_ua_title_i++; return ret; } function opros_dp_ua_title_upd_repl(titl) { var repl_mas = new Array(); var xx = new Array(); i = 0; xx['name'] = '\\n'; xx['nachto'] = '
'; repl_mas[i] = xx; i++; rkolvo = i; rtxt = titl; rout = ''; ri = 0; for(ri=0;ri15) break; rpos2 = rtxt.indexOf(rwhats,rpos); if(rpos2==-1) { rpos2 = rtxt.length; rout += rtxt.substring(rpos,rpos2); } else { rout += rtxt.substring(rpos,rpos2); rout += nachto; } rpos = rpos2+rwhats.length; } } var repl_mas = ''; return rout; } function opros_dp_ua_titler_hide() { document.getElementById('opros_dp_ua_title_div').style.visibility = 'hidden'; } function opros_dp_ua_titler(id,e) { val = opros_dp_ua_title_mas[id]; scr_h = (window.screen.height380?380:scr_w-20); pos_x = (e.x?scrl_l+e.x:e.pageX)-pos_w/2; if(scr_w<980) max_w = 980; else max_w = scr_w; if(pos_x+pos_w>max_w) pos_x = max_w-pos_w; pos_y = (e.y?scrl_t+e.y:e.pageY)-20; opros_dp_ua_title_show(val); } function opros_dp_ua_title_show(val) { x = document.getElementById('opros_dp_ua_title_div'); x.style.left = pos_x; x.style.top = pos_y; x.style.width = pos_w; txt = ''; txt += ''; txt += val; txt += ''; document.getElementById('opros_dp_ua_title_div').innerHTML = txt; document.getElementById('opros_dp_ua_title_div').style.visibility = 'visible'; } opros_dp_ua_title_parse()