function showToolTip(parrentId, id){
				var pos = jQuery("#"+parrentId).position();
				//alert(pos.top+", "+pos.left);
				var width = jQuery("#"+parrentId).width();
				
				var elm = document.getElementById(id);
				
				elm.style.left = pos.left +"px";
				elm.style.top = pos.top + 109 +"px";
				jQuery("#"+id).show();
}
function hideToolTip(id){
	jQuery("#"+id).hide();
}

function showPoll(){
	jQuery("#pollimg").hide();
	jQuery("#poll").width(312);
	jQuery("#poll").show();
}
function hidePoll(){
	jQuery("#poll").hide();
	jQuery("#poll").width(14);
	jQuery("#pollimg").show();
}

function vote(id){
	 jQuery.ajax({
		type: "POST",
		url: "http://"+location.host+"/index.php/poll/placeVote",
		dataType: "json",
		data: {
			issueId : id
		},
		success: function(data){
			//jQuery("#pollHolder").html(data);	
			for (var index in data.pollIssues){
				if (!data.pollIssues[index]['implemented']) {
					jQuery("#progressbar"+index).progressbar( "value" , data.pollIssues[index]['progress'] );
					jQuery("#count"+index).html(data.pollIssues[index]['count']);
				}
			}
			jQuery("#voteCount").html(data.voteCount);
			showPoll();
		}
	});
}

