function poll_tumbler(elem) {
$(elem).parents('form:first').find('span.OtherInput').toggle();
}

function poll_off(elem) {
	$(elem).parents('form:first').find('span.OtherInput').hide();
}

function poll_on(elem) {
	$(elem).parents('form:first').find('span.OtherInput').show();
}

function poll_ajax_vote(form) {
	var jform = $(form);
	jform.ajaxSubmit({success: function(responseText){
		jform.parents('.pollbox:first').html(responseText);
	}});
	return false;
}

function pollload(anchor) {
	$.get($(anchor).attr('href'), function(responseText){$(anchor).parents('.pollbox:first').html(responseText)});
	return false;
}

$(function(){
var jlpollbox=$('#leftpollbox');
if (jlpollbox.length) jlpollbox.load('/poll/', {ajaxed:1});
});