function cloud (e, sid) {

	if ($('cloud_' + sid))

		var d = $('cloud_' + sid);

	else {

		var d = document.createElement('div');

		d.setAttribute ('id', 'cloud_' + sid);
		d.className='words_cloud';
		d.style.position = 'absolute';

		d.style.backgroundColor = '#CDA13B';

		var txt = $('autotext_'+sid).innerHTML;

/*		d.innerHTML = '<div style="border:1px solid rgb(204,204,204); ' +

			'width:300px;"><div style="border:1px solid rgb(68,68,68);">' +

			'<div style="border:3px solid rgb(170,170,170);">' +

			'<div style="border:3px solid rgb(140,140,140); ' +

			'background-color:#FFFFFF; padding:5px; '+

			'overflow:hidden;color:black;">'+ txt + '</div></div></div></div>';
*/	
			d.innerHTML = txt;
		//d.onmouseover = function () {alert(this.id); };

		document.body.appendChild(d);

	}

	$('cloud_' + sid).style.display = 'block';

	d.style.left = (Event.pointerX(e) + 10) + 'px';

	d.style.top = (Event.pointerY(e) - 30) + 'px';

}

function cloudOff (sid) {

	$('cloud_' + sid).style.display = 'none';

}

function submitComm() {
	advAJAX.submit(document.getElementById('addkom_recipe'), {
		url : 'index.php?area=1&p=recipies&action=addComments&ajax=ajax',
		onInitialization : function() {
			ajax_loader(true);
		},
		onSuccess : function(obj) {
			ajax_loader(false);
			alert(obj.responseText);
		}
	});
	
}

function submitVote() {
	advAJAX.submit(document.getElementById('addnote_recipe'), {
		url : 'index.php?area=1&p=recipies&action=addVote&ajax=ajax',
		onInitialization : function() {
			ajax_loader(true);
		},
		onSuccess : function(obj) {
			ajax_loader(false);
			alert(obj.responseText);
		}
	});
}
