/* Minification failed. Returning unminified contents.
(94,57-58): run-time error JS1195: Expected expression: >
(99,2-3): run-time error JS1195: Expected expression: )
 */
(function($) {
	"use strict"

	// Mobile dropdown
	$('.has-dropdown>a').on('click', function() {
	    $(this).parent().toggleClass('active');	    
	});

	// Aside Nav
	$(document).click(function(event) {
		if (!$(event.target).closest($('#nav-aside')).length) {
			if ( $('#nav-aside').hasClass('active') ) {
				$('#nav-aside').removeClass('active');
				$('#nav').removeClass('shadow-active');
			} else {
				if ($(event.target).closest('.aside-btn').length) {
				    $('#nav-bottom').addClass('active');
				    $('#nav-bottom').addClass('mview');
					$('#nav').addClass('shadow-active');
				}
			}
		}
	});

	$('.nav-bottom-close').on('click', function () {
	    $('#nav-bottom').removeClass('active');
	    $('#nav-bottom').removeClass('mview');
		$('#nav').removeClass('shadow-active');
	});


	$('.search-btn').on('click', function() {
	    $('#nav-search').toggleClass('active');	    
	});
	
	$('.search-close').on('click', function () {
		$('#nav-search').removeClass('active');
	});	
	
})(jQuery);
;

try {
    //if ('serviceWorker' in navigator) {
    //    // sw.js can literally be empty, but must exist
    //    navigator.serviceWorker.register('/sw.js', { scope: '/' });
    //}

    //if ('serviceWorker' in navigator) {
    //    window.addEventListener('load', function () {
    //        navigator.serviceWorker.register('/Scripts/sw.js').then(function (registration) {
    //            // Registration was successful
    //            //console.log('ServiceWorker registration successful with scope: ', registration.scope);
    //        }, function (err) {
    //            // registration failed :(
    //            //console.log('ServiceWorker registration failed: ', err);
    //        });
    //    });
    //}
    
    //window.addEventListener('beforeinstallprompt', function (e) {
    //    // beforeinstallprompt Event fired

    //    // e.userChoice will return a Promise.
    //    // For more details read: https://developers.google.com/web/fundamentals/getting-started/primers/promises
    //    e.userChoice.then(function (choiceResult) {

    //        //console.log(choiceResult.outcome);

    //        if (choiceResult.outcome == 'dismissed') {
    //            //console.log('User cancelled home screen install');
    //        }
    //        else {
    //            //console.log('User added to home screen');
    //        }
    //    });
    //});

    //self.addEventListener('fetch', function (event) { });





    if('serviceWorker' in navigator) {
        navigator.serviceWorker.register('/sw.js', { scope: '/' })
        .then(function(registration) {
            console.log('Service Worker Registered');
        });
        navigator.serviceWorker.ready.then(function(registration) {
            console.log('Service Worker Ready');
        });
    }
    window.addEventListener('beforeinstallprompt', (e) => {
        // Prevent Chrome 67 and earlier from automatically showing the prompt
        e.preventDefault();
    // Stash the event so it can be triggered later.
    deferredPrompt = e;
});





} catch (e) {
    alert(e.message + ":" + e.stack);

}




;
var gLnCode = "en";
var getFirstBrowserLanguage = function () {

    var _returnLang;
    var nav = window.navigator,
    browserLanguagePropertyKeys = ['language', 'browserLanguage', 'systemLanguage', 'userLanguage'],
    i,
    language;

    // support for HTML 5.1 "navigator.languages"
    try {
        if (Array.isArray(nav.languages)) {
            for (i = 0; i < nav.languages.length; i++) {
                language = nav.languages[i];
                if (language && language.length) {
                    _returnLang = language;
                }
            }
        }
    } catch (e) { }

    // support for other well known properties in browsers
    try {
        for (i = 0; i < browserLanguagePropertyKeys.length; i++) {
            language = nav[browserLanguagePropertyKeys[i]];
            if (language && language.length) {
                _returnLang = language;
            }
        }
    } catch (e) { }

    
   
    //Check browser lang : if it is null
    if (_returnLang == null) {
        //lang is coming from indicators
        _returnLang = lang;
    }

    if (_returnLang == null) {
        //lang is coming from indicators
        _returnLang = "en";
    }


    if (_returnLang.indexOf('-') !== -1)
        _returnLang = _returnLang.split('-')[0];

    if (_returnLang.indexOf('_') !== -1)
        _returnLang = _returnLang.split('_')[0];


    return _returnLang;
};
var _browserLang = getFirstBrowserLanguage();

$(document).ready(function () {
    /*
    Manish : 20-3-2018 : 11:47 am
    Manish : 20-3-2018 : 12:05 am
    Manish : 20-3-2018 : 12:13 am
    Manish : 20-3-2018 : 12:19 am
    Manish : 20-3-2018 : 12:23 am
    Manish : 20-3-2018 : 12:52 am
    */
    
    //var _urlfalcon = "http://market.android.com/details?id=com.falcon.clean.phone.master.junk.cleaner.battery.booster&referrer=utm_source%3Dblog_howtoremoveit%26utm_medium%3DFMC2718_FMC2653_RUNT%26utm_term%3Dblog_howtoremoveit%26utm_content%3Dblog_howtoremoveit%26utm_campaign%3Dblog_howtoremoveit";
    var _urlfalcon = "#";//"https://play.google.com/store/apps/details?id=com.falcon.clean.phone.master.junk.cleaner.battery.booster&referrer=utm_source%3Dblog_howtoremoveit%26utm_medium%3DFMC2718_FMC2653_RUNT%26utm_term%3Dblog_howtoremoveit%26utm_content%3Dblog_howtoremoveit%26utm_campaign%3Dblog_howtoremoveit";
    var _McAfee = "http://softwaredeals4u.com/mf/pcv.asp?x-context=XXXXXX&utm_source=mcfhtriblog&utm_campaign=mcfhtriblog&pxl=MCF2238_MCF2191_RUNT&utm_pubid=PUBID&x-at=XXXX";


    /***********************************************************************NEW Clicks******************************************************************************************************/

    var _windowsUrlfmrt = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
    var _postId = 0;
    var _ClientIp = "";


    //**************************************************  Comment to : TypeError: Cannot read property 'innerHTML' of null  **************************************************//
    //try {
    //    _postId = document.getElementById('ContentPlaceHolder1_lblDnID').innerHTML;
    //    ////console.log("PostID:" + _postId);



    //} catch (e) {
    //    ////console.log(e.message);
    //    ////console.log(e.stack);
    //}



    try {
        _ClientIp = $('#hdnClient_aip').val();
        //////console.log("ClientIP:" + _ClientIp);


    } catch (e) {
        //////console.log(e.message);
        //////console.log(e.stack);
    }


    //var _windowsDynamicUrl = "http://wlp.malwarecrusher.com/lp/lp72/?x-context=" + _postId + "&utm_source=mcrinfo&utm_campaign=mcrinfo&utm_medium=mcrinfo&pxl=MCR3730_MCR3656_RUNT&utm_pubid=howtoremoveit&x-at=";
    //var _windowsDynamicUrl = "http://wlp.malwarecrusher.com/lp/lp72/?x-context=" + _postId + "&mcrmainsite&utm_campaign=mcrmainsite&utm_medium=mcrmainsite&pxl=APS3134_APS3064_RUNT&utm_pubid=howtoremoveit&x-at=";
    //var _windowsDynamicUrl_MalwareCursherDwnload = "http://wlp.malwarecrusher.com/lp/directdl/?x-context=" + _postId + "&utm_source=mcrinfo&utm_campaign=mcrinfo&utm_medium=mcrinfo&pxl=MCR3730_MCR3656_RUNT&utm_pubid=howtoremoveit&x-at=";

    function getUrlParameter(name) {
        name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
        var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
        var results = regex.exec(location.search);
        return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    };

    var utm_source = "";
    var utm_campaign = "";
    var pxl = "";
    try {
        //  window.location.href.search;
        utm_source = getUrlParameter("utm_source");
        utm_campaign = getUrlParameter("utm_campaign");
        ////console.log(window.location.search);
        ////console.log(utm_campaign);
        ////console.log(utm_source);


    } catch (e) {

    }

    var _windowsDynamicUrl = "https://ddl.malwarecrusher.com/inisetup?os=windows&ip=" + _ClientIp;
    var _windowsDynamicUrl_MalwareCursherDwnload = "https://ddl.malwarecrusher.com/inisetup?os=windows&ip=" + _ClientIp;
    var defaultQparams = "&utm_source=mcrinfo&utm_campaign=mcrinfo&utm_medium=mcrinfo&pxl=MCR3730_MCR3656_RUNT&utm_pubid=howtoremoveitddl";
    if (utm_source == "" || utm_campaign == "") {
        _windowsDynamicUrl += defaultQparams + "&x-context=" + _postId + "&x-at=";
        _windowsDynamicUrl_MalwareCursherDwnload += defaultQparams + "&x-context=" + _postId + "&x-at=";
    }
    else {
        defaultQparams = window.location.search.replace("?", "&");
        _windowsDynamicUrl += defaultQparams + "&x-context=" + _postId + "&x-at=";
        _windowsDynamicUrl_MalwareCursherDwnload += defaultQparams + "&x-context=" + _postId + "&x-at=";
    }

    //+ "&utm_source=mcrinfo&utm_campaign=mcrinfo&utm_medium=mcrinfo&pxl=MCR3730_MCR3656_RUNT&utm_pubid=howtoremoveitddl&x-at=";
    //"&utm_source=mcrinfo&utm_campaign=mcrinfo&utm_medium=mcrinfo&pxl=MCR3730_MCR3656_RUNT&utm_pubid=howtoremoveitddl&x-at=";

    ////console.log(_windowsDynamicUrl);

    //Homepage
    $('.bnrMalwareScambtn').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");

            try {
                ga('send', 'event', 'bnrMalwareScambtn', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'bnrMalwareScambtn', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'PostBannerButton_bnrMalwareScambtn', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "PostBannerButton_bnrMalwareScambtn");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';

            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'bnrMalwareScambtn', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }



            try {
                ga('send', 'event', 'PostBannerButton_bnrMalwareScambtn', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "PostBannerButton_bnrMalwareScambtn");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    //PostPage
    $('.btnchkandfixpgs').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'btnchkandfixpgs', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'btnchkandfixpgs', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'PostPage_btnchkandfixpgs', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "PostPage_btnchkandfixpgs");
                // this.href = _windowsUrlfmrt;
                // window.location.href = _windowsUrlfmrt;
                // funDownloadIndicator();
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'btnchkandfixpgs', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'PostPage_btnchkandfixpgs', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "PostPage_btnchkandfixpgs");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });

    $('.downloadbtndiv1').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'downloadbtndiv1', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'downloadbtndiv1', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'downloadbtndiv1', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'downloadbtndiv1', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'downloadbtndiv', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.downloadbtndiv2').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'downloadbtndiv2', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'downloadbtndiv2', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'downloadbtndiv2', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv2");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'downloadbtndiv2', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'downloadbtndiv2', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv2");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.downloadbtndiv3').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'downloadbtndiv3', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'downloadbtndiv3', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'downloadbtndiv3', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv3");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'downloadbtndiv3', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }



            try {
                ga('send', 'event', 'downloadbtndiv3', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtndiv3");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('#downloadbtnfixdiv').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'downloadbtnfixdiv', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'downloadbtnfixdiv', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'downloadbtnfixdiv', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtnfixdiv");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'downloadbtnfixdiv', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }



            try {
                ga('send', 'event', 'downloadbtnfixdiv', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "downloadbtnfixdiv");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });

    //OLD clicks
    $('.btnbigButtonDownload').click(function (e) {
        //alert("hi");
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        ////console.log("Agent :" + window.navigator.userAgent);
        ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'bodyButtonDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'btnbigButtonDownload', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "btnbigButtonDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'btnbigButtonDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'btnbigButtonDownload', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "btnbigButtonDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.bodyButtonDownload').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        ////console.log("Agent :" + window.navigator.userAgent);
        ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                //funDownloadIndicator(); Comment-31May2019
                ga('send', 'event', 'bodyButtonDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'bodyButtonDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'bodyButtonDownload', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "bodyButtonDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';

            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'bodyButtonDownload', 'Linux', window.location.pathname, 0, false);

                downloadClickN(this, "bodyButtonDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.downloadSideControlAd').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            //window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            var win = window.open("https://lp.itlantivirus.com/itlm/?x-context=MacItl&utm_source=itlhtrmm&utm_campaign=itlhtrmm&pxl=ITL4196_ITL4098_RUNT&utm_pubid=MExitNag&override=1", "_blank");
            win.focus();
            try {
                ga('send', 'event', 'Download Side Bottom Banner Ad', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }



            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'Download Side Bottom Banner Ad', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'Download Side Bottom Banner Ad', 'Windows', window.location.pathname, 0, false);

                downloadClickN(this, "downloadSideControlAd");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'Download Side Bottom Banner Ad', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'Download Side Bottom Banner Ad', 'Linux', window.location.pathname, 0, false);

                downloadClickN(this, "downloadSideControlAd");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.bodyButtonTipstoPrevent_fmrt').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrt', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrt', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrt', 'Windows', window.location.pathname, 0, false);

                downloadClickN(this, "bodyButtonTipstoPrevent_fmrt");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrt', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';

            try {
                e.preventDefault();
            } catch (e) {
            }


            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrt', 'Linux', window.location.pathname, 0, false);

                downloadClickN(this, "bodyButtonTipstoPrevent_fmrt");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    $('.bodyButtonTipstoPrevent_McAfee').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        try {
            e.preventDefault();
        } catch (e) {
        }

        try {
            //itlhtrtips	itlhtrtips		ITL3855_ITL3778_RUNT
            if (platform.indexOf("Mac") !== -1) {
                os = 'Mac OS';
                //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
                window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
                try {
                    ga('send', 'event', 'bodyButtonTipstoPrevent_McAfee', 'Mac OS', window.location.pathname, 0, false);
                } catch (e) {
                    //alert(e.message + ":" + e.stack);
                }
                return false;
            }
            else if (iosPlatforms.indexOf(platform) !== -1) {
                os = 'iOS';

                try {
                    e.preventDefault();
                } catch (e) {
                }

                //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
                window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
                try {
                    ga('send', 'event', 'bodyButtonTipstoPrevent_McAfee', 'iOS', window.location.pathname, 0, false);
                } catch (e) {
                    //alert(e.message + ":" + e.stack);
                }
                return false;
            }
            else if (windowsPlatforms.indexOf(platform) !== -1) {
                os = 'Windows';

                try {
                    e.preventDefault();
                } catch (e) {
                }

                try {
                    ga('send', 'event', 'bodyButtonTipstoPrevent_McAfee', 'Windows', window.location.pathname, 0, false);
                    var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=XXXXX&utm_source=itlhtrtips&utm_campaign=itlhtrtips&pxl=ITL3855_ITL3778_RUNT&utm_pubid=XXXXX&override=1", "_blank");
                    win.focus();

                } catch (e) {
                    // alert(e.message + ":" + e.stack);
                }
            }
            //ga('send', 'event', 'bodyButtonTipstoPrevent_McAfee', 'Windows', window.location.pathname, 0, false);
            //var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=XXXXX&utm_source=itlhtrtips&utm_campaign=itlhtrtips&pxl=ITL3855_ITL3778_RUNT&utm_pubid=XXXXX&override=1", "_blank");
            //win.focus();

        } catch (e) {
            //alert(e.message + ":" + e.stack);
        }


    });
    $('.bodyButtonTipstoPrevent_fmrtWebSiteredirect').click(function (e) {
        try {
            e.preventDefault();
        } catch (e) {
        }

        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        //try {
        //    this.href = "http://www.freemalwareremovaltool.com/";
        //    window.open("http://www.freemalwareremovaltool.com/");
        //    ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'Windows', window.location.pathname, 0, false);
        //} catch (e) {
        //    // alert(e.message + ":" + e.stack);

        //}

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';

            try {
                e.preventDefault();
            } catch (e) {
            }

            //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';

            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "bodyButtonTipstoPrevent_fmrtWebSiteredirect");

            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
            window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
            try {
                ga('send', 'event', 'bodyButtonTipstoPrevent_fmrtWebSiteredirect', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "bodyButtonTipstoPrevent_fmrtWebSiteredirect");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }


    });
    $('.bodyButtonTipstoPrevent_adblockerChrome').click(function (e) {
        try {
            e.preventDefault();
        } catch (e) {
        }
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        try {
            this.href = "https://chrome.google.com/webstore/detail/ad-blocker/kacljcbejojnapnmiifgckbafkojcncf";
            window.open("https://chrome.google.com/webstore/detail/ad-blocker/kacljcbejojnapnmiifgckbafkojcncf");
            ga('send', 'event', 'bodyButtonTipstoPrevent_adblockerChrome', 'Windows', window.location.pathname, 0, false);
        } catch (e) {
            // alert(e.message + ":" + e.stack);
        }

        /*

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            window.open("https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            e.preventDefault();

            this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Windows', window.location.pathname, 0, false);
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
           window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//,"market://"), "_top");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            e.preventDefault();

            this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Linux', window.location.pathname, 0, false);
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        */
    });
    $('.bodyButtonTipstoPrevent_adblockerFF').click(function (e) {
        try {
            e.preventDefault();
        } catch (e) {
        }

        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        try {
            this.href = "https://addons.mozilla.org/en-gb/firefox/addon/ads-blocker/?src=search";
            window.open("https://addons.mozilla.org/en-gb/firefox/addon/ads-blocker/?src=search");
            ga('send', 'event', 'bodyButtonTipstoPrevent_adblockerFF', 'Windows', window.location.pathname, 0, false);
        } catch (e) {
            // alert(e.message + ":" + e.stack);
        }

        /*

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';
            window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            window.open("https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            e.preventDefault();

            this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Windows', window.location.pathname, 0, false);
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
          window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//,"market://"), "_top");
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            e.preventDefault();

            this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
            try {
                ga('send', 'event', 'bodyButtonDownload', 'Linux', window.location.pathname, 0, false);
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        */
    });
    $('.bodyButtonTipstoPrevent_adblockeredge').click(function (e) {
        try {
            e.preventDefault();
        } catch (e) {
            //
        }

        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        try {
            this.href = "https://www.microsoft.com/store/apps/9nw7xsb8qw3h";

            window.open("https://www.microsoft.com/store/apps/9nw7xsb8qw3h");

            ga('send', 'event', 'bodyButtonTipstoPrevent_adblockeredge', 'Windows', window.location.pathname, 0, false);


        } catch (e) {
            // alert(e.message + ":" + e.stack);
        }


    });


    //NEW Added field

    //Image Ad click
    $('.imgbodyAdDownload').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        ////console.log("Agent :" + window.navigator.userAgent);
        ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'ImgbodyAdDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'ImgbodyAdDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'ImgbodyAdDownload', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "ImgbodyAdDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'ImgbodyAdDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'ImgbodyAdDownload', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "ImgbodyAdDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });

    //Any anchor tag download Setup button
    $('.anyAchorbodylinkDownload').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        // ////console.log("Agent :" + window.navigator.userAgent);
        // ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'Windows', window.location.pathname, 0, false);

                downloadClickN(this, "anyAchorbodylinkDownload");

            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'Linux', window.location.pathname, 0, false);


                downloadClickN(this, "anyAchorbodylinkDownload");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });


    //Any anchor tag download Setup button
    $('.anyAchorbodylinkITLDownload').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        // ////console.log("Agent :" + window.navigator.userAgent);
        // ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'anyAchorbodylinkITLDownload', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'anyAchorbodylinkITLDownload', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'anyAchorbodylinkITLDownload', 'Windows', window.location.pathname, 0, false);

                var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=sideBanner&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=sideBanner&override=1", "_blank");
                win.focus();

            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'anyAchorbodylinkITLDownload', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'anyAchorbodylinkDownload', 'Linux', window.location.pathname, 0, false);


                var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=sideBanner&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=sideBanner&override=1", "_blank");
                win.focus();
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });



    //Direct Link Conversion Called _direct_exe_link_Convertion
    $("a[href$='.exe']").click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        ////console.log("Agent :" + window.navigator.userAgent);
        ////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'direct_exe_link_Convertion', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'direct_exe_link_Convertion', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'direct_exe_link_Convertion', 'Windows', window.location.pathname, 0, false);

                downloadClickN(this, "direct_exe_link_Convertion");

            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'direct_exe_link_Convertion', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'direct_exe_link_Convertion', 'Linux', window.location.pathname, 0, false);

                downloadClickN(this, "direct_exe_link_Convertion");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });

    try {
        if ($(window).width() < 768) {
            $("#sideaddbtnweb").hide();
        }
        else {
            $("#sideaddbtnweb").show();
            $('#CustomAdlinkDownload').click(function (e) {
                var userAgent = window.navigator.userAgent,
                   platform = window.navigator.platform,
                   macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
                   windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
                   iosPlatforms = ['iPhone', 'iPad', 'iPod'],
                   os = null;

                if (platform.indexOf("Mac") !== -1) {
                    os = 'Mac OS';
                    //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
                    window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");

                    try {
                        ga('send', 'event', 'CustomAdlinkDownload', 'Mac OS', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }
                    return false;
                }
                else if (iosPlatforms.indexOf(platform) !== -1) {
                    os = 'iOS';

                    try {
                        e.preventDefault();
                    } catch (e) {
                    }

                    //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                    //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                    this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
                    window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

                    try {
                        ga('send', 'event', 'CustomAdlinkDownload', 'iOS', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }
                    return false;
                }
                else if (windowsPlatforms.indexOf(platform) !== -1) {
                    os = 'Windows';

                    try {
                        e.preventDefault();
                    } catch (e) {
                    }


                    try {
                        //funDownloadIndicator();Comment-31May2019
                        ga('send', 'event', 'CustomAdlinkDownload', 'Windows', window.location.pathname, 0, false);

                        downloadClickN_exe1(this, "CustomAdlinkDownload");




                    } catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                }
                else if (window.navigator.userAgent.indexOf("Android") != -1) {
                    os = 'Android';

                    window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
                    try {
                        ga('send', 'event', 'CustomAdlinkDownload', 'Android', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }

                    return false;
                }
                else if (!os && /Linux/.test(platform)) {
                    os = 'Linux';
                    try {
                        e.preventDefault();
                    } catch (e) {
                    }

                    try {
                        ga('send', 'event', 'CustomAdlinkDownload', 'Linux', window.location.pathname, 0, false);

                        downloadClickN_exe1(this, "CustomAdlinkDownload");

                    } catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                }
            });
            $('#CustomAdlinkDownloadButtonGreen').click(function (e) {
                var userAgent = window.navigator.userAgent,
                   platform = window.navigator.platform,
                   macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
                   windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
                   iosPlatforms = ['iPhone', 'iPad', 'iPod'],
                   os = null;

                if (platform.indexOf("Mac") !== -1) {
                    os = 'Mac OS';
                    //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
                    window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");

                    try {
                        ga('send', 'event', 'CustomAdlinkDownloadButtonGreen', 'Mac OS', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }
                    return false;
                }
                else if (iosPlatforms.indexOf(platform) !== -1) {
                    os = 'iOS';

                    try {
                        e.preventDefault();
                    } catch (e) {
                    }

                    //this.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                    //window.location.href = "https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8";
                    this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
                    window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

                    try {
                        ga('send', 'event', 'CustomAdlinkDownloadButtonGreen', 'iOS', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }
                    return false;
                }
                else if (windowsPlatforms.indexOf(platform) !== -1) {
                    os = 'Windows';

                    try {
                        e.preventDefault();
                    } catch (e) {
                    }

                    this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
                    window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
                    try {
                        //funDownloadIndicator(); Comment-31May2019
                        ga('send', 'event', 'CustomAdlinkDownloadButtonGreen', 'Windows', window.location.pathname, 0, false);
                    } catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                }
                else if (window.navigator.userAgent.indexOf("Android") != -1) {
                    os = 'Android';

                    window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
                    try {
                        ga('send', 'event', 'CustomAdlinkDownloadButtonGreen', 'Android', window.location.pathname, 0, false);
                    } catch (e) {
                        //alert(e.message + ":" + e.stack);
                    }

                    return false;
                }
                else if (!os && /Linux/.test(platform)) {
                    os = 'Linux';
                    try {
                        e.preventDefault();
                    } catch (e) {
                    }

                    this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
                    window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
                    try {
                        ga('send', 'event', 'CustomAdlinkDownloadButtonGreen', 'Linux', window.location.pathname, 0, false);
                    } catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                }
            });
        }
    } catch (e) {
    }






    /******************************************************************************************************/
   
    if (_IsForceLanguage != null && _IsForceLanguage.length > 0) {
        
       
        _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_en.png";
        if (_ForcedLanguage == "en") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_en.png";
            gLnCode = "en";

        }
        else if (_ForcedLanguage == "fr") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_fr.png";
            gLnCode = "fr";
        }
        else if (_ForcedLanguage == "ru") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_ru.png";
            gLnCode = "ru";
        }
        else if (_ForcedLanguage == "de") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_de.png";
            gLnCode = "de";
        }
        else if (_ForcedLanguage == "nl") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_nl.png";
            gLnCode = "nl";
        }
        else if (_ForcedLanguage == "jp" || _ForcedLanguage == "ja") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_ja.png";
            gLnCode = "ja";
        }


        _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_" + gLnCode + ".png"

    }
    else {
       
        _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_en.png";
        if (_browserLang == "en") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_en.png";
            gLnCode = "en";
        }
        else if (_browserLang == "fr") {
            //_imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_fr.png";
            gLnCode = "fr";
        }
        else if (_browserLang == "ru") {
            // _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_ru.png";
            gLnCode = "ru";
        }
        else if (_browserLang == "de") {
            //_imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_de.png";
            gLnCode = "de";
        }
        else if (_browserLang == "nl") {
            //_imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_nl.png";
            gLnCode = "nl";
        }
        else if (_browserLang == "jp" || _browserLang == "ja") {
            //_imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_ja.png";
            gLnCode = "ja";
        }
        _imgsidebanners = "https://www.howtoremoveit.info/Images/ITL/SideBanner/bnr3_" + gLnCode + ".png"


    }
  
    //SideAdMCDoinwoload
    var _html1 = '<img id="sideDownloadBannerMCStaticImg" style="cursor: pointer;" src="' + _imgsidebanners + '" class="img-responsive center-block" alt="ad_computer_work" />';

    //02/20/2019
    //$('#sideDownloadBannerMC').css('display', 'none');
    $('#sideDownloadBannerMCStatic').css('display', 'block');
    //$("#sideDownloadBannerMCStatic").html(_html1);

    $('#sideDownloadBannerMCStaticImg').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            //window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            var win = window.open("https://lp.itlantivirus.com/itlm/?x-context=XXXXX&utm_source=itlhtrmm&utm_campaign=itlhtrmm&pxl=ITL4196_ITL4098_RUNT&utm_pubid=XXXXX&override=1", "_blank");
            win.focus();
            try {
                ga('send', 'event', 'sideBannerHome-MCStaticImg', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }




            try {
                ga('send', 'event', 'sideBannerHome-MCStaticImg', 'iOS', window.location.pathname, 0, false);

            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'sideBannerHome-MCStaticImg_' + gLnCode, 'Windows', window.location.pathname, 0, false);

                var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=sideBanner&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=sideBanner&override=1", "_blank");
                win.focus();

            } catch (e) {
                alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'sideBannerHome-MCStaticImg', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'sideBannerHome-MCStaticImg', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "sideDownloadBannerMCStaticImg");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });


    /******************************************************************************************************/





    //BH_NewTemplate
    $('.BH_NewTemplate_MCDwn').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        //////console.log("Agent :" + window.navigator.userAgent);
        //////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            ////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "BH_NewTemplate_MCDwn");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "BH_NewTemplate_MCDwn");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });

    //BH_NewTemplate
    $('.BH_NewTemplate_MCDwn2').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        //////console.log("Agent :" + window.navigator.userAgent);
        //////console.log("Platform :" + window.navigator.platform);

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            //////console.log("OS  : Mac");

            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn2', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }

            this.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";
            window.location.href = "https://itunes.apple.com/us/app/ad-blocker-pro/id1167435568?mt=8";

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn2', 'iOS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn2', 'Windows', window.location.pathname, 0, false);
                downloadClickN(this, "BH_NewTemplate_MCDwn2");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn2', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'BH_NewTemplate_MCDwn2', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "BH_NewTemplate_MCDwn2");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });


    function downloadClickN(ele, buttonName) {
        //funDownloadIndicator();   Comment-31May2019
        //ele.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";
        //window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog2setup.exe";

        ele.href = _windowsDynamicUrl_MalwareCursherDwnload + buttonName;
        window.location.href = _windowsDynamicUrl_MalwareCursherDwnload + buttonName;

        //window.location.assign(_windowsDynamicUrl_MalwareCursherDwnload + buttonName);
        //var win = window.open(_windowsDynamicUrl_MalwareCursherDwnload + buttonName, "_blank");
        //win.focus();
    }

    function downloadClickN_exe1(ele, buttonName) {
        //funDownloadIndicator();Comment-31May2019

        ele.href = _windowsDynamicUrl_MalwareCursherDwnload + buttonName;
        window.location.href = _windowsDynamicUrl_MalwareCursherDwnload + buttonName;

        //window.location.assign(_windowsDynamicUrl_MalwareCursherDwnload + buttonName);

        //var win = window.open(_windowsDynamicUrl_MalwareCursherDwnload + buttonName, "_blank");
        //win.focus();

        //this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe";
        //window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/fmrtblog1setup.exe"; 

        // var win = window.open(_windowsDynamicUrl + buttonName, "_blank");
        // win.focus();
    }



    //Slide Banner Image Link
    $('#headslideBannerStaticIMG').click(function (e) {
        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {
            os = 'Mac OS';

            //window.open("macappstore://itunes.apple.com/us/app/esecure-clean-adware-malware/id1052726909?mt=12");
            var win = window.open("https://lp.itlantivirus.com/itlm/?x-context=SlideBanner&utm_source=itlhtrmm&utm_campaign=itlhtrmm&pxl=ITL4196_ITL4098_RUNT&utm_pubid=SlideBanner&override=1", "_blank");
            win.focus();
            try {
                ga('send', 'event', 'HeadSlideBannerStaticIMG', 'Mac OS', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            try {
                e.preventDefault();
            } catch (e) {
            }




            try {
                ga('send', 'event', 'HeadSlideBannerStaticIMG', 'iOS', window.location.pathname, 0, false);

            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'HeadSlideBannerStaticIMG' + gLnCode, 'Windows', window.location.pathname, 0, false);

                var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=SlideBanner&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=SlideBanner&override=1", "_blank");
                win.focus();

            } catch (e) {
                alert(e.message + ":" + e.stack);
            }
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';
            window.open(_urlfalcon.replace(/^http:\/\/market\.android\.com\//, "market://"), "_top");
            try {
                ga('send', 'event', 'HeadSlideBannerStaticIMG', 'Android', window.location.pathname, 0, false);
            } catch (e) {
                //alert(e.message + ":" + e.stack);
            }

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            try {
                e.preventDefault();
            } catch (e) {
            }

            try {
                ga('send', 'event', 'HeadSlideBannerStaticIMG', 'Linux', window.location.pathname, 0, false);
                downloadClickN(this, "HeadSlideBannerStaticIMG");
            } catch (e) {
                // alert(e.message + ":" + e.stack);
            }
        }
    });
    
});;
/// <reference path="F:\SVN\blogs\trunk\howtoremoveit\DynamicBlog\WebMaster\statichtml/ads_header_wintonic_inlcude.html" />
/// <reference path="F:\SVN\blogs\trunk\howtoremoveit\DynamicBlog\WebMaster\statichtml/ads_body.html" />
/// <reference path="F:\SVN\blogs\trunk\howtoremoveit\DynamicBlog\WebMaster\statichtml/ads_body.html" />

$(document).ready(function () {
    try {


        //Hottoremoveit Account //5937574569441766

        //vishal Sen Account // 2783712830543920
        var ad = '<div id="resposiveGAd" class="bnrhead sidecontrl" style="margin-bottom: 30px;"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display: block" data-ad-client="ca-pub-2783712830543920" data-ad-slot="7205052973" data-ad-format="auto"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>';

        var headerAd = '<div id="resposiveheaderAd" class="bnrhead sidecontrl" style="margin-bottom: 30px;"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>  <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-2783712830543920" data-ad-slot="8710699581" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>';



        var bodyAd = ' <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>  <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-2783712830543920" data-ad-slot="2274019833" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> ';

        //just commented i dont know why we are using this one
        //var headerAd_ironsrc = '<div id="resposiveheaderAdiroh" class="bnrhead" style="margin-bottom: 30px;"> <iframe src="https://www.howtoremoveit.info/ads.html" width="728" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;"></iframe></div>';


        var headerAd_Media_iframe_body = '<div id="resposiveheaderAdiroh" class="bnrhead" style="margin-bottom: 30px;height:270px;"> <iframe src="https://www.howtoremoveit.info//statichtml/ads_body.html" width="100%" height="100%" frameborder="0" scrolling="no" style="display: block;margin: auto;" title="Advertise"></iframe></div><div class="clearfix"></div>';

        var headerAd_Media_iframe_header = '<div id="resposiveheaderAdiroh" class="bnrhead" style="margin-bottom: 30px;"> <iframe src="https://www.howtoremoveit.info//statichtml/ads_header.html" width="728" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;" title="Advertise"></iframe></div>';


        var headerAd_ironsrc = '<div id="resposiveheaderAdiroh" class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom: 30px;"> <iframe src="https://www.howtoremoveit.info/ads.html" width="100%" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;" title="Advertise"></iframe></div>';



        var headerAd_Wintonic_iframe_header = '<div id="resposiveheaderAdiroh" class="bnrhead" style="margin-bottom: 30px;"> <iframe src="https://www.howtoremoveit.info/statichtml/ads_header_wintonic.html" width="728" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;" title="Advertise"></iframe></div>';

        var headerAd_Wintonic_iframe_header_include = '<div id="resposiveheaderAdiroh" class="bnrhead" style="margin-bottom: 30px;text-align:center;"><div  width="728" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;"> <a href="https://bgtc.pctonics.com/pctn/wtc/builds/apst/10010/wintonic.exe" onclick="function(){   ga("send", "event", "wintonic", "Windows", window.location.pathname, 0, false);}"> <img src="https://www.howtoremoveit.info/images/728_90_wintonic.gif" alt="Wintonic" /></a></div></div>';


        var headerAd_PhotoCleaner_iframe_header_include = '<div id="resposiveheaderAdiroh" class="bnrhead" style="text-align:center;"><div  width="728" height="90" frameborder="0" scrolling="no" style="display: block;margin: auto;"> <a href="https://d79n8fdnzsg1v.cloudfront.net/securerc/spcspcw1.exe" onclick="function(){   ga("send", "event", "photocleaner", "Windows", window.location.pathname, 0, false);}"> <img src="https://www.howtoremoveit.info/images/728_90_photo-cleaner.gif" alt="Wintonic" /></a></div></div>';


        var new_googleAdUnit = '<div class="bnrhead sidecontrl " style="margin-bottom: 30px;"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5937574569441766" data-ad-slot="5196752830"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>';

        var new_googleAdUnit_responsive = '<div class="bnrhead sidecontrl " style="margin-bottom: 30px;"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5937574569441766" data-ad-slot="4333444919" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div>';


        var new_googleAdUnit_alsoOn_Footer = '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display: block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5937574569441766" data-ad-slot="5196752830"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>';



    } catch (e) {
        //console.log(e);
        //alert(e.message + ":" + e.stack);
    }

    try {

        if (window.location.href.indexOf("vrfuckdolls-com-virus-removal-tool/") == -1) {
            if ($(window).width() < 768) {
                //$(".hm").after(headerAd_ironsrc);
                //$(".banner").after(headerAd_ironsrc);
                //$(".bannerpages").after(headerAd_ironsrc);
            }
            else {
                //$(".hm").after(headerAd_PhotoCleaner_iframe_header_include);
                //$(".banner").after(headerAd_PhotoCleaner_iframe_header_include);
                //$(".bannerpages").after(headerAd_PhotoCleaner_iframe_header_include);
            }
            // $("#sidePanelAd").before(ad);


         


            //This is body Ad
            $(".bs-callout-info").each(function (i, v) {
                //  $(this).before(headerAd_Media_iframe_body);
            });

          
            //side ad above
            $(".sidecontrolmain").each(function (i, v) {
                $(this).after(new_googleAdUnit_responsive);
            });

            //This is footer Ad you can find                     
            $("#divAlsoOnfooterAd").html(new_googleAdUnit_alsoOn_Footer);
        }
    } catch (e) {
        //console.log(e);
        //alert(e.message + ":" + e.stack);
    }
});





;

/***********************EXIT EVENT TRACK**********************************/

//var mouseLastYPos = null;
//$(document).mousemove(function (e) {
//    //console.log("Hey Vishal");
//    //console.log(e);
//    //if (mouseLastYPos) {
//    //    if (e.pageY < mouseLastYPos && e.pageY <= 2) {
//    //        checkCookie();
//    //    }
//    //}
//    //mouseLastYPos = e.pageY; 
//    //if (e.clientY < 0) {
//    //    checkCookie();
//    //}
//});


//---------
// Exit intent
function addEvent(obj, evt, fn) {
    if (obj.addEventListener) {
        obj.addEventListener(evt, fn, false);
    } else if (obj.attachEvent) {
        obj.attachEvent("on" + evt, fn);
    }
}


// Track mouseout event on document
this.addEvent(document, "mouseout", function (e) {
    e = e ? e : window.event;
    var from = e.relatedTarget || e.toElement;

    // Reliable, works on mouse exiting window and user switching active program
    if (!from || from.nodeName === "HTML") {
        checkCookie();
    }
});


//$(document).mouseleave(function (e) {
//    if (e.clientY < 0) {
//        checkCookie();
//    }
//});


/************************EXIT EVENT TRACK END*********************************/
$(document).ready(function () {    
    //Falcon
    $('.cross_img').click(function () {
        $(".cleanupmaster_div").hide();
        createCookieMin('mpnctneg30', 'mpnctneg30', 2);
    });

    $('.content img').addClass('img-responsive m-auto');

    updateAndroidMarketLinks();
    FillAuthorDetail();

    //Exit poup up
    //This funciton is used to show banner after 3 sec.
    
    //Click Event of Exit Popup
    $('.exitPopupButton').click(function (e) {
        //Do your event        


        createCookie('fmrtInstalled', 'fmrtInstalled', 5);

        var userAgent = window.navigator.userAgent,
           platform = window.navigator.platform,
           macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
           windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
           iosPlatforms = ['iPhone', 'iPad', 'iPod'],
           os = null;

        if (platform.indexOf("Mac") !== -1) {

            os = 'Mac OS';
            e.preventDefault();
            //window.open("https://lp.itlantivirus.com/itlads/1/?x-context=MInnerPage&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=InnerPage&override=1", "_blank");
            //window.open("https://amzn.to/2shhEqJ", "_blank");
            window.open("https://www.weatherwebtab.com/ext/?utm_source=wwtabhtrit&utm_campaign=wwtabhtrit&pxl=WWT5516_WWT5393_RUNT", "_blank");
            //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
            //try {
            //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Mac OS', window.location.pathname, 0, false);
            //} catch (e) {
            //    //alert(e.message + ":" + e.stack);

            //}
            modelPopupClosewithTrack();
            return false;
        }
        else if (iosPlatforms.indexOf(platform) !== -1) {
            os = 'iOS';
            e.preventDefault();
            //window.open("https://amzn.to/2shhEqJ", "_blank");
            window.open("https://www.weatherwebtab.com/ext/?utm_source=wwtabhtrit&utm_campaign=wwtabhtrit&pxl=WWT5516_WWT5393_RUNT", "_blank");
            //window.open("https://itunes.apple.com/in/app/space-reviver/id1121612158?mt=8", "_blank");
            //try {
            //    ga('send', 'event', 'FreeMalwareDownloadButton', 'iOS', window.location.pathname, 0, false);
            //} catch (e) {
            //    //alert(e.message + ":" + e.stack);

            //}
            modelPopupClosewithTrack();
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            e.preventDefault();



            try {
                ga('send', 'event', 'ITL Exit Banner click', 'Windows', window.location.pathname, 0, false);
                //window.location.assign("https://lp.itlantivirus.com/itlads/1/?x-context=XXXXX&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=XXXXX&override=1");
                //Commented 31 May 2019
                //var win = window.open("https://lp.itlantivirus.com/itlnl/?x-context=XXXXX&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3855_ITL3778_RUNT&utm_pubid=XXXXX&override=1", "_blank");
                //var win = window.open("https://amzn.to/2shhEqJ", "_blank");
                var win = window.open("https://www.weatherwebtab.com/ext/?utm_source=wwtabhtrit&utm_campaign=wwtabhtrit&pxl=WWT5516_WWT5393_RUNT", "_blank");
                win.focus();
                //ProductName = 'ITL Secure VPN';
                //ProductSortName = 'ITLSecureVPN_setup';                
                //funDownloadIndicator();     Comment on 01 Oct 19
                //var win = window.open("https://d9c0iu3r5tlln.cloudfront.net/inisetup/?os=windows&x-base=HTRI&x-context=XXXXX&utm_source=htribndlvpn&utm_campaign=itldefvpn&pxl=HTR4633_HTR4534_HTR2305&utm_pubid=XXXXX&x-at=XXXXX&override=1", "_self");
                //var win = window.open("https://amzn.to/2mPT65y", "_blank");
                //win.focus();
            }
            catch (e) {
                // alert(e.message + ":" + e.stack);
            }
            modelPopupClosewithTrack();
            return false;
        }
        else if (window.navigator.userAgent.indexOf("Android") != -1) {
            os = 'Android';

            e.preventDefault();
            //var _urlfalcon = "http://market.android.com/details?id=com.falcon.clean.phone.master.junk.cleaner.battery.booster&referrer=utm_source%3Dblog_howtoremoveit%26utm_medium%3DFMC2718_FMC2653_RUNT%26utm_term%3Dblog_howtoremoveit%26utm_content%3Dblog_howtoremoveit%26utm_campaign%3Dblog_howtoremoveit";

            //_urlfalcon = _urlfalcon.replace(/^http:\/\/market\.android\.com\//,
            //     "market://");

            //window.open(_urlfalcon, "_top");
            window.open("https://www.webassistplus.com/ext/?utm_source=wbaphtrt&utm_campaign=wbaphtrt&pxl=WBA5388_WBA5269_RUNT&utm_pubid=XXXXXX", "_top");
            //window.open("https://amzn.to/2shhEqJ", "_top");
            //try {
            //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Android', window.location.pathname, 0, false);
            //} catch (e) {
            //    //alert(e.message + ":" + e.stack);

            //}
            modelPopupClosewithTrack();

            return false;
        }
        else if (!os && /Linux/.test(platform)) {
            os = 'Linux';
            e.preventDefault();

            //this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/FreeMalwareRemovalTool.exe";
            //window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/FreeMalwareRemovalTool.exe";
            //try {
            //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Linux', window.location.pathname, 0, false);
            //} catch (e) {
            //    // alert(e.message + ":" + e.stack);

            //}

            modelPopupClosewithTrack();
            return false;
        }

    });

    //Close EVENT of exit popup
    $("#myModalexitpop").on("hidden.bs.modal", function () {

        //clearInterval(downloadTimer);
        //downloadTimer = 30;
        
        createCookie('htripopup', 'htripopup', 1);
        modelPopupClosewithTrack();

        try {
            ga('send', 'event', 'ITL Exit Banner User Closed', 'Windows', window.location.pathname, 0, false);
        }
        catch (e) {
            // alert(e.message + ":" + e.stack);
        }
    });

    //Click Event for Close button download
    $('.innerPageDownloadButton').click(function (e) {
        var userAgent = window.navigator.userAgent,
                   platform = window.navigator.platform,
                   macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
                   windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
                   iosPlatforms = ['iPhone', 'iPad', 'iPod'],
                   os = null;

        if (platform.indexOf("Mac") !== -1) {

            os = 'Mac OS';
            e.preventDefault();
            try {

                ga('send', 'event', 'ITL Inner Button click', 'Mac OS', window.location.pathname, 0, false);

                var win = window.open("https://lp.itlantivirus.com/itlm/?x-context=MInnerPage&utm_source=itlhtrmm&utm_campaign=itlhtrmm&pxl=ITL4196_ITL4098_RUNT&utm_pubid=MInnerPage&override=1", "_blank");
                win.focus();
            }
            catch (e) {
            }           
            
            return false;
        }
        else if (windowsPlatforms.indexOf(platform) !== -1) {
            os = 'Windows';
            e.preventDefault();

            try {

                ga('send', 'event', 'ITL Inner Button click', 'Windows', window.location.pathname, 0, false);
                if (_browserLang == "ja" || _browserLang == "jp") {
                    var win = window.open("https://lp.itlantivirus.com/itlads/1/?x-context=InnerPage&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=InnerPage&override=1&langcode=ja", "_blank");
                    win.focus();
                } else {
                    var win = window.open("https://lp.itlantivirus.com/itlads/1/?x-context=InnerPage&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=InnerPage&override=1", "_blank");
                    win.focus();
                }
            }
            catch (e) {
                
            }            
            return false;
        }
    });

    
    ////console.log("DETECTED BROWSER LANG : " + _browserLang);
    
    try {        
        var uLang_en = { clickText: '<p>New Enhanced Antivirus 2019 Version</p> <button id="exitppdownloadbuttons" class="btn primary-button exitpop-up-download text-center"></button> <p class="popupexitspnclose mb-3">Compatible with: Windows 10, 8.1, 8, 7</p>' };


        var uLang_fr = { clickText: '<p>Nouvelle version améliorée de l&#x27;antivirus 2019</p> <button id="exitppdownloadbuttons" class="btn primary-button exitpop-up-download text-center"></button> <p class="popupexitspnclose mb-3">Compatible avec: Windows 10, 8.1, 8, 7</p>' };

        var uLang_de = { clickText: '<p>Neu verstärkt Antivirus 2019 Version</p> <button id="exitppdownloadbuttons" class="btn primary-button exitpop-up-download text-center"></button> <p class="popupexitspnclose mb-3">Kompatibel mit: Windows 10, 8.1, 8, 7</p>', };
        var uLang_jp = { clickText: '<p>新しい強化されたウイルス対策2019バージョン</p> <button id="exitppdownloadbuttons" class="btn primary-button exitpop-up-download text-center"></button> <p class="popupexitspnclose mb-3">と互換性があり: Windows 10, 8.1, 8, 7</p>', };
        var uLang_nl = { clickText: '<p>Nieuwe verbeterde antivirus 2019 versie</p> <button id="exitppdownloadbuttons" class="btn primary-button exitpop-up-download text-center"></button> <p class="popupexitspnclose mb-3">compatibel met: Windows 10, 8.1, 8, 7</p>', };

        

        //_browserLang = "fr";
        //var hnexitpopuptex = '<h2>Guard Your Pc Against Latest Cyber Threats</h2><span>Real-Time Protection Web Protection <span></span>Live Updates</span>';
        hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
        var spnexitpouptext = "";
        var _imgexitbanners = "itl_pp_en_";
        var _dn_btnexitbanners = "Try it for FREE";
        if (_browserLang == "en") {
            spnexitpouptext = uLang_en.clickText;
            _imgexitbanners = "itl_pp_en_";
            _dn_btnexitbanners = "Try it for FREE";
            hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
            //hnexitpopuptex = '<h2>Guard Your Pc Against Latest Cyber Threats</h2><span><i class="fa fa-check"></i>Real-Time Protection &nbsp;<i class="fa fa-check"></i>Web Protection &nbsp;<i class="fa fa-check"></i>Latest Virus Updates</span>';
        }
        else if (_browserLang == "fr") {
            spnexitpouptext = uLang_fr.clickText;
            _imgexitbanners = "itl_pp_fr_";
            _dn_btnexitbanners = "Essayez-le gratuitement";
            //hnexitpopuptex = '<h2>Semaine de la sécurité sur PC - Éliminez les cybermenaces</h2><p>Renseignez-vous sur la protection de votre PC !</p>';
            //hnexitpopuptex = '<h2>Protégez votre ordinateur contre les dernières menaces cybernétiques</h2><span><i class="fa fa-check"></i>Protection en temps réel &nbsp;<i class="fa fa-check"></i>Protection Web &nbsp;<i class="fa fa-check"></i>Dernières mises à jour de virus</span>';
            hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
        }
        else if (_browserLang == "de") {
            spnexitpouptext = uLang_de.clickText;
            _imgexitbanners = "itl_pp_de_";
            _dn_btnexitbanners = "Probieren Sie es kostenlos aus";
            //hnexitpopuptex = '<h2>PC-Sicherheitswoche - Töte Cyber-Bedrohungen</h2><p>Informieren Sie sich darüber, wie Sie Ihren PC schützen !</p>';
            //hnexitpopuptex = '<h2>Schützen Sie Ihren PC vor den neuesten Cyber-Bedrohungen</h2><span><i class="fa fa-check"></i>Echtzeitschutz &nbsp;<i class="fa fa-check"></i>Internetschutz &nbsp;<i class="fa fa-check"></i>Neueste Virenupdates</span>';
            hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
        }
        else if (_browserLang == "ja" || _browserLang == "jp") {
            spnexitpouptext = uLang_jp.clickText;
            _imgexitbanners = "itl_pp_ja_";
            _dn_btnexitbanners = "無料で試す";
            //hnexitpopuptex = '<h2>PC安全週間-サイバー脅威を殺す</h2><p>PCを安全に保つ方法を学習する !</p>';
            //hnexitpopuptex = '<h2>最新のサイバー脅威からPCを守る</h2><span><i class="fa fa-check"></i>リアルタイム保護 &nbsp;<i class="fa fa-check"></i>ウェブ保護 &nbsp;<i class="fa fa-check"></i>最新のウイルス更新</span>';
            hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
        }
        else if (_browserLang == "nl") {
            spnexitpouptext = uLang_nl.clickText;
            _imgexitbanners = "itl_pp_nl_";
            _dn_btnexitbanners = "Probeer het gratis";
            //hnexitpopuptex = '<h2>PC Safety Week - Dood cyberbedreigingen</h2><p>Leer uzelf hoe u uw pc veilig kunt houden !</p>';
            hnexitpopuptex = '<h2>PC Safety Week - Kill Cyber Threats</h2><p>Educate Yourself On How To Keep Your PC Safe !</p>';
            //hnexitpopuptex = '<h2>Bescherm uw pc tegen de nieuwste cyberdreigingen</h2><span><i class="fa fa-check"></i>Real-time bescherming &nbsp;<i class="fa fa-check"></i>Webbescherming &nbsp;<i class="fa fa-check"></i>Nieuwste virusupdates</span>';
        }
        else {
            spnexitpouptext = uLang_en.clickText;
            _imgexitbanners = "itl_pp_en_";
        }

        if (exitneg_countab == "") {
            exitneg_countab = "odd"
        }

        _imgexitbanners = _imgexitbanners + exitneg_countab + ".png";
        
        try {            
            //$('#spnExitPopupEula').append(spnexitpouptext);
            //$('#exitppdownloadbuttons').append(_dn_btnexitbanners);
            //$('#exitPopuphead').append(hnexitpopuptex);

            //Click Event of Exit Popup
            $('#exitppdownloadbuttons').click(function (e) {
                //Do your event        

          
                createCookie('fmrtInstalled', 'fmrtInstalled', 5);

                var userAgent = window.navigator.userAgent,
                   platform = window.navigator.platform,
                   macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
                   windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
                   iosPlatforms = ['iPhone', 'iPad', 'iPod'],
                   os = null;

                if (platform.indexOf("Mac") !== -1) {

                    os = 'Mac OS';
                    e.preventDefault();
                    try {

                        ga('send', 'event', 'ITL Exit Banner click _' + _imgexitbanners, 'Mac OS', window.location.pathname, 0, false);

                        var win = window.open("https://lp.itlantivirus.com/itlm/?x-context=MExitNag&utm_source=itlhtrmm&utm_campaign=itlhtrmm&pxl=ITL4196_ITL4098_RUNT&utm_pubid=MExitNag&override=1", "_blank");
                        win.focus();

                        //window.location.assign("https://lp.itlantivirus.com/itlads/1/?x-context=MExitNag&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=MExitNag&override=1");


                    }
                    catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                    //window.open("https://itunes.apple.com/us/app/disk-cleanup-pro-boost-space/id1001955632?mt=12");
                    //try {
                    //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Mac OS', window.location.pathname, 0, false);
                    //} catch (e) {
                    //    //alert(e.message + ":" + e.stack);

                    //}
                    modelPopupClosewithTrack();
                    return false;
                }
                else if (iosPlatforms.indexOf(platform) !== -1) {
                    os = 'iOS';
                    e.preventDefault();
                   
                    modelPopupClosewithTrack();
                    return false;
                }
                else if (windowsPlatforms.indexOf(platform) !== -1) {
                    os = 'Windows';
                    e.preventDefault();                 

                    try {
                     
                        ga('send', 'event', 'ITL Exit Banner click _' + _imgexitbanners, 'Windows', window.location.pathname, 0, false);
                        if (_browserLang == "ja" || _browserLang == "jp") {
                            var win = window.open("https://lp.itlantivirus.com/itlads/1/?x-context=ExitNag&utm_source=itlhtrbnr&utm_campaign=itlhtrbnr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=ExitNag&override=1&langcode=ja", "_blank");
                            win.focus();
                        } else {
                            var win = window.open("https://lp.itlantivirus.com/itlads/1/?x-context=ExitNag&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=ExitNag&override=1", "_blank");
                            win.focus();
                        }
                        //window.location.assign("https://lp.itlantivirus.com/itlads/1/?x-context=XXXXX&utm_source=itlhtr&utm_campaign=itlhtr&pxl=ITL3853_ITL3776_RUNT&utm_pubid=XXXXX&override=1");
                      

                    }
                    catch (e) {
                        // alert(e.message + ":" + e.stack);
                    }
                    modelPopupClosewithTrack();
                    return false;
                }
                else if (window.navigator.userAgent.indexOf("Android") != -1) {
                    os = 'Android';

                    e.preventDefault();
                    //var _urlfalcon = "http://market.android.com/details?id=com.falcon.clean.phone.master.junk.cleaner.battery.booster&referrer=utm_source%3Dblog_howtoremoveit%26utm_medium%3DFMC2718_FMC2653_RUNT%26utm_term%3Dblog_howtoremoveit%26utm_content%3Dblog_howtoremoveit%26utm_campaign%3Dblog_howtoremoveit";

                    //_urlfalcon = _urlfalcon.replace(/^http:\/\/market\.android\.com\//,
                    //     "market://");

                    //window.open(_urlfalcon, "_top");

                    //try {
                    //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Android', window.location.pathname, 0, false);
                    //} catch (e) {
                    //    //alert(e.message + ":" + e.stack);

                    //}
                    modelPopupClosewithTrack();

                    return false;
                }
                else if (!os && /Linux/.test(platform)) {
                    os = 'Linux';
                    e.preventDefault();

                    //this.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/FreeMalwareRemovalTool.exe";
                    //window.location.href = "https://d19v7x158tl0yn.cloudfront.net/fmrt/FreeMalwareRemovalTool.exe";
                    //try {
                    //    ga('send', 'event', 'FreeMalwareDownloadButton', 'Linux', window.location.pathname, 0, false);
                    //} catch (e) {
                    //    // alert(e.message + ":" + e.stack);

                    //}

                    modelPopupClosewithTrack();
                    return false;
                }

            });
        }
        catch (e) {

        }

        //$('#imgexitbanners').attr('src', 'https://www.howtoremoveit.info/images/banners/' + _imgexitbanners);

    }
    catch (e) {
        // alert("vishalw"+e.message);
    }

});



function modelPopupClosewithTrack() {
    $("#myModalexitpop").hide();
    $('#myModalexitpop').modal('hide');

    $('body').removeClass('modal-open');
    $('.modal-backdrop').remove();
    $('.modal-backdrop fade in').remove();
}

function updateAndroidMarketLinks() {
    var ua = navigator.userAgent.toLowerCase();
    if (window.navigator.userAgent.indexOf("Android") != -1) {
        // we have android
        $("a[href^='https://play.google.com/store/apps/']").each(function () {
            this.href = this.href.replace('https://play.google.com/store/apps/', "market://");
        });
    }
}



function checkCookie() {
    if (mobileAndTabletcheck()) {
        //Check for mobile
        $("#myModalexitpop").hide();
        if (window.navigator.userAgent.indexOf("Android") != -1) OSName = "Android";
        if (window.navigator.userAgent.indexOf("Mac") != -1) OSName = "Mac";
        switch (OSName) {
            case "Android":
                var x = readCookie('mpnctneg30');
                if (x != null) {
                    $(".cleanupmaster_div").hide();
                }
                else {
                    $(".cleanupmaster_div").show();
                }
                break;
            case "Mac":
                $(".cleanupmaster_div").hide();
                break;
            default:
                break;
        }
    }
    else {

        $(".cleanupmaster_div").hide();
        //To check cookeies exit or not
        var ppclik = readCookie('fmrtInstalled');
        if (ppclik == null) {
            var _htripopup = readCookie('htripopup');
            if (_htripopup == null) {
                var userAgent = window.navigator.userAgent,
                  platform = window.navigator.platform,
                  macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
                  windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
                  iosPlatforms = ['iPhone', 'iPad', 'iPod'],
                  os = null;

                if (platform.indexOf("Mac") == -1) {
                    $('#myModalexitpop').modal();
                }
                try {
                    //ga('send', 'event', 'ITL Exit Banner User View', 'All', window.location.pathname, 0, false);
                }
                catch (e) {
                    // alert(e.message + ":" + e.stack);
                }

                //createCookie('fmrtInstalled', 'fmrtInstalled', 1);
            }
        }
    }
}


function CloseDiv() {
    $('#myModal').hide();
    $('#idOpacityDiv').hide();
}

$('#ntshw').click(function (evt) {
    try {

        evt.preventDefault();
        createCookie('fmrtInstalled', 'fmrtInstalled', 30);

        $("#myModalexitpop").hide();
        $('#myModalexitpop').modal('hide');

    } catch (e) {
        // alert(e.message);
    }
});

function closeCleanUpTopBan() {
    //Redirect to store
    $(".cleanupmaster_div").hide();
    closeTopBanner();
    return true;
}
function closeTopBanner() {
    createCookieMin('mpnctneg30', 'mpnctneg30', 2);

}

function mobileAndTabletcheck() {
    var check = false;
    (function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true; })(navigator.userAgent || navigator.vendor || window.opera);
    return check;
};




////this Block is use for Disable SELECT < COPY 

//$(document).ready(function () {
//    $(document).bind("contextmenu", function (e) {
//        return false;
//    });

//    $('.content').bind('cut copy paste', function (e) {
//        e.preventDefault();
//    });

//    $('.content').disableSelection();
//});


/*This is fucnation to disable selection on pages 
to use it just call 
$( ‘element’ ).disableSelection();
or
$( ‘element’ ).enableSelection();
*/
//(function ($) {
//    $.fn.disableSelection = function () {
//        return this
//		.attr('unselectable', 'on')
//		.css('user-select', 'none')
//		.css('-moz-user-select', 'none')
//		.css('-khtml-user-select', 'none')
//		.css('-webkit-user-select', 'none')
//		.on('selectstart', false)
//		.on('contextmenu', false)
//		.on('keydown', false)
//		.on('mousedown', false);
//    };

//    $.fn.enableSelection = function () {
//        return this
//		.attr('unselectable', '')
//		.css('user-select', '')
//		.css('-moz-user-select', '')
//		.css('-khtml-user-select', '')
//		.css('-webkit-user-select', '')
//		.off('selectstart', false)
//		.off('contextmenu', false)
//		.off('keydown', false)
//		.off('mousedown', false);
//    };

//})(jQuery);




//This is use for the author details

function FillAuthorDetail() {

    var _authorDv = '<div class="container AuthorContainer"> <div class="col-md-2 divImagebox"> <img alt="Bootstrap Image Preview" src="https://www.howtoremoveit.info/[imgSrc]" style="height: 100px; border: 4px solid white;" class="img-circle img-responsive center-block" /> </div> <div class="col-md-10" > <span class="spAuthorName">[aAuthorName]</span><span class="spAuthorDesignation">[adesignation]</span> <p class="spAuthorDescription">[aAuthorDescription]</p></div></div>';

    var _postId = 0;
    try {
        _postId = document.getElementById('ContentPlaceHolder1_lblDnID').innerHTML;
    } catch (e) { }

    if (_postId > 0) {
        $.ajax({
            type: "POST",
            url: 'https://www.howtoremoveit.info/Default.aspx/GetAutorDetails',
            //   url: 'http://localhost:58547/Default.aspx/GetAutorDetails',
            data: "{'postId':'" + _postId + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            async: true,
            success: function (data) {
                // //console.log(data);
                try {
                    var _dataA = JSON.parse(data.d);
                    _authorDv = _authorDv.replace("[aAuthorName]", _dataA.AuthorName);
                    _authorDv = _authorDv.replace("[adesignation]", _dataA.Designation);
                    _authorDv = _authorDv.replace("[imgSrc]", _dataA.ImageUrl);
                    _authorDv = _authorDv.replace("[aAuthorDescription]", _dataA.AuthorBio);
                    $("#divauthormain").html(_authorDv);
                } catch (e) {

                }

            },
            error: function (data) {
                // alert("failed posted data");

            }
        });
    }

}




















;
////change css for multilang according to screen sizes
function SetCssAccordingToLangCode(lng, windowwidth) {
    if (lng != 'en') {

        //this is used when we show add on mobiles for internal pages

        if (windowwidth >= 1200 && windowwidth <= 2500) {
            $('#downloadbtndiv3.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '14px');
            $('.content p.pgadbtnadfixdivpara').css('font-size', '20px');
            $('.content p.pgadbtnadfixdivpara1').css('font-size', '16px');
            $(".pgadlimtdofr2").css('font-size', '14px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('font-size', '14px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('top', '14px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('display', 'block');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('white-space', 'inherit');
            $(".pgadlimtdofr").css('right', '36px');
            $(".pgadlimtdofr").css('top', '90px');
            $(".pgadbtnad1divpara").css('padding', '15px 44px');
            $(".pgadbtnad1divpara").css('margin-left', '150px');
            $(".content p.pgadbtnad1divpara").css('font-size', '15px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('font-size', '16px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('display', 'block');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('white-space', 'inherit');
            $(".downloadSideControlAd small").css('font-size', '12px');
            $(".btn.btn-lg.btncontrlblank").css('font-size', '16px');
            $(".btn.btn-lg.btncontrlblank").css('display', 'block');
            $(".btn.btn-lg.btncontrlblank").css('white-space', 'inherit');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '14px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '14px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            //$("#popupdownloadbtnspn").css("right", "230px");
        }
        else if (windowwidth >= 1024 && windowwidth <= 1199) {
            $(".content p.pgadbtnadfixdivpara").css('font-size', '13px');
            $(".content p.pgadbtnadfixdivpara1").css('font-size', '12px');
            $(".pgadbtnad2div").css("height", "141px")
            $('#downloadbtndiv3.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '14px');
            $(".pgadlimtdofr2").css('font-size', '12px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('font-size', '10px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('top', '10px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('display', 'block');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('white-space', 'inherit');
            $(".pgadlimtdofr").css('right', '20px');
            $(".pgadlimtdofr").css('top', '78px');
            $(".pgadlimtdofr").css('font-size', '9px');
            $(".pgadbtnad1divpara").css('padding', '15px 0px');
            $(".pgadbtnad1divpara").css('margin-left', '118px');
            $(".content p.pgadbtnad1divpara").css('font-size', '15px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('font-size', '16px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('display', 'block');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('white-space', 'inherit');
            $(".downloadSideControlAd small").css('font-size', '12px');
            $(".btn.btn-lg.btncontrlblank").css('font-size', '16px');
            $(".btn.btn-lg.btncontrlblank").css('display', 'block');
            $(".btn.btn-lg.btncontrlblank").css('white-space', 'inherit');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '14px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '14px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            $('.pgadbtnfixaddiv').css('padding', '10px 4px');
            $('.content p.pgadbtnad2divpara').css('font-size', '12px');
            $(".btn.btn-success.btn-round-lg.btn-lg.bodyButtonDownload").css("display", "block");
            $(".btn.btn-success.btn-round-lg.btn-lg.bodyButtonDownload").css("white-space", "inherit");
            //$("#popupdownloadbtnspn").css("right", "230px");
        }
        else if (windowwidth >= 768 && windowwidth <= 1023) {
            $(".content p.pgadbtnadfixdivpara").css('font-size', '12px');
            $(".content p.pgadbtnadfixdivpara1").css('font-size', '10px');
            $(".pgadbtnad2div").css("height", "141px")
            $('#downloadbtndiv3.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '14px');
            $(".pgadlimtdofr2").css('font-size', '12px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('font-size', '10px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('top', '10px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('display', 'block');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('white-space', 'inherit');
            $(".pgadlimtdofr").css('right', '29px');
            $(".pgadlimtdofr").css('top', '78px');
            $(".pgadlimtdofr").css('font-size', '9px');
            $(".pgadbtnad1divpara").css('padding', '4px 0px');
            $(".pgadbtnad1divpara").css('margin-left', '28px');
            $(".content p.pgadbtnad1divpara").css('font-size', '12px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('font-size', '16px');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('display', 'block');
            $(".btn.btn-lg.btncontrl.downloadSideControlAd").css('white-space', 'inherit');
            $(".downloadSideControlAd small").css('font-size', '12px');
            $(".btn.btn-lg.btncontrlblank").css('font-size', '16px');
            $(".btn.btn-lg.btncontrlblank").css('display', 'block');
            $(".btn.btn-lg.btncontrlblank").css('white-space', 'inherit');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '13px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '12px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            $('.pgadbtnfixaddiv').css('padding', '10px 4px');
            $('.content p.pgadbtnad2divpara').css('font-size', '12px');
            $(".btn.btn-success.btn-round-lg.btn-lg.bodyButtonDownload").css("display", "block");
            $(".btn.btn-success.btn-round-lg.btn-lg.bodyButtonDownload").css("white-space", "inherit");
            //$("#popupdownloadbtnspn").css("right", "230px");
        }
        else if (windowwidth >= 526 && windowwidth <= 767) {
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '13px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '12px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            $('.pgadbtnad2div ').css('height', '201px');
        }
        else if (windowwidth >= 376 && windowwidth <= 524) {
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '13px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '12px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            $('.pgadbtnad2div ').css('height', '215px');

        }
        else if (windowwidth >= 320 && windowwidth <= 375) {
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '13px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('display', 'block');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('white-space', 'inherit');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('font-size', '12px');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('display', 'block');
            $('.btn.btn-lg.btnaddmalwarescanfix2').css('white-space', 'inherit');
            $('.pgadbtnad2div ').css('height', '245px');
        }
    }
    else {
        //en
        if (windowwidth >= 1200 && windowwidth <= 2500) {
            $(".content p.pgadbtnad1divpara").css('font-size', '20px');
            $('.btn.btn-lg.pgadbtnfixaddivbutton').css('font-size', '16px');
            $('.content p.pgadbtnadfixdivpara').css('font-size', '24px');
            $('.content p.pgadbtnadfixdivpara1').css('font-size', '16px');
            //$("#popupdownloadbtnspn").css("right", "230px");
        }
        else if (windowwidth >= 1024 && windowwidth <= 1199) {
            $(".content p.pgadbtnadfixdivpara").css('font-size', '13px');
            $(".content p.pgadbtnadfixdivpara1").css('font-size', '12px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('font-size', '14px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('top', '14px');
            $(".pgadlimtdofr").css("right", "70px");
            $(".pgadlimtdofr").css("top", "80px");
            //$("#popupdownloadbtnspn").css("right", "230px");
        }

        else if (windowwidth >= 768 && windowwidth <= 1023) {
            $(".content p.pgadbtnadfixdivpara").css('font-size', '13px');
            $(".content p.pgadbtnadfixdivpara1").css('font-size', '12px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('font-size', '14px');
            $("#downloadbtndiv1.btn.btn-lg.btnaddmalwarescanfix").css('top', '14px');
            $(".pgadlimtdofr").css("right", "45px");
            $(".pgadlimtdofr").css("top", "80px");
            //$("#popupdownloadbtnspn").css("right", "230px");
        }
        
    }
}
;
/**
*
* taoco - 'Table of Contents' jQuery plugin
*
* @author Andre Firchow (http://firchow.net)
* @url https://github.com/andrefirchow/taoco
*
*/

(function ($) {

    $.fn.taoco = function (options) {

        // get/set ID to the container to use taoco
        // independently and multiple times per page
        var containerID = this.attr('id');
        if (typeof (containerID) === 'undefined') {
            containerID = Math.floor(Math.random() * 10000000000000001);
            this.attr('id', containerID);
        }


        // set the defaults settings
        var settings = $.extend({
            debug: false,
            scope: 'body',
            headings: ['h2', 'h3'],
            title: 'Table of contents',
            listType: 'ul',
            exclude: ['.exclude'],
            highlight: true,
            smoothScroll: true,
            smoothScrollDuration: 500,
            headingOffset: 50,
            additionalClass: '' // add an additional class to the nav container
        }, options);


        // debug outputs
        //if(settings.debug) {
        //    //console.log('taoco settings');
        //    //console.log('------------------');
        //    //console.log('debug = ' + settings.debug);
        //    //console.log('scope = ' + settings.scope);
        //    //console.log('headings = ' + settings.headings);
        //    //console.log('title = ' + settings.title);
        //    //console.log('listType = ' + settings.listType);
        //    //console.log('exclude = ' + settings.exclude);
        //    //console.log('highlight = ' + settings.highlight);
        //    //console.log('smoothScroll = ' + settings.smoothScroll);
        //    //console.log('smoothScrollDuration = ' + settings.smoothScrollDuration);
        //    //console.log('additionalClass = ' + settings.additionalClass);
        //    //console.log('------------------');
        //}


        // Set variables
        var el = $(this), // Cache this
            depth = null,     // Keeps track of heading depth
            line = '',       // list item
            label = '',       // Contains the label of toc element
            taocoNav = '',       // the list
            counter = 0,        // the list
            allHeadings = settings.headings.join(', '),
            exclusions = settings.exclude.join(', '),
            // clickJump   = false,
            $headings = $(settings.scope).find(allHeadings).not(exclusions);


        // set optional title element first before list starts
        if (settings.title.length >= 1) {
            taocoNav = '<h2>' + settings.title + '</h2>';
        }


        // create the nav list
        $headings.each(function () {

            var item = $(this),
                label = item.text();
            tag = this.tagName,
            level = tag.substr(1, 1),
            id = item.attr('id');

            item.addClass('item-' + counter);

            // create and set id if it's 'undefined' on this item
            if (typeof (id) === 'undefined') {
                id = label.toLowerCase().replace(/[^a-zA-Z0-9]/g, '-').replace('---', '-').replace('--', '-').trimChars('-');
                //id = $.trim(id, '-');
                item.attr('id', id);
            }

            // close list and item(s) when difference is more than one level
            if ((depth - level) > 1) {
                for (var i = 1; i < (depth - level) ; i++) {
                    taocoNav += "</" + settings.listType + "></li>";
                }
            }

            // open list element
            if (depth < level) {
                taocoNav += "<" + settings.listType + ">";
            }

                // If the current depth is greater than the heading
                // level, close the list that was previously opened
            else if (depth > level) {
                taocoNav += "</" + settings.listType + "></li>";
            }

                // close the list item if the current depth equals the heading level,
            else if (depth == level) {
                taocoNav += "</li>";
            }

            // Set the current depth equal to this heading level
            depth = level;

            // Build the text for this item in the table of contents
            // and leave the list item open
            taocoNav += '<li class="list-item-' + counter + '"><a class="tblancr" href="#' + id + '">' + label + '</a>';

            counter++;

        });


        // prepend the taoco list to container
        if (taocoNav.indexOf('li') > 0)
            el.addClass('taoco ' + settings.additionalClass).attr('role', 'navigation').prepend($(taocoNav));


        // enable smooth scrolling if enabled
        if (settings.smoothScroll) {

            el.on('click', 'a.tblancr', function (e) {
                var target = $(this.hash);
                //window.location.href = window.location.href + "" + target;

                $('html, body').animate({
                    scrollTop: target.offset().top - 70
                }, settings.smoothScrollDuration);

                return true;
            });
        }


        // handle highlighting of active list-item at scrolling if enabled
        if (settings.highlight) {

            var userScrolled = false;

            $(window).scroll(function () {
                userScrolled = true;
            });

            setInterval(function () {
                if (userScrolled) {

                    var scrollTop = $(window).scrollTop();
                    var windowHeight = $(window).height();

                    $headings.each(function () {
                        var offset = $(this).offset();
                        if ((scrollTop - settings.headingOffset) <= offset.top && ($(this).height() + offset.top) < (scrollTop + windowHeight)) {
                            setActive($(this).attr('class').slice(-1));
                            return false;
                        }
                    });

                    userScrolled = false;
                }
            }, 100);

        }


        // function to set 'active' to  selected nav item
        function setActive(num) {
            ////console.log('setActive(' + num + ')');
            $('#' + containerID + ' li').removeClass('active');
            $('#' + containerID + ' li.list-item-' + num).addClass('active');
        }


    };
    String.prototype.trimChars = function (c) {
        var re = new RegExp("^[" + c + "]+|[" + c + "]+$", "g");
        return this.replace(re, "");
    }
}(jQuery));


;
