// JavaScript Document
 $(document).ready(function(){
  	callVoices();
  }); 
 	superTimer = new supertimer();
	var comment_bl = false;

function callVoices(){
	//setObjInvisible(error_alert);
	//alert("callComment");
	var datastring = "";
	var path = "functions/logic/getVoices.php?num=5&title=ULTIMI VOCABOLI INSERITI";
	//var path = "includes/fake/service1.php";
	callAjax(path,datastring);
}
	function insertList(obj){
		var el1 = "#titleList";
		var el2 = "#contentList";
		//$(el1).fadeOut(200);
		$(el2).fadeOut(200);
		$(el1).empty();
		$(el2).empty();
		
		$(el1).append(obj.result.title);
		var el = "<ul class='listVoices'>";
		for(var i=0; i<obj.result.list.length;i++){
			el += "<li class='item'><a href='"+obj.result.list[i]["link"]+"'>"+obj.result.list[i]["name"]+"</a></li>";			
		}
		el += "</ul>";
		$(el2).append(el);
		//$(el1).fadeIn(500);
		$(el2).fadeIn(500);
		window.setTimeout("superTimer.resetComment()", 15000);
	}
	
