$(function(){document.title="Practical Agile: "+$("#phpbread").text().substring(13);$("#breadcrumbs").html($("#phpbread").html());if($("#phpnavicons")){$("#navicons").html($("#phpnavicons").html())}});var thisproject=$("div").find(".thisproject").prop("id");var thisuser=$("div").find(".thisuser").prop("id");$(function(){$("input:radio").change(function(){$.ajax({type:"GET",url:"estimate_Add.php",data:"PID="+thisproject+"&EST="+$(this).val()+"&WHO="+thisuser,success:function(a){}})});$("#Clear").click(function(){$.ajax({type:"GET",url:"estimate_Clear.php",data:"PID="+thisproject,success:function(a){$(".hideit").hide();$(".clearit").text("");$('input[name="Size"]').prop("checked",false)}})});$("#Show").click(function(){$.ajax({type:"GET",url:"estimate_Show.php",data:"PID="+thisproject,success:function(a){}})})});function refresh(){$.ajax({type:"GET",url:"estimate_Refresh.php",data:"PID="+thisproject,success:function(c){var d=JSON.parse(c);if(d.c3284d0f94606de1fd2af172aba15bf3==-1){$(".hideit").hide();$(".clearit").text("");$('input[name="Size"]').prop("checked",false)}if(d.c3284d0f94606de1fd2af172aba15bf3==0){$.each(d,function(e,f){if(f!=false){$("#t"+e).show()}else{$("#t"+e).hide()}})}if(d.c3284d0f94606de1fd2af172aba15bf3==1){var a=0;var b=0;$.each(d,function(e,f){if(f!=false){$("#s"+e).html("<b>"+f+"</b>");if(e!="c3284d0f94606de1fd2af172aba15bf3"){a=a+Number(f);b=b+1}}});a=Math.round(a/b*10)/10;if(a>0){$("#estave").html("<b>"+a+"</b>")}}}});setTimeout(refresh,3000)}setTimeout(refresh,3000);