"4.0.2";
(function(q,x,H,K){"undefined"==typeof q.easyXDM&&function(a,b,d,e,k,g){function r(c,f){var h=typeof c[f];return"function"==h||!("object"!=h||!c[f])||"unknown"==h}function C(){if(!J(H.plugins)&&"object"==typeof H.plugins["Shockwave Flash"]){var c=H.plugins["Shockwave Flash"].description;c&&!J(H.mimeTypes)&&H.mimeTypes["application/x-shockwave-flash"]&&H.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(T=c.match(/\d+/g))}if(!T)try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");T=
Array.prototype.slice.call(f.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),1)}catch(h){}if(!T)return!1;c=parseInt(T[0],10);f=parseInt(T[1],10);ca=9'):(f=b.createElement("IFRAME"),f.name=c.props.name);f.id=
f.name=c.props.name;delete c.props.name;"string"==typeof c.container&&(c.container=b.getElementById(c.container));c.container||(I(f.style,{position:"absolute",top:"-2000px",left:"0px"}),c.container=b.body);h=c.props.src;c.props.src="javascript:false";I(f,c.props);f.border=f.frameBorder=0;f.allowTransparency=!0;c.container.appendChild(f);c.onLoad&&P(f,"load",c.onLoad);if(c.usePost){var l=c.container.appendChild(b.createElement("form"));l.target=f.name;l.action=h;l.method="POST";if("object"===typeof c.usePost)for(var p in c.usePost)if(c.usePost.hasOwnProperty(p)){if(aa)var n=
b.createElement('');else n=b.createElement("INPUT"),n.name=p;n.value=c.usePost[p];l.appendChild(n)}l.submit();l.parentNode.removeChild(l)}else f.src=h;c.props.src=h;return f}function ka(c){var f=c.protocol;c.isHost=c.isHost||J(L.xdm_p);ia=c.hash||!1;c.props||(c.props={});if(c.isHost)c.remote=Q(c.remote),c.channel=c.channel||"default"+ja++,c.secret=Math.random().toString(16).substring(2),J(f)&&(f=G(d.href)==G(c.remote)?"4":r(a,"postMessage")||r(b,"postMessage")?"1":c.swf&&r(a,
"ActiveXObject")&&C()?"6":"Gecko"===H.product&&"frameElement"in a&&-1==H.userAgent.indexOf("WebKit")?"5":c.remoteHelper?"2":"0");else{c.channel=L.xdm_c.replace(/["'<>\\]/g,"");c.secret=L.xdm_s;c.remote=L.xdm_e.replace(/["'<>\\]/g,"");f=L.xdm_p;var h;if(h=c.acl){a:{h=c.acl;var l=c.remote;"string"==typeof h&&(h=[h]);for(var p,n=h.length;n--;)if(p=h[n],p=new RegExp("^"==p.substr(0,1)?p:"^"+p.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$"),p.test(l)){h=!0;break a}h=!1}h=!h}if(h)throw Error("Access denied for "+
c.remote);}c.protocol=f;switch(f){case "0":I(c,{interval:100,delay:2E3,useResize:!0,useParent:!1,usePolling:!1},!0);if(c.isHost){if(!c.local){f=d.protocol+"//"+d.host;var m=b.body.getElementsByTagName("img");for(l=m.length;l--;)if(h=m[l],h.src.substring(0,f.length)===f){c.local=h.src;break}c.local||(c.local=a)}f={xdm_c:c.channel,xdm_p:0};c.local===a?(c.usePolling=!0,c.useParent=!0,c.local=d.protocol+"//"+d.host+d.pathname+d.search,f.xdm_e=c.local,f.xdm_pa=1):f.xdm_e=Q(c.local);c.container&&(c.useResize=
!1,f.xdm_po=1);c.remote=O(c.remote,f)}else I(c,{channel:L.xdm_c,remote:L.xdm_e,useParent:!J(L.xdm_pa),usePolling:!J(L.xdm_po),useResize:c.useParent?!1:c.useResize});m=[new u.stack.HashTransport(c),new u.stack.ReliableBehavior({}),new u.stack.QueueBehavior({encode:!0,maxLength:4E3-c.remote.length}),new u.stack.VerifyBehavior({initiate:c.isHost})];break;case "1":m=[new u.stack.PostMessageTransport(c)];break;case "2":c.isHost&&(c.remoteHelper=Q(c.remoteHelper));m=[new u.stack.NameTransport(c),new u.stack.QueueBehavior,
new u.stack.VerifyBehavior({initiate:c.isHost})];break;case "3":m=[new u.stack.NixTransport(c)];break;case "4":m=[new u.stack.SameOriginTransport(c)];break;case "5":m=[new u.stack.FrameElementTransport(c)];break;case "6":T||C(),m=[new u.stack.FlashTransport(c)]}m.push(new u.stack.QueueBehavior({lazy:c.lazy,remove:!0}));return m}function la(c){for(var f,h={incoming:function(n,m){this.up.incoming(n,m)},outgoing:function(n,m){this.down.outgoing(n,m)},callback:function(n){this.up.callback(n)},init:function(){this.down.init()},
destroy:function(){this.down.destroy()}},l=0,p=c.length;l
\x3c/script>')}};(function(){var c={};u.Fn={set:function(f,h){c[f]=h},get:function(f,h){if(c.hasOwnProperty(f)){var l=c[f];h&&delete c[f];return l}}}})();u.Socket=function(c){var f=la(ka(c).concat([{incoming:function(l,p){c.onMessage(l,p)},callback:function(l){if(c.onReady)c.onReady(l)}}])),h=G(c.remote);this.origin=G(c.remote);this.destroy=function(){f.destroy()};this.postMessage=function(l){f.outgoing(l,h)};f.init()};u.Rpc=function(c,f){if(f.local)for(var h in f.local)if(f.local.hasOwnProperty(h)){var l=
f.local[h];"function"===typeof l&&(f.local[h]={method:l})}var p=la(ka(c).concat([new u.stack.RpcBehavior(this,f),{callback:function(n){if(c.onReady)c.onReady(n)}}]));this.origin=G(c.remote);this.destroy=function(){p.destroy()};p.init()};u.stack.SameOriginTransport=function(c){var f,h,l,p;return f={outgoing:function(n,m,v){l(n);v&&v()},destroy:function(){h&&(h.parentNode.removeChild(h),h=null)},onDOMReady:function(){p=G(c.remote);c.isHost?(I(c.props,{src:O(c.remote,{xdm_e:d.protocol+"//"+d.host+d.pathname,
xdm_c:c.channel,xdm_p:4}),name:M+c.channel+"_provider"}),h=R(c),u.Fn.set(c.channel,function(n){l=n;e(function(){f.up.callback(!0)},0);return function(m){f.up.incoming(m,p)}})):(l=N().Fn.get(c.channel)(function(n){f.up.incoming(n,p)}),e(function(){f.up.callback(!0)},0))},init:function(){D(f.onDOMReady,f)}}};u.stack.FlashTransport=function(c){function f(w,t){e(function(){l.up.incoming(w,n)},0)}function h(w){var t=c.swf+"?host="+c.isHost,y="easyXDM_swf_"+Math.floor(1E4*Math.random());u.Fn.set("flash_loaded"+
w.replace(/[\-.]/g,"_"),function(){u.stack.FlashTransport[w].swf=m=v.firstChild;for(var A=u.stack.FlashTransport[w].queue,z=0;z"}var l,p,n,m,v;return l={outgoing:function(w,t,y){m.postMessage(c.channel,w.toString());y&&y()},destroy:function(){try{m.destroyChannel(c.channel)}catch(w){}m=null;p&&(p.parentNode.removeChild(p),p=null)},onDOMReady:function(){n=c.remote;u.Fn.set("flash_"+c.channel+"_init",function(){e(function(){l.up.callback(!0)})});u.Fn.set("flash_"+c.channel+"_onMessage",f);c.swf=Q(c.swf);var w=c.swf.match(Z)[3],
t=function(){u.stack.FlashTransport[w].init=!0;m=u.stack.FlashTransport[w].swf;m.createChannel(c.channel,c.secret,G(c.remote),c.isHost);c.isHost&&(ca&&c.swfNoThrottle&&I(c.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),I(c.props,{src:O(c.remote,{xdm_e:G(d.href),xdm_c:c.channel,xdm_p:6,xdm_s:c.secret}),name:M+c.channel+"_provider"}),p=R(c))};u.stack.FlashTransport[w]&&u.stack.FlashTransport[w].init?t():u.stack.FlashTransport[w]?u.stack.FlashTransport[w].queue.push(t):(u.stack.FlashTransport[w]=
{queue:[t]},h(w))},init:function(){D(l.onDOMReady,l)}}};u.stack.PostMessageTransport=function(c){function f(m){if(m.origin)var v=G(m.origin);else if(m.uri)v=G(m.uri);else if(m.domain)v=d.protocol+"//"+m.domain;else throw"Unable to retrieve the origin of the event";v==n&&m.data&&m.data.substring&&m.data.substring(0,c.channel.length+1)==c.channel+" "&&h.up.incoming(m.data.substring(c.channel.length+1),v)}var h,l,p,n;return h={outgoing:function(m,v,w){p.postMessage(c.channel+" "+m,v||n);w&&w()},destroy:function(){X(a,
"message",f);l&&(p=null,l.parentNode.removeChild(l),l=null)},onDOMReady:function(){n=G(c.remote);if(c.isHost){var m=function(v){v.data==c.channel+"-ready"&&(p="postMessage"in l.contentWindow?l.contentWindow:l.contentWindow.document,X(a,"message",m),P(a,"message",f),e(function(){h.up.callback(!0)},0))};P(a,"message",m);I(c.props,{src:O(c.remote,{xdm_e:G(d.href),xdm_c:c.channel,xdm_p:1}),name:M+c.channel+"_provider"});l=R(c)}else P(a,"message",f),p="postMessage"in a.parent?a.parent:a.parent.document,
p.postMessage(c.channel+"-ready",n),e(function(){h.up.callback(!0)},0)},init:function(){D(h.onDOMReady,h)}}};u.stack.FrameElementTransport=function(c){var f,h,l,p;return f={outgoing:function(n,m,v){l.call(this,n);v&&v()},destroy:function(){h&&(h.parentNode.removeChild(h),h=null)},onDOMReady:function(){p=G(c.remote);c.isHost?(I(c.props,{src:O(c.remote,{xdm_e:G(d.href),xdm_c:c.channel,xdm_p:5}),name:M+c.channel+"_provider"}),h=R(c),h.fn=function(n){delete h.fn;l=n;e(function(){f.up.callback(!0)},0);
return function(m){f.up.incoming(m,p)}}):(b.referrer&&G(b.referrer)!=L.xdm_e&&(a.top.location=L.xdm_e),l=a.frameElement.fn(function(n){f.up.incoming(n,p)}),f.up.callback(!0))},init:function(){D(f.onDOMReady,f)}}};u.stack.NameTransport=function(c){function f(z){v.contentWindow.sendMessage(z,c.remoteHelper+(m?"#_3":"#_2")+c.channel)}function h(){m?2!==++t&&m||n.up.callback(!0):(f("ready"),n.up.callback(!0))}function l(z){n.up.incoming(z,B)}function p(){y&&e(function(){y(!0)},0)}var n,m,v,w,t,y,B,A;
return n={outgoing:function(z,F,V){y=V;f(z)},destroy:function(){v.parentNode.removeChild(v);v=null;m&&(w.parentNode.removeChild(w),w=null)},onDOMReady:function(){m=c.isHost;t=0;B=G(c.remote);c.local=Q(c.local);m?(u.Fn.set(c.channel,function(F){m&&"ready"===F&&(u.Fn.set(c.channel,l),h())}),A=O(c.remote,{xdm_e:c.local,xdm_c:c.channel,xdm_p:2}),I(c.props,{src:A+"#"+c.channel,name:M+c.channel+"_provider"}),w=R(c)):(c.remoteHelper=c.remote,u.Fn.set(c.channel,l));var z=function(){var F=v||this;X(F,"load",
z);u.Fn.set(c.channel+"_load",p);(function S(){"function"==typeof F.contentWindow.sendMessage?h():e(S,50)})()};v=R({props:{src:c.local+"#_4"+c.channel},onLoad:z})},init:function(){D(n.onDOMReady,n)}}};u.stack.HashTransport=function(c){function f(){if(w){var A=w.location.href,z="",F=A.indexOf("#");-1!=F&&(z=A.substring(F));z&&z!=m&&(m=z,h.up.incoming(m.substring(m.indexOf("_")+1),B))}}var h,l,p,n,m,v,w,t,y,B;return h={outgoing:function(A,z){if(t){var F=c.remote+"#"+v++ +"_"+A;(l||!y?t.contentWindow:
t).location=F}},destroy:function(){a.clearInterval(p);!l&&y||t.parentNode.removeChild(t);t=null},onDOMReady:function(){l=c.isHost;n=c.interval;m="#"+c.channel;v=0;y=c.useParent;B=G(c.remote);if(l){I(c.props,{src:c.remote,name:M+c.channel+"_provider"});if(y)c.onLoad=function(){w=a;p=setInterval(f,n);h.up.callback(!0)};else{var A=0,z=c.delay/50;(function V(){if(++A>z)throw Error("Unable to reference listenerwindow");try{w=t.contentWindow.frames[M+c.channel+"_consumer"]}catch(S){}w?(p=setInterval(f,
n),h.up.callback(!0)):e(V,50)})()}t=R(c)}else w=a,p=setInterval(f,n),y?(t=parent,h.up.callback(!0)):(I(c,{props:{src:c.remote+"#"+c.channel+new Date,name:M+c.channel+"_consumer"},onLoad:function(){h.up.callback(!0)}}),t=R(c))},init:function(){D(h.onDOMReady,h)}}};u.stack.ReliableBehavior=function(c){var f,h,l=0,p=0,n="";return f={incoming:function(m,v){var w=m.indexOf("_"),t=m.substring(0,w).split(",");m=m.substring(w+1);t[0]==l&&(n="",h&&h(!0));0q.parseFloat(q.opera.version())?a=x.body.clientWidth:q.innerWidth&&(a=q.innerWidth);this.isIE()&&(a=x.documentElement.clientWidth);return a},clientHeight:function(){var a=0;"[object Opera]"==Object.prototype.toString.call(q.opera)&&9.5>q.parseFloat(q.opera.version())?a=x.body.clientHeight:q.innerHeight&&(a=q.innerHeight);this.isIE()&&(a=x.documentElement.clientHeight);return a},isIE:function(){if(/MSIE (\d+\.\d+);/.test(H.userAgent)){var a=Number(RegExp.$1);if(9>a)return a}return!1},getPPI:function(){if(null===
this.ppi)try{var a=window.devicePixelRatio||1,b=document.getElementsByTagName("body")[0],d=document.createElement("div");d.style="height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;";b.appendChild(d);var e=d.offsetWidth*a;b.removeChild(d);this.ppi=e}catch(k){this.ppi=96}return this.ppi},inArray:function(a,b){if(!a||!b)return!1;for(var d=0,e=b.length;dd;d++)this.dialog.style.left=a+Number(this.dialog.style.left.slice(0,-2))+"px",this.dialog.style.top=b+Number(this.dialog.style.top.slice(0,-2))+"px"},resetStyle:function(a,b){!b&&(b={});var d=this.extend({margin:0,padding:0,outline:"none",border:"none",borderRadius:0,cursor:"default","float":"none",position:"relative",display:"inherit",width:"auto",height:"auto",left:0,top:0,boxSizing:"content-box"},b),e=["width","height","left","top"],k=["float"],g;for(g in d){-1