var Page_Load=function(){if(document.location.pathname.indexOf("article")>0){if(window.opener){document.getElementById("backButton").style.display="none";document.getElementById("closeButton").style.display="block"}}if(document.location.pathname.indexOf("archive")>0){addSiteKeyToLinks()}if(document.location.pathname.indexOf("collection")>0){var b=document.getElementsByTagName("div");for(var a=0;a<b.length;a++){if(b[a].offsetWidth==350||b[a].offsetWidth==360){b[a].style.styleFloat="none"}}}if(document.location.search.indexOf("print=1")>0){window.print()}};var addSiteKeyToLinks=function(){var a=document.location.search.split("&");var c="";for(var d=0;d<a.length;d++){if(a[d].indexOf("sitekey")>-1){c=a[d].substring(a[d].indexOf("=")+1)}}var b=document.getElementsByTagName("a");for(var d=0;d<b.length;d++){if(b[d].id!="backButton"){if(b[d].href.indexOf("sitekey")<0){b[d].href=b[d].href+"&sitekey="+escape(c)}}}};var openFondfakta=function(a){window.open(a,"Fondfakta","width=650,height=500,scrollbars=yes,toolbar=no")};var newWindow=function(b,c,a){window.open(b.replace("/cgi-bin/pts3/cgi-bin/pts3",""),"External","width="+c+",height="+a)};var betweenDates=function(){var d=new Date("June 2, 2004");var c=new Date("July 1, 2004");var b=new Date();var a=false;if(b>=d&&b<=c){a=true}else{a=false}return a};var setCookie=function(c,e,a,g,d,f){var b=c+"="+escape(e)+((a)?"; expires="+a.toGMTString():"")+((g)?"; path="+g:"")+((d)?"; domain="+d:"")+((f)?"; secure":"");document.cookie=b};var getCookie=function(c){var b=document.cookie;var e=c+"=";var d=b.indexOf("; "+e);if(d==-1){d=b.indexOf(e);if(d!=0){return null}}else{d+=2}var a=document.cookie.indexOf(";",d);if(a==-1){a=b.length}return unescape(b.substring(d+e.length,a))};var popUp=function(a){if(betweenDates()){if(getCookie("testcookie")!=1){var c=1;var b=Math.round(Math.random()*c)+1;if((b==1)||(c==1)){popUp2(a)}}}};var popUp2=function(URL){day=new Date();id=Math.abs(day.getTime());var expDays=60;var exp=new Date();exp.setTime(exp.getTime()+(expDays*24*60*60*1000));setCookie("testcookie",1,exp,"","","");eval("page"+id+' = window.open(URL, "'+id+'","toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=750,height=400");')};if(defaultTab==null){var defaultTab=""}var Tabs_OnLoad=function(){if(defaultTab.length>0){document.getElementById("tabLeft_"+defaultTab).className="tabLeftSelected";document.getElementById("tabBody_"+defaultTab).className="tabBodySelected";document.getElementById("tabRigth_"+defaultTab).className="tabRigthSelected";document.getElementById("tabBody_"+defaultTab).firstChild.className="tabSelected"}};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(m,b,n,e,j,k,g,f,d,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(m){this.setAttribute("swf",m)}if(b){this.setAttribute("id",b)}if(n){this.setAttribute("width",n)}if(e){this.setAttribute("height",e)}if(j){this.setAttribute("version",new deconcept.PlayerVersion(j.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(k){this.addParam("bgcolor",k)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var correctUrl=function(){var b=document.getElementsByTagName("IFRAME");for(var a=0;a<b.length;a++){if(!document.location.host.indexOf("seb.se")){b[a].src=b[a].src.substring(b[a].src.indexOf("pow")-1)}}};function resizeFlash(d,b,a){var c=document.getElementById(d);c.style.width=b+"px";c.style.height=a+"px"}function ToplistaRequest(d,b){var c=false;if(navigator.appName=="Microsoft Internet Explorer"){c=new ActiveXObject("Microsoft.XMLHTTP")}else{c=new XMLHttpRequest()}var a="";if(b=="RAT"){a=d+b}else{a=d}c.abort();c.open("GET","/pow/apps/Toplistor_Fonder/Toplistor.aspx?category="+d+"&sort="+b,true);c.onreadystatechange=function(){if(c.readyState==4){document.getElementById(a).innerHTML=c.responseText}};c.send(null)}function periodChangedButton(a,c){var b=a.value;ToplistaRequest(c,b)}function openTopListaFondfakta(a){window.open(a,"Fondfakta","width=650,height=650,scrollbars=yes,toolbar=no")}function createPrintCookie(d,c,g,f,b){var a=new Date();var e=a.getTime()+(365*24*60*60*1000);a.setTime(e);setCookie("SEBprint","URL="+d+";LINKTYPE="+c+";LANG="+g+";LISTID="+f+";SITEKEY="+b+"; ",a,"/pow")}function swapStylesheets(){var a=getCookie("SEBdisplay");if(a==null){return}a=a.replace(/2/g,"M").replace(/3/g,"L");if(a.substr(0,1)!="1"){parent.frames.b.document.styleSheets[0].href="/pow/global/css/sebcbstylesheet_"+a.substr(0,1)+".css"}if(a.substr(1,1)!="1"){parent.frames.l2.document.styleSheets[0].href="/pow/global/css/sebcbstylesheet_"+a.substr(1,1)+".css"}return false}function openStyleEditor(a){newwindow=window.open(a,"name","status=no,toolbar=no,height=320,width=540,directories=no");if(window.focus){newwindow.focus()}return false};
