if(typeof Wildfire=="undefined"){Wildfire=new Object();Wildfire.LinkedLoading=true;Wildfire._pixeIframeCreated=false;Wildfire._NextZIndex=1000;Wildfire._runningID=0}Wildfire.Flash={isIE:(navigator.appVersion.indexOf("MSIE")!=-1)?true:false,isWin:(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false,isOpera:(navigator.userAgent.indexOf("Opera")!=-1)?true:false,getFlashVersion:function(){var B=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash"]){var A=navigator.plugins["Shockwave Flash"].description;if(A!=null){B=A.split(" ")[2].split(".")[0]}}}else{if(this.isIE&&this.isWin&&!this.isOpera){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var A=C.GetVariable("$version")}catch(D){}if(A!=null){B=A.split(" ")[1].split(",")[0]}}}return B},AC_Generateobj:function(E,D,A){var C="";if(this.isIE&&this.isWin&&!this.isOpera){C+="<object ";for(var B in E){C+=B+'="'+E[B]+'" '}C+=">";for(var B in D){C+='<param name="'+B+'" value="'+D[B]+'" /> '}C+="</object>"}else{C+="<embed ";for(var B in A){C+=B+'="'+A[B]+'" '}C+="> </embed>"}return C},AC_FL_GetContent:function(){var A=this.AC_GetArgs(arguments);return this.AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)},AC_GetArgs:function(B,D,F){var A={};A.embedAttrs={};A.params={};A.objAttrs={};for(var C=0;C<B.length;C=C+2){var E=B[C].toLowerCase();switch(E){case"movie":A.embedAttrs.src=B[C+1];A.params.movie=B[C+1];break;case"id":case"width":case"height":case"align":case"name":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs.codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";A.objAttrs.classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";A.embedAttrs.type="application/x-shockwave-flash";A.embedAttrs.pluginspage="http://www.macromedia.com/go/getflashplayer";return A}};Wildfire.onClose=Wildfire.onPostProfile=Wildfire.onPostComment=Wildfire.onSend=Wildfire.onEmail=function(){};Wildfire.modules=new Object();Wildfire.modulesArray=new Array();Wildfire.initShare=function(E,C,D,A,B){return Wildfire._createJSModule("share",""+E,C,D,A,B,"cssURL,cornerRoundness,initialMessageType,domainForCallback,partner,source,partnerData,width,height,emailTabHidden,customCheckboxVisible,customCheckboxChecked,customCheckboxText,internalColor,frameColor,externalColor,tabTextColor,textColor,fontType,fontSize,headerInternalColor,headerFrameColor")};Wildfire.initPost=function(E,C,D,A,B){return Wildfire._createFlashModule("post",""+E,C,D,A,B)};Wildfire.init=Wildfire.initShare;Wildfire.applyConfig=function(A){if(isnotnull(Wildfire.share)){Wildfire.share.applyConfig(A)}};Wildfire._GetFlashModuleXMLConfig=function(A){document.getElementById(A).style.background="";var B=document.getElementById(A+"_progress");if(B!=null){B.innerHTML="&nbsp;";B.style.display="none";B.style.visibility="hidden"}xs=["config",[],["display",["width","height","showCodeBox","rememberMeVisible","emailImportProviders","networksToShow","networksToHide","bookmarksToShow","bookmarksToHide","bulletinChecked","showEmail","showPost","showBookmark","showDesktop","showCloseButton"],"body",["font=fontType","size=fontSize"],["background",["frame-color=frameColor","background-color=internalColor","corner-roundness=cornerRoundness"],"controls",[],["textboxes",[],["inputs",["color=textInputColor","background-color=textInputBackgroundColor","frame-color=textInputBorderColor"]],"snbuttons",["color=tabTextColor|snButtonsTextColor","background-color=snButtonsBackgroundColor","frame-color=snButtonsFrameColor","over-color=tabTextColor|snButtonsOverTextColor","over-background-color=snButtonsOverBackgroundColor","over-frame-color=snButtonsOverFrameColor"],"buttons",["font=fontType|buttonFontType","color=buttonTextColor"]],'texts background-color="transparent" ',["color=textColor"],["messages",["color=messageTextColor"],"links",["font=linkFontType","color=linkTextColor"],"privacy",["color=privacyTextColor"]]]]];var D=Wildfire._GetFlashModuleConfig(A);var C=Wildfire._BuildXMLConfigFromJSON(D,xs);return C};Wildfire._GetFlashModuleConfigAttribute=function(G,D,H,B){document.getElementById(G).style.background="";var F=document.getElementById(G+"_progress");if(F!=null){F.innerHTML="&nbsp;";F.style.display="none";F.style.visibility="hidden"}var A=Wildfire.modules[G];if(A!=null){var I=A.config[D];if(typeof I=="undefined"){return null}if(typeof I=="function"){return I(D,B)}if(H==true){if(isnotnull(I)){try{var C=document.getElementById(I);if(isnotnull(C)){return C.value}else{return I}}catch(E){return I}}}else{return I}}else{return{error:"Modlue not found",MID:G}}};Wildfire._GetFlashModuleConfig=function(A){if(Wildfire.modules==null){alert("Wildfire has no modules yet")}var C=Wildfire.modules[A];if(C!=null){var B=C.config;return B}else{return null}};Wildfire._BuildXMLConfigFromJSON=function(F,A){var L=new Array();try{for(var D=0;D<A.length;D+=2){L[L.length]="<"+A[D]+" ";var G=A[D+1];for(var B=0;B<G.length;B++){var I=G[B].split("=");var J=I[0];var C;if(I.length>1){C=I[1]}else{C=I[0]}var K=C.split("|");for(var E=0;E<K.length;E++){if(typeof F[K[E]]!="undefined"){L[L.length]=J+'="';L[L.length]=(""+F[K[E]]).replace("&","&amp;").replace('"',"&quot;").replace("<","&lt;").replace(">","&gt;");L[L.length]='" ';break}}}if(D+2==A.length){L[L.length]="/>"}else{if(typeof A[D+2]!="string"){L[L.length]=">";L[L.length]=Wildfire._BuildXMLConfigFromJSON(F,A[D+2]);L[L.length]="</"+A[D].split(" ")[0]+">";D++}else{L[L.length]="/>"}}}}catch(H){}return L.join("")};Wildfire._createJSModule=function(H,A,I,B,K,D,J){try{D.location=document.location.href}catch(E){}D.partner=A;D.width=B;D.height=K;if(undef(H)||undef(A)||undef(I)||undef(B)||undef(K)||undef(D)){return }var C=this[I]=this.modules[I]=this.modulesArray[this.modulesArray.length]=new Wildfire._JSModule();C.copyConfig(D);C.ready=false;C.type=H;C.id=I;C.partner=A;C.width=B;C.height=K;C.container=document.getElementById(I);C.container.style.width=B+"px";C.container.style.height=K+"px";C.qsParams=new Array();var G=J.split(",");for(var F=0;F<G.length;F++){Wildfire._addQSParam(C,G[F])}C.init(true);return C};Wildfire._origOnLoad=null;Wildfire._onLoad=function(A){Wildfire.onLoad=Wildfire._origOnLoad;if(Wildfire.LinkedLoading==false){if(Wildfire._origOnLoad!=null){Wildfire._origOnLoad(A)}return }Wildfire.LinkedLoading=false;if(Wildfire._origOnLoad!=null){Wildfire._origOnLoad(A)}if((A.ModuleID==Wildfire.modulesArray[0].id)){for(var B=1;B<Wildfire.modulesArray.length;B++){if(!Wildfire.modulesArray[B].ready){try{Wildfire.modulesArray[B].init(true)}catch(C){}}}}};Wildfire._createTextareaModule=function(F,A,D,C){var G="";var E=D.defaultContent;if(document.getElementById(E)!=null){E=document.getElementById(E).value}if(!(D.UIConfig&&(D.UIConfig.indexOf('showCodeBox="false"')!=-1||D.UIConfig.indexOf("showCodeBox='false'")!=-1))){G+='<textarea style="width: '+F+"px; height: "+A+'px">';G+=E;G+="</textarea>"}var B=document.getElementById(C);B.style.width=F+"px";B.style.height=A+"px";B.innerHTML=G};Wildfire._createFlashModule=function(H,A,I,B,K,D){try{if(typeof D.bookmarkURL=="undefined"){D.bookmarkURL=document.location.href}}catch(F){}if(Wildfire.LinkedLoading){if(typeof Wildfire.onLoad!="undefined"&&Wildfire.onLoad!=Wildfire._onLoad){Wildfire._origOnLoad=Wildfire.onLoad}Wildfire.onLoad=Wildfire._onLoad}var J=false;var G;if(this.modules[I]!=null){J=true;document.getElementById(I).innerHTML="&nbsp;";G=this.modules[I].idxInArray}else{G=this.modulesArray.length}try{D.location=document.location.href}catch(E){}D.partner=A;D.width=B;D.height=K;if(undef(H)||undef(A)||undef(I)||undef(B)||undef(K)||undef(D)){return }var C=new Wildfire._FlashModule();this.modulesArray[G]=this[I]=this.modules[I]=C;C.idxInArray=G;C.copyConfig(D);C.queued=false;C.ready=false;C.type=H;C.id=I;C.partner=A;C.width=B;C.height=K;C.container=document.getElementById(I);C.container.style.width=B+"px";C.container.style.height=K+"px";if(!Wildfire.LinkedLoading||this.modulesArray.length==1||this.modulesArray[0].ready){C.init(true)}else{C.queued=true}return C};Wildfire._raiseModulesUpdate=function(){var C="";for(var A in this.modules){C+=A+","}var B={type:"modulesUpdate",modules:C};this._raiseSysEvent(B)};Wildfire._raiseSysSignoutEvent=function(){this._raiseSysEvent({type:"signout"})};Wildfire._raiseSysEvent=function(C){if(this.modulesArray.length<=1){return }for(var B in this.modules){var A=this.modules[B].raiseSysEvent;if(A!=null){A(C)}}};Wildfire._onFrameLoaded=function(B){var C=document.getElementById(B+"_UIFrame");if(C!=null){C.style.visibility="visible"}var A=document.getElementById(B+"_progress");if(A!=null){A.style.display="none"}this.modules[B].UIFrame.style.visibility="visible";this.modules[B].applyConfig();this.modules[B].ready=true;setTimeout("Wildfire._raiseModulesUpdate()",1500)};Wildfire._addQSParam=function(B,A){if(def(typeof B.config)&&def(B.config[A])){B.qsParams[B.qsParams.length]=A+"="+Wildfire._URLEncode(B.config[A])}};Wildfire._URLEncode=function(A){if(encodeURIComponent){return encodeURIComponent(A)}else{es=escape(A);return es.replace(/\+/g,"%2b").replace(/%20/g,"+").replace(/[/]/g,"%2f").replace(/%3D/g,"%3d")}};Wildfire._eventHandlersMap={send:"onSend",postComment:"onPostComment",postProfile:"onPostProfile",close:"onClose",renderDone:"onRenderDone",networkButtonClicked:"onNetworkButtonClicked",load:"onLoad",copy:"onCopy",inspect:"onInspect",error:"onError",message:"onMessage",email:"onEmail"};Wildfire._eventObjects={};Wildfire._onCallback=Wildfire._raiseEvent=function(A){var C="h_"+(++Wildfire._runningID);Wildfire._eventObjects[C]=A;var B=Wildfire._eventHandlersMap[A.type];window.setTimeout("Wildfire.raiseEvent2('"+C+"')",1)};Wildfire.raiseEvent2=function(C){try{var A=Wildfire._eventObjects[C];var B=Wildfire._eventHandlersMap[A.type];if(isnotnull(Wildfire[B])){Wildfire[B](A)}if(isnotnull(Wildfire.modules[A.ModuleID].config[B])){Wildfire.modules[A.ModuleID].config[B](A)}}catch(D){}delete Wildfire._eventObjects[C]};Wildfire._Module=function(){};Wildfire._JSModule=function(){this.formsContainer=null;this.pingTimeout=null};Wildfire._JSModule.prototype=new Wildfire._Module();Wildfire._FlashModule=function(){};Wildfire._FlashModule.prototype=new Wildfire._Module();Wildfire._JSModule.prototype.pingOK=function(A){window.clearTimeout(this.pingTimeout);this.config.safeMode=!A;this.init(false)};Wildfire._FlashModule.prototype.init=function(B){var A="";if((""+this.config.isApply)!="true"&&this.config.hideProgress!=true){document.getElementById(this.id).style.background="url("+this.config.progressImageSrc+") no-repeat center center"}var C="http://cdn.gigya.com/WildFire/swf/wildfire_en.swf";if(this.config.lang!=null){C="http://cdn.gigya.com/WildFire/swf/wildfire_"+this.config.lang+".swf"}var D=(this.config.nowmode?"":"transparent");if(this.config.wmodeType){D=this.config.wmodeType}A+=Wildfire.Flash.AC_FL_GetContent("id","wfmodule_"+this.id,"name","wfmodule_"+this.id,"width",this.config.width,"height",this.config.height,"movie",C,"quality","high","align","middle","play","true","loop","true","scale","showall","wmode",D,"devicefont","false","bgcolor",((this.config.nowmode&&this.config.outsideColor)?this.config.outsideColor:"#ffffff"),"menu","true","allowFullScreen","false","allowScriptAccess","always","salign","","flashvars","ModuleID="+this.id+"&now="+(new Date()).getTime(),"swLiveConnect","true");window["wfmodule_"+this.id]=null;if(!Wildfire._pixeIframeCreated){A+="<iframe src='http://cdn.gigya.com/wildfire/do_not_delete.htm' style='width:0;height:0;visibility:hidden' />";Wildfire._pixeIframeCreated=true}this._injectWFCode(A);window["wfmodule_"+this.id]=document.getElementById("wfmodule_"+this.id)};Wildfire._IsModuleReady=function(A){return(window["wfmodule_"+A]!=null)};Wildfire._JSModule.prototype.init=function(C){var D="http://wildfire.gigya.com/wildfire";var A=this.id;var I=A+"_UIFrame";var F=this.config;if(!F.safeMode&&C&&this.pingTimeout==null){var H=document.createElement("script");H.src=D+"/jsping.ashx?mid="+A+"&rand="+Math.random()+Math.random();this.container.appendChild(H);this.pingTimeout=window.setTimeout("Wildfire.modules['"+A+"'].pingOK(false)",10000);return }var G=this.qsParams.join("&");G+=("&mid="+A);var E="";var J="";var B=D+"/"+this.type+"Main.aspx?"+G;if(F.safeMode){B=this.getSafeModeURL();if(B==null){Wildfire[A]=Wildfire.modules[A]=Wildfire.modulesArray[Wildfire.modulesArray.length]=null;return null}E+="<iframe allowtransparency='true' id="+I+" name="+I+" style='width:"+F.width+"px;height:"+F.height+"px;display:inherit;visibility:inherit' frameborder=0 scrolling=no></iframe>";J+="<form id='"+A+"_postForm' action='"+B+"' method='POST' target="+I+" style='display:none'></form>"}else{if(F.simple){if(this.type=="share"){B=D+"/shareSimple.aspx"}if(B==null){Wildfire[A]=Wildfire.modules[A]=Wildfire.modulesArray[Wildfire.modulesArray.length]=null;return null}E+="<iframe allowtransparency='true' id="+I+" name="+I+" style='width:"+F.width+"px;height:"+F.height+"px;display:inherit;visibility:inherit' frameborder=0 scrolling=no></iframe>";J+="<form id='"+A+"_postForm' action='"+B+"' method='POST' target="+I+" style='display:none'></form>"}else{E+="<div style='position:relative;top:50%;text-align:center;font-size:12px;' id='"+A+"_progress'><center><img  src='"+F.progressImageSrc+"'></center></div>";E+="<iframe allowtransparency='true' onload='Wildfire._onFrameLoaded(\""+A+"\")' id="+I+" style='visibility:hidden;width:"+F.width+"px;height:"+F.height+"px;' src='"+B+"' frameborder=0 scrolling=no></iframe>";E+='<iframe id="IFREndlessActivityBugFix" style="display:none;width:100px;height:10px"></iframe>';E+=this._createCBFrame();J+="<form id='"+A+"_postForm' action='"+D+"/WFHandler.ashx?cmd=config' method='POST' target='"+A+"_postTargetFrame' style='display:none'></form>";J+="<form id='"+A+"_sysEventForm' action='"+D+"/WFHandler.ashx?cmd=sysEvent' method='POST' target='"+A+"_sysEventFrame' style='display:none'></form>"}}this._injectWFCode(E,J);if(document.getElementById(A+"_wfCBFrame")==null){F.domainForCallback=null}this.UIFrame=document.getElementById(A+"_UIFrame");this.postForm=document.getElementById(A+"_postForm");this.sysEventForm=document.getElementById(A+"_sysEventForm");if(F.simple||F.safeMode){this.applyConfig()}};Wildfire._JSModule.prototype._createCBFrame=function(){if(def(this.config.domainForCallback)&&document.getElementById(this.id+"_wfCBDiv")==null){try{document.domain=this.config.domainForCallback;return"<iframe name='"+this.id+"_wfCBFrame' style='visibility:hidden;width:0px;height:0px;' src='http://wildfire."+this.config.domainForCallback+"/wildfire/WFHandler.ashx?domain="+escape(this.config.domainForCallback)+"'></iframe>"}catch(A){return""}}else{return""}};Wildfire._FlashModule.prototype.copyConfig=Wildfire._JSModule.prototype.copyConfig=function(A){if(A!=null){this.config={};for(var B in A){this.config[B]=A[B]}}if(undef(this.config.progressImageSrc)){this.config.progressImageSrc="http://cdn.gigya.com/WildFire/i/progress_ani.gif"}if(undef(this.config.simple)){this.config.simple=navigator.userAgent.toLowerCase().indexOf("safari")!=-1}};Wildfire._JSModule.prototype.getSafeModeURL=function(){if(this.type=="share"){return"http://backup.gigya.com/WFSimple/share.aspx"}return null};Wildfire._JSModule.prototype._injectWFCode=function(A,C){var B=this.container;for(;((B!=null)&&((""+B.tagName).toLowerCase()!="form"));B=B.parentNode){}if(B!=null){this.container.innerHTML=A;this.formsContainer=document.createElement("div");this.formsContainer.style.display="none";B.parentNode.insertBefore(this.formsContainer,B);this.formsContainer.innerHTML=C}else{this.container.innerHTML=A+C}};Wildfire._FlashModule.prototype._injectWFCode=function(A){this.container.innerHTML=A};Wildfire._JSModule.prototype.raiseSysEvent=function(D){if(this.sysEventForm==null||!this.ready){return }var C=new Array();var B=0;for(var A in D){if(typeof A!="function"&&D[A]!=null){C[B++]="<input type=hidden name='"+A+"'/>"}}this.sysEventForm.innerHTML=C.join("");for(var B=0;B<this.sysEventForm.length;B++){this.sysEventForm[B].value=D[this.sysEventForm[B].name]}this.sysEventForm.submit()};Wildfire._FlashModule.prototype.applyConfig=function(A){A.isApply="true";return Wildfire._createFlashModule(this.type,this.partner,this.id,this.width,this.height,A)};Wildfire._JSModule.prototype.applyConfig=function(B){if(B!=null){this.copyConfig(B)}var A=this.config;if(A==null){return }if(A.location==null||A.location==""){try{A.location=document.location.href}catch(F){}}A.partner=this.partner;A.width=this.width;A.height=this.height;postContent=["default","myspace","hi5","friendster","xanga","livejournal","freewebs","facebook","bebo","blogger","tagged","typepad","blackplanet"];for(var H=0;H<postContent.length;H++){this._getTemplate(postContent[H]+"Content")}shareTemplates=["default","comment","email","myspace","hi5","friendster","xanga","freewebs"];for(var G=0;G<shareTemplates.length;G++){this._getTemplate(shareTemplates[G]+"Template")}var E=new Array();var D=0;for(var C in A){if(typeof C!="function"&&A[C]!=null){E[D++]="<input type=hidden name='"+C+"'/>"}}this.postForm.innerHTML=E.join("");for(var D=0;D<this.postForm.length;D++){this.postForm[D].value=this.config[this.postForm[D].name]}this.postForm.submit();window.setTimeout("Wildfire._EndlessActivityBugFix();",1000)};Wildfire._EndlessActivityBugFix=function(){var A=document.getElementById("IFREndlessActivityBugFix");if(A!=null){A.src="http://cdn.gigya.com/wildfire/i/n.gif"}};Wildfire._JSModule.prototype._getTemplate=function(A){if(isnotnull(this.config[A])){try{if(isnotnull(document.getElementById(this.config[A]))){this.config[A]=document.getElementById(this.config[A]).value}}catch(B){}}};Wildfire._CopyAtts=function(A,B,C){for(k in C.split(",")){A[C[k]]=B[C[k]]}};Wildfire._CopyAllAtts=function(A,B){for(k in B){A[k]=B[k]}};function undef(A){return(typeof (A)=="undefined")}function def(A){return(typeof (A)!="undefined")}function isnotnull(A){return(def(A)&&(A!=null))}function WFQueue(){var A=new Array();var B=0;this.count=function(){return A.length};this.enqueue=function(C){A.push(C)};this.dequeue=function(){if(A.length){var D=A[B];if(++B*2>=A.length){for(var C=B;C<A.length;C++){A[C-B]=A[C]}A.length-=B;B=0}return D}else{return undefined}}}Wildfire._GetElementPos=function(A){var B=curtop=0;if(A.offsetParent){do{B+=A.offsetLeft;curtop+=A.offsetTop}while(A=A.offsetParent)}return{left:B,top:curtop}};Wildfire._HandleEmbedAndObjectsBelow=function(K,H,Q){var J=true;var A=Wildfire._GetElementPos(K);var F=A.top;var E=A.left;var S=E+H;var I=F+Q;var M;if(Wildfire.Flash.isIE){M=["iframe"]}else{M=["embed","iframe"]}for(var O=0;O<M.length;O++){tagname=M[O];elements=document.getElementsByTagName(tagname);for(var P=0;P<elements.length;P++){var C=elements[P];if(C.style.visibility!="hidden"&&K.childNodes[0]!=C){var G=Wildfire._GetElementPos(C);var N=G.top;var L=G.left;var B=(document.defaultView)?document.defaultView.getComputedStyle(C,""):C.currentStyle;var D=L+parseInt(B.getPropertyValue?B.getPropertyValue("width"):B.width);var R=N+parseInt(B.getPropertyValue?B.getPropertyValue("height"):B.height);if(!((N>I)||(R<F)||(L>S)||(D<E))){var T=(tagname=="iframe")&&((C.id+"          ").substr(0,10)!="gigya_ifr_");if(((tagname=="embed")&&((C.getAttribute("wmode")==null)||(C.getAttribute("wmode")=="")||(C.getAttribute("wmode")=="window")))||T){if(J&&(K.id!="coreDiv")){C.style.visibility="hidden";if(K.elementsToShowOnClose==null){K.elementsToShowOnClose=[]}K.elementsToShowOnClose.push(C)}}}}}}};Wildfire._CreateContainer=function(E,A){var D;if(Wildfire.Flash.isIE&&Wildfire.Flash.isWin&&!A){D=document.createElement("IFRAME");D.id="gigya_ifr_"+E;D.frameBorder="0";D.style.border="0px";D.style.position="absolute";D.style.width="1px";D.style.height="1px";if(D.style.zIndex!=null){D.style.zIndex=Wildfire._NextZIndex++}}var C=document.createElement("div");C.style.position="absolute";if(C.style.zIndex!=null){C.style.zIndex=Wildfire._NextZIndex++}var B="";C.innerHTML=B;C.id=E;C.swfLoaded=false;if(document.body){if(document.body.insertBefore){if(document.body.firstChild){if(D!=null){document.body.insertBefore(D,document.body.firstChild)}document.body.insertBefore(C,document.body.firstChild)}}}return C};Wildfire._hideWildfirePopup=function(D){var B=document.getElementById(D.ModuleID);var E=document.getElementById("gigya_ifr_"+D.ModuleID);if(E!=null){E.style.visibility="hidden"}var C=B.elementsToShowOnClose;if(C!=null){for(var A=0;A<C.length;A++){C[A].style.visibility=""}}B.style.visibility="hidden"};if(typeof Wildfire._popupConfigs=="undefined"){Wildfire._popupConfigs=[]}Wildfire.drawWildfireButton=function(E){if(typeof E.w=="undefined"){E.w=400}if(typeof E.h=="undefined"){E.h=300}if(E.b==null){E.b="click"}var A="";if(typeof (E.btnurl)=="undefined"){switch(E.conf.module){case"bookmarks":E.btnurl="http://cdn.gigya.com/wildfire/i/bookmark_button.gif";break;case"post":default:E.btnurl="http://cdn.gigya.com/wildfire/i/post-to-button.gif"}}switch(E.conf.module){case"bookmarks":A="Add to bookmarks";E.conf.showBookmark="true";E.conf.showEmail="false";E.conf.showPost="false";break;case"post":E.conf.showEmail="true";E.conf.showBookmark="true";default:A="Post to my social network or blog"}switch(E.theme){case"1":E.conf.UIConfig='<config><display showEmail="true" useTransitions="true" showBookmark="true"></display><body corner-roundness="8"><background gradient-color-begin="#00006D" gradient-color-end="#28516D"></background><controls><snbuttons type="textUnder" background-color="#FFFFFF" over-background-color="#FFFFFF" color="DEE8EC" corner-roundness="0;10;0;10" size="11" bold="true" over-color="#FFFFC8"></snbuttons><textboxes><codeboxes color="#6A6A6A" frame-color="#0D1B6D" background-color="DEE8EC"></codeboxes><inputs gradient-color-begin="E9F0F3" gradient-color-end="E9F0F3"></inputs><dropdowns list-item-over-color="#1B0D6D" gradient-color-begin="E9F0F3" gradient-color-end="E9F0F3" list-item-over-gradient-color-end="#28516D"></dropdowns></textboxes><buttons gradient-color-begin="#0099FF" gradient-color-end="#223276" color="#FFFFFF" corner-roundness="0;8;0;8" font="arial" size="11" bold="true" over-gradient-color-begin="#0099FF" over-gradient-color-end="#0099FF"></buttons><servicemarker gradient-color-begin="Transparent" gradient-color-end="#0098FE"></servicemarker></controls><texts color="#FFFFFF" bold="true"><privacy color="#AAAAAA"></privacy><labels color="C1D7E5"></labels><messages color="#F4F4F4" background-color="#1B366D" bold="true"></messages><links color="E9F0F3" underline="false" over-color="#ADC8FF"></links></texts></body></config>';break;case"2":E.conf.UIConfig='<config><display showDesktop="false" showEmail="true" useTransitions="true" showBookmark="true" codeBoxHeight="auto" showCodeBox="true" showCloseButton="false" bulletinChecked="false" networksWithCodeBox=""></display><body corner-roundness="8"><background frame-color="Transparent" gradient-color-begin="#353535" gradient-color-end="#606060" corner-roundness="8;8;8;8"></background><controls size="11" bold="true"><snbuttons type="textUnder" frame-color="#6D0000" background-color="#FFFFFF" over-background-color="#FFFFFF" color="#CACACA" corner-roundness="0;8;8;8" gradient-color-begin="#8A8A8A" gradient-color-end="#000000" font="Arial" size="11" bold="false" over-gradient-color-begin="#AAAAAA" over-gradient-color-end="#000000" over-color="#F4F4F4" down-color="#000000"><more frame-color="Transparent"></more></snbuttons><textboxes frame-color="#000000" color="#AAAAAA" corner-roundness="0;0;0;0" gradient-color-begin="#202020" gradient-color-end="#0B0B0B" font="Arial" bold="false"><codeboxes color="#EAEAEA" frame-color="#8A8A8A" gradient-color-begin="#000000" font="Arial" bold="false"></codeboxes><inputs frame-color="#6D0000"></inputs><dropdowns frame-color="#6D0000" handle-gradient-color-begin="#B60000" handle-gradient-color-end="#6D0000" handle-over-gradient-color-begin="#FF0000" handle-over-gradient-color-end="#DA0000" handle-down-gradient-color-begin="#FF0000" handle-down-gradient-color-end="#6D0000" background-color="#6D0000" gradient-color-begin="#000000" font="Arial" bold="false"></dropdowns></textboxes><buttons frame-color="#FF0000" gradient-color-begin="#FF2424" gradient-color-end="#6D0000" color="#F4F4F4" corner-roundness="0;8;8;8" font="Arial" size="10" bold="false" down-frame-color="#000000" over-gradient-color-begin="#DA0000" down-gradient-color-begin="#910000" over-gradient-color-end="#DA0000" down-gradient-color-end="#FF0000" over-color="#F4F4F4"><post-buttons gradient-color-begin="#FF4949" gradient-color-end="#6D0000"></post-buttons></buttons><listboxes corner-roundness="5"></listboxes><checkboxes down-corner-roundness="0"></checkboxes><servicemarker gradient-color-begin="#DA0000" gradient-color-end="#DA0000"></servicemarker></controls><texts color="#FFFFFF" font="Arial" size="10"><privacy color="#959595" size="11"></privacy><headers size="11" bold="true"></headers><labels size="11" bold="true"></labels><messages color="#D5D5D5" frame-thickness="0" corner-roundness="0;0;0;0" gradient-color-begin="#B60000" gradient-color-end="#000000" size="11" bold="true"></messages><links color="#DFDFDF" underline="false" size="11" bold="true" over-color="#FFFFFF"></links></texts></body></config>';break;case"3":E.conf.UIConfig='<config><display showDesktop="false" showEmail="true" useTransitions="true" showBookmark="true" codeBoxHeight="auto" showCodeBox="true" showCloseButton="false" bulletinChecked="false" networksWithCodeBox=""></display><body corner-roundness="8"><background frame-color="Transparent" gradient-color-begin="#DA0000" gradient-color-end="#FFC8AD" corner-roundness="8;8;8;8"></background><controls size="11" bold="true"><snbuttons type="textUnder" frame-color="#DA0000" background-color="#FFFFFF" over-frame-color="#F4F4F4" over-background-color="#FFFFFF" color="#6D0000" corner-roundness="0;8;8;8" gradient-color-begin="#6D0000" gradient-color-end="#6D0000" font="Arial" size="11" bold="true" down-frame-color="#6D0000" over-gradient-color-begin="#FFAD9F" down-gradient-color-begin="#910000" over-gradient-color-end="#6D0D1B" down-gradient-color-end="#FFAD9F" over-color="#F4F4F4" down-color="#000000"><more frame-color="#AAAAAA" over-frame-color="#AAAAAA" gradient-color-begin="#DA0000" over-gradient-color-begin="#FF5B40"></more><previous frame-color="#AAAAAA" background-color="DBDBDB" over-frame-color="#6D0000" over-background-color="#6A6A6A" gradient-color-begin="#FF5B40" gradient-color-end="#6D0D1B" down-frame-color="6D0000" down-background-color="DBDBDB" over-gradient-color-begin="#910000" down-gradient-color-begin="FF5B40" over-gradient-color-end="#FFAD9F" down-gradient-color-end="6D0D1B"></previous></snbuttons><textboxes frame-color="#353535" color="#F4F4F4" corner-roundness="0;0;0;0" gradient-color-begin="#202020" gradient-color-end="#0B0B0B" font="Arial" bold="false"><codeboxes color="#1B366D" frame-color="#DA0000" gradient-color-begin="#EAEAEA" gradient-color-end="#F4F4F4" font="Arial" bold="false"></codeboxes><inputs frame-color="#B60000" color="#606060" gradient-color-begin="#DFDFDF" gradient-color-end="#DFDFDF"></inputs><dropdowns list-item-over-color="#FF2424" frame-color="#B60000" handle-gradient-color-begin="#AEC8F7" handle-gradient-color-end="#6D0000" handle-over-gradient-color-begin="#AEC8F7" handle-over-gradient-color-end="#AEC8F7" handle-down-gradient-color-begin="#FF0000" handle-down-gradient-color-end="#6D0000" background-color="#EAEAEA" color="#4A4A4A" gradient-color-begin="#EAEAEA" gradient-color-end="#EAEAEA" font="Arial" bold="false" list-item-over-gradient-color-end="#F4F4F4"></dropdowns></textboxes><buttons frame-color="#DA0000" gradient-color-begin="#FF0000" gradient-color-end="#910000" color="#F4F4F4" corner-roundness="0;8;8;8" font="Arial" size="10" bold="true" over-frame-color="#DA0000" down-frame-color="#F4F4F4" over-gradient-color-begin="#DA0000" down-gradient-color-begin="#910000" over-gradient-color-end="#910000" down-gradient-color-end="#0D1B6D" over-color="#F4F4F4"><post-buttons gradient-color-begin="#FF4949" gradient-color-end="#6D0000"></post-buttons></buttons><listboxes corner-roundness="5;5;5;5" bold="false"></listboxes><checkboxes down-corner-roundness="0"></checkboxes><servicemarker gradient-color-begin="#555555" gradient-color-end="#555555"></servicemarker></controls><texts color="#FFFFFF" font="Arial" size="10" bold="true"><privacy color="#910000" size="11" bold="false"></privacy><headers size="11" bold="true"></headers><labels color="#B60000" size="11" bold="true"></labels><messages color="#FFC8AD" background-color="#1B366D" frame-thickness="0" corner-roundness="3;3;3;3" gradient-color-begin="#912412" gradient-color-end="#6D1B0D" size="11" bold="true"></messages><links color="#F4F4F4" underline="false" size="11" bold="true" over-color="#FFFFFF"></links></texts></body></config>';break;case"4":E.conf.UIConfig='<config><display showDesktop="false" showEmail="true" useTransitions="true" showBookmark="true" codeBoxHeight="auto" showCodeBox="true" showCloseButton="false" bulletinChecked="false" networksWithCodeBox=""></display><body corner-roundness="8"><background frame-color="Transparent" gradient-color-begin="#A4DA52" gradient-color-end="#6D9136" corner-roundness="8"></background><controls size="11" bold="true"><snbuttons type="textUnder" frame-color="#6D9136" background-color="#FFFFFF" over-frame-color="#D5D5D5" over-background-color="#FFFFFF" color="#1B6D0D" corner-roundness="0;8;0;8" gradient-color-begin="#88B644" gradient-color-end="#000000" font="Arial" size="11" bold="true" over-gradient-color-begin="#88B644" down-gradient-color-begin="#DADA6D" over-gradient-color-end="#000000" down-gradient-color-end="#6D9136" over-color="#F4F4F4" down-color="#000000"><more frame-color="#BABABA" gradient-color-begin="#516D28" gradient-color-end="#516D28" bold="true"></more><previous frame-color="#BABABA" gradient-color-begin="#516D28" gradient-color-end="#516D28"></previous></snbuttons><textboxes frame-color="#000000" color="#AAAAAA" corner-roundness="0;8;0;8" gradient-color-begin="#6D5128" gradient-color-end="#6D5128" font="Verdana" corner-roundness-top="8" corner-roundness-bottom="8" bold="false"><codeboxes color="#EAEAEA" frame-color="6D1B0D" background-color="#B6B65B" gradient-color-begin="#919148" gradient-color-end="#919148" font="Arial" bold="false"></codeboxes><inputs frame-color="#6D1B0D" color="#FFFFC8" gradient-color-begin="#919148" gradient-color-end="#919148" font="Arial"></inputs><dropdowns list-item-over-color="6D1B0D" frame-color="#6D1B0D" handle-gradient-color-begin="#FFFFC8" handle-gradient-color-end="#DADA6D" handle-over-gradient-color-begin="#FFFFC8" handle-over-gradient-color-end="#FFFFB6" handle-down-gradient-color-begin="#DADA6D" handle-down-gradient-color-end="#DADA6D" background-color="#FFFFC8" color="#FFFFC8" gradient-color-begin="#919148" gradient-color-end="#919148" font="Arial" bold="false" list-item-over-gradient-color-end="#FFFFC8"></dropdowns></textboxes><buttons frame-color="6D1B0D" gradient-color-begin="#FFFFC8" gradient-color-end="#B6B65B" corner-roundness="0;8;8;8" font="Arial" size="11" bold="true" over-frame-color="#6D1B0D" down-frame-color="#F4F4F4" over-gradient-color-begin="#FFFFC8" down-gradient-color-begin="#F4F4F4" over-gradient-color-end="#DADA6D" down-gradient-color-end="#FFFF92" over-color="#28516D"><post-buttons frame-color="#6D1B0D" background-color="#FFFFC8" gradient-color-begin="#FFFFC8" gradient-color-end="B6B65B"></post-buttons></buttons><listboxes corner-roundness="5;5;5;5" bold="false"></listboxes><checkboxes down-corner-roundness="0"></checkboxes><servicemarker gradient-color-begin="#A4DA52" gradient-color-end="#516D28"></servicemarker></controls><texts color="#FFFFFF" font="Arial" size="11" bold="true"><privacy color="#6D361B" size="11" bold="true"></privacy><headers color="#EAEAEA" size="11" bold="true"></headers><labels color="#6D1B0D" size="11" bold="true"></labels><messages color="#6D6D36" background-color="#1B366D" frame-thickness="0" corner-roundness="0;0;0;0" gradient-color-begin="#FFFFC8" gradient-color-end="#FFFFC8" size="11" bold="true"></messages><links color="#FFFFFF" underline="false" size="11" bold="true" over-color="#6D1B0D" down-color="#366D1B"></links></texts></body></config>';break;case"5":E.conf.UIConfig='<config><display showEmail="true" useTransitions="true" showBookmark="true"></display><body corner-roundness="8"><background gradient-color-begin="#ADC8FF"></background><controls><snbuttons type="textUnder" background-color="#FFFFFF" over-background-color="#FFFFFF" color="#376DDA" corner-roundness="0;10;0;10" size="11" bold="false" over-color="#0D1B6D"></snbuttons><textboxes><codeboxes color="#6A6A6A" frame-color="#1B366D" background-color="#F4F4F4"></codeboxes></textboxes><buttons gradient-color-begin="#0099FF" gradient-color-end="#223276" color="#FFFFFF" corner-roundness="0;8;0;8" font="arial" size="11" bold="true" over-gradient-color-begin="#0099FF" over-gradient-color-end="#0099FF"></buttons><servicemarker gradient-color-begin="#F4F4F4" gradient-color-end="#F4F4F4"></servicemarker></controls><texts color="#FFFFFF" bold="true"><privacy color="#AAAAAA"></privacy><labels color="#1B366D"></labels><messages color="#F4F4F4" background-color="#1B366D" bold="true"></messages><links color="#376DDA" underline="false" over-color="#1B366D"></links></texts></body></config>';break;case"6":E.conf.UIConfig='<config><display showEmail="true" useTransitions="true" showBookmark="true" codeBoxHeight="auto" showCodeBox="true" showCloseButton="false" networksWithCodeBox=""></display><body><background frame-color="#BFBFBF" background-color="#FFFFFF" gradient-color-begin="#ffffff" gradient-color-end="#F4F4F4" corner-roundness="4;4;4;4"></background><controls color="#202020" corner-roundness="4;4;4;4" gradient-color-begin="#EAEAEA" gradient-color-end="#F4F4F4" bold="false"><snbuttons  type="textUnder" frame-color="#D5D5D5" over-frame-color="#60BFFF" color="#808080" gradient-color-begin="#FFFFFF" gradient-color-end="d4d6d7" size="10" bold="false" down-frame-color="#60BFFF" down-gradient-color-begin="#6DDADA" over-gradient-color-end="#6DDADA" down-gradient-color-end="#F4F4F4" over-color="#52A4DA" down-color="#52A4DA" over-bold="false"><more frame-color="#A4DBFF" over-frame-color="#A4DBFF" gradient-color-begin="#F4F4F4" gradient-color-end="#BBE4FF" over-gradient-color-begin="#A4DBFF" over-gradient-color-end="#F4F4F4"></more><previous frame-color="#BBE4FF" over-frame-color="#A4DBFF" gradient-color-begin="#FFFFFF" gradient-color-end="#A4DBFF" over-gradient-color-begin="#A4DBFF" over-gradient-color-end="#F4F4F4"></previous></snbuttons><textboxes frame-color="#CACACA" color="#757575" gradient-color-begin="#ffffff" bold="false"><codeboxes color="#757575" frame-color="#DFDFDF" background-color="#FFFFFF" gradient-color-begin="#ffffff" gradient-color-end="#FFFFFF" size="10"></codeboxes><inputs frame-color="#CACACA" color="#757575" gradient-color-begin="#F4F4F4" gradient-color-end="#ffffff"></inputs><dropdowns frame-color="#CACACA" list-item-over-color="#52A4DA" ></dropdowns></textboxes><buttons frame-color="#CACACA" gradient-color-begin="#F4F4F4" gradient-color-end="#CACACA" color="#000000" bold="false" over-frame-color="#60BFFF" down-frame-color="#60BFFF" over-gradient-color-begin="#A4DBFF" down-gradient-color-begin="#A4DBFF" over-gradient-color-end="#FFFFFF" down-gradient-color-end="#ffffff"><post-buttons frame-color="#CACACA" gradient-color-end="#CACACA"></post-buttons></buttons><listboxes frame-color="#CACACA" corner-roundness="4;4;4;4" gradient-color-begin="#F4F4F4" gradient-color-end="#FFFFFF"></listboxes><checkboxes checkmark-color="#00B600" frame-color="#D5D5D5" corner-roundness="3;3;3;3" gradient-color-begin="#F4F4F4" gradient-color-end="#FFFFFF"></checkboxes><servicemarker gradient-color-begin="#ffffff" gradient-color-end="#D5D5D5"></servicemarker><tooltips color="#6D5128" gradient-color-begin="#FFFFFF" gradient-color-end="#FFE4BB" size="10" frame-color="#FFDBA4"></tooltips></controls><texts color="#202020"><headers color="#202020"></headers><messages color="#202020"></messages><links color="#52A4DA" underline="false" over-color="#353535" down-color="#353535" down-bold="false"></links></texts></body></config>';break}E.conf.showCloseButton=true;if(E.conf.nowmode!="true"&&E.conf.nowmode!=true){E.conf.wmodeType="opaque"}E.conf.cornerRoundness=0;E.conf.onClose=Wildfire._hideWildfirePopup;E.conf.onRenderDone=function(G){var F=document.getElementById(G.ModuleID);F.style.visibility="";Wildfire._GetContainer(G.ModuleID+"Progress").style.visibility="hidden";F.style.zIndex=Wildfire._NextZIndex++};Wildfire._popupConfigs.push(E.conf);var D=Wildfire._popupConfigs.length-1;var C='<img id="Wildfire_Button'+D+'" src="'+E.btnurl+'" style="cursor: pointer" border=0 alt="'+A+'" title="'+A+'" />';if(E.button_divID){document.getElementById(E.button_divID).innerHTML=C}else{document.write(C)}var B=document.getElementById("Wildfire_Button"+D);B.openWildfirePopup=function(){B.mouseIsOut=true;Wildfire._showWildfirePopup(E.partner,E.w,E.h,D)};B.onmouseout=function(){B.mouseIsOut=true};if(typeof Wildfire.buttonsData=="undefined"){Wildfire.buttonsData={}}switch(E.b.toLowerCase()){case"mouseover":B.configID=D;Wildfire.buttonsData[D]=function(){if(!B.mouseIsOut){B.openWildfirePopup()}};B.onmouseover=function(){B.mouseIsOut=false;setTimeout("Wildfire.buttonsData["+B.configID+"]()",500)};break;case"click":default:B.onclick=B.openWildfirePopup}return"wildfire_postDiv_"+D};Wildfire.disposeWildfireButton=function(F){var D=document.getElementById(F);var A=document.getElementById(F+"Progress");var C=document.getElementById("gigya_ifr_"+F);if(D){var E=D.elementsToShowOnClose;if(E!=null){for(var B=0;B<E.length;B++){E[B].style.visibility=""}}}if(D){document.body.removeChild(D)}if(A){document.body.removeChild(A)}if(C){document.body.removeChild(C)}};Wildfire.renderPostButton=function(F,E,B,C,H,D,A){var G={partner:F,w:E,h:B,conf:C,btnurl:H,b:D,divID:A};return Wildfire.drawWildfireButton(G)};Wildfire._lastID=0;Wildfire._getScrollXY=function(){var B=0,A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset;B=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop;B=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop;B=document.documentElement.scrollLeft}}}return[B,A]};Wildfire._GetContainer=function(B){if(B==""){return null}var A=document.getElementById(B);if(typeof (A)=="Array"){return A[A.length]}return A};Wildfire._preparePopup=function(N,H,B,F,O){var D=Wildfire._CreateContainer(B);var Q=Wildfire._CreateContainer(B+"Progress",true);var L;L=D.style;var C;var I;var M=document.documentElement;C=M.clientHeight;I=M.clientWidth;if(typeof C=="undefined"||C==0){C=document.body.clientHeight;I=document.body.clientWidth}if(typeof C=="undefined"||C==0){C=window.innerHeight;I=window.innerWidth}scrl=Wildfire._getScrollXY();var K=scrl[1];var P=scrl[0];var G=K+Math.floor(C/2);var J=P+Math.floor(I/2);var A=Wildfire._GetElementPos(F);if(A.top>G&&A.top>H){L.top=""+(A.top-H)+"px"}else{L.top=""+(A.top+F.height)+"px"}if(A.left>J){L.left=""+(A.left+F.width-N)+"px"}else{L.left=""+A.left+"px"}L.width=""+N+"px";L.height=""+H+"px";Q.style.position="absolute";Q.style.background="url("+O+") no-repeat center center";Q.style.width=L.width;Q.style.height=L.height;Q.style.top=L.top;Q.style.left=L.left;var E=document.getElementById("gigya_ifr_"+B);if(E!=null){E.style.top=L.top;E.style.left=L.left;E.style.width=L.width;E.style.height=L.height}Wildfire._HandleEmbedAndObjectsBelow(D,N,H)};Wildfire._showWildfirePopup=function(F,D,B,G){var A="wildfire_postDiv_"+G;var C=document.getElementById("Wildfire_Button"+G);var E=Wildfire._GetContainer(A);if(E==null||E.style.visibility=="hidden"){Wildfire._preparePopup(D,B,A,C,"http://cdn.gigya.com/WildFire/i/progress_ani.gif");Wildfire.initPost(F,A,D,B,Wildfire._popupConfigs[G])}};Wildfire.revealDiv=function(A,D){var E=document.getElementById(A);var C=parseInt(E.style.height.replace("px",""))+20;if(C<D){var B=document.getElementById("gigya_ifr_"+A);E.style.height=C+"px";if(B!=null){B.style.height=C+"px"}window.setTimeout('Wildfire.revealDiv("'+A+'", '+D+")",10)}else{E.style.height=D+"px"}};Wildfire._injectCIMP=function(){if(document.getElementById("wildfire_cimp")==null&&document.body!=null){var A=document.createElement("div");A.id="wildfire_cimp";A.width=1;A.height=1;A.style.display="none";A.style.visibility="hidden";A.style.position="absolute";A.innerHTML='<img src="http://cdn.gigya.com/wildfire/i/CIMP.gif?CXNID=2000002.0NXC" />';document.body.insertBefore(A,document.body.firstChild)}};if(typeof WildfireBtn!="undefined"&&typeof WildfireBtn.pendingButtons!="undefined"){for(var i=0;i<WildfireBtn.pendingButtons.length;i++){Wildfire.drawWildfireButton(WildfireBtn.pendingButtons[i])}}window.setTimeout("Wildfire._injectCIMP()",5000);
