// ++++++++++++++++++++++++++++++++++++++++++++++++++++
// +	PROJECT NAME : SOCIAL SHARE
// +	URL DESTINAMTION : http://freecode.siamfocus.com/social_share
// +	CREATED BY : SiAMFOCUS.COM
// + 	CONTACT : ADMIN@SIAMFOCUS.COM
// +	CREATED DATE : 26-05-2011
// +	TECHNOLOGY : JAVASCRIPT
// +	THANK YOU : http://kevin.vanzonneveld.net (JAVASCRIPT CODE)
// +++++++++++++++++++++++++++++++++++++++++++++++++++++ 

var str_text = "";
var share_currentURL = "";
var share_mainURL = "";
var share_title = "";

share_currentURL = encodeURIComponent(document.location.href);
share_mainURL = "http://freecode.siamfocus.com/social_share/";
share_title =  encodeURIComponent(document.title);

str_text = "<div style=\"padding-top: 10px; margin-bottom: 10px; font-size: 10pt; font-family: arial; font-weight: bold;text-align:left;\">ส่งต่อเรื่องนี้ !!  เผื่อเพื่อนๆ ของคุณจะชอบ ^^ :</div>";
str_text = str_text + "<div align=\"left\">";








//Share on Facebook
str_text = str_text + "<a title=\"Share on Facebook\" href=\"http://www.facebook.com/share.php?u="+ share_currentURL +"&amp;t="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"facebook.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Facebook\" />";
str_text = str_text + "</a>";

//Share on Twitter
str_text = str_text + "<a title=\"Share on Twitter\" href=\"http://twitter.com/share?text="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"twitter.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Twitter\" />";
str_text = str_text + "</a>";

//Email to Friends
str_text = str_text + "<a title=\"Email a Friend\" href=\"http://www.freetellafriend.com/tell/?heading=Share+This+Article&amp;bg=1&amp;option=email&amp;url=" + share_currentURL + "\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"email.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Email to Friends\" />";
str_text = str_text + "</a>";


//Share on Blogger
str_text = str_text + "<a title=\"Share on Blogger\" href=\"http://www.blogger.com/blog_this.pyra?t&amp;u="+ share_currentURL +"&amp;n="+ share_title +"&amp;pli=1\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"blogger.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Blogger\" />";
str_text = str_text + "</a>";

//Share on Delicious
str_text = str_text + "<a title=\"Share on Delicious\" href=\"http://del.icio.us/post?url="+ share_currentURL +"&amp;title="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"delicious.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Delicious\" />";
str_text = str_text + "</a>";

//Share on Digg
str_text = str_text + "<a title=\"Share on Digg\" href=\"http://digg.com/submit?url="+ share_currentURL +"&amp;title="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"digg.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Digg\" />";
str_text = str_text + "</a>";

//Share on Google
str_text = str_text + "<a title=\"Share on Google\" href=\"http://www.google.com/bookmarks/mark?op=add&amp;bkmk="+ share_currentURL +"&amp;title="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"google.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Google\" />";
str_text = str_text + "</a>";

//Share on Myspace
str_text = str_text + "<a title=\"Share on Myspace\" href=\"http://www.myspace.com/Modules/PostTo/Pages/?u="+ share_currentURL +"&amp;t="+ share_title +"&amp;c="+ share_currentURL +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"myspace.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Myspace\" />";
str_text = str_text + "</a>";

//Share on StumbleUpon
str_text = str_text + "<a title=\"Share on StumbleUpon\" href=\"http://www.stumbleupon.com/submit?url="+ share_currentURL +"&amp;title="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"stumbleupon.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on StumbleUpon\" />";
str_text = str_text + "</a>";

//Share on Yahoo
//str_text = str_text + "<a title=\"Share on Yahoo\" href=\"http://buzz.yahoo.com/buzz?targetUrl="+ share_currentURL +"&amp;headline="+ share_title +"\" target=\"_blank\">";
//str_text = str_text + "<img src=\"" + share_mainURL +"yahoo.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Yahoo\" />";
//str_text = str_text + "</a>";

//Share on Reddit
str_text = str_text + "<a title=\"Share on Reddit\" href=\"http://reddit.com/submit?url="+ share_currentURL +"&amp;title="+ share_title +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"reddit.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Reddit\" />";
str_text = str_text + "</a>";

//Share on Technorati
str_text = str_text + "<a title=\"Share on Technorati\" href=\"http://technorati.com/faves?sub=favthis&amp;add="+ share_currentURL +"\" target=\"_blank\">";
str_text = str_text + "<img src=\"" + share_mainURL +"technorati.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on Technorati\" />";
str_text = str_text + "</a>";

//Share on foursqure
str_text = str_text + "<img src=\"" + share_mainURL +"foursquare.png\" border=\"0\" width=\"32\" height=\"32\" alt=\"Share on foursquare\" />";

str_text = str_text + "<br /><span style=\"font-size:9px;\"><a href=\"http://freecode.siamfocus.com/\" target=\"_blank\" title=\"Free Social Media Share\">Free Social Media Share</a></span>";

str_text = str_text + "</div>";

document.write (str_text); 
