$(document).ready(function(autoload) {
//get the last tweet 
var yqlUrl = "https://query.yahooapis.com/v1/public/yql";
var query = "select * from query.multi where queries=\"SELECT * FROM twitter.users WHERE id='pawelf';SELECT * FROM twitter.users WHERE id='carstenbach'\"";
var queryUrl = yqlUrl + "?q=" + escape(query) + "&format=json&callback=?" + "&env=" + escape("store://datatables.org/alltableswithkeys");
$.getJSON(queryUrl, function (yqlObject) {
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
var ptwitterText = yqlObject.query.results.results[0].user.status.text.replace(exp,"<a href='$1'>$1</a>"); 
var ctwitterText = yqlObject.query.results.results[1].user.status.text.replace(exp,"<a href='$1'>$1</a>"); 
$("#caba").html(ctwitterText);
$("#pawel").html(ptwitterText);
$("#caba,#pawel").fadeTo(900,1);} );//end function yqlobject
//Effects with the svg avatars
$('#carsten, #pawelf').hover(
	function () {pixelfan = ((this.id) == 'carsten') ? '#pawelf,#caba,#pawel' : '#carsten,#caba,#pawel'; $(pixelfan).fadeTo(900,0.1);},
        function () {$(pixelfan).fadeTo(200,1);}
      );
//activate the colorbox
$("a[rel='shadowbox']").colorbox(); 
$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
// generate wai aria landmark roles
$('#content').attr('role','main');
$('#mainnavi').attr('role','navigatiom');
$('#footer').attr('role','contentinfo');
$('.artikel').attr('role','article');
$('#weblog').attr('role','main');
$('#sidebar').attr('role','complementary');
});//end function autoload
   




