function CanHaveClass__CssFriendlyAdapters(a){return((a!=null)&&(a.className!=null))}function HasAnyClass__CssFriendlyAdapters(a){return(CanHaveClass__CssFriendlyAdapters(a)&&(a.className.length>0))}function HasClass__CssFriendlyAdapters(a,b){return(HasAnyClass__CssFriendlyAdapters(a)&&(a.className.indexOf(b)>-1))}function AddClass__CssFriendlyAdapters(a,b){if(HasAnyClass__CssFriendlyAdapters(a)){if(!HasClass__CssFriendlyAdapters(a,b)){a.className=a.className+" "+b}}else{if(CanHaveClass__CssFriendlyAdapters(a)){a.className=b}}}function AddClassUpward__CssFriendlyAdapters(d,a,c){var b=d;while((b!=null)&&(!HasClass__CssFriendlyAdapters(b,topmostClass))){AddClass__CssFriendlyAdapters(b,c);b=b.parentNode}}function SwapClass__CssFriendlyAdapters(b,a,c){if(HasAnyClass__CssFriendlyAdapters(b)){b.className=b.className.replace(new RegExp(a,"gi"),c)}}function SwapOrAddClass__CssFriendlyAdapters(b,a,c){if(HasClass__CssFriendlyAdapters(b,a)){SwapClass__CssFriendlyAdapters(b,a,c)}else{AddClass__CssFriendlyAdapters(b,c)}}function RemoveClass__CssFriendlyAdapters(b,a){SwapClass__CssFriendlyAdapters(b,a,"")}function RemoveClassUpward__CssFriendlyAdapters(d,b,a){var c=d;while((c!=null)&&(!HasClass__CssFriendlyAdapters(c,topmostClass))){RemoveClass__CssFriendlyAdapters(c,a);c=c.parentNode}}function IsEnterKey(){var b=false;var a=0;if((typeof(window.event)!="undefined")&&(window.event!=null)){a=window.event.keyCode}else{if((typeof(e)!="undefined")&&(e!=null)){a=e.which}}if(a==13){b=true}return b}var hoverClass="AspNet-Menu-Hover";var topmostClass="AspNet-Menu";var userAgent=navigator.userAgent;var versionOffset=userAgent.indexOf("MSIE");var isIE=(versionOffset>=0);var isPreIE7=false;var fullVersionIE="";var majorVersionIE="";if(isIE){fullVersionIE=parseFloat(userAgent.substring(versionOffset+5,userAgent.length));majorVersionIE=parseInt(""+fullVersionIE);isPreIE7=majorVersionIE<7}function Hover__AspNetMenu(b){AddClass__CssFriendlyAdapters(b,hoverClass);if(isPreIE7){var f=b.firstChild;while(f){if(f.tagName=="UL"){var d=f.firstChild;while(d){if(d.tagName=="LI"){if((typeof(d.iFrameFormElementMask)!="undefined")&&(d.iFrameFormElementMask!=null)){d.iFrameFormElementMask.style.display="block";var a=d.offsetWidth;if((d.offsetWidth==0)&&(typeof(b.iFrameFormElementMask)!="undefined")&&(b.iFrameFormElementMask!=null)&&(b.iFrameFormElementMask.style.width.length>0)){a=b.iFrameFormElementMask.style.width}d.iFrameFormElementMask.style.width=a;var c=d.offsetHeight+5;if((d.offsetHeight==0)&&(typeof(b.iFrameFormElementMask)!="undefined")&&(b.iFrameFormElementMask!=null)&&(b.iFrameFormElementMask.style.height.length>0)){c=b.iFrameFormElementMask.style.height}d.iFrameFormElementMask.style.height=c}}d=d.nextSibling}}f=f.nextSibling}}}function Unhover__AspNetMenu(a){RemoveClass__CssFriendlyAdapters(a,hoverClass);if(isPreIE7){var c=a.firstChild;while(c){if(c.tagName=="UL"){var b=c.firstChild;while(b){if(b.tagName=="LI"){if((typeof(b.iFrameFormElementMask)!="undefined")&&(b.iFrameFormElementMask!=null)){b.iFrameFormElementMask.style.display="none"}}b=b.nextSibling}}c=c.nextSibling}}}function SetHover__AspNetMenu(){var f=document.getElementsByTagName("ul");for(var c=0;c<f.length;c++){if(f[c].className==topmostClass){var b=f[c].getElementsByTagName("li");for(var a=0;a<b.length;a++){b[a].onmouseover=function(){Hover__AspNetMenu(this)};b[a].onmouseout=function(){Unhover__AspNetMenu(this)};if(isPreIE7&&((typeof(b[a].iFrameFormElementMask)=="undefined")||(b[a].iFrameFormElementMask==null))){var d=document.createElement("IFRAME");d.scrolling="no";d.src="javascript:false;";d.frameBorder=0;d.style.display="none";d.style.position="absolute";d.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";d.style.zIndex=-1;b[a].insertBefore(d,b[a].firstChild);b[a].iFrameFormElementMask=d}}}}}if(isPreIE7){window.onload=SetHover__AspNetMenu}var DEFAULT_NEWSLETTER_THUMBNAIL_URL=null;var DEFAULT_NEWSLETTER_THUMBNAIL_CLIENT_ID=null;function SvevindSetDefaultNewsletterThumbnail(a,b){DEFAULT_NEWSLETTER_THUMBNAIL_URL=a;DEFAULT_NEWSLETTER_THUMBNAIL_CLIENT_ID=b;SvevindShowDefaultNewsletterThumbnail()}function SvevindShowSpecificNewsletterThumbnail(a){var b=document.getElementById(DEFAULT_NEWSLETTER_THUMBNAIL_CLIENT_ID);if(b!=null){b.src=a}}function SvevindShowDefaultNewsletterThumbnail(){var a=document.getElementById(DEFAULT_NEWSLETTER_THUMBNAIL_CLIENT_ID);if(a!=null){a.src=DEFAULT_NEWSLETTER_THUMBNAIL_URL}}function SvevindGetWindowWidth(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerWidth}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientWidth}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientWidth}}}return a}function SvevindGetWindowHeight(){var a=0;if(typeof(window.innerWidth)=="number"){a=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){a=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){a=document.body.clientHeight}}}return a}var SVEVIND_MAP=null;function Svevind_GoogleMapsSetup(d,a,b,c){window.onunload=Svevind_GoogleMapsUnload;Svevind_GoogleMapsLoad(d,a,b,c)}function Svevind_GoogleMapsLoad(d,a,b,c){if(GBrowserIsCompatible()){SVEVIND_MAP=new GMap2(document.getElementById(d));SVEVIND_MAP.addControl(new GLargeMapControl());SVEVIND_MAP.setCenter(new GLatLng(a,b),c);SVEVIND_MAP.addControl(new GMapTypeControl());SVEVIND_MAP.enableDoubleClickZoom();SVEVIND_MAP.enableScrollWheelZoom();SVEVIND_MAP.setMapType(G_NORMAL_MAP)}}function Svevind_GoogleMapsCustomMarkerZIndex(c,a){return c.zIndexValue}function Svevind_GoogleMapsCreateMarkerLink(i,a,k,l,g,f,m){if(GBrowserIsCompatible()){var j=new GLatLng(i,a);var h=new GIcon();h.shadow="/App_Themes/Svevind1/Images/marker-windpower-shadow.png";h.iconSize=new GSize(20,34);h.shadowSize=new GSize(37,34);h.iconAnchor=new GPoint(9,34);h.infoWindowAnchor=new GPoint(9,2);h.infoShadowAnchor=new GPoint(18,25);var c=String.fromCharCode("A".charCodeAt(0)+0);var b=new GIcon(h);b.image="/App_Themes/Svevind1/Images/marker-windpower.png";markerOptions={icon:b,title:l,zIndexProcess:Svevind_GoogleMapsCustomMarkerZIndex};var d=new GMarker(j,markerOptions);d.zIndexValue=m;GEvent.addListener(d,"click",function(){d.openInfoWindowHtml('<strong style="text-transform: uppercase;"><a href="'+g+'">'+l+"</a></strong>"+f+'<p style="text-align: right; margin-top: -15px; margin-bottom: 0;"><a href="'+g+'">LÃ¤s mer &raquo;</a></p>')});SVEVIND_MAP.addOverlay(d)}}function Svevind_GoogleMapsCreateMarkerText(g,a,i,j){if(GBrowserIsCompatible()){var h=new GLatLng(g,a);var f=new GIcon();f.shadow="/App_Themes/Svevind1/Images/markerShadow.png";f.iconSize=new GSize(20,34);f.shadowSize=new GSize(37,34);f.iconAnchor=new GPoint(9,34);f.infoWindowAnchor=new GPoint(9,2);f.infoShadowAnchor=new GPoint(18,25);var c=String.fromCharCode("A".charCodeAt(0)+0);var b=new GIcon(f);b.image="/App_Themes/Svevind1/Images/marker-"+i+".png";markerOptions={icon:b};var d=new GMarker(h,markerOptions);GEvent.addListener(d,"click",function(){d.openInfoWindowHtml(j)});SVEVIND_MAP.addOverlay(d)}}function Svevind_GoogleMapsUnload(){GUnload()}var TINY={};function T$(a){return document.getElementById(a)}TINY.box=function(){var p,m,b,fn,ic,iu,iw,ih,ia,f=0;return{show:function(c,u,w,h,a,t){if(!f){p=document.createElement("div");p.id="tinybox";m=document.createElement("div");m.id="tinymask";b=document.createElement("div");b.id="tinycontent";document.body.appendChild(m);document.body.appendChild(p);p.appendChild(b);m.onclick=TINY.box.hide;window.onresize=TINY.box.resize;f=1}if(!a&&!u){p.style.width=w?w+"px":"auto";p.style.height=h?h+"px":"auto";p.style.backgroundImage="none";b.innerHTML=c}else{b.style.display="none";p.style.width=p.style.height="100px"}this.mask();ic=c;iu=u;iw=w;ih=h;ia=a;this.alpha(m,1,80,3);if(t){setTimeout(function(){TINY.box.hide()},1000*t)}},fill:function(c,u,w,h,a){if(u){p.style.backgroundImage="";var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");x.onreadystatechange=function(){if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a);var s=b.getElementsByTagName("script");for(var i=0;i<s.length;i++){eval(s[i].text)}}};x.open("GET",c,1);x.send(null)}else{this.psh(c,w,h,a)}},psh:function(c,w,h,a){if(a){if(!w||!h){var x=p.style.width,y=p.style.height;b.innerHTML=c;p.style.width=w?w+"px":"";p.style.height=h?h+"px":"";b.style.display="";w=parseInt(b.offsetWidth);h=parseInt(b.offsetHeight);b.style.display="none";p.style.width=x;p.style.height=y}else{b.innerHTML=c}this.size(p,w,h)}else{p.style.backgroundImage="none"}},hide:function(){TINY.box.alpha(p,-1,0,3);$(document).unbind(".PhotoPopup");$("*").unbind(".PhotoPopup")},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){m.style.height=TINY.page.total(1)+"px";m.style.width="";m.style.width=TINY.page.total(0)+"px"},pos:function(){var t=(TINY.page.height()/2)-(p.offsetHeight/2);t=t<10?10:t;p.style.top=(t+TINY.page.top())+"px";p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+"px"},alpha:function(e,d,a){clearInterval(e.ai);if(d==1){e.style.opacity=0;e.style.filter="alpha(opacity=0)";e.style.display="block";this.pos()}e.ai=setInterval(function(){TINY.box.ta(e,a,d)},20)},ta:function(e,a,d){var o=Math.round(e.style.opacity*100);if(o==a){clearInterval(e.ai);if(d==-1){e.style.display="none";e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=""}else{e==m?this.alpha(p,1,100):TINY.box.fill(ic,iu,iw,ih,ia)}}else{var n=Math.ceil((o+((a-o)*0.5)));n=n==1?0:n;e.style.opacity=n/100;e.style.filter="alpha(opacity="+n+")"}},size:function(e,w,h){e=typeof e=="object"?e:T$(e);clearInterval(e.si);var ow=e.offsetWidth,oh=e.offsetHeight,wo=ow-parseInt(e.style.width),ho=oh-parseInt(e.style.height);var wd=ow-wo>w?0:1,hd=(oh-ho>h)?0:1;e.si=setInterval(function(){TINY.box.ts(e,w,wo,wd,h,ho,hd)},20)},ts:function(e,w,wo,wd,h,ho,hd){var ow=e.offsetWidth-wo,oh=e.offsetHeight-ho;if(ow==w&&oh==h){clearInterval(e.si);p.style.backgroundImage="none";b.style.display="block"}else{if(ow!=w){var n=ow+((w-ow)*0.5);e.style.width=wd?Math.ceil(n)+"px":Math.floor(n)+"px"}if(oh!=h){var n=oh+((h-oh)*0.5);e.style.height=hd?Math.ceil(n)+"px":Math.floor(n)+"px"}this.pos()}}}}();TINY.page=function(){return{top:function(){return document.documentElement.scrollTop||document.body.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},total:function(f){var a=document.body,c=document.documentElement;return f?Math.max(Math.max(a.scrollHeight,c.scrollHeight),Math.max(a.clientHeight,c.clientHeight)):Math.max(Math.max(a.scrollWidth,c.scrollWidth),Math.max(a.clientWidth,c.clientWidth))}}}();