function gel(a){return document.getElementById(a)}function logged(){if(typeof facebookLoginCallBack=="function")facebookLoginCallBack();else{var a=window.location.href;window.location.href=a+(a.indexOf("?")!=-1?"&":"?")+"fbr=1"}}function fbGetTrackEventType(a){var b="Err";switch(a){case "r":b="Register";break;case "po":b="Popup";break;default:b="Login"}return b}
function fcb(a){if(a.authResponse){_isTrackeable&&analyticsTrackEvent(fbGetTrackEventType(_fbc.p),"FB-Connect","Allow");logged()}else{gel(_fbc.eid).style.display="block";_isTrackeable&&analyticsTrackEvent(fbGetTrackEventType(_fbc.p),"FB-Connect","Not Allowed")}}var _isTrackeable=Math.random()*1E4%100<20;
if(typeof _fbc!=="undefined"){window.fbAsyncInit=function(){FB.init({appId:_fbc.appId,status:true,cookie:true,xfbml:_fbc.xfbml});FB.getLoginStatus(function(a){a.session&&_fbc.skipLogIn!=true&&logged()});if(_fbc.xfbml)FB.Event.subscribe("auth.login",fcb);else gel(_fbc.bid).onclick=function(){_isTrackeable&&analyticsTrackEvent(fbGetTrackEventType(_fbc.p),"FB-Connect","Click");FB.login(fcb,{scope:_fbc.perms})}};(function(){var a=document.createElement("script");a.type="text/javascript";a.src="http://connect.facebook.net/es_LA/all.js";
a.async=true;gel("fb-root").appendChild(a)})()};

