//////////////////////////////////////////  
//
//
//	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 = '';

//	html (or any other content) after each bookmark link. e.g. &nbsp; for space or </li> to end list item
var html_after	= '';

//	imagepath to icons.	set to 0 to disable icons, e.g. var imagepath = '0';
var imagepath = 'http://www.arteyjoyas.com/images/social-bookmarks/';


//	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}', '', imagepath+'delicious.png');
sites[1] = new Array('http://www.stumbleupon.com/submit?url={url}', '', imagepath+'stumbleupon.png');
sites[2] = new Array('http://www.facebook.com/sharer.php?u={url}', '', imagepath+'facebook.png');
sites[3] = new Array('http://digg.com/submit?phase=2&url={url}', '', imagepath+'digg.png');


//////////////////////////////////////////  
//
//			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]+'" />&nbsp; ';
		var k = '<a href="'+u+'">'+img+g[1]+'</a>&nbsp;';
		window.document.write(html_before+k+html_after);				
	}
}