﻿function AX_contentLike(pageurl, tagContainer){
	var strShareUrl, strHtml;
	var host, pageurl;
	
	host = window.location.hostname.toString();
	
	if (pageurl == ""){ pageurl = window.location.pathname.toString() };
	strShareUrl = "http://" + host + pageurl;

    strHtml = "<span><iframe src=\"http://www.facebook.com/plugins/like.php?href=" + encodeURI(strShareUrl) + "&amp;layout=button_count&amp;show_faces=true&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:100px; height:21px;\" allowTransparency=\"true\"></iframe></span>";
    //strHtml = strHtml + "<span><script src=\"http://platform.twitter.com/widgets.js\" type=\"text/javascript\"></script><div><a href=\"http://twitter.com/share?url=" + encodeURI(strShareUrl) + "&amp;via=twitterapi\" class=\"twitter-share-button\" data-count=\"horizontal\">Tweet</a></div></span>";
    //strHtml = strHtml + "<span><a name=""fb_share"" type=""icon_link"" share_url="""& strShareUrl &""" href=""http://www.facebook.com/sharer.php"">Condividi</a><script src=""http://static.ak.fbcdn.net/connect.php/js/FB.Share"" type=""text/javascript""></ script></span>";
    //strHtml = strHtml + "<span><a href=""http://twitter.com/share?url="& encodeURI(strShareUrl) &""" target=""_blank"" style=""display: block; padding: 2px 5px 2px 20px; background: url(''http://a4.twimg.com/images/favicon.gif'') left center no-repeat; border: 1px solid #ccc;"">Tweet</a></span>";
    document.getElementById(tagContainer).innerHTML = strHtml;
}
