!function(a){a.fn.Notification=function(b){var c=a.extend({Variable1:["Emma","Noah","Olivia","Liam","Ava","William"],Variable2:["Bangkok","London","Paris","Dubai","New York","Singapore"],Amount:[100,2500],Content:"[varible1] from [varible2] has just placed an order for $[amount].",Show:["stable",5,25],Close:5,Time:[0,23],AnimationEffectOpen:"fadeIn",AnimationEffectClose:"fadeOut",Number:3,Link:[false,"https://wow-estore.com/item/wow-herd-effects-pro/","_blank"],CloseButton:false},b);return this.each(function(){var s=this;var e=s.id;var f=0;var l=0;var j=o("FakeNotClick");var n=new Date();var d=n.getHours();if(c.Time[0]<=d&&d<=c.Time[1]&&j==null){q()}a(s).click(function(){if(c.Link[0]==true&&c.Link[3]==true){document.cookie="FakeNotClick=yes; path=/;"}});a("#"+e+" .notification-close").click(function(){document.cookie="FakeNotClick=yes; path=/;";r()});g();function g(){a(s).addClass("wow-animated");if(c.Link[0]==true){a(s).attr("onclick","window.open('"+c.Link[1]+"','"+c.Link[2]+"');");a(s).css({cursor:"pointer"})}if(c.CloseButton==true){a(s).find(".notification-close").css({display:"block"})}}function q(){if(c.Show[0]=="stable"){var t=c.Show[1]*1000}else{var t=(Math.floor(Math.random()*(c.Show[2]-c.Show[1]))+c.Show[1])*1000}setTimeout(function(){p();a(s).show();i();var z=Math.floor(Math.random()*c.Variable1.length);var v=Math.floor(Math.random()*c.Variable2.length);var y=Math.floor(Math.random()*c.Variable3.length);var A=Math.floor(Math.random()*c.Variable4.length);var x=Math.floor(Math.random()*c.Variable5.length);var u=Math.floor(Math.random()*(c.Amount[0]-c.Amount[1]))+c.Amount[1];if(c.Content.indexOf("[varible1]")+1){var w=c.Content.replace("[varible1]",c.Variable1[z])}else{var w=c.Content.replace("[variable1]",c.Variable1[z])}if(w.indexOf("[varible2]")+1){var w=w.replace("[varible2]",c.Variable2[v])}else{var w=w.replace("[variable2]",c.Variable2[v])}if(w.indexOf("[variable3]")+1){var w=w.replace("[variable3]",c.Variable3[y])}else{var w=w.replace("[variable3]",c.Variable3[y])}if(w.indexOf("[variable4]")+1){var w=w.replace("[variable4]",c.Variable4[A])}else{var w=w.replace("[variable4]",c.Variable4[A])}if(w.indexOf("[variable5]")+1){var w=w.replace("[variable5]",c.Variable5[x])}else{var w=w.replace("[variable5]",c.Variable5[x])}var w=w.replace("[amount]",u);a(s).find(".notification-text").html(w);f++;k()},t)}function k(){var t=c.Close*1000;setTimeout(function(){m();h();if(f<c.Number&&l==0){q()}},t)}function r(){m();h();l++}function i(){a(s).addClass(c.AnimationEffectOpen)}function m(){a(s).removeClass(c.AnimationEffectOpen)}function h(){a(s).addClass(c.AnimationEffectClose)}function p(){a(s).removeClass(c.AnimationEffectClose)}function o(u){var t=document.cookie.match("(^|;) ?"+u+"=([^;]*)(;|$)");if(t){return(unescape(t[2]))}else{return null}}})}}(jQuery);