/* pre cache info */ MyOtzivCl = function() { var siteAdr = 'http://widget.reformal.ru/'; this.checkLink = function() { if (navigator.userAgent.toLowerCase().indexOf('firefox') == -1) return; var nos = document.getElementsByTagName('noscript'); var pattern = (typeof reformal_wdg_vlink != 'undefined' ) ? '<\s*a[^>]*href[^>]*(reformal.ru|' + reformal_wdg_vlink + ')[^>]*>' : '<\s*a[^>]*href[^>]*reformal.ru[^>]*>'; var re = new RegExp(pattern, 'i'); for(var i = 0, length = nos.length; i < length; i++) { if (re.test(nos[i].textContent)) return; } var link, links = document.getElementsByTagName("a"); var re = new RegExp((typeof reformal_wdg_vlink != 'undefined' ) ? 'reformal.ru|' + reformal_wdg_vlink : 'reformal.ru', 'i'); for(var i = 0, length = links.length; i < length; i++) { link = links[i]; if (link.id && (link.id == 'reformal_tab' || link.id == 'reformal_logo')) continue; if (re.test(link.href)) return; } var i = new Image(); i.src = 'http://log.reformal.ru/bl.php?pid=' + reformal_wdg_domain + '&url=' + window.location.href; } this.l = window.location.href; this.mo_get_win_width = function() { var myWidth = 0; if( typeof( window.innerWidth ) == 'number' ) //Non-IE myWidth = window.innerWidth; else if( document.documentElement && document.documentElement.clientWidth ) //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; else if( document.body && document.body.clientWidth) //IE 4 compatible myWidth = document.body.clientWidth; return myWidth; } this.mo_get_win_height = function() { var myHeight = 0; if( typeof( window.innerHeight ) == 'number' ) //Non-IE myHeight = window.innerHeight; else if( document.documentElement && document.documentElement.clientHeight ) //IE 6+ in 'standards compliant mode' myHeight = document.documentElement.clientHeight; else if( document.body && document.body.clientHeight) //IE 4 compatible myHeight = document.body.clientHeight; return myHeight; } this.mo_get_scrol = function() { var yPos = 0; if (self.pageYOffset) { yPos = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop){ yPos = document.documentElement.scrollTop; } else if (document.body) { yPos = document.body.scrollTop; } return yPos; } this.mo_show_box = function() { if (document.getElementById("fthere").innerHTML == "") { document.getElementById("fthere").innerHTML = ""; } var l = this.mo_get_win_width()/2 - 350; var t = this.mo_get_win_height()/2 - 200 + this.mo_get_scrol(); document.getElementById('myotziv_box').style.top = t+'px'; document.getElementById('myotziv_box').style.left = l+'px'; document.getElementById('myotziv_box').style.display='block'; try { this.checkLink(); } catch (err) {} } this.mo_hide_box = function() { document.getElementById('myotziv_box').style.display='none'; } this.mo_showcss = function() { document.write(""); } this.r = typeof document.referrer === "undefined" ? "" : document.referrer; this.mo_showframe = function() { this.mo_showcss(); document.write("
\"\"
"); document.write("
"); document.write("
"); document.write("
"); document.write("
\"\"
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ
"); document.write("
Я предлагаю вам...
"); document.write("
"); //document.write(""); document.write("
"); document.write("
"); document.write("
"); var i = new Image(); i.src = 'http://log.reformal.ru/st.php?w=tab2&domain=family'; } } var MyOtziv = new MyOtzivCl(); MyOtziv.mo_showframe(); function r_compact(s){ str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; s = r_utf8encode(s); while (i < s.length) { chr1 = s.charCodeAt(i++);chr2 = s.charCodeAt(i++);chr3 = s.charCodeAt(i++); enc1 = chr1 >> 2;enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);enc4 = chr3 & 63; if (isNaN(chr2)) enc3 = enc4 = 64; else if (isNaN(chr3)) enc4 = 64; output = output+str.charAt(enc1)+str.charAt(enc2)+str.charAt(enc3)+str.charAt(enc4); } return output; } function r_utf8encode(s){ s = s.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < s.length; n++) { var c = s.charCodeAt(n); if (c < 128) utftext += String.fromCharCode(c); else if((c > 127) && (c < 2048)) utftext += String.fromCharCode((c >> 6) | 192) + String.fromCharCode((c & 63) | 128); else utftext += String.fromCharCode((c >> 12) | 224) + String.fromCharCode(((c >> 6) & 63) | 128) + String.fromCharCode((c & 63) | 128); } return utftext; } var hc = new Image; hc.src = "http://reformal.ru/human_check/family|"+r_compact(MyOtziv.l)+"|"+r_compact(MyOtziv.r);