/*
 Bookmarlet for greek social bookmarks
 
 Author: Nick Papanotas
 http://humanworks.gr
 Instructions/newer versions: http://humanworks.gr/seo/greek-social-bookmarlets/
*/
function displaySocialButtons (pathToImages, style){
	document.write(' <a href="#" onclick="return gsb_click(\'buzz\')"><img src="' + pathToImages + 'buzz.png" alt="Buzz it" style="'+ style +'" /></a>');
	document.write(' <a href="#" onclick="return gsb_click(\'cull\')"><img src="' + pathToImages + 'cull.png" alt="Cull it" style="'+ style +'" /></a>');
	document.write('<a href="#" onclick="return gsb_click(\'digme\')"><img src="' + pathToImages + 'digme.png" alt="Digme it" style="'+ style +'" /></a>');
	document.write('<a href="#" onclick="return gsb_click(\'freestuff\')"><img src="' + pathToImages + 'freestuff.png" alt="Freestuff it" style="'+ style +'" /></a>');
	document.write('<a href="#" onclick="return gsb_click(\'bobit\')"><img src="' + pathToImages + 'bobit.png" alt="Bob it" style="'+ style +'" /></a>');
        document.write('<a href="#" onclick="return gsb_click(\'foracampit\')"><img src="' + pathToImages + 'foracamp.gif" alt="Foracamp it" style="'+ style +'" /></a>');
}
function gsb_click(network){
	u=encodeURIComponent(location.href);
	t=encodeURIComponent(document.title);
	switch ( network ){
		case 'buzz':
			url = 'http://buzz.reality-tape.com/submit.php?url=' + u;
			break;
		case 'cull':
			url = 'http://www.cull.gr/refer?url='+ u +'&title=' + t;
			break;
		case 'digme':
			url = 'http://www.digme.gr/submit.php?url=' + u;
			break;
		case 'freestuff':
			url = 'http://bookmarks.freestuff.gr/bookmarks/user?action=add&address=' + u + '&title=' + t + '&description=';
			break;
		case 'bobit':
			url = 'http://www.bobit.gr/articles/new?bob_this=' + u;
			break;
                case 'foracampit':
			url = 'http://www.foracamp.gr/user/login?destination=?/node/add/story/'+ t +'/' + u;
			break;
		default: 
			alert(network + u + t );
			break;
	}
	window.open(url,'GreekSocial','scrollbars=yes,resizable=yes,width=700,height=436');
	return false;
}
