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 version=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash"]){var flashDescription=navigator.plugins["Shockwave Flash"].description;if(flashDescription!=null){version=flashDescription.split(" ")[2].split(".")[0];}}}
else if(this.isIE&&this.isWin&&!this.isOpera){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");var flashDescription=axo.GetVariable("");}catch(e){}
if(flashDescription!=null){version=flashDescription.split(" ")[1].split(",")[0];}}
return version;},AC_Generateobj:function(objAttrs,params,embedAttrs){var str='';if(this.isIE&&this.isWin&&!this.isOpera){str+='';}
else{str+='';}
return str;},AC_FL_GetContent:function(){var ret=this.AC_GetArgs(arguments);return this.AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);},AC_GetArgs:function(args,classid,mimeType){var ret={};ret.embedAttrs={};ret.params={};ret.objAttrs={};for(var i=0;i1){valkeys=attrAndKeys[1]}
else{valkeys=attrAndKeys[0];}
var arrKeys=valkeys.split('|')
for(var ikey=0;ikey','>');s[s.length]='" ';break;}}}
if(i+2==xs.length){s[s.length]='/>';}
else{if(typeof xs[i+2]!='string'){s[s.length]='>';s[s.length]=Wildfire._BuildXMLConfigFromJSON(oConfig,xs[i+2]);s[s.length]=''+xs[i].split(' ')[0]+'>';i++;}
else{s[s.length]='/>';}}}}
catch(e){}
return s.join('');}
Wildfire._origOnLoad=null;Wildfire._onLoad=function(evt)
{Wildfire.onLoad=Wildfire._origOnLoad;if(Wildfire.LinkedLoading==false){if(Wildfire._origOnLoad!=null){Wildfire._origOnLoad(evt);}
return;}
Wildfire.LinkedLoading=false;if(Wildfire._origOnLoad!=null){Wildfire._origOnLoad(evt);}
if((evt.ModuleID==Wildfire.modulesArray[0].id))
{for(var i=1;i';str+=defaultContent;str+='';}
var container=document.getElementById(targetId);container.style.width=width+"px";container.style.height=height+"px";container.innerHTML=str;}
Wildfire._createFlashModule=function(moduleType,partner,targetId,width,height,config)
{try{if(typeof config['bookmarkURL']=='undefined')
config['bookmarkURL']=document.location.href;}catch(e){}
if(Wildfire.LinkedLoading)
{if(typeof Wildfire.onLoad!='undefined'&&Wildfire.onLoad!=Wildfire._onLoad)
Wildfire._origOnLoad=Wildfire.onLoad;Wildfire.onLoad=Wildfire._onLoad;}
var blnRecreate=false;var idxInArray;if(this.modules[targetId]!=null){blnRecreate=true;document.getElementById(targetId).innerHTML=' ';idxInArray=this.modules[targetId].idxInArray;}
else{idxInArray=this.modulesArray.length;}
try{config.location=document.location.href;}catch(err){}
config.partner=partner;config.width=width;config.height=height;if(undef(moduleType)||undef(partner)||undef(targetId)||undef(width)||undef(height)||undef(config))return;var module=new Wildfire._FlashModule();this.modulesArray[idxInArray]=this[targetId]=this.modules[targetId]=module;module.idxInArray=idxInArray;module.copyConfig(config);module.queued=false;module.ready=false;module.type=moduleType;module.id=targetId;module.partner=partner;module.width=width;module.height=height;module.container=document.getElementById(targetId);module.container.style.width=width+"px";module.container.style.height=height+"px";if(!Wildfire.LinkedLoading||this.modulesArray.length==1||this.modulesArray[0].ready)
{module.init(true);}else{module.queued=true;}
return module;};Wildfire._eventObjects={};Wildfire._onCallback=Wildfire._raiseEvent=function(WFEvent){var handlerId='h_'+(++Wildfire._runningID);Wildfire._eventObjects[handlerId]=WFEvent;var handlerName=Wildfire._eventHandlersMap[WFEvent.type];window.setTimeout('Wildfire.raiseEvent2(\''+handlerId+'\')',1);}
Wildfire.raiseEvent2=function(handlerId){try{var eventObject=Wildfire._eventObjects[handlerId];var handlerName=Wildfire._eventHandlersMap[eventObject.type];if(isnotnull(Wildfire[handlerName]))
Wildfire[handlerName](eventObject);if(isnotnull(Wildfire.modules[eventObject.ModuleID].config[handlerName]))
Wildfire.modules[eventObject.ModuleID].config[handlerName](eventObject);}
catch(e){}
delete Wildfire._eventObjects[handlerId];}
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._Module=function(){}
Wildfire._FlashModule=function(){}
Wildfire._FlashModule.prototype=new Wildfire._Module();Wildfire._FlashModule.prototype.init=function(checkPing){var html='';if((''+this.config.isApply)!='true'&&this.config.hideProgress!=true){document.getElementById(this.id).style.background='url('+this.config.progressImageSrc+') no-repeat center center';}
var CDNSubDomain=(Math.random()<0)?'cdn2':'cdn';var swf='http://'+CDNSubDomain+'.gigya.com/WildFire/swf/wildfire_en.swf';if(this.config.lang!=null){swf='http://'+CDNSubDomain+'.gigya.com/WildFire/swf/wildfire_'+this.config.lang+'.swf';}
var wmode=(this.config.nowmode?'':'transparent');if(this.config.wmodeType)wmode=this.config.wmodeType;html+=Wildfire.Flash.AC_FL_GetContent('id','wfmodule_'+this.id,'name','wfmodule_'+this.id,'width',this.config.width,'height',this.config.height,'movie',swf,'quality','high','align','middle','play','true','loop','true','scale','showall','wmode',wmode,'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){html+="";Wildfire._pixeIframeCreated=true;}
this._injectWFCode(html);window['wfmodule_'+this.id]=document.getElementById('wfmodule_'+this.id);}
Wildfire._IsModuleReady=function(targetId){return(window['wfmodule_'+targetId]!=null)}
Wildfire._FlashModule.prototype.copyConfig=function(config)
{if(config!=null){this.config={};for(var key in config)this.config[key]=config[key];}
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._FlashModule.prototype._injectWFCode=function(html){this.container.innerHTML=html;};Wildfire._FlashModule.prototype.applyConfig=function(conf){conf.isApply="true";return Wildfire._createFlashModule(this.type,this.partner,this.id,this.width,this.height,conf);};Wildfire._CopyAtts=function(t,s,atts){for(k in atts.split(',')){t[atts[k]]=s[atts[k]];}}
Wildfire._CopyAllAtts=function(t,s){for(k in s){t[k]=s[k];}}
function undef(o){return(typeof(o)=='undefined');}
function def(o){return(typeof(o)!='undefined');}
function isnotnull(o){return(def(o)&&(o!=null));}
Wildfire._GetElementPos=function(obj){var curleft=curtop=0;if(obj.offsetParent){do{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);};return{left:curleft,top:curtop};}
Wildfire._HandleEmbedAndObjectsBelow=function(container,w,h){var blnHide=true;var cpos=Wildfire._GetElementPos(container);var ctop=cpos.top;var cleft=cpos.left;var cright=cleft+w;var cbottom=ctop+h;var tags;if(Wildfire.Flash.isIE){tags=['iframe'];}
else{tags=['embed','iframe'];}
for(var itag=0;itagcbottom)||(ebottomcright)||(eright'+url+'';}
var altText='';if(typeof(params.btnurl)=='undefined'){switch(params.conf['module']){case'bookmarks':params.btnurl='http://cdn.gigya.com/wildfire/i/bookmark_button.gif';break;case'email':params['btnurl']='http://cdn.gigya.com/wildfire/i/share-button.gif';break;case'post':default:params.btnurl='http://cdn.gigya.com/wildfire/i/post-to-button.gif';}}
switch(params.conf['module']){case'bookmarks':altText='Add to bookmarks';params.conf["showBookmark"]="true";params.conf["showEmail"]="false";params.conf["showPost"]="false";break;case'email':params.conf['showEmail']='true';params.conf['showPost']='false';params.conf['showBookmark']='false';break;case'post':params.conf["showEmail"]="true";params.conf["showBookmark"]="true";default:altText='Post to my social network or blog';}
params.conf.showCloseButton=true;if(params.conf.nowmode!='true'&¶ms.conf.nowmode!=true){params.conf.wmodeType='opaque';}
params.conf.cornerRoundness=0;params.conf.onClose=Wildfire._hideWildfirePopup;params.conf.onRenderDone=function(o){var popDiv=document.getElementById(o.ModuleID);popDiv.style.visibility="";Wildfire._GetContainer(o.ModuleID+'Progress').style.visibility="hidden";popDiv.style.zIndex=Wildfire._NextZIndex++;if(popDiv.fnDocumentClicked==null){popDiv.fnDocumentClicked=function(evt){var target;if(evt['target'])target=evt['target']
if(evt['srcElement'])target=evt['srcElement'];if(target!=null)Wildfire._documentClicked(target,popDiv);}
if(window.addEventListener){document.addEventListener('click',popDiv.fnDocumentClicked,false);}else{document.attachEvent('onclick',popDiv.fnDocumentClicked);}}}
Wildfire._popupConfigs.push(params.conf);var configID=Wildfire._popupConfigs.length-1;var html='
';if(params.button_divID){document.getElementById(params.button_divID).innerHTML=html}else{document.write(html);}
var btn=document.getElementById('Wildfire_Button'+configID);btn.openWildfirePopup=function(){btn.mouseIsOut=true;Wildfire._showWildfirePopup(params.partner,params.w,params.h,configID);}
btn.onmouseout=function(){btn.mouseIsOut=true;}
if(typeof Wildfire.buttonsData=='undefined')Wildfire.buttonsData={};switch(params.b.toLowerCase()){case'mouseover':btn.configID=configID;Wildfire.buttonsData[configID]=function(){if(!btn.mouseIsOut)btn.openWildfirePopup();}
btn.onmouseover=function(){btn.mouseIsOut=false;setTimeout('Wildfire.buttonsData['+btn.configID+']()',500);}
break;case'click':default:btn.onclick=btn.openWildfirePopup;}
return'wildfire_postDiv_'+configID;}
Wildfire.disposeWildfireButton=function(id){var wfDiv=document.getElementById(id);var progressDiv=document.getElementById(id+'Progress');var ifrel=document.getElementById('gigya_ifr_'+id);if(wfDiv){if(window.removeEventListener){document.removeEventListener('click',wfDiv.fnDocumentClicked,false);}else{document.detachEvent('onclick',wfDiv.fnDocumentClicked);}
var elementsToShowOnClose=wfDiv.elementsToShowOnClose;if(elementsToShowOnClose!=null){for(var i=0;imiddlePointTop&&btnPos.top>h){dst.top=''+(btnPos.top-h)+'px';}else{dst.top=''+(btnPos.top+btnDiv.height)+'px';}
if(btnPos.left>middlePointLeft){dst.left=''+(btnPos.left+btnDiv.width-w)+'px';}else{dst.left=''+btnPos.left+'px';}
dst.width=''+w+'px';dst.height=''+h+'px';progressDiv.style.position='absolute';progressDiv.style.background='url('+progressImageSrc+') no-repeat center center';progressDiv.style.width=dst.width;progressDiv.style.height=dst.height;progressDiv.style.top=dst.top;progressDiv.style.left=dst.left;var ifrel=document.getElementById('gigya_ifr_'+id);if(ifrel!=null){ifrel.style.top=dst.top;ifrel.style.left=dst.left;ifrel.style.width=dst.width;ifrel.style.height=dst.height;}
Wildfire._HandleEmbedAndObjectsBelow(wfDiv,w,h);}
Wildfire._documentClicked=function(target,wfDiv){if(target==null)return;if(target.id.indexOf('wfmodule_wildfire')==0)return;if(wfDiv.style.display=='')Wildfire.disposeWildfireButton(wfDiv.id);}
Wildfire._showWildfirePopup=function(partner,width,height,configID){var divID='wildfire_postDiv_'+configID;var btnDiv=document.getElementById('Wildfire_Button'+configID);var popDiv=Wildfire._GetContainer(divID);if(popDiv==null||popDiv.style.visibility=='hidden'){Wildfire._preparePopup(width,height,divID,btnDiv,'http://cdn.gigya.com/WildFire/i/progress_ani.gif');Wildfire.initPost(partner,divID,width,height,Wildfire._popupConfigs[configID]);}}
Wildfire.revealDiv=function(divID,maxHeight){var div=document.getElementById(divID);var nextHeight=parseInt(div.style.height.replace('px',''))+20;if(nextHeight';document.body.insertBefore(cimp,document.body.firstChild);}}
if(typeof WildfireBtn!='undefined'&&typeof WildfireBtn.pendingButtons!='undefined'){for(var i=0;i
Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
This software is released under the MIT License
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("