var myParams=new Object();myParams.name="missing";myParams.width="100";myParams.height="100";myParams.play=false;myParams.rewind=false;myParams.skin="Clear_Skin_1";myParams.position="br";myParams.frequency=-1;myParams.link=null;myParams.fixed=true;myParams.inplace=false;myParams.windowType="";function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}function getRandomString(){var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",e=8,c="",b=0,a;for(b=0;b<e;b++){a=Math.floor(Math.random()*d.length);c+=d.substring(a,a+1)}return c}function initSPINMediaPlayer(){var a=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var e=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,p=aB.userAgent.toLowerCase(),n=aB.platform.toLowerCase(),s=n?/win/.test(n):/win/.test(p),u=n?/mac/.test(n):/mac/.test(p),r=/webkit/.test(p)?parseFloat(p.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,o=!+"\v1",q=[0,0,0],v=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){v=aB.plugins[ab].description;if(v&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;o=false;v=v.replace(/^.*\s+(\S+\s+\S+$)/,"$1");q[0]=parseInt(v.replace(/^(.*)\..*$/,"$1"),10);q[1]=parseInt(v.replace(/^.*\.(.*)\s.*$/,"$1"),10);q[2]=/[a-zA-Z]/.test(v)?parseInt(v.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var t=new ActiveXObject(X);if(t){v=t.GetVariable("$version");if(v){o=true;v=v.split(" ")[1].split(",");q=[parseInt(v[0],10),parseInt(v[1],10),parseInt(v[2],10)]}}}catch(m){}}}return{w3:e,pv:q,wk:r,ie:o,win:s,mac:u}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var m=aL.getElementsByTagName("body")[0].appendChild(ar("span"));m.parentNode.removeChild(m)}catch(e){return}ak=true;var o=Z.length;for(var n=0;n<o;n++){Z[n]()}}function aj(e){if(ak){e()}else{Z[Z.length]=e}}function aC(e){if(typeof af.addEventListener!=aq){af.addEventListener("load",e,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",e,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",e)}else{if(typeof af.onload=="function"){var m=af.onload;af.onload=function(){m();e()}}else{af.onload=e}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var o=aL.getElementsByTagName("body")[0];var m=ar(aD);m.setAttribute("type",aE);var e=o.appendChild(m);if(e){var n=0;(function(){if(typeof e.GetVariable!=aq){var p=e.GetVariable("$version");if(p){p=p.split(" ")[1].split(",");ah.pv=[parseInt(p[0],10),parseInt(p[1],10),parseInt(p[2],10)]}}else{if(n<10){n++;setTimeout(arguments.callee,10);return}}o.removeChild(m);e=null;am()})()}else{am()}}function am(){var r=aG.length;if(r>0){for(var s=0;s<r;s++){var n=aG[s].id;var w=aG[s].callbackFn;var e={success:false,id:n};if(ah.pv[0]>0){var t=aS(n);if(t){if(ao(aG[s].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(n,true);if(w){e.success=true;e.ref=av(n);w(e)}}else{if(aG[s].expressInstall&&au()){var p={};p.data=aG[s].expressInstall;p.width=t.getAttribute("width")||"0";p.height=t.getAttribute("height")||"0";if(t.getAttribute("class")){p.styleclass=t.getAttribute("class")}if(t.getAttribute("align")){p.align=t.getAttribute("align")}var q={};var o=t.getElementsByTagName("param");var v=o.length;for(var u=0;u<v;u++){if(o[u].getAttribute("name").toLowerCase()!="movie"){q[o[u].getAttribute("name")]=o[u].getAttribute("value")}}ae(p,q,n,w)}else{aF(t);if(w){w(e)}}}}}else{ay(n,true);if(w){var m=av(n);if(m&&typeof m.SetVariable!=aq){e.success=true;e.ref=m}w(e)}}}}}function av(m){var o=null;var n=aS(m);if(n&&n.nodeName=="OBJECT"){if(typeof n.SetVariable!=aq){o=n}else{var e=n.getElementsByTagName(aD)[0];if(e){o=e}}}return o}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(q,o,s,p){aU=true;ap=p||null;at={success:false,id:s};var e=aS(s);if(e){if(e.nodeName=="OBJECT"){aJ=aO(e);ad=null}else{aJ=e;ad=s}q.id=ac;if(typeof q.width==aq||(!/%$/.test(q.width)&&parseInt(q.width,10)<310)){q.width="310"}if(typeof q.height==aq||(!/%$/.test(q.height)&&parseInt(q.height,10)<137)){q.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var m=ah.ie&&ah.win?"ActiveX":"PlugIn",n="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+m+"&MMdoctitle="+aL.title;if(typeof o.flashvars!=aq){o.flashvars+="&"+n}else{o.flashvars=n}if(ah.ie&&ah.win&&e.readyState!=4){var r=ar("div");s+="SWFObjectNew";r.setAttribute("id",s);e.parentNode.insertBefore(r,e);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}aA(q,o,s)}}function aF(e){if(ah.ie&&ah.win&&e.readyState!=4){var m=ar("div");e.parentNode.insertBefore(m,e);m.parentNode.replaceChild(aO(e),m);e.style.display="none";(function(){if(e.readyState==4){e.parentNode.removeChild(e)}else{setTimeout(arguments.callee,10)}})()}else{e.parentNode.replaceChild(aO(e),e)}}function aO(m){var o=ar("div");if(ah.win&&ah.ie){o.innerHTML=m.innerHTML}else{var p=m.getElementsByTagName(aD)[0];if(p){var e=p.childNodes;if(e){var q=e.length;for(var n=0;n<q;n++){if(!(e[n].nodeType==1&&e[n].nodeName=="PARAM")&&!(e[n].nodeType==8)){o.appendChild(e[n].cloneNode(true))}}}}}return o}function aA(p,r,n){var o,e=aS(n);if(ah.wk&&ah.wk<312){return o}if(e){if(typeof p.id==aq){p.id=n}if(ah.ie&&ah.win){var q="";for(var t in p){if(p[t]!=Object.prototype[t]){if(t.toLowerCase()=="data"){r.movie=p[t]}else{if(t.toLowerCase()=="styleclass"){q+=' class="'+p[t]+'"'}else{if(t.toLowerCase()!="classid"){q+=" "+t+'="'+p[t]+'"'}}}}}var s="";for(var u in r){if(r[u]!=Object.prototype[u]){s+='<param name="'+u+'" value="'+r[u]+'" />'}}e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+q+">"+s+"</object>";ag[ag.length]=p.id;o=aS(p.id)}else{var m=ar(aD);m.setAttribute("type",aE);for(var v in p){if(p[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){m.setAttribute("class",p[v])}else{if(v.toLowerCase()!="classid"){m.setAttribute(v,p[v])}}}}for(var w in r){if(r[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){aQ(m,w,r[w])}}e.parentNode.replaceChild(m,e);o=m}}return o}function aQ(m,o,n){var e=ar("param");e.setAttribute("name",o);e.setAttribute("value",n);m.appendChild(e)}function aw(e){var m=aS(e);if(m&&m.nodeName=="OBJECT"){if(ah.ie&&ah.win){m.style.display="none";(function(){if(m.readyState==4){aT(e)}else{setTimeout(arguments.callee,10)}})()}else{m.parentNode.removeChild(m)}}}function aT(e){var m=aS(e);if(m){for(var n in m){if(typeof m[n]=="function"){m[n]=null}}m.parentNode.removeChild(m)}}function aS(e){var n=null;try{n=aL.getElementById(e)}catch(m){}return n}function ar(e){return aL.createElement(e)}function aM(e,n,m){e.attachEvent(n,m);al[al.length]=[e,n,m]}function ao(e){var m=ah.pv,n=e.split(".");n[0]=parseInt(n[0],10);n[1]=parseInt(n[1],10)||0;n[2]=parseInt(n[2],10)||0;return(m[0]>n[0]||(m[0]==n[0]&&m[1]>n[1])||(m[0]==n[0]&&m[1]==n[1]&&m[2]>=n[2]))?true:false}function az(m,q,e,n){if(ah.ie&&ah.mac){return}var p=aL.getElementsByTagName("head")[0];if(!p){return}var r=(e&&typeof e=="string")?e:"screen";if(n){aH=null;an=null}if(!aH||an!=r){var o=ar("style");o.setAttribute("type","text/css");o.setAttribute("media",r);aH=p.appendChild(o);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=r}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(m,q)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(m+" {"+q+"}"))}}}function ay(e,n){if(!aI){return}var m=n?"visible":"hidden";if(ak&&aS(e)){aS(e).style.visibility=m}else{az("#"+e,"visibility:"+m)}}function ai(m){var e=/[\\\"<>\.;]/;var n=e.exec(m)!=null;return n&&typeof encodeURIComponent!=aq?encodeURIComponent(m):m}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var e=al.length;for(var m=0;m<e;m++){al[m][0].detachEvent(al[m][1],al[m][2])}var o=ag.length;for(var n=0;n<o;n++){aw(ag[n])}for(var p in ah){ah[p]=null}ah=null;for(var q in a){a[q]=null}a=null})}}();return{registerObject:function(e,p,n,m){if(ah.w3&&e&&p){var o={};o.id=e;o.swfVersion=p;o.expressInstall=n;o.callbackFn=m;aG[aG.length]=o;ay(e,false)}else{if(m){m({success:false,id:e})}}},getObjectById:function(e){if(ah.w3){return av(e)}},embedSWF:function(v,p,s,q,n,e,m,t,r,u){var o={success:false,id:p};if(ah.w3&&!(ah.wk&&ah.wk<312)&&v&&p&&s&&q&&n){ay(p,false);aj(function(){s+="";q+="";var B={};if(r&&typeof r===aD){for(var z in r){B[z]=r[z]}}B.data=v;B.width=s;B.height=q;var y={};if(t&&typeof t===aD){for(var A in t){y[A]=t[A]}}if(m&&typeof m===aD){for(var w in m){if(typeof y.flashvars!=aq){y.flashvars+="&"+w+"="+m[w]}else{y.flashvars=w+"="+m[w]}}}if(ao(n)){var x=aA(B,y,p);if(B.id==p){ay(p,true)}o.success=true;o.ref=x}else{if(e&&au()){B.data=e;ae(B,y,p,u);return}else{ay(p,true)}}if(u){u(o)}})}else{if(u){u(o)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(e,m,n){if(ah.w3){return aA(e,m,n)}else{return undefined}},showExpressInstall:function(m,e,o,n){if(ah.w3&&au()){ae(m,e,o,n)}},removeSWF:function(e){if(ah.w3){aw(e)}},createCSS:function(m,e,n,o){if(ah.w3){az(m,e,n,o)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(m){var e=aL.location.search||aL.location.hash;if(e){if(/\?/.test(e)){e=e.split("?")[1]}if(m==null){return ai(e)}var n=e.split("&");for(var o=0;o<n.length;o++){if(n[o].substring(0,n[o].indexOf("="))==m){return ai(n[o].substring((n[o].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var e=aS(ac);if(e&&aJ){e.parentNode.replaceChild(aJ,e);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();var c=document.createElement("div");c.setAttribute("id",myRandomString);if(myParams.inplace==false){document.getElementsByTagName("body")[0].appendChild(c)}else{document.getElementById("SPINMediaContainer").appendChild(c)}try{var f={},g={},h={},k,b;var d=document.compatMode;var l=false;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&d=="BackCompat"){l=true}if(myParams.fixed==true){k="fixed"}else{k="absolute"}b="z-index: 9999; outline: none; width: "+myParams.width+"px; height: "+myParams.height+"px;";if(myParams.inplace==false){if(l){b=b+" position: "+k+";_position:absolute;"}else{b=b+" position: "+k+";"}}f.skinName=myPath+myParams.skin;f.streamName=myPath+"media/"+myParams.name;f.autoPlay=myParams.play;f.autoRewind=myParams.rewind;f.link=escape(myParams.link);f.windowType=myParams.windowType;g.quality="high";g.scale="noscale";g.salign="tl";g.allowscriptaccess="always";g.wmode="transparent";if(myParams.position=="tl"){if(l){b+="right: auto; bottom: auto;";b+="left: expression((0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression((0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 0; left: 0;"}}else{if(myParams.position=="tc"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 - "+myParams.width/2+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth/2 : document.body.clientWidth/2 ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression((0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 0; left: 50%; margin-left: -"+myParams.width/2+"px;"}}else{if(myParams.position=="tr"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 -"+myParams.width+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression((0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 0; right: 0;"}}else{if(myParams.position=="ml"){if(l){b+="right: auto; bottom: auto;";b+="left: expression((0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( (0 -"+myParams.height/2+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 50%; left: 0; margin-top: -"+myParams.height/2+"px;"}}else{if(myParams.position=="mc"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 -"+myParams.width/2+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth/2 : document.body.clientWidth/2 ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( (0 -"+myParams.height/2+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 50%; left: 50%; margin-top: -"+myParams.height/2+"px; margin-left: -"+myParams.width/2+"px;"}}else{if(myParams.position=="mr"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 -"+myParams.width+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( (0 -"+myParams.height/2+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" top: 50%; right: 0; margin-top: -"+myParams.height/2+"px;"}}}}}}}if(myParams.position=="bl"){if(l){b+="right: auto; bottom: auto;";b+="left: expression((0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( ( - 0 -"+myParams.height+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" bottom: 0; left: 0;"}}else{if(myParams.position=="bc"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 -"+myParams.width/2+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth/2 : document.body.clientWidth/2 ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( (0 -"+myParams.height+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" bottom: 0; left: 50%; margin-left: -"+myParams.width/2+"px;"}}else{if(myParams.position=="br"){if(l){b+="right: auto; bottom: auto;";b+="left: expression( (0 -"+myParams.width+"+ ( document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth ) + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );";b+="top: expression( (0 -"+myParams.height+"+ ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );"}else{b+=" bottom: 0; right: 0;"}}}}h.style=b;if(showMovie==true){a.embedSWF(myPath+"FLVPlayer_Progressive.swf",myRandomString,myParams.width,myParams.height,"8.0.0",false,f,g,h)}}catch(j){}}function removeSPINMediaPlayer(){var a=document.getElementById(myRandomString);a.parentNode.removeChild(a)}function setCookie(b,c,a){var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString())}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return null}var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index],myRandomString=getRandomString(),queryString=myScript.src.replace(/^[^\?]+\??/,""),myPath="http://www.spinmedia.se/scripts/";if(queryString){var Pairs=queryString.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split("=");if(!KeyVal||KeyVal.length!=2){continue}var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g," ");myParams[key]=val}}var showMovie=true;if(myParams.frequency==0&&getCookie("lastvisit")!=null){showMovie=false}else{if(myParams.frequency>0&&getCookie("lastvisit")!=null){var myDate=new Date();myDate.setTime(getCookie("lastvisit"));myDate.setDate(myDate.getDate()+myParams.frequency);var today=new Date();if(myDate>today){showMovie=false}}}lastvisit=new Date();lastvisit.setDate(lastvisit.getDate());if(myParams.frequency>0&&getCookie("lastvisit")==null){setCookie("lastvisit",lastvisit.getTime(),myParams.frequency)}else{if(myParams.frequency==0){setCookie("lastvisit",lastvisit.getTime())}}addLoadEvent(initSPINMediaPlayer);