(function(a){a.ajaxHistory=new function(){var o="ajaxHistory.reset";var c=location.hash;var m=null;var l=false;this.lock=function(){if(l){return false}else{l=true;a(document).trigger("ajaxHistory.lock");return true}};this.unlock=function(){if(l){l=false;a(document).trigger("ajaxHistory.unlock")}};var h;this.update=function(){};var g=function(){a(".remote-output").empty()};a(document).bind(o,g);if(a.browser.msie){var j,d=false;a(function(){j=a('<iframe style="display: none;"></iframe>').appendTo(document.body).get(0);var p=j.contentWindow.document;p.open();p.close();if(c&&c!="#"){p.location.hash=c.replace("#","")}});this.update=function(q){c=q;var p=j.contentWindow.document;p.open();p.close();p.location.hash=q.replace("#","")};h=function(){var q=j.contentWindow.document;var p=q.location.hash;if(p!=c){c=p;if(p&&p!="#"){a('a[href$="'+p+'"]').eq(0).click();location.hash=p}else{if(d){location.hash="";a(document).trigger(o)}}}d=true}}else{if(a.browser.mozilla||a.browser.opera){this.update=function(p){c=p};h=function(){if(location.hash){if(c!=location.hash){c=location.hash;a('a[href$="'+c+'"]').eq(0).click()}}else{if(c){c="";a(document).trigger(o)}}}}else{if(a.browser.safari){var n,b,f;a(function(){n=[];n.length=history.length;b=[]});var e=false,d=false;f=function(p){n.push(p);b.length=0;e=false};this.update=function(p){c=p;f(c)};h=function(){var p=history.length-n.length;if(p){e=false;if(p<0){for(var q=0;q<Math.abs(p);q++){b.unshift(n.pop())}}else{for(var q=0;q<p;q++){n.push(b.shift())}}var r=n[n.length-1];a('a[href$="'+r+'"]').eq(0).click();c=location.hash}else{if(n[n.length-1]==undefined&&!e){if(document.URL.indexOf("#")>=0){a('a[href$="#'+document.URL.split("#")[1]+'"]').eq(0).click()}else{if(d){a(document).trigger(o)}}e=true}}d=true}}}}this.initialize=function(p){if(typeof p=="function"){a(document).unbind(o,g).bind(o,p)}if(location.hash&&typeof f=="undefined"){a('a[href$="'+location.hash+'"]').trigger("click")}if(h&&m==null){m=setInterval(h,200)}}};a.fn.remote=function(b,c,e){e=e||function(){};if(typeof c=="function"){e=c}c=a.extend({hashPrefix:"remote-"},c||{});var d=a(b).size()&&a(b)||a("<div></div>").appendTo("body");d.addClass("remote-output");return this.each(function(h){var g=this.href,j="#"+(this.title&&this.title.replace(/\s/g,"_")||c.hashPrefix+(h+1)),f=this;this.href=j;a(this).click(function(l){if(!d.locked){if(l.clientX){a.ajaxHistory.update(j)}d.load(g,function(){d.locked=null;e.apply(f)})}})})};a.fn.ajaxClickHistory=function(b){b=a.extend({hashPrefix:"remote-",hashFunction:function(c){return"#"+(c.title&&c.title.replace(/\s/g,"_"))}},b||{});return this.each(function(e){var d=this.href;var f=b.hashFunction(this)||b.hashPrefix+(e+1);var c=this;this.href=f;a(this).click(function(h,g){g=g||{};if(a.ajaxHistory.lock()){if(h.clientX||g.keyPress){a.ajaxHistory.update(f);if(g.keyPress){location.hash=f}}a.ajax({url:d,dataType:"script",data:b.data,complete:function(){a.ajaxHistory.unlock()}});return true}else{return false}})})};a.fn.history=function(b){return this.click(function(c){if(c.clientX){a.ajaxHistory.update(this.hash)}typeof b=="function"&&b()})}})(jQuery);if(typeof Wildfire=="undefined"){Wildfire=new Object();Wildfire.LinkedLoading=true;Wildfire._pixeIframeCreated=false;Wildfire._NextZIndex=1000}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(h,d,j,b){document.getElementById(h).style.background="";var g=document.getElementById(h+"_progress");if(g!=null){g.innerHTML="&nbsp;";g.style.display="none";g.style.visibility="hidden"}var a=Wildfire.modules[h];if(a!=null){var l=a.config[d];if(typeof l=="undefined"){return null}if(typeof l=="function"){return l(d,b)}if(j==true){if(isnotnull(l)){try{var c=document.getElementById(l);if(isnotnull(c)){return c.value}else{return l}}catch(f){return l}}}else{return l}}else{return{error:"Modlue not found",MID:h}}};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(g,a){var o=new Array();try{for(var d=0;d<a.length;d+=2){o[o.length]="<"+a[d]+" ";var h=a[d+1];for(var b=0;b<h.length;b++){var l=h[b].split("=");var m=l[0];var c;if(l.length>1){c=l[1]}else{c=l[0]}var n=c.split("|");for(var f=0;f<n.length;f++){if(typeof g[n[f]]!="undefined"){o[o.length]=m+'="';o[o.length]=(""+g[n[f]]).replace("&","&amp;").replace('"',"&quot;").replace("<","&lt;").replace(">","&gt;");o[o.length]='" ';break}}}if(d+2==a.length){o[o.length]="/>"}else{if(typeof a[d+2]!="string"){o[o.length]=">";o[o.length]=Wildfire._BuildXMLConfigFromJSON(g,a[d+2]);o[o.length]="</"+a[d].split(" ")[0]+">";d++}else{o[o.length]="/>"}}}}catch(j){}return o.join("")};Wildfire._createJSModule=function(h,a,j,b,m,d,l){try{d.location=document.location.href}catch(e){}d.partner=a;d.width=b;d.height=m;if(undef(h)||undef(a)||undef(j)||undef(b)||undef(m)||undef(d)){return}var c=this[j]=this.modules[j]=this.modulesArray[this.modulesArray.length]=new Wildfire._JSModule();c.copyConfig(d);c.ready=false;c.type=h;c.id=j;c.partner=a;c.width=b;c.height=m;c.container=document.getElementById(j);c.container.style.width=b+"px";c.container.style.height=m+"px";c.qsParams=new Array();var g=l.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(j,a,l,b,n,d){try{if(typeof d.bookmarkURL=="undefined"){d.bookmarkURL=document.location.href}}catch(g){}if(Wildfire.LinkedLoading){if(typeof Wildfire.onLoad!="undefined"&&Wildfire.onLoad!=Wildfire._onLoad){Wildfire._origOnLoad=Wildfire.onLoad}Wildfire.onLoad=Wildfire._onLoad}var m=false;var h;if(this.modules[l]!=null){m=true;document.getElementById(l).innerHTML="&nbsp;";h=this.modules[l].idxInArray}else{h=this.modulesArray.length}try{d.location=document.location.href}catch(f){}d.partner=a;d.width=b;d.height=n;if(undef(j)||undef(a)||undef(l)||undef(b)||undef(n)||undef(d)){return}var c=new Wildfire._FlashModule();this.modulesArray[h]=this[l]=this.modules[l]=c;c.idxInArray=h;c.copyConfig(d);c.queued=false;c.ready=false;c.type=j;c.id=l;c.partner=a;c.width=b;c.height=n;c.container=document.getElementById(l);c.container.style.width=b+"px";c.container.style.height=n+"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._onCallback=Wildfire._raiseEvent=function(c){try{switch(c.type){case"send":if(isnotnull(Wildfire.onSend)){Wildfire.onSend(c)}break;case"postComment":if(isnotnull(Wildfire.onPostComment)){Wildfire.onPostComment(c)}break;case"postProfile":if(isnotnull(Wildfire.onPostProfile)){var b=["Wildfire.onPostProfile({"]}for(var e in c){b.push(e);b.push(":'");b.push(c[e]);b.push("'");b.push(",")}b.pop();b.push("})");window.setTimeout(b.join(""),1);break;case"close":if(isnotnull(Wildfire.onClose)){Wildfire.onClose(c)}if(isnotnull(Wildfire.modules[c.ModuleID].config.onClose)){Wildfire.modules[c.ModuleID].config.onClose(c)}break;case"renderDone":if(isnotnull(Wildfire.modules[c.ModuleID].config.onRenderDone)){Wildfire.modules[c.ModuleID].config.onRenderDone(c)}break;case"networkButtonClicked":if(isnotnull(Wildfire.modules[c.ModuleID].config.onNetworkButtonClicked)){Wildfire.modules[c.ModuleID].config.onNetworkButtonClicked(c)}break;case"load":if(isnotnull(Wildfire.onLoad)){Wildfire.modules[c.ModuleID].ready=true;Wildfire.onLoad(c)}break;case"email":if(isnotnull(Wildfire.onEmail)){Wildfire.onEmail(c)}}}catch(d){}};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 j=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 l="";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="+j+" name="+j+" style='width:"+f.width+"px;height:"+f.height+"px;display:inherit;visibility:inherit' frameborder=0 scrolling=no></iframe>";l+="<form id='"+a+"_postForm' action='"+b+"' method='POST' target="+j+" 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="+j+" name="+j+" style='width:"+f.width+"px;height:"+f.height+"px;display:inherit;visibility:inherit' frameborder=0 scrolling=no></iframe>";l+="<form id='"+a+"_postForm' action='"+b+"' method='POST' target="+j+" 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="+j+" 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();l+="<form id='"+a+"_postForm' action='"+d+"/WFHandler.ashx?cmd=config' method='POST' target='"+a+"_postTargetFrame' style='display:none'></form>";l+="<form id='"+a+"_sysEventForm' action='"+d+"/WFHandler.ashx?cmd=sysEvent' method='POST' target='"+a+"_sysEventFrame' style='display:none'></form>"}}this._injectWFCode(e,l);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(n,j,t){var m=true;var a=Wildfire._GetElementPos(n);var f=a.top;var e=a.left;var v=e+j;var l=f+t;var p;if(Wildfire.Flash.isIE){p=["iframe"]}else{p=["embed","iframe"]}for(var r=0;r<p.length;r++){tagname=p[r];elements=document.getElementsByTagName(tagname);for(var s=0;s<elements.length;s++){var c=elements[s];if(c.style.visibility!="hidden"&&n.childNodes[0]!=c){var g=Wildfire._GetElementPos(c);var q=g.top;var o=g.left;var b=(document.defaultView)?document.defaultView.getComputedStyle(c,""):c.currentStyle;var d=o+parseInt(b.getPropertyValue?b.getPropertyValue("width"):b.width);var u=q+parseInt(b.getPropertyValue?b.getPropertyValue("height"):b.height);if(!((q>l)||(u<f)||(o>v)||(d<e))){var x=(tagname=="iframe")&&((c.id+"          ").substr(0,10)!="gigya_ifr_");if(((tagname=="embed")&&((c.getAttribute("wmode")==null)||(c.getAttribute("wmode")=="")||(c.getAttribute("wmode")=="window")))||x){if(m&&(n.id!="coreDiv")){c.style.visibility="hidden";if(n.elementsToShowOnClose==null){n.elementsToShowOnClose=[]}n.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;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(q,j,b,f,r){var d=Wildfire._CreateContainer(b);var t=Wildfire._CreateContainer(b+"Progress",true);var o;o=d.style;var c;var l;var p=document.documentElement;c=p.clientHeight;l=p.clientWidth;if(typeof c=="undefined"||c==0){c=document.body.clientHeight;l=document.body.clientWidth}if(typeof c=="undefined"||c==0){c=window.innerHeight;l=window.innerWidth}scrl=Wildfire._getScrollXY();var n=scrl[1];var s=scrl[0];var g=n+Math.floor(c/2);var m=s+Math.floor(l/2);var a=Wildfire._GetElementPos(f);if(a.top>g){o.top=""+(a.top-j)+"px"}else{o.top=""+(a.top+f.height)+"px"}if(a.left>m){o.left=""+(a.left+f.width-q)+"px"}else{o.left=""+a.left+"px"}o.width=""+q+"px";o.height=""+j+"px";t.style.position="absolute";t.style.background="url("+r+") no-repeat center center";t.style.width=o.width;t.style.height=o.height;t.style.top=o.top;t.style.left=o.left;var e=document.getElementById("gigya_ifr_"+b);if(e!=null){e.style.top=o.top;e.style.left=o.left;e.style.width=o.width;e.style.height=o.height}Wildfire._HandleEmbedAndObjectsBelow(d,q,j)};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])}}WE.social={};WE.social.BookMarker=function(b,e){if(typeof e=="undefined"){e={}}var h=this;var f=e.position;var a=e.services;var g=e.callback;var d=e.url;var c="wildfire_popup";h.container=null;h.button=b;h.initialize=function(){if(h.container==null){h.container=h.getContainer();h.createWildfirePopup()}};h.updateDisplay=function(){if(h.button.hasClass("active")){Wildfire.onClose()}else{Wildfire.onClose();h.button.addClass("active");h.setPosition()}};h.createWildfirePopup=function(){WE.social.createWildfirePopup(h.url(),h.button.attr("title"),h.container,a,g)};h.getContainer=function(){if($("#"+c).length<1){return $("<div />").attr("id",c).addClass("wildfire_popup").appendTo("body")}else{return $("#"+c)}};h.url=function(){switch(typeof d){case"function":return d();case"string":return d;default:return h.button.attr("href")}};h.setPosition=function(){var j=typeof f;if(j=="string"){switch(f){case"belowLeft":h.positionBelowLeft();return;case"belowRight":h.positionBelowRight();return;case"aboveLeft":h.positionAboveLeft();return;default:h.positionBelowRight();return}}else{if(j=="function"){f(h)}else{h.positionBelowRight()}}}};WE.social.BookMarker.prototype.positionBelowLeft=function(){var a=this.container;var b=this.button;a.show().css("top",b.offset().top+b.outerHeight()-1).css("left",b.offset().left+b.width()-a.width())};WE.social.BookMarker.prototype.positionAboveLeft=function(){var a=this.container;var b=this.button;a.show().css("top",b.offset().top-a.outerHeight()-1).css("left",b.offset().left+b.width()-a.width())};WE.social.BookMarker.prototype.positionBelowRight=function(){var a=this.container;var b=this.button;a.show().css("top",b.offset().top+b.outerHeight()-1).css("left",b.offset().left)};WE.social.positionMediaBookmarkContainer=function(a){if(a.button.parents("#media_footer").length>0){a.positionAboveLeft()}else{a.positionBelowLeft()}};WE.social.createWildfirePopup=function(b,f,a,d,e){var c={defaultContent:"TEXTAREA_ID",bookmarkURL:b,widgetTitle:f,UIConfig:'<config><display showDesktop="false" showPost="false" showEmail="false" useTransitions="true" showBookmark="true" bookmarksToShow="'+d+'" showCloseButton="true" codeBoxHeight="auto"></display><body><background frame-color="#BFBFBF" background-color="#FFFFFF" gradient-color-begin="#ffffff" gradient-color-end="#F4F4F4" corner-roundness="0;0;0;0"></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 list-item-over-color="#52A4DA" frame-color="#CACACA"></dropdowns></textboxes><buttons frame-color="#CACACA" gradient-color-begin="#F4F4F4" gradient-color-end="#CACACA" color="#000000" bold="false" over-frame-color="#60BFFF" over-gradient-color-begin="#BBE4FF" down-gradient-color-begin="#BBE4FF" 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>',onNetworkButtonClicked:e};Wildfire.initPost("557302",a.attr("id"),300,175,c)};Wildfire.onClose=function(){$(".wildfire_popup").hide();$(".social_bookmarks").removeClass("active")};WE.social.omnitureEventTriggerFunction=function(a,b){return function(c){WE.triggerOmnitureContentShareEvent(c.network,a,b)}};(function(a){a.fn.liveSocialBookmark=function(b){var c=a.extend({},a.fn.liveSocialBookmark.defaults,b),d=this;window.setTimeout("Wildfire._injectCIMP()",5000);a(this).live("click",function(){var e=new c.bookMarker(a(this),c);e.initialize();e.updateDisplay();return false});return this};a.fn.liveSocialBookmark.defaults={services:"twitter, googlebookmarks, delicious, digg, stumbleupon, friendfeed",position:"belowLeft",callback:WE.social.omnitureEventTriggerFunction("Unset Content"),bookMarker:WE.social.BookMarker}})(jQuery);WE.sport_association_widget={};WE.sport_association_widget.showForm=function(){$("#sport_association").addClass("no_bullet");$("#sport_association .form_container").show();$("#sport_association .add, #sport_association .edit").hide();return false};WE.sport_association_widget.initialize=function(){$("#sport_association .cancel").show();$("#sport_association .cancel a").click(function(){$("#sport_association form").trigger("reset");$("#sport_association .form_container").hide();$("#sport_association").removeClass("no_bullet");$("#sport_association .add, #sport_association .edit").show();return false});$("#sport_association form").ajaxForm({dataType:"script"});$("#sport_association .form_container").hide();$("#sport_association .add").html('<a href="#">Publish to sport hub</a>').find("a").click(WE.sport_association_widget.showForm);$("#sport_association .edit").show().find("a").click(WE.sport_association_widget.showForm);$("#sport_association .plastic_button").click(function(){$("#sport_association .buttons").hide();$("#sport_association .submitting").show();$("#sport_association form").submit();return false})};WE.Slideshow=(function(){var a=function(){this.initialize()},b={setup:function(){if(!this.instance){this.instance=new WE.Slideshow()}return this.instance},reveal:function(d,c,e){this.instance.beforeUpdate(c,e.animateScroll);this.instance.update(e);this.instance.reset(d)}};$.extend(a,b);return a})();WE.Slideshow.prototype=(function(){var j={initialize:function(){this.carousel=$("#album_preview .carousel");this.thumbnailListItems=this.carousel.find("li");this.caption=$("#medium_caption");this.header=$("#media_header");this.imageFrame=$("#image_frame");this.imageDetail=$("#image_detail");this.footer=$("#medium_comments_and_actions");this.comments=$("#comments_container");this.speed="fast";this.filmstripLinks=$("#album_preview.filmstrip ul li a");l.call(this);b();c()},beforeUpdate:function(n,o){m.call(this);f.call(this,n,o)},update:function(n){if(n.header){this.header.html(n.header)}if(n.caption){this.caption.html(n.caption)}if(n.image){d.call(this,n.image)}if(n.footer){this.footer.html(n.footer)}},reset:function(n){this.comments.fadeIn(this.speed);h.call(this,n);b();a();c();if(WE.triggerOmniturePageView){WE.triggerOmniturePageView()}if(WE.sport_association_widget){WE.sport_association_widget.initialize()}}},d=function(n){if(!this.curtain){this.curtain=$("#curtain")}this.curtain.hide();this.imageDetail.html(n).fadeIn(this.speed)},f=function(n,o){var q=this.imageDetail.height(),p=n+g.call(this);this.imageDetail.height(n);if(typeof parseInt(p,10)=="number"){this.imageFrame.animate({height:p},this.speed);if(o){$("html,body").animate({scrollTop:$(window).scrollTop()+n-q},this.speed)}}else{this.imageFrame.height("auto")}},g=function(){if(this.caption.length){return this.caption.height()}return 0},m=function(){this.thumbnailListItems.removeClass("selected");this.imageDetail.fadeOut(this.speed);this.comments.fadeOut(this.speed)},h=function(o){this.carousel.find("li").removeClass("selected");var n=this.carousel.find(".medium_"+o).addClass("selected");setTimeout(function(){n.find(".go").trigger("click")},1000)},l=function(){this.filmstripLinks.ajaxClickHistory({hashFunction:e,data:{carousel_clicked:true}})},b=function(){$(".enabled #next_medium, .enabled #previous_medium, #image_detail a").ajaxClickHistory({hashFunction:e})},e=function(n){var o=n.href;if(o.lastIndexOf("#")==-1){return"#"+o.substr(o.lastIndexOf("/")+1)}else{return o}},a=function(){$("form.ajax").ajaxForm({dataType:"script"}).find(".spinster").spinster();$("a[rel^=jsfacebox]").openFaceboxAndLoadJavascript()},c=function(){$("form.reject").submit(function(){var n=$(this);if(n.attr("confirmed")=="1"){return true}else{$.alerts.confirm("Are you sure you want to delete this?","Remove media",function(o){if(o){n.attr("confirmed","1").submit()}});return false}})};return j})();if(!WE.media){WE.media={}}WE.media.setupMediaShow=function(){var a=$("#media_container");this.slideshow=WE.Slideshow.setup();$(".media_navigation_bar .buttons .no").click(function(){return false});$.ajaxHistory.initialize();$(document).bind("ajaxHistory.lock",function(){$("#curtain").show();$("body").addClass("loading")});$(document).bind("ajaxHistory.unlock",function(){$("body").removeClass("loading")});$(document).bind("ajaxHistory.reset",function(){$("li.original_medium a").click()});$("a.create_nomination").live("click",function(){$.ajaxCreateResource(this);return false});$.hotkeys.add("right",{propagate:true,disableInInput:true},function(){if($("#facebox:visible").length==0){$(".media_navigation_bar .buttons .next").trigger("click",[{keyPress:true}])}});$.hotkeys.add("left",{propagate:true,disableInInput:true},function(){if($("#facebox:visible").length==0){$(".media_navigation_bar .buttons .previous").trigger("click",[{keyPress:true}])}});$(".share_bookmarks_button").liveSocialBookmark({position:WE.social.positionMediaBookmarkContainer,callback:WE.social.omnitureEventTriggerFunction("Medium")});if(WE.sport_association_widget){WE.sport_association_widget.initialize()}if(WE.fb_connect){WE.fb_connect.initializeShareButtonsOnReady()}};WE.media.activateFilmstrip=function(d,a,b,c){WE.FILMSTRIP_SIZE=9;$(".filmstrip").show();if(d>WE.FILMSTRIP_SIZE){$(".filmstrip .button").show();$("#album_preview .carousel").jCarouselLite({btnNext:"#album_preview .next_button",btnPrev:"#album_preview .prev_button",visible:9,circular:true,easing:"easeOutBack",speed:1000,scroll:9,start:a,btnGo:c})}$("#album_preview .carousel li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")});$("."+b).addClass("selected")};if(!WE.media){WE.media={}}WE.media.centerMediaThumbnails=function(){if(!(jQuery.browser.mozilla&&parseFloat(jQuery.browser.version.substr(0,3))<1.9)){$(".thumbnail_frame").center({y:true,x:true})}$("div.thumbnail").each(function(){var a=$(this);a.children(".bottom").width(a.width())})};WE.media.positionHandles=function(){$(".media_item div.thumbnail").hover(function(){var a=$(this).height()-23;var b=$(this).width()-20;$(this).children(".handle").fadeIn().css({top:a,left:b})},function(){$(this).children(".handle").hide()})};WE.media.startDrag=function(b,a){a.helper.width(150);a.helper.find(".bottom").hide();a.helper.find("a.thumbnail_link").css({cursor:"move","padding-right":"0",display:"inline"});a.helper.find("div.thumbnail").unbind("hover")};WE.media.beforeStopDrag=function(b,a){a.helper.find(".bottom").show();a.helper.find("a.thumbnail_link").css({cursor:"pointer","padding-right":"2px",display:"block"})};WE.media.finishDrag=function(){$(".media_item div.thumbnail .handle").hide()};WE.media.orderViaAjax=function(b,a){$(".media_item").removeClass("moved");if(WE.media.album_order_post_url){$.post(WE.media.album_order_post_url,$("#media_list ol").sortable("serialize"),function(){a.item.addClass("moved")})}};WE.MediaRejector=(function(){var a=function(){this.initialize()};var b={setup:function(){if(!this.instance){this.instance=new WE.MediaRejector()}c()}};var c=function(){$(".media_item").live("mouseover",function(){$(this).find("a.reject").show()}).live("mouseout",function(){$(this).find("a.reject").hide()});$("a.reject").live("click",function(h){var g=$(this).prev("form.reject"),e=$(this).parents("li.media_item"),f=$(this);$.alerts.confirm(d(e),"Remove item",function(j){if(j){g.ajaxSubmit({dataType:"script"});f.hide()}});return false})};var d=function(e){var f=e.find("img.thumbnail").attr("title");if(f.length){return"Are you sure you want to delete '"+f+"'?"}else{return"Are you sure you want to delete this item?"}};$.extend(a,b);return a})();WE.MediaRejector.prototype=(function(){var a={initialize:function(){this.formElements=$("form.reject");b.call(this,"Remove","reject absolute");this.formElements.hide()}};function b(c,d){this.formElements.each(function(){var e=$("<a />").attr("href","#").attr("class",d).html(c);$(this).after(e);e.hide()})}return a})();WE.ImagePreviewer=(function(){var a=function(){};var b={setup:function(d){$(d||"a[rel*=img_lightbox]").live("click",function(){$.facebox.loading();var e=new Image();e.onload=function(){$.facebox.reveal(c(e.src),"weplay_facebox")};e.src=this.href;return false})}};var c=function(d){return'<div class="dark_header"><a id="close_box" class="close" href="#">&times; Close</a></div><div class="image"><img src="'+d+'" /></div>'};$.extend(a,b);return b})();WE.AlbumsPresenter=function(){this.initialize()};$.extend(WE.AlbumsPresenter,{setup:function(a){this.instance=new WE.AlbumsPresenter()},scrub:function(a){if(!this.instance){this.setup()}this.instance.thumbnails=a;$(".album .highlighted img").scrub(function(){var b=$(this).parents(".album").attr("id");return a[b]})}});WE.AlbumsPresenter.prototype={initialize:function(){this.thumbnails={}}};