// JavaScript Document
function over_swap_image(target, full_path_images)
{
	//alert(images);
	$('#'+target).attr({ src : full_path_images });
}

function MM_jumpMenu(targ, selObj, restore, base){ //v3.0
  eval(targ+".location='"+base+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function hot_poll(base, replace_id, num)
{
	hot_poll_id = $('input[name="hotPollID'+num+'"]').val();
	answer_id = $('input[name="answer'+num+'"]:checked').val();
	old_height = $("#"+replace_id+num).height();
	
	$.post(base+'log_in/hot_poll_vote', { hotPollID : hot_poll_id , 'answerID[]' : answer_id }, 
	function(data)
	{	
		$("#"+replace_id+num).html(data);
	});
	
}
