var Pushup={Version:"2.0.2",options:{appearDelay:.5,fadeDelay:6,images:"../images/pushup/",message:"Je bekijkt de Challenge website met een oude browserversie.\nUpdate s.v.p.",reminder:{hours:6,message:"Herinner mij hier later nog een keer aan..."},skip:true},updateLinks:{IE:"http://www.microsoft.com/windows/downloads/ie/",Firefox:"http://www.getfirefox.com",Safari:"http://www.apple.com/safari/download/",Opera:"http://www.opera.com/download/"}};(function(){function h(b,c){var e=d({align:"top left",repeat:"no-repeat",sizingMethod:"crop",backgroundColor:""},arguments[2]||{});d(b.style,a.IE&&a.IE<7?{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+"'', sizingMethod='"+e.sizingMethod+"')"}:{background:e.backgroundColor+" url("+c+") "+e.align+" "+e.repeat})}function g(a){var b=e.get(a),c=arguments[1]||{};if(b>0){setTimeout(function(){e.set(a,b-=.05);g(a,c)},.01)}else{a.style.display="none";if(c.afterFinish)c.afterFinish.call()}}function f(b){var c=e.get(b),d=arguments[1]||{};if(b.style.display!="block")b.style.display="block";if(c<1){setTimeout(function(){e.set(b,c+=.05);f(b,d)},.01)}else{if(a.IE&&b.style.filter)b.style.removeAttribute("filter");if(d.afterFinish)d.afterFinish.call()}}function d(a,b){for(var c in b)a[c]=b[c];return a}var a=function(a){function b(b){var c=(new RegExp(b+"([\\d.]+)")).exec(a);return c?parseFloat(c[1]):true}return{IE:!!(window.attachEvent&&a.indexOf("Opera")===-1)&&b("MSIE "),Opera:a.indexOf("Opera")>-1&&window.opera&&opera.version&&parseFloat(opera.version()),WebKit:a.indexOf("AppleWebKit/")>-1&&b("AppleWebKit/"),Gecko:a.indexOf("Gecko")>-1&&a.indexOf("KHTML")===-1&&b("rv:"),Chrome:a.indexOf("Chrome")>-1&&b("Chrome/")}}(navigator.userAgent);var b=function(a,b){return{IE:a.IE&&a.IE<9&&!/(Windows XP)/.test(b),Firefox:a.Gecko&&b.indexOf("Firefox")>-1&&a.Gecko<2,Safari:a.WebKit&&!a.Chrome&&b.indexOf("Safari")>-1&&a.WebKit<533.2,Opera:a.Opera&&a.Opera<11}}(a,navigator.userAgent);for(var c in a)if(a[c])Pushup._browserUsed=c;Pushup._updateBrowser=b[Pushup._browserUsed]&&Pushup._browserUsed;if(!Pushup._updateBrowser&&Pushup.options.skip)return;d(Pushup,{start:function(){if(/^(https?:\/\/|\/)/.test(this.options.images))this.images=this.options.images;else{var a=/pushup(?:-[\w\d.]+)?\.js(.*)/,b=document.getElementsByTagName("script");for(var c=0,d=b.length;c<d;c++){var e=b[c];if(e.src&&e.src.match(a))this.images=e.src.replace(a,"")+this.options.images}}if(Pushup._updateBrowser)this.show()},build:function(){this.pushup=document.createElement("div");e.set(this.pushup,0);this.pushup.id="pushup";this.messageLink=this.pushup.appendChild(document.createElement("a"));this.messageLink.className="pushup_messageLink";this.messageLink.target="_blank";this.messageLink.appendChild(this.icon=document.createElement("div"));this.icon.className="pushup_icon";this.messageLink.appendChild(this.message=document.createElement("span"));this.message.className="pushup_message";this.message.innerHTML=this.options.message;var b=this.options.reminder.hours;if(b&&Pushup.cookiesEnabled){this.pushup.appendChild(this.reminder=document.createElement("a"));this.reminder.href="#";this.reminder.className="pushup_reminder";this.pushup.className="withReminder";this.reminder.innerHTML=this.options.reminder.message}if(a.Opera&&(!window.opera.version||parseFloat(window.opera.version())<9.25)){this.messageLink.style.cssFloat="none";this.reminder.style.cssFloat="none"}Pushup.setBrowser(Pushup._updateBrowser);document.body.appendChild(this.pushup);Pushup.addEvents()},addEvents:function(){if(this.reminder){j.add(this.reminder,"click",function(a){j.stop(a);Pushup.setReminder(Pushup.options.reminder.hours);Pushup.fade()})}j.add(this.pushup,"mouseover",Pushup.clearFade);j.add(this.pushup,"mouseout",function(){Pushup.fade({delay:Pushup.options.fadeDelay})})},setBrowser:function(a){a=a||"IE";h(this.icon,this.images+a.toLowerCase()+".png");this.messageLink.href=this.updateLinks[a]},show:function(){var a=typeof arguments[0]=="string"?arguments[0]:Pushup._browserUsed||"IE",b=arguments[a?1:0]||{};if(b.resetReminder)Pushup.resetReminder();if(!b.ignoreReminder&&Pushup.cookiesEnabled&&i.get("_pushupBlocked"))return;if(!Pushup.pushup)Pushup.build();e.set(Pushup.pushup,0);Pushup.pushup.style.display="block";if(a)Pushup.setBrowser(a);this.appear({fadeAfter:true,delay:Pushup.options.appearDelay})},appear:function(a){Pushup.clearFade();var b=arguments[0]||{};return window.setTimeout(function(){f(Pushup.pushup,{afterFinish:function(){if(b.fadeAfter)Pushup.fade({delay:Pushup.options.fadeDelay})}})},(b.delay||.01)*1e3)},clearFade:function(){if(Pushup._fadeTimer){window.clearTimeout(Pushup._fadeTimer);Pushup._fadeTimer=null}},fade:function(){var a=arguments[0]||{};Pushup._fadeTimer=window.setTimeout(function(){g(Pushup.pushup)},(a.delay||.01)*1e3)},setReminder:function(a){i.set("_pushupBlocked","blocked",{duration:1/24*a})},resetReminder:function(){i.remove("_pushupBlocked")}});var e={set:function(a,b){a.style.opacity=b==1||b===""?"":b<1e-5?0:b},get:function(a){var b=a.style.opacity;return b?parseFloat(b):1}};if(a.IE){e.get=function(a){var b=a.style.opacity;if(!b&&a.currentStyle)b=a.currentStyle[b];if(b=(a.style.filter||"").match(/alpha\(opacity=(.*)\)/))if(b[1])return parseFloat(b[1])/100;return 1};e.set=function(a,b){function c(a){return a.replace(/alpha\([^\)]*\)/gi,"")}var d=a.currentStyle;if(d&&!d.hasLayout||!d&&a.style.zoom=="normal")a.style.zoom=1;var e=a.style.filter,f=a.style;if(b==1||b==="")(e=c(e))?f.filter=e:f.filter="";else f.filter=c(e)+"alpha(opacity="+b*100+")"}}var i={set:function(a,b){var c="",d=arguments[2]||{};if(d.duration){var e=new Date;e.setTime(e.getTime()+d.duration*1e3*60*60*24);b+="; expires="+e.toGMTString()}document.cookie=a+"="+b+c+"; path=/"},remove:function(a){this.set(a,"",-1)},get:function(a){var b=document.cookie.split(";"),c=a+"=";for(var d=0,e=b.length;d<e;d++){var f=b[d];while(f.charAt(0)==" ")f=f.substring(1,f.length);if(f.indexOf(c)==0)return f.substring(c.length,f.length)}return null}};Pushup.cookiesEnabled=function(a){if(i.get(a))return true;i.set(a,"test",{duration:15});return i.get(a)}("_pushupCookiesEnabled");var j={add:function(a,b,c){if(a.attachEvent){a["e"+b+c]=c;a[b+c]=function(){a["e"+b+c](window.event)};a.attachEvent("on"+b,a[b+c])}else a.addEventListener(b,c,false)},stop:function(b){if(a.IE){b.cancelBubble=true;b.returnValue=false}else{b.preventDefault();b.stopPropagation()}}};Pushup.start()})()
