function showPoll(id){
	jQuery.ajax({
		url:voodooMain+'front/polls/getPoll/',
		success:function(msg){
			jQuery('.pollContainer').html(msg);
		}
	});
}
function pollVote(){
	var choice=jQuery("input[@name='choice']:checked").val();
	if(choice){
		var url=voodooMain+'front/polls/vote/pollId/';
		url+=jQuery('.pollId').val();
		url+='/choice/'+choice;
		jQuery.ajax({
			url:url,
			success:function(){
				pollResults();
			}
		});
	}else
	{
		desiAlert('Моля изберете отговор, за да гласувате.');
	}
}
function pollResults(){
	var url=voodooMain+'front/polls/getResults/pollId/';
	url+=jQuery('.pollId').val();
	jQuery.ajax({
		url:url,
		success:function(msg){
			jQuery('.pollContainer').html(msg);
		}
	});
}
function submitSearch(){
	location.href=voodooMain+"front/shop/search/query/"+jQuery('#searchBox').val();
}
function removeSelf(item){
	jQuery(item).remove();
}
function removeFromDom(item){
	jQuery(item).parent('a').remove();
	jQuery(item).remove();
}
function openWindow(url) {
	return popupWin = window.open(url, 'remote', 'menubar=no, toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=yes, dependent, left=0, top=0');
}
