if(window.jQuery){$(document).ready(function(){$(".btn").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})})}sfHover=function(){if(document.getElementById("nav")!=null){var B=document.getElementById("nav").getElementsByTagName("LI");for(var A=0;A<B.length;A++){B[A].onmouseover=function(){this.className+=" sfhover"};B[A].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}}};if(window.attachEvent){window.attachEvent("onload",sfHover)}if(window.jQuery){jQuery.extend({dimScreen:function(B,A,D){if(jQuery("#__dimScreen").size()>0){return }if(typeof B=="function"){D=B;B=null}if(typeof A=="function"){D=A;A=null}if(B<1){var C=A;A=B;B=C}if(A>=1){var C=B;B=A;A=C}B=(B>0)?B:500;A=(A>0)?A:0.5;return jQuery("<div></div>").attr({id:"__dimScreen",fade_opacity:A,speed:B}).css({background:"#000",height:$(document).height()+"px",left:"0px",opacity:0,position:"absolute",top:"0px",width:$(document).width()+"px",zIndex:999}).appendTo(document.body).fadeTo(B,0.7,D)},dimScreenStop:function(D){var A=jQuery("#__dimScreen");var B=A.attr("fade_opacity");var C=A.attr("speed");A.fadeOut(C,function(){A.remove();if(typeof D=="function"){D()}})}})}if(window.jQuery){jQuery.extend({showAkModal:function(D,F,A){var B={};var I={margin:1,border:1,padding:1,scroll:0};var C=$(window).width();var E=$(window).scrollLeft();var G=$(window).height();var H=$(window).scrollTop();$("body").append("<div class='popupLogin'><div class='popupBg'><a href='#' class='close'>Sluiten</a><iframe width='"+F+"' height='"+A+"'  frameborder=0 marginwidth='0' marginheight='0' scrolling='NO'  name='frmTest' src='"+D+"'></iframe></div></div>");$(".popupLogin").css({left:(((C/2-F/2))+E-98)+"px",top:(((G/2-A/2))+H-120)+"px"});$(".close").click(function(J){J.preventDefault();$.akModalRemove()});$.dimScreen(500,0.7,function(){$(".popupLogin").fadeIn(500)});var B={};B=$(".popupLogin").offset({scroll:false});X_left=B.left+F-16;X_top=B.top;$("#close").css({left:X_left,top:X_top})},akModalRemove:function(A){if(!A){$(".popupLogin").fadeOut(500);$(".popupLogin").remove();$.dimScreenStop()}else{A.$(".popupLogin").fadeOut(500);A.$(".popupLogin").remove();A.$.dimScreenStop()}},akModalHideAndRedirect:function(B,A){if(!B){$(".popupLogin").fadeOut(500);$(".popupLogin").remove();$.dimScreenStop();if(A.length>0){window.location=A}else{window.location.reload(true)}}else{if(A.length>0){B.location=A}else{B.location=B.location}}}})}