//////////////////////////////////////////  
//
//
//	spyka Webmaster social bookmark script
//	(c) 2008 spyka Web Group
//  http://www.spyka.net
//
//	http://www.spyka.net/scripts/easy-social-bookmarks
//
//
//////////////////////////////////////////   
var sites = new Array();
//////////////////////////////////////////  
//
//			START EDITS HERE               
//
//////////////////////////////////////////   

//	html (or any other content) before each bookmark link. e.g. &nbsp; for space or <li> for start of list item
var html_before = '&nbsp;';

//	html (or any other content) after each bookmark link. e.g. &nbsp; for space or </li> to end list item
var html_after	= '&nbsp;';

//	imagepath to icons.	set to 0 to disable icons, e.g. var imagepath = '0';
var imagepath = './icone/';


//	bookmarks: 
//				syntax: (be sure to increase x)
//				sites[x] = new Array(Bookmark URL, Bookmark name, Icon URL);
//
//				use {url} in bookmark URL to insert current url
//				use {title} in bookmark URL to insert current page title
//
sites[0] = new Array('http://del.icio.us/post?url={url}&title={title}', 'Del.icio.us', imagepath+'delicious.gif');
sites[1] = new Array('http://reddit.com/submit?url={url}&title={title}', 'reddit', imagepath+'reddit.gif');
sites[2] = new Array('http://furl.net/storeIt.jsp?t={title}&u={url}', 'Furl', imagepath+'furl.gif');
sites[3] = new Array('http://www.stumbleupon.com/submit?url={url}', 'Stumble', imagepath+'stumble.gif');
sites[4] = new Array('http://www.facebook.com/sharer.php?u={url}', 'Facebook', imagepath+'facebook.gif');
sites[5] = new Array('http://digg.com/submit?phase=2&url={url}', 'Digg', imagepath+'digg.gif');


//////////////////////////////////////////  
//
//			END EDITS HERE               
//
//////////////////////////////////////////   
function swgbookmarks()
{
	for(i = 0; i < sites.length; i++)
	{
		var g = sites[i];
		var u = g[0];
		u = u.replace('{url}', escape(window.location.href));
		u = u.replace('{title}', escape(window.document.title));
		var img = (imagepath == '0') ? '' : '<img src="'+g[2]+'" alt="'+g[1]+'" border="0"/>&nbsp; ';
		var k = '<a href="'+u+'">'+img+g[1]+'</a>&nbsp;';
		window.document.write(html_before+k+html_after);				
	}
}