/** 
*
* @package Simple Social Bookmarks
* @version $Id: bookmarks.js,v 0.2.2 2007/02/02 13:48:48 dcz Exp $
* @copyright (c) 2007 dcz - www.phpbb-seo.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/
function social_bookmarks() {
	// Config
	// Language vars
	var b_title = "";
	var b_desc = "";
	var bookmarthis = "";
	var suggested_tags = "";
	var keyword_list = "Keywords list from sbjs/french/bookmarks.js";
	// Should be /phpBB/images/sb/
	var img_path = "./images/sb/";
	// Style
	// Here you can chose to add some code arround the bookmark links table
	var header ="";
	var footer ="";
	// Let's go
	var l_title = "";
	var l_txt = "";
	var l_url = "";
	var l_img = "";
	var output = header + "<b>" + b_title + "</b>\n\t" + b_desc + "\n\t";

	
	// Technorati
	l_txt = "";
	l_title = bookmarthis + l_txt;
	l_url = "'http://www.technorati.com/faves?add='+escape(document.location)";
	l_img = img_path + "ico1.gif";
	output = output + build_link(l_title, l_txt, l_url,l_img);
	
	
	// Stumbleupon
	l_txt = "";
	l_title = bookmarthis + l_txt + " (need to download Stumbleupon Toolbar!)";
	l_url = "'http://www.stumbleupon.com/refer.php?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
	l_img = img_path + "ico3.gif";
	output = output + build_link(l_title, l_txt, l_url,l_img);
	
	// Delicious
	l_txt = "";
	l_title = bookmarthis + l_txt;
	l_url = "'http://del.icio.us/post?v=4&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)";
	l_img = img_path + "ico6.gif";
	output = output +  build_link(l_title, l_txt, l_url,l_img);

	
	

	



	

	



	// Furl
	l_txt = "";
	l_title = bookmarthis + l_txt;
	l_url = "'http://www.furl.net/storeIt.jsp?u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title)";
	l_img = img_path + "ico4.gif";
	output = output + build_link(l_title, l_txt, l_url,l_img);

	// Newsvine
	l_txt = "";
	l_title = bookmarthis + l_txt;
	l_url = "'http://www.newsvine.com/_tools/seed&save?u='+encodeURIComponent(location.href)+'&h='+encodeURIComponent(document.title)";
	l_img = img_path + "ico7.gif";
	output = output + build_link(l_title, l_txt, l_url,l_img);




	


	output = output + "\n\t</tr>\n\t<tr>\n\t<td colspan=\"20\"  align=\"center\">" + suggested_tags + "</td>\n</tr>\n</table>" + footer;
	document.write(output);
}
function build_link(title, txt, url,img) {
	return "<li><a href=\"javascript:void window.open(" + url + ")\"  title=\"" + title + "\"><img src=\"" + img + "\" alt=\"" + title + "\" border=\"0\" height=\"18\" width=\"18\">" + txt + "</a></li>";
}

