//check for new shouts var last_id = 0; var last_tid = 0; var z = 0; var last_qitems = 0; var videoID = ""; var videoOffset = 0; var sid = 0; var curpos = 0; function UpdateQueue(){ //is this needed? } function checkEvents(){ z++; $.getJSON('/events/LastEvents', function(data) { $.each(data, function(key, val) { switch(key){ case 'ls': if(last_id != val){ if(last_id!=0){ UpdateOneLiner(val); } last_id = val; } break; case 'qt': if(last_qitems != val){ if(z>1){ var new_arr = val; var cur_arr = last_qitems; var i=0; var y=0; var found = false; var add_arr = new Array(); //find new if(new_arr!=null){ if(new_arr.length){ for(i=0;i