function NH_loadbannere() { $('#nichehuset_banner_b').html('<a href=\'http://annoncer.nichehuset.dk/banner/gateway.klik.php?annonceid=6684&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&ref=https%3A%2F%2Fwww.altinget.dk%2Farena%2Fkursus%2Fkunstigintelligens-offentlige-sektor-2\' target=\'_blank\' title=\'https://www.altinget.dk/arena/kursus/kunstigintelligens-offentlige-sektor-2\'><img src=\'https://cache.nichehuset.dk/annoncer/bannerannoncer/images/kampagne1542/annonce6684/Unknown.jpeg\' style=\'width: 100%; height: auto; max-width: 300px;\' class=\'ad-rectangle\'></a><img src=\'https://annoncer.nichehuset.dk/banner/trackimg.php?annonceid=6684&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&249905446\' style=\'display: none; width: 0 !important; height: 0 !important;\'>'); $('#nichehuset_banner_c').html('<a href=\'http://annoncer.nichehuset.dk/banner/gateway.klik.php?annonceid=6692&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&ref=http%3A%2F%2Fcache.nichehuset.dk%2Fannoncer%2Fbannerannoncer%2Fuploads%2Fgroenbechshotel_7sep_2019.pdf\' target=\'_blank\' title=\'http://cache.nichehuset.dk/annoncer/bannerannoncer/uploads/groenbechshotel_7sep_2019.pdf\'><img src=\'https://cache.nichehuset.dk/annoncer/bannerannoncer/images/kampagne1549/annonce6692/GROENBECHS_BANNERP.png\' style=\'margin-top: 34px; top: -24px;\' id=\'nichehuset_banner_c_follow\' class=\'ad \'></a><div style=\'width: 160px; height: 600px; background-color: transparent;\'></div><img src=\'https://annoncer.nichehuset.dk/banner/trackimg.php?annonceid=6692&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&1708967228\' style=\'display: none; width: 0 !important; height: 0 !important;\'>'); $('#nichehuset_banner_d').html('<a href=\'http://annoncer.nichehuset.dk/banner/gateway.klik.php?annonceid=6690&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&ref=http%3A%2F%2Ftaenketanken.mm.dk%2Fkodeks-for-god-sundhedsformidling%2F\' target=\'_blank\' title=\'http://taenketanken.mm.dk/kodeks-for-god-sundhedsformidling/\'><img src=\'https://cache.nichehuset.dk/annoncer/bannerannoncer/images/kampagne1547/annonce6690/TMM_Kodeks_for_Sundhedsformidling_160x600px.jpg\' style=\'margin-top: 34px; top: -24px;\' id=\'nichehuset_banner_d_follow\' class=\'ad \'></a><div style=\'width: 160px; height: 600px; background-color: transparent;\'></div><img src=\'https://annoncer.nichehuset.dk/banner/trackimg.php?annonceid=6690&medie=mandagmorgen&udgivelse=mm.dk&platform=portal&1942687361\' style=\'display: none; width: 0 !important; height: 0 !important;\'>'); 			function adjustbannersize(){				if ($(window).width() < 768) { 					$("img.ad-rectangle").css("max-width", "100%");					$("img.ad-banner_e").css("max-width", "100%");									} else {					$("img.ad-rectangle").css("max-width", "300px");					$("img.ad-banner_e").css("max-width", "300px");				}					}						$(window).resize(function(){ adjustbannersize(); });			$(function(){ adjustbannersize(); });																	$(window).resize(function(){ 					if ($(window).width() < 1250) { 						$('#nichehuset_banner_c').removeAttr('style');						$('#nichehuset_banner_d_follow').removeAttr('style');					}								});								var isChromium = window.chrome;				var winNav = window.navigator;				var vendorName = winNav.vendor;				var isOpera = typeof window.opr !== "undefined";				var isIEedge = winNav.userAgent.indexOf("Edge") > -1;				var isIOSChrome = winNav.userAgent.match("CriOS");								$.fn.followTo = function (pos) {					var $this = this;					var $window = $(window);					$window.scroll(function (e) {						if ($window.scrollTop() > pos) {							if($this.attr('id') == 'nichehuset_banner_c_follow'){								$this.css({									position: 'fixed',									top: '-0px',									'margin-top': '0px',									width: '160',									display: 'block',									height: '600'								});							} else if($this.attr('id') == 'NICHEHUSET_IFRAME_CONTAINER_d'){								 $this.css({									position: 'fixed',									'margin-top': '-24px',									'margin-left': '0px',									display: 'block'								});																if (isIOSChrome || (isChromium !== null &&  typeof isChromium !== "undefined" &&  vendorName === "Google Inc." &&  isOpera === false &&  isIEedge === false)) {    $this.css({'margin-left': '-160px'});} 															} else if($this.attr('id') == 'NICHEHUSET_IFRAME_CONTAINER_c'){								 $this.css({									position: 'fixed',									'margin-top': '-24px',									display: 'block'								});							} else {								$this.css({									position: 'fixed',									top: '0px',									'margin-top': '0px',									width: '160',									display: 'block',									height: '600'								});							}						} else {							if($this.attr('id') == 'nichehuset_banner_c_follow'){								$this.css({									position: 'absolute',									top: '-24px',									'margin-top': '34px',									width: '160',																		display: 'block',									height: '600'								});							} else if($this.attr('id') == 'NICHEHUSET_IFRAME_CONTAINER_d'){								$this.css({									position: 'relative',									'margin-top': '10px',									'margin-left': '0px', 									display: 'block'								});							} else if($this.attr('id') == 'NICHEHUSET_IFRAME_CONTAINER_c'){								$this.css({									position: 'relative',									'margin-top': '10px',									display: 'block'								});							} else {								$this.css({									position: 'absolute',									top: '-24px',									'margin-top': '34px',																		display: 'block',									height: '600'																	});							}						}					});				};								$('#nichehuset_banner_c_follow').followTo(34);				$('#nichehuset_banner_d_follow').followTo(34);									$('#nichehuset_banner_a').html(' '); $('#nichehuset_banner_a').removeAttr('class');$('#nichehuset_banner_e').html(' '); $('#nichehuset_banner_e').removeAttr('class');$('#nichehuset_banner_e2').html(' '); $('#nichehuset_banner_e2').removeAttr('class');$('#nichehuset_banner_f').html(' '); $('#nichehuset_banner_f').removeAttr('class'); console.log('NICHEHUSET_BANNERLOAD'); window.NH_BANNERLOAD=true;  if (typeof efterbannerload === 'function') {  efterbannerload(); }  } $(function(){ NH_loadbannere(); }); 