function viewCount(id) {
	$.ajax({
	   type: "POST",
	   url: '/view_count/',
	   data: {id: id},
	   dataType: "json",
	   success: function(){}
	 });
	
	
}

function actionProcess(value, id) {
	document.forma.act.value=value;
	document.forma.id.value=id;
	document.forma.submit();		
	return false;
}


function actionConfirm(value, message, id) {
	if(confirm(message))  {
		document.forma.act.value=value;
		document.forma.id.value=id;
		document.forma.submit();		
	} 
	return false;
}

	var loop=0;
	function process() {
		var num=$("ul.lnk > li").get().length;		
		$("ul.lnk > li").each(function(i) {			
			if(i==loop) $(this).show();
			else $(this).hide();
		});		
		if(loop==num-1) loop=0
		else loop++;		
	}	
	
	function pr() {
		var num=$("ul.lnk > li").get().length;
		if(num>0) {
			$("ul.lnk > li").hide();
			$("ul.lnk > li:first-child").show();
			setInterval('process()', 5000); 
		}
	}
