/*
 * jQuery fbLikeButton
 *
 * url		http://www.amdonnelly.co.uk/jquery/Facebook-Like-Button
 * author	Alan Donnelly 2011
 * version	1.1.0
 * license	MIT and GPL licenses
 */
 var _fbLikeButtonScript=!1,_fbInit=!1; (function(c){c.fn.fbLikeButton=function(b){b=c.extend({appId:"",status:!0,cookie:!0,href:"",send:"false",layout:"standard",show_faces:"true",width:"450",action:"like",font:"lucida grande",colorscheme:"light",ref:"",tags:{title:"",type:"",image:"",url:"",site_name:"",admins:""}},b);return this.each(function(){function g(){function a(){if(_fbInit){try{FB.init({appId:b.appId,status:b.status,cookie:b.cookie,xfbml:!0})}catch(d){}var e="";for(_tag in b.tags){var f=b.tags[_tag];f.length>0&&(e+='<meta property="og:'+ _tag+'" content="'+f+'"/>')}e.length>0&&c("head").append(e);h()}else setTimeout(a,10)}c("#fb-root").length==0&&c("body").append('<div id="fb-root" ></div>');window.fbAsyncInit=function(){_fbInit=!0};_fbLikeButtonScript||i();setTimeout(a,10)}function i(){var a=document.location.protocol=="file:"?"http:":document.location.protocol;_fbLikeButtonScript=!0;c.getScript(a+"//connect.facebook.net/en_US/all.js#xfbml=1",function(){})}function h(){function a(a){b[a]&&b[a].length>0&&c.setAttribute(a,b[a])}var c= document.createElement("fb:like");a("href");a("send");a("layout");a("show_faces");a("width");a("action");a("font");a("colorscheme");a("ref");d.append(c)}var d=c(this);d.html();b.appId.length>0?g():alert("Missing appId for #"+d.attr("id"))})}})(jQuery);
