
function twitter(url, text)
{
/*
		new Ajax.Request('/url/get.php?url='+encodeURIComponent(url), {
			method: 'get',
			onSuccess: function(transport) {
				if (transport.responseText!='') {
					window.open('http://twitter.com/home/?status='+encodeURIComponent(text)+' '+transport.responseText,this.target)
				}
			}
		});
*/
/*
  window.my_callback = function(response)
  {
    if(response.error_message) window.open('http://twitter.com/home/?status='+encodeURIComponent(text)+' '+url,this.target)
    else window.open('http://twitter.com/home/?status='+encodeURIComponent(text)+' '+response.short_url,this.target)
  };
  var s = document.createElement("script");
  s.src = "http://ggl-shortener.appspot.com/?url=" + encodeURIComponent(url) + "&jsonp=my_callback";
  document.body.appendChild(s);
*/  

  window.open('http://twitter.com/home/?status='+encodeURIComponent(text),this.target)

  return false;
}

function facebook(url, text) {
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(text),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function vkontakte(url, text) {
	window.open('http://vkontakte.ru/share.php?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(text)+'&image=http://www.cul8r.ru/img/px.gif','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function mailru(url, text) {
	window.open('http://connect.mail.ru/share?share_url='+encodeURIComponent(url)+'&title='+encodeURIComponent(text)+'&image=http://www.cul8r.ru/img/px.gif','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function memori(url, text) {
	window.open('http://memori.ru/link/?sm=1&u_data[url]='+encodeURIComponent(url)+'&u_data[name]='+encodeURIComponent(text)+'&image=http://www.cul8r.ru/img/px.gif','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function bobrdobr(url, text) {
	window.open('http://bobrdobr.ru/addext.html?url='+encodeURIComponent(url)+'&title='+encodeURIComponent(text)+'&image=http://www.cul8r.ru/img/px.gif','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}

function yazakladki(url, text, descr, tags) {
	window.open('http://zakladki.yandex.ru/userarea/links/addfromfav.asp?bAddLink_x=1&lurl='+encodeURIComponent(url)+'&lname='+encodeURIComponent(text)+'&descr='+encodeURIComponent(descr)+'&tags='+encodeURIComponent(tags)+'&image=http://www.cul8r.ru/img/px.gif','sharer','toolbar=0,status=0,width=626,height=436');
	return false;
}




