//
// (c) 2008 primeadd.net
// Service Widget
//
document.write('<style type="text/css">' +
 '#f_3297722134_primadd { overflow: hidden; padding: 0px; margin: 0px; }' +
 '#f_3297722134_primadd div { cursor:pointer;width: 24px; height: 24px; background: url("//primadd.net/icon/services_24x24_3.gif") no-repeat; }' +
 '#f_3297722134_primadd li { float: left; padding: 0px; margin: 0px; }' +
 '#f_3297722134_primadd ul { padding: 0px; margin: 0px; list-style-type: none; }' +
 '#f_3297722134_primadd li:before { display:none; }' +  '#f_3297722134_primadd img { border:none; }' +
 '</style>');
var f_3297722134_list=new Array(
new Array('facebook', 'Facebook', 9, 'http://www.facebook.com/', ""));
function f_3297722134_gotoService(service)
{
	subUrl = '//primadd.net/services/' + service + '/';
	if (service == 'more') subUrl = '//primadd.net/bookmark/submit/'
	url = subUrl + '?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(window.location.href);
	window.open(url);
  
	if(typeof 'f_3297722134_hidemenu' == 'function')
	{
		f_3297722134_hidemenu();
	}
}

document.write(f_3297722134_addLinks());

function f_3297722134_addLinks()
{
	var ret = '<ul id="f_3297722134_primadd">';
	for (var i = 0; i < f_3297722134_list.length; i++)
	{
		var service = f_3297722134_list[i][0];
		var offset_y = f_3297722134_list[i][2];

		var txt = ''
		if (f_3297722134_list[i][4] != '') 
			txt = '... ' + f_3297722134_list[i][4];
		else
			txt = 'bookmark at ' + f_3297722134_list[i][1];

		var currentUrl = encodeURIComponent(window.location.href);
		var currentTitle = encodeURIComponent(document.title);
		var domain = f_3297722134_list[i][3];
		ret += '<li><a title="'+txt+'" onclick="f_3297722134_gotoService('+"'"+service+"'"+');return false;" href="'+ domain + '">' + 
		'<div style="background-position: 0px -'+(offset_y*24)+'px;" href="//primadd.net/services/' + service + '/?title=' + currentTitle + '&url=' + currentUrl +'"></div></a></li>';
	}
	return ret + '</ul>';
}
