function getLovasShareButton( url , btn_type , icon_size , text ) {
	
	if (!url) url = document.location;
	if (!text) text = 'Поделиться';
	if (!icon_size) icon_size = 16;
	
	var width = 560;
	var height = 340;
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;
	var popupParams = 'scrollbars=0, resizable=1, menubar=0, left=' + left + ', top=' + top + ', width=' + width + ', height=' + height + ', toolbar=0, status=0';
	var open_link = "http://lovas.ru/share.php?url=" + url;
	
	switch (btn_type) {
	case "icon":
		btn_text = "<img class=\"LovasImgStyle\" border=\"0\" src=\"http://lovas.ru/templates/default/images/api/lovas_" + icon_size + ".png\">";
		break;
	case "text":
		btn_text = text;
		break;
	default:
		btn_text = "<img class=\"LovasImgStyle\" style=\"vertical-align:middle\" border=\"0\" src=\"http://lovas.ru/templates/default/images/api/lovas_" + icon_size + ".png\"><span style=\"vertical-align:middle;padding-left:5px\">" + text + "</span>";
		break;
	}
	
	return "<a class=\"LovasLinkStyle\" href=\"" + open_link + "\" onclick=\"window.open('" + open_link + "', 'Поделиться ссылкой на Ловасточке', '" + popupParams + "');return false\" target=\"_blank\" style=\"text-decoration:none\">" +
		btn_text +
		"</a>"
}
