Event.observe(window, 'load', function(){ 
   title = 'local news'
   addScript('pipeScript', 'http://pipes.yahoo.com/pipes/pipe.run?_id=672a2c7f87e9c0d3e0d87baa472e5792&_render=json&_callback=piper');
});

function piper(feed){
   var tmp='';
   kkk=feed;
   for(var i=0;i<feed.value.items.length; i++) {
      var a = feed.value.items[i]
      tmp+='<div class=yfeeds>';
      tmp+='<p class="yftitle">';
      tmp+='<a href="'+a.link+'">';
      tmp+=a.title +'</a>'
      tmp+='</p><p class="date">';
      if(a.day) tmp+=a.day+'/'+a.month+' ' +a.hour+':'+a.minute;
      tmp+='</p>';
      tmp+='</div>';
   }
   $('yPipes').update('<div class="feedscont"><p class="feedtitle">' +title + '</p>'+tmp+'</div>')
}
