var cometifyInstances=new Array();var Cometify={init:function(a){this.apiKey=a.apiKey;this.identifiers=a.identifiers;this.debug=false;if(a.debug){this.debug=a.debug}if(typeof(this.identifiers)=="string"){this.identifiers=[this.identifiers]}this.identifiersMD5=this.md5(this.identifierString());this.hostname=this.md5(this.apiKey+":"+this.identifersMD5+":"+Math.random()).substring(0,8)+".cometify.org";if(a.environment=="development"){this.hostname="cometify.local"}this.flashHostname="cometify.org";if(a.environment=="development"){this.flashHostname="cometify.local"}this.port=80;if(a.environment=="development"){this.port=80}this.ssl=false;if("https:"==document.location.protocol){this.ssl=true;this.hostname="cometify.org";this.port=443}this.wsPort=2323;this.secureKey=(a.secureKey?a.secureKey:"");this.callback=a.callback;this.currentDeliveredId=(a.deliveredId||typeof(a.deliveredId)!="undefined"?a.deliveredId:-1);this.session=null;this.charset=(a.charset?a.charset:0);this.instanceId=cometifyInstances.length;cometifyInstances[this.instanceId]=this;this.connected=false;this.keepGoing=true;this.fallback=0;this.errorConnect=false;this.websocket=null;this.stream=null;this.pinged=null;this.agent=(navigator&&navigator.userAgent?navigator.userAgent:"");this.loaded=false;this.timer=null;this.kickTimer=null;this.script=null;this.alreadyStarted=false;this.noFlash=false;this.flash=null;this.flashEmbedded=false;this.flashTimer=null;if(!this.swf.hasFlashPlayerVersion("9.0.0")){this.noFlash=true}$this=this;return this},identifierString:function(){var b="";for(var a in this.identifiers){if(typeof(this.identifiers[a])=="function"){}else{if(b!=""){b=b+","}b=b+a}}return b},identifierUrl:function(){var b="";for(var a in this.identifiers){if(typeof(this.identifiers[a])=="function"){}else{if(b!=""){b=b+","}if(typeof(this.identifiers[a])=="string"){b=b+this.identifiers[a]}else{b=b+a+";"+this.identifiers[a]}}}return b},setIdentifierInternal:function(a,b){this.identifiers[a]=b},startUrl:function(){return"fetch.php?client="+this.apiKey+"&identifiers="+this.identifierUrl()+"&charset="+this.charset+"&secure="+this.secureKey+"&delivered="+this.currentDeliveredId+"&referer="+encodeURI(window.location.href).replace(/&/g,"%26").replace(/[?]/g,"%3F").replace(/#/g,"%23")+"&agent="+encodeURI(this.agent).replace(/&/g,"%26").replace(/[?]/g,"%3F").replace(/#/g,"%23")+"&start="+(new Date).getTime()},ping:function(){if(this.pinged&&this.pinged<(new Date()).getTime()-1000*15){this.stream.removeEventListener("data");this.start();return}setTimeout("cometifyInstances["+this.instanceId+"].ping()",3000)},iframeConnected:function(){if(typeof(this.connected)=="object"){this.connected.parentNode.removeChild(this.connected);this.start()}},scriptConnected:function(){setTimeout("cometifyInstances["+this.instanceId+"].scriptConnected()",1000)},sourceConnected:function(){if(typeof(this.connected)=="object"){this.connected.removeEventListener("data");this.start();return}else{setTimeout("cometifyInstances["+this.instanceId+"].ping()",1000)}},flashConnected:function(){if(this.flashTimer){clearTimeout(this.flashTimer);this.flashTimer=null;this.flashEmbedded=true}else{}},checkFlash:function(){if(!this.flashEmbedded){var a=document.getElementById(this.flash);if(a){a.parentNode.removeChild(a)}this.noFlash=true;this.flashTimer=null;this.start()}},throbberFix:function(){if(navigator&&navigator.userAgent&&/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){var a;if(a==null){a=document.createElement("iframe");a.style.display="none";a.src="/"}document.body.appendChild(a);document.body.removeChild(a)}},kickStart:function(){if(this.timer){clearTimeout(this.timer);this.timer=null}this.start(true)},start:function(f){if(!this.keepGoing){return false}this.timer=null;if(this.kickTimer){clearTimeout(this.kickTimer);this.kickTimer=null}$this=this;if(navigator&&navigator.userAgent&&(!/msie/.test(navigator.userAgent.toLowerCase()))&&!this.loaded&&(!window.opera||/opera mini/.test(navigator.userAgent.toLowerCase()))&&(!("WebSocket" in window)||($this.fallback>3&&$this.noFlash))){if(this.debug&&typeof(console)!="undefined"){console.log("load listener")}this.loaded=true;this.alreadyStarted=false;window.addEventListener("load",function(){this.timer=setTimeout("cometifyInstances["+$this.instanceId+"].start(true)",650)},false);this.kickTimer=setTimeout("cometifyInstances["+$this.instanceId+"].kickStart()",3500);return}if(f&&this.alreadyStarted==true){return}this.alreadyStarted=true;var d;if(("WebSocket" in window)&&!($this.fallback>3)&&!$this.ssl){if(this.debug&&typeof(console)!="undefined"){console.log("web socket init")}d=new WebSocket("ws://"+this.hostname+":"+this.wsPort+"/"+this.startUrl(),"cometify");$this.websocket=d;d.onopen=function(){$this.connected=true};d.onmessage=function(k){$this.response(k.data)};d.onerror=function(k){if(!$this.connected){$this.fallback++;$this.start();return}if(!$this.session){$this.errorConnect=true;d.close();$this.start();return}return};d.onclose=function(k){if($this.errorConnect){return}if(!$this.connected){$this.fallback++;$this.start();return}if(!$this.session){$this.start();return}return};return}else{if(window.opera&&!/opera mini/.test(navigator.userAgent.toLowerCase())){if(this.debug&&typeof(console)!="undefined"){console.log("event source init")}var e=document.getElementsByTagName("head").item(0);var j=document.createElement("event-source");j.setAttribute("src",(this.ssl?"https://":"http://")+this.hostname+":"+this.port+"/"+this.startUrl()+"&method=operaevent");this.connected=j;j.addEventListener("data",function(k){$this.response(k.data)},false);this.stream=j;setTimeout("cometifyInstances["+this.instanceId+"].sourceConnected()",5000);return}else{if(!this.noFlash){if(this.debug&&typeof(console)!="undefined"){console.log("flash init")}var a=document.createElement("div");var b="cometify-"+this.md5(Math.random()+"hash");this.flash=b;a.style.left="0px";a.style.bottom="0px";a.style.position="fixed";var c=document.createElement("div");c.id=b;a.appendChild(c);var e=document.getElementsByTagName("body").item(0);if(e){e.appendChild(a)}var i={host:this.hostname,url:"/"+(this.startUrl()+"&method=flash").replace(/%/g,"%25").replace(/&/g,"%26").replace(/ /g,""),callback:"cometifyInstances["+$this.instanceId+"].response",embedded:"cometifyInstances["+$this.instanceId+"].flashConnected",port:(this.ssl?80:this.port),failure:"cometifyInstances["+$this.instanceId+"].flashError",error:"cometifyInstances["+$this.instanceId+"].flashError",disconnect:"cometifyInstances["+$this.instanceId+"].flashError"};this.swf.embedSWF((this.ssl?"https://":"http://")+this.flashHostname+"/cometify.swf",b,"2","2","9.0.0",null,i,{allowscriptaccess:"always",wmode:"transparent"},{},$this.flashEmbed);this.flashTimer=setTimeout("cometifyInstances["+this.instanceId+"].checkFlash()",2000)}else{if(this.debug&&typeof(console)!="undefined"){console.log("script init")}var h=document.getElementsByTagName("head").item(0);if(!h){return}if(this.script){this.script.parentNode.removeChild(this.script)}var g=document.createElement("script");this.script=g;this.connected="script";if(navigator&&navigator.userAgent&&/msie/.test(navigator.userAgent.toLowerCase())){g.onreadystatechange=function(){if(this.readyState=="loaded"){if($this.connected=="script"){$this.start()}}}}else{g.onload=function(){if($this.connected=="script"){$this.start()}};g.onerror=function(){if($this.connected=="script"){setTimeout("cometifyInstances["+$this.instanceId+"].start();",1000)}};g.onstart=function(){}}g.setAttribute("type","text/javascript");g.setAttribute("src",(this.ssl?"https://":"http://")+this.hostname+":"+this.port+"/"+this.startUrl()+"&method=script&callback="+encodeURI("parent.cometifyInstances["+this.instanceId+"]")+".response");g.async=true;h.appendChild(g);setTimeout("cometifyInstances["+this.instanceId+"].throbberFix()",1000)}}}},flashEmbed:function(a){},flashError:function(a){var b=document.getElementById(this.flash);if(this.flashTimer){clearTimeout(this.flashTimer);this.flashTimer=null}if(b){b.parentNode.removeChild(b)}this.noFlash=true;this.start()},response:function(responseText){var jsonData;if(typeof(responseText)!="object"){responseText=responseText.replace(/^\0+/g,"");jsonData=eval("("+responseText+")")}else{jsonData=responseText}var data=jsonData.data;var id=jsonData.id;var delivered=jsonData.delivered;var identifier=jsonData.identifier;if(jsonData.session){this.session=jsonData.session}if((this.hostname=="cometify.local"||this.debug)&&typeof(console)!="undefined"){console.dir(jsonData)}if(data){if(id){this.setIdentifierInternal(identifier,id)}else{this.currentDeliveredId=delivered}if(this.callback.indexOf("{")==-1){eval(this.callback)(data,id,identifier)}else{this.callback(data,id,identifier)}}if(jsonData.restart&&this.connected!="script"){this.start()}if(jsonData.connected){this.connected=1}if(jsonData.ping){this.pinged=(new Date()).getTime()}if(!/^[a-fA-F0-9]{32}$/.test(jsonData.session)){}},md5:function(s){function L(b,a){return(b<<a)|(b>>>(32-a))}function K(k,b){var F,a,d,x,c;d=(k&2147483648);x=(b&2147483648);F=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(F&a){return(c^2147483648^d^x)}if(F|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function r(a,c,b){return(a&c)|((~a)&b)}function q(a,c,b){return(a&b)|(c&(~b))}function p(a,c,b){return(a^c^b)}function n(a,c,b){return(c^(a|(~b)))}function u(G,F,aa,Z,k,H,I){G=K(G,K(K(r(F,aa,Z),k),I));return K(L(G,H),F)}function f(G,F,aa,Z,k,H,I){G=K(G,K(K(q(F,aa,Z),k),I));return K(L(G,H),F)}function D(G,F,aa,Z,k,H,I){G=K(G,K(K(p(F,aa,Z),k),I));return K(L(G,H),F)}function t(G,F,aa,Z,k,H,I){G=K(G,K(K(n(F,aa,Z),k),I));return K(L(G,H),F)}function e(k){var G;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var F=(b+1)*16;var H=Array(F-1);var a=0;var x=0;while(x<d){G=(x-(x%4))/4;a=(x%4)*8;H[G]=(H[G]|(k.charCodeAt(x)<<a));x++}G=(x-(x%4))/4;a=(x%4)*8;H[G]=H[G]|(128<<a);H[F-2]=d<<3;H[F-1]=d>>>29;return H}function B(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function J(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k<b.length;k++){var d=b.charCodeAt(k);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var C=Array();var P,h,E,v,g,Y,X,W,V;var S=7,Q=12,N=17,M=22;var A=5,z=9,y=14,w=20;var o=4,m=11,l=16,j=23;var U=6,T=10,R=15,O=21;s=J(s);C=e(s);Y=1732584193;X=4023233417;W=2562383102;V=271733878;for(P=0;P<C.length;P+=16){h=Y;E=X;v=W;g=V;Y=u(Y,X,W,V,C[P+0],S,3614090360);V=u(V,Y,X,W,C[P+1],Q,3905402710);W=u(W,V,Y,X,C[P+2],N,606105819);X=u(X,W,V,Y,C[P+3],M,3250441966);Y=u(Y,X,W,V,C[P+4],S,4118548399);V=u(V,Y,X,W,C[P+5],Q,1200080426);W=u(W,V,Y,X,C[P+6],N,2821735955);X=u(X,W,V,Y,C[P+7],M,4249261313);Y=u(Y,X,W,V,C[P+8],S,1770035416);V=u(V,Y,X,W,C[P+9],Q,2336552879);W=u(W,V,Y,X,C[P+10],N,4294925233);X=u(X,W,V,Y,C[P+11],M,2304563134);Y=u(Y,X,W,V,C[P+12],S,1804603682);V=u(V,Y,X,W,C[P+13],Q,4254626195);W=u(W,V,Y,X,C[P+14],N,2792965006);X=u(X,W,V,Y,C[P+15],M,1236535329);Y=f(Y,X,W,V,C[P+1],A,4129170786);V=f(V,Y,X,W,C[P+6],z,3225465664);W=f(W,V,Y,X,C[P+11],y,643717713);X=f(X,W,V,Y,C[P+0],w,3921069994);Y=f(Y,X,W,V,C[P+5],A,3593408605);V=f(V,Y,X,W,C[P+10],z,38016083);W=f(W,V,Y,X,C[P+15],y,3634488961);X=f(X,W,V,Y,C[P+4],w,3889429448);Y=f(Y,X,W,V,C[P+9],A,568446438);V=f(V,Y,X,W,C[P+14],z,3275163606);W=f(W,V,Y,X,C[P+3],y,4107603335);X=f(X,W,V,Y,C[P+8],w,1163531501);Y=f(Y,X,W,V,C[P+13],A,2850285829);V=f(V,Y,X,W,C[P+2],z,4243563512);W=f(W,V,Y,X,C[P+7],y,1735328473);X=f(X,W,V,Y,C[P+12],w,2368359562);Y=D(Y,X,W,V,C[P+5],o,4294588738);V=D(V,Y,X,W,C[P+8],m,2272392833);W=D(W,V,Y,X,C[P+11],l,1839030562);X=D(X,W,V,Y,C[P+14],j,4259657740);Y=D(Y,X,W,V,C[P+1],o,2763975236);V=D(V,Y,X,W,C[P+4],m,1272893353);W=D(W,V,Y,X,C[P+7],l,4139469664);X=D(X,W,V,Y,C[P+10],j,3200236656);Y=D(Y,X,W,V,C[P+13],o,681279174);V=D(V,Y,X,W,C[P+0],m,3936430074);W=D(W,V,Y,X,C[P+3],l,3572445317);X=D(X,W,V,Y,C[P+6],j,76029189);Y=D(Y,X,W,V,C[P+9],o,3654602809);V=D(V,Y,X,W,C[P+12],m,3873151461);W=D(W,V,Y,X,C[P+15],l,530742520);X=D(X,W,V,Y,C[P+2],j,3299628645);Y=t(Y,X,W,V,C[P+0],U,4096336452);V=t(V,Y,X,W,C[P+7],T,1126891415);W=t(W,V,Y,X,C[P+14],R,2878612391);X=t(X,W,V,Y,C[P+5],O,4237533241);Y=t(Y,X,W,V,C[P+12],U,1700485571);V=t(V,Y,X,W,C[P+3],T,2399980690);W=t(W,V,Y,X,C[P+10],R,4293915773);X=t(X,W,V,Y,C[P+1],O,2240044497);Y=t(Y,X,W,V,C[P+8],U,1873313359);V=t(V,Y,X,W,C[P+15],T,4264355552);W=t(W,V,Y,X,C[P+6],R,2734768916);X=t(X,W,V,Y,C[P+13],O,1309151649);Y=t(Y,X,W,V,C[P+4],U,4149444226);V=t(V,Y,X,W,C[P+11],T,3174756917);W=t(W,V,Y,X,C[P+2],R,718787259);X=t(X,W,V,Y,C[P+9],O,3951481745);Y=K(Y,h);X=K(X,E);W=K(W,v);V=K(V,g)}var i=B(Y)+B(X)+B(W)+B(V);return i.toLowerCase()},swf:function(){$this=this;var Y="SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>",ar="undefined",aE="object",ac="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aF="application/x-shockwave-flash",ad="SWFObjectExprInst",ay="onreadystatechange",ag=window,aM=document,aC=navigator,ab=false,aa=[aO],aH=[],ah=[],am=[],aK,ae,aq,au,al=false,aV=false,aI,ao,aJ=true,ai=function(){var a=typeof aM.getElementById!=ar&&typeof aM.getElementsByTagName!=ar&&typeof aM.createElement!=ar,e=aC.userAgent.toLowerCase(),c=aC.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 aC.plugins!=ar&&typeof aC.plugins[ac]==aE){k=aC.plugins[ac].description;if(k&&!(typeof aC.mimeTypes!=ar&&aC.mimeTypes[aF]&&!aC.mimeTypes[aF].enabledPlugin)){ab=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 ag.ActiveXObject!=ar){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}}(),aL=function(){if(!ai.w3){return}if((typeof aM.readyState!=ar&&aM.readyState=="complete")||(typeof aM.readyState==ar&&(aM.getElementsByTagName("body")[0]||aM.body))){aQ()}if(!al){if(typeof aM.addEventListener!=ar){aM.addEventListener("DOMContentLoaded",aQ,false)}if(ai.ie&&ai.win){aM.attachEvent(ay,function(){if(aM.readyState=="complete"){aM.detachEvent(ay,arguments.callee);aQ()}});if(ag==top){(function(){if(al){return}try{aM.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aQ()})()}}if(ai.wk){(function(){if(al){return}if(!/loaded|complete/.test(aM.readyState)){setTimeout(arguments.callee,0);return}aQ()})()}aD(aQ)}}();function aQ(){if(al){return}try{var b=aM.getElementsByTagName("body")[0].appendChild(at("span"));b.parentNode.removeChild(b)}catch(a){return}al=true;var d=aa.length;for(var c=0;c<d;c++){aa[c]()}}function ak(a){if(al){a()}else{aa[aa.length]=a}}function aD(a){if(typeof ag.addEventListener!=ar){ag.addEventListener("load",a,false)}else{if(typeof aM.addEventListener!=ar){aM.addEventListener("load",a,false)}else{if(typeof ag.attachEvent!=ar){aN(ag,"onLoad",a)}else{if(typeof ag.onLoad=="function"){var b=ag.onLoad;ag.onLoad=function(){b();a()}}else{ag.onLoad=a}}}}}function aO(){if(ab){Z()}else{an()}}function Z(){var d=aM.getElementsByTagName("body")[0];var b=at(aE);b.setAttribute("type",aF);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=ar){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ai.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;an()})()}else{an()}}function an(){var g=aH.length;if(g>0){for(var h=0;h<g;h++){var c=aH[h].id;var l=aH[h].callbackFn;var a={success:false,id:c};if(ai.pv[0]>0){var i=aT(c);if(i){if(ap(aH[h].swfVersion)&&!(ai.wk&&ai.wk<312)){az(c,true);if(l){a.success=true;a.ref=aw(c);l(a)}}else{if(aH[h].expressInstall&&av()){var e={};e.data=aH[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")}}af(e,f,c,l)}else{aG(i);if(l){l(a)}}}}}else{az(c,true);if(l){var b=aw(c);if(b&&typeof b.SetVariable!=ar){a.success=true;a.ref=b}l(a)}}}}}function aw(b){var d=null;var c=aT(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=ar){d=c}else{var a=c.getElementsByTagName(aE)[0];if(a){d=a}}}return d}function av(){return !aV&&ap("6.0.65")&&(ai.win||ai.mac)&&!(ai.wk&&ai.wk<312)}function af(f,d,h,e){aV=true;aq=e||null;au={success:false,id:h};var a=aT(h);if(a){if(a.nodeName=="OBJECT"){aK=aP(a);ae=null}else{aK=a;ae=h}f.id=ad;if(typeof f.width==ar||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==ar||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aM.title=aM.title.slice(0,47)+" - Flash Player Installation";var b=ai.ie&&ai.win?"ActiveX":"PlugIn",c="MMredirectURL="+ag.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aM.title;if(typeof d.flashvars!=ar){d.flashvars+="&"+c}else{d.flashvars=c}if(ai.ie&&ai.win&&a.readyState!=4){var g=at("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)}})()}aB(f,d,h)}}function aG(a){if(ai.ie&&ai.win&&a.readyState!=4){var b=at("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aP(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aP(a),a)}}function aP(b){var d=at("div");if(ai.win&&ai.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aE)[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 aB(e,g,c){var d,a=aT(c);if(ai.wk&&ai.wk<312){return d}if(a){if(typeof e.id==ar){e.id=c}if(ai.ie&&ai.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>";ah[ah.length]=e.id;d=aT(e.id)}else{var b=at(aE);b.setAttribute("type",aF);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"){aR(b,l,g[l])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aR(b,d,c){var a=at("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function ax(a){var b=aT(a);if(b&&b.nodeName=="OBJECT"){if(ai.ie&&ai.win){b.style.display="none";(function(){if(b.readyState==4){aU(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aU(a){var b=aT(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aT(a){var c=null;try{c=aM.getElementById(a)}catch(b){}return c}function at(a){return aM.createElement(a)}function aN(a,c,b){a.attachEvent(c,b);am[am.length]=[a,c,b]}function ap(a){var b=ai.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 aA(b,f,a,c){if(ai.ie&&ai.mac){return}var e=aM.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aI=null;ao=null}if(!aI||ao!=g){var d=at("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aI=e.appendChild(d);if(ai.ie&&ai.win&&typeof aM.styleSheets!=ar&&aM.styleSheets.length>0){aI=aM.styleSheets[aM.styleSheets.length-1]}ao=g}if(ai.ie&&ai.win){if(aI&&typeof aI.addRule==aE){aI.addRule(b,f)}}else{if(aI&&typeof aM.createTextNode!=ar){aI.appendChild(aM.createTextNode(b+" {"+f+"}"))}}}function az(a,c){if(!aJ){return}var b=c?"visible":"hidden";if(al&&aT(a)){aT(a).style.visibility=b}else{aA("#"+a,"visibility:"+b)}}function aj(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=ar?encodeURIComponent(b):b}var aS=function(){if(ai.ie&&ai.win){window.attachEvent("onunload",function(){var a=am.length;for(var b=0;b<a;b++){am[b][0].detachEvent(am[b][1],am[b][2])}var d=ah.length;for(var c=0;c<d;c++){ax(ah[c])}for(var e in ai){ai[e]=null}ai=null;for(var f in cometifyInstances[$this.instanceId].swf){cometifyInstances[$this.instanceId].swf[f]=null}cometifyInstances[$this.instanceId].swf=null})}}();return{registerObject:function(a,e,c,b){if(ai.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aH[aH.length]=d;az(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ai.w3){return aw(a)}},embedSWF:function(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ai.w3&&!(ai.wk&&ai.wk<312)&&k&&e&&h&&f&&c){az(e,false);ak(function(){h+="";f+="";var q={};if(g&&typeof g===aE){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aE){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aE){for(var l in b){if(typeof n.flashvars!=ar){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ap(c)){var m=aB(q,n,e);if(q.id==e){az(e,true)}d.success=true;d.ref=m}else{if(a&&av()){q.data=a;af(q,n,e,j);return}else{az(e,true)}}if(j){j(d)}})}else{if(j){j(d)}}},switchOffAutoHideShow:function(){aJ=false},ua:ai,getFlashPlayerVersion:function(){return{major:ai.pv[0],minor:ai.pv[1],release:ai.pv[2]}},hasFlashPlayerVersion:ap,createSWF:function(a,b,c){if(ai.w3){return aB(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ai.w3&&av()){af(b,a,d,c)}},removeSWF:function(a){if(ai.w3){ax(a)}},createCSS:function(b,a,c,d){if(ai.w3){aA(b,a,c,d)}},addDomLoadEvent:ak,addLoadEvent:aD,getQueryParamValue:function(b){var a=aM.location.search||aM.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return aj(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return aj(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aV){var a=aT(ad);if(a&&aK){a.parentNode.replaceChild(aK,a);if(ae){az(ae,true);if(ai.ie&&ai.win){aK.style.display="block"}}if(aq){aq(au)}}aV=false}}}}()};
