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 a,g,l,k,c,i,h,n,d,j=0;return{show:function(q,m,f,p,b,o){if(!j){a=document.createElement("div");a.id="tinybox";g=document.createElement("div");g.id="tinymask";l=document.createElement("div");l.id="tinycontent";document.body.appendChild(g);document.body.appendChild(a);a.appendChild(l);g.onclick=TINY.box.hide;window.onresize=TINY.box.resize;j=1}if(!b&&!m){a.style.width=f?f+"px":"auto";a.style.height=p?p+"px":"auto";a.style.backgroundImage="none";l.innerHTML=q}else{l.style.display="none";a.style.width=a.style.height="100px"}this.mask();c=q;i=m;h=f;n=p;d=b;this.alpha(g,1,80,3);if(o){setTimeout(function(){TINY.box.hide()},1000*o)}},fill:function(q,o,m,p,f){if(o){a.style.backgroundImage="";var b=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");b.onreadystatechange=function(){if(b.readyState==4&&b.status==200){TINY.box.psh(b.responseText,m,p,f)}};b.open("GET",q,1);b.send(null)}else{this.psh(q,m,p,f)}},psh:function(q,m,o,f){if(f){if(!m||!o){var b=a.style.width,p=a.style.height;l.innerHTML=q;a.style.width=m?m+"px":"";a.style.height=o?o+"px":"";l.style.display="";m=parseInt(l.offsetWidth);o=parseInt(l.offsetHeight);l.style.display="none";a.style.width=b;a.style.height=p}else{l.innerHTML=q}this.size(a,m,o,4)}else{a.style.backgroundImage="none"}},hide:function(){TINY.box.alpha(a,-1,0,3)},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){g.style.height=TINY.page.theight()+"px";g.style.width="";g.style.width=TINY.page.twidth()+"px"},pos:function(){var b=(TINY.page.height()/2)-(a.offsetHeight/2);b=b<10?10:b;a.style.top=(b+TINY.page.top())+"px";a.style.left=(TINY.page.width()/2)-(a.offsetWidth/2)+"px"},alpha:function(m,o,b,f){clearInterval(m.ai);if(o==1){m.style.opacity=0;m.style.filter="alpha(opacity=0)";m.style.display="block";this.pos()}m.ai=setInterval(function(){TINY.box.twalpha(m,b,o,f)},20)},twalpha:function(m,b,q,f){var p=Math.round(m.style.opacity*100);if(p==b){clearInterval(m.ai);if(q==-1){m.style.display="none";m==a?TINY.box.alpha(g,-1,0,2):l.innerHTML=a.style.backgroundImage=""}else{m==g?this.alpha(a,1,100,5):TINY.box.fill(c,i,h,n,d)}}else{var r=p+Math.ceil(Math.abs(b-p)/f)*q;m.style.opacity=r/100;m.style.filter="alpha(opacity="+r+")"}},size:function(p,r,o,v){p=typeof p=="object"?p:T$(p);clearInterval(p.si);var b=p.offsetWidth,t=p.offsetHeight,q=b-parseInt(p.style.width),u=t-parseInt(p.style.height);var f=b-q>r?-1:1,m=(t-u>o)?-1:1;p.si=setInterval(function(){TINY.box.twsize(p,r,q,f,o,u,m,v)},20)},twsize:function(p,r,q,f,o,u,m,v){var b=p.offsetWidth-q,t=p.offsetHeight-u;if(b==r&&t==o){clearInterval(p.si);a.style.backgroundImage="none";l.style.display="block"}else{if(b!=r){p.style.width=b+(Math.ceil(Math.abs(r-b)/v)*f)+"px"}if(t!=o){p.style.height=t+(Math.ceil(Math.abs(o-t)/v)*m)+"px"}this.pos()}}}}();TINY.page=function(){return{top:function(){return document.body.scrollTop||document.documentElement.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight},theight:function(){var f=document,a=f.body,c=f.documentElement;return Math.max(Math.max(a.scrollHeight,c.scrollHeight),Math.max(a.clientHeight,c.clientHeight))},twidth:function(){var f=document,a=f.body,c=f.documentElement;return Math.max(Math.max(a.scrollWidth,c.scrollWidth),Math.max(a.clientWidth,c.clientWidth))}}}();