
var RTS=RTS||{Object:{extend:function(A,C){for(var B in C){A[B]=C[B];}return A;}},Class:{extend:function(A,B){A.prototype.$super=B;return A;}}};RTS.Parameters=function(E,C,A,B,D){this.refererId=E;this.refererUrl=window.location;this.productName=C;this.productDescription=A;this.productUrl=D||this.refererUrl;this.picUrl=B;this.bannerUrl="http://www.runtoshop.fi/files/banner/widget/rotate.swf?path=http://www.runtoshop.fi/files/banner/";this.productNames=[];this.productDescriptions=[];this.productUrls=[];this.picUrls=[];this.instanceNumber=RTS.instanceNumber++;this.addProductName=function(F){this.productNames.push(F);};this.addProductDescription=function(F){this.productDescriptions.push(F);};this.addProductUrl=function(F){this.productUrls.push(F);};this.addPicUrl=function(F){this.picUrls.push(F);};this.toString=function(){return"basic";};};RTS.FrontPageParameters=RTS.Class.extend(function(){this.$super.apply(this,arguments);this.toString=function(){return"frontpage";};},RTS.Parameters);RTS=RTS.Object.extend({THEME_NAME:null,THEME:{BLUE:"theme-blue",GRAY:"theme-gray",DARK:"theme-dark",WOT_GRAY:"theme-wot-gray"},TYPE:{LISTING:"listing"},DEFAULT_TYPE:"",SCRIPT_URL:"http://www.runtoshop.fi/assets/widget/",SERVER:"http://www.runtoshop.fi/widget/",BUTTON_NAME:"rtsb",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(window.location.protocol.match(/^https:/)!=null)?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(C){var O=RTS.DEFAULT_TYPE;var B=RTS.THEME.BLUE;var a=this.widget=document.createElement(RTS.BLOCK_TAGNAME),T=Math.random();a.className="rts_widget";a.style.visibility="hidden";a.styleblock=document.createElement(RTS.BLOCK_TAGNAME);a.topblock=document.createElement(RTS.BLOCK_TAGNAME);a.wrapper=document.createElement(RTS.BLOCK_TAGNAME);a.wrapper.className="rts_wrapper";a.corner=document.createElement(RTS.BLOCK_TAGNAME);a.corner.className="rts_corner";a.form=document.createElement("form");a.form.method="post";if(!RTS.starter){document.write("<"+RTS.BLOCK_TAGNAME+" id='rtss"+T+"'></"+RTS.BLOCK_TAGNAME+">");}var o=RTS.starter||document.getElementById("rtss"+T);try{var I=o.previousSibling;z();var u=m();if(!u){I=I.previousSibling;z();if(I.id==RTS.DESCRIPTION_ID){I=I.previousSibling;}z();m();}}catch(y){}S(a.topblock,O);b.call(this,B);if(!window.isWidgetInstalled){RTS.css=RTS.create_stylesheet(RTS.SCRIPT_URL+"css/widget.css?"+P());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("?&","?"+O+"&");try{var K=o.parentNode;K.removeChild(o);a.wrapper.appendChild(a.corner);a.appendChild(a.form);a.topblock.appendChild(a.wrapper);a.styleblock.appendChild(a.topblock);a.appendChild(a.styleblock);K.appendChild(a);}catch(y){}function z(){if(I!=undefined&&I.tagName==undefined){I=I.previousSibling;}}function m(){if(I.tagName.toLowerCase()=="img"){O=RTS.TYPE.LISTING;S(a.topblock,RTS.CLASS_COLLAPSE);return true;}}function P(){return"&default="+B;}function Z(){RTS.css=RTS.create_stylesheet(RTS.SCRIPT_URL+"css/widget.css?"+O+P());}function v(){F(window,"load",RTS.styleOnLoadFunc);}function AB(e){if(O==RTS.TYPE.LISTING){k(e.instance.widget.topblock,RTS.CLASS_COLLAPSE,RTS.CLASS_EXPAND);}}function X(e){if(O==RTS.TYPE.LISTING){k(e.instance.widget.topblock,RTS.CLASS_EXPAND,RTS.CLASS_COLLAPSE);if(e.instance.recommendations_button_){e.instance.recommendations_button_.revertValue();}}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(AD,e){e||(e=0);var AC=this.length;if(e<0){e=AC+e;}for(;e<AC;e++){if(this[e]===AD){return e;}}return-1;};}function d(e){e.style.visibility="visible";}function r(e){e.style.visibility="hidden";}function F(i,AC,AE){try{D(i,AC,AE);}catch(AD){}if(i.addEventListener){i.addEventListener(AC,AE,false);}else{i.attachEvent("on"+AC,AE);}}function D(e,i,AC){if(e.removeEventListener){e.removeEventListener(i,AC,false);}else{e.detachEvent("on"+i,AC);}}function W(){return(RTS.documentclick=RTS.documentclick||function(){s({replaceExpand:true});});}function h(){return(RTS.documentmouseup=RTS.documentmouseup||function(){var AC=document.getElementsByName(RTS.BUTTON_NAME);for(var e=0;e<AC.length;e++){AC[e].onmouseup();}});}function x(i,AD,AE){AE=AE||"";AD=AD||"";var e=document.createElement("span");e.className=i;e.innerHTML="<"+RTS.INPUT_TAGNAME+' type="button" name="'+RTS.BUTTON_NAME+'" title="'+AE+'"/>';var AC=e.firstChild;AC.value=AD;AC.setActive=function(AF){this.active=AF;};AC.onmousedown=function(){S(this,RTS.CLASS_TOGGLED);this.onmouseover=function(){S(this,RTS.CLASS_TOGGLED);};this.onmouseout=function(){k(this,RTS.CLASS_TOGGLED);};};AC.onmouseup=function(){this.onmouseout=null;this.onmouseover=null;};F(document,"mouseup",h());AC.setActive(false);e.appendChild(AC);return AC;}function E(e){var i=x(e);i.value="Suosittele...";i.className="read";return i;}function p(AJ){var AC=AJ.data.split("|")[0],AE=AJ.data.split("|")[1],AD,AF,AI,AK;for(var AH=0;AH<RTS.containers.length;AH++){AD=RTS.containers[AH];AF=AD.frame;if(AF.name==AE){if(AJ.data){AK=AF.wrapper.getElementsByTagName(RTS.INPUT_TAGNAME);for(var AG=0;AG<AK.length;AG++){AI=AK[AG];if(AI.name==RTS.BUTTON_NAME){if(AI.parentNode.className==AC){S(AI,RTS.CLASS_TOGGLED);AI.setActive(true);AI.container=AD;}else{k(AI,RTS.CLASS_TOGGLED);AI.container=null;AI.setActive(false);}}}}}}}function s(AF){AF=AF||{};AF.replaceExpand=AF.replaceExpand||false;try{var AE=document.getElementsByName(RTS.BUTTON_NAME);for(var AD=0;AD<AE.length;AD++){var AC=AE[AD];if(this.instance&&this.instance.widget!=AC.instance.widget){X(AC);}if((this.active&&AC.active)||AF.replaceExpand){X(AC);}if(AC.active){AC.setActive(false);RTS.containers.splice(RTS.containers.indexOf(AC.container),1);k(AC,RTS.CLASS_TOGGLED);document.body.removeChild(AC.container);break;}}}catch(AG){}}function f(i,e){if(i.currentStyle){var AC=i.currentStyle[e];}else{if(window.getComputedStyle){var AC=document.defaultView.getComputedStyle(i,null).getPropertyValue(e);}}return AC;}function U(){var e=this.active;s.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);S(this,RTS.CLASS_TOGGLED);document.body.appendChild(this.container);RTS.containers.push(this.container);}this.setActive(!e);}function V(){return this.container.styleblock;}function J(){var e=x("rts_close","","Tyhjenn&auml; ja sulje lomake");e.instance=this.instance;return e;}function L(){var e=this;var i=V.call(this);var AC=J.call(this);AC.onclick=function(AD){e.onclick.call(e,AD);};i.appendChild(AC.parentNode);}function G(e){this.widget.wrapper.appendChild(e.parentNode);return e;}function w(e){e=e||true;var i=V.call(this);i.innerHTML='<iframe frameBorder="0" src="'+RTS.secureURL(RTS.SCRIPT_URL+"blank.html")+'" name="'+Math.random()+'"></iframe>';this.container.frame=i.firstChild;this.container.frame.wrapper=this.instance.widget;L.call(this);if(e){l.call(this);}}function N(){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 R(){var i=0,e=0;if(typeof(window.pageYOffset)=="number"){e=window.pageYOffset;i=window.pageXOffset;}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){e=document.body.scrollTop;i=document.body.scrollLeft;}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){e=document.documentElement.scrollTop;i=document.documentElement.scrollLeft;}}}return{x:i,y:e};}function c(){var AC=0,i=0,e=document.body,AD=document.documentElement;if(typeof(window.innerWidth)=="number"){AC=window.innerWidth;i=window.innerHeight;}else{if(AD&&(AD.clientWidth||AD.clientHeight)){AC=AD.clientWidth;i=AD.clientHeight;}else{if(e&&(e.clientWidth||e.clientHeight)){AC=e.clientWidth;i=e.clientHeight;}}}return{width:AC,height:i};}function l(AI){var AC=c(),e=R(),AG=this.instance.widget;N.call(this);N.call(AG);AI=AI||AG.wrapper;if(AG.x+this.container.offsetWidth>AC.width){this.container.style.left=((AG.x+this.offsetWidth)-this.container.offsetWidth)+"px";}else{this.container.style.left=this.instance.widget.x+"px";}var AE=parseInt(f(AI,"top"))||0;AG.y=AG.y+AE;this.container.style.top=(AG.y+AI.offsetHeight)-2+"px";if((AG.y-e.y)+this.container.offsetHeight>AC.height){var AH=(AG.y-e.y)-(AC.height-this.container.offsetHeight)+AI.offsetHeight;var AF=1,AD=e.y;window.scrollBy(0,AH);}}function A(AE){AE.setAttribute("id",AE.id+Math.random());if(AE.tagName.toLowerCase()!=RTS.TEXTAREA_TAGNAME){var AC=AE.getElementsByTagName(RTS.TEXTAREA_TAGNAME);if(AC&&AC.length){for(var AD=AC.length-1;AD>=0;AD--){this.params.productDescriptions.splice(0,0,AC[AD].innerHTML);}}}else{this.params.productDescription=AE.innerHTML;}}function M(e){return e.replace(/<.*?>/ig,"");}function S(i,e){k(i,e);return i.className+=((i.className.length>0&&e.length>0)?" ":"")+e;}function g(i,e){if(e&&e.length==0){return false;}return new RegExp("\\b"+e+"\\b","i").test(i.className);}function k(AC,i,e){e=e||"";AC.className=AC.className.replace(new RegExp("\\b"+i+"\\b","i"),e);}function Y(e){return e.replace(/&lt;/igm,"<").replace(/&gt;/igm,">").replace(/&amp;lt;/igm,"<").replace(/&amp;gt;/igm,">");}function Q(e){var AC=this.instance.widget.form,AG="",AE=this.instance.params||{},AL,AH=function(AN,i){var AM=document.createElement(RTS.INPUT_TAGNAME);AM.type="hidden";AM.value=AN;AM.name=i;AC.appendChild(AM);},AJ=function(AN,AM){var i=document.createTextNode(AN);AC.textarea=document.createElement(RTS.TEXTAREA_TAGNAME);AC.textarea.name=AM;AC.textarea.appendChild(i);AC.appendChild(AC.textarea);},AI=function(i){i=RTS.URL.decode(i+"");i=Y(i);i=M(i);return i;};AC.innerHTML="";AE.productUrl=AE.productUrl||AE.refererUrl;for(var AK in AE){var AD=AE[AK];if(!(AD instanceof Function)){if(AK=="refererId"||AK=="productName"){AG+=AK+"="+RTS.URL.encode(AI(AD))+"&";}else{AL=(AK!="productDescription"&&AK!="productDescriptions")?AH:AJ;if(AD instanceof Array){for(var AF=0;AF<AD.length;AF++){AL(RTS.URL.encode(AI(AD[AF])),AK);}}else{AL(RTS.URL.encode(AI(AD)),AK);}}AE[AK]=AD;}}AC.action=RTS.secureURL(e+"?"+AG+"f="+this.container.frame.name+"&type="+AE.toString());AC.target=this.container.frame.name;AC.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(i){if(!i){var i=window.event;}return{stopPropagation:function(){i.cancelBubble=true;if(i.stopPropagation){i.stopPropagation();}}};}function AA(){RTS.css.href=RTS.css.href.replace(P(),"");}var j=true;function b(i,e){i=i||"";if(j){AA();k(this.widget.styleblock,B);j=false;}S(this.widget.styleblock,i);}var n=new RTS.Parameters(null,null,null,null,null);if(C!=undefined&&C instanceof Object){for(var t in n){if(C[t]==undefined){C[t]=n[t];}}}else{C=n;}return{widget:this.widget,applyCustomTheme:function(e){b.call(this,e);},loadCustomTheme:function(i,e){RTS.load_stylesheet(i,false);this.applyCustomTheme(e);},loadRunTheme:function(i){i=i||"";b.call(this,i);var e="&style="+i;if(!RTS.css.href.match(e)){RTS.css.href+=e;v();}},recommendations_button:function(e,AC){e=e||"Lue suosituksia";AC=AC||"Auta meit&auml; kertomaan hyvist&auml; asioista";var i=this.recommendations_button_=x("rts_list",e,AC);i.instance=this;i.revertValue=function(){this.defValue=(this.defValue!=undefined)?this.defValue:this.value;if(O==RTS.TYPE.LISTING){this.value="";}};i.revertValue();i.onclick=function(AD){H(AD).stopPropagation();U.call(this);if(g(this,RTS.CLASS_TOGGLED)){this.value=this.defValue;}else{this.revertValue();}if(this.active){AB(this);w.call(this);Q.apply(this,[RTS.SERVER+"recommendations.html"]);}};return G.call(this,i);},summary_button:function(e,AC){e=e||"Suosituksemme";AC=AC||"Auta meit&auml; kertomaan hyvist&auml; asioista";var i=x("rts_summary",e,AC);i.instance=this;i.onclick=function(AD){H(AD).stopPropagation();U.call(this);if(this.active){AB(this);w.call(this,false);this.container.frame.style.width="410px";this.container.frame.style.height="515px";l.call(this);Q.apply(this,[RTS.SERVER+"recommendations_summary.html"]);}};return G.call(this,i);},recommend_button:function(i,AD){i=i||"Suosittele!";var AC=x("rts_recommend",i,AD);AC.instance=this;AC.onclick=function(AE){H(AE).stopPropagation();U.call(this);if(this.active){w.call(this);Q.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,AC);},banner:function(){var e=x("rts_banner");e.instance=this;e.onclick=function(AC){H(AC).stopPropagation();U.call(this);if(this.active){var AD=V.call(this);var i=document.createElement(RTS.BLOCK_TAGNAME);i.id="banner"+Math.random();AD.innerHTML="";L.call(this);container.onclick=function(AE){H(AE).stopPropagation();};AD.appendChild(i);this.container.style.height="172px";this.container.style.width="400px";swfobject.embedSWF(this.instance.params.bannerUrl,i.id,parseInt(this.container.style.width),parseInt(this.container.style.height),"9.0.0");l.call(this,this.instance.widget);}};this.widget.appendChild(e.parentNode);return this;},params:C};}},RTS);RTS.widget=RTS.create();

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;}}};}();
