
var RTS=RTS||{};RTS.Abstract=function(){};RTS.Abstract.prototype={destination:null,wrap:function(A){this.destination=A;return this;},toArray:function(){for(var B=0,A=[];B<this.destination.length;B++){A.push(this.destination[B]);}if(typeof this.destination[0]==="function"){A.shift();}return A;},clone:function(){var A={};for(var B in this.destination){if(Object.prototype[B]==null&&B!==undefined){A[B]=this.destination[B];}}return A;},extend:function(D){var B="function";if(typeof D===B){return this._extendClass.apply(this,arguments);}var A={};for(var C in D){A[C]=D[C];}for(var C in this.destination){if(D[C]!=null&&typeof D[C]==="object"){A[C]=RTS.Abstract.prototype.extend.call({destination:A[C]},this.destination[C]);}else{A[C]=this.destination[C];}if(this.destination[C]!=null&&typeof this.destination[C]===B){A[C]=function(G,E){return function(){return G.apply(this,[function(H){var F=RTS.Abstract.prototype.toArray.call({destination:arguments});F.shift();return E.apply(H,F);}].concat(RTS.Abstract.prototype.toArray.call({destination:arguments})));};}(this.destination[C],D[C]);}}return A;},merge:function(B){for(var A in B){this.destination[A]=B[A];}return this.destination;},_extendClass:function(B,C){var A=this.destination;var D=function(){return A.apply(this,[function(F){var E=RTS.Abstract.prototype.toArray.call({destination:arguments});E.shift();return B.apply(F,E);}].concat(RTS.Abstract.prototype.toArray.call({destination:arguments})));};D.prototype=this.extend.call({destination:D.prototype},B.prototype);if(C){D.prototype=this.extend.call({destination:C},D.prototype);}return D;}};RTS.abstracter=new RTS.Abstract();RTS.$=RTS.$||function(A){return RTS.abstracter.wrap(A);};

RTS.Widget=RTS.$(function(A,B){this.params=RTS.$(this.params).clone();this.params.instanceNumber=RTS.instanceNumber++;this.widget=B;this.name="parent";this.bannerUrl=RTS.secureURL("http://files.runtoshop.com/banner/widget/rotate.swf?path="+RTS.secureURL("http://files.runtoshop.com/banner/widget/"));this.toString=function(){return"basic";};}).extend(Object,{params:{tags:[],productNames:[],productDescriptions:[],productUrls:[],picUrls:[],productUrl:window.location,refererUrl:window.location,fbFanPageUrl:"",resourceLabel:"widget.recommendation",locale:null,setLocale:function(A){this.locale=A;},addProductName:function(A){this.productNames.push(A);},addProductDescription:function(A){this.productDescriptions.push(A);},addProductUrl:function(A){this.productUrls.push(A);},addPicUrl:function(A){this.picUrls.push(A);}},addTags:function(B,A){this.params.tags=this.params.tags.concat(RTS.$(arguments).toArray());},onbeforeload:function(A,B){},onafterload:function(A,B){if(B.params.productName!=null&&B.TYPE!=RTS.TYPE.LISTING){B.rating();}}});RTS.FrontPageWidget=RTS.$(function(A,B){A(this,B);this.toString=function(){return"frontpage";};}).extend(RTS.Widget);RTS.WOTWidget=RTS.$(function(A,B){A(this,B);this.toString=function(){return"wot";};}).extend(RTS.FrontPageWidget,{onbeforeload:function(A,B){B.loadRunTheme(RTS.THEME.WOT_GRAY);}});RTS.B2BWidget=RTS.$(function(A,B){A(this,B);this.params.tags=this.params.tags.concat(["b2b"]);this.params.resourceLabel="widget.reference";}).extend(RTS.FrontPageWidget,{onbeforeload:function(A,B){A(this,B);B.loadRunTheme(RTS.THEME.B2B);},onafterload:function(){}});RTS=RTS.$({LOCALE:{ENGLISH:"en"},THEME_NAME:null,THEME:{BLUE:"theme-blue",GRAY:"theme-gray",DARK:"theme-dark",WOT_GRAY:"theme-wot-gray",B2B:"theme-b2b-darkblue"},TYPE:{LISTING:"listing"},DEFAULT_TYPE:"",SCRIPT_URL:"http://www.runtoshop.fi/assets/widget/",SERVER:"http://www.runtoshop.fi/widget/",BUTTON_NAME:"rtsb",BUTTON:{RECOMMENDATIONS:"rts_list",RECOMMEND:"rts_recommend",SUMMARY:"rts_summary"},INPUT_TAGNAME:"input",BLOCK_TAGNAME:"div",TEXTAREA_TAGNAME:"textarea",DESCRIPTION_ID:"__rts_description",CLASS_TOGGLED:"toggled",CLASS_EXPAND:"expand",CLASS_COLLAPSE:"collapse",css:null,secureURL:function(A){return(/^https:/.test(window.location.protocol)&&!/^https:/.test(A))?A.replace("http","https"):A;},create_stylesheet:function(A){var B=document.createElement("link");B.rel="stylesheet";B.type="text/css";B.href=this.secureURL(A);return B;},load_stylesheet:function(A,C){C=C==undefined?true:C;var B=document.getElementsByTagName("head")[0];var D=RTS.create_stylesheet(A);B.appendChild(D);if(RTS.css&&C){try{B.removeChild(RTS.css);}catch(E){}RTS.css=D;}},styleOnLoadFunc:function(){RTS.load_stylesheet(RTS.css.href);},documentclick:null,documentmouseup:null,containers:[],instanceNumber:0,zIndex:1,create:function(w,s){var P=RTS.DEFAULT_TYPE;var B=RTS.THEME.BLUE;var b=this.widget=document.createElement(RTS.BLOCK_TAGNAME),U=Math.random();b.className="rts_widget";b.style.visibility="hidden";b.styleblock=document.createElement(RTS.BLOCK_TAGNAME);b.topblock=document.createElement(RTS.BLOCK_TAGNAME);b.wrapper=document.createElement(RTS.BLOCK_TAGNAME);b.wrapper.className="rts_wrapper";b.corner=document.createElement(RTS.BLOCK_TAGNAME);b.corner.className="rts_corner";b.form=document.createElement("form");b.form.method="post";if(!RTS.starter){document.write("<"+RTS.BLOCK_TAGNAME+" id='rtss"+U+"'></"+RTS.BLOCK_TAGNAME+">");}var o=RTS.starter||document.getElementById("rtss"+U);try{var I=o.previousSibling;AB();var u=m();if(!u){I=I.previousSibling;AB();if(I.id==RTS.DESCRIPTION_ID){I=I.previousSibling;}AB();m();}}catch(AA){}T(b.topblock,P);c.call(this,B);if(!window.isWidgetInstalled){RTS.css=RTS.create_stylesheet("http://www.runtoshop.fi/assets/widget/css/widget.css?"+Q());v();window.isWidgetInstalled=true;if(typeof window.addEventListener!="undefined"){window.addEventListener("message",p,false);}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onmessage",p);}}}RTS.css.href=RTS.css.href.replace("?&","?"+P+"&");try{var K=o.parentNode;K.removeChild(o);b.wrapper.appendChild(b.corner);b.appendChild(b.form);b.topblock.appendChild(b.wrapper);b.styleblock.appendChild(b.topblock);b.appendChild(b.styleblock);K.appendChild(b);}catch(AA){}function AB(){if(I!=undefined&&I.tagName==undefined){I=I.previousSibling;}}function m(){if(I.tagName.toLowerCase()=="img"){P=RTS.TYPE.LISTING;T(b.topblock,RTS.CLASS_COLLAPSE);return true;}}function Q(){return"&default="+B;}function a(){RTS.css=RTS.create_stylesheet("http://www.runtoshop.fi/assets/widget/css/widget.css?"+P+Q());}function v(){F(window,"load",RTS.styleOnLoadFunc);}function AD(e){if(P==RTS.TYPE.LISTING){k(e.instance.widget.topblock,RTS.CLASS_COLLAPSE,RTS.CLASS_EXPAND);}}function Y(e){if(P==RTS.TYPE.LISTING){k(e.instance.widget.topblock,RTS.CLASS_EXPAND,RTS.CLASS_COLLAPSE);if(e.instance.buttons[RTS.BUTTON.RECOMMENDATIONS]){e.instance.buttons[RTS.BUTTON.RECOMMENDATIONS].revertValue();}}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(AF,e){e||(e=0);var AE=this.length;if(e<0){e=AE+e;}for(;e<AE;e++){if(this[e]===AF){return e;}}return-1;};}function f(e){e.style.visibility="visible";}function r(e){e.style.visibility="hidden";}function F(AE,AF,AH){try{D(AE,AF,AH);}catch(AG){}if(AE.addEventListener){AE.addEventListener(AF,AH,false);}else{AE.attachEvent("on"+AF,AH);}}function D(e,AE,AF){if(e.removeEventListener){e.removeEventListener(AE,AF,false);}else{e.detachEvent("on"+AE,AF);}}function X(){return(RTS.documentclick=RTS.documentclick||function(){t({replaceExpand:true});});}function i(){return(RTS.documentmouseup=RTS.documentmouseup||function(){var AE=document.getElementsByName(RTS.BUTTON_NAME);for(var e=0;e<AE.length;e++){AE[e].onmouseup();}});}function y(AE,AG,AH){AH=AH||"";AG=AG||"";var e=document.createElement("span");e.className=AE;e.innerHTML="<"+RTS.INPUT_TAGNAME+' type="button" name="'+RTS.BUTTON_NAME+'" title="'+AH+'"/>';var AF=e.firstChild;AF.value=AG;AF.toggable=true;AF.setActive=function(AI){this.active=AI;};AF.onmousedown=function(){T(this,RTS.CLASS_TOGGLED);this.onmouseover=function(){T(this,RTS.CLASS_TOGGLED);};if(this.toggable){this.onmouseout=function(){k(this,RTS.CLASS_TOGGLED);};}};AF.onmouseup=function(){this.onmouseout=null;this.onmouseover=null;};F(document,"mouseup",i());AF.setActive(false);e.appendChild(AF);return AF;}function E(e){var AE=y(e);AE.value="Suosittele...";AE.className="read";return AE;}function p(AM){var AE=AM.data.split("|")[0],AG=AM.data.split("|")[1],AI=AM.data.split("|")[2],AF,AH,AL,AN;for(var AK=0;AK<RTS.containers.length;AK++){AF=RTS.containers[AK];AH=AF.frame;if(AH.name==AG){if(AM.data){AN=AH.wrapper.getElementsByTagName(RTS.INPUT_TAGNAME);for(var AJ=0;AJ<AN.length;AJ++){AL=AN[AJ];if(AL.name==RTS.BUTTON_NAME){if(AL.parentNode.className==AE){T(AL,RTS.CLASS_TOGGLED);AL.setActive(true);AL.container=AF;if(AI){AL[AI]();}}else{if(AL.toggable){k(AL,RTS.CLASS_TOGGLED);AL.container=null;AL.setActive(false);}}}}}}}}function t(AH){AH=AH||{};AH.replaceExpand=AH.replaceExpand||false;try{var AG=document.getElementsByName(RTS.BUTTON_NAME);for(var AF=0;AF<AG.length;AF++){var AE=AG[AF];if(this.instance&&this.instance.widget!=AE.instance.widget){Y(AE);}if((this.active&&AE.active)||AH.replaceExpand){Y(AE);}if(AE.active){if(AE.toggable||(!AE.toggable&&AE==this)){AE.setActive(false);if(AE.toggable){k(AE,RTS.CLASS_TOGGLED);}}RTS.containers.splice(RTS.containers.indexOf(AE.container),1);document.body.removeChild(AE.container);break;}}}catch(AI){}}function g(AE,e){if(AE.currentStyle){var AF=AE.currentStyle[e];}else{if(window.getComputedStyle){var AF=document.defaultView.getComputedStyle(AE,null).getPropertyValue(e);}}return AF;}function V(){var e=this.active;t.call(this);if(!e){this.instance.widget.style.zIndex=RTS.zIndex++;this.container=document.createElement(RTS.BLOCK_TAGNAME);this.container.className="rts_container";this.container.styleblock=document.createElement(RTS.BLOCK_TAGNAME);this.container.styleblock.className=this.instance.widget.styleblock.className;this.container.appendChild(this.container.styleblock);if(this.toggable){T(this,RTS.CLASS_TOGGLED);}document.body.appendChild(this.container);RTS.containers.push(this.container);}this.setActive(!e);}function W(){return this.container.styleblock;}function J(){var e=y("rts_close","",(this.instance.params.locale===RTS.LOCALE.ENGLISH)?"Clear and close the form":"Tyhjenn&auml; ja sulje lomake");e.instance=this.instance;return e;}function M(){var e=this;var AE=W.call(this);e.close_btn=J.call(this);e.close_btn.onclick=function(AF){AF=AF||{};AF.close_btn=true;e.onclick.call(e,AF);};AE.appendChild(e.close_btn.parentNode);}function G(e){var AE=e.parentNode;this.widget.wrapper.appendChild(AE);this.buttons[AE.className]=e;return e;}function x(e){e=e||true;var AE=W.call(this);AE.innerHTML='<iframe frameBorder="0" src="'+RTS.secureURL(RTS.SCRIPT_URL+"blank.html")+'" name="'+Math.random()+'"></iframe>';this.container.frame=AE.firstChild;this.container.frame.wrapper=this.instance.widget;M.call(this);if(e){l.call(this);}}function O(){var e=this;curleft=e.offsetLeft;curtop=e.offsetTop;while(e=e.offsetParent){curleft+=e.offsetLeft;curtop+=e.offsetTop;}this.x=curleft;this.y=curtop;}function S(){var AE=0,e=0;if(typeof(window.pageYOffset)=="number"){e=window.pageYOffset;AE=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){e=document.body.scrollTop;AE=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){e=document.documentElement.scrollTop;AE=document.documentElement.scrollLeft;}}}return{x:AE,y:e};}function d(){var AF=0,AE=0,e=document.body,AG=document.documentElement;if(typeof(window.innerWidth)=="number"){AF=window.innerWidth;AE=window.innerHeight;}else{if(AG&&(AG.clientWidth||AG.clientHeight)){AF=AG.clientWidth;AE=AG.clientHeight;}else{if(e&&(e.clientWidth||e.clientHeight)){AF=e.clientWidth;AE=e.clientHeight;}}}return{width:AF,height:AE};}function l(AK){var AE=d(),e=S(),AI=this.instance.widget;O.call(this);O.call(AI);AK=AK||AI.wrapper;if(AI.x+this.container.offsetWidth>AE.width){this.container.style.left=((AI.x+this.offsetWidth)-this.container.offsetWidth)+"px";}else{this.container.style.left=this.instance.widget.x+"px";}var AG=parseInt(g(AK,"top"))||0;AI.y=AI.y+AG;this.container.style.top=(AI.y+AK.offsetHeight)-2+"px";if((AI.y-e.y)+this.container.offsetHeight>AE.height){var AJ=(AI.y-e.y)-(AE.height-this.container.offsetHeight)+AK.offsetHeight;var AH=1,AF=e.y;window.scrollBy(0,AJ);}}function A(AG){AG.setAttribute("id",AG.id+Math.random());if(AG.tagName.toLowerCase()!=RTS.TEXTAREA_TAGNAME){var AE=AG.getElementsByTagName(RTS.TEXTAREA_TAGNAME);if(AE&&AE.length){for(var AF=AE.length-1;AF>=0;AF--){this.params.productDescriptions.splice(0,0,AE[AF].innerHTML);}this.params.productDescription=this.params.productDescriptions[0];}}else{this.params.productDescription=AG.innerHTML;}}function N(e){return e.replace(/<.*?>/ig,"");}function T(AE,e){k(AE,e);return AE.className+=((AE.className.length>0&&e.length>0)?" ":"")+e;}function h(AE,e){if(e&&e.length==0){return false;}return new RegExp("\\b"+e+"\\b","i").test(AE.className);}function k(AF,AE,e){e=e||"";AF.className=AF.className.replace(new RegExp("\\b"+AE+"\\b","i"),e);}function Z(e){return e.replace(/&lt;/igm,"<").replace(/&gt;/igm,">").replace(/&amp;lt;/igm,"<").replace(/&amp;gt;/igm,">");}function R(e){var AE=this.instance.widget.form,AI="",AG=this.instance.params||{},AN,AJ=function(AQ,AO){var AP=document.createElement(RTS.INPUT_TAGNAME);AP.type="hidden";AP.value=AQ;AP.name=AO;AE.appendChild(AP);},AL=function(AQ,AP){var AO=document.createTextNode(AQ);AE.textarea=document.createElement(RTS.TEXTAREA_TAGNAME);AE.textarea.name=AP;AE.textarea.appendChild(AO);AE.appendChild(AE.textarea);},AK=function(AO){AO=RTS.URL.decode(AO+"");AO=Z(AO);AO=N(AO);return AO;};AE.innerHTML="";AG.productUrl=AG.productUrl||AG.refererUrl;for(var AM in AG){var AF=AG[AM];if(!(AF instanceof Function)){if(AM=="refererId"||AM=="productName"||AM=="instanceNumber"||AM=="resourceLabel"){AI+=AM+"="+RTS.URL.encode(AK(AF))+"&";}else{AN=(AM!="productDescription"&&AM!="productDescriptions")?AJ:AL;if(AF instanceof Array){for(var AH=0;AH<AF.length;AH++){AN(RTS.URL.encode(AK(AF[AH])),AM);}}else{AN(RTS.URL.encode(AK(AF)),AM);}}AG[AM]=AF;}}if(e.indexOf("?")==-1){e+="?";}AE.action=RTS.secureURL(e+"&"+AI+"f="+this.container.frame.name+"&type="+this.instance.debug.toString());AE.target=this.container.frame.name;AE.submit();}function q(e){e.instance=this.instance;e.onclick=this.onclick;if(this.parentNode!=null){this.parentNode.replaceChild(e,this);}return e;}function H(AE){if(!AE){var AE=window.event;}return{stopPropagation:function(){if(AE!=null){if(AE.cancelBubble!=null){AE.cancelBubble=true;}if(AE.stopPropagation){AE.stopPropagation();}}}};}function z(e,AF){var AE=this.instance;F(this,e,function(){AF.call(AE,AE.debug);});}function L(e){var AF=e.instance.widget.wrapper;var AE=AF.lastChild;if(e.active){AE.style.background="#FF9";}else{AE.style.background="none";}}function AC(){RTS.css.href=RTS.css.href.replace(Q(),"");}var j=true;function c(AE,e){AE=AE||"";if(j){AC();k(this.widget.styleblock,B);j=false;}T(this.widget.styleblock,AE);}if(w==undefined){w=RTS.Widget;}if(s&&typeof s==="object"){w.prototype=RTS.$(s).extend(w.prototype);}var n=new w(this.widget);var C=function(){var e=this;this.TYPE=P;this.debug.onbeforeload(this);F(window,"load",function(){e.debug.onafterload(e);});};C.prototype={debug:n,params:n.params,widget:n.widget,buttons:{},addTags:function(){this.debug.addTags.apply(this,arguments);},applyCustomTheme:function(e){c.call(this,e);},loadCustomTheme:function(AE,e){RTS.load_stylesheet(AE,false);this.applyCustomTheme(e);},loadRunTheme:function(AE){AE=AE||"";c.call(this,AE);var e="&style="+AE;if(!RTS.css.href.match(e)){RTS.css.href+=e;v();}},facebook:function(){var AH=this.params;var AE=document.createElement("div");var AI=document.createElement("div");var AF=document.createElement("div");var AG=document.createElement("script");AG.async=true;AG.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";window.fbAsyncInit=function(){FB.init({appId:AH.appId,status:true,cookie:true,xfbml:true,oauth:true});};AI.className="rts_fblike";AE.innerHTML='<div id="fb-root"></div>';AE.firstChild.appendChild(AG);document.body.insertBefore(AE,document.body.firstChild);AF.innerHTML='<fb:like href="'+this.params.productUrl+'" show_faces="false" width="300"></fb:like>';AF.parentNd=AI;AI.appendChild(AF);return G.call(this,AF);},recommendations_button:function(e,AF){e=e||(this.debug instanceof RTS.B2BWidget?"Referenssit":"Lue suosituksia");AF=AF||(RTS.LOCALE.ENGLISH===this.params.locale?"Help us to tell good things":"Auta meit&auml; kertomaan hyvist&auml; asioista");var AE=y("rts_list",e,AF);AE.addListener=z;AE.instance=this;AE.revertValue=function(){this.defValue=(this.defValue!=undefined)?this.defValue:this.value;if(P==RTS.TYPE.LISTING){this.value="";}};AE.revertValue();AE.onclick=function(AG){H(AG).stopPropagation();V.call(this);L(this);if(h(this,RTS.CLASS_TOGGLED)){this.value=this.defValue;}else{this.revertValue();}if(this.active){AD(this);x.call(this);R.apply(this,["http://www.runtoshop.fi/widget/recommendations.html"]);}};return G.call(this,AE);},bookmark:function(){var AE=y("rts_bookmark","Seuraa","");AE.addListener=z;AE.instance=this;AE.toggable=true;AE.bookmark=function(){if(this.toggable){this.active=false;}this.toggable=false;};AE.remove_bookmark=function(){this.toggable=true;this.click({});};AE.onclick=function(AF){H(AF).stopPropagation();V.call(this);L(this);if(this.active){AD(this);x.call(this,false);this.container.frame.style.width="300px";this.container.frame.style.height="260px";R.call(this,RTS.SERVER+"bookmark.html?r="+Math.random()+((AF==null)?"&update":""));}else{}};var e=G.call(this,AE);F(window,"load",function(){AE.onclick();k(AE,"toggled");AE.active=false;});return e;},summary_button:function(e,AF){e=e||"Suosituksemme";AF=AF||(RTS.LOCALE.ENGLISH===this.params.locale?"Help us to tell good things":"Auta meit&auml; kertomaan hyvist&auml; asioista");var AE=y("rts_summary",e,AF);AE.addListener=z;AE.instance=this;AE.onclick=function(AG){H(AG).stopPropagation();V.call(this);if(this.active){AD(this);x.call(this,false);this.container.frame.style.width="410px";this.container.frame.style.height="515px";l.call(this);R.apply(this,[RTS.SERVER+"recommendations_summary.html"]);}};return G.call(this,AE);},shield_demo:function(){var e=y("rts_shield","","");e.addListener=z;e.instance=this;e.onclick=function(AE){H(AE).stopPropagation();V.call(this);if(this.active){AD(this);x.call(this,false);this.container.frame.style.width="352px";this.container.frame.style.height="515px";l.call(this);R.apply(this,[RTS.SERVER+"shield_demo.html"]);}};return G.call(this,e);},recommend_button:function(AE,AG){AE=AE||(this.debug instanceof RTS.B2BWidget?"Anna referenssi":"Suosittele!");AG=AG||(RTS.LOCALE.ENGLISH===this.params.locale?"Help us to tell good things":"Auta meit&auml; kertomaan hyvist&auml; asioista");var AF=y("rts_recommend",AE,AG);AF.addListener=z;AF.instance=this;AF.onclick=function(AH){H(AH).stopPropagation();V.call(this);L(this);if(this.active){x.call(this);R.apply(this,[RTS.SERVER+"recommendation_edit.html"]);}};if(this.params.productDescription==undefined&&document.getElementById(RTS.DESCRIPTION_ID)!=null){A.call(this,document.getElementById(RTS.DESCRIPTION_ID));}var e=document.createElement("i");e.className="fxr";this.widget.wrapper.appendChild(e);return G.call(this,AF);},rating:function(){var e=document.createElement("div");var AE='<iframe src="'+RTS.secureURL(RTS.SCRIPT_URL+"blank.html")+'" allowtransparency="true" frameBorder="0"></iframe>';e.innerHTML=AE;AE=e.firstChild;AE.src=RTS.secureURL("http://www.runtoshop.fi/widget/rating.html?productName="+RTS.URL.encode(this.params.productName)+"&refererId="+this.params.refererId);AE.className="rts_rating";this.widget.wrapper.parentNode.appendChild(AE);},topBanner:function(){var e=document.createElement(RTS.BLOCK_TAGNAME);e.className="rts_topbanner";this.widget.wrapper.insertBefore(e,this.widget.wrapper.firstChild);},banner:function(){var e=y("rts_banner");e.instance=this;e.style.background="url("+RTS.secureURL("http://files.runtoshop.com/banner/widget/small-banner.jpg)");e.onclick=function(AF){H(AF).stopPropagation();V.call(this);if(this.active){var AG=W.call(this);var AE=document.createElement(RTS.BLOCK_TAGNAME);AE.id="banner"+Math.random();AG.innerHTML="";M.call(this);this.container.onclick=function(AH){H(AH).stopPropagation();};AG.appendChild(AE);this.container.style.height="172px";this.container.style.width="400px";swfobject.embedSWF(n.bannerUrl,AE.id,parseInt(this.container.style.width),parseInt(this.container.style.height),"9.0.0");l.call(this,n.widget);}};this.widget.appendChild(e.parentNode);return this;}};return new C();}}).merge(RTS);RTS.widget=RTS.create();

var RTS=RTS||{};RTS.URL={chars:{214:"ä",228:"ö",229:"å",246:"Ä",196:"Ö",197:"Å"},encode:function(A){return escape(this._utf8_encode(A));},decode:function(A){return this._utf8_decode(unescape(A));},_utf8_encode:function(B){B=B.replace(/\r\n/g,"\n");var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C);}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128);}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128);}}}return A;},_utf8_decode:function(A){var B="";var C=0;var D=c1=c2=0;while(C<A.length){D=A.charCodeAt(C);if(D<128||this.chars.hasOwnProperty(D)){B+=String.fromCharCode(D);C++;}else{if((D>191)&&(D<224)){c2=A.charCodeAt(C+1);B+=String.fromCharCode(((D&31)<<6)|(c2&63));C+=2;}else{c2=A.charCodeAt(C+1);c3=A.charCodeAt(C+2);B+=String.fromCharCode(((D&15)<<12)|((c2&63)<<6)|(c3&63));C+=3;}}}return B;}};

var swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var A=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,E=Aa.userAgent.toLowerCase(),C=Aa.platform.toLowerCase(),H=C?/win/.test(C):/win/.test(E),J=C?/mac/.test(C):/mac/.test(E),G=/webkit/.test(E)?parseFloat(E.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,D=!+"\v1",F=[0,0,0],K=null;if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){K=Aa.plugins[AB].description;if(K&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;D=false;K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");F[0]=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);F[1]=parseInt(K.replace(/^.*\.(.*)\s.*$/,"$1"),10);F[2]=/[a-zA-Z]/.test(K)?parseInt(K.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0;}}else{if(typeof AF.ActiveXObject!=AQ){try{var I=new ActiveXObject(X);if(I){K=I.GetVariable("$version");if(K){D=true;K=K.split(" ")[1].split(",");F=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)];}}}catch(B){}}}return{w3:A,pv:F,wk:G,ie:D,win:H,mac:J};}(),Aj=function(){if(!AH.w3){return;}if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao();}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false);}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);Ao();}});if(AF==top){(function(){if(AK){return;}try{Ak.documentElement.doScroll("left");}catch(A){setTimeout(arguments.callee,0);return;}Ao();})();}}if(AH.wk){(function(){if(AK){return;}if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);return;}Ao();})();}Ab(Ao);}}();function Ao(){if(AK){return;}try{var B=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));B.parentNode.removeChild(B);}catch(A){return;}AK=true;var D=Z.length;for(var C=0;C<D;C++){Z[C]();}}function AJ(A){if(AK){A();}else{Z[Z.length]=A;}}function Ab(A){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",A,false);}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",A,false);}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",A);}else{if(typeof AF.onload=="function"){var B=AF.onload;AF.onload=function(){B();A();};}else{AF.onload=A;}}}}}function Am(){if(AA){Y();}else{AM();}}function Y(){var D=Ak.getElementsByTagName("body")[0];var B=AR(Ac);B.setAttribute("type",Ad);var A=D.appendChild(B);if(A){var C=0;(function(){if(typeof A.GetVariable!=AQ){var E=A.GetVariable("$version");if(E){E=E.split(" ")[1].split(",");AH.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)];}}else{if(C<10){C++;setTimeout(arguments.callee,10);return;}}D.removeChild(B);A=null;AM();})();}else{AM();}}function AM(){var G=Af.length;if(G>0){for(var H=0;H<G;H++){var C=Af[H].id;var L=Af[H].callbackFn;var A={success:false,id:C};if(AH.pv[0]>0){var I=Ar(C);if(I){if(AO(Af[H].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(C,true);if(L){A.success=true;A.ref=AU(C);L(A);}}else{if(Af[H].expressInstall&&AT()){var E={};E.data=Af[H].expressInstall;E.width=I.getAttribute("width")||"0";E.height=I.getAttribute("height")||"0";if(I.getAttribute("class")){E.styleclass=I.getAttribute("class");}if(I.getAttribute("align")){E.align=I.getAttribute("align");}var F={};var D=I.getElementsByTagName("param");var K=D.length;for(var J=0;J<K;J++){if(D[J].getAttribute("name").toLowerCase()!="movie"){F[D[J].getAttribute("name")]=D[J].getAttribute("value");}}AE(E,F,C,L);}else{Ae(I);if(L){L(A);}}}}}else{AX(C,true);if(L){var B=AU(C);if(B&&typeof B.SetVariable!=AQ){A.success=true;A.ref=B;}L(A);}}}}}function AU(B){var D=null;var C=Ar(B);if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=AQ){D=C;}else{var A=C.getElementsByTagName(Ac)[0];if(A){D=A;}}}return D;}function AT(){return!At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312);}function AE(F,D,H,E){At=true;AP=E||null;AS={success:false,id:H};var A=Ar(H);if(A){if(A.nodeName=="OBJECT"){Ai=An(A);AD=null;}else{Ai=A;AD=H;}F.id=AC;if(typeof F.width==AQ||(!/%$/.test(F.width)&&parseInt(F.width,10)<310)){F.width="310";}if(typeof F.height==AQ||(!/%$/.test(F.height)&&parseInt(F.height,10)<137)){F.height="137";}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";var B=AH.ie&&AH.win?"ActiveX":"PlugIn",C="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+B+"&MMdoctitle="+Ak.title;if(typeof D.flashvars!=AQ){D.flashvars+="&"+C;}else{D.flashvars=C;}if(AH.ie&&AH.win&&A.readyState!=4){var G=AR("div");H+="SWFObjectNew";G.setAttribute("id",H);A.parentNode.insertBefore(G,A);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A);}else{setTimeout(arguments.callee,10);}})();}AZ(F,D,H);}}function Ae(A){if(AH.ie&&AH.win&&A.readyState!=4){var B=AR("div");A.parentNode.insertBefore(B,A);B.parentNode.replaceChild(An(A),B);A.style.display="none";(function(){if(A.readyState==4){A.parentNode.removeChild(A);}else{setTimeout(arguments.callee,10);}})();}else{A.parentNode.replaceChild(An(A),A);}}function An(B){var D=AR("div");if(AH.win&&AH.ie){D.innerHTML=B.innerHTML;}else{var E=B.getElementsByTagName(Ac)[0];if(E){var A=E.childNodes;if(A){var F=A.length;for(var C=0;C<F;C++){if(!(A[C].nodeType==1&&A[C].nodeName=="PARAM")&&!(A[C].nodeType==8)){D.appendChild(A[C].cloneNode(true));}}}}}return D;}function AZ(E,G,C){var D,A=Ar(C);if(AH.wk&&AH.wk<312){return D;}if(A){if(typeof E.id==AQ){E.id=C;}if(AH.ie&&AH.win){var F="";for(var I in E){if(E[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){G.movie=E[I];}else{if(I.toLowerCase()=="styleclass"){F+=' class="'+E[I]+'"';}else{if(I.toLowerCase()!="classid"){F+=" "+I+'="'+E[I]+'"';}}}}}var H="";for(var J in G){if(G[J]!=Object.prototype[J]){H+='<param name="'+J+'" value="'+G[J]+'" />';}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+">"+H+"</object>";AG[AG.length]=E.id;D=Ar(E.id);}else{var B=AR(Ac);B.setAttribute("type",Ad);for(var K in E){if(E[K]!=Object.prototype[K]){if(K.toLowerCase()=="styleclass"){B.setAttribute("class",E[K]);}else{if(K.toLowerCase()!="classid"){B.setAttribute(K,E[K]);}}}}for(var L in G){if(G[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"){Ap(B,L,G[L]);}}A.parentNode.replaceChild(B,A);D=B;}}return D;}function Ap(B,D,C){var A=AR("param");A.setAttribute("name",D);A.setAttribute("value",C);B.appendChild(A);}function AV(A){var B=Ar(A);if(B&&B.nodeName=="OBJECT"){if(AH.ie&&AH.win){B.style.display="none";(function(){if(B.readyState==4){As(A);}else{setTimeout(arguments.callee,10);}})();}else{B.parentNode.removeChild(B);}}}function As(A){var B=Ar(A);if(B){for(var C in B){if(typeof B[C]=="function"){B[C]=null;}}B.parentNode.removeChild(B);}}function Ar(A){var C=null;try{C=Ak.getElementById(A);}catch(B){}return C;}function AR(A){return Ak.createElement(A);}function Al(A,C,B){A.attachEvent(C,B);AL[AL.length]=[A,C,B];}function AO(A){var B=AH.pv,C=A.split(".");C[0]=parseInt(C[0],10);C[1]=parseInt(C[1],10)||0;C[2]=parseInt(C[2],10)||0;return(B[0]>C[0]||(B[0]==C[0]&&B[1]>C[1])||(B[0]==C[0]&&B[1]==C[1]&&B[2]>=C[2]))?true:false;}function AY(B,F,A,C){if(AH.ie&&AH.mac){return;}var E=Ak.getElementsByTagName("head")[0];if(!E){return;}var G=(A&&typeof A=="string")?A:"screen";if(C){Ag=null;AN=null;}if(!Ag||AN!=G){var D=AR("style");D.setAttribute("type","text/css");D.setAttribute("media",G);Ag=E.appendChild(D);if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1];}AN=G;}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(B,F);}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(B+" {"+F+"}"));}}}function AX(A,C){if(!Ah){return;}var B=C?"visible":"hidden";if(AK&&Ar(A)){Ar(A).style.visibility=B;}else{AY("#"+A,"visibility:"+B);}}function AI(B){var A=/[\\\"<>\.;]/;var C=A.exec(B)!=null;return C&&typeof encodeURIComponent!=AQ?encodeURIComponent(B):B;}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var A=AL.length;for(var B=0;B<A;B++){AL[B][0].detachEvent(AL[B][1],AL[B][2]);}var D=AG.length;for(var C=0;C<D;C++){AV(AG[C]);}for(var E in AH){AH[E]=null;}AH=null;for(var F in swfobject){swfobject[F]=null;}swfobject=null;});}}();return{registerObject:function(A,E,C,B){if(AH.w3&&A&&E){var D={};D.id=A;D.swfVersion=E;D.expressInstall=C;D.callbackFn=B;Af[Af.length]=D;AX(A,false);}else{if(B){B({success:false,id:A});}}},getObjectById:function(A){if(AH.w3){return AU(A);}},embedSWF:function(K,E,H,F,C,A,B,I,G,J){var D={success:false,id:E};if(AH.w3&&!(AH.wk&&AH.wk<312)&&K&&E&&H&&F&&C){AX(E,false);AJ(function(){H+="";F+="";var Q={};if(G&&typeof G===Ac){for(var O in G){Q[O]=G[O];}}Q.data=K;Q.width=H;Q.height=F;var N={};if(I&&typeof I===Ac){for(var P in I){N[P]=I[P];}}if(B&&typeof B===Ac){for(var L in B){if(typeof N.flashvars!=AQ){N.flashvars+="&"+L+"="+B[L];}else{N.flashvars=L+"="+B[L];}}}if(AO(C)){var M=AZ(Q,N,E);if(Q.id==E){AX(E,true);}D.success=true;D.ref=M;}else{if(A&&AT()){Q.data=A;AE(Q,N,E,J);return;}else{AX(E,true);}}if(J){J(D);}});}else{if(J){J(D);}}},switchOffAutoHideShow:function(){Ah=false;},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]};},hasFlashPlayerVersion:AO,createSWF:function(A,B,C){if(AH.w3){return AZ(A,B,C);}else{return undefined;}},showExpressInstall:function(B,A,D,C){if(AH.w3&&AT()){AE(B,A,D,C);}},removeSWF:function(A){if(AH.w3){AV(A);}},createCSS:function(B,A,C,D){if(AH.w3){AY(B,A,C,D);}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(B){var A=Ak.location.search||Ak.location.hash;if(A){if(/\?/.test(A)){A=A.split("?")[1];}if(B==null){return AI(A);}var C=A.split("&");for(var D=0;D<C.length;D++){if(C[D].substring(0,C[D].indexOf("="))==B){return AI(C[D].substring((C[D].indexOf("=")+1)));}}}return"";},expressInstallCallback:function(){if(At){var A=Ar(AC);if(A&&Ai){A.parentNode.replaceChild(Ai,A);if(AD){AX(AD,true);if(AH.ie&&AH.win){Ai.style.display="block";}}if(AP){AP(AS);}}At=false;}}};}();

