function WorldmapBanner(){var o={rid:Math.floor(Math.random()*1000000),wmURL:"http://worldmap.f-secure.com/wmweb",hc:null,ht:null,bg:null,language:"en",gc:null,gn:null,url:"http://ols.f-secure.com",promo:null,type:null};var i={GROUP_ID:"groupDiv"+o.rid,IFRAME_ID:"bannerFrame"+o.rid,ZINDEX_DIV_ID:"zIndexDiv"+o.rid,PROMO_DIV_ID:"olsPromoDiv"+o.rid,ZINDEX_FRAME_ID:"zIndexFrame"+o.rid,LINK_DIV_ID:"linkDiv"+o.rid,TWO_LINES_HEIGHT:30,WIDTH:256,HEIGHT:262,HEIGHT_2_LINES:275,REQUEST_ORIGIN_FSECURE:2,REQUEST_ORIGIN_NO_PROMO:4,REQUEST_ORIGIN_NO_PROMO_2_LINES:8,BANNER_TYPE_335:335,BANNER_URL:"banner/?"};this.insert=function(p){c(o,p);if(i.BANNER_TYPE_335==o.type){b()}else{g()}};var g=function(){n().appendChildx(l()).appendChildx(a().appendChildx(f()).appendChildx(d()).appendChildx(h()));j();m()};var b=function(){c(i,{HEIGHT_2_LINES:275,WIDTH:337,BANNER_URL:"banner/?sz=335&"});n().appendChildx(l()).appendChildx(a().appendChildx(d()).appendChildx(h()));j()};var n=function(){document.write('<div id="'+i.GROUP_ID+'" style="display:block; width:'+i.WIDTH+"px; height:"+i.HEIGHT_2_LINES+'px"></div>');var p=document.getElementById(i.GROUP_ID);p.appendChildx=e;return p};var l=function(){var p=document.createElement("iframe");p.id=i.IFRAME_ID;p.style.position="absolute";p.style.width=i.WIDTH+"px";p.style.height=i.HEIGHT_2_LINES+"px";p.target="_self";p.allowTransparency="true";p.scrolling="no";p.frameBorder="0";p.appendChildx=e;return p};var a=function(){var p=document.createElement("div");p.id=i.ZINDEX_DIV_ID;p.style.position="absolute";p.style.display="block";p.style.width=i.WIDTH+"px";p.style.height=i.HEIGHT_2_LINES+"px";p.appendChildx=e;return p};var f=function(){var p=document.createElement("div");p.id=i.PROMO_DIV_ID;p.style.position="absolute";p.style.display="block";p.style.width="248px";p.style.paddingTop="4px";p.style.paddingLeft="4px";p.style.paddingRight="4px";p.style.fontFamily="Arial,Verdana,Helvetica,sans-serif";p.style.fontWeight="bold";p.style.fontSize="12px";p.style.lineHeight="1.1em";p.style.color="#FFFFFF";p.style.top="206px";p.style.textAlign="center";p.innerHTML=o.promo?o.promo:"";p.appendChildx=e;return p};var d=function(){var p=document.createElement("iframe");p.id=i.ZINDEX_FRAME_ID;p.style.position="absolute";p.style.width=i.WIDTH+"px";p.style.height=i.HEIGHT_2_LINES+"px";p.style.display="block";p.style.filter="alpha(opacity=0)";p.allowTransparency="true";p.scrolling="no";p.frameBorder="0";p.appendChildx=e;return p};var h=function(){var p=document.createElement("div");p.id=i.LINK_DIV_ID;p.style.position="absolute";p.style.cursor="pointer";p.style.display="block";p.style.width=i.WIDTH+"px";p.style.height=i.HEIGHT_2_LINES+"px";p.onclick=function(){window.open(o.url)};p.appendChildx=e;return p};var j=function(){var p=o.wmURL+"/"+o.language+"/"+i.BANNER_URL+(o.hc?"hc="+o.hc:"")+(o.ht?(o.hc?"&":"")+"ht="+o.ht:"")+(o.bg?((o.hc||o.ht)?"&":"")+"bg="+o.bg:"")+(o.gc?((o.hc||o.ht||o.bg)?"&":"")+"gc="+o.gc:"")+(o.gn?((o.hc||o.ht||o.bg||o.gc)?"&":"")+"gn="+o.gn:"");if(o.promo){if(o.hc||o.ht||o.bg||o.gc||o.gn){p+="&"}p+="ro="+((document.getElementById(i.PROMO_DIV_ID).offsetHeight>=i.TWO_LINES_HEIGHT)?i.REQUEST_ORIGIN_NO_PROMO_2_LINES:i.REQUEST_ORIGIN_NO_PROMO)}document.getElementById(i.IFRAME_ID).src=p};var m=function(){if(o.promo&&document.getElementById(i.PROMO_DIV_ID).offsetHeight<i.TWO_LINES_HEIGHT){document.getElementById(i.GROUP_ID).style.height=i.HEIGHT+"px";document.getElementById(i.IFRAME_ID).style.height=i.HEIGHT+"px";document.getElementById(i.ZINDEX_DIV_ID).style.height=i.HEIGHT+"px";document.getElementById(i.ZINDEX_FRAME_ID).style.height=i.HEIGHT+"px";document.getElementById(i.LINK_DIV_ID).style.height=i.HEIGHT+"px"}else{if(o.promo&&document.getElementById(i.PROMO_DIV_ID).offsetHeight>i.TWO_LINES_HEIGHT){document.getElementById(i.PROMO_DIV_ID).style.height=(i.TWO_LINES_HEIGHT-4)+"px";document.getElementById(i.PROMO_DIV_ID).style.overflow="hidden"}}};var k=function(q){var r=document.createElement("div");var p=document.createTextNode(q);r.appendChild(p);return r.innerHTML};var e=function(p){this.appendChild(p);return this};var c=function(r,q){if(typeof q!=="object"){q={}}if(q!=null){for(var p in q){var s=r[p];var t=k(q[p]);if(r==t){continue}if(t&&typeof t==="object"&&!t.nodeType){r[p]=c(s||(t.length!=null?[]:{}),t)}else{if(typeof t!=="undefined"){r[p]=t}}}}}}var fsvwmBanner=new WorldmapBanner();
